/* ========== GOOGLE FONT ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========== VARIABLES ========== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fb;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left a {
    color: #ccc;
    transition: var(--transition);
}

.top-bar-left a:hover {
    color: white;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right select {
    background: transparent;
    color: white;
    border: 1px solid #555;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.top-bar-right select option {
    background: var(--dark);
    color: white;
}

/* ========== NAVBAR ========== */
.navbar {
    background: white;
    padding: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.navbar-brand img {
    height: 40px;
}

.navbar-brand span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    color: #555;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13,110,253,0.4);
}

.btn-success {
    background: linear-gradient(135deg, #198754, #20c997);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========== USER DROPDOWN ========== */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 180px;
    padding: 8px 0;
    z-index: 100;
    margin-top: 10px;
}

.user-menu.active {
    display: block;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #555;
    font-size: 14px;
    transition: var(--transition);
}

.user-menu a:hover {
    background: #f5f7fb;
    color: var(--primary);
}

.user-menu a i {
    width: 20px;
    text-align: center;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f5f0ff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(13,110,253,0.03);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ========== STATS SECTION ========== */
.stats {
    padding: 60px 0;
    background: white;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: #666;
    margin-top: 5px;
}

/* ========== SECTION TITLES ========== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

/* ========== SERVICES ========== */
.services {
    padding: 80px 0;
    background: #f8f9fc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 14px;
}

/* ========== AUTH PAGES ========== */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 50px 40px;
    width: 100%;
    max-width: 480px;
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .auth-header .logo {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-card .auth-header .logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.auth-card p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(13,110,253,0.08);
}

.input-group {
    display: flex;
    gap: 0;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
    border-right: none;
}

.input-group .input-group-text {
    padding: 14px 18px;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: #999;
    display: flex;
    align-items: center;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.form-footer a {
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #ffc9c9;
}

.alert-success {
    background: #f0fff4;
    color: #198754;
    border: 1px solid #b7ebc9;
}

.alert-info {
    background: #f0f8ff;
    color: #0d6efd;
    border: 1px solid #b8daff;
}

.alert-dismissible {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-dismissible button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    padding: 0 5px;
    line-height: 1;
}

/* ========== BADGES ========== */
.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #0dcaf0 !important; }

/* ========== DASHBOARD ========== */
.dashboard {
    padding: 40px 0;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.welcome-section p {
    color: #666;
    font-size: 15px;
}

.welcome-date {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 14px;
    color: #666;
}

.welcome-date i {
    color: var(--primary);
}

/* Balance Card Modern */
.balance-card-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.balance-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

.balance-card-modern::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(102, 16, 242, 0.08);
    border-radius: 50%;
}

.balance-card-left {
    position: relative;
    z-index: 1;
}

.balance-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.balance-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    display: block;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 42px;
    font-weight: 800;
}

.balance-card-chip {
    font-size: 30px;
    opacity: 0.5;
}

.balance-card-footer {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.balance-info-item span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 4px;
}

.balance-info-item strong {
    font-size: 14px;
    font-weight: 600;
}

.balance-card-right {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    min-width: 100px;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 22px;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-modern {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-info h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 13px;
    color: #888;
}

/* Dashboard Main Grid */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header-modern {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-modern h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-modern h3 i {
    color: var(--primary);
}

.view-all {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.card-body-modern {
    padding: 25px;
}

/* Form Group Modern */
.form-group-modern {
    margin-bottom: 20px;
}

.form-group-modern label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 18px;
    color: #999;
}

.form-control-modern {
    width: 100%;
    padding: 16px 18px 16px 45px;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: #fafafa;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

/* Quick Amounts */
.quick-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-amount-btn {
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    color: #555;
}

.quick-amount-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f7ff;
}

/* Withdraw Info Box */
.withdraw-info-box {
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.withdraw-info-box i {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.withdraw-info-box strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.withdraw-info-box p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: var(--transition);
}

.transaction-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.transaction-item:first-child {
    padding-top: 0;
}

.transaction-item:hover {
    background: #fafbfc;
    margin: 0 -25px;
    padding-left: 25px;
    padding-right: 25px;
}

.transaction-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.transaction-info {
    flex: 1;
}

.transaction-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.transaction-top strong {
    font-size: 14px;
    font-weight: 600;
}

.transaction-amount {
    font-weight: 700;
    font-size: 15px;
    color: #dc3545;
}

.transaction-bottom {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.empty-state i {
    font-size: 50px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state h4 {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

/* Table Modern */
.table-responsive {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead {
    background: #f8f9fc;
}

.table-modern th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.table-modern td {
    padding: 16px 18px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.table-modern tbody tr {
    transition: var(--transition);
}

.table-modern tbody tr:hover {
    background: #fafbfc;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 16px;
    border: 2px solid #e8e8e8;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    color: #666;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========== PROGRESS BAR ========== */
.progress {
    height: 24px;
    background: #e9ecef;
    border-radius: 50px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    color: white;
    text-align: center;
    line-height: 24px;
    font-weight: 600;
    font-size: 13px;
    transition: width 0.5s ease;
}

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.modal-box h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.modal-box .modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

/* ========== ADMIN STYLES ========== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stat-card h4 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card p {
    color: #666;
    font-size: 13px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== FOOTER ========== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 80px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about p {
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.footer-about .social-links {
    display: flex;
    gap: 12px;
}

.footer-about .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    font-size: 16px;
}

.footer-about .social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-column ul li a i {
    font-size: 10px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-image {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .balance-card-modern {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .stats .container {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .balance-card-footer {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }
    
    .welcome-section h1 {
        font-size: 22px;
    }
    
    .balance-card-modern {
        padding: 20px;
    }
    
    .balance-amount {
        font-size: 24px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .card-header-modern {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
}