/*
 * ===================================================================
 * SOCIALENRICH DESIGN SYSTEM
 * B2B Data Enrichment Platform
 * Design: "Cursor IDE" warm cream aesthetic
 * ===================================================================
 */

/* ======= CSS Variables (Design Tokens) ======= */
:root {
    --cursor-dark:    #26251e;
    --cursor-cream:   #f2f1ed;
    --cursor-light:   #e6e5e0;
    --cursor-surface: #ebeae5;
    --cursor-orange:  #f54e00;
    --cursor-crimson: #cf2d56;
    --cursor-success: #1f8a65;
    --cursor-gold:    #c08532;
    --cursor-s100:    #f7f7f4;
    --cursor-s200:    #f2f1ed;
    --cursor-s300:    #ebeae5;
    --cursor-s400:    #e6e5e0;
    --cursor-s500:    #e1e0db;

    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:  'Fira Code', ui-monospace, monospace;

    --sidebar-width: 260px;
    --header-height: 72px;
    --radius:        10px;
    --radius-sm:     8px;
    --radius-full:   9999px;

    --shadow-sm:  rgba(0,0,0,0.02) 0px 0px 16px;
    --shadow-md:  rgba(0,0,0,0.06) 0px 8px 24px;
    --shadow-lg:  rgba(0,0,0,0.14) 0px 28px 70px, rgba(0,0,0,0.1) 0px 14px 32px;
    --shadow-btn: rgba(245,78,0,0.25) 0px 8px 24px;

    --transition: all 0.15s ease;
}

/* ======= Scrollbar (Alita-style thin) ======= */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(38,37,30,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(38,37,30,0.25); }

/* ======= Reset & Base ======= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background-color: var(--cursor-cream);
    color: var(--cursor-dark);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--cursor-dark);
    line-height: 1.3;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ======= Sidebar ======= */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--cursor-cream);
    border-right: 1px solid rgba(38,37,30,0.1);
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    height: var(--header-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(38,37,30,0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--cursor-orange);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,78,0,0.3);
}
.brand-icon .material-symbols-outlined { font-size: 20px; }

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--cursor-dark); line-height: 1.2; letter-spacing: -0.02em; }
.brand-sub  { font-size: 11px; font-weight: 500; color: rgba(38,37,30,0.4); }

.sidebar-close-btn {
    display: none;
    padding: 4px;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(38,37,30,0.4);
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.sidebar-group-title {
    padding: 20px 24px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(38,37,30,0.35);
    letter-spacing: 1.2px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin: 2px 12px;
    border-radius: var(--radius-sm);
    color: rgba(38,37,30,0.55);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}
.nav-item .material-symbols-outlined { font-size: 20px; margin-right: 12px; }
.nav-item:hover { color: var(--cursor-crimson); background-color: rgba(38,37,30,0.04); }
.nav-item.active {
    color: var(--cursor-dark);
    background-color: var(--cursor-surface);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.sidebar-user {
    padding: 16px;
    margin-top: auto;
    border-top: 1px solid rgba(38,37,30,0.08);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.sidebar-user-card:hover { background-color: var(--cursor-light); }

.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    background: var(--cursor-dark);
    color: var(--cursor-cream);
    flex-shrink: 0;
}

.user-info { flex-grow: 1; 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: rgba(38,37,30,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.logout-btn {
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: rgba(38,37,30,0.35);
}
.logout-btn:hover { background: var(--cursor-s400); color: var(--cursor-crimson); }

/* ======= Main Content ======= */
.main-content {
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.page-header {
    height: var(--header-height);
    padding: 0 32px;
    background-color: var(--cursor-cream);
    border-bottom: 1px solid rgba(38,37,30,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 16px; }

.hamburger-btn {
    display: none;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(38,37,30,0.1);
    background: none;
    cursor: pointer;
    color: var(--cursor-dark);
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.3;
}

.credit-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(245,78,0,0.08);
    color: var(--cursor-orange);
    border: 1px solid rgba(245,78,0,0.15);
    transition: var(--transition);
    cursor: pointer;
}
.credit-badge:hover { box-shadow: var(--shadow-sm); }
.credit-badge .material-symbols-outlined { font-size: 16px; }
.credit-amount { font-weight: 700; font-size: 14px; font-family: var(--font-mono); }

.header-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: rgba(38,37,30,0.45);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.header-btn:hover { background-color: var(--cursor-surface); color: var(--cursor-orange); }

/* ======= Language Switcher (Flag Dropdown) ======= */
.lang-switcher {
    position: relative;
}
.lang-toggle {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(38,37,30,0.1);
    background: var(--cursor-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    overflow: hidden;
}
.lang-toggle:hover {
    border-color: var(--cursor-orange);
    box-shadow: 0 0 0 3px rgba(245,78,0,0.08);
    transform: scale(1.05);
}
.lang-flag-img {
    width: 22px; height: 16px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(38,37,30,0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    overflow: hidden;
    padding: 6px;
    animation: fadeIn 0.15s ease-out;
}
.lang-dropdown.show { display: block; }
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--cursor-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: inherit;
    text-align: left;
    position: relative;
}
.lang-option:hover {
    background: rgba(245,78,0,0.04);
    color: var(--cursor-orange);
}
.lang-option.active {
    background: rgba(245,78,0,0.06);
    font-weight: 700;
}
.lang-option .lang-flag-img {
    width: 24px; height: 17px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.lang-label { flex: 1; }
.lang-active-check {
    font-size: 16px;
    color: var(--cursor-orange);
    font-variation-settings: 'FILL' 1;
}

.page-body { padding: 20px 28px; flex-grow: 1; }
.page-footer {
    margin-top: 32px;
    padding: 16px 0;
    text-align: center;
    font-size: 11px;
    color: rgba(38,37,30,0.3);
    border-top: 1px solid rgba(38,37,30,0.06);
}

/* ======= Cards ======= */
.card {
    background: var(--cursor-surface);
    border: 1px solid rgba(38,37,30,0.08);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }

.stat-card {
    background: var(--cursor-surface);
    border: 1px solid rgba(38,37,30,0.08);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s ease;
    position: relative;
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon .material-symbols-outlined { font-size: 26px; }

.stat-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(38,37,30,0.4);
    margin-bottom: 4px;
}
.stat-value {
    font-size: 28px;
    font-weight: 900;
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* ======= Buttons ======= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--cursor-dark);
    color: var(--cursor-cream);
}
.btn-primary:hover {
    background: var(--cursor-orange);
    color: #fff;
    box-shadow: var(--shadow-btn);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--cursor-light);
    color: var(--cursor-dark);
    font-weight: 600;
    font-size: 13px;
}
.btn-secondary:hover { color: var(--cursor-crimson); }

.btn-danger {
    background: rgba(207,45,86,0.08);
    color: var(--cursor-crimson);
    border: 1px solid rgba(207,45,86,0.2);
    font-weight: 700;
    font-size: 13px;
}

.btn-pill {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
}
.btn-pill.active {
    background: var(--cursor-dark);
    color: var(--cursor-cream);
    font-weight: 600;
}
.btn-pill:not(.active) {
    background: var(--cursor-light);
    color: rgba(38,37,30,0.6);
    font-weight: 500;
}

/* ======= Forms ======= */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(38,37,30,0.5);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(38,37,30,0.12);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--cursor-dark);
    outline: none;
    transition: var(--transition);
    background: var(--cursor-surface);
}
.form-input::placeholder { color: rgba(38,37,30,0.35); }
.form-input:focus {
    border-color: var(--cursor-orange);
    box-shadow: 0 0 0 3px rgba(245,78,0,0.06);
    background: var(--cursor-cream);
}
.form-input:disabled {
    background: rgba(38,37,30,0.04);
    border-color: rgba(38,37,30,0.06);
    color: rgba(38,37,30,0.35);
}

/* ======= Tables ======= */
.data-table { width: 100%; text-align: left; border-collapse: collapse; }
.data-table th {
    font-size: 10px;
    font-weight: 700;
    color: rgba(38,37,30,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    background-color: var(--cursor-surface);
    border-bottom: 1px solid rgba(38,37,30,0.1);
}
.data-table td {
    font-size: 13px;
    padding: 14px 16px;
    color: var(--cursor-dark);
    border-bottom: 1px solid rgba(38,37,30,0.06);
}
.data-table tr:hover td { background-color: rgba(38,37,30,0.02); }

/* ======= Badges ======= */
.badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-success { background: rgba(31,138,101,0.08); color: var(--cursor-success); }
.badge-warning { background: rgba(192,133,50,0.1);  color: var(--cursor-gold); }
.badge-danger  { background: rgba(207,45,86,0.08);  color: var(--cursor-crimson); }
.badge-orange  { background: rgba(245,78,0,0.08);   color: var(--cursor-orange); }

/* ======= Progress Bars ======= */
.progress-bar {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(38,37,30,0.08);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ======= Alerts ======= */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 500;
    margin: 0 32px;
}
.alert .material-symbols-outlined { font-size: 18px; }
.alert-success { background: rgba(31,138,101,0.06); color: var(--cursor-success); border-bottom: 2px solid var(--cursor-success); }
.alert-error   { background: rgba(207,45,86,0.06); color: var(--cursor-crimson); border-bottom: 2px solid var(--cursor-crimson); }

/* ======= Tabs ======= */
.tab-nav { display: flex; gap: 8px; margin-bottom: 32px; }

/* ======= Grid Layouts ======= */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* ======= Overlay ======= */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 40;
    display: none;
}
.sidebar-overlay.show { display: block; }

/* ======= Dropzone ======= */
.dropzone {
    text-align: center;
    padding: 64px 24px;
    border: 2px dashed rgba(38,37,30,0.15);
    border-radius: var(--radius);
    background: var(--cursor-surface);
    transition: var(--transition);
    cursor: pointer;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--cursor-orange);
    background: rgba(245,78,0,0.03);
}

/* ======= Search Result Card ======= */
.result-card {
    border-radius: var(--radius);
    padding: 24px;
    background: var(--cursor-surface);
}
.result-card.success { border: 2px solid rgba(31,138,101,0.3); }
.result-card.empty   { border: 2px solid rgba(38,37,30,0.1); }

/* ======= Datasets Page ======= */
.ds-hero-card {
    background: linear-gradient(135deg, rgba(245,78,0,0.06), rgba(245,78,0,0.02));
    border: 1px solid rgba(245,78,0,0.12);
    border-radius: 16px;
    padding: 24px;
}
.ds-hero-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(245,78,0,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.ds-hero-value {
    font-size: 32px;
    font-weight: 800;
    color: rgba(38,37,30,0.9);
    line-height: 1;
}
.ds-hero-label {
    font-size: 13px;
    color: rgba(38,37,30,0.45);
    margin-top: 6px;
}
.ds-cat-card {
    background: #fff;
    border: 1px solid rgba(38,37,30,0.08);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ds-cat-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.ds-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.ds-cat-header .ds-hero-icon { margin-bottom: 0; }
.ds-cat-title { font-size: 17px; font-weight: 700; margin: 0; }
.ds-cat-desc {
    font-size: 13px;
    color: rgba(38,37,30,0.55);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}
.ds-cat-btn {
    display: block;
    text-align: center;
    background: #f54e00;
    color: #fff;
    border-radius: 10px;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.ds-cat-btn:hover { background: #d94400; color: #fff; }

/* ======= Responsive ======= */

/* -- Prevent horizontal overflow globally on mobile -- */
html, body { max-width: 100vw; overflow-x: hidden; }
.main-content { max-width: 100%; overflow-x: hidden; }
.page-body { max-width: 100%; overflow-x: hidden; }

/* -- Grid items: prevent content blowout -- */
.grid-4 > *, .grid-3 > *, .grid-2 > *,
.grid-1-2 > *, .grid-2-1 > * { min-width: 0; }

/* -- Card overflow containment -- */
.card, .stat-card { min-width: 0; overflow: hidden; }

@media (max-width: 1280px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close-btn { display: block; }
    .main-content { margin-left: 0; }
    .hamburger-btn { display: flex !important; }
    .page-body { padding: 16px; }
    .page-header { padding: 0 16px; }
    .alert { margin: 0 16px; }
}

@media (max-width: 768px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-1-2 { grid-template-columns: 1fr; }
    .grid-2-1 { grid-template-columns: 1fr; }
    .credit-badge { display: none; }

    /* -- Stat cards: compact for mobile -- */
    .stat-card { padding: 16px 18px; }
    .stat-value { font-size: 22px; }
    .stat-icon { width: 40px; height: 40px; }
    .stat-icon .material-symbols-outlined { font-size: 22px; }

    /* -- Chart container: ensure responsive -- */
    .card canvas { max-width: 100%; }

    /* -- Page title: scale down -- */
    .page-title { font-size: 17px; }

    /* -- Datasets page mobile -- */
    .ds-hero-value { font-size: 24px; }
    .ds-hero-card { padding: 16px; }
    .ds-hero-icon { width: 34px; height: 34px; margin-bottom: 8px; }
    .ds-hero-label { font-size: 11px; }
    .ds-cat-card { padding: 20px; }
    .ds-cat-title { font-size: 15px; }

    /* -- Buy Credits page mobile -- */
    .coupon-input-row { flex-wrap: wrap; }
    .topup-btn { padding: 10px 12px !important; }
}

@media (max-width: 480px) {
    /* -- Even tighter on very small screens -- */
    .page-body { padding: 12px; }
    .page-header { padding: 0 12px; gap: 8px; }
    .stat-card { padding: 14px 14px; }
    .stat-value { font-size: 18px; }
    .stat-icon { width: 34px; height: 34px; }
    .stat-icon .material-symbols-outlined { font-size: 18px; }
    .stat-label { font-size: 9px; letter-spacing: 0.6px; }
    .grid-4 { gap: 8px; }
    .card { padding: 16px 14px; }

    /* -- Quick Search pill buttons fix -- */
    .btn-pill { padding: 8px 12px; font-size: 12px; }

    /* -- Table: horizontal scroll with touch -- */
    .data-table { font-size: 12px; }
    .data-table th { padding: 10px 12px; font-size: 9px; }
    .data-table td { padding: 10px 12px; font-size: 12px; }

    /* -- Datasets page small mobile -- */
    .ds-hero-value { font-size: 20px; }
    .ds-hero-card { padding: 12px; }
    .ds-hero-icon { width: 30px; height: 30px; margin-bottom: 6px; }
    .ds-hero-icon .material-symbols-outlined { font-size: 18px; }
    .ds-hero-label { font-size: 10px; }
    .ds-cat-card { padding: 16px; }
    .ds-cat-desc { font-size: 12px; margin-bottom: 14px; }
    .ds-cat-btn { padding: 10px 0; font-size: 12px; }

    /* -- Buy Credits page small mobile -- */
    .coupon-input-row { flex-wrap: wrap; }
    .coupon-input-row input { width: 100%; }
}

/* ======= Utilities ======= */
.text-mono   { font-family: var(--font-mono); }
.text-bold   { font-weight: 700; }
.text-muted  { color: rgba(38,37,30,0.4); }
.text-orange { color: var(--cursor-orange); }
.text-success { color: var(--cursor-success); }
.text-danger { color: var(--cursor-crimson); }
.text-gold   { color: var(--cursor-gold); }
.text-sm     { font-size: 12px; }
.text-xs     { font-size: 10px; }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ======= Animations ======= */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeIn { animation: fadeIn 0.3s ease-out; }

/* ======= Login Page ======= */
.login-page {
    min-height: 100vh;
    background-color: var(--cursor-dark);
    background-image:
        radial-gradient(ellipse at 30% 50%, rgba(245,78,0,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(192,133,50,0.06) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: var(--cursor-cream);
    border-radius: var(--radius);
    padding: 44px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(38,37,30,0.1);
}

.btn-google {
    width: 100%;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    background: var(--cursor-surface);
    color: var(--cursor-dark);
    border: 1px solid rgba(38,37,30,0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-google:hover { color: var(--cursor-crimson); box-shadow: var(--shadow-md); }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}
.divider span { font-size: 12px; color: rgba(38,37,30,0.45); font-weight: 500; white-space: nowrap; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(38,37,30,0.1); }

@media (max-width: 480px) { .login-card { padding: 32px 24px; } }

/* ======= Pagination ======= */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: rgba(38,37,30,0.55);
    background: transparent;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.pagination-btn:hover {
    background: rgba(38,37,30,0.06);
    color: var(--cursor-dark);
}
.pagination-btn.active {
    background: var(--cursor-dark);
    color: var(--cursor-cream);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 32px;
    font-size: 13px;
    color: rgba(38,37,30,0.3);
    letter-spacing: 1px;
}

/* ======= Animations ======= */
.animate-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.animate-fadeIn {
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
