/* -- enhancements-v2 -- */

/**
 * NostalgiaFlation Enhanced Styles v2.0
 * Styles for all enhanced features
 */

/* 1. SKELETON LOADERS */
.skeleton-loading {
    position: relative;
    overflow: hidden;
}

.skeleton-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: skeleton-shimmer 1.5s infinite;
    z-index: 10;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skeleton-loading.loaded::before {
    display: none;
}

/* 2. MOBILE MENU FIX */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(20, 15, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1rem 0;
        min-height: 48px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #fff;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* 3. READING PROGRESS BAR */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.reading-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: progress-glow 2s linear infinite;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@keyframes progress-glow {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 4. BREADCRUMBS */
.breadcrumbs {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '\203A';
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-list a {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 5. RELATED ARTICLES */
.related-articles {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(20, 15, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.related-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover,
.related-card:focus {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Inline related article cards (blog post footers) */
.related-article-card:hover,
.related-article-card:focus-visible {
    border-color: rgba(245, 158, 11, 0.3) !important;
    outline: 2px solid rgba(245, 158, 11, 0.5);
    outline-offset: 2px;
}

.related-category {
    font-size: 0.75rem;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.related-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.related-read-more {
    margin-top: auto;
    font-size: 0.85rem;
    color: #fbbf24;
}

/* 6. MOBILE RESPONSIVENESS */
@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.8rem;
    }

    .related-articles {
        padding: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    #reading-progress {
        height: 3px;
    }
}

/* 7. PRINT STYLES */
@media print {

    #reading-progress,
    .breadcrumbs,
    .related-articles {
        display: none;
    }
}

/* -- enhancements-v3 -- */

/* ===== ENHANCED VISUAL DESIGN (Phase 7) ===== */
/* Premium Glassmorphism Upgrades & Micro-Interactions - Warm Sunset Theme */

/* NOTE: .feature-card, .glass-panel, .btn-primary/.calculate-btn, .hero-badge,
   .section-header, .nav-link:hover, .price-card, .premium-footer, .footer-glow
   are defined in the visual-upgrade section below with their final values.
   The earlier v3 definitions have been consolidated there to avoid duplication. */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}


/* -- ultimate-enhancements -- */

/* ===== ULTIMATE ENHANCEMENTS CSS (v2.0) ===== */
/* Stars, Noise, Cursor Glow, Tooltips, Loading, Mobile */

/* PARTICLE STARS */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: var(--max-opacity, 0.8);
        transform: scale(1);
    }
}

/* NOISE TEXTURE OVERLAY */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    mix-blend-mode: overlay;
}

/* CURSOR GLOW */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.cursor-glow.hidden {
    opacity: 0;
}



/* TOOLTIPS */
[data-tooltip] {
    position: relative;
    cursor: help;
}

/* Prevent tooltip pseudo-elements on buttons */
button[data-tooltip]::before,
button[data-tooltip]::after,
.btn-primary[data-tooltip]::before,
.btn-primary[data-tooltip]::after,
#calculate-btn::before,
#calculate-btn::after {
    display: none !important;
    content: none !important;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 8px 14px;
    background: rgba(20, 20, 30, 0.95);
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(20, 20, 30, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus::before,
[data-tooltip]:focus::after,
[data-tooltip]:focus-within::before,
[data-tooltip]:focus-within::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

[data-tooltip]:hover::after,
[data-tooltip]:focus::after,
[data-tooltip]:focus-within::after {
    transform: translateX(-50%);
}

/* LOADING SKELETON */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
}

.skeleton-chart {
    height: 200px;
    width: 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}



/* KEYBOARD SHORTCUT HINTS */
.shortcut-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 8px;
}

.shortcut-key {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
}

/* MOBILE IMPROVEMENTS */
@media (max-width: 768px) {

    /* Better touch targets - 48px per Google guidelines */
    .btn,
    button,
    .nav-link,
    .feature-card {
        min-height: 48px;
    }

    /* Larger sliders for touch */
    input[type="range"] {
        height: 8px;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    /* Hide cursor effects and floating orbs on mobile */
    .cursor-glow,
    .floating-orb {
        display: none;
    }

    /* Better spacing */
    .calculator-panel {
        padding: 1.5rem;
    }



    /* Tooltips on top for mobile */
    [data-tooltip]::before {
        font-size: 0.75rem;
        max-width: 200px;
        white-space: normal;
        text-align: center;
    }
}

/* CHART DRAW ANIMATION */
.chart-line-animated {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* OPEN GRAPH / SHARE STYLES */
.share-preview-card {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.share-preview-card .brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.share-preview-card .share-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.share-preview-card .share-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.share-preview-card .stat-item {
    text-align: center;
}

.share-preview-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #06b6d4;
}

.share-preview-card .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* SOUND FEEDBACK VISUAL */
.click-feedback {
    position: fixed;
    pointer-events: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.5);
    transform: translate(-50%, -50%) scale(0);
    animation: clickRipple 0.4s ease-out forwards;
    z-index: 9998;
}

@keyframes clickRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}


/* -- visual-upgrade -- */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d0907 0, #1a1310 15%, #2d1f18 30%, #1f1714 45%, #1a1310 60%, #140f0c 75%, #0d0907 90%, #0d0907 100%);
    background-size: 400% 400%;
    z-index: -3;
    pointer-events: none
}

@keyframes gradientShift {
    0% {
        background-position: 0 50%
    }

    25% {
        background-position: 50% 100%
    }

    50% {
        background-position: 100% 50%
    }

    75% {
        background-position: 50% 0
    }

    100% {
        background-position: 0 50%
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 20%, rgba(245, 158, 11, .08) 0, transparent 50%), radial-gradient(ellipse at 80% 30%, rgba(251, 113, 133, .06) 0, transparent 40%), radial-gradient(ellipse at 40% 80%, rgba(251, 191, 36, .06) 0, transparent 50%), radial-gradient(ellipse at 90% 70%, rgba(234, 88, 12, .04) 0, transparent 40%);
    z-index: -2;
    pointer-events: none;
    animation: meshPulse 15s ease-in-out infinite alternate
}

@keyframes meshPulse {
    0% {
        opacity: .8
    }

    100% {
        opacity: 1
    }
}

.floating-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
    opacity: .7;
    mix-blend-mode: screen;
    contain: layout style paint;
    will-change: transform
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(245, 158, 11, .35) 0, rgba(251, 191, 36, .15) 40%, transparent 70%);
    top: -250px;
    left: -150px;
    animation: floatOrb1 16s ease-in-out infinite
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 113, 133, .3) 0, rgba(244, 63, 94, .12) 40%, transparent 70%);
    top: 35%;
    right: -200px;
    animation: floatOrb2 20s ease-in-out infinite
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, .25) 0, rgba(234, 88, 12, .1) 40%, transparent 70%);
    bottom: -150px;
    left: 25%;
    animation: floatOrb3 22s ease-in-out infinite
}

@keyframes floatOrb1 {

    0%,
    100% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(50px, 30px)
    }

    50% {
        transform: translate(-30px, 60px)
    }

    75% {
        transform: translate(40px, -20px)
    }
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0)
    }

    33% {
        transform: translate(-60px, -40px)
    }

    66% {
        transform: translate(40px, 50px)
    }
}

@keyframes floatOrb3 {

    0%,
    100% {
        transform: translate(0, 0)
    }

    50% {
        transform: translate(50px, -30px) rotate(5deg)
    }
}

.glass-panel {
    background: rgba(26, 19, 16, .65);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(245, 158, 11, .18);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 1px 0 rgba(255, 255, 255, .05) inset;
    position: relative;
    overflow: hidden
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0, rgba(245, 158, 11, .5) 25%, rgba(251, 113, 133, .5) 50%, rgba(251, 191, 36, .5) 75%, transparent 100%);
    opacity: .6
}

.glass-panel:hover {
    border-color: rgba(245, 158, 11, .35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .35), 0 0 40px rgba(245, 158, 11, .12), 0 0 0 1px rgba(255, 255, 255, .05) inset;
    transform: translateY(-3px)
}

.feature-card {
    background: linear-gradient(135deg, rgba(45, 31, 24, .75) 0, rgba(26, 19, 16, .7) 100%);
    border: 1px solid rgba(245, 158, 11, .2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color .4s cubic-bezier(.25, .8, .25, 1), transform .4s cubic-bezier(.25, .8, .25, 1), box-shadow .4s cubic-bezier(.25, .8, .25, 1)
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, #f59e0b 0, #fb7185 25%, #fbbf24 50%, #ea580c 75%, #f59e0b 100%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease, background-position .5s ease;
    pointer-events: none;
    animation: borderShimmer 4s linear infinite paused
}

@keyframes borderShimmer {
    0% {
        background-position: 0 50%
    }

    100% {
        background-position: 300% 50%
    }
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0, rgba(245, 158, 11, .1) 0, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease
}

.feature-card:hover {
    border-color: rgba(245, 158, 11, .4);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .35), 0 0 50px rgba(245, 158, 11, .15), 0 0 100px rgba(251, 113, 133, .08)
}

.feature-card:hover::before {
    opacity: 1;
    animation-play-state: running
}

.feature-card:hover::after {
    opacity: 1
}

.btn-primary,
.calculate-btn {
    background: linear-gradient(135deg, #f59e0b 0, #fb7185 50%, #ea580c 100%);
    border: 1px solid rgba(251, 191, 36, .3);
    box-shadow: 0 4px 20px rgba(245, 158, 11, .4), 0 0 40px rgba(251, 113, 133, .15);
    position: relative;
    overflow: hidden;
    transition: background .3s cubic-bezier(.25, .8, .25, 1), transform .3s cubic-bezier(.25, .8, .25, 1), box-shadow .3s cubic-bezier(.25, .8, .25, 1)
}

.btn-primary::before,
.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .5s ease
}

.btn-primary:hover,
.calculate-btn:hover {
    background: linear-gradient(135deg, #d97706 0, #f43f5e 50%, #c2410c 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(245, 158, 11, .5), 0 0 60px rgba(251, 113, 133, .25), 0 0 100px rgba(251, 191, 36, .1)
}

.btn-primary:hover::before,
.calculate-btn:hover::before {
    transform: translateX(100%)
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(245, 158, 11, .12) 0, transparent 50%);
    pointer-events: none
}

.hero-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, .25) 0, rgba(251, 113, 133, .2) 50%, rgba(251, 191, 36, .25) 100%);
    border: 1px solid rgba(251, 191, 36, .35);
    color: #fef3c7;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(245, 158, 11, .2), 0 0 30px rgba(251, 191, 36, .1)
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, .2), 0 0 30px rgba(251, 191, 36, .1)
    }

    50% {
        box-shadow: 0 4px 30px rgba(245, 158, 11, .35), 0 0 50px rgba(251, 191, 36, .2)
    }
}

.text-gradient {
    background: linear-gradient(135deg, #f59e0b 0, #fb7185 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.text-gradient-purple {
    background: linear-gradient(135deg, #fb7185 0, #f43f5e 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.section-header {
    background: linear-gradient(135deg, #fffbeb 0, #fef3c7 40%, #fde68a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.03em
}

.nav-container {
    background: rgba(13, 9, 7, .85);
    border: 1px solid rgba(245, 158, 11, .15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .4), 0 0 40px rgba(245, 158, 11, .05)
}

.nav-link:hover {
    color: #fef3c7;
    text-shadow: 0 0 20px rgba(245, 158, 11, .4)
}

.nav-link.active {
    color: #fde68a
}

.nav-link::after {
    background: linear-gradient(90deg, #f59e0b, #fb7185)
}

.amount-input,
.currency-select,
.year-select,
input[type=email],
input[type=number],
input[type=text],
select {
    background: rgba(26, 19, 16, .7);
    border: 1px solid rgba(245, 158, 11, .15);
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease
}

.amount-input:focus,
.currency-select:focus,
.year-select:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=text]:focus,
select:focus {
    border-color: rgba(251, 113, 133, .5);
    box-shadow: 0 0 0 3px rgba(251, 113, 133, .15), 0 0 20px rgba(245, 158, 11, .1);
    background: rgba(26, 19, 16, .9)
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(245, 158, 11, .2);
    border-radius: 3px;
    outline: 0
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #f59e0b 0, #fb7185 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(245, 158, 11, .5);
    transition: transform .2s ease, box-shadow .2s ease
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(245, 158, 11, .7)
}

.price-card {
    background: linear-gradient(135deg, rgba(45, 31, 24, .7) 0, rgba(26, 19, 16, .65) 100%);
    border: 1px solid rgba(245, 158, 11, .15);
    transition: border-color .4s cubic-bezier(.25, .8, .25, 1), transform .4s cubic-bezier(.25, .8, .25, 1), box-shadow .4s cubic-bezier(.25, .8, .25, 1)
}

.price-card::before {
    background: linear-gradient(90deg, #f59e0b, #fb7185, #fbbf24)
}

.price-card:hover {
    border-color: rgba(245, 158, 11, .35);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3), 0 0 30px rgba(245, 158, 11, .12)
}

.premium-footer {
    border-top: 1px solid rgba(245, 158, 11, .15);
    position: relative
}

.footer-glow {
    background: radial-gradient(ellipse at 50% 0, rgba(245, 158, 11, .12) 0, rgba(251, 191, 36, .06) 30%, transparent 70%)
}

.newsletter-form input {
    border: 1px solid rgba(245, 158, 11, .2)
}

.newsletter-form input:focus {
    border-color: rgba(251, 113, 133, .5);
    box-shadow: 0 0 20px rgba(245, 158, 11, .15)
}

.newsletter-form button {
    background: linear-gradient(135deg, #f59e0b 0, #fb7185 100%)
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #d97706 0, #f43f5e 100%);
    box-shadow: 0 0 30px rgba(245, 158, 11, .4)
}

#cookie-consent>div {
    border: 1px solid rgba(245, 158, 11, .2);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .4), 0 0 60px rgba(245, 158, 11, .08)
}

#accept-cookies {
    background: linear-gradient(135deg, #f59e0b 0, #fb7185 100%)
}

#accept-cookies:hover {
    background: linear-gradient(135deg, #d97706 0, #f43f5e 100%);
    box-shadow: 0 0 25px rgba(245, 158, 11, .4)
}

a {
    transition: color .3s ease, text-shadow .3s ease
}

#inflationChart {
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, .15))
}

.text-gradient,
.text-gradient-purple {
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, .2))
}

.feature-card>div:first-child,
.price-card-icon {
    transition: transform .3s ease
}

.feature-card:hover>div:first-child,
.price-card:hover .price-card-icon {
    transform: scale(1.15) rotate(-5deg)
}

.badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, .2), rgba(251, 191, 36, .2));
    border: 1px solid rgba(251, 191, 36, .25);
    color: #fef3c7
}

.feature-card a,
a[style*="color: #f59e0b"] {
    color: #fde68a;
    transition: color .3s ease, text-shadow .3s ease
}

.feature-card:hover a,
a[style*="color: #f59e0b"]:hover {
    color: #fef3c7;
    text-shadow: 0 0 15px rgba(245, 158, 11, .3)
}

/* -- premium-animations -- */

/* ===== PREMIUM ANIMATIONS (v1.0) ===== */
/* Animated counters, Aurora effect, Scroll-triggered animations */

/* AURORA EFFECT */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Aurora Canvas Container */
.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    left: -50%;
    top: 0;
    opacity: 0.6;
}

.aurora-layer-1 {
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 40%,
            rgba(99, 102, 241, 0.15) 50%,
            rgba(6, 182, 212, 0.1) 60%,
            transparent 80%);
    animation: aurora1 12s ease-in-out infinite;
    filter: blur(40px);
}

.aurora-layer-2 {
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 45%,
            rgba(139, 92, 246, 0.12) 55%,
            rgba(244, 114, 182, 0.08) 65%,
            transparent 85%);
    animation: aurora2 15s ease-in-out infinite;
    filter: blur(50px);
}

.aurora-layer-3 {
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 35%,
            rgba(34, 211, 238, 0.1) 48%,
            rgba(52, 211, 153, 0.08) 58%,
            transparent 75%);
    animation: aurora3 18s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes aurora1 {

    0%,
    100% {
        transform: translateX(-10%) skewX(-5deg) scaleY(1);
    }

    25% {
        transform: translateX(5%) skewX(3deg) scaleY(1.2);
    }

    50% {
        transform: translateX(10%) skewX(-3deg) scaleY(0.9);
    }

    75% {
        transform: translateX(-5%) skewX(5deg) scaleY(1.1);
    }
}

@keyframes aurora2 {

    0%,
    100% {
        transform: translateX(10%) skewX(5deg) scaleY(1.1);
    }

    33% {
        transform: translateX(-15%) skewX(-4deg) scaleY(0.85);
    }

    66% {
        transform: translateX(5%) skewX(2deg) scaleY(1.25);
    }
}

@keyframes aurora3 {

    0%,
    100% {
        transform: translateX(-5%) skewX(-3deg) scaleY(0.95);
    }

    50% {
        transform: translateX(15%) skewX(6deg) scaleY(1.15);
    }
}

/* SCROLL-TRIGGERED ANIMATIONS */

/* Initial state - hidden */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Visible state */
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.scroll-animate:nth-child(1) {
    transition-delay: 0s;
}

.scroll-animate:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-animate:nth-child(3) {
    transition-delay: 0.2s;
}

.scroll-animate:nth-child(4) {
    transition-delay: 0.3s;
}

.scroll-animate:nth-child(5) {
    transition-delay: 0.4s;
}

.scroll-animate:nth-child(6) {
    transition-delay: 0.5s;
}

/* Fade in from left */
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up effect */
.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ANIMATED COUNTER STYLES */
.counter-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: transform 0.1s ease;
}

.counter-value.counting {
    animation: counterPulse 0.5s ease;
}

@keyframes counterPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* SECTION HEADER ANIMATIONS */
.section-header {
    position: relative;
    overflow: hidden;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.5s ease;
    border-radius: 2px;
}

.section-header.visible::after {
    transform: translateX(-50%) scaleX(1);
}

/* HERO CONTENT ANIMATION */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    animation: heroTitleReveal 1s ease-out;
}

.hero-subtitle {
    animation: heroSubtitleReveal 1s ease-out 0.2s backwards;
}

.hero-badge {
    animation: heroBadgeReveal 0.8s ease-out 0.4s backwards;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSubtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroBadgeReveal {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* WAVE DIVIDER */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    animation: waveMove 15s linear infinite;
}

.wave-divider svg path {
    fill: rgba(99, 102, 241, 0.05);
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .aurora-layer {
        opacity: 0.4;
    }

    .scroll-animate {
        transform: translateY(20px);
    }
}

/* Hero content — render immediately, no animation (prevents CLS) */
.hero-content {
    opacity: 1;
    transform: none;
}

/* ===== SCREEN READER ONLY UTILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== MOBILE UX POLISH ===== */
@media (max-width: 480px) {

    /* Stack currency + amount inputs vertically on small phones */
    .input-group>div[style*="display: flex"] {
        flex-direction: column;
    }

    .currency-select {
        width: 100% !important;
        min-width: unset !important;
    }

    .amount-input {
        width: 100% !important;
    }

    /* Stack year grid to single column */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Reduce hero padding on tiny screens */
    .hero-section {
        padding: 120px 0 60px !important;
        min-height: 350px !important;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    /* Better button sizing for touch */
    .btn-primary,
    .calculate-btn {
        width: 100%;
        padding: 16px 24px !important;
        font-size: 1rem !important;
        min-height: 48px;
    }

    /* Feature grid single column */
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Section headers smaller */
    .section-header,
    h2[class="section-header"] {
        font-size: 1.8rem !important;
    }

    /* Insights grid stack on mobile */
    div[style*="grid-template-columns: 1fr 1fr"][style*="margin-top: 1.5rem"] {
        grid-template-columns: 1fr !important;
    }
}

/* Medium mobile (375-768px) */
@media (max-width: 768px) {

    /* Tighter hero padding */
    .hero-section {
        padding: 140px 0 60px !important;
    }

    /* Better nav menu spacing */
    .nav-links.active {
        gap: 0.5rem;
    }

    .nav-links .nav-link {
        padding: 0.75rem 0;
    }

    /* Full-width glass panel on mobile */
    .glass-panel {
        border-radius: 12px !important;
    }

    /* Chart height adjustment */
    .glass-panel[style*="height: 300px"] {
        height: 220px !important;
    }

    /* Price breakdown grid responsive */
    .price-breakdown-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
}

/* Mobile table overflow handling */
.article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.article-content table th,
.article-content table td {
    white-space: nowrap;
}
