:root {
    --color-primary: #8b5cf6;
    --color-primary-light: #a78bfa;
    --color-primary-dark: #7c3aed;
    --color-secondary: #ec4899;
    --color-accent: #06b6d4;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    --text-primary: #fafafa;
    --text-secondary: rgba(250, 250, 250, 0.7);
    --text-muted: rgba(250, 250, 250, 0.4);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.5);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ========== ANIMATED BACKGROUND ========== */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.mesh-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(236, 72, 153, 0.2), transparent),
        radial-gradient(ellipse 40% 60% at 0% 100%, rgba(6, 182, 212, 0.2), transparent);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    top: -15%;
    left: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    bottom: -10%;
    right: -10%;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-warning) 100%);
    top: 40%;
    left: 60%;
    animation-delay: -16s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(40px, -60px) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translate(-30px, 40px) rotate(-5deg) scale(0.95);
    }

    75% {
        transform: translate(-50px, -20px) rotate(3deg) scale(1.02);
    }
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* ========== FLOATING PARTICLES ========== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* ========== BRAND HEADER ========== */
.brand-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-sm) var(--spacing-lg);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-sm);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-accent {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.control-btn .sound-off,
.control-btn .theme-light {
    display: none;
}

.control-btn.sound-muted .sound-on {
    display: none;
}

.control-btn.sound-muted .sound-off {
    display: block;
}

.control-btn.light-mode .theme-dark {
    display: none;
}

.control-btn.light-mode .theme-light {
    display: block;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    max-width: 480px;
    padding: var(--spacing-md);
    z-index: 1;
    margin-top: 60px;
}

/* ========== CARD STYLES ========== */
.card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 20px 50px -10px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(139, 92, 246, 0.1);
    animation: cardEntry 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-xl);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    filter: blur(20px);
}

.card:hover .card-glow {
    opacity: 0.3;
}

@keyframes cardEntry {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ========== LOADING CARD ========== */
.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: var(--spacing-xl);
    gap: var(--spacing-lg);
}

.qr-loader {
    position: relative;
    width: 90px;
    height: 90px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    height: 100%;
}

.qr-cell {
    background: var(--bg-glass);
    border-radius: 4px;
    animation: qrPulse 1.5s infinite ease-in-out;
}

.qr-cell:nth-child(1) {
    animation-delay: 0s;
}

.qr-cell:nth-child(2) {
    animation-delay: 0.1s;
}

.qr-cell:nth-child(3) {
    animation-delay: 0.2s;
}

.qr-cell:nth-child(4) {
    animation-delay: 0.1s;
}

.qr-cell:nth-child(5) {
    animation-delay: 0.2s;
}

.qr-cell:nth-child(6) {
    animation-delay: 0.3s;
}

.qr-cell:nth-child(7) {
    animation-delay: 0.2s;
}

.qr-cell:nth-child(8) {
    animation-delay: 0.3s;
}

.qr-cell:nth-child(9) {
    animation-delay: 0.4s;
}

@keyframes qrPulse {

    0%,
    100% {
        background: var(--bg-glass);
        transform: scale(1);
    }

    50% {
        background: var(--color-primary);
        transform: scale(0.9);
        box-shadow: 0 0 20px var(--color-primary);
    }
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    border-radius: 2px;
    animation: scan 2s infinite ease-in-out;
    box-shadow: 0 0 20px var(--color-accent);
}

@keyframes scan {

    0%,
    100% {
        top: 0;
        opacity: 1;
    }

    50% {
        top: 100%;
        opacity: 0.5;
    }
}

.loading-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* ========== CONTENT CARD ========== */
.content-card {
    padding: 0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08));
    border-bottom: 1px solid var(--border-color);
}

.icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    color: white;
    flex-shrink: 0;
    animation: iconPulse 3s infinite ease-in-out;
}

.icon-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    opacity: 0.4;
    filter: blur(12px);
    z-index: -1;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.header-text {
    flex: 1;
    min-width: 0;
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
}

.card-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-body {
    padding: var(--spacing-lg);
}

.content-section {
    margin-bottom: var(--spacing-md);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
}

.content-value {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    word-break: break-all;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.content-value::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.content-value:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.content-value:hover::before {
    opacity: 0.05;
}

.content-value.url-value {
    color: var(--color-accent);
    cursor: pointer;
}

.content-value.text-value {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}

/* WiFi Details */
.wifi-details {
    display: grid;
    gap: 0.75rem;
}

.wifi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.wifi-row:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.wifi-row .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.wifi-row .value {
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

/* vCard */
.vcard-grid {
    display: grid;
    gap: 0.75rem;
}

.vcard-field {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: 0.875rem var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.vcard-field:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.vcard-field svg {
    flex-shrink: 0;
    color: var(--color-primary-light);
    margin-top: 2px;
}

.vcard-field .field-content {
    flex: 1;
    min-width: 0;
}

.vcard-field .field-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.vcard-field .field-value {
    font-size: 0.95rem;
    word-break: break-word;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.75rem;
    padding: var(--spacing-lg);
    padding-top: 0;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex: 1;
    min-width: 130px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-sm);
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 0.6;
}

/* ========== INLINE PROMO CTA ========== */
.inline-promo {
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.08));
    animation: inlinePromoEntry 0.4s ease-out;
}

@keyframes inlinePromoEntry {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inline-promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem var(--spacing-lg);
}

.inline-promo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.inline-promo-text strong {
    color: var(--color-primary-light);
    font-weight: 700;
}

.inline-promo-icon {
    font-size: 1.1rem;
}

.inline-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    }
}

.inline-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.inline-promo-btn:active {
    transform: scale(0.98);
}

/* Mobile optimizations for inline promo */
@media (max-width: 480px) {
    .inline-promo-content {
        flex-direction: column;
        text-align: center;
        padding: 0.875rem var(--spacing-md);
        gap: 0.75rem;
    }

    .inline-promo-text {
        font-size: 0.85rem;
        justify-content: center;
    }

    .inline-promo-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }
}

/* Light theme inline promo */
body.light-theme .inline-promo {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
}

/* ========== COUNTDOWN ========== */
.countdown-wrapper {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: rgba(139, 92, 246, 0.03);
}

.countdown-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-full);
    transition: width 1s linear;
    box-shadow: 0 0 20px var(--color-primary);
}

.countdown-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.countdown-icon {
    font-size: 1rem;
}

.countdown-number {
    font-weight: 700;
    color: var(--color-primary-light);
    font-size: 1rem;
}

.btn-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin: var(--spacing-sm) auto 0;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

/* ========== ERROR CARD ========== */
.error-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.error-animation {
    margin-bottom: var(--spacing-lg);
}

.error-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    color: var(--color-error);
    animation: errorPulse 2s infinite ease-in-out;
}

@keyframes errorPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
    }
}

.error-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.error-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== FOOTER ========== */
.footer {
    padding: var(--spacing-lg);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--color-primary);
}

.footer-decoration {
    display: flex;
    gap: 0.5rem;
}

.footer-decoration .dot {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: dotPulse 2s infinite ease-in-out;
}

.footer-decoration .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.footer-decoration .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* ========== PROMOTIONAL BANNER ========== */
.promo-banner {
    position: relative;
    margin-top: var(--spacing-lg);
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: promoBannerEntry 0.6s ease-out 0.3s both;
}

@keyframes promoBannerEntry {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-primary));
    background-size: 300% 300%;
    border-radius: var(--radius-xl);
    opacity: 0.15;
    z-index: -1;
    animation: promoGlow 4s ease infinite;
}

@keyframes promoGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.promo-content {
    padding: var(--spacing-lg);
    text-align: center;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-light);
    margin-bottom: var(--spacing-md);
}

.promo-badge svg {
    color: var(--color-warning);
}

.promo-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.6;
}

.promo-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.promo-feature svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s ease;
    animation: promoPulse 2s ease-in-out infinite;
}

@keyframes promoPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }

    50% {
        box-shadow: 0 8px 40px rgba(139, 92, 246, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
}

.btn-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-promo:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
}

.btn-promo:hover::before {
    left: 100%;
}

.btn-promo span,
.btn-promo svg {
    position: relative;
    z-index: 1;
}

.promo-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.promo-trust svg {
    color: var(--color-success);
}

/* Light theme promo adjustments */
body.light-theme .promo-banner {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body.light-theme .promo-glow {
    opacity: 0.1;
}

body.light-theme .promo-title {
    background: linear-gradient(135deg, var(--text-primary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive promo */
@media (max-width: 480px) {
    .promo-content {
        padding: var(--spacing-md);
    }

    .promo-title {
        font-size: 1.2rem;
    }

    .promo-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .btn-promo {
        width: 100%;
        padding: 0.9rem 1.5rem;
    }
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.9rem;
    font-weight: 500;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

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

/* ========== UTILITIES ========== */
.hidden {
    display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
        margin-top: 70px;
    }

    .card {
        border-radius: var(--radius-lg);
    }

    .card-header {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .card-header h1 {
        font-size: 1.1rem;
        white-space: normal;
    }

    .card-body,
    .card-actions {
        padding: var(--spacing-md);
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .gradient-orb {
        opacity: 0.25;
        filter: blur(80px);
    }

    .brand-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========== LIGHT THEME ========== */
body.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --bg-glass-hover: rgba(0, 0, 0, 0.06);

    --text-primary: #0f172a;
    --text-secondary: rgba(15, 23, 42, 0.7);
    --text-muted: rgba(15, 23, 42, 0.4);

    --border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .mesh-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(236, 72, 153, 0.1), transparent),
        radial-gradient(ellipse 40% 60% at 0% 100%, rgba(6, 182, 212, 0.1), transparent);
}

body.light-theme .gradient-orb {
    opacity: 0.2;
}

body.light-theme .noise-overlay {
    opacity: 0.02;
}

body.light-theme .card {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03) inset,
        0 20px 50px -10px rgba(0, 0, 0, 0.1),
        0 0 100px rgba(139, 92, 246, 0.05);
}

body.light-theme .card-header {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
}

body.light-theme .card-header h1 {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.8);
}

body.light-theme .toast {
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

body.light-theme .particle {
    opacity: 0.4;
}

body.light-theme .brand-name {
    color: var(--text-primary);
}

/* Theme transition */
body,
.card,
.btn,
.control-btn,
.content-value,
.mesh-gradient,
.gradient-orb {
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}