:root {
    --sidebar-width: 260px;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f4f6f9;
}

.admin-body,
.affiliate-body {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    flex-shrink: 0;
}

.sidebar .nav-link {
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.stat-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.creative-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.referral-url {
    font-size: 0.875rem;
    word-break: break-all;
}

.copy-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1080;
}

.login-card {
    max-width: 420px;
    margin: 0 auto;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.landing-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    padding: 4rem 0;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        z-index: 1050;
        transition: left 0.3s;
    }

    .sidebar.show {
        left: 0;
    }
}

.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

.profile-box {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.filter-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Affiliate sidebar profile block */
.sidebar-profile {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-avatar {
    font-size: 2.2rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
}

.sidebar-username {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.sidebar-code {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: monospace;
    letter-spacing: 0.03em;
}
