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

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --gold: #f39c12;
    --green: #27ae60;
    --red: #e74c3c;
    --blue: #3498db;
    --purple: #9b59b6;
    --bg: #f5f6fa;
    --card: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --border: #dfe6e9;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Auth Pages */
#auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.auth-page {
    display: none;
    width: 100%;
    padding: 20px;
}

.auth-page.active {
    display: block;
}

.auth-card {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 48px;
    color: var(--gold);
}

.logo h1 {
    color: var(--primary);
    margin-top: 10px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-group input {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.toggle-password {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    padding: 10px;
    transition: color 0.3s;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--primary);
}

.referral-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--primary);
}

.referral-info i {
    color: var(--primary);
}

.password-match {
    font-size: 0.85rem;
    margin-top: -15px;
    margin-bottom: 15px;
}

.password-match.valid {
    color: var(--green);
}

.password-match.invalid {
    color: var(--red);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

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

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

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

/* App Layout */
#app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Bottom Nav Bar */
.sidebar {
    background: white;
    padding: 0;
    display: flex;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.sidebar-logo {
    display: none;
}

.sidebar-nav {
    display: flex;
    justify-content: space-around;
    flex: 1;
    padding: 5px 0;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.75rem;
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item:hover,
.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item .badge {
    background: var(--red);
    color: white;
    padding: 1px 6px;
    border-radius: 20px;
    font-size: 0.65rem;
    position: absolute;
    top: 2px;
    right: 2px;
}

.btn-history-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn-history-account:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.btn-withdrawal-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn-withdrawal-account:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

.btn-bank-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn-bank-account:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.btn-logout-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn-logout-account:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 30px 80px;
}

/* Top Bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-logo i {
    color: var(--gold);
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: var(--shadow);
}

.search-box input {
    border: none;
    outline: none;
    margin-left: 10px;
    flex: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

.page h2 {
    margin-bottom: 25px;
    color: var(--text);
}

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

.page-header .btn-primary {
    width: auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stats-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

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

.stat-icon.green {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green);
}

.stat-icon.gold {
    background: rgba(243, 156, 18, 0.1);
    color: var(--gold);
}

.stat-icon.blue {
    background: rgba(52, 152, 219, 0.1);
    color: var(--blue);
}

.stat-icon.purple {
    background: rgba(155, 89, 182, 0.1);
    color: var(--purple);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 20px;
    color: var(--text);
}
/* Plan List */

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg);
    border-radius: 10px;
    transition: transform 0.2s;
}

.plan-item:hover {
    transform: translateX(5px);
}

.plan-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.plan-details {
    flex: 1;
}

.plan-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.plan-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.plan-reward {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--gold);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.plan-actions {
    display: flex;
    gap: 10px;
}

.plan-actions button {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
}

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

.btn-accept:hover {
    background: #219a52;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-item i {
    margin-top: 3px;
}

.activity-item p {
    font-weight: 500;
    margin-bottom: 3px;
}

.activity-item small {
    color: var(--text-light);
}

.green { color: var(--green); }
.gold { color: var(--gold); }

/* Plan Filters */
.plan-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Plan Grid */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.plan-card {
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.plan-card:hover {
    transform: translateY(-2px);
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 5px;
}

.plan-category {
    padding: 2px 6px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 0.6rem;
}

.plan-card h4 {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.plan-card p {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.plan-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    border-top: 1px solid var(--border);
}

.plan-card-footer .plan-reward {
    font-size: 0.7rem;
}

.plan-investment {
    border: 1.5px solid var(--gold);
}

.investment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 5px 0;
}

.invest-detail {
    background: var(--bg);
    padding: 5px 4px;
    border-radius: 6px;
    text-align: center;
}

.invest-label {
    display: block;
    font-size: 0.55rem;
    color: var(--text-light);
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.invest-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.invest-value.profit {
    color: var(--green);
}

.btn-invest {
    width: 100%;
    padding: 5px;
    background: linear-gradient(135deg, var(--gold), #e67e22);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-invest:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

.daily-reward {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 6px 0 #c97d14;
}

.daily-reward:hover {
    transform: translateY(-2px);
}

.daily-reward-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.daily-reward-text {
    flex: 1;
}

.daily-reward-title {
    display: block;
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.daily-reward-desc {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.daily-reward-btn {
    padding: 8px 20px;
    background: white;
    color: #e67e22;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    top: 0;
    box-shadow: 0 4px 0 #c9c9c9;
}

.daily-reward-btn:hover {
    box-shadow: 0 2px 0 #c9c9c9;
    top: 2px;
}

.home-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.home-action-btn {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.1s;
    position: relative;
    top: 0;
}

.home-action-btn:active {
    top: 3px;
}

.home-action-btn i {
    font-size: 1.3rem;
}

.home-deposit {
    background: #219a52;
    color: white;
    box-shadow: 0 6px 0 #1a7a42;
}

.home-deposit:hover {
    background: #27ae60;
    box-shadow: 0 4px 0 #1a7a42;
    top: 2px;
}

.home-withdraw {
    background: #c0392b;
    color: white;
    box-shadow: 0 6px 0 #962d22;
}

.home-withdraw:hover {
    background: #e74c3c;
    box-shadow: 0 4px 0 #962d22;
    top: 2px;
}

/* Wallet */
.wallet-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #a29bfe 100%);
    padding: 30px;
    border-radius: 20px;
    color: white;
    margin-bottom: 25px;
}

.balance-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.balance-amount i {
    color: var(--gold);
}

.wallet-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.btn-withdraw,
.btn-deposit {
    flex: 1;
    padding: 20px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-withdraw {
    background: white;
    color: var(--red);
    box-shadow: var(--shadow);
}

.btn-withdraw:hover {
    background: var(--red);
    color: white;
    transform: translateY(-3px);
}

.btn-deposit {
    background: white;
    color: var(--green);
    box-shadow: var(--shadow);
}

.btn-deposit:hover {
    background: var(--green);
    color: white;
    transform: translateY(-3px);
}

.btn-deposit-submit {
    background: var(--green) !important;
}

.btn-deposit-submit:hover {
    background: #219a52 !important;
}

/* Deposit Page */
.deposit-container,
.withdraw-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.deposit-card,
.withdraw-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.deposit-icon,
.withdraw-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.deposit-icon {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green);
}

.withdraw-icon {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
}

.deposit-card h3,
.withdraw-card h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.deposit-card p,
.withdraw-card p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.withdraw-balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.withdraw-balance {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.withdraw-balance i {
    color: var(--gold);
}

.deposit-quick-amounts,
.withdraw-quick-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-amount {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-amount:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-withdraw-submit {
    background: var(--red) !important;
}

.btn-withdraw-submit:hover {
    background: #c0392b !important;
}

/* History Page */
.history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.history-stat {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.history-stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.history-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.history-stat-value.green {
    color: var(--green);
}

.history-stat-value.red {
    color: var(--red);
}

.history-stat-value.blue {
    color: var(--blue);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: var(--bg);
    border-radius: 12px;
    transition: transform 0.2s;
}

.history-item:hover {
    transform: translateX(5px);
}

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

.history-icon.deposit {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green);
}

.history-icon.withdraw {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
}

.history-icon.earned {
    background: rgba(52, 152, 219, 0.1);
    color: var(--blue);
}

.history-info {
    flex: 1;
}

.history-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.history-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.history-amount {
    font-size: 1.2rem;
    font-weight: 700;
}

.history-amount.green {
    color: var(--green);
}

.history-amount.red {
    color: var(--red);
}

.history-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.history-status.completed {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green);
}

.history-status.pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--gold);
}

/* Transactions */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg);
    border-radius: 10px;
}

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

.trans-icon.green {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green);
}

.trans-icon.red {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
}

.trans-info {
    flex: 1;
}

.trans-title {
    font-weight: 500;
}

.trans-info small {
    color: var(--text-light);
}

.trans-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.trans-amount.green { color: var(--green); }
.trans-amount.red { color: var(--red); }

/* Messages */
.messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
}

.conversations-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.conversation-item:hover,
.conversation-item.active {
    background: var(--bg);
}

.conv-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.conv-info {
    flex: 1;
}

.conv-name {
    display: block;
    font-weight: 600;
}

.conv-preview {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
}

.conv-time {
    color: var(--text-light);
}

/* Chat Area */
.chat-area {
    background: white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.conv-status {
    font-size: 0.8rem;
}

.conv-status.online {
    color: var(--green);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    max-width: 70%;
    margin-bottom: 15px;
}

.message.sent {
    margin-left: auto;
}

.message p {
    padding: 12px 15px;
    border-radius: 15px;
    margin-bottom: 5px;
}

.message.received p {
    background: var(--bg);
}

.message.sent p {
    background: var(--primary);
    color: white;
}

.message small {
    color: var(--text-light);
    font-size: 0.75rem;
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 25px;
    outline: none;
}

.chat-input button {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.profile-balance {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary) !important;
}

.profile-stats {
    display: flex;
    gap: 20px;
}

.profile-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 15px;
    background: var(--bg);
    border-radius: 10px;
}

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

.reviewer-name {
    font-weight: 600;
}

.review-stars {
    color: var(--gold);
}

.review-item p {
    color: var(--text);
    margin-bottom: 5px;
}

.review-item small {
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .messages-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .search-box {
        display: none;
    }

    .main-content {
        padding: 15px 15px 75px;
    }

    .nav-item span {
        font-size: 0.65rem;
    }
}

/* Admin Panel */
.admin-nav {
    display: none;
}

.admin-nav.visible {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
}

.admin-stat-card i {
    font-size: 2rem;
    color: var(--primary);
}

.admin-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.admin-stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.admin-tab {
    padding: 12px 25px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.admin-tab.active {
    background: var(--primary);
    color: white;
}

.admin-tab:hover:not(.active) {
    background: var(--bg);
}

/* Admin Tab Content */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    width: 250px;
}

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

.filter-select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Admin Table */
.admin-table-wrapper {
    overflow-x: auto;
}

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

.admin-table th {
    text-align: left;
    padding: 15px;
    background: var(--bg);
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:hover {
    background: var(--bg);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.table-user-info {
    display: flex;
    flex-direction: column;
}

.table-user-name {
    font-weight: 600;
}

.table-user-email {
    font-size: 0.8rem;
    color: var(--text-light);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green);
}

.status-badge.banned {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
}

.status-badge.pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--gold);
}

.status-badge.available {
    background: rgba(52, 152, 219, 0.1);
    color: var(--blue);
}

.status-badge.in-progress {
    background: rgba(155, 89, 182, 0.1);
    color: var(--purple);
}

.status-badge.completed {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green);
}

/* Action Buttons */
.btn-small {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    margin-right: 5px;
}

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

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

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

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

.btn-reject {
    background: var(--text-light);
    color: white;
}

.btn-small:hover {
    opacity: 0.9;
}

/* Reports */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg);
    border-radius: 10px;
}

.report-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-icon.red {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
}

.report-icon.yellow {
    background: rgba(243, 156, 18, 0.1);
    color: var(--gold);
}

.report-icon.orange {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.report-info {
    flex: 1;
}

.report-title {
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.report-info small {
    color: var(--text-light);
}

.report-actions {
    display: flex;
    gap: 10px;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.setting-item input,
.setting-item select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.setting-item input:focus,
.setting-item select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Bank Account */
#bank-page h2 {
    margin-bottom: 0;
    margin-top: -10px;
}

#bank-page {
    padding-top: 0;
    padding-bottom: 300px;
    margin-top: -270px;
}

.bank-container {
    display: flex;
    justify-content: center;
    padding: 0;
}

.bank-container .bank-info-card,
.bank-container form {
    background: white;
    padding: 20px 40px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
}

.bank-container form .btn-primary {
    margin-top: 10px;
}

.bank-info-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.bank-label {
    color: var(--text-light);
    font-weight: 500;
}

.bank-value {
    font-weight: 600;
    color: var(--text);
}

/* Responsive Admin */
@media (max-width: 1024px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

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

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tab {
        flex: 1;
        min-width: calc(50% - 5px);
    }
}
