/* ADELAC BANK - Mobile-First Banking UI */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1a1a2e;
    --primary-dark: #0f0f1a;
    --accent: #f5c518;
    --accent-dark: #d4a800;
    --accent-light: #fff3cc;
    --success: #22c55e;
    --success-light: #dcfce7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --white: #ffffff;
    --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;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.12), 0 8px 10px -6px rgba(0,0,0,0.08);
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

body.auth-page {
    background: var(--primary-dark);
    max-width: 100%;
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    max-width: 420px;
    margin: 0 auto;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.auth-logo img { width: 100%; height: 100%; object-fit: contain; }

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    text-align: center;
}

.auth-title span { color: var(--accent); }

.auth-subtitle {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 32px;
    text-align: center;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-control {
    padding-left: 44px;
}

.input-icon-wrapper .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-dark {
    background: var(--primary);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== HEADER ==================== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-100);
}

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

.header-menu-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 4px;
}

.header-logo {
    height: 28px;
}

.header-logo img { height: 100%; }

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

.header-notification {
    position: relative;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--gray-600);
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-dark);
    overflow: hidden;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== MAIN CONTENT ==================== */
.app-content {
    padding: 20px;
    padding-bottom: 100px;
}

.greeting {
    margin-bottom: 24px;
}

.greeting h1 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
}

.greeting p {
    color: var(--gray-500);
    font-size: 0.88rem;
    margin-top: 2px;
}

/* ==================== BALANCE CARD ==================== */
.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: var(--accent);
    opacity: 0.08;
    border-radius: 50%;
}

.balance-label {
    font-size: 0.82rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.balance-amount {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.balance-change {
    font-size: 0.82rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.balance-change.negative { color: var(--danger); }

.balance-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.balance-item {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.balance-item-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.balance-item-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.balance-item-sub {
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ==================== QUICK ACTIONS ==================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.quick-action:hover, .quick-action:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.quick-action-icon.send { background: var(--accent-light); color: var(--accent-dark); }
.quick-action-icon.receive { background: var(--success-light); color: var(--success); }
.quick-action-icon.card { background: var(--info-light); color: var(--info); }
.quick-action-icon.more { background: var(--gray-100); color: var(--gray-600); }

.quick-action span {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
}

/* ==================== SECTION ==================== */
.section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-link {
    font-size: 0.82rem;
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 600;
}

/* ==================== EXPENSE CHART ==================== */
.expense-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.expense-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.expense-chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.expense-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.expense-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.expense-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.expense-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    color: var(--gray-700);
}

/* ==================== CREDIT CARD WIDGET ==================== */
.credit-card-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.credit-amount {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 8px;
}

.credit-progress {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.credit-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--accent));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.credit-info {
    font-size: 0.78rem;
    color: var(--gray-500);
}

/* ==================== TRANSACTIONS ==================== */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.transaction-item:first-child { border-radius: var(--radius) var(--radius) var(--radius-sm) var(--radius-sm); }
.transaction-item:last-child { border-radius: var(--radius-sm) var(--radius-sm) var(--radius) var(--radius); }

.transaction-item:hover {
    background: var(--gray-50);
}

.transaction-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.transaction-icon.shopping { background: #fef3c7; color: #d97706; }
.transaction-icon.food { background: #fed7aa; color: #ea580c; }
.transaction-icon.travel { background: #d1fae5; color: #059669; }
.transaction-icon.transfer { background: #dbeafe; color: #2563eb; }
.transaction-icon.income { background: #dcfce7; color: #16a34a; }
.transaction-icon.expense { background: #fee2e2; color: #dc2626; }

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-category {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.transaction-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: right;
    white-space: nowrap;
}

.transaction-amount.credit { color: var(--success); }
.transaction-amount.debit { color: var(--gray-800); }

.transaction-date {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-align: right;
}

/* ==================== CARD DISPLAY ==================== */
.bank-card {
    background: linear-gradient(135deg, var(--primary) 0%, #2d2d4e 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.586;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.bank-card.gold {
    background: linear-gradient(135deg, #b8860b, #ffd700, #b8860b);
    color: var(--primary-dark);
}

.bank-card.platinum {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.bank-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-bank-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #f5c518 0%, #d4a800 100%);
    border-radius: 6px;
}

.card-number {
    font-size: 1.2rem;
    letter-spacing: 3px;
    font-weight: 500;
    text-align: center;
    margin: auto 0;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder-label, .card-expiry-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.card-holder-name, .card-expiry-date {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-type-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    font-style: italic;
}

/* ==================== SEND / TRANSFER ==================== */
.transfer-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.transfer-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.beneficiary-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.beneficiary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.beneficiary-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-dark);
    transition: var(--transition);
}

.beneficiary-item:hover .beneficiary-avatar,
.beneficiary-item.active .beneficiary-avatar {
    background: var(--accent);
    color: var(--primary-dark);
    transform: scale(1.05);
}

.beneficiary-name {
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px 0;
}

.amount-input-wrapper .currency {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-400);
}

.amount-input-wrapper input {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    border: none;
    outline: none;
    background: none;
    text-align: center;
    width: 200px;
    color: var(--gray-900);
}

/* ==================== KYC ==================== */
.kyc-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.kyc-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--gray-200);
}

.kyc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.kyc-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.kyc-step.active .kyc-step-number {
    background: var(--accent);
    color: var(--primary-dark);
}

.kyc-step.completed .kyc-step-number {
    background: var(--success);
    color: white;
}

.kyc-step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
}

.kyc-step.active .kyc-step-label { color: var(--gray-800); }

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.upload-zone input {
    display: none;
}

.upload-zone-icon {
    font-size: 2.5rem;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.upload-zone-text {
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.upload-zone-hint {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ==================== STATUS BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-pending { background: var(--gray-100); color: var(--gray-500); }

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 0.68rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
}

.nav-item .nav-icon {
    font-size: 1.3rem;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--accent-dark);
}

.nav-item.active .nav-icon {
    color: var(--accent);
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.back-btn:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

/* ==================== SIDEBAR ==================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 301;
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 24px;
}

.sidebar.active {
    transform: translateX(280px);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent-dark);
}

.sidebar-user-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.sidebar-user-email {
    font-size: 0.78rem;
    color: var(--gray-500);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.sidebar-menu li a .menu-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 12px 0;
}

/* ==================== NOTIFICATION PAGE ==================== */
.notification-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: var(--transition);
}

.notification-item.unread {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.notification-dot.info { background: var(--info); }
.notification-dot.success { background: var(--success); }
.notification-dot.warning { background: var(--warning); }
.notification-dot.danger { background: var(--danger); }

.notification-content h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-content p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 6px;
}

/* ==================== ACCOUNT INFO ==================== */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-800);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-50);
}

.info-row:last-child { border: none; }

.info-label {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.info-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.info-value.copyable {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-value.copyable:hover { color: var(--accent-dark); }

/* ==================== ALERT ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: var(--success-light); color: #166534; }
.alert-danger { background: var(--danger-light); color: #991b1b; }
.alert-warning { background: var(--warning-light); color: #92400e; }
.alert-info { background: var(--info-light); color: #1e40af; }

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.empty-state p {
    color: var(--gray-500);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.tab.active {
    background: var(--white);
    color: var(--gray-800);
    box-shadow: var(--shadow);
}

/* ==================== TOGGLE ==================== */
.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.toggle-label {
    font-size: 0.88rem;
    font-weight: 500;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-300);
    border-radius: 26px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.toggle input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ==================== LOADING ==================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    gap: 16px;
}

.loading-overlay p {
    font-weight: 600;
    color: var(--gray-600);
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ==================== ADMIN ==================== */
.admin-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.admin-stat {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.admin-stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.admin-stat-label {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.user-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    text-decoration: none;
    color: inherit;
}

.user-list-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.user-list-info { flex: 1; }
.user-list-name { font-weight: 600; font-size: 0.9rem; }
.user-list-email { font-size: 0.78rem; color: var(--gray-500); }

/* ==================== TABLE (admin) ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--gray-600);
    background: var(--gray-50);
    white-space: nowrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-50);
    white-space: nowrap;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.4s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-20 { padding: 20px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.72rem; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
