/* ==========================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================== */
:root {
    --bg-primary: #030305;
    --card-bg: rgba(10, 10, 14, 0.40);
    --card-border: rgba(255, 135, 0, 0.14);
    --card-glow: rgba(255, 135, 0, 0.07);

    --accent-primary: #ff8700;
    --accent-secondary: #ffcc00;
    --accent-tertiary: #ff3300;
    --accent-bright: #ffaa00;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.4);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── ALONSO THEME (Renault Blue & Yellow) ─── */
[data-profile="alonso"] {
    --accent-primary: #0057b8;
    --accent-secondary: #ffe600;
    --accent-tertiary: #003d82;
    --accent-bright: #3399ff;
    --card-border: rgba(0, 87, 184, 0.18);
    --card-glow: rgba(0, 87, 184, 0.08);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100vw;
    transition: --accent-primary 0.6s, --accent-secondary 0.6s;
}

a, button { cursor: none; }

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.custom-cursor {
    width: 28px; height: 28px;
    border: 1.5px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    box-shadow: 0 0 12px color-mix(in srgb, var(--accent-primary) 40%, transparent);
}

.custom-cursor-dot {
    width: 5px; height: 5px;
    background-color: var(--accent-bright);
    border-radius: 50%;
    position: fixed; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999;
    box-shadow: 0 0 8px var(--accent-primary);
    transition: transform 0.1s;
}

.custom-cursor.hover {
    width: 48px; height: 48px;
    background-color: color-mix(in srgb, var(--accent-primary) 8%, transparent);
    border-color: var(--accent-bright);
}
.custom-cursor-dot.hover { transform: translate(-50%, -50%) scale(1.5); }

@media (max-width: 768px) {
    .custom-cursor, .custom-cursor-dot { display: none !important; }
    a, button { cursor: pointer !important; }
}

/* ==========================================
   ENTRANCE SCREEN
   ========================================== */
.entrance-container {
    position: fixed; inset: 0;
    background-color: #010103;
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
    transition: opacity 1.2s cubic-bezier(0.85, 0, 0.15, 1), visibility 1.2s;
    background-image: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,135,0,0.07) 0%, transparent 70%);
}
.entrance-content {
    text-align: center; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.entrance-logo {
    position: relative; width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.logo-ring {
    position: absolute; border-radius: 50%;
    border: 1.5px solid rgba(255,135,0,0.5);
    animation: ring-pulse 2.5s ease-in-out infinite;
}
.logo-ring:nth-child(1) { width: 90px; height: 90px; }
.logo-ring.ring-2 { width: 70px; height: 70px; border-color: rgba(255,204,0,0.4); animation-delay: 0.4s; }
.logo-ring.ring-3 { width: 50px; height: 50px; border-color: rgba(255,135,0,0.3); animation-delay: 0.8s; }
.logo-inner {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #ff8700, #ffcc00);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; color: #000;
    z-index: 1; box-shadow: 0 0 20px rgba(255,135,0,0.6);
}
@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

.glitch-text {
    font-family: var(--font-heading); font-size: 3.8rem; font-weight: 800;
    text-transform: uppercase; position: relative; color: var(--text-primary);
    letter-spacing: 0.5rem; text-shadow: 0 0 30px rgba(255,135,0,0.3);
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text); position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; background: #010103;
}
.glitch-text::before {
    left: 2px; text-shadow: -2px 0 #ffcc00;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px; text-shadow: -2px 0 #ff3300;
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}
.pulse-text {
    font-size: 0.85rem; letter-spacing: 0.25rem; color: var(--text-muted);
    text-transform: uppercase; animation: pulse-opacity 2s infinite ease-in-out;
}
.entrance-container.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==========================================
   BACKGROUND & OVERLAYS
   ========================================== */
.bg-video {
    position: fixed; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -3;
    opacity: 0; transition: opacity 0.8s ease;
}
.bg-video.active-video { opacity: 1; }

.overlay-vignette {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
    z-index: -2; pointer-events: none;
}
.overlay-grid {
    position: fixed; inset: 0;
    background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,0.2) 50%),
                linear-gradient(90deg, rgba(255,100,0,0.03), rgba(0,0,0,0.01), rgba(255,100,0,0.03));
    background-size: 100% 3px, 4px 100%;
    z-index: -1; pointer-events: none; opacity: 0.3;
}

/* ==========================================
   TOP LEFT CONTROLS
   ========================================== */
.top-left-controls {
    position: fixed;
    top: 20px; left: 20px;
    z-index: 200;
    display: flex; gap: 12px;
}

.control-pill-btn {
    background: rgba(8, 8, 12, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.03rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 15px var(--card-glow);
}
.control-pill-btn:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 25px color-mix(in srgb, var(--accent-primary) 25%, transparent);
    transform: translateY(-2px);
}
.control-pill-btn:active { transform: translateY(0) scale(0.97); }

.switch-icon {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px; color: #000;
    transition: transform 0.4s ease;
}
.control-pill-btn:hover .switch-icon { transform: rotate(180deg); }
.switch-label { color: var(--text-secondary); }

/* ==========================================
   MAIN LAYOUT
   ========================================== */
.main-container {
    min-height: 100vh; width: 100vw;
    display: flex; flex-direction: column; align-items: center;
    padding: 60px 20px 40px; position: relative; z-index: 10;
    transition: opacity 1s ease-in;
}
.main-container.hidden { opacity: 0; pointer-events: none; }

.card-wrapper {
    width: 100%; max-width: 480px;
    display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px;
}

/* Profile sets */
.profile-set {
    display: flex; flex-direction: column; gap: 16px;
    animation: profile-enter 0.5s ease-out;
}
@keyframes profile-enter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   GLASSMORPHIC CARD
   ========================================== */
.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid var(--card-border);
    border-radius: 24px; padding: 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px var(--card-glow),
                inset 0 1px 0 rgba(255,255,255,0.04);
    display: flex; flex-direction: column; align-items: center;
    position: relative; overflow: hidden; width: 100%;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.profile-card:hover {
    border-color: color-mix(in srgb, var(--accent-primary) 35%, transparent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 40px color-mix(in srgb, var(--accent-primary) 18%, transparent);
    transform: translateY(-3px);
}
.profile-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), var(--accent-primary), transparent);
    background-size: 200% 100%;
    animation: gradient-shift-horizontal 4s linear infinite;
    opacity: 0.8;
}

/* ==========================================
   CARD SECTION LABELS
   ========================================== */
.card-section-label {
    width: 100%; display: flex; align-items: center; gap: 6px;
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12rem;
    text-transform: uppercase; color: var(--accent-primary);
    margin-bottom: 16px; opacity: 0.9;
}

/* ==========================================
   PROFILE HEADER
   ========================================== */
.profile-header-top {
    position: relative;
    width: 100%;
    margin-bottom: 46px; /* Room for overlapping avatar */
}
.avatar-container {
    position: absolute;
    bottom: -32px;
    left: 12px;
    width: 80px;
    height: 80px;
    z-index: 10;
}
.profile-avatar {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    position: relative; z-index: 2; border: 3px solid #0a0a0e;
}
.avatar-glow {
    position: absolute; inset: -4px; border-radius: 50%;
    background: conic-gradient(var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
    z-index: 1; animation: rotate-glow 4s linear infinite; filter: blur(5px); opacity: 0.85;
}
.avatar-status-dot {
    position: absolute; bottom: 3px; right: 3px;
    width: 12px; height: 12px; background: #2dca72; border-radius: 50%;
    border: 2px solid #0a0a0e; z-index: 3;
    box-shadow: 0 0 8px rgba(45,202,114,0.7);
    animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(45,202,114,0.7); }
    50% { box-shadow: 0 0 16px rgba(45,202,114,1); }
}

.card-banner-container {
    width: 100%; height: 140px; border-radius: 16px; overflow: hidden;
    position: relative; border: 1px solid color-mix(in srgb, var(--accent-primary) 18%, transparent);
    box-shadow: 0 0 15px var(--card-glow);
}
.card-banner { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card-banner-container:hover .card-banner { transform: scale(1.04); }
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-primary) 5%, transparent), transparent);
    pointer-events: none;
}

/* User Info */
.user-info { width: 100%; text-align: left; }
.user-title {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1rem; text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 4px; opacity: 0.9;
    animation: gradient-shift-horizontal 5s linear infinite;
}
.username-title {
    font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800;
    letter-spacing: 0.02rem; display: flex; align-items: center; gap: 8px;
}
.badge { display: inline-flex; align-items: center; justify-content: center; }
.verified-badge { color: var(--accent-secondary); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent-secondary) 60%, transparent)); }
.dev-badge { color: var(--accent-primary); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent-primary) 60%, transparent)); }
.user-bio { font-size: 0.83rem; color: var(--text-secondary); margin-top: 6px; }

.user-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
    background: color-mix(in srgb, var(--accent-primary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 20%, transparent);
    border-radius: 20px; padding: 4px 12px;
    font-size: 0.72rem; color: color-mix(in srgb, var(--accent-secondary) 90%, white);
    font-weight: 500; transition: var(--transition-smooth);
}
.tag:hover {
    background: color-mix(in srgb, var(--accent-primary) 15%, transparent);
    border-color: color-mix(in srgb, var(--accent-primary) 40%, transparent);
}

/* ==========================================
   ABOUT ME / DRIVER CARD
   ========================================== */
.about-content { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.about-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.about-text strong { color: var(--text-primary); font-weight: 600; }
.highlight-accent { color: var(--accent-bright); font-weight: 600; }

.driver-badge {
    display: flex; align-items: center; gap: 14px; margin-top: 12px;
    background: color-mix(in srgb, var(--accent-primary) 6%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 20%, transparent);
    border-radius: 16px; padding: 14px 18px; position: relative; overflow: hidden;
}
.driver-badge::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px 0 0 4px;
}
.driver-number {
    font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 0 0 20px color-mix(in srgb, var(--accent-primary) 50%, transparent);
    line-height: 1;
}
.driver-info { display: flex; flex-direction: column; gap: 2px; }
.driver-name { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.driver-team {
    font-size: 0.72rem; color: var(--accent-primary);
    letter-spacing: 0.05rem; text-transform: uppercase; font-weight: 500;
}
.driver-flag {
    margin-left: auto; font-size: 1.6rem;
    animation: flag-wave 2s ease-in-out infinite;
}
@keyframes flag-wave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* ==========================================
   MUSIC PLAYER
   ========================================== */
.music-player { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.player-info { display: flex; align-items: center; gap: 14px; }
.disc-container { width: 42px; height: 42px; flex-shrink: 0; }
.disc {
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle, #0a0a0e 30%, var(--accent-primary) 31%, #0a0a0e 38%, var(--accent-secondary) 75%, rgba(255,255,255,0.9) 98%);
    box-shadow: 0 0 10px rgba(0,0,0,0.8); position: relative;
}
.disc::after {
    content: ''; position: absolute; width: 10px; height: 10px;
    background: #0a0a0e; border-radius: 50%; inset: 0; margin: auto;
}
.disc.spinning { animation: spin-disc 2.5s linear infinite; }

.track-details { flex: 1; overflow: hidden; }
.track-name { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.track-artist { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

.track-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-primary); flex-shrink: 0; opacity: 0;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: live-pulse 1.5s ease-in-out infinite; transition: opacity 0.3s;
}
.track-live-dot.active { opacity: 1; }
@keyframes live-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.4); opacity: 1; }
}

.player-controls { display: flex; align-items: center; gap: 12px; }
.control-btn {
    background: none; border: none; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    padding: 6px; border-radius: 8px; transition: var(--transition-smooth); flex-shrink: 0;
}
.control-btn:hover { color: var(--accent-primary); background: color-mix(in srgb, var(--accent-primary) 8%, transparent); transform: scale(1.1); }

.progress-bar-container {
    flex-grow: 1; height: 4px; background: rgba(255,255,255,0.08);
    border-radius: 4px; position: relative; cursor: pointer;
}
.progress-bar {
    height: 100%; width: 0%; border-radius: 4px; position: absolute; top: 0; left: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent-primary) 50%, transparent);
    transition: width 0.1s linear;
}

.volume-container { display: flex; align-items: center; gap: 6px; }
.volume-slider {
    -webkit-appearance: none; appearance: none; height: 3px;
    background: rgba(255,255,255,0.1); border-radius: 3px; outline: none;
    opacity: 0; width: 0px; visibility: hidden;
    transition: opacity 0.3s, width 0.3s, visibility 0.3s;
}
.volume-container:hover .volume-slider { opacity: 1; visibility: visible; width: 55px; }
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent-primary); box-shadow: 0 0 6px var(--accent-primary); cursor: pointer;
}
.volume-slider::-moz-range-thumb {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent-primary); box-shadow: 0 0 6px var(--accent-primary); border: none; cursor: pointer;
}

/* ==========================================
   SOCIAL BUTTONS
   ========================================== */
.social-links { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.social-btn {
    width: 100%; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
    padding: 14px 18px; display: flex; align-items: center; gap: 14px;
    color: var(--text-primary); text-decoration: none; position: relative;
    overflow: hidden; transition: var(--transition-smooth); text-align: left;
    font-family: var(--font-body);
}
.social-btn::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: left 0.5s ease;
}
.social-btn:hover::after { left: 150%; }
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.04); flex-shrink: 0; transition: var(--transition-bounce);
}
.social-label { font-size: 0.9rem; font-weight: 600; }
.social-handle { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.social-arrow {
    font-size: 1rem; color: var(--text-muted); opacity: 0;
    transform: translateX(-6px); transition: var(--transition-smooth);
}
.social-btn:hover .social-arrow { opacity: 1; transform: translateX(0); color: var(--accent-primary); }

.social-btn.instagram:hover { background: rgba(225,48,108,0.06); border-color: rgba(225,48,108,0.35); box-shadow: 0 0 20px rgba(225,48,108,0.12); color: #e1306c; }
.social-btn.instagram:hover .social-icon { background: rgba(225,48,108,0.1); transform: scale(1.1) rotate(5deg); }
.social-btn.tiktok:hover { background: rgba(0,0,0,0.2); border-color: rgba(0,243,255,0.25); box-shadow: -2px 2px 12px rgba(255,0,80,0.12), 2px -2px 12px rgba(0,243,255,0.12); }
.social-btn.tiktok:hover .social-icon { transform: scale(1.1) rotate(-5deg); filter: drop-shadow(-1px 1px 0 #ff0050) drop-shadow(1px -1px 0 #00f2fe); }
.social-btn.discord:hover { background: rgba(88,101,242,0.07); border-color: rgba(88,101,242,0.35); box-shadow: 0 0 20px rgba(88,101,242,0.12); color: #7289da; }
.social-btn.discord:hover .social-icon { background: rgba(88,101,242,0.1); transform: scale(1.1); }

.copy-tooltip {
    position: absolute; right: 16px;
    background: rgba(10,10,15,0.9); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary); font-size: 0.72rem; padding: 4px 10px;
    border-radius: 8px; opacity: 0; transform: translateX(8px);
    transition: var(--transition-smooth); pointer-events: none;
}
.social-btn.discord:hover .copy-tooltip { opacity: 1; transform: translateX(0); }

/* ==========================================
   DEVELOPER TERMINAL
   ========================================== */
.dev-terminal {
    background: rgba(3,3,5,0.9); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; width: 100%; overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}
.terminal-header {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 9px 14px; display: flex; align-items: center; gap: 6px; position: relative;
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #ff5f56; box-shadow: 0 0 6px rgba(255,95,86,0.5); }
.dot-yellow { background: #ffbd2e; box-shadow: 0 0 6px rgba(255,189,46,0.5); }
.dot-green { background: #27c93f; box-shadow: 0 0 6px rgba(39,201,63,0.5); }
.terminal-title {
    color: var(--text-muted); font-size: 0.68rem;
    position: absolute; left: 50%; transform: translateX(-50%);
}
.terminal-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.terminal-line { color: var(--accent-primary); font-size: 0.78rem; display: flex; gap: 8px; align-items: baseline; }
.term-prompt { color: var(--accent-secondary); font-weight: bold; }
.terminal-output { color: var(--text-secondary); font-size: 0.78rem; padding-left: 16px; line-height: 1.4; margin-bottom: 2px; }
.cursor-blink { animation: blink-cursor 1s step-end infinite; color: var(--accent-primary); font-weight: bold; font-size: 1rem; }
@keyframes blink-cursor { from, to { opacity: 0; } 50% { opacity: 1; } }

/* ==========================================
   FOOTER
   ========================================== */
.footer { padding-bottom: 30px; text-align: center; }
.footer p { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1rem; text-transform: uppercase; }

/* ==========================================
   VIEW COUNTER
   ========================================== */
.view-counter {
    position: fixed; bottom: 20px; left: 20px;
    background: rgba(8,8,12,0.75); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 15%, transparent);
    border-radius: 30px; padding: 10px 18px;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 100;
    transition: var(--transition-smooth);
}
.view-counter:hover {
    border-color: color-mix(in srgb, var(--accent-primary) 40%, transparent);
    transform: translateY(-2px);
}
.counter-eye-icon { width: 15px; height: 15px; color: var(--accent-primary); animation: pulse-opacity 3s infinite ease-in-out; }
.counter-value { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06rem; color: var(--text-primary); }

/* ==========================================
   KEYFRAMES
   ========================================== */
@keyframes glitch-anim {
    0% { clip: rect(31px,9999px,94px,0); } 10% { clip: rect(112px,9999px,76px,0); }
    20% { clip: rect(85px,9999px,5px,0); } 30% { clip: rect(27px,9999px,115px,0); }
    40% { clip: rect(76px,9999px,44px,0); } 50% { clip: rect(131px,9999px,98px,0); }
    60% { clip: rect(9px,9999px,17px,0); } 70% { clip: rect(55px,9999px,82px,0); }
    80% { clip: rect(104px,9999px,120px,0); } 90% { clip: rect(22px,9999px,63px,0); }
    100% { clip: rect(88px,9999px,137px,0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(76px,9999px,116px,0); } 11% { clip: rect(9px,9999px,55px,0); }
    22% { clip: rect(122px,9999px,83px,0); } 33% { clip: rect(41px,9999px,12px,0); }
    44% { clip: rect(95px,9999px,137px,0); } 55% { clip: rect(18px,9999px,74px,0); }
    66% { clip: rect(106px,9999px,32px,0); } 77% { clip: rect(63px,9999px,118px,0); }
    88% { clip: rect(130px,9999px,90px,0); } 100% { clip: rect(35px,9999px,148px,0); }
}
@keyframes pulse-opacity { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes rotate-glow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-disc { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes gradient-shift-horizontal {
    0% { background-position: 0% 0%; }
    100% { background-position: -200% 0%; }
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #030305; }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary)); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-bright); }

/* Responsive */
@media (max-width: 480px) {
    .main-container { padding: 50px 14px 30px; }
    .profile-card { padding: 18px; border-radius: 20px; }
    .username-title { font-size: 1.5rem; }
    .glitch-text { font-size: 2.6rem; letter-spacing: 0.3rem; }
    .top-left-controls { flex-direction: column; gap: 8px; top: 14px; left: 14px; }
    .control-pill-btn { padding: 8px 12px; font-size: 0.72rem; }
}

/* ==========================================
   LOW PERFORMANCE MODE (Optimization)
   ========================================== */
/* Hardware Acceleration for Heavy Elements */
.bg-video, .overlay-vignette, .overlay-grid, .profile-card {
    transform: translateZ(0);
}

/* Fallback for system reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Active Low Performance Mode */
body.low-performance .bg-video {
    display: none !important;
}
body.low-performance .overlay-vignette {
    background: #0a0a0e;
}
body.low-performance .profile-card::before {
    animation: none !important;
    background: var(--accent-primary) !important;
}
body.low-performance .glitch-text::before,
body.low-performance .glitch-text::after,
body.low-performance .avatar-glow,
body.low-performance .avatar-status-dot,
body.low-performance .disc.spinning {
    animation: none !important;
}
body.low-performance .profile-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 14, 0.95);
}
body.low-performance #performance-btn {
    color: var(--text-muted);
    border-color: rgba(255,255,255,0.1);
    box-shadow: none;
}
body.low-performance #performance-btn:hover {
    border-color: rgba(255,255,255,0.3);
}
