/* =========================================================
   GIFT CARDS – gift-cards.css
   Zayyora Fine Jewellery
   Palette: Deep Navy #062037 · Gold #C5A054 · Cream #FAF7F2
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Cinzel:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --gc-black:       #062037; /* Deep Navy for high-contrast text */
    --gc-charcoal:    #ffffff; /* Panel backgrounds */
    --gc-surface:     #FAF7F2; /* Form field backgrounds / Cream */
    --gc-border:      rgba(6, 32, 55, .10); /* Subtle Navy borders */
    --gc-gold:        #C5A054; /* Deep Gold for accents */
    --gc-gold-light:  #062037; /* Navy used as the primary light accent */
    --gc-gold-pale:   #F2EAD0; 
    --gc-cream:       #FAF7F2; /* Page Background */
    --gc-text:        #062037; /* Dark Navy text */
    --gc-muted:       #6b7d8e;
    --gc-radius:      16px;
    --gc-card-w:      420px;
    --gc-card-h:      260px;
    --gc-transition:  .35s cubic-bezier(.4,0,.2,1);
    
    /* Dynamic theme vars for the Gift Card itself */
    --th-a:  #062037; /* Navy Card Start */
    --th-b:  #041425; /* Deep Navy Card End */
    --th-c:  #C5A054; 
    --th-d:  #FAF7F2; /* Off-white for text on navy card */
    --th-accent: #C5A054;
    --th-particle: #F2EAD0;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BODY ───────────────────────────────────────────────── */
body {
    background: var(--gc-cream);
    color: var(--gc-text);
    font-family: 'DM Sans', sans-serif;
}

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════
   HERO SECTION - Dark Abstract Theme
   ════════════════════════════════════════════════════════ */
.gc-hero {
    position: relative;
    height: 50vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Deep Navy Base Gradient */
    background: linear-gradient(135deg, #062037 0%, #041425 50%, #020a15 100%);
}

/* Abstract Glows matching the screenshot */
.gc-hero__bg-glow {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle 400px at 20% 30%, rgba(6, 32, 55, 0.8) 0%, transparent 70%),
        radial-gradient(circle 500px at 80% 70%, rgba(197, 160, 84, 0.15) 0%, transparent 60%),
        radial-gradient(circle 600px at 50% 120%, rgba(6, 32, 55, 0.6) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes heroGlow {
    from { opacity: .7; transform: scale(1) rotate(0deg); }
    to   { opacity: 1;  transform: scale(1.05) rotate(1deg); }
}

/* Subtle Grain/Noise Texture Overlay */
.gc-hero__grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

/* Content Container */
.gc-hero__content { 
    position: relative; 
    text-align: center; 
    padding: 0 20px; 
    z-index: 3;
}

/* Gift Box Visual */
.gc-hero__visual {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.gc-hero__gift-svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 15px rgba(197, 168, 84, 0.3));
    animation: floatGift 4s ease-in-out infinite;
}

@keyframes floatGift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Typography on Dark Background */
.gc-hero__eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #C5A054; /* Gold */
    margin-bottom: 12px;
    opacity: .9;
}

.gc-hero__title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    color: #FAF7F2; /* Cream White for contrast */
}

.gc-hero__title em {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    color: #C5A054; /* Gold highlight */
    font-size: 1.15em;
}

.gc-hero__sub {
    margin-top: 16px;
    font-size: .92rem;
    color: rgba(250, 247, 242, 0.6); /* Muted Cream */
    letter-spacing: .06em;
    font-weight: 300;
}

/* Scroll Hint */
.gc-hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.gc-hero__scroll-hint span {
    display: block;
    width: 2px;
    height: 8px;
    background: #C5A054; /* Gold */
    border-radius: 2px;
    animation: scrollHint 1.4s ease-in-out infinite;
}

.gc-hero__scroll-hint span:nth-child(2) { animation-delay: .15s; }
.gc-hero__scroll-hint span:nth-child(3) { animation-delay: .30s; }

@keyframes scrollHint {
    0%, 100% { opacity: .2; transform: scaleY(.6); }
    50%       { opacity: 1; transform: scaleY(1); }
}

/* ════════════════════════════════════════════════════════
   HERO RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .gc-hero {
        height: 45vh;
        min-height: 360px;
    }
    .gc-hero__gift-svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .gc-hero {
        height: 40vh;
        min-height: 320px;
    }
    .gc-hero__gift-svg {
        width: 50px;
        height: 50px;
    }
    .gc-hero__sub {
        font-size: .85rem;
        padding: 0 20px;
    }
}

/* ════════════════════════════════════════════════════════
   PAGE WRAPPER
   ════════════════════════════════════════════════════════ */
.gc-page {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ── STEP INDICATOR ─────────────────────────────────────── */
.gc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 40px 0 48px;
    overflow-x: auto;
}

.gc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 110px;
    opacity: .4;
    transition: opacity var(--gc-transition);
    cursor: default;
}

.gc-step.active { opacity: 1; }

.gc-step__num {
    font-family: 'Cinzel', serif;
    font-size: .7rem;
    letter-spacing: .1em;
    background: #062037;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(6, 32, 55, 0.3);
    border: 1px solid var(--gc-gold);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background var(--gc-transition), box-shadow var(--gc-transition);
}

.gc-step.active .gc-step__num {
    background: #062037;
    color: white;
    box-shadow: 0 0 18px rgba(197,160,84,.5);
}

.gc-step__label {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gc-muted);
    white-space: nowrap;
}

.gc-step.active .gc-step__label { color: var(--gc-gold-light); }

.gc-step__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gc-gold), transparent);
    min-width: 40px;
    opacity: .3;
}

/* ── TWO COLUMN LAYOUT ──────────────────────────────────── */
.gc-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: start;
    padding: 50px 20px;
}

/* ════════════════════════════════════════════════════════
   CONTROL PANELS
   ════════════════════════════════════════════════════════ */
.gc-controls { display: flex; flex-direction: column; gap: 28px; }

.gc-panel {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(6, 32, 55, 0.04);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius);
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
}

.gc-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(197,160,84,.04) 0%, transparent 60%);
    pointer-events: none;
}

.gc-panel__title {
    font-family: 'Cinzel', serif;
    font-size: .9rem;
    letter-spacing: .12em;
    color: var(--gc-gold);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-panel__num {
    background: #ffffff;
    border: 1px solid #062037;
    color: #062037;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: .7rem;
}

/* ── OCCASIONS ──────────────────────────────────────────── */
.gc-occasions__group-label {
    font-size: .65rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gc-muted);
    margin-bottom: 12px;
    margin-top: 4px;
}

.gc-occasions__group-label.full-width { grid-column: 1 / -1; margin-top: 16px; }

.gc-occasions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    align-items: start;
}

.gc-occasion-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #ffffff;
    border: 1px solid rgba(6, 32, 55, .10);
    border-radius: 12px;
    cursor: pointer;
    color: var(--gc-text);
    transition: all var(--gc-transition);
    position: relative;
    overflow: hidden;
}

.gc-occasion-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--th-c,#C5A054), var(--th-d,#DCC07A));
    opacity: 0;
    transition: opacity var(--gc-transition);
}

.gc-occasion-btn:hover {
    border-color: rgba(197,160,76,.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6,32,55,.08);
}

.gc-occasion-btn.active {
    border-color: var(--gc-gold);
    background: rgba(197,160,76,.08);
    box-shadow: 0 0 0 1px var(--gc-gold), 0 6px 24px rgba(197,160,76,.15);
}

.gc-occ__icon { font-size: 1.6rem; line-height: 1; }
.gc-occ__name {
    font-size: .65rem;
    letter-spacing: .05em;
    text-align: center;
    color: var(--gc-muted);
}

.gc-occasion-btn.active .gc-occ__name { color: var(--gc-gold-light); font-weight: 600; }

/* ── AMOUNTS ────────────────────────────────────────────── */
.gc-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gc-amount-btn {
    padding: 14px 8px;
    background: #ffffff;
    border: 1px solid rgba(6, 32, 55, .10);
    border-radius: 10px;
    cursor: pointer;
    color: var(--gc-text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--gc-transition);
}

.gc-amount-btn:hover {
    border-color: rgba(197,160,76,.4);
    transform: translateY(-1px);
}

.gc-amount-btn.active {
    border-color: var(--gc-gold);
    background: rgba(197,160,76,.08);
    color: var(--gc-gold-light);
    box-shadow: 0 0 0 1px var(--gc-gold);
}

.gc-amount-btn--custom {
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gc-muted);
    border-style: dashed;
}

.gc-amount-btn--custom.active { color: var(--gc-gold-light); }

/* Custom amount input */
.gc-custom-amount {
    margin-top: 16px;
    animation: slideDown .3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gc-input-label {
    display: block;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gc-muted);
    margin-bottom: 8px;
}

.gc-input-wrap { position: relative; display: flex; align-items: center; }

.gc-input-prefix {
    position: absolute;
    left: 14px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--gc-gold);
    pointer-events: none;
    z-index: 1;
}

.gc-input {
    width: 100%;
    background: #FAF7F2;
    border: 1px solid rgba(6, 32, 55, .12);
    border-radius: 10px;
    padding: 12px 14px 12px 32px;
    color: var(--gc-text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    outline: none;
    transition: border-color var(--gc-transition), box-shadow var(--gc-transition);
}

.gc-textarea {
    padding-left: 14px;
    resize: none;
    font-size: .95rem;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

.gc-input:focus {
    border-color: var(--gc-gold);
    box-shadow: 0 0 0 3px rgba(197,160,76,.12);
}

/* ── FORM ───────────────────────────────────────────────── */
.gc-form { display: flex; flex-direction: column; gap: 18px; }

.gc-field { display: flex; flex-direction: column; gap: 6px; position: relative; }

.gc-char-count {
    font-size: .68rem;
    color: var(--gc-muted);
    text-align: right;
    margin-top: 4px;
}

/* ── BUY BUTTON ─────────────────────────────────────────── */
.gc-panel--cta {
    background: transparent;
    border: none;
    padding: 0;
}

.gc-btn-buy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: linear-gradient(135deg, #062037 0%, #041425 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform var(--gc-transition), box-shadow var(--gc-transition);
    gap: 12px;
}

.gc-btn-buy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 50%);
    opacity: 0;
    transition: opacity var(--gc-transition);
}

.gc-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(6, 32, 55, .35);
}

.gc-btn-buy:hover::before { opacity: 1; }

.gc-btn-buy__text {
    font-family: 'Cinzel', serif;
    font-size: .88rem;
    letter-spacing: .12em;
    font-weight: 600;
}

.gc-btn-buy__amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-left: auto;
    color: var(--gc-gold);
}

.gc-btn-buy__arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gc-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .7rem;
    color: var(--gc-muted);
    letter-spacing: .06em;
}

.gc-secure-note svg { width: 13px; height: 13px; opacity: .6; }

/* ════════════════════════════════════════════════════════
   PREVIEW PANEL
   ════════════════════════════════════════════════════════ */
.gc-preview-panel {
    position: relative;
}

.gc-preview-sticky {
    position: sticky;
    top: 100px; /* adjust based on navbar */
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(6, 32, 55, .10);
    box-shadow: 0 10px 40px rgba(6,32,55,0.06);
    z-index: 1;
}

/* DELIVERY SECTION */
.gc-delivery {
    margin-top: 25px;
}

.gc-delivery-title {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    color: #062037;
    margin-bottom: 12px;
}

/* OPTIONS */
.gc-delivery-options {
    display: flex;
    gap: 12px;
}

.gc-delivery-box {
    flex: 1;
    border: 1px solid rgba(6, 32, 55, .15);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
    position: relative;
}

.gc-delivery-box input {
    position: absolute;
    opacity: 0;
}

.gc-delivery-box:hover {
    border-color: var(--gc-gold);
    transform: translateY(-2px);
}

.gc-delivery-box input:checked + .gc-delivery-content {
    color: #062037;
    font-weight: 600;
}

/* CONTENT */
.gc-delivery-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-delivery-icon {
    font-size: 20px;
}

/* INPUT */
.gc-delivery-input {
    margin-top: 12px;
}

.gc-delivery-input input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(6, 32, 55, .15);
    background: #FAF7F2;
}

.gc-delivery-input input:focus {
    border-color: #062037;
    outline: none;
    box-shadow: 0 0 0 2px rgba(6,32,55,.08);
}

.gc-preview-label {
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gc-muted);
    text-align: center;
    margin-bottom: 20px;
}

/* ── CARD STAGE ─────────────────────────────────────────── */
.gc-card-stage {
    perspective: 1200px;
    width: 100%;
    max-width: var(--gc-card-w);
    margin: 0 auto;
}

.gc-card {
    width: 100%;
    aspect-ratio: 1.58 / 1; /* Standard credit card aspect ratio */
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 24px 64px rgba(6,32,55,.25),
                0 4px 16px rgba(6,32,55,.1),
                0 0 0 1px rgba(197,160,76,.2);
    cursor: pointer;
}

/* ── CARD LAYERS ────────────────────────────────────────── */
.gc-card__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--th-a) 0%, var(--th-b) 100%);
    transition: background var(--gc-transition);
}

.gc-card__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gc-card__pattern {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image:
        radial-gradient(circle at 20% 20%, var(--th-c) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, var(--th-c) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, var(--th-d) .5px, transparent .5px);
    background-size: 40px 40px, 40px 40px, 20px 20px;
    transition: var(--gc-transition);
}

.gc-card__glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse 60% 40% at 50% 0%,
                var(--th-c) 0%, transparent 70%);
    opacity: .18;
    transition: var(--gc-transition);
}

.gc-card__holo {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background: conic-gradient(
        from 0deg,
        rgba(255,255,255,0),
        rgba(255,200,100,.3),
        rgba(255,255,255,.4),
        rgba(100,200,255,.3),
        rgba(255,100,200,.2),
        rgba(255,255,255,0)
    );
    border-radius: 50%;
    opacity: .5;
    animation: holoSpin 6s linear infinite;
}

@keyframes holoSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── CARD INNER CONTENT ─────────────────────────────────── */
.gc-card__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 22px 16px;
    backface-visibility: hidden;
    z-index: 2;
}

.gc-card__brand {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.gc-card__brand-name {
    font-family: 'Cinzel', serif;
    font-size: .85rem;
    letter-spacing: .22em;
    color: var(--gc-gold);
    font-weight: 700;
}

.gc-card__brand-sub {
    font-size: .55rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
}

.gc-card__occasion-badge {
    position: absolute;
    top: 16px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(6, 32, 55, .6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 4px 10px 4px 6px;
}

.gc-card__occasion-badge span:first-child { font-size: .9rem; }

#cardOccasionLabel {
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}

.gc-card__center {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gc-card__amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--th-d, #DCC07A);
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
    transition: color var(--gc-transition);
}

.gc-card__amount-label {
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-top: 4px;
}

.gc-card__message-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gc-card__to {
    font-size: .65rem;
    color: rgba(255,255,255,.55);
    letter-spacing: .05em;
}

.gc-card__to em,
.gc-card__from em {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    color: rgba(255,255,255,.8);
    font-size: 1.1em;
}

.gc-card__msg {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    line-height: 1.4;
}

.gc-card__from {
    font-size: .62rem;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}

.gc-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 10px;
    margin-top: 6px;
}

.gc-card__code-label {
    display: block;
    font-size: .5rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
}

.gc-card__code-val {
    font-family: 'DM Sans', sans-serif;
    font-size: .68rem;
    letter-spacing: .1em;
    color: var(--gc-gold);
    opacity: .7;
}

.gc-card__validity {
    font-size: .55rem;
    color: rgba(255,255,255,.3);
    letter-spacing: .08em;
}

/* ── PARTICLE dots ──────────────────────────────────────── */
.gc-particle {
    position: absolute;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    animation: floatParticle var(--dur, 4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: var(--op, 0.3);
}

@keyframes floatParticle {
    0%   { transform: translate(0, 0) scale(1); opacity: var(--op, .4); }
    50%  { transform: translate(var(--tx, 10px), var(--ty, -15px)) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); opacity: var(--op, .4); }
}

/* ── PREVIEW ACTIONS ────────────────────────────────────── */
.gc-preview-actions { display: flex; justify-content: center; margin-top: 16px; }

.gc-flip-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: rgba(6,32,55,.03);
    border: 1px solid rgba(6,32,55,.10);
    border-radius: 30px;
    cursor: pointer;
    color: var(--gc-muted);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all var(--gc-transition);
}

.gc-flip-btn svg { width: 16px; height: 16px; }

.gc-flip-btn:hover {
    border-color: var(--gc-gold);
    color: var(--gc-gold);
}

/* ── SWATCHES ────────────────────────────────────────────── */
.gc-swatch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    justify-content: center;
}

.gc-swatch-label {
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gc-muted);
}

.gc-swatches { display: flex; gap: 8px; }

.gc-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sw);
    border: 2px solid rgba(255,255,255,.15);
    cursor: pointer;
    transition: all var(--gc-transition);
    position: relative;
}

.gc-swatch::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--gc-gold);
    opacity: 0;
    transition: opacity var(--gc-transition);
}

.gc-swatch.active::after { opacity: 1; }

.gc-swatch:hover { transform: scale(1.15); }

/* ═══════════════════════════════════════════════
   GIFT CARD PREVIEW RESPONSIVE
═══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {

    .gc-preview-sticky {
        position: relative;
        top: auto;
        padding: 20px;
    }

    .gc-card-stage {
        max-width: 420px;
    }

    .gc-card__inner {
        padding: 16px 18px;
    }

    .gc-card__amount {
        font-size: clamp(1.7rem, 5vw, 2.4rem);
    }

    .gc-card__msg {
        font-size: .75rem;
    }

    .gc-card__brand-name {
        font-size: .8rem;
    }

    .gc-card__footer {
        padding-top: 8px;
    }

    .gc-delivery-options {
        flex-direction: row;
    }
}


/* Mobile */
@media (max-width: 768px) {

    .gc-preview-panel {
        width: 100%;
    }

    .gc-preview-sticky {
        position: relative;
        top: auto;
        padding: 16px;
        border-radius: 14px;
    }

    .gc-preview-label {
        margin-bottom: 14px;
        font-size: .62rem;
    }

    .gc-card-stage {
        max-width: 100%;
    }

    .gc-card {
        border-radius: 14px;
    }

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

    .gc-card__brand-name {
        font-size: .72rem;
        letter-spacing: .15em;
    }

    .gc-card__brand-sub {
        font-size: .48rem;
    }

    .gc-card__occasion-badge {
        top: 10px;
        right: 10px;
        padding: 3px 8px;
    }

    #cardOccasionLabel {
        font-size: .5rem;
    }

    .gc-card__amount {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .gc-card__amount-label {
        font-size: .52rem;
    }

    .gc-card__to,
    .gc-card__from {
        font-size: .55rem;
    }

    .gc-card__msg {
        font-size: .68rem;
        line-height: 1.25;
    }

    .gc-card__code-label {
        font-size: .45rem;
    }

    .gc-card__code-val {
        font-size: .58rem;
    }

    .gc-card__validity {
        font-size: .48rem;
    }

    .gc-delivery-options {
        flex-direction: column;
    }

    .gc-delivery-box {
        width: 100%;
    }

    .gc-swatch-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .gc-preview-actions {
        margin-top: 12px;
    }

    .gc-flip-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Small Mobile */
@media (max-width: 480px) {

    .gc-preview-sticky {
        padding: 12px;
    }

    .gc-card {
        border-radius: 12px;
    }

    .gc-card__inner {
        padding: 12px;
    }

    .gc-card__brand-name {
        font-size: .65rem;
        letter-spacing: .12em;
    }

    .gc-card__brand-sub {
        display: none;
    }

    .gc-card__occasion-badge {
        transform: scale(.85);
        transform-origin: top right;
    }

    .gc-card__amount {
        font-size: 1.35rem;
    }

    .gc-card__amount-label {
        font-size: .45rem;
        margin-top: 2px;
    }

    .gc-card__to,
    .gc-card__from {
        font-size: .5rem;
    }

    .gc-card__msg {
        font-size: .6rem;
        line-height: 1.2;
    }

    .gc-card__footer {
        padding-top: 6px;
        margin-top: 4px;
    }

    .gc-card__code-label {
        font-size: .4rem;
    }

    .gc-card__code-val {
        font-size: .52rem;
    }

    .gc-card__validity {
        font-size: .42rem;
    }

    .gc-card__holo {
        width: 55px;
        height: 55px;
    }

    .gc-swatch {
        width: 18px;
        height: 18px;
    }

    .gc-swatch-label {
        font-size: .55rem;
    }

    .gc-delivery-title {
        font-size: 12px;
    }

    .gc-delivery-content {
        gap: 8px;
    }

    .gc-delivery-icon {
        font-size: 16px;
    }
}


/* Extra Small Devices */
@media (max-width: 360px) {

    .gc-card__inner {
        padding: 10px;
    }

    .gc-card__amount {
        font-size: 1.15rem;
    }

    .gc-card__msg {
        font-size: .55rem;
    }

    .gc-card__brand-name {
        font-size: .58rem;
    }

    .gc-card__footer {
        flex-direction: row;
        align-items: center;
    }

    .gc-card__code-val {
        font-size: .48rem;
    }

    .gc-card__validity {
        font-size: .38rem;
    }

    .gc-particle {
        display: none;
    }
}

/* ── VARIANT TINTS ──────────────────────────────────────── */
[data-variant="1"] .gc-card__bg { filter: hue-rotate(30deg) saturate(1.2); }
[data-variant="2"] .gc-card__bg { filter: hue-rotate(60deg) saturate(.9); }
[data-variant="3"] .gc-card__bg { filter: hue-rotate(-20deg) brightness(.85) saturate(1.3); }

/* ════════════════════════════════════════════════════════
   DENOMINATIONS SECTION
   ════════════════════════════════════════════════════════ */
.gc-denominations {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--gc-border);
}

.gc-denom-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: .12em;
    color: var(--gc-gold-light);
    text-align: center;
    margin-bottom: 36px;
}

.gc-denom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.gc-denom-card {
    background: #ffffff;
    border: 1px solid var(--gc-border);
    border-radius: 14px;
    padding: 28px 20px 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--gc-transition);
}

.gc-denom-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(197,160,76,.06), transparent);
    opacity: 0;
    transition: opacity var(--gc-transition);
}

.gc-denom-card:hover {
    transform: translateY(-4px);
    border-color: var(--gc-gold);
    box-shadow: 0 12px 40px rgba(6,32,55,.08), 0 0 0 1px var(--gc-gold);
}

.gc-denom-card:hover::before { opacity: 1; }

.gc-denom-card__tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffffff;
    background: #062037;
    border-radius: 20px;
    padding: 3px 8px;
    font-weight: 600;
}

.gc-denom-card__amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gc-gold-light);
    margin-bottom: 4px;
}

.gc-denom-card__desc {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gc-muted);
    margin-bottom: 20px;
}

.gc-denom-card__btn {
    display: inline-block;
    padding: 8px 22px;
    background: rgba(6,32,55,.05);
    border: 1px solid var(--gc-gold);
    border-radius: 30px;
    cursor: pointer;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gc-gold-light);
    transition: all var(--gc-transition);
}

.gc-denom-card__btn:hover {
    background: #062037;
    color: #ffffff;
}

/* ════════════════════════════════════════════════════════
   TOAST
   ════════════════════════════════════════════════════════ */
.gc-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #062037;
    color: white;
    border-radius: 30px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    pointer-events: none;
    opacity: 0;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    z-index: 9999;
    white-space: nowrap;
}

.gc-toast svg { width: 18px; height: 18px; }

.gc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.gc-toast--error {
    background: #7f1d1d;
}

.gc-toast--info {
    background: #1e3a5f;
}

.gc-occasion-btn, .gc-amount-btn {
    background: #ffffff;
    border: 1px solid rgba(6, 32, 55, .10);
}

.gc-occasion-btn.active, .gc-amount-btn.active {
    background: #062037;
    color: #ffffff;
    border-color: #062037;
}

.gc-occasion-btn.active .gc-occ__name { color: #ffffff; }

.gc-input {
    background: #FAF7F2;
    border: 1px solid rgba(6, 32, 55, .12);
}

.gc-input:focus {
    border-color: #062037;
}

/* Browse Button */
.gc-browse-btn {
    background: none; border: none; color: var(--gc-black);
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; cursor: pointer; display: flex; align-items: center; gap: 5px;
}

/* Modal Core */
.gc-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.gc-modal.active { display: flex; }
.gc-modal-backdrop {
    position: absolute; inset: 0; background: rgba(6, 32, 55, 0.4); backdrop-filter: blur(4px);
}
.gc-modal-content {
    position: relative; background: #fff; width: 100%; max-width: 700px;
    border-radius: 12px; box-shadow: 0 20px 50px rgba(6,32,55,0.15);
    overflow: hidden; animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px); } }

/* Header */
.gc-modal-header { padding: 20px 30px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.gc-modal-title { font-family: 'Cinzel', serif; font-size: 1.2rem; color: #062037; }
.gc-modal-close { background: #f5f5f5; border: none; font-size: 24px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: #062037; }

/* Body & Tabs */
.gc-modal-body { padding: 30px; }
.gc-modal-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.gc-tab-btn {
    padding: 8px 20px; border: 1px solid #eee; border-radius: 30px;
    background: #fff; color: #062037; white-space: nowrap; cursor: pointer; transition: 0.3s;
}
.gc-tab-btn.active { border-color: #062037; background: rgba(6,32,55,.05); color: #062037; }

/* Suggestions */
.gc-suggestions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.gc-suggestion-card {
    padding: 15px; border: 1px solid #eee; border-radius: 10px; font-size: 0.85rem;
    color: #6b7d8e; cursor: pointer; transition: 0.3s; line-height: 1.5;
}
.gc-suggestion-card:hover { border-color: #062037; background: #FAF7F2; }

/* Footer */
.gc-modal-footer { padding: 20px 30px; display: flex; gap: 15px; }
.gc-btn-cancel { flex: 1; padding: 14px; border-radius: 30px; border: 1px solid #062037; background: #fff; color: #062037; font-weight: 600; cursor: pointer; }
.gc-btn-add {
    flex: 1; padding: 14px; border-radius: 30px; border: none;
    background: #062037; color: #fff; font-weight: 600; cursor: pointer;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}

.gc-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gc-payment-modal.active {
    display: flex;
}

.gc-payment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 15, 0.55);
    backdrop-filter: blur(5px);
}

.gc-payment-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 25px 65px rgba(6,32,55, 0.3);
    overflow: hidden;
}

.gc-payment-modal__header,
.gc-payment-modal__footer {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gc-payment-modal__header {
    border-bottom: 1px solid #eee;
}

.gc-payment-modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #062037;
}

.gc-payment-modal__close {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    color: #062037;
}

.gc-payment-modal__body {
    padding: 18px 22px;
}

.gc-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(6,32,55, 0.15);
}

.gc-payment-row span {
    color: #6b7d8e;
}

.gc-payment-row strong {
    color: #062037;
}

.gc-payment-row--total {
    border-bottom: none;
    font-size: 1.08rem;
}

.gc-payment-row--total strong {
    color: #062037;
}

.gc-payment-hint {
    margin: 0 0 12px;
    padding: 0 4px;
    font-size: 13px;
    color: #6b7280;
}

.gc-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.gc-pay-method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
    text-align: left;
}

.gc-pay-method:hover:not(:disabled) {
    border-color: #C9A84C;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.15);
}

.gc-pay-method:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gc-pay-method--razorpay {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.gc-pay-method--razorpay .gc-pay-method__sub {
    color: rgba(255, 255, 255, 0.75);
}

.gc-pay-method__title {
    font-size: 15px;
    font-weight: 600;
}

.gc-pay-method__sub {
    font-size: 12px;
    color: #6b7280;
}

.gc-payment-row--wallet strong {
    color: #15803d;
}

#gcToast {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-payment-modal__footer {
    border-top: 1px solid #eee;
    gap: 12px;
}

.gc-payment-modal__footer .gc-btn-cancel,
.gc-payment-modal__footer .gc-btn-add {
    margin: 0;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .gc-layout { 
        grid-template-columns: 1fr; 
        gap: 32px;
        padding: 30px 0;
    }
    .gc-preview-sticky {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .gc-hero {
        height: 30vh;
        min-height: 220px;
    }
    .gc-panel {
        padding: 22px 18px 20px;
    }
    .gc-occasions__grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 12px;
    }
    .gc-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    .gc-suggestions-grid {
        grid-template-columns: 1fr;
    }
    .gc-modal-body {
        padding: 20px;
    }
     .gc-modal-content {
        width: 92%;
        max-height: 75vh;
        display: flex;
        flex-direction: column;
    }

    .gc-modal-body {
        padding: 16px;
        overflow-y: auto;
        max-height: calc(75vh - 130px);
    }

    .gc-suggestions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gc-suggestion-card {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gc-page {
        padding: 0 16px 60px;
    }
    .gc-layout {
        padding: 20px 0;
        gap: 24px;
    }
    .gc-hero {
        height: 25vh;
        min-height: 180px;
    }
    .gc-panel {
        padding: 18px 14px 16px;
        border-radius: 12px;
    }
    .gc-panel__title {
        font-size: .82rem;
        margin-bottom: 16px;
    }
    .gc-occasions__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .gc-occasion-btn {
        padding: 10px 6px;
    }
    .gc-occ__icon { font-size: 1.3rem; }
    .gc-occ__name { font-size: .60rem; }
    
    .gc-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gc-amount-btn {
        padding: 12px 6px;
        font-size: 1rem;
    }
    
    .gc-preview-sticky {
        padding: 18px 14px;
    }
    .gc-card-stage {
        max-width: 100%;
    }
    
    .gc-btn-buy {
        padding: 16px 20px;
        flex-wrap: wrap;    
        justify-content: center;
        text-align: center;
        gap: 8px;
    }
    .gc-btn-buy__text { width: 100%; order: 1; }
    .gc-btn-buy__amount { margin-left: 0; order: 2; }
    .gc-btn-buy__arrow { display: none; }
    
    .gc-modal-content, .gc-payment-modal__dialog {
        width: 95%;
        border-radius: 12px;
    }
    .gc-modal-footer, .gc-payment-modal__footer {
        flex-direction: column-reverse;
    }
    .gc-modal-footer button, .gc-payment-modal__footer button {
        width: 100%;
    }
     .gc-modal {
        padding: 10px;
        align-items: center;
    }

    .gc-modal-content {
        width: 100%;
        max-height: 65vh;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
    }

    .gc-modal-header {
        padding: 14px 16px;
    }

    .gc-modal-body {
        padding: 14px;
        overflow-y: auto;
        max-height: calc(65vh - 120px);
    }

    .gc-modal-title {
        font-size: 15px;
    }

    .gc-suggestion-card {
        padding: 10px;
        font-size: 12px;
        line-height: 1.4;
    }

    .gc-modal-footer {
        padding: 14px;
        gap: 10px;
    }

    .gc-btn-cancel,
    .gc-btn-add {
        padding: 12px;
        font-size: 13px;
    }
    .gc-denominations {
        margin-top: 50px;
        padding-top: 40px;
    }
    .gc-denom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gc-denom-card {
        padding: 20px 14px 18px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   GIFT CARD HISTORY — Zayyora Fine Jewellery
   Primary Theme: #062037 (Deep Navy)
   ═══════════════════════════════════════════════════════════════ */

/* ── Theme Variables ────────────────────────────────────────── */
:root {
    --gh-primary:        #062037;
    --gh-primary-dark:   #041525;
    --gh-primary-mid:    #0a3052;
    --gh-primary-light:  #0e4068;
    --gh-primary-pale:   #132f4c;

    --gh-accent:         #c9a84c;
    --gh-accent-light:   #dfc475;
    --gh-accent-glow:    rgba(201, 168, 76, .25);

    --gh-bg:             #f0f4f8;
    --gh-bg-card:        #ffffff;
    --gh-bg-subtle:      #e8eef5;
    --gh-bg-muted:       #dfe8f0;

    --gh-text:           #062037;
    --gh-text-secondary: #3a5a75;
    --gh-text-muted:     #6b8ca8;
    --gh-text-faint:     #94afc4;

    --gh-border:         #c8d9e8;
    --gh-border-light:   #dfe8f0;
    --gh-border-accent:  rgba(201, 168, 76, .35);

    --gh-success:        #0d7a40;
    --gh-success-bg:     #e6f7ee;
    --gh-error:          #b91c1c;
    --gh-error-bg:       #fef2f2;
    --gh-warning:        #b45309;
    --gh-warning-bg:     #fef9ee;
    --gh-info:           #1d4ed8;
    --gh-info-bg:        #eff4ff;
    --gh-pending:        #6b21a8;
    --gh-pending-bg:     #f5f0ff;

    --gh-radius-sm:      8px;
    --gh-radius:         12px;
    --gh-radius-lg:      16px;
    --gh-radius-xl:      20px;
    --gh-radius-full:    50px;

    --gh-shadow-sm:      0 2px 8px rgba(6, 32, 55, .06);
    --gh-shadow:         0 4px 16px rgba(6, 32, 55, .08);
    --gh-shadow-lg:      0 8px 32px rgba(6, 32, 55, .10);
    --gh-shadow-xl:      0 16px 48px rgba(6, 32, 55, .12);

    --gh-transition:     all .25s cubic-bezier(.4, 0, .2, 1);
}


/* ── Page Wrapper ───────────────────────────────────────────── */
.gift-history-page {
    width: 100%;
    display: grid;
    gap: 20px;
    padding: 0 clamp(12px, 4vw, 40px);
    max-width: 1360px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════════
   HEADER BANNER
   ═══════════════════════════════════════════════════════════════ */
.gift-history-head {
    background: linear-gradient(135deg, #062037 0%, #0a3052 50%, #0e4068 100%);
    border-radius: var(--gh-radius-xl);
    padding: clamp(20px, 4vw, 32px) clamp(18px, 4vw, 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.gift-history-head::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 168, 76, .12) 0%, transparent 70%);
    pointer-events: none;
}

.gift-history-head::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 168, 76, .08) 0%, transparent 70%);
    pointer-events: none;
}

.gift-history-head > div {
    position: relative;
    z-index: 1;
}

.gift-history-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

.gift-history-head p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: clamp(.82rem, 1.8vw, .92rem);
    max-width: 520px;
    line-height: 1.55;
}

.gift-history-buy-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gh-accent);
    color: var(--gh-primary) !important;
    border-radius: var(--gh-radius-full);
    padding: 11px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
    border: 2px solid var(--gh-accent);
    transition: var(--gh-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.gift-history-buy-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.gift-history-buy-btn:hover {
    color: var(--gh-accent) !important;
    background: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--gh-accent-glow);
}


/* ═══════════════════════════════════════════════════════════════
   WALLET BAR
   ═══════════════════════════════════════════════════════════════ */
.gift-wallet-bar {
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border-light);
    border-radius: var(--gh-radius-xl);
    padding: clamp(16px, 3vw, 24px) clamp(16px, 3vw, 28px);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--gh-shadow);
}

.gift-wallet-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.gift-wallet-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--gh-radius);
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-primary-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gift-wallet-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gh-accent);
}

.gift-wallet-label {
    font-size: .78rem;
    color: var(--gh-text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
}

.gift-wallet-amount {
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    color: var(--gh-primary);
    letter-spacing: -.02em;
    line-height: 1.2;
}

.gift-wallet-divider {
    width: 1px;
    height: 44px;
    background: var(--gh-border);
    flex-shrink: 0;
}

.gift-redeem-form {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.gift-redeem-form input {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 340px;
    border-radius: var(--gh-radius);
    border: 1.5px solid var(--gh-border);
    padding: 11px 14px;
    font-size: .88rem;
    color: var(--gh-text);
    background: var(--gh-bg);
    outline: none;
    transition: var(--gh-transition);
}

.gift-redeem-form input::placeholder {
    color: var(--gh-text-faint);
}

.gift-redeem-form input:focus {
    border-color: var(--gh-primary);
    box-shadow: 0 0 0 3px rgba(6, 32, 55, .08);
    background: #fff;
}

.gift-redeem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid var(--gh-primary);
    background: var(--gh-primary);
    color: #fff;
    border-radius: var(--gh-radius);
    padding: 11px 18px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    transition: var(--gh-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.gift-redeem-btn:hover {
    background: transparent;
    color: var(--gh-primary);
}

.gift-redeem-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.gift-redeem-btn.loading .gift-redeem-label {
    visibility: hidden;
}

.gift-redeem-btn.loading .gift-redeem-spinner {
    display: block;
}

.gift-redeem-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ghSpin .6s linear infinite;
    position: absolute;
}

.gift-redeem-btn:not(:disabled):not(.loading):hover .gift-redeem-spinner {
    border-color: rgba(6, 32, 55, .2);
    border-top-color: var(--gh-primary);
}

@keyframes ghSpin {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.gift-history-section {
    display: grid;
    gap: 14px;
}

.gift-history-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gift-history-section-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--gh-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gift-history-section-icon svg {
    width: 18px;
    height: 18px;
}

.gift-history-section-icon--received {
    background: var(--gh-info-bg);
    color: var(--gh-info);
}

.gift-history-section-icon--sent {
    background: var(--gh-success-bg);
    color: var(--gh-success);
}

.gift-history-section-head h3 {
    margin: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--gh-primary);
    font-weight: 700;
}

.gift-history-section-count {
    font-size: .76rem;
    font-weight: 600;
    color: var(--gh-text-muted);
    background: var(--gh-bg-subtle);
    padding: 4px 12px;
    border-radius: var(--gh-radius-full);
    letter-spacing: .3px;
}


/* ═══════════════════════════════════════════════════════════════
   CARD GRID
   ═══════════════════════════════════════════════════════════════ */
.gift-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 16px;
}


/* ═══════════════════════════════════════════════════════════════
   GIFT CARD
   ═══════════════════════════════════════════════════════════════ */
.gift-history-card {
    background: var(--gh-bg-card);
    border-radius: var(--gh-radius-lg);
    border: 1px solid var(--gh-border-light);
    overflow: hidden;
    box-shadow: var(--gh-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--gh-transition);
}

.gift-history-card:hover {
    box-shadow: var(--gh-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--gh-border);
}

.gift-history-card.card-expired {
    opacity: .7;
}

.gift-history-card.card-expired:hover {
    opacity: .85;
}

/* Accent stripe at top */
.gift-history-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--gh-primary), var(--gh-accent));
    flex-shrink: 0;
}

.gift-history-card-body {
    padding: clamp(14px, 3vw, 20px);
    display: grid;
    gap: 12px;
    flex: 1;
}


/* ── Card: Status + Date ────────────────────────────────────── */
.gift-history-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gift-history-status {
    font-size: .7rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: var(--gh-radius-full);
    font-weight: 700;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-sent {
    background: var(--gh-success-bg);
    color: var(--gh-success);
}

.status-received {
    background: var(--gh-info-bg);
    color: var(--gh-info);
}

.status-paid {
    background: var(--gh-warning-bg);
    color: var(--gh-warning);
}

.status-expired {
    background: var(--gh-error-bg);
    color: var(--gh-error);
}

.status-redeemed {
    background: var(--gh-success-bg);
    color: var(--gh-success);
}

.status-pending {
    background: var(--gh-pending-bg);
    color: var(--gh-pending);
}

.gift-history-date {
    color: var(--gh-text-muted);
    font-size: .78rem;
    font-weight: 500;
}


/* ── Card: Amount ───────────────────────────────────────────── */
.gift-history-card-amount-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.gift-history-card-amount {
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    font-weight: 800;
    color: var(--gh-primary);
    letter-spacing: -.03em;
    line-height: 1;
}

.gift-history-card-amount-tag {
    font-size: .7rem;
    font-weight: 600;
    color: var(--gh-accent);
    background: rgba(201, 168, 76, .1);
    padding: 3px 8px;
    border-radius: var(--gh-radius-full);
    text-transform: uppercase;
    letter-spacing: .4px;
}


/* ── Card: Code Box ─────────────────────────────────────────── */
.gift-history-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--gh-bg);
    border: 1px solid var(--gh-border-light);
    border-radius: var(--gh-radius);
    padding: 10px 12px;
}

.gift-history-code {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: .82rem;
    color: var(--gh-text-secondary);
    letter-spacing: .8px;
    word-break: break-all;
}

.gift-history-code-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-sm);
    background: var(--gh-bg-card);
    cursor: pointer;
    transition: var(--gh-transition);
    flex-shrink: 0;
}

.gift-history-code-copy svg {
    width: 15px;
    height: 15px;
    color: var(--gh-text-muted);
    transition: var(--gh-transition);
}

.gift-history-code-copy:hover {
    border-color: var(--gh-primary);
    background: var(--gh-primary);
}

.gift-history-code-copy:hover svg {
    color: #fff;
}


/* ── Card: Meta Grid ────────────────────────────────────────── */
.gift-history-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gift-history-meta-item {
    min-width: 0;
}

.gift-history-meta-label {
    display: block;
    font-size: .72rem;
    color: var(--gh-text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 600;
}

.gift-history-meta-value {
    display: block;
    color: var(--gh-text);
    font-weight: 600;
    font-size: .88rem;
    word-break: break-word;
    line-height: 1.35;
}


/* ── Card: Message ──────────────────────────────────────────── */
.gift-history-message {
    margin: 0;
    padding: 10px 14px;
    border-left: 3px solid var(--gh-accent);
    background: rgba(201, 168, 76, .06);
    border-radius: 0 var(--gh-radius-sm) var(--gh-radius-sm) 0;
    font-size: .84rem;
    color: var(--gh-text-secondary);
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.gift-history-empty {
    background: var(--gh-bg-card);
    border: 2px dashed var(--gh-border);
    border-radius: var(--gh-radius-xl);
    text-align: center;
    padding: clamp(30px, 6vw, 50px) clamp(20px, 4vw, 36px);
    grid-column: 1 / -1;
}

.gift-history-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gh-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.gift-history-empty-icon svg {
    width: 26px;
    height: 26px;
    color: var(--gh-text-muted);
}

.gift-history-empty h3 {
    margin: 0;
    color: var(--gh-primary);
    font-size: 1.1rem;
}

.gift-history-empty p {
    color: var(--gh-text-muted);
    font-size: .88rem;
    margin: 6px 0 0;
    line-height: 1.55;
}

.gift-history-empty .gift-history-buy-btn {
    display: inline-flex;
    margin-top: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
.gift-history-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gh-primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--gh-radius-full);
    font-size: .86rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--gh-shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    z-index: 9999;
    pointer-events: none;
}

.gift-history-toast svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.gift-history-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════════════════════════ */

/* ── Small phones (≤ 380px) ─────────────────────────────────── */
@media (max-width: 380px) {
    .gift-history-head {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .gift-history-buy-btn {
        width: 100%;
        justify-content: center;
    }

    .gift-wallet-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .gift-wallet-info {
        justify-content: flex-start;
    }

    .gift-wallet-divider {
        width: 100%;
        height: 1px;
    }

    .gift-redeem-form {
        flex-direction: column;
    }

    .gift-redeem-form input {
        max-width: 100%;
    }

    .gift-redeem-btn {
        width: 100%;
        justify-content: center;
    }

    .gift-history-meta {
        grid-template-columns: 1fr;
    }

    .gift-history-card-amount-row {
        flex-direction: column;
        gap: 4px;
    }
}

/* ── Phones (≤ 576px) ───────────────────────────────────────── */
@media (max-width: 576px) {
    .gift-history-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .gift-history-buy-btn {
        align-self: flex-start;
    }

    .gift-wallet-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .gift-wallet-divider {
        width: 100%;
        height: 1px;
    }

    .gift-redeem-form {
        flex-direction: column;
    }

    .gift-redeem-form input {
        max-width: 100%;
    }

    .gift-redeem-btn {
        width: 100%;
        justify-content: center;
    }

    .gift-history-grid {
        grid-template-columns: 1fr;
    }

    .gift-history-meta {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Tablets (577px – 768px) ─────────────────────────────────── */
@media (min-width: 577px) and (max-width: 768px) {
    .gift-history-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gift-wallet-bar {
        flex-wrap: wrap;
    }

    .gift-redeem-form {
        flex: 1 1 100%;
    }

    .gift-redeem-form input {
        max-width: 100%;
        flex: 1;
    }
}

/* ── Small laptops (769px – 1024px) ──────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .gift-history-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Desktops (≥ 1025px) ────────────────────────────────────── */
@media (min-width: 1025px) {
    .gift-history-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Large desktops (≥ 1360px) ───────────────────────────────── */
@media (min-width: 1360px) {
    .gift-history-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* ── Hover: only for devices that support it ─────────────────── */
@media (hover: hover) {
    .gift-history-card:hover {
        box-shadow: var(--gh-shadow-lg);
        transform: translateY(-3px);
    }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .gift-history-card,
    .gift-history-buy-btn,
    .gift-redeem-btn,
    .gift-history-code-copy,
    .gift-history-toast {
        transition: none !important;
        animation: none !important;
    }

    .gift-history-card:hover {
        transform: none;
    }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
    .gift-history-head,
    .gift-wallet-bar,
    .gift-history-buy-btn,
    .gift-redeem-form,
    .gift-history-code-copy,
    .gift-history-toast {
        display: none !important;
    }

    .gift-history-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* -- COUNTRY PICKER -- */
.country-picker-dropdown { position: absolute; top: calc(100% + 4px); left: 0; width: 280px; background: #fff; border: 1px solid var(--gc-border); border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 100; opacity: 0; visibility: hidden; transform: translateY(-5px); transition: .2s ease; display: flex; flex-direction: column; overflow: hidden; }
.country-picker-dropdown.cp-show { opacity: 1; visibility: visible; transform: translateY(0); }
.cp-search-box { padding: 12px; border-bottom: 1px solid var(--gc-border); position: relative; display: flex; align-items: center; }
.cp-search-box i { position: absolute; left: 24px; color: #666; font-size: 13px; }
.cp-search-box input { width: 100%; padding: 8px 12px 8px 32px; border: 1px solid var(--gc-border); border-radius: 6px; font-size: 13px; outline: none; }
.country-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.cp-item { display: flex; align-items: center; padding: 10px 16px; cursor: pointer; font-size: 13px; color: var(--gc-text); }
.cp-item:hover { background: #f9f8f6; }
.cp-item--active { background: #f0ece1; font-weight: 600; }
.cp-flag { margin-right: 12px; width: 20px; display: block; box-shadow: 0 0 1px rgba(0,0,0,0.2); }
.cp-name { flex: 1; }
.cp-dial { font-weight: 600; color: #888; }


/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}
