/* ============================================
   CLICKLY - Bright & Modern CSS
   ============================================ */

:root {
    /* Vibrant Color Palette */
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #5A4BD1;
    --secondary: #00CEC9;
    --accent-pink: #FD79A8;
    --accent-orange: #E17055;
    --accent-yellow: #FFEAA7;
    --accent-green: #00B894;
    --accent-blue: #0984E3;
    --accent-red: #FF6B6B;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6C5CE7, #A29BFE, #74B9FF);
    --gradient-warm: linear-gradient(135deg, #FD79A8, #E17055, #FDCB6E);
    --gradient-cool: linear-gradient(135deg, #00CEC9, #0984E3, #6C5CE7);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    /* Neutrals */
    --bg: #F8F9FE;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-light: #B2BEC3;
    --border: #E8ECF4;
    --border-light: #F0F3F9;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(108, 92, 231, 0.08);
    --shadow-md: 0 4px 20px rgba(108, 92, 231, 0.12);
    --shadow-lg: 0 8px 40px rgba(108, 92, 231, 0.16);
    --shadow-xl: 0 20px 60px rgba(108, 92, 231, 0.2);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.3);

    /* Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --sidebar-width: 260px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wave { display: inline-block; animation: wave 2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn .material-symbols-rounded { font-size: 18px; }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.5);
}

.btn-outline {
    border: 2px solid var(--primary-light);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text-secondary, #636e72);
    background: transparent;
}
.btn-ghost:hover { color: var(--primary); background: rgba(108, 92, 231, 0.08); }

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15); }

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.btn-icon:hover { background: rgba(108, 92, 231, 0.1); color: var(--primary); }
.btn-icon-danger:hover { background: rgba(255, 107, 107, 0.1); color: var(--accent-red); }
.btn-icon.toggle-active { color: var(--primary); background: rgba(108, 92, 231, 0.1); }
.btn-icon.toggle-inactive { color: var(--text-light); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.form-group label .material-symbols-rounded { font-size: 18px; color: var(--primary); }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
    overflow: hidden;
}
.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
    background: white;
}
.input-wrapper .material-symbols-rounded {
    padding-left: 14px;
    color: var(--text-light);
    font-size: 20px;
}
.input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 15px;
    background: transparent;
    color: var(--text-primary);
}
.input-wrapper input::placeholder { color: var(--text-light); }

.input-lg input { padding: 16px 14px; font-size: 16px; }

.input-with-prefix { display: flex; }
.input-prefix {
    padding: 12px 0 12px 14px;
    color: var(--text-light);
    font-size: 14px;
    white-space: nowrap;
}

.form-row { display: flex; gap: 16px; }
.form-row > .form-group { flex: 1; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { flex-direction: column; } .form-row-3 { grid-template-columns: 1fr; } }

.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    height: 48px;
    box-sizing: border-box;
    font-size: 15px;
    background: var(--bg);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
    appearance: none;
    cursor: pointer;
}
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    height: 48px;
    box-sizing: border-box;
}
.color-input-wrapper input[type="color"] {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
}
.color-label { font-size: 14px; color: var(--text-secondary); font-family: monospace; }

.pw-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--text-light);
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s;
}
.pw-toggle:hover { color: var(--primary); }
.pw-toggle .material-symbols-rounded { font-size: 20px; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    word-break: break-all;
}
.alert .material-symbols-rounded {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.alert-error {
    background: #FFF5F5;
    color: #E53E3E;
    border: 1px solid #FED7D7;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Reset Link Card */
.reset-link-card {
    background: #fafbff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}
.reset-link-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 6px;
}
.reset-link-header .material-symbols-rounded { font-size: 20px; }
.reset-link-note {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.reset-link-url {
    display: block;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    font-family: monospace;
    color: var(--primary);
    word-break: break-all;
    line-height: 1.5;
    text-decoration: none;
    transition: all 0.15s;
}
.reset-link-url:hover {
    background: rgba(108, 92, 231, 0.04);
    border-color: var(--primary);
}

/* ============================================
   NAVIGATION (Landing)
   ============================================ */
.nav-landing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.nav-landing.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: rgba(108, 92, 231, 0.06);
    box-shadow: 0 1px 12px rgba(108, 92, 231, 0.08);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}
.logo-icon {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px !important;
}
.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.logo-byline {
    font-size: 9px;
    font-weight: 400;
    color: var(--text-light);
    -webkit-text-fill-color: var(--text-light);
    letter-spacing: 0.5px;
    width: 100%;
    padding-left: 38px;
    margin-top: -8px;
    text-transform: uppercase;
}
.logo-byline strong {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    font-weight: 700;
}

/* Nav center links */
.nav-center {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary, #636e72);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color 0.2s, background 0.2s;
    position: relative;
}
.nav-link:hover {
    color: var(--text-primary, #1a1a2e);
    background: rgba(108, 92, 231, 0.05);
}

.nav-links { display: flex; align-items: center; gap: 10px; }

/* Dashboard button (logged in) */
.nav-dashboard-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    background: rgba(108, 92, 231, 0.08);
    transition: background 0.2s, transform 0.15s;
}
.nav-dashboard-btn .material-symbols-rounded { font-size: 18px; }
.nav-dashboard-btn:hover {
    background: rgba(108, 92, 231, 0.14);
    transform: translateY(-1px);
}
.nav-logout-btn {
    color: var(--accent-red);
    background: rgba(255, 107, 107, 0.08);
}
.nav-logout-btn:hover {
    background: rgba(255, 107, 107, 0.14);
}

/* User pill */
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
    cursor: pointer;
}
.nav-user:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}
.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.nav-username {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}
.nav-chevron {
    font-size: 18px !important;
    color: var(--text-light);
    transition: transform 0.2s;
}
.nav-user:hover .nav-chevron {
    transform: translateY(1px);
    color: var(--text-secondary);
}

/* CTA button refinement */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: -0.2px;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.25);
    transition: transform 0.15s, box-shadow 0.2s;
}
.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
}
.btn-cta-arrow {
    font-size: 18px !important;
    transition: transform 0.2s;
}
.btn-cta:hover .btn-cta-arrow {
    transform: translateX(3px);
}

/* Nav responsive */
@media (max-width: 768px) {
    .nav-center { display: none; }
    .nav-container { padding: 0 16px; height: 60px; }
    .nav-dashboard-btn { display: none; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 24px 40px;
    width: 100%;
}

.hero-shader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero > *:not(.hero-shader-bg):not(.hero-scroll-arrow) {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}
.hero-bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--accent-pink); bottom: 10%; left: -50px; animation-delay: -5s; }
.shape-3 { width: 250px; height: 250px; background: var(--secondary); top: 40%; right: 20%; animation-delay: -10s; }
.shape-4 { width: 200px; height: 200px; background: var(--accent-yellow); top: 20%; left: 10%; animation-delay: -15s; }
.shape-5 { width: 350px; height: 350px; background: var(--accent-blue); bottom: -50px; right: 30%; animation-delay: -7s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content { flex: 1; max-width: 560px; color: var(--text-primary, #1a1a2e); }
.hero-content-centered {
    text-align: center;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary, #6C5CE7);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge .material-symbols-rounded { font-size: 18px; }

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--text-primary, #1a1a2e);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary, #636e72);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-scroll-arrow {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    width: 36px;
    margin: 0 auto;
    z-index: 2;
    color: var(--text-light, #b2bec3);
    text-decoration: none;
    text-align: center;
    animation: bounceArrow 2s ease-in-out infinite;
    transition: color 0.2s;
}
.hero-scroll-arrow:hover { color: var(--primary, #6C5CE7); }
.hero-scroll-arrow .material-symbols-rounded { font-size: 36px; }
@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.hero-cta { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center; }
.hero-cta .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}
.hero-cta .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.5);
}
.hero-cta .btn-outline {
    border: 2px solid var(--primary-light, #a29bfe);
    color: var(--primary, #6C5CE7);
    background: transparent;
}
.hero-cta .btn-outline:hover {
    background: var(--primary, #6C5CE7);
    color: white;
    border-color: var(--primary, #6C5CE7);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.hero-stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.hero-stat span { font-size: 13px; color: var(--text-light); }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-visual { flex: 1; max-width: 480px; }
.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s;
    animation: cardFloat 6s ease-in-out infinite;
}
.hero-card:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
@keyframes cardFloat {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px); }
}
.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-card-dots { display: flex; gap: 6px; }
.hero-card-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hero-card-dots span:nth-child(1) { background: #FF6B6B; }
.hero-card-dots span:nth-child(2) { background: #FECA57; }
.hero-card-dots span:nth-child(3) { background: #48DBFB; }
.hero-card-url { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.hero-card-body { padding: 24px; }
.hero-input-demo, .hero-output-demo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
}
.hero-input-demo {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
}
.hero-arrow {
    display: flex;
    justify-content: center;
    padding: 8px;
    color: rgba(255, 255, 255, 0.4);
}
.hero-output-demo {
    background: rgba(108, 92, 231, 0.25);
    border: 2px solid rgba(162, 155, 254, 0.4);
    color: #a29bfe;
    font-weight: 600;
}
.demo-copy { margin-left: auto; font-size: 18px !important; cursor: pointer; }
.hero-mini-stats {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mini-bar {
    flex: 1;
    background: linear-gradient(180deg, #a29bfe, #6C5CE7);
    border-radius: 4px 4px 0 0;
    animation: growBar 2s ease-out forwards;
    opacity: 0;
}
.mini-bar:nth-child(1) { animation-delay: 0.1s; }
.mini-bar:nth-child(2) { animation-delay: 0.2s; }
.mini-bar:nth-child(3) { animation-delay: 0.3s; }
.mini-bar:nth-child(4) { animation-delay: 0.4s; }
.mini-bar:nth-child(5) { animation-delay: 0.5s; }
.mini-bar:nth-child(6) { animation-delay: 0.6s; }
.mini-bar:nth-child(7) { animation-delay: 0.7s; }
@keyframes growBar { to { opacity: 1; } }

/* Hero responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
        gap: 40px;
        min-height: auto;
    }
    .hero-content { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 16px; }
    .hero-visual { max-width: 100%; width: 100%; }
    .hero-card { transform: none; animation: none; }
    .hero-card:hover { transform: none; }
}
@media (max-width: 480px) {
    .hero { padding: 90px 16px 40px; }
    .hero h1 { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-stat-divider { display: none; }
    .nav-links .btn-cta { font-size: 13px; padding: 8px 14px; }
    .nav-links .btn-ghost { display: none; }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
}
.section-header p { color: var(--text-secondary); font-size: 16px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.feature-card-accent-1::before { background: var(--gradient-primary); }
.feature-card-accent-2::before { background: linear-gradient(135deg, #00CEC9, #00B894); }
.feature-card-accent-3::before { background: linear-gradient(135deg, #FD79A8, #E84393); }
.feature-card-accent-4::before { background: linear-gradient(135deg, #FFEAA7, #FDCB6E); }
.feature-card-accent-5::before { background: linear-gradient(135deg, #74B9FF, #0984E3); }
.feature-card-accent-6::before { background: linear-gradient(135deg, #FF6B6B, #E17055); }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 28px;
}
.feature-card-accent-1 .feature-icon { background: rgba(108, 92, 231, 0.1); color: var(--primary); }
.feature-card-accent-2 .feature-icon { background: rgba(0, 206, 201, 0.1); color: var(--secondary); }
.feature-card-accent-3 .feature-icon { background: rgba(253, 121, 168, 0.1); color: var(--accent-pink); }
.feature-card-accent-4 .feature-icon { background: rgba(253, 203, 110, 0.15); color: #F39C12; }
.feature-card-accent-5 .feature-icon { background: rgba(9, 132, 227, 0.1); color: var(--accent-blue); }
.feature-card-accent-6 .feature-icon { background: rgba(255, 107, 107, 0.1); color: var(--accent-red); }

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ============================================
   FEATURE CAROUSEL
   ============================================ */
.fc-section {
    position: relative;
    overflow: hidden;
    padding: 60px 16px;
    background: var(--bg, #f8f9fb);
}
.fc-section .crystal-canvas-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

.fc-wrap {
    position: relative; z-index: 1;
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 600px;
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Left panel */
.fc-left {
    width: 40%;
    min-width: 280px;
    background: var(--primary, #6C5CE7);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    overflow: hidden;
}
.fc-left-fade {
    position: absolute; left: 0; right: 0; height: 60px; z-index: 5; pointer-events: none;
}
.fc-left-fade-top { top: 0; background: linear-gradient(to bottom, var(--primary, #6C5CE7), transparent); }
.fc-left-fade-bot { bottom: 0; background: linear-gradient(to top, var(--primary, #6C5CE7), transparent); }

.fc-labels {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 24px;
    z-index: 2;
}

.fc-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.fc-chip .material-symbols-rounded { font-size: 18px; }
.fc-chip:hover {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.4);
}
.fc-chip.active {
    background: #fff;
    color: var(--primary, #6C5CE7);
    border-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Right panel */
.fc-right {
    flex: 1;
    background: #f4f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border-left: 1px solid rgba(0,0,0,0.06);
}

.fc-stage {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4/5;
}

.fc-card {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    overflow: hidden;
    border: 6px solid #fff;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: scale(0.85) translateX(100px) rotate(3deg);
    opacity: 0;
    transition: all 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}
.fc-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.75) blur(2px);
    transition: filter 0.6s;
}
.fc-card.active {
    transform: scale(1) translateX(0) rotate(0deg);
    opacity: 1;
    z-index: 20;
    pointer-events: auto;
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.18);
}
.fc-card.active img {
    filter: none;
}
.fc-card.prev {
    transform: scale(0.85) translateX(-80px) rotate(-3deg);
    opacity: 0.4;
    z-index: 10;
}
.fc-card.next {
    transform: scale(0.85) translateX(80px) rotate(3deg);
    opacity: 0.4;
    z-index: 10;
}

.fc-card-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 60px 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
}
.fc-card.active .fc-card-info {
    opacity: 1;
    transform: translateY(0);
}
.fc-card-tag {
    display: inline-block;
    background: #fff;
    color: var(--text-primary, #1a1a2e);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.fc-card-info p {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

/* Live dot */
.fc-card::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 5;
}
.fc-card.active::before { opacity: 1; }

@media (max-width: 900px) {
    .fc-wrap { flex-direction: column; border-radius: 1.5rem; max-width: calc(100% - 32px); min-height: auto; }
    .fc-left { width: 100%; min-width: auto; padding: 32px 16px; }
    .fc-labels { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .fc-chip { padding: 8px 16px; font-size: 12px; }
    .fc-left-fade { display: none; }
    .fc-right { padding: 24px; min-height: 450px; }
    .fc-stage { max-width: 300px; }
}
@media (max-width: 480px) {
    .fc-right { min-height: 380px; padding: 16px; }
    .fc-stage { max-width: 260px; }
    .fc-card { border-width: 4px; border-radius: 1.2rem; }
    .fc-card-info p { font-size: 15px; }
}

/* ============================================
   SHOWCASE SECTIONS (legacy)
   ============================================ */
.showcase { padding: 100px 0; }
.showcase-alt { background: var(--bg); }

.showcase-row {
    display: flex;
    align-items: center;
    gap: 80px;
}
.showcase-row-reverse { flex-direction: row-reverse; }

.showcase-text { flex: 1; max-width: 480px; }
.showcase-visual { flex: 1; }

.showcase-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}
.showcase-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.showcase-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}
.showcase-list li .material-symbols-rounded {
    font-size: 22px;
    color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    padding: 6px;
    border-radius: 8px;
}

/* --- Mock UI Windows --- */
.mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #F8F9FE;
    border-bottom: 1px solid var(--border-light);
    border-radius: 16px 16px 0 0;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red { background: #FF6B6B; }
.mock-dot.yellow { background: #FECA57; }
.mock-dot.green { background: #48DBFB; }
.mock-title { margin-left: 8px; font-size: 13px; color: var(--text-light); font-weight: 600; }

.mock-body { padding: 24px; }

/* --- Animate on scroll --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mock Dashboard (Analytics) --- */
.mock-dashboard {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.mock-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.mock-stat-card {
    flex: 1;
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.mock-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}
.mock-stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mock-stat-trend {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
}
.mock-stat-trend.up { background: rgba(0,184,148,0.1); color: #00B894; }
.mock-stat-trend.neutral { background: rgba(225,112,85,0.1); color: #E17055; }

/* Mock chart bars */
.mock-chart { margin-top: 8px; }
.mock-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding-bottom: 8px;
}
.mock-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, #6C5CE7, #A29BFE);
    border-radius: 6px 6px 0 0;
    position: relative;
    animation: mockBarGrow 1.2s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}
.mock-bar:nth-child(1) { animation-delay: 0.1s; }
.mock-bar:nth-child(2) { animation-delay: 0.2s; }
.mock-bar:nth-child(3) { animation-delay: 0.3s; }
.mock-bar:nth-child(4) { animation-delay: 0.4s; }
.mock-bar:nth-child(5) { animation-delay: 0.5s; }
.mock-bar:nth-child(6) { animation-delay: 0.6s; }
.mock-bar:nth-child(7) { animation-delay: 0.7s; }

.mock-bar-bot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bh);
    background: #E17055;
    border-radius: 0 0 0 0;
}

@keyframes mockBarGrow {
    to { transform: scaleY(1); }
}

.mock-chart-labels {
    display: flex;
    gap: 8px;
}
.mock-chart-labels span {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

/* --- Mock Shortener --- */
.mock-shortener {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.mock-input-group { margin-bottom: 20px; }
.mock-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
}
.mock-input .material-symbols-rounded { font-size: 20px; }
.mock-input.long {
    background: var(--bg);
    border: 2px dashed var(--border);
    color: var(--text-light);
    overflow: hidden;
    white-space: nowrap;
}
.mock-typing {
    overflow: hidden;
    white-space: nowrap;
}
.mock-cursor {
    animation: blink 1s infinite;
    color: var(--primary);
    font-weight: 300;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.mock-transform-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: var(--primary-light);
}
.mock-arrow-line {
    width: 2px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 1px;
}
.mock-input.short {
    background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(162,155,254,0.08));
    border: 2px solid var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}
.mock-copied {
    margin-left: auto;
    font-size: 11px;
    background: var(--accent-green);
    color: white;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 600;
    animation: fadeInOut 2s infinite;
}
@keyframes fadeInOut { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

.mock-link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}
.mock-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 10px;
    font-size: 13px;
}
.mock-link-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-link-code { font-weight: 600; color: var(--text-primary); }
.mock-link-clicks { margin-left: auto; color: var(--text-light); font-size: 12px; font-weight: 500; }

/* --- Mock QR --- */
.mock-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.mock-qr-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.mock-qr-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.4s ease;
}
.mock-qr-card:hover { transform: translateY(-8px) scale(1.04); }
.mock-qr-card-1 { transform: rotate(-3deg); animation: qrFloat1 4s ease-in-out infinite; }
.mock-qr-card-2 { transform: translateY(-12px); animation: qrFloat2 4s ease-in-out infinite; z-index: 2; }
.mock-qr-card-3 { transform: rotate(3deg); animation: qrFloat3 4s ease-in-out infinite; }

@keyframes qrFloat1 { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
@keyframes qrFloat2 { 0%,100% { transform: translateY(-12px); } 50% { transform: translateY(-20px); } }
@keyframes qrFloat3 { 0%,100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-8px); } }

.mock-qr-pattern {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    background:
        linear-gradient(45deg, var(--primary) 25%, transparent 25%),
        linear-gradient(-45deg, var(--primary) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--primary) 75%),
        linear-gradient(-45deg, transparent 75%, var(--primary) 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
    border-radius: 8px;
    opacity: 0.85;
}
.mock-qr-card-2 .mock-qr-pattern {
    background:
        linear-gradient(45deg, var(--secondary) 25%, transparent 25%),
        linear-gradient(-45deg, var(--secondary) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--secondary) 75%),
        linear-gradient(-45deg, transparent 75%, var(--secondary) 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}
.mock-qr-card-3 .mock-qr-pattern {
    background:
        linear-gradient(45deg, var(--accent-pink) 25%, transparent 25%),
        linear-gradient(-45deg, var(--accent-pink) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--accent-pink) 75%),
        linear-gradient(-45deg, transparent 75%, var(--accent-pink) 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}
.mock-qr-card span { font-size: 12px; color: var(--text-light); font-weight: 500; }
.mock-qr-colors {
    display: flex;
    gap: 12px;
}
.mock-color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s;
}
.mock-color-dot:hover { transform: scale(1.2); }

/* --- Mock Bots --- */
.mock-bots {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.mock-donut-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.mock-donut {
    width: 120px;
    height: 120px;
    position: relative;
    flex-shrink: 0;
}
.mock-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mock-donut-human {
    stroke-dasharray: 0 239;
    animation: donutFillHuman 1.5s ease-out 0.3s forwards;
}
.mock-donut-bot {
    stroke-dasharray: 0 239;
    animation: donutFillBot 1.5s ease-out 0.8s forwards;
}
@keyframes donutFillHuman { to { stroke-dasharray: 225 239; } }
@keyframes donutFillBot { to { stroke-dasharray: 14 239; stroke-dashoffset: -225; } }

.mock-donut-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.mock-donut-label strong { display: block; font-size: 18px; font-weight: 800; color: var(--text-primary); }
.mock-donut-label span { font-size: 10px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

.mock-donut-legend { display: flex; flex-direction: column; gap: 8px; }
.mock-legend-item { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.mock-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.mock-bot-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}
.mock-bot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 10px;
    font-size: 13px;
}
.mock-bot-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225,112,85,0.1);
    color: #E17055;
    border-radius: 50%;
    font-weight: 700;
    font-size: 11px;
}
.mock-bot-name { font-weight: 600; color: var(--text-primary); }
.mock-bot-count { margin-left: auto; color: var(--text-light); font-weight: 500; }

/* --- Features Mini Grid --- */
.features-mini { padding: 80px 0; }
.features-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-mini-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-mini-card .material-symbols-rounded {
    font-size: 36px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.feature-mini-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-mini-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 768px) {
    .showcase-row, .showcase-row-reverse { flex-direction: column; gap: 40px; }
    .showcase-text { max-width: 100%; }
    .mock-qr-grid { flex-wrap: wrap; }
    .features-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .mock-stats-row { flex-direction: column; }
    .mock-donut-section { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .features-mini-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { padding: 0 0 100px; }
.cta-shape-3 { width: 150px; height: 150px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cta-card {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1); }
.cta-shape-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.cta-shape-2 { width: 200px; height: 200px; bottom: -60px; left: -30px; }
.cta-card h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: white; margin-bottom: 16px; position: relative; }
.cta-card p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 32px; position: relative; }

/* ============================================
   FOOTER
   ============================================ */
.landing-footer { padding: 40px 0; border-top: 1px solid var(--border-light); }
.footer-content { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-content p { color: var(--text-light); font-size: 14px; }
.footer-powered { font-size: 13px !important; opacity: 0.7; }
.footer-powered strong { color: var(--primary); font-weight: 700; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page { display: flex; min-height: 100vh; }
.auth-left {
    flex: 1;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.auth-left-content { position: relative; z-index: 1; text-align: center; max-width: 400px; }
.auth-left .logo { justify-content: center; margin-bottom: 60px; }
.auth-left .logo-icon { -webkit-text-fill-color: white !important; }
.auth-left .logo-text { -webkit-text-fill-color: white !important; }
.auth-illustration h2 { color: white; font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.auth-illustration p { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.7; }

.auth-shapes { position: absolute; inset: 0; }
.auth-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); }
.auth-shape-1 { width: 200px; height: 200px; top: -50px; right: -50px; }
.auth-shape-2 { width: 150px; height: 150px; bottom: -30px; left: -30px; }
.auth-shape-3 { width: 100px; height: 100px; top: 50%; right: 20%; }

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.auth-form-container { width: 100%; max-width: 420px; }
.auth-form-container h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-secondary); margin-bottom: 32px; }
.auth-form { margin-bottom: 24px; }
.auth-switch { text-align: center; color: var(--text-secondary); font-size: 14px; }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .auth-left { display: none; }
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transition: transform 0.3s;
}
.sidebar-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); }
.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}
.sidebar-link:hover { background: var(--bg); color: var(--text-primary); }
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.08));
    color: var(--primary);
    font-weight: 600;
}
.sidebar-link .material-symbols-rounded { font-size: 22px; }

.sidebar-bottom { padding: 4px 12px; }

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.user-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-email {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}
.logout-btn:hover {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
}
.logout-btn .material-symbols-rounded {
    font-size: 19px;
}

.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 40;
}
.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}
.dashboard-content { padding: 32px; max-width: 1100px; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .mobile-header { display: flex; }
    .dashboard-main { margin-left: 0; }
    .dashboard-content { padding: 20px; }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.page-header h1 { font-size: 28px; font-weight: 800; }
.page-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
@media (max-width: 1000px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}
.stat-card-1::before { background: var(--primary); }
.stat-card-2::before { background: var(--accent-pink); }
.stat-card-3::before { background: var(--accent-green); }
.stat-card-4::before { background: var(--accent-blue); }
.stat-card-5::before { background: var(--accent-green); }
.stat-card-6::before { background: var(--accent-orange); }

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}
.stat-card-1 .stat-icon { background: rgba(108, 92, 231, 0.1); color: var(--primary); }
.stat-card-2 .stat-icon { background: rgba(253, 121, 168, 0.1); color: var(--accent-pink); }
.stat-card-3 .stat-icon { background: rgba(0, 184, 148, 0.1); color: var(--accent-green); }
.stat-card-4 .stat-icon { background: rgba(9, 132, 227, 0.1); color: var(--accent-blue); }
.stat-card-5 .stat-icon { background: rgba(0, 184, 148, 0.1); color: var(--accent-green); }
.stat-card-6 .stat-icon { background: rgba(225, 112, 85, 0.1); color: var(--accent-orange); }

.stats-grid-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .stats-grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stats-grid-6 { grid-template-columns: 1fr; } }

.stat-value { font-size: 28px; font-weight: 800; display: block; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* ============================================
   CHART CARDS
   ============================================ */
.charts-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 768px) { .charts-row { grid-template-columns: 1fr; } }

.chart-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 20px;
}
.chart-card-wide { grid-column: auto; }
.chart-header {
    padding: 20px 24px 0;
}
.chart-header h3 { font-size: 16px; font-weight: 700; }
.chart-body { padding: 20px 24px; }

/* ============================================
   TOP LINKS LIST
   ============================================ */
.top-links-list { padding: 12px 0; }
.top-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    transition: background 0.2s;
}
.top-link-item:hover { background: var(--bg); }
.top-link-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
}
.top-link-info { flex: 1; min-width: 0; }
.top-link-title { display: block; font-weight: 600; font-size: 14px; }
.top-link-url { display: block; font-size: 12px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-link-clicks { text-align: right; }
.top-link-clicks strong { display: block; font-size: 18px; font-weight: 700; color: var(--primary); }
.top-link-clicks span { font-size: 12px; color: var(--text-light); }

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}
.empty-icon .material-symbols-rounded { font-size: 64px; color: var(--primary-light); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 24px; }

.empty-state-sm {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-light);
}
.empty-state-sm .material-symbols-rounded { font-size: 40px; margin-bottom: 8px; display: block; }

/* ============================================
   DATA TABLE
   ============================================ */
.table-responsive { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
}
.data-table td {
    padding: 12px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}
.data-table tr:hover td { background: var(--bg); }
.link-code {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
}

/* ============================================
   TAB CONTENT
   ============================================ */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   LINKS TOOLBAR & TABLE
   ============================================ */
.links-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.links-search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    min-width: 280px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.links-search-pill:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.links-search-pill .material-symbols-rounded {
    font-size: 20px;
    color: var(--text-light);
}
.links-search-pill input {
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    width: 100%;
}
.links-search-pill input::placeholder { color: var(--text-light); }
.links-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.links-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

/* Links Table */
.links-table-wrap {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow-x: auto;
}
.links-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.links-table thead {
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
}
.links-table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}
.th-status { width: 20px; padding-left: 4px !important; padding-right: 0 !important; }
.th-actions { text-align: right !important; }
.th-date { width: 120px; }

/* Link Row */
.link-row {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.link-row:last-of-type { border-bottom: none; }
.link-row:hover { background: rgba(108, 92, 231, 0.02); }
.link-row td {
    padding: 16px;
    vertical-align: middle !important;
}

/* Status Dot */
.td-status { padding-left: 4px !important; padding-right: 0 !important; width: 20px; }
.link-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0 auto;
}
.link-status-dot.active { background: var(--accent-green); box-shadow: 0 0 8px rgba(0, 184, 148, 0.4); }
.link-status-dot.inactive { background: #cbd5e1; }

/* Link Cell */
.td-link {
    padding-left: 8px !important;
}
.td-link-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.link-favicon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.link-favicon img {
    width: 20px;
    height: 20px;
}
.favicon-fallback {
    font-size: 20px;
    color: var(--text-light);
}
.link-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.link-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-short {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    width: fit-content;
}
.link-short:hover { background: rgba(108, 92, 231, 0.08); }
.link-short .material-symbols-rounded { font-size: 14px; }
.link-dest {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-dest .material-symbols-rounded { font-size: 14px; flex-shrink: 0; opacity: 0.5; }

/* Date Cell */
.td-date { white-space: nowrap; }
.link-date-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* Actions Cell */
.td-actions { text-align: right; white-space: nowrap; }
.link-actions-group {
    display: inline-flex;
    gap: 2px;
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 4px;
    flex-wrap: nowrap;
}
.link-action-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.15s;
}
.link-action-btn:hover {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.link-action-btn.toggle-active {
    color: var(--primary);
}
.link-action-btn.toggle-active:hover {
    color: var(--primary);
}
.link-action-btn.toggle-inactive {
    color: #cbd5e1;
}
.link-action-btn.toggle-inactive:hover {
    color: var(--text);
}
.link-action-btn.action-danger:hover {
    color: var(--accent-red);
    background: rgba(214, 48, 49, 0.06);
}
.link-action-btn .material-symbols-rounded { font-size: 20px; }

/* Stats Column */
.th-stats { width: 160px; }
.td-stats { vertical-align: middle; }
.link-stats-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 130px;
}
.link-stats-pill:hover {
    border-color: var(--primary-light);
    background: rgba(108, 92, 231, 0.04);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.08);
}
.stats-pill-main {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}
.stats-pill-main .material-symbols-rounded {
    font-size: 16px;
    color: var(--primary);
}
.stats-pill-main strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.stats-pill-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.stats-today-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(0, 184, 148, 0.1);
    padding: 1px 7px;
    border-radius: var(--radius-full);
    width: fit-content;
}
.stats-pill-split {
    display: flex;
    align-items: center;
    gap: 8px;
}
.split-human, .split-bot {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 600;
}
.split-human .material-symbols-rounded, .split-bot .material-symbols-rounded {
    font-size: 13px;
}
.split-human { color: var(--accent-green); }
.split-bot { color: var(--accent-orange); }
.stats-last-click {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}
.stats-last-click .material-symbols-rounded { font-size: 13px; }
.stats-no-clicks { opacity: 0.6; }

/* Stats Detail Panel */
.link-stats-row td { padding: 0 !important; }
.link-stats-panel {
    display: none;
    width: 100%;
    border-top: 1px solid var(--border-light);
    overflow: hidden;
}
.link-stats-panel.open {
    display: block;
    padding: 20px 24px 16px;
    animation: statsSlideIn 0.3s ease;
}
@keyframes statsSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.link-stats-loading {
    display: flex;
    justify-content: center;
    padding: 24px;
}
.stats-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}
.stats-panel-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-light);
}
.stats-panel-card h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.stats-panel-card h4 .material-symbols-rounded {
    font-size: 16px;
    color: var(--primary);
}
.stats-chart-container {
    height: 160px;
    position: relative;
}
.stats-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stats-breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.stats-breakdown-item .stats-item-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--text-secondary);
}
.stats-breakdown-item .stats-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.stats-breakdown-item .stats-item-count {
    font-weight: 700;
    color: var(--text-primary);
}
.stats-breakdown-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}
.stats-breakdown-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}
.stats-humanbot-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.stats-humanbot-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px solid var(--border-light);
}
.stats-humanbot-card .material-symbols-rounded { font-size: 20px; }
.stats-humanbot-card.human .material-symbols-rounded { color: var(--accent-green); }
.stats-humanbot-card.bot .material-symbols-rounded { color: var(--accent-orange); }
.stats-humanbot-card .hb-info {
    display: flex;
    flex-direction: column;
}
.stats-humanbot-card .hb-count {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}
.stats-humanbot-card .hb-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}
.stats-referer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}
.stats-referer-item:last-child { border-bottom: none; }
.stats-referer-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stats-referer-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

/* My QR Codes table */
.td-qr-thumb { width: 60px; }
.qr-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.th-qr-img { width: 60px; }
.qr-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.qr-type-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(108, 92, 231, 0.08);
    color: #6C5CE7;
}
.qr-type-label.qr-type-single { background: rgba(253, 203, 110, 0.15); color: #e17055; }
.qr-type-label.qr-type-per_ip { background: rgba(0, 184, 148, 0.1); color: #00b894; }

/* QR Preview Row */
.link-qr-row td { padding: 0 !important; }

@media (max-width: 768px) {
    .links-search-pill { min-width: 0; flex: 1; }
    .links-table thead { display: none; }
    .link-row {
        display: flex;
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
    }
    .link-row td { padding: 0 !important; border: none; }
    .td-status { width: auto; }
    .td-link { flex: 1; min-width: 0; }
    .td-stats { width: 100%; }
    .td-date { display: none; }
    .td-actions { width: 100%; border-top: 1px solid var(--border-light); padding-top: 12px !important; }
    .link-actions-group { width: 100%; justify-content: flex-end; }
    .stats-panel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .stats-panel-grid { grid-template-columns: 1fr; }
}

/* Location label */
.location-label {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ============================================
   CREATE FORM
   ============================================ */
.create-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
}

.result-card {
    position: relative;
    margin-top: 24px;
    padding: 36px 32px 32px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 184, 148, 0.08);
}
.result-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.result-close-btn:hover {
    background: var(--bg);
    color: var(--text-primary);
}
.result-close-btn .material-symbols-rounded { font-size: 22px; }
.result-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: rgba(0, 184, 148, 0.1);
    color: var(--accent-green);
    margin-bottom: 12px;
}
.result-success-icon .material-symbols-rounded { font-size: 28px; }
.result-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.result-url-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    padding: 10px 14px 10px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    max-width: 100%;
    border: 1px solid var(--border-light);
}
.result-url {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    word-break: break-all;
    line-height: 1.3;
}
.result-copy-inline {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.result-copy-inline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.08);
}
.result-copy-inline .material-symbols-rounded { font-size: 17px; }
.result-qr-block {
    margin-bottom: 24px;
}
.result-qr-block img {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    background: white;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.08);
}
.result-qr-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 500;
}
.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .result-card { padding: 28px 20px 24px; }
    .result-qr-block img { width: 130px; height: 130px; }
}

/* --- Link Card QR Preview --- */
.link-qr-preview {
    display: none;
    width: 100%;
    border-top: 1px solid var(--border-light);
    padding: 0;
    overflow: hidden;
}
.link-qr-preview.open {
    display: block;
    padding: 16px 0 8px;
}
.link-qr-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
}
.link-qr-content img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    background: white;
    padding: 6px;
}
.link-qr-actions {
    display: flex;
    gap: 8px;
}
.link-qr-loading {
    display: flex;
    justify-content: center;
    padding: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ============================================
   QR GENERATOR
   ============================================ */
.qr-generator-layout { display: flex; flex-direction: column; gap: 24px; }
.qr-preview-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
    text-align: center;
}
.qr-preview { margin-bottom: 20px; }
.qr-preview img {
    max-width: 300px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.qr-preview-actions { display: flex; gap: 12px; justify-content: center; }

/* --- My QR Codes Grid --- */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.qr-grid-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px 20px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.qr-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.qr-grid-img {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}
.qr-grid-img img {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f8f6ff 0%, #f0f4ff 100%);
    padding: 12px;
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.08);
}
.qr-grid-placeholder {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f6ff 0%, #f0f4ff 100%);
    border-radius: var(--radius-md);
    border: 2px dashed rgba(108, 92, 231, 0.2);
    color: var(--primary);
    opacity: 0.5;
    animation: qrPlaceholderPulse 2s ease-in-out infinite;
}
@keyframes qrPlaceholderPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}
.qr-grid-placeholder .material-symbols-rounded { font-size: 48px; }
.qr-grid-info { margin-bottom: 14px; }
.qr-grid-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.qr-grid-url {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    word-break: break-all;
}
.qr-grid-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.qr-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.08);
    display: inline-block;
}
.qr-grid-date {
    font-size: 11px;
    color: var(--text-light);
}

/* --- QR Type Toggle --- */
.toggle-group {
    display: flex;
    gap: 6px;
    width: fit-content;
}
.toggle-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.toggle-option:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.toggle-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.toggle-option .material-symbols-rounded {
    font-size: 16px;
}
.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* --- QR Type Badge --- */
.qr-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 6px;
}
.qr-type-badge.pending {
    background: rgba(253, 203, 110, 0.2);
    color: #E17055;
}
.qr-type-badge.scanned {
    background: rgba(0, 184, 148, 0.15);
    color: #00b894;
}

/* --- QR Filter Buttons --- */
.qr-filter-group {
    display: flex;
    gap: 6px;
    align-items: center;
}
.qr-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.qr-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.qr-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
@media (max-width: 768px) {
    .qr-filter-group { flex-wrap: wrap; }
}

.qr-grid-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.my-qr-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}
.my-qr-header {
    margin-bottom: 24px;
}
.my-qr-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.my-qr-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}
.qr-search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    min-width: 220px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.qr-search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.qr-search-wrapper .material-symbols-rounded {
    font-size: 20px;
    color: var(--text-light);
}
.qr-search-input {
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    width: 100%;
}
.qr-search-input::placeholder {
    color: var(--text-light);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-size: 20px; font-weight: 700; }
.qr-display { text-align: center; margin-bottom: 20px; }
.qr-display img { max-width: 250px; border-radius: var(--radius-md); }

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text-primary);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .material-symbols-rounded { font-size: 20px; }

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.error-code {
    font-size: 80px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}
.error-content h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.error-content p { color: var(--text-secondary); margin-bottom: 24px; }

/* ============================================
   BOT DETECTION BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.badge .material-symbols-rounded { font-size: 14px; }

.badge-human {
    background: rgba(0, 184, 148, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 184, 148, 0.2);
}
.badge-bot {
    background: rgba(225, 112, 85, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(225, 112, 85, 0.2);
}

.bot-rank {
    background: rgba(225, 112, 85, 0.1) !important;
    color: var(--accent-orange) !important;
}

.bot-badge-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
    color: var(--accent-orange);
}
.bot-badge-inline .material-symbols-rounded { font-size: 16px; }

/* ============================================
   SETTINGS
   ============================================ */
.settings-section {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 28px 32px;
    margin-bottom: 24px;
}
.settings-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.settings-section h2 .material-symbols-rounded {
    font-size: 22px;
    color: var(--primary);
}
.settings-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}
.settings-form .form-row { margin-bottom: 16px; }
.settings-danger {
    border-color: rgba(255, 107, 107, 0.3);
}
.settings-danger h2 .material-symbols-rounded {
    color: var(--accent-red);
}
.action-danger-btn {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.action-danger-btn:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* API Keys */
.api-key-create {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}
.api-key-result {
    background: rgba(0, 184, 148, 0.08);
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}
.api-key-result p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.api-key-value {
    display: flex;
    align-items: center;
    gap: 8px;
}
.api-key-value code {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: monospace;
    word-break: break-all;
    color: var(--text-primary);
}
.api-keys-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.api-key-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}
.api-key-item:hover {
    border-color: var(--border);
}
.api-key-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.api-key-name {
    font-size: 14px;
    font-weight: 600;
}
.api-key-prefix {
    font-size: 12px;
    font-family: monospace;
    color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    width: fit-content;
}
.api-key-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
}
.api-key-date {
    font-size: 11px;
    color: var(--text-light);
}

/* ============================================
   EXPORT DROPDOWN
   ============================================ */
.export-dropdown {
    position: relative;
}
.export-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
}
.export-menu.open { display: block; }
.export-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.15s;
    text-decoration: none;
}
.export-menu-item:hover {
    background: var(--bg);
    color: var(--primary);
}
.export-menu-item .material-symbols-rounded { font-size: 18px; }
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   LINK FILTER DROPDOWN
   ============================================ */
.link-filter-dropdown {
    position: relative;
}
.link-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 240px;
    white-space: nowrap;
}
.link-filter-btn.filter-active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.link-filter-btn.filter-active:hover {
    background: var(--primary-hover);
}
.link-filter-arrow {
    font-size: 18px !important;
    transition: transform 0.2s;
}
.link-filter-menu.open ~ .link-filter-btn .link-filter-arrow,
.link-filter-btn[aria-expanded="true"] .link-filter-arrow {
    transform: rotate(180deg);
}
.link-filter-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 360px;
    z-index: 200;
    overflow: hidden;
}
.link-filter-menu.open {
    display: block;
}
.link-filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.link-filter-search .material-symbols-rounded {
    font-size: 20px;
    color: var(--text-muted);
}
.link-filter-search input {
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    width: 100%;
    color: var(--text);
}
.link-filter-options {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
}
.link-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
    color: var(--text-secondary);
}
.link-filter-option:hover {
    background: var(--bg);
}
.link-filter-option.active {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
    font-weight: 600;
}
.link-filter-option .material-symbols-rounded {
    font-size: 18px;
    flex-shrink: 0;
}
.link-filter-option-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.link-filter-option-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-filter-option-code {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}
@media (max-width: 768px) {
    .link-filter-menu { min-width: 260px; right: auto; left: 0; }
    .link-filter-btn { max-width: 160px; }
    .link-filter-btn #linkFilterLabel { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================
   BULK ACTIONS
   ============================================ */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(108, 92, 231, 0.06);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.bulk-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 8px;
}
.th-checkbox, .td-checkbox {
    width: 28px;
    text-align: center;
    padding-left: 12px !important;
    padding-right: 0 !important;
    vertical-align: middle;
}
.th-checkbox input, .td-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
    accent-color: var(--primary);
}

/* ============================================
   UTM ROW & LINK EXPIRY
   ============================================ */
.link-expiry {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #b55a50;
    margin-top: 2px;
}
.link-expiry .material-symbols-rounded { font-size: 13px; }
.link-expiry.expired {
    color: #c0392b;
}

/* ============================================
   MODAL LARGE
   ============================================ */
.modal-lg {
    max-width: 560px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ============================================
   DARK MODE (dashboard only)
   ============================================ */
[data-theme="dark"] .dashboard-layout {
    --bg: #0f0f14;
    --bg-white: #1a1a24;
    --bg-card: #1a1a24;
    --text-primary: #e8e8ed;
    --text-secondary: #9a9ab0;
    --text-light: #5c5c72;
    --border: #2a2a3a;
    --border-light: #222233;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.2);

    --gradient-card: linear-gradient(135deg, #1a1a24 0%, #12121a 100%);

    color: var(--text-primary);
}

/* Body bg for dashboard dark mode */
[data-theme="dark"] body:has(.dashboard-layout) { background: #0f0f14; }

/* Sidebar */
[data-theme="dark"] .sidebar { background: #14141e; border-color: var(--border); }
[data-theme="dark"] .sidebar-header { border-color: var(--border); }
[data-theme="dark"] .sidebar-footer { border-color: var(--border); }
[data-theme="dark"] .logout-btn { background: rgba(255,255,255,0.05); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .logout-btn:hover { color: #e74c3c; background: rgba(231, 76, 60, 0.1); border-color: rgba(231, 76, 60, 0.25); }
[data-theme="dark"] .sidebar-link:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .sidebar-link.active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(162, 155, 254, 0.1));
}

[data-theme="dark"] .qr-filter-btn { border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .qr-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .qr-filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Mobile Header */
[data-theme="dark"] .mobile-header { background: #14141e; border-color: var(--border); }

/* Cards & surfaces */
[data-theme="dark"] .dashboard-layout .stat-card,
[data-theme="dark"] .dashboard-layout .chart-card,
[data-theme="dark"] .dashboard-layout .create-form-card,
[data-theme="dark"] .dashboard-layout .result-card,
[data-theme="dark"] .dashboard-layout .qr-preview-card,
[data-theme="dark"] .toggle-option { background: var(--bg-card); color: var(--text-secondary); border-color: var(--border); }
[data-theme="dark"] .toggle-option.active { background: var(--primary); color: white; }
[data-theme="dark"] .qr-type-badge.pending { background: rgba(253, 203, 110, 0.1); }
[data-theme="dark"] .qr-type-badge.scanned { background: rgba(0, 184, 148, 0.1); }

[data-theme="dark"] .dashboard-layout .qr-grid-card,
[data-theme="dark"] .dashboard-layout .links-table-wrap,
[data-theme="dark"] .dashboard-layout .empty-state,
[data-theme="dark"] .dashboard-layout .modal,
[data-theme="dark"] .dashboard-layout .links-search-pill,
[data-theme="dark"] .dashboard-layout .qr-search-wrapper {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Stat icon backgrounds */
[data-theme="dark"] .dashboard-layout .stat-card-1 .stat-icon { background: rgba(108, 92, 231, 0.15); }
[data-theme="dark"] .dashboard-layout .stat-card-2 .stat-icon { background: rgba(253, 121, 168, 0.15); }
[data-theme="dark"] .dashboard-layout .stat-card-3 .stat-icon { background: rgba(0, 184, 148, 0.15); }
[data-theme="dark"] .dashboard-layout .stat-card-4 .stat-icon { background: rgba(9, 132, 227, 0.15); }
[data-theme="dark"] .dashboard-layout .stat-card-5 .stat-icon { background: rgba(0, 184, 148, 0.15); }
[data-theme="dark"] .dashboard-layout .stat-card-6 .stat-icon { background: rgba(225, 112, 85, 0.15); }

/* Table */
[data-theme="dark"] .dashboard-layout .links-table thead { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .dashboard-layout .link-row:hover { background: rgba(108, 92, 231, 0.04); }
[data-theme="dark"] .dashboard-layout .data-table tr:hover td { background: rgba(255,255,255,0.03); }

/* Stats pill */
[data-theme="dark"] .dashboard-layout .link-stats-pill { background: rgba(255,255,255,0.04); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .link-stats-pill:hover { background: rgba(108, 92, 231, 0.08); border-color: var(--primary-dark); }

/* Stats panel */
[data-theme="dark"] .dashboard-layout .stats-panel-card { background: rgba(255,255,255,0.03); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .stats-humanbot-card { background: rgba(255,255,255,0.04); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .stats-breakdown-bar { background: var(--border); }

/* Action buttons */
[data-theme="dark"] .dashboard-layout .link-actions-group { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .dashboard-layout .link-action-btn:hover { background: rgba(255,255,255,0.08); box-shadow: none; }
[data-theme="dark"] .dashboard-layout .link-action-btn.action-danger:hover { background: rgba(214, 48, 49, 0.12); }

/* Buttons */
[data-theme="dark"] .dashboard-layout .btn-ghost { color: var(--text-secondary); }
[data-theme="dark"] .dashboard-layout .btn-ghost:hover { color: var(--primary-light); background: rgba(108, 92, 231, 0.1); }
[data-theme="dark"] .dashboard-layout .btn-outline {
    border-color: var(--border);
    color: var(--text-primary);
    background: transparent;
}
[data-theme="dark"] .dashboard-layout .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
}

/* Forms */
[data-theme="dark"] .dashboard-layout input,
[data-theme="dark"] .dashboard-layout select,
[data-theme="dark"] .dashboard-layout textarea {
    background: rgba(255,255,255,0.04);
    border-color: var(--border);
    color: var(--text-primary);
}
[data-theme="dark"] .dashboard-layout input:focus,
[data-theme="dark"] .dashboard-layout select:focus,
[data-theme="dark"] .dashboard-layout textarea:focus {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.06);
}
[data-theme="dark"] .dashboard-layout .links-search-pill input,
[data-theme="dark"] .dashboard-layout .qr-search-input { color: var(--text-primary); }

/* Links */
[data-theme="dark"] .dashboard-layout .link-favicon { background: rgba(255,255,255,0.04); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .link-short:hover { background: rgba(108, 92, 231, 0.12); }
[data-theme="dark"] .dashboard-layout .top-link-item:hover { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .dashboard-layout .top-link-rank { background: rgba(108, 92, 231, 0.12); }
[data-theme="dark"] .dashboard-layout .links-count { background: rgba(255,255,255,0.04); }

/* Result card */
[data-theme="dark"] .dashboard-layout .result-close-btn:hover { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .dashboard-layout .result-url-row { background: rgba(255,255,255,0.04); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .result-copy-inline { background: rgba(255,255,255,0.06); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .result-qr-block img { background: #1a1a24; border-color: var(--border); }

/* QR Cards */
[data-theme="dark"] .dashboard-layout .qr-grid-img img { background: rgba(255,255,255,0.04); border-color: var(--border); box-shadow: none; }
[data-theme="dark"] .dashboard-layout .qr-grid-placeholder { background: rgba(108, 92, 231, 0.06); border-color: rgba(108, 92, 231, 0.15); }
[data-theme="dark"] .dashboard-layout .link-qr-content img { background: #1a1a24; border-color: var(--border); }

/* Empty states */
[data-theme="dark"] .dashboard-layout .empty-state { background: var(--bg-card); border-color: var(--border); }

/* Badges */
[data-theme="dark"] .dashboard-layout .badge-human { background: rgba(0, 184, 148, 0.12); border-color: rgba(0, 184, 148, 0.25); }
[data-theme="dark"] .dashboard-layout .badge-bot { background: rgba(225, 112, 85, 0.12); border-color: rgba(225, 112, 85, 0.25); }
[data-theme="dark"] .dashboard-layout .bot-rank { background: rgba(225, 112, 85, 0.12) !important; }
[data-theme="dark"] .dashboard-layout .stats-today-badge { background: rgba(0, 184, 148, 0.12); }

/* Toast */
[data-theme="dark"] .dashboard-layout ~ .toast { background: #2a2a3a; }

/* Modal */
[data-theme="dark"] .modal-overlay { background: rgba(0, 0, 0, 0.7); }

/* Scrollbar */
[data-theme="dark"]::-webkit-scrollbar-thumb { background: #333346; }
[data-theme="dark"]::-webkit-scrollbar-thumb:hover { background: #444460; }

/* Settings */
[data-theme="dark"] .dashboard-layout .settings-section { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .settings-danger { border-color: rgba(255, 107, 107, 0.2); }
[data-theme="dark"] .dashboard-layout .api-key-item { background: rgba(255,255,255,0.03); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .api-key-value code { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .dashboard-layout .api-key-result { background: rgba(0, 184, 148, 0.06); border-color: rgba(0, 184, 148, 0.15); }

/* Export menu */
[data-theme="dark"] .dashboard-layout .export-menu { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .export-menu-item:hover { background: rgba(255,255,255,0.04); }

/* Link filter dropdown */
[data-theme="dark"] .dashboard-layout .link-filter-menu { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .link-filter-search { border-color: var(--border); }
[data-theme="dark"] .dashboard-layout .link-filter-search input { color: var(--text); }
[data-theme="dark"] .dashboard-layout .link-filter-option:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .dashboard-layout .link-filter-option.active { background: rgba(108, 92, 231, 0.15); }

/* Bulk actions */
[data-theme="dark"] .dashboard-layout .bulk-actions { background: rgba(108, 92, 231, 0.08); border-color: rgba(108, 92, 231, 0.2); }

/* Confirm modal */
[data-theme="dark"] .dashboard-layout .action-danger-btn { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.25); }

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}
.theme-toggle:hover { background: rgba(108, 92, 231, 0.06); color: var(--text-primary); }
.theme-toggle .material-symbols-rounded { font-size: 22px; }
[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,0.06); }
