/* =====================================================================
   GOLD RATE PAKISTAN — PREMIUM v1.2
   Fixed: share card visible (HTML rendered), close button works,
   no auto-popup, 3 share actions (Share Link / WhatsApp / Copy)
===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

.grpk-app {
    --grpk-bg: #08060A;
    --grpk-bg-2: #110D14;
    --grpk-surface: #161118;
    --grpk-surface-hi: #1F1822;
    --grpk-surface-glass: rgba(31, 24, 34, 0.85);
    --grpk-border: rgba(212, 175, 55, 0.14);
    --grpk-border-hi: rgba(212, 175, 55, 0.32);
    --grpk-gold: #D4AF37;
    --grpk-gold-bright: #F4D06F;
    --grpk-gold-dark: #8B6914;
    --grpk-rose: #E8B4A0;
    --grpk-champagne: #F5E5C0;
    --grpk-cream: #F8F1E2;
    --grpk-text-muted: #A89A85;
    --grpk-text-dim: #6B6258;
    --grpk-green: #8FCB7A;
    --grpk-red: #E27D6F;

    background:
        radial-gradient(ellipse 90% 50% at 20% 0%, rgba(212, 175, 55, 0.08), transparent 50%),
        radial-gradient(ellipse 70% 50% at 80% 100%, rgba(212, 175, 55, 0.06), transparent 50%),
        linear-gradient(180deg, var(--grpk-bg-2) 0%, var(--grpk-bg) 100%);
    color: var(--grpk-cream) !important;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 15px;
    line-height: 1.6;
    border-radius: 24px;
    overflow: hidden;
    padding: 40px 32px 100px;
    margin: 24px 0;
    position: relative;
    box-sizing: border-box;
    border: 1px solid var(--grpk-border);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.04),
        0 30px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 60px -20px rgba(212, 175, 55, 0.15);
}

.grpk-app::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--grpk-gold) 50%, transparent);
    opacity: 0.5;
}

.grpk-app *, .grpk-app *::before, .grpk-app *::after { box-sizing: border-box; }

.grpk-app p, .grpk-app h1, .grpk-app h2, .grpk-app h3, .grpk-app h4,
.grpk-app span, .grpk-app div, .grpk-app a { color: inherit; }

/* TYPOGRAPHY */
.grpk-app .grpk-display {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(32px, 5.5vw, 54px);
    font-weight: 500; line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 12px 0 6px !important;
    color: var(--grpk-cream);
}
.grpk-app .grpk-display em {
    background: linear-gradient(135deg, var(--grpk-gold-bright) 0%, var(--grpk-gold) 40%, var(--grpk-champagne) 80%, var(--grpk-gold-bright) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic; font-weight: 600;
    animation: grpk-shimmer-text 4s linear infinite;
}
@keyframes grpk-shimmer-text { to { background-position: 200% center; } }

.grpk-app .grpk-display-sm {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(24px, 3.6vw, 34px);
    font-weight: 500; line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 10px 0 6px !important;
    color: var(--grpk-cream);
}

.grpk-app .grpk-subtitle {
    color: var(--grpk-text-muted);
    font-size: 14px; margin: 8px 0 0;
    line-height: 1.7; max-width: 520px;
}

.grpk-app .grpk-eyebrow {
    color: var(--grpk-gold);
    font-size: 11px; letter-spacing: 0.22em;
    text-transform: uppercase; font-weight: 600;
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 4px;
}
.grpk-app .grpk-mono {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace !important;
    font-variant-numeric: tabular-nums;
}

/* HEADER */
.grpk-app .grpk-header {
    display: flex; justify-content: space-between;
    align-items: flex-end; flex-wrap: wrap;
    gap: 32px; margin-bottom: 12px;
}
.grpk-app .grpk-header-left { flex: 1 1 380px; min-width: 0; }

.grpk-app .grpk-pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--grpk-gold-bright);
    box-shadow: 0 0 12px var(--grpk-gold);
    animation: grpk-pulse 2s ease-in-out infinite;
    position: relative;
}
.grpk-app .grpk-pulse-dot::after {
    content: ''; position: absolute; inset: -4px;
    border-radius: 50%; background: var(--grpk-gold);
    opacity: 0.4; animation: grpk-pulse-ring 2s ease-out infinite;
}
@keyframes grpk-pulse {
    0%, 100% { box-shadow: 0 0 12px var(--grpk-gold); transform: scale(1); }
    50% { box-shadow: 0 0 20px var(--grpk-gold-bright); transform: scale(1.1); }
}
@keyframes grpk-pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

.grpk-app .grpk-headline-card {
    background:
        linear-gradient(135deg, rgba(244, 208, 111, 0.08) 0%, transparent 50%),
        linear-gradient(160deg, var(--grpk-surface-hi) 0%, var(--grpk-surface) 100%);
    border: 1px solid var(--grpk-border-hi);
    border-radius: 20px;
    padding: 26px 30px;
    min-width: 280px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 20px 50px -20px rgba(0, 0, 0, 0.5),
        0 0 40px -10px rgba(212, 175, 55, 0.2);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.grpk-app .grpk-headline-card:hover { transform: translateY(-2px); }

.grpk-app .grpk-shimmer {
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(244, 208, 111, 0.18) 50%, transparent 70%);
    background-size: 250% 100%;
    animation: grpk-shimmer 4s ease-in-out infinite;
    pointer-events: none; border-radius: inherit;
}
@keyframes grpk-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.grpk-app .grpk-headline-inner { position: relative; z-index: 1; }

.grpk-app .grpk-bignum {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: clamp(32px, 5.5vw, 44px);
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: -0.025em;
    line-height: 1.05;
    background: linear-gradient(180deg, var(--grpk-cream) 0%, var(--grpk-champagne) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grpk-app .grpk-change {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 12px; padding: 6px 12px;
    background: rgba(143, 203, 122, 0.08);
    border: 1px solid rgba(143, 203, 122, 0.2);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px; font-weight: 600;
}
.grpk-app .grpk-change.up { color: var(--grpk-green); }
.grpk-app .grpk-change.down {
    color: var(--grpk-red);
    background: rgba(226, 125, 111, 0.08);
    border-color: rgba(226, 125, 111, 0.25);
}
.grpk-app .grpk-arrow { font-size: 9px; }
.grpk-app .grpk-dim { color: var(--grpk-text-dim); font-weight: 400; }

/* META BAR */
.grpk-app .grpk-meta-bar {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
    margin: 24px 0 12px; padding: 14px 20px;
    background: var(--grpk-surface-glass);
    border: 1px solid var(--grpk-border);
    border-radius: 14px;
    font-size: 13px; color: var(--grpk-text-muted);
    position: relative; overflow: hidden;
}
.grpk-app .grpk-meta-bar::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--grpk-gold-bright), var(--grpk-gold-dark));
}

.grpk-app .grpk-btn-ghost {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--grpk-border-hi);
    color: var(--grpk-cream);
    padding: 8px 16px; border-radius: 100px;
    font-size: 12px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; font-family: inherit !important;
    transition: all 0.3s; text-decoration: none !important;
}
.grpk-app .grpk-btn-ghost:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--grpk-gold);
    color: var(--grpk-gold-bright);
    transform: translateY(-1px);
}

/* SECTIONS */
.grpk-app .grpk-section { margin: 56px 0 0; position: relative; }
.grpk-app .grpk-section-head { margin-bottom: 28px; }
.grpk-app .grpk-section-head-row {
    display: flex; justify-content: space-between;
    align-items: flex-end; flex-wrap: wrap;
    gap: 20px; margin-bottom: 28px;
}

/* GRIDS */
.grpk-app .grpk-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.grpk-app .grpk-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* CARDS */
.grpk-app .grpk-card {
    background:
        linear-gradient(135deg, rgba(244, 208, 111, 0.03) 0%, transparent 60%),
        var(--grpk-surface);
    border: 1px solid var(--grpk-border);
    border-radius: 18px;
    padding: 24px 26px;
    position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.grpk-app .grpk-card:hover {
    transform: translateY(-4px);
    border-color: var(--grpk-border-hi);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}
.grpk-app .grpk-card-hi {
    background:
        linear-gradient(135deg, rgba(244, 208, 111, 0.08) 0%, transparent 60%),
        linear-gradient(160deg, var(--grpk-surface-hi), var(--grpk-surface));
    border-color: var(--grpk-border-hi);
}

.grpk-app .grpk-card-eyebrow {
    color: var(--grpk-gold);
    font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; font-weight: 600;
    margin-bottom: 4px;
}

.grpk-app .grpk-num-md {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: clamp(26px, 4.4vw, 36px);
    font-weight: 700; margin-top: 10px;
    letter-spacing: -0.025em;
    background: linear-gradient(180deg, var(--grpk-cream), var(--grpk-champagne));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grpk-app .grpk-card-foot {
    margin-top: 12px; font-size: 12px;
    color: var(--grpk-text-muted); line-height: 1.65;
}

.grpk-app .grpk-math {
    margin-top: 12px; font-size: 13px;
    color: var(--grpk-cream); line-height: 1.85;
}
.grpk-app .grpk-math-result {
    border-top: 1px dashed var(--grpk-border-hi);
    margin-top: 10px; padding-top: 10px; font-size: 14px;
}
.grpk-app .grpk-gold-text { color: var(--grpk-gold-bright); }
.grpk-app .grpk-gold-bright { color: var(--grpk-gold-bright); font-weight: 600; }

/* PURITY CARDS */
.grpk-app .grpk-purity-card {
    padding-top: 28px;
    background:
        radial-gradient(ellipse at top, rgba(244, 208, 111, 0.06), transparent 60%),
        var(--grpk-surface);
}
.grpk-app .grpk-purity-card:hover { transform: translateY(-6px) scale(1.01); }

.grpk-app .grpk-card-top {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3) 30%, rgba(212, 175, 55, 0.3) 70%, transparent);
}
.grpk-app .grpk-card-top-hi {
    background: linear-gradient(90deg, transparent, var(--grpk-gold-bright) 20%, var(--grpk-gold) 80%, transparent);
    box-shadow: 0 0 20px var(--grpk-gold);
}

.grpk-app .grpk-purity-row {
    display: flex; justify-content: space-between;
    align-items: baseline; margin-bottom: 4px;
}
.grpk-app .grpk-purity-label {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 32px; font-weight: 600;
    color: var(--grpk-gold-bright);
    letter-spacing: -0.02em; line-height: 1;
    text-shadow: 0 0 24px rgba(244, 208, 111, 0.25);
}
.grpk-app .grpk-purity-sub {
    font-size: 10px; color: var(--grpk-text-muted);
    letter-spacing: 0.15em; text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 100px;
    border: 1px solid var(--grpk-border);
}

.grpk-app .grpk-price-list {
    margin-top: 18px; display: flex;
    flex-direction: column; gap: 12px;
}
.grpk-app .grpk-price-row {
    display: flex; justify-content: space-between;
    align-items: baseline; padding-bottom: 8px;
    border-bottom: 1px dashed var(--grpk-border);
}
.grpk-app .grpk-price-row span:first-child {
    color: var(--grpk-text-muted);
    letter-spacing: 0.06em; font-size: 11px;
    text-transform: uppercase; font-weight: 500;
}
.grpk-app .grpk-price-row span:last-child {
    color: var(--grpk-cream);
    font-size: 16px; font-weight: 500;
    font-family: 'JetBrains Mono', monospace !important;
}
.grpk-app .grpk-price-row.grpk-bold span:last-child {
    font-size: 19px; font-weight: 700;
    color: var(--grpk-champagne);
}
.grpk-app .grpk-price-row.grpk-muted span:last-child {
    font-size: 13px; color: var(--grpk-text-muted);
    font-weight: 400;
}

/* CALCULATOR */
.grpk-app .grpk-calc {
    background:
        radial-gradient(ellipse at top right, rgba(244, 208, 111, 0.06), transparent 60%),
        linear-gradient(160deg, var(--grpk-surface) 0%, var(--grpk-bg) 100%);
    border: 1px solid var(--grpk-border);
    border-radius: 20px; padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px; align-items: center;
    position: relative; overflow: hidden;
}

.grpk-app .grpk-label {
    display: block; font-size: 11px;
    color: var(--grpk-text-muted);
    letter-spacing: 0.18em; text-transform: uppercase;
    font-weight: 600; margin-top: 20px; margin-bottom: 10px;
}
.grpk-app .grpk-label:first-child { margin-top: 0; }
.grpk-app .grpk-row { display: flex; gap: 12px; }

.grpk-app .grpk-input,
.grpk-app .grpk-select {
    background: var(--grpk-surface-hi) !important;
    border: 1.5px solid var(--grpk-border) !important;
    color: var(--grpk-cream) !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    outline: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
}
.grpk-app .grpk-input:focus,
.grpk-app .grpk-select:focus {
    border-color: var(--grpk-gold) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12) !important;
}
.grpk-app .grpk-input-num {
    flex: 1;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 24px !important; font-weight: 700 !important;
    min-width: 0; color: var(--grpk-champagne) !important;
}
.grpk-app .grpk-select {
    cursor: pointer; min-width: 100px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
    padding-right: 36px !important;
}

.grpk-app .grpk-purity-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.grpk-app .grpk-pill {
    flex: 1 1 64px;
    background: var(--grpk-surface-hi);
    color: var(--grpk-cream);
    border: 1.5px solid var(--grpk-border);
    padding: 12px 18px; border-radius: 12px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    font-family: inherit !important;
    transition: all 0.3s;
}
.grpk-app .grpk-pill:hover {
    border-color: var(--grpk-border-hi);
    color: var(--grpk-gold-bright);
    transform: translateY(-2px);
}
.grpk-app .grpk-pill.active {
    background: linear-gradient(135deg, var(--grpk-gold-bright), var(--grpk-gold));
    color: var(--grpk-bg) !important;
    border-color: var(--grpk-gold);
    box-shadow:
        0 4px 16px rgba(212, 175, 55, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.grpk-app .grpk-calc-output {
    background:
        radial-gradient(ellipse at top, rgba(244, 208, 111, 0.12), transparent 70%),
        linear-gradient(135deg, var(--grpk-surface-hi) 0%, var(--grpk-surface) 100%);
    border-radius: 18px; padding: 32px 28px;
    border: 1px solid var(--grpk-border-hi);
    position: relative; overflow: hidden;
}
.grpk-app .grpk-calc-sub {
    margin-top: 12px; font-size: 13px;
    color: var(--grpk-text-muted); line-height: 1.6;
}

/* CHART */
.grpk-app .grpk-toggle {
    display: inline-flex; gap: 4px;
    background: var(--grpk-surface);
    border: 1px solid var(--grpk-border);
    border-radius: 100px; padding: 4px;
}
.grpk-app .grpk-toggle-btn {
    background: transparent;
    color: var(--grpk-text-muted);
    border: none; padding: 9px 18px;
    border-radius: 100px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit !important;
    letter-spacing: 0.04em; transition: all 0.3s;
    text-transform: uppercase;
}
.grpk-app .grpk-toggle-btn:hover { color: var(--grpk-cream); }
.grpk-app .grpk-toggle-btn.active {
    background: linear-gradient(135deg, var(--grpk-gold-bright), var(--grpk-gold));
    color: var(--grpk-bg);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.grpk-app .grpk-chart-wrap {
    background:
        radial-gradient(ellipse at top, rgba(244, 208, 111, 0.04), transparent 50%),
        var(--grpk-surface);
    border: 1px solid var(--grpk-border);
    border-radius: 20px; padding: 24px 16px 16px;
    height: 360px; position: relative; overflow: hidden;
}
.grpk-app .grpk-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* FAQ */
.grpk-app .grpk-faq {
    margin-top: 12px;
    background: var(--grpk-surface);
    border: 1px solid var(--grpk-border);
    border-radius: 16px; overflow: hidden;
}
.grpk-app .grpk-faq-item { border-bottom: 1px solid var(--grpk-border); }
.grpk-app .grpk-faq-item:last-child { border-bottom: none; }
.grpk-app .grpk-faq-item:hover { background: rgba(212, 175, 55, 0.025); }
.grpk-app .grpk-faq-item[open] { background: rgba(212, 175, 55, 0.04); }

.grpk-app .grpk-faq-item summary {
    list-style: none; cursor: pointer;
    padding: 22px 24px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 20px;
    font-size: 15px; font-weight: 500;
    color: var(--grpk-cream);
    transition: color 0.3s; user-select: none;
}
.grpk-app .grpk-faq-item summary::-webkit-details-marker,
.grpk-app .grpk-faq-item summary::marker { display: none; }
.grpk-app .grpk-faq-item summary:hover { color: var(--grpk-gold-bright); }
.grpk-app .grpk-faq-item[open] summary { color: var(--grpk-gold-bright); }

.grpk-app .grpk-faq-icon {
    color: var(--grpk-gold);
    transition: transform 0.4s; font-size: 14px;
    flex-shrink: 0; width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--grpk-border);
}
.grpk-app .grpk-faq-item[open] .grpk-faq-icon {
    transform: rotate(180deg);
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--grpk-gold);
}

.grpk-app .grpk-faq-body {
    padding: 0 24px 24px;
    color: var(--grpk-text-muted);
    font-size: 14px; line-height: 1.8;
    max-width: 800px;
}

/* SHARE FAB */
.grpk-app .grpk-share-fab {
    position: fixed; bottom: 28px; right: 28px;
    z-index: 9990;
    background: linear-gradient(135deg, var(--grpk-gold-bright) 0%, var(--grpk-gold) 100%);
    color: var(--grpk-bg) !important;
    border: none; padding: 16px 26px;
    border-radius: 100px;
    font-size: 14px; font-weight: 700;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow:
        0 10px 30px rgba(212, 175, 55, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    font-family: inherit !important;
    transition: all 0.3s;
    letter-spacing: 0.02em;
    text-decoration: none !important;
}
.grpk-app .grpk-share-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.45);
}

/* ============================================================
   MODAL — fixed layout, share card always visible
============================================================ */
.grpk-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 24px 16px !important;
    overflow-y: auto !important;
    color: #F8F1E2;
    font-family: 'Manrope', system-ui, sans-serif !important;
    animation: grpk-fade-in 0.3s;
}
.grpk-modal[hidden] { display: none !important; }

@keyframes grpk-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.grpk-modal-card {
    background:
        radial-gradient(ellipse at top, rgba(244, 208, 111, 0.06), transparent 50%),
        #161118;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 22px;
    padding: 24px;
    max-width: 480px;
    width: 100%;
    color: #F8F1E2;
    margin: auto 0;
    position: relative;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(212, 175, 55, 0.15);
    animation: grpk-fade-up 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes grpk-fade-up {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.grpk-modal-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}
.grpk-modal-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 20px;
    font-weight: 600;
    color: #F8F1E2 !important;
    letter-spacing: -0.01em;
}
.grpk-modal-close {
    background: rgba(212, 175, 55, 0.06) !important;
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
    color: #A89A85 !important;
    cursor: pointer !important;
    font-size: 22px !important;
    line-height: 1 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    font-family: system-ui, sans-serif !important;
    font-weight: 400 !important;
    flex-shrink: 0;
}
.grpk-modal-close:hover {
    background: rgba(212, 175, 55, 0.18) !important;
    color: #F8F1E2 !important;
    border-color: #D4AF37 !important;
    transform: scale(1.05);
}

/* SHARE CARD INSIDE MODAL */
.grpk-modal .grpk-share-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(ellipse at top, rgba(244, 208, 111, 0.1), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.05), transparent 50%),
        linear-gradient(165deg, #1A1410 0%, #08060A 100%);
    border: 2px solid #D4AF37;
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    color: #F8F1E2;
    display: flex;
    flex-direction: column;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 60px rgba(212, 175, 55, 0.15);
}

.grpk-modal .corner {
    position: absolute;
    width: 24px;
    height: 24px;
}
.grpk-modal .corner.tl { top: 14px; left: 14px; border-top: 2px solid #D4AF37; border-left: 2px solid #D4AF37; }
.grpk-modal .corner.tr { top: 14px; right: 14px; border-top: 2px solid #D4AF37; border-right: 2px solid #D4AF37; }
.grpk-modal .corner.bl { bottom: 14px; left: 14px; border-bottom: 2px solid #D4AF37; border-left: 2px solid #D4AF37; }
.grpk-modal .corner.br { bottom: 14px; right: 14px; border-bottom: 2px solid #D4AF37; border-right: 2px solid #D4AF37; }

.grpk-modal .sc-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.32);
}
.grpk-modal .sc-brand {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #F8F1E2;
}
.grpk-modal .sc-brand i {
    color: #D4AF37;
    font-style: italic;
    font-weight: 500;
}
.grpk-modal .sc-tag {
    font-size: 9px;
    color: #D4AF37;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 100px;
}
.grpk-modal .sc-eyebrow {
    font-size: 10px;
    color: #A89A85;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
}
.grpk-modal .sc-date {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 16px;
    color: #F5E5C0;
    font-style: italic;
    margin-top: 2px;
}
.grpk-modal .sc-hero {
    margin-top: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(244, 208, 111, 0.18), rgba(212, 175, 55, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.grpk-modal .sc-hero-label {
    font-size: 10px;
    color: #D4AF37;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
}
.grpk-modal .sc-hero-num {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 28px;
    font-weight: 700;
    color: #F8F1E2;
    margin-top: 4px;
    letter-spacing: -0.02em;
}
.grpk-modal .sc-grid {
    margin-top: 12px;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    flex: 1;
}
.grpk-modal .sc-cell {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 10px;
    padding: 10px 12px;
}
.grpk-modal .sc-cell-label {
    font-size: 9px;
    color: #A89A85;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}
.grpk-modal .sc-cell-val {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 14px;
    font-weight: 600;
    color: #F8F1E2;
    margin-top: 4px;
}
.grpk-modal .sc-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(212, 175, 55, 0.32);
    display: flex !important;
    justify-content: space-between !important;
    font-size: 10px;
    color: #A89A85;
}
.grpk-modal .sc-foot strong {
    color: #F4D06F;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700;
}
.grpk-modal .sc-bottom {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    color: #F8F1E2;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.grpk-modal .sc-bottom span {
    color: #F4D06F;
    font-weight: 700;
}

/* MODAL ACTIONS */
.grpk-modal-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-top: 20px !important;
}
.grpk-btn-share-action {
    padding: 14px 8px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-family: 'Manrope', sans-serif !important;
    transition: all 0.3s !important;
    background: #1F1822 !important;
    border: 1px solid rgba(212, 175, 55, 0.32) !important;
    color: #F8F1E2 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1.2 !important;
}
.grpk-btn-share-action:hover {
    transform: translateY(-2px);
    border-color: #D4AF37 !important;
    color: #F4D06F !important;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.15);
}
.grpk-btn-share-action.grpk-btn-primary {
    background: linear-gradient(135deg, #F4D06F, #D4AF37) !important;
    color: #08060A !important;
    border-color: #D4AF37 !important;
    font-weight: 700 !important;
}
.grpk-btn-share-action.grpk-btn-primary:hover {
    color: #08060A !important;
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}
.grpk-btn-share-action span {
    font-size: 18px;
    line-height: 1;
}

.grpk-modal-hint {
    font-size: 11px;
    color: #6B6258;
    margin-top: 14px;
    text-align: center;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grpk-app { padding: 28px 20px 90px; margin: 16px 0; border-radius: 20px; }
    .grpk-app .grpk-headline-card { width: 100%; }
    .grpk-app .grpk-calc { padding: 24px 20px; gap: 24px; }
    .grpk-app .grpk-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .grpk-app { padding: 24px 16px 90px; border-radius: 16px; }
    .grpk-app .grpk-grid-4 { grid-template-columns: 1fr; }
    .grpk-app .grpk-share-fab {
        bottom: 16px; right: 16px;
        padding: 13px 20px; font-size: 13px;
    }
    .grpk-app .grpk-share-fab span { display: none; }
    .grpk-app .grpk-share-fab svg { width: 18px; height: 18px; }
    .grpk-app .grpk-section { margin-top: 40px; }
    .grpk-app .grpk-faq-item summary { padding: 18px 16px; font-size: 14px; }
    .grpk-app .grpk-faq-body { padding: 0 16px 20px; }
    .grpk-app .grpk-pill { padding: 10px 12px; font-size: 13px; }

    .grpk-modal { padding: 12px 8px !important; }
    .grpk-modal-card { padding: 18px; border-radius: 16px; }
    .grpk-modal-actions { grid-template-columns: 1fr !important; }
    .grpk-modal .sc-hero-num { font-size: 22px; }
    .grpk-modal .sc-brand { font-size: 20px; }
}

/* SVG sizing */
.grpk-app svg { display: inline-block; vertical-align: middle; }
.grpk-app .grpk-btn-ghost svg { width: 12px; height: 12px; flex-shrink: 0; }
.grpk-app .grpk-share-fab svg { width: 16px; height: 16px; flex-shrink: 0; }
