/* ============================================================
   Public Gift Cards page (/gift-cards)
   Colours come from the brand colour: the page sets --gc-primary / --gc-soft / --gc-deep inline
   (BrandIdentity), the values below are only the template-pink fallbacks.
   ============================================================ */
.gc-page {
    --gc-primary: #ff67b0;
    --gc-soft: #ffeaf4;
    --gc-deep: #a8366f;
    --gc-ink: #25101b;
    --gc-muted: #6b7280;
    --gc-line: #f3d3e4;
    --gc-plum: #2a1020;
    --gc-plum-2: #16101a;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    color: var(--gc-ink);
    background: #fff;
}

.gc-page *,
.gc-page *::before,
.gc-page *::after {
    box-sizing: border-box;
}

.gc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gc-muted {
    color: var(--gc-muted);
}

/* ---------- Hero + tabs ---------- */
.gc-hero {
    background: linear-gradient(180deg, var(--gc-soft) 0%, #fff 100%);
    padding: clamp(104px, 11vw, 132px) 0 0;
    border-bottom: 1px solid var(--gc-line);
}

.gc-breadcrumbs {
    margin-bottom: 18px;
    font-size: .85rem;
    color: var(--gc-muted);
}

.gc-breadcrumbs a {
    color: var(--gc-muted);
    text-decoration: none;
}

.gc-breadcrumbs a:hover {
    color: var(--gc-primary);
}

.gc-hero-heading {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--gc-ink);
    margin: 0 0 14px;
}

.gc-hero-lead {
    max-width: 580px;
    margin: 0 0 30px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--gc-muted);
}

.gc-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gc-tabs::-webkit-scrollbar {
    display: none;
}

.gc-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    color: var(--gc-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.gc-tab i {
    opacity: .55;
    transition: opacity .2s, color .2s;
}

.gc-tab:hover {
    color: var(--gc-ink);
}

.gc-tab.active {
    color: var(--gc-ink);
    border-bottom-color: var(--gc-primary);
}

.gc-tab.active i {
    opacity: 1;
    color: var(--gc-primary);
}

.gc-tab:focus-visible {
    outline: 2px solid var(--gc-primary);
    outline-offset: -2px;
    border-radius: 8px;
}

.gc-panel[hidden] {
    display: none;
}

/* ---------- Sections ---------- */
.gc-section {
    padding: clamp(40px, 6vw, 72px) 0;
}

.gc-h {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 6px;
}

.gc-h-lg {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 12px;
}

.gc-mb-lg {
    margin-bottom: 24px;
}

.gc-sub-h {
    font-size: 1rem;
    font-weight: 800;
    margin: 26px 0 12px;
}

/* ---------- Amount tiles ---------- */
.gc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gc-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.6 / 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    font: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-deep) 100%);
    border: 3px solid transparent;
    border-radius: 18px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gc-tile::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, .35), transparent);
    transform: rotate(20deg);
    pointer-events: none;
}

.gc-tile:hover {
    transform: translateY(-3px);
}

.gc-tile:focus-visible {
    outline: 3px solid var(--gc-ink);
    outline-offset: 2px;
}

.gc-tile[aria-pressed="true"] {
    border-color: #fff;
    box-shadow: 0 0 0 3px var(--gc-primary), 0 16px 30px -12px var(--gc-primary);
}

.gc-tile.is-popular::before {
    content: "POPULAR";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--gc-deep);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.gc-tile-label {
    position: relative;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}

.gc-tile .gc-chip {
    display: none;
}

.gc-tile-number {
    display: none;
}

.gc-tile-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gc-tile-amount {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.gc-tile-note {
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

/* ---------- Form ---------- */
.gc-form {
    margin-top: 26px;
    padding: 28px;
    background: var(--gc-soft);
    border: 1px solid var(--gc-line);
    border-radius: 22px;
}

.gc-field {
    margin-bottom: 18px;
}

.gc-field label,
.gc-label {
    display: block;
    margin-bottom: 6px;
    font-size: .88rem;
    font-weight: 700;
}

.gc-optional {
    font-weight: 500;
    color: var(--gc-muted);
}

.gc-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: #fff;
    border: 1.5px solid #ecd2e0;
    border-radius: 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--gc-ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.gc-textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 16px;
    resize: vertical;
}

.gc-input:focus {
    border-color: var(--gc-primary);
    box-shadow: 0 0 0 4px rgba(255, 103, 176, .16);
}

.gc-input:disabled {
    background: #f6eef2;
    color: #a8949f;
}

.gc-code-input {
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}

.gc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gc-pill {
    padding: 9px 16px;
    background: #fff;
    border: 1.5px solid #ecd2e0;
    border-radius: 999px;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gc-ink);
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}

.gc-pill:hover {
    border-color: var(--gc-primary);
}

.gc-pill.is-selected {
    background: var(--gc-primary);
    border-color: var(--gc-primary);
    color: #fff;
}

.gc-pill:focus-visible {
    outline: 2px solid var(--gc-ink);
    outline-offset: 2px;
}

.gc-from {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 14px;
    font-size: .92rem;
    line-height: 1.5;
    color: #4b3a44;
}

.gc-from i {
    color: var(--gc-primary);
    font-size: 1.1rem;
    margin-top: 1px;
}

.gc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    font-weight: 600;
    cursor: pointer;
}

.gc-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--gc-primary);
    cursor: pointer;
}

.gc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    padding: 0 24px;
    background: var(--gc-primary);
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: var(--gc-ink);
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.gc-btn:hover {
    background: var(--gc-deep);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -12px var(--gc-primary);
}

.gc-btn:focus-visible {
    outline: 3px solid var(--gc-ink);
    outline-offset: 2px;
}

.gc-btn-link {
    display: inline-flex;
}

.gc-fine {
    margin: 12px 0 0;
    text-align: center;
    font-size: .8rem;
    line-height: 1.5;
    color: var(--gc-muted);
}

.gc-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.5;
}

.gc-alert-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

/* ---------- Preview card ---------- */
.gc-preview-stack {
    position: relative;
    height: 100%;
}

.gc-preview {
    position: sticky;
    top: 110px;
    z-index: 2;
    color: #fff;
    background: linear-gradient(135deg, var(--gc-plum) 0%, var(--gc-plum-2) 60%, #24101c 100%);
    border: 1.5px solid rgba(255, 103, 176, .4);
    border-radius: 26px;
    box-shadow: 14px 22px 36px -18px rgba(37, 16, 27, .5), 0 28px 60px rgba(37, 16, 27, .28), 0 0 40px -12px var(--gc-primary);
    animation: gcFloat 5s ease-in-out infinite;
}

@supports (border-color: color-mix(in srgb, red 40%, transparent)) {
    .gc-preview {
        border-color: color-mix(in srgb, var(--gc-primary) 45%, transparent);
    }
}

@keyframes gcFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

.gc-preview-inner {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: inherit;
    padding: 28px;
}

.gc-preview-inner::after {
    content: "";
    position: absolute;
    inset: -20% auto -20% -60%;
    width: 40%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .12), transparent);
    transform: rotate(12deg);
    animation: gcSweep 6s ease-in-out infinite 1s;
    pointer-events: none;
}

@keyframes gcSweep {
    0%, 55% { left: -60%; }
    100% { left: 140%; }
}

/* A second card peeking out behind the preview */
.gc-preview-back {
    display: none;
}

@media (min-width: 768px) {
    .gc-preview-back {
        display: block;
        position: absolute;
        top: -24px;
        left: -24px;
        right: 10px;
        height: calc(100% + 48px);
        z-index: 1;
        background: linear-gradient(135deg, var(--gc-plum) 0%, var(--gc-plum-2) 100%);
        border: 1.5px solid rgba(255, 103, 176, .25);
        border-radius: 26px;
        box-shadow: 0 24px 50px rgba(37, 16, 27, .35);
        opacity: .8;
        transform: rotate(-4deg);
    }
}

.gc-preview-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.gc-preview-brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.gc-badge-gift {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--gc-primary);
    color: var(--gc-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

/* Decorative card chip */
.gc-chip {
    position: relative;
    overflow: hidden;
    display: block;
    width: 38px;
    height: 26px;
    border-radius: 5px;
    background:
        linear-gradient(90deg, transparent 32%, rgba(0, 0, 0, .25) 33%, transparent 34%, transparent 65%, rgba(0, 0, 0, .25) 66%, transparent 67%),
        linear-gradient(0deg, transparent 32%, rgba(0, 0, 0, .25) 33%, transparent 34%, transparent 65%, rgba(0, 0, 0, .25) 66%, transparent 67%),
        linear-gradient(135deg, #f6d9a0, #d9a441);
    border: 1px solid rgba(0, 0, 0, .3);
}

.gc-chip-lg {
    width: 50px;
    height: 34px;
    margin-bottom: 16px;
}

.gc-chip-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: gcChip 3.5s ease-in-out infinite 1.8s;
}

@keyframes gcChip {
    0%, 25% { transform: translateX(-120%); }
    65%, 100% { transform: translateX(120%); }
}

.gc-preview-amount {
    margin-bottom: 6px;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--gc-primary), #ffd6ea, var(--gc-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gcShimmer 4s linear infinite;
}

@keyframes gcShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.gc-preview-label {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    overflow-wrap: anywhere;
}

.gc-preview-number {
    margin: 8px 0 16px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 1.05rem;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .5);
}

.gc-preview-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

@media (prefers-reduced-motion: reduce) {
    .gc-preview,
    .gc-preview-inner::after,
    .gc-preview-amount,
    .gc-chip-shine {
        animation: none;
    }

    .gc-tile,
    .gc-btn {
        transition: none;
    }
}

/* ---------- Balance ---------- */
.gc-balance-form {
    margin-top: 0;
}

.gc-balance-result {
    margin-top: 16px;
}

.gc-balance-result:empty {
    display: none;
}

.gc-balance-found {
    padding: 18px 20px;
    background: #fff;
    border: 1.5px solid var(--gc-primary);
    border-radius: 16px;
}

.gc-balance-code {
    font-weight: 700;
    letter-spacing: .12em;
}

.gc-balance-amount {
    margin: 4px 0 8px;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--gc-deep);
}

.gc-balance-amount small {
    font-size: .85rem;
    font-weight: 500;
    color: var(--gc-muted);
}

.gc-balance-meta {
    font-size: .85rem;
    color: var(--gc-muted);
}

.gc-status {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gc-soft);
    color: var(--gc-deep);
    font-weight: 700;
}

/* ---------- Why gift cards ---------- */
.gc-why {
    background: var(--gc-soft);
    border-top: 1px solid var(--gc-line);
}

.gc-why-head {
    margin-bottom: 32px;
    text-align: center;
}

.gc-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 14px;
    background: #fff;
    border: 1.5px solid var(--gc-line);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gc-deep);
}

.gc-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gc-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--gc-line);
    border-radius: 20px;
    box-shadow: 0 10px 28px -20px rgba(37, 16, 27, .4);
}

.gc-feature-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gc-soft);
    border-radius: 14px;
    color: var(--gc-primary);
    font-size: 1.3rem;
}

.gc-feature h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
}

.gc-feature p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--gc-muted);
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    /* The stacked columns would otherwise stretch edge to edge. */
    #panel-buy .row > [class*="col-lg-"] {
        max-width: 640px;
        margin-inline: auto;
    }

    /* The card being configured comes first, so you see what you are buying. */
    #panel-buy .row > .col-lg-5 {
        order: -1;
    }

    .gc-preview {
        position: static;
        animation: none;
    }

    .gc-preview-inner {
        padding: 22px;
    }

    .gc-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .gc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Phone ---------- */
@media (max-width: 575.98px) {
    .gc-container {
        padding: 0 16px;
    }

    .gc-form {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .gc-grid {
        gap: 12px;
    }

    .gc-tile {
        padding: 14px;
    }

    .gc-tab {
        padding: 14px 16px;
    }

    .gc-preview-foot {
        flex-direction: column;
        gap: 4px;
    }

    .gc-feature {
        padding: 18px;
    }
}
