/* ============================================
   TinyRouteX - Main Stylesheet
   ============================================ */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #0EA5E9;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --dark: #1E293B;
    --darker: #0F172A;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --white: #FFFFFF;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.2s ease;
}

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

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ============ UTILITIES ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.5;
    font-family: var(--font);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); border: 2px solid var(--gray-200); }
.btn-white:hover { border-color: var(--primary); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* ============ ALERTS ============ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
}
.card-header h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); }
.card-body { padding: 20px; }

/* ============ TABLES ============ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.table tr:hover td { background: var(--gray-50); }

/* ============ BADGES ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.badge-success { background: #ECFDF5; color: #065F46; }
.badge-danger { background: #FEF2F2; color: #991B1B; }
.badge-warning { background: #FFFBEB; color: #92400E; }
.badge-info { background: #EFF6FF; color: #1E40AF; }
.badge-primary { background: #EEF2FF; color: #3730A3; }

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    list-style: none;
    gap: 4px;
    justify-content: center;
    margin-top: 1.5rem;
}
.page-item.active .page-link { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-600);
    transition: var(--transition);
}
.page-link:hover { background: var(--gray-100); color: var(--primary); }

/* ============ NAVBAR ============ */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}
.navbar-brand img { width: 32px; height: 32px; }
.navbar-brand:hover { color: var(--primary-dark); }
.navbar-menu { display: flex; align-items: center; gap: 8px; }
.navbar-menu a { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--gray-600); }
.navbar-menu a:hover { color: var(--primary); background: var(--gray-100); }
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-600);
    padding: 8px;
}

/* ============ LANDING PAGE ============ */
.hero {
    background: linear-gradient(135deg, var(--darker) 0%, #1a1055 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-lg {
    padding: 16px 40px;
    font-size: 17px;
    border-radius: var(--radius);
}

/* Shorten Box on Landing */
.shorten-box {
    max-width: 700px;
    margin: -40px auto 60px;
    position: relative;
    z-index: 10;
}
.shorten-box .card { box-shadow: var(--shadow-xl); border: none; }
.shorten-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.shorten-form input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
}
.shorten-form input:focus { outline: none; border-color: var(--primary); }
.shorten-form .btn { padding: 14px 28px; font-size: 16px; white-space: nowrap; }

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--white);
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.section-title p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    background: var(--white);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: var(--primary);
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--gray-800); }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* Pricing Section */
.pricing {
    padding: 80px 20px;
    background: var(--gray-50);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    position: relative;
}
.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 48px; font-weight: 800; color: var(--primary); margin: 20px 0; }
.pricing-price span { font-size: 16px; color: var(--gray-500); font-weight: 500; }
.pricing-features { list-style: none; margin-bottom: 30px; text-align: left; }
.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-features li::before {
    content: '\2713';
    color: var(--success);
    font-weight: bold;
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--darker);
    color: var(--gray-400);
    padding: 40px 20px;
    text-align: center;
}
.footer a { color: var(--gray-400); }
.footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; }

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker) 0%, #1a1055 100%);
    padding: 40px 20px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 40px;
}
.auth-card .logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-card .logo h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}
.auth-card .logo p { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: var(--gray-400);
    font-size: 13px;
}
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray-500); }
.auth-footer a { font-weight: 600; }

/* ============ DASHBOARD LAYOUT ============ */
.dashboard { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: var(--darker);
    color: var(--gray-400);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 50;
    transition: var(--transition);
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
}
.sidebar-nav { padding: 16px 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border-left-color: var(--primary);
}
.sidebar-nav a .icon { width: 20px; text-align: center; font-size: 16px; }
.sidebar-section {
    padding: 12px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--gray-50);
}
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-600);
    padding: 4px;
}
.page-title { font-size: 20px; font-weight: 700; color: var(--gray-800); }
.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.user-menu:hover { background: var(--gray-100); }
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.content-area { padding: 24px; }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}
.stat-card .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-800);
    margin-top: 4px;
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    float: right;
}
.stat-icon.blue { background: #EFF6FF; color: var(--info); }
.stat-icon.green { background: #ECFDF5; color: var(--success); }
.stat-icon.yellow { background: #FFFBEB; color: var(--warning); }
.stat-icon.purple { background: #EEF2FF; color: var(--primary); }

/* Link Row */
.link-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}
.link-row:hover { background: var(--gray-50); }
.link-info { flex: 1; min-width: 0; }
.link-short {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    display: block;
    word-break: break-all;
}
.link-original {
    font-size: 13px;
    color: var(--gray-500);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
    margin-top: 2px;
}
.link-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: var(--gray-500);
}
.link-clicks {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--gray-700);
}
.link-actions { display: flex; gap: 6px; }
.link-actions .btn { padding: 6px 10px; font-size: 12px; }

/* QR Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
    padding: 4px;
    line-height: 1;
}
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); display: flex; gap: 8px; justify-content: flex-end; }

/* Charts placeholder */
.chart-container {
    position: relative;
    height: 300px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* Password protection page */
.password-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 40px 20px;
}
.password-card {
    max-width: 400px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    text-align: center;
}
.password-card .icon { font-size: 48px; margin-bottom: 16px; }
.password-card h2 { margin-bottom: 8px; }
.password-card p { color: var(--gray-500); margin-bottom: 24px; font-size: 14px; }

/* Plan indicator */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.plan-trial { background: #FFFBEB; color: #92400E; }
.plan-pro { background: #ECFDF5; color: #065F46; }
.plan-expired { background: #FEF2F2; color: #991B1B; }

/* Copy tooltip */
.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gray-800);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 9999;
    animation: fadeInOut 2s ease;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero { padding: 60px 20px 50px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn-lg { width: 100%; max-width: 300px; }

    .shorten-form { flex-direction: column; }
    .shorten-form .btn { width: 100%; justify-content: center; }

    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }

    .navbar-toggle { display: block; }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
    }
    .navbar-menu.active { display: flex; }

    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: block; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .link-row { flex-direction: column; align-items: flex-start; }
    .link-meta { flex-wrap: wrap; }
    .link-original { max-width: 100%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 24px; }
    .content-area { padding: 16px; }
}

/* ============ INSTALLER ============ */
.installer-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--darker) 0%, #1a1055 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.installer-card {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 40px;
}
.installer-card h1 { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.installer-card .subtitle { color: var(--gray-500); margin-bottom: 32px; font-size: 14px; }
.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
}
.step.active { background: var(--primary); }
.step.done { background: var(--success); }
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
}
.check-pass { color: var(--success); }
.check-fail { color: var(--danger); }
