﻿:root {
    --primary-color: #0ca678;
    --primary-hover: #099268;
    --primary-light: #f0fdf9;
    --secondary-color: #E6F8F3;
    --sidebar-width: 260px;
    --header-height: 70px;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--primary-color);
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

a:focus:not(:focus-visible) {
    outline: none;
}

a:active {
    color: var(--primary-hover);
}

/* Layout Structure */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.page-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    padding: 20px 40px;
    flex: 1;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
        z-index: 2000;
        /* Sidebar above sticky header if open */
    }

    .page-wrapper {
        margin-left: 0;
    }

    .main-content {
        padding: 16px;
        padding-bottom: 90px;
        /* Space for bottom nav */
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .page-header {
        position: sticky;
        top: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(5px);
    }
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    /* Below sidebar (1000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Styling */
/* Sidebar Styling */
.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.nav-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #adb5bd;
    font-weight: 700;
    padding: 20px 24px 10px;
    letter-spacing: 0.5px;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--transition-base);
}

.nav-link-custom:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.nav-link-custom.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.nav-link-custom svg {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

/* Sidebar Logout - Separated at bottom */
.sidebar-logout {
    margin-top: auto;
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
}

.logout-link {
    display: flex;
    align-items: center;
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 0;
    transition: all 0.2s;
}

.logout-link:hover {
    color: #bb2d3b;
    transform: translateX(2px);
}

.logout-link svg {
    margin-right: 10px;
    flex-shrink: 0;
}

/* Main Content Header */
.page-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    background: transparent;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* User Profile Badge in Header */
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rank-badge-wrap {
    display: flex;
    align-items: center;
}

.rank-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5dc; /* nền */
    border: 1px solid rgb(186 95 23); /* viền */
    color: rgb(186 95 23); /* chữ + icon */
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
    white-space: nowrap;
}

.rank-badge-icon {
    color: rgb(186 95 23);
}

.rank-badge-divider {
    width: 1px;
    height: 34px; /* tương đương chiều cao badge/user */
    background: #e9ecef;
    margin: 0 12px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    background: #E9ECEF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6C757D;
}

/* Components */
.card-clean {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
}

/* Warning Box */
.warning-box {
    background: #FFF9E6;
    border: 1px solid #FFE8A3;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.warning-title {
    color: #856404;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.warning-list li {
    display: flex;
    align-items: start;
    gap: 8px;
}

/* Recording Time Badge */
.recording-time-badge {
    background: #fff;
    border: 1px solid #FFEeba;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.recording-icon-wrapper {
    width: 48px;
    height: 48px;
    background: #FFEDDE;
    /* Very light orange circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.recording-platforms {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.recording-text {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* Steps */
.step-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.step-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Channel Grid Responsive */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 576px) {
    .channel-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on small mobile */
        gap: 12px;
    }

    .channel-card {
        height: 100px;
        /* Smaller card */
    }

    /* Input & Button Resizing */
    .input-custom-wrapper {
        padding: 6px 6px 6px 12px;
    }

    .input-custom {
        font-size: 0.9rem;
    }

    .action-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

.channel-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.channel-card:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.channel-card.active {
    border: 2px solid var(--primary-color);
    background: var(--primary-light);
}

.channel-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
    background: #f9f9f9;
}

.channel-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
    background: #f8f9fa;
    /* Placeholder bg */
    border-radius: 8px;
}

.channel-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.beta-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #7952B3;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Input Form */
.input-custom-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px 8px 8px 20px;
    display: flex;
    align-items: center;
    transition: border-color var(--transition-base);
}

.input-custom-wrapper:focus-within {
    border-color: var(--primary-color);
}

.input-custom {
    border: none;
    flex: 1;
    font-size: 1rem;
    outline: none;
    color: var(--text-dark);
}

.input-custom::placeholder {
    color: var(--text-light);
}

.action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    background: var(--primary-hover);
    color: white;
    text-decoration: none;
}

.action-btn:focus,
.action-btn:active {
    color: white;
    text-decoration: none;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utility */
.text-orange {
    color: var(--primary-color) !important;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: var(--bg-white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1010;
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-top: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 500;
    width: 20%;
    min-height: 48px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item svg {
    margin-bottom: 6px;
    transition: transform var(--transition-fast);
}

.nav-item:hover svg {
    transform: scale(1.1);
}

.nav-item.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-item.active svg {
    transform: scale(1.15);
}

.nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.nav-item-center-wrapper {
    position: relative;
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    /* Align label to bottom */
    height: 70px;
}

.nav-item-center {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    /* Teal */
    /* Gradient like screenshot */
    background: linear-gradient(135deg, #0ca678 0%, #20c997 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(12, 166, 120, 0.4);
    position: absolute;
    top: -15px;
    /* Float up */
    border: 4px solid #fff;
    /* White ring effect */
}

.center-label {
    font-size: 0.7rem;
    color: #555;
    margin-bottom: 12px;
    /* Adjust based on float */
    font-weight: 600;
}

/* --- Dashboard Overview Styles --- */

/* 1. Welcome Banner */
.dashboard-banner {
    background: linear-gradient(90deg, #0ca678 0%, #20c997 100%);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.banner-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-text {
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 24px;
    line-height: 1.5;
    opacity: 0.95;
}

.banner-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-banner {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-banner:hover {
    background: #E6F8F3;
    color: #087f5b;
    transform: translateY(-2px);
}

/* 2. Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.step-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

/* Specific icon colors */
.stat-icon.cart {
    background: #E6F8F3;
    color: #0CA678;
}

.stat-icon.dollar {
    background: #E7F5FF;
    color: #228BE6;
}

.stat-icon.wallet {
    background: #F3F0FF;
    color: #7950F2;
}

.stat-icon.users {
    background: #FFF0F6;
    color: #FA5252;
}

.stat-label {
    font-size: 0.85rem;
    color: #868e96;
    margin-bottom: 4px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
}

.stat-action {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* 3. Middle Section */
.middle-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 992px) {
    .middle-grid {
        grid-template-columns: 1fr;
    }
}

.section-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f0f0f0;
    height: 100%;
}

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

.section-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #adb5bd;

}
/* Shopping Bag Container Animation - Bouncing Effect với Scale */
.shopping-bag-container {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: shoppingBagBounce 2.5s ease-in-out infinite;
    transform-origin: center bottom;
    position: relative; /* Để badge overlay có thể absolute */
}
/* Shopping Bag Container Animation - Bouncing Effect với Scale */
.shopping-bag-container {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: shoppingBagBounce 2.5s ease-in-out infinite;
    transform-origin: center bottom;
    position: relative; /* Để badge overlay có thể absolute */
}

/* Gift Badge Overlay ở góc trên phải */
.gift-badge-overlay {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--primary-color); /* Màu cam */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: giftPulse 2.5s ease-in-out infinite; /* Hiệu ứng sáng mờ */
}

    .gift-badge-overlay svg {
        color: white;
        width: 12px;
        height: 12px;
    }

@keyframes shoppingBagBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    20% {
        transform: translateY(-3px) scale(1.02);
    }

    40% {
        transform: translateY(0) scale(1);
    }

    60% {
        transform: translateY(-2px) scale(1.01);
    }

    80% {
        transform: translateY(0) scale(1);
    }
}

/* Hiệu ứng sáng mờ cho gift badge */
@keyframes giftPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    20% {
        opacity: 0.6;
        box-shadow: 0 2px 8px rgba(12, 166, 120, 0.3);
    }

    40% {
        opacity: 1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    60% {
        opacity: 0.7;
        box-shadow: 0 2px 6px rgba(12, 166, 0, 0.25);
    }

    80% {
        opacity: 1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}
/* Rank Progress */
.rank-progress-container {
    text-align: center;
    padding: 20px 0;
}

.rank-avatar {
    width: 80px;
    height: 80px;
    background: #E9ECEF;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.rank-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 4px;
}

.rank-sub {
    font-size: 0.9rem;
    color: #868e96;
    margin-bottom: 24px;
}

.progress-custom {
    height: 8px;
    border-radius: 4px;
    background: #f1f3f5;
    margin-bottom: 8px;
}

.progress-bar-custom {
    background: linear-gradient(90deg, #FCC419 0%, #F59F00 100%);
    border-radius: 4px;
    height: 100%;
}

/* 4. Community */
.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
}

.community-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.community-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-icon.fb-group {
    background: #E7F5FF;
    color: #1877F2;
}

.community-icon.fb-page {
    background: #E7F5FF;
    color: #1877F2;
}

/* 5. Leaderboard */
.leaderboard-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.tab-item {
    padding-bottom: 12px;
    color: #868e96;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: #228BE6;
    border-color: #228BE6;
}

.leaderboard-table-wrapper {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    text-align: left;
    color: #adb5bd;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.leaderboard-table td {
    padding: 12px 0;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
}

.rank-badge-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #868e96;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.rank-1 .rank-badge-circle {
    background: #FFD43B;
    color: #fff;
}

.rank-2 .rank-badge-circle {
    background: #ADB5BD;
    color: #fff;
}

.rank-3 .rank-badge-circle {
    background: #E67700;
    color: #fff;
}

.text-orange {
    color: var(--primary-color) !important;
}
/* ===== Orders Page Styles ===== */

/* Info Card */
.order-info-card {
    background: #E7F5FF;
    border: 1px solid #B6E5FF;
    border-radius: var(--border-radius);
    padding: 20px 24px;
}

.info-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #228BE6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon {
    color: white;
    width: 24px;
    height: 24px;
}

.info-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1C7ED6;
    margin: 0;
}

.info-card-text {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
}

/* Platform Info Cards */
.platform-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.platform-info-card {
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    padding: 16px 20px;
}

.platform-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .platform-icon-wrapper.lightning {
        background: #FFF9DB;
        color: #FCC419;
    }

    .platform-icon-wrapper.clock {
        background: #E7F5FF;
        color: #228BE6;
    }

.platform-label {
    font-size: 0.75rem;
    color: #868E96;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.platform-time {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

/* Order Table */
.section-heading {
    font-weight: 700;
    font-size: 1.5rem;
    color: #212529;
    margin: 0;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #868E96;
    margin: 0;
}

.order-table-header {
    background: #F8F9FA;
    border-radius: 12px 12px 0 0;
    padding: 12px 16px;
    border: 1px solid #E9ECEF;
    border-bottom: none;
}

.order-table-row {
    display: grid;
    grid-template-columns: 120px 2fr 140px 140px 120px;
    gap: 16px;
    align-items: center;
}

.order-col-id,
.order-col-product,
.order-col-date,
.order-col-cashback,
.order-col-status {
    font-size: 0.75rem;
    font-weight: 700;
    color: #868E96;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.order-empty-state {
    background: white;
    border: 1px solid #E9ECEF;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Icon container sẽ dùng class shopping-bag-container đã có sẵn */
.order-empty-state .shopping-bag-container {
    margin-bottom: 24px; /* Thay vì 16px để phù hợp với layout lớn hơn */
}

.order-empty-content {
    max-width: 400px;
}
.order-empty-icon-container {
    position: relative;
    margin-bottom: 24px;
}

.order-empty-icon {
    width: 64px;
    height: 64px;
    color: #ADB5BD;
    stroke-width: 1.5;
}

.order-empty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .order-empty-badge svg {
        color: white;
        width: 16px;
        height: 16px;
    }

.order-empty-content {
    max-width: 400px;
}

.order-empty-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #212529;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sparkle-icon {
    color: #51CF66;
    width: 20px;
    height: 20px;
}

.order-empty-text {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 24px;
    line-height: 1.6;
}

.order-empty-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

    .order-empty-btn:hover {
        background: #099268;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(12, 166, 120, 0.3);
        color: white;
    }

/* Responsive */
@media (max-width: 768px) {
    .order-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .order-col-id,
    .order-col-product,
    .order-col-date,
    .order-col-cashback,
    .order-col-status {
        display: none;
    }

    .platform-info-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Finance Page Styles ===== */

/* Financial Summary Cards */
.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.finance-card {
    background: white;
    border: 1px solid #E9ECEF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.finance-card-primary {
    background: linear-gradient(135deg, #228BE6 0%, #1C7ED6 100%);
    border: none;
    color: white;
}

.finance-card-header {
    margin-bottom: 12px;
}

.finance-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #868E96;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finance-card-primary .finance-card-label {
    color: rgba(255, 255, 255, 0.9);
}

.finance-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 12px;
}

.finance-card-primary .finance-card-value {
    color: white;
}

.finance-card-footer {
    font-size: 0.9rem;
    color: #868E96;
    display: flex;
    align-items: center;
}

.finance-card-primary .finance-card-footer {
    color: rgba(255, 255, 255, 0.9);
}

/* Two Column Layout */
.finance-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .finance-content-grid {
        grid-template-columns: 1fr;
    }
}

.finance-section-card {
    background: white;
    border: 1px solid #E9ECEF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.finance-section-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #212529;
    margin: 0;
}

/* Alert Box */
.finance-alert-box {
    background: #FFF9DB;
    border: 1px solid #FFE066;
    border-radius: 12px;
    padding: 16px 20px;
}

.finance-alert-icon {
    color: #FCC419;
    flex-shrink: 0;
    margin-top: 2px;
}

.finance-alert-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #856404;
    margin: 0;
}

.finance-alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.8;
}

.finance-alert-list li {
    position: relative;
    padding-left: 16px;
}

.finance-alert-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FCC419;
    font-weight: bold;
}

/* Update Profile Button */
.finance-update-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.finance-update-btn:hover {
    background: #099268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 166, 120, 0.3);
    color: white;
}

/* Amount Input */
.finance-input-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
    display: block;
}

.finance-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.finance-amount-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    outline: none;
}
/* Ẩn spinner cho tất cả input number trong Finance page */
.finance-amount-input::-webkit-outer-spin-button,
.finance-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.finance-amount-input[type=number] {
    -moz-appearance: textfield;
}
.finance-amount-currency {
    padding: 14px 20px;
    background: #F8F9FA;
    font-weight: 600;
    color: #868E96;
    border-left: 1px solid #E9ECEF;
}

.finance-amount-limits {
    font-size: 0.85rem;
}

/* Payment Methods */
/* Payment Methods - Radio Buttons */
.finance-payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.finance-payment-radio {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.finance-payment-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.finance-payment-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: white;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.2s;
    gap: 8px;
}

.finance-payment-icon {
    width: 24px;
    height: 24px;
    color: #64748B;
    /* Icon giữ nguyên màu, không đổi */
}

/* Hover vào Bank radio - Màu bank */
.finance-payment-radio:has(input[value="bank"]):hover .finance-payment-radio-content,
.finance-payment-radio:has(input[value="bank"]:not(:checked)) .finance-payment-radio-content:hover {
    border-color: rgb(59, 130, 246);
    background-color: rgb(239, 246, 255);
}

/* Hover vào MoMo radio - Màu momo */
.finance-payment-radio:has(input[value="momo"]):hover .finance-payment-radio-content,
.finance-payment-radio:has(input[value="momo"]:not(:checked)) .finance-payment-radio-content:hover {
    border-color: rgb(236, 72, 153);
    background-color: rgb(253, 242, 248);
}

/* Bank Selected State */
.finance-payment-input[value="bank"]:checked ~ .finance-payment-radio-content {
    border-color: rgb(59, 130, 246);
    background-color: rgb(239, 246, 255);
}

/* MoMo Selected State */
.finance-payment-input[value="momo"]:checked ~ .finance-payment-radio-content {
    border-color: rgb(236, 72, 153);
    background-color: rgb(253, 242, 248);
}

/* Khi đã select rồi thì hover giữ nguyên màu */
.finance-payment-input:checked ~ .finance-payment-radio-content:hover {
    border-color: inherit;
    background-color: inherit;
}

/* Submit Button */
.finance-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: #ADB5BD;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    cursor: not-allowed;
    transition: all 0.2s;
}

.finance-submit-btn:not(:disabled) {
    background: var(--primary-color);
    cursor: pointer;
}

.finance-submit-btn:not(:disabled):hover {
    background: #099268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 166, 120, 0.3);
}

/* Transaction History Table */
.finance-table-header {
    background: #F8F9FA;
    border-radius: 12px 12px 0 0;
    padding: 12px 16px;
    border: 1px solid #E9ECEF;
    border-bottom: none;
}

.finance-table-row {
    display: grid;
    grid-template-columns: 120px 1fr 140px 120px;
    gap: 16px;
    align-items: center;
}

.finance-col-id,
.finance-col-time,
.finance-col-amount,
.finance-col-status {
    font-size: 0.75rem;
    font-weight: 700;
    color: #868E96;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finance-empty-state {
    background: white;
    border: 1px solid #E9ECEF;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 40px 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .finance-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .finance-payment-methods {
        grid-template-columns: 1fr;
    }
    
    .finance-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .finance-col-id,
    .finance-col-time,
    .finance-col-amount,
    .finance-col-status {
        display: none;
    }
}
.finance-error-message {
    color: #FA5252;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
}

/* ===== Profile Page Styles ===== */

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* Profile Summary Card */
.profile-summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    text-align: center;
    height: fit-content;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto;
}

.profile-status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #51CF66;
    border: 3px solid white;
    border-radius: 50%;
}

.profile-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: #212529;
    margin: 0;
}

.profile-email {
    font-size: 0.9rem;
    color: #868E96;
    margin: 0;
}

.profile-rank-badge {
    display: inline-flex;
    align-items: center;
    background: #FFF9DB;
    border: 1px solid #FFE066;
    color: #FCC419;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.profile-join-date {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E9ECEF;
}

/* Profile Info Cards */
.profile-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.profile-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #212529;
}

.profile-edit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.profile-edit-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Form Styles */
.profile-form-group {
    margin-bottom: 24px;
}

.profile-form-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 8px;
}

.profile-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color var(--transition-base);
}

.profile-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.profile-form-input[readonly] {
    background: var(--bg-light);
    cursor: not-allowed;
}

.profile-form-note {
    font-size: 0.85rem;
    color: #868E96;
}

/* Form Actions */
.profile-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E9ECEF;
}

.profile-cancel-btn {
    padding: 10px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.profile-cancel-btn:hover {
    background: var(--bg-light);
}

.profile-save-btn {
    padding: 10px 24px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    transition: background var(--transition-base);
}

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

/* Toast Notification */
.profile-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    background: #51CF66;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    animation: slideInRight 0.3s ease-out;
}

.profile-toast-content {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.profile-card-subtitle {
    font-size: 0.85rem;
    color: #868E96;
    margin-top: 4px;
}

/* Select dropdown styling */
.profile-form-input[type="select"],
select.profile-form-input {
    cursor: pointer;
    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='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

select.profile-form-input:focus {
    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='%230ca678' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}
.profile-display-value {
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 600;
    color: #212529;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Bank Information Item Layout */
.bank-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #F1F3F5;
}

.bank-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bank-info-item:first-child {
    padding-top: 0;
}

.bank-info-icon {
    width: 40px;
    height: 40px;
    background: #F8F9FA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #495057;
}

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

.bank-info-label {
    font-size: 0.85rem;
    color: #868E96;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bank-info-value {
    font-size: 0.95rem;
    color: #212529;
    font-weight: 600;
    word-break: break-word;
}

/* Responsive adjustments for bank info */
@media (max-width: 768px) {
    .bank-info-item {
        gap: 12px;
        padding: 12px 0;
    }
    
    .bank-info-icon {
        width: 36px;
        height: 36px;
    }
    
    .bank-info-label {
        font-size: 0.8rem;
    }
    
    .bank-info-value {
        font-size: 0.9rem;
    }
}

/* Order List Container */
.order-list-container {
    background: white;
    border: 1px solid #E9ECEF;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.order-item-card {
    border-bottom: 1px solid #F1F3F5;
    transition: background-color 0.2s;
}

.order-item-card:last-child {
    border-bottom: none;
}

.order-item-card:hover {
    background-color: #F8F9FA;
}

.order-item-row {
    display: grid;
    grid-template-columns: 120px 2fr 140px 140px 120px;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.order-item-id,
.order-item-product,
.order-item-date,
.order-item-cashback,
.order-item-status {
    font-size: 0.9rem;
}

/* Order Status Badges */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-completed {
    background: #D3F9D8;
    color: #2B8A3E;
}

.status-reconciled {
    background: #D3F9D8;
    color: #2B8A3E;
}

.status-pending {
    background: #FFF9DB;
    color: #F59F00;
}

.status-cancelled {
    background: #FFE3E3;
    color: #C92A2A;
}

/* Responsive for order items */
@media (max-width: 768px) {
    .order-item-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 12px;
    }
    
    .order-item-id,
    .order-item-product,
    .order-item-date,
    .order-item-cashback,
    .order-item-status {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .order-item-id::before {
        content: "Mã đơn: ";
        font-weight: 600;
        color: #868E96;
        font-size: 0.75rem;
        text-transform: uppercase;
    }
    
    .order-item-date::before {
        content: "Ngày đặt: ";
        font-weight: 600;
        color: #868E96;
        font-size: 0.75rem;
        text-transform: uppercase;
    }
    
    .order-item-cashback::before {
        content: "Hoàn tiền: ";
        font-weight: 600;
        color: #868E96;
        font-size: 0.75rem;
        text-transform: uppercase;
    }
}

/* Recent Order Item */
.recent-order-item {
    border-top: 1px solid #F1F3F5;
}

.recent-order-icon {
    width: 48px;
    height: 48px;
    background: #F8F9FA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.recent-order-item:hover {
    background-color: #F8F9FA;
    cursor: pointer;
}

@media (max-width: 768px) {
    .recent-order-item .d-flex {
        flex-direction: column;
        gap: 12px !important;
    }
    
    .recent-order-icon {
        width: 40px;
        height: 40px;
    }
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.alert-success {
    background: #E8F5E9;
    border: 1px solid #4CAF50;
    color: #2E7D32;
}

.alert-danger {
    background: #FFEBEE;
    border: 1px solid #F44336;
    color: #C62828;
}

.alert svg {
    flex-shrink: 0;
}

.alert .btn-close {
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Footer Styles */
.page-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 40px 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-left {
    flex: 1;
}

.footer-description {
    color: #666;
    font-size: 14px;
    margin: 0;
    max-width: 300px;
}

.footer-right {
    display: flex;
    gap: 60px;
}

.footer-section h6 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.footer-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-section a {
    color: #0ca678;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0a8a62;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #999;
    font-size: 13px;
}

@media (max-width: 768px) {
    .page-footer {
        padding: 30px 20px 20px;
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-right {
        flex-direction: column;
        gap: 30px;
    }
}


/* Finance Submit Button */
.finance-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--transition-base);
    width: 100%;
}

.finance-submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.finance-submit-btn:disabled,
.finance-submit-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 5px;
    transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Focus Visible for Better Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-bottom-nav,
    .page-header,
    .action-btn,
    .profile-edit-btn {
        display: none !important;
    }
    
    .page-wrapper {
        margin-left: 0 !important;
    }
    
    body {
        background: white !important;
    }
}


/* Copy Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-toast svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .copy-toast {
        bottom: 90px;
        right: 16px;
        left: 16px;
        justify-content: center;
    }
}
