/* ═══════════════════════════════════════════════════════════════════
   KeysOnSale — shared.css
   Visual layer applied on top of page-specific styles.
   Handles: background ambience, header accent line, footer grid,
   card depth, logo normalization, consistent refinements.
═══════════════════════════════════════════════════════════════════ */

/* ─── Root additions ─── */
:root {
    --bg:          #06080b;
    --surface:     #0d1117;
    --surface2:    #141a24;
    --border:      rgba(255,255,255,0.06);
    --border-light:rgba(255,255,255,0.10);

    --gold:        #c9a24f;
    --gold-light:  #e8c070;
    --gold-gradient: linear-gradient(135deg, #c9a24f 0%, #e8c070 50%, #d4aa5a 100%);
    --gold-dim:    rgba(201,162,79,0.13);
    --gold-glow:   rgba(201,162,79,0.30);

    --green: #2dd4a0;
    --red:   #f05252;

    --radius-card: 22px;
    --transition:  0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Body: warm radial glow from top-center ─── */
body {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 110% 45% at 50% -4%,
            rgba(201,162,79,0.07) 0%, transparent 65%);
}

/* ─── Header: thin gold accent line at very top ─── */
.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201,162,79,0.35) 18%,
        rgba(232,192,112,0.85) 50%,
        rgba(201,162,79,0.35) 82%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}
.header.scrolled {
    background: rgba(6,8,11,0.97);
    border-bottom-color: rgba(255,255,255,0.07);
    box-shadow: 0 1px 0 rgba(201,162,79,0.06), 0 8px 32px rgba(0,0,0,0.4);
}

/* ─── Logo: consistent 22px everywhere ─── */
.logo { text-decoration: none; }
.logo span {
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
    font-size: 22px !important;
    letter-spacing: -0.045em !important;
    color: #f0ece4 !important;
    display: inline !important;
    margin-bottom: 0 !important;
}
.logo span span {
    color: #c9a24f !important;
    font-size: inherit !important;
}

/* ─── Nav link active: gold + underline ─── */
.nav a.active {
    color: var(--gold);
    position: relative;
}
.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0; right: 0;
    height: 1px;
    background: var(--gold);
    border-radius: 1px;
    opacity: 0.6;
}

/* ─── Header CTA arrow ─── */
.header-cta {
    letter-spacing: 0.01em;
}

/* ─── Mobile menu inner glow ─── */
.mobile-menu {
    border-bottom: 1px solid rgba(201,162,79,0.1);
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

/* ═══ CARDS & SURFACES ═══ */

/* Product cards */
.product-card {
    border-radius: var(--radius-card);
    background:
        linear-gradient(160deg, rgba(255,255,255,0.025) 0%, transparent 50%),
        var(--surface);
    box-shadow:
        0 2px 12px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.065);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201,162,79,0.4);
    box-shadow:
        0 24px 56px -8px rgba(0,0,0,0.65),
        0 0 0 1px rgba(201,162,79,0.2),
        0 0 40px -8px rgba(201,162,79,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* HIW Steps */
.hiw-step {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.025) 0%, transparent 60%),
        rgba(255,255,255,0.02);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.hiw-step:hover {
    background:
        linear-gradient(145deg, rgba(201,162,79,0.06) 0%, transparent 60%),
        rgba(255,255,255,0.03);
    border-color: rgba(201,162,79,0.3);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Why-us cards */
.why-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    box-shadow:
        0 2px 12px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
.why-card:hover {
    border-color: rgba(201,162,79,0.35);
    box-shadow:
        0 12px 40px -8px rgba(0,0,0,0.5),
        0 0 30px -10px rgba(201,162,79,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* FAQ items */
.faq-item {
    background: rgba(255,255,255,0.018);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: background 0.3s, border-color 0.3s;
}
.faq-item:hover {
    background: rgba(255,255,255,0.03);
}
.faq-item.open {
    background: rgba(201,162,79,0.04);
    border-color: rgba(201,162,79,0.3);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(201,162,79,0.1);
}

/* Price box */
.price-box {
    background:
        linear-gradient(150deg, rgba(255,255,255,0.03) 0%, transparent 60%),
        var(--surface);
    box-shadow:
        0 8px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06);
}
.price-box::before {
    background: linear-gradient(90deg, transparent, rgba(201,162,79,0.9), rgba(232,192,112,1), rgba(201,162,79,0.9), transparent);
    opacity: 0.7;
}

/* Desc container */
.desc-container {
    background:
        linear-gradient(150deg, rgba(255,255,255,0.025) 0%, transparent 50%),
        var(--surface);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Gallery main */
.gallery-main {
    box-shadow:
        0 12px 40px -8px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Related cards */
.related-card {
    box-shadow:
        0 2px 12px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
.related-card:hover {
    border-color: rgba(201,162,79,0.35);
    box-shadow:
        0 12px 36px -8px rgba(0,0,0,0.5),
        0 0 30px -10px rgba(201,162,79,0.12),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Info accordion items (product pages) */
.info-acc-item {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.info-acc-item.open {
    box-shadow:
        0 4px 20px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(201,162,79,0.08);
}

/* ═══ SECTION BACKGROUNDS ═══ */

/* HIW section: subtle inner glow */
.hiw-wrap {
    background:
        radial-gradient(ellipse 70% 80% at 50% 100%, rgba(201,162,79,0.04) 0%, transparent 65%),
        var(--surface);
}

/* FAQ section: cool subtle gradient */
.faq-wrap {
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,162,79,0.03) 0%, transparent 55%),
        var(--surface);
}

/* Trust bar */
.trust-bar {
    background:
        linear-gradient(90deg,
            rgba(201,162,79,0.04) 0%,
            rgba(201,162,79,0.01) 30%,
            rgba(201,162,79,0.01) 70%,
            rgba(201,162,79,0.04) 100%),
        rgba(10,13,18,0.6);
    border-color: rgba(255,255,255,0.05);
}
.trust-item {
    color: rgba(138,148,166,0.9);
}

/* Section label: refined left line */
.section-label {
    color: var(--gold);
}
.section-label::before {
    background: linear-gradient(90deg, var(--gold), rgba(201,162,79,0.2));
    height: 2px;
    border-radius: 2px;
}

/* ═══ FOOTER ═══ */
.footer {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,162,79,0.05) 0%, transparent 50%),
        radial-gradient(rgba(255,255,255,0.013) 1px, transparent 1px),
        #030407;
    background-size: auto, 32px 32px, auto;
    background-position: center top, left top, center;
    border-top-color: rgba(201,162,79,0.12);
}

/* Footer col headings: gold dot prefix */
.footer-col h5 {
    position: relative;
    padding-left: 14px;
}
.footer-col h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.7;
}

/* Footer address: slightly warmer */
.footer-address {
    border-top-color: rgba(201,162,79,0.08);
}

/* SSL badge: sharper */
.ssl-badge {
    border-color: rgba(201,162,79,0.18);
    background: rgba(201,162,79,0.03);
}
.ssl-badge:hover {
    border-color: rgba(201,162,79,0.5);
    background: rgba(201,162,79,0.07);
    color: var(--gold);
    box-shadow: 0 0 20px -5px rgba(201,162,79,0.2);
}

/* Footer bottom divider */
.footer-bottom {
    border-top-color: rgba(255,255,255,0.045);
}

/* ═══ BREADCRUMB (product / legal pages) ═══ */
.breadcrumb-bar {
    background: rgba(6,8,11,0.7);
    border-bottom-color: rgba(255,255,255,0.055);
    backdrop-filter: blur(12px);
}

/* ═══ BUTTONS ═══ */
.btn-gold,
.btn-buy-now,
.header-cta,
.mobile-cta {
    background: var(--gold-gradient);
}

/* ─── Buy-now shimmer (if not already in page style) ─── */
@keyframes btn-shimmer {
    0%   { left: -60%; }
    100% { left: 120%; }
}

/* ─── Pulse animation: unified ─── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1);   }
    50%       { opacity: 0.45; transform: scale(0.75); }
}
@keyframes pulse-green {
    0%   { box-shadow: 0 0 0 0   rgba(45,212,160,0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(45,212,160,0);    }
    100% { box-shadow: 0 0 0 0   rgba(45,212,160,0);    }
}

/* ═══ PILLS (product detail info) ═══ */
.pill:hover {
    border-color: rgba(201,162,79,0.3);
    background: rgba(201,162,79,0.06);
}

/* ═══ PRODUCT FACTS TABLE ═══ */
.facts-header {
    background: rgba(201,162,79,0.06);
    border-bottom-color: rgba(255,255,255,0.06);
    color: var(--gold);
}
.facts-row:hover {
    background: rgba(255,255,255,0.02);
}

/* ═══ STEPS BOX (activation steps) ═══ */
.steps-box {
    background: rgba(201,162,79,0.025);
    border-color: rgba(201,162,79,0.12);
}
.step-num {
    background: rgba(201,162,79,0.12);
    border-color: rgba(201,162,79,0.25);
    color: var(--gold);
}

/* ═══ HERO MINI CARDS ═══ */
.hero-mini-card {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.025) 0%, transparent 60%),
        var(--surface);
    box-shadow:
        0 16px 48px -8px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.06);
}
.hero-mini-card:hover {
    box-shadow:
        0 20px 56px -8px rgba(0,0,0,0.7),
        0 0 0 1px rgba(201,162,79,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ═══ HERO EYEBROW DOT ═══ */
.hero-eyebrow {
    background: rgba(201,162,79,0.07);
    border-color: rgba(201,162,79,0.18);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
    .logo span { font-size: 20px !important; }
}
