/* ── Layout ──────────────────────────────────────────────────────────── */
:root {
    --sidebar-width: 250px;
    --sidebar-bg: #1a1d21;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.app-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg) !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.3s ease;
}

.app-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.sidebar-link {
    color: #9ca3af;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s;
    font-size: 0.9rem;
}
.sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.sidebar-link.active {
    color: #fff;
    background: #3b82f6;
}
.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.stat-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Table ────────────────────────────────────────────────────────────── */
.table-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}
.table-card .card-header {
    background: #fff;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    border-bottom-width: 1px;
}
.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* ── Auth Layout ─────────────────────────────────────────────────────── */
.auth-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.auth-card .card {
    border-radius: 16px;
}

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge-active { background: #10b981; }
.badge-inactive { background: #ef4444; }
.badge-expired { background: #f59e0b; color: #000; }

/* ── Copy Button ──────────────────────────────────────────────────────── */
.copy-btn {
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.15s;
}
.copy-btn:hover {
    background: #e5e7eb;
}
.copy-btn.copied {
    color: #10b981;
}

/* ── Charts ───────────────────────────────────────────────────────────── */
.chart-card {
    border: none;
    border-radius: 12px;
}
.chart-card .card-header {
    background: #fff;
    font-weight: 600;
}

/* ── Short Link Display ──────────────────────────────────────────────── */
.short-link {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #3b82f6;
    word-break: break-all;
}

/* ── Plan Badge ──────────────────────────────────────────────────────── */
.plan-badge-free { background: #6b7280; }
.plan-badge-pro { background: #f59e0b; color: #000; }
.plan-badge-business { background: #3b82f6; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    font-size: 0.85rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.open {
        transform: translateX(0);
    }
    .app-main {
        margin-left: 0;
    }
}

/* ── Geo Rule Row ────────────────────────────────────────────────────── */
.geo-rule-row {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

/* ── Empty State ─────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

/* ── Upgrade Banner ──────────────────────────────────────────────────── */
.upgrade-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
}
.upgrade-banner .btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.upgrade-banner .btn:hover {
    background: rgba(255,255,255,0.3);
}

/* ── Landing Page ────────────────────────────────────────────────────── */
.landing-nav {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95) !important;
}

.landing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 0 80px;
}
.landing-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
}
.landing-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
}

.landing-stats {
    padding: 40px 0;
    background: #f8f9fa;
}
.landing-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
}

.landing-section {
    padding: 80px 0;
}

.landing-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.landing-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.landing-pricing .card {
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.landing-pricing .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.landing-pricing .card.popular {
    border: 2px solid #3b82f6;
}
.landing-pricing .price {
    font-size: 2.5rem;
    font-weight: 800;
}
.landing-pricing .price-period {
    font-size: 0.9rem;
    color: #6b7280;
}

.landing-cta-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
}

.landing-footer {
    background: #1a1d21;
    color: #9ca3af;
    padding: 40px 0;
}

@media (max-width: 767.98px) {
    .landing-hero {
        padding: 100px 0 60px;
    }
    .landing-hero h1 {
        font-size: 2rem;
    }
    .landing-section {
        padding: 50px 0;
    }
}
