/**
 * InvestFlow Public Dashboard Styles
 *
 * @package     InvestFlow
 * @subpackage  Assets\CSS\Public
 * @author      Kaetech Digital
 * @since       1.0.0
 */

/* ============================================
   ROOT VARIABLES & BASE
   ============================================ */
:root {
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body.investflow-dashboard-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.investflow-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   FONT AWESOME ICON FIXES
   ============================================ */
.investflow-dashboard-wrapper .fas,
.investflow-dashboard-wrapper .far,
.investflow-dashboard-wrapper .fal,
.investflow-dashboard-wrapper .fab,
.investflow-dashboard-wrapper .fa-solid,
.investflow-dashboard-wrapper .fa-regular,
.investflow-dashboard-wrapper .fa-light,
.investflow-dashboard-wrapper .fa-brands {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.investflow-dashboard-wrapper .fas,
.investflow-dashboard-wrapper .fa-solid {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

.investflow-dashboard-wrapper .far,
.investflow-dashboard-wrapper .fa-regular {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 400 !important;
}

.investflow-dashboard-wrapper .fal,
.investflow-dashboard-wrapper .fa-light {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 300 !important;
}

.investflow-dashboard-wrapper .fab,
.investflow-dashboard-wrapper .fa-brands {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

.investflow-dashboard-wrapper .btn i,
.investflow-dashboard-wrapper .btn .fas,
.investflow-dashboard-wrapper .btn .far,
.investflow-dashboard-wrapper .btn .fal,
.investflow-dashboard-wrapper .btn .fab {
    margin-right: 6px;
}

.investflow-dashboard-wrapper .btn:not(.btn-icon) i:last-child,
.investflow-dashboard-wrapper .btn:not(.btn-icon) .fas:last-child,
.investflow-dashboard-wrapper .btn:not(.btn-icon) .far:last-child {
    margin-right: 0;
    margin-left: 6px;
}

.investflow-dashboard-wrapper .btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.investflow-dashboard-wrapper .btn-icon i,
.investflow-dashboard-wrapper .btn-icon .fas,
.investflow-dashboard-wrapper .btn-icon .far,
.investflow-dashboard-wrapper .btn-icon .fal,
.investflow-dashboard-wrapper .btn-icon .fab {
    margin: 0;
    font-size: 18px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.investflow-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.investflow-sidebar::-webkit-scrollbar {
    width: 4px;
}

.investflow-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.investflow-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.investflow-sidebar:hover::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

.investflow-sidebar:hover {
    scrollbar-color: var(--border-color) transparent;
}

.investflow-sidebar.open::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

.investflow-sidebar.open {
    scrollbar-color: var(--border-color) transparent;
}

.sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-item a i {
    width: 20px;
    font-size: 16px;
    text-align: center;
}

.nav-item a:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.nav-item.active a {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 200, 151, 0.3);
}

.nav-item.active a i {
    color: #fff;
}

.logout-link {
    color: var(--danger-color) !important;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 12px;
}

/* ============================================
   SIDEBAR FOOTER & THEME TOGGLE
   ============================================ */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    font-family: inherit;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 151, 0.1);
}

.theme-toggle i {
    font-size: 16px;
    transition: transform 0.5s ease;
}

.theme-toggle:hover i {
    transform: rotate(30deg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.investflow-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-secondary);
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: var(--topbar-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--hover-bg);
    border-radius: var(--radius);
}

.balance-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.balance-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: var(--hover-bg);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Page Content */
.page-content {
    padding: 32px;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-header .page-subtitle {
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
    font-size: 14px;
}

.page-header .btn-primary {
    margin-left: auto;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.stat-icon.primary {
    background: rgba(0, 200, 151, 0.1);
    color: #00C897;
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.stat-icon.warning {
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
}

.stat-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-change {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.stat-change.positive {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.stat-change.neutral {
    color: var(--text-secondary);
    background: var(--hover-bg);
}

.stat-change i {
    margin-right: 4px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.view-all {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* ============================================
   MARKET PRICES
   ============================================ */
.market-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 28px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.market-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.market-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 151, 0.08);
}

.market-item .coin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-item .coin-info .coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
}

.market-item .coin-info .coin-icon.btc { background: #F7931A; }
.market-item .coin-info .coin-icon.eth { background: #627EEA; }
.market-item .coin-info .coin-icon.bnb { background: #F3BA2F; }
.market-item .coin-info .coin-icon.sol { background: #9945FF; }

.market-item .coin-info .coin-name {
    font-weight: 600;
    color: var(--text-primary);
}

.market-item .coin-info .coin-symbol {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.market-item .coin-price {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.market-item .coin-change {
    font-weight: 500;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 12px;
    text-align: right;
    margin-top: 2px;
}

.market-item .coin-change.positive {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.market-item .coin-change.negative {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

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

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.transaction-icon.deposit {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.transaction-icon.withdrawal {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.transaction-icon.investment {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.transaction-icon.profit {
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
}

.transaction-icon.referral {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.transaction-icon.bonus {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
}

.transaction-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 600;
    font-size: 16px;
}

.transaction-amount.positive {
    color: #10B981;
}

.transaction-amount.negative {
    color: #EF4444;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 200, 151, 0.15);
}

.action-card i {
    font-size: 28px;
    color: var(--primary-color);
}

.action-card span {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   WALLET PAGE
   ============================================ */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.wallet-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.wallet-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.wallet-icon.main {
    background: rgba(0, 200, 151, 0.1);
    color: #00C897;
}

.wallet-icon.investment {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.wallet-icon.profit {
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
}

.wallet-icon.referral {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.wallet-icon.bonus {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.wallet-info {
    flex: 1;
}

.wallet-name {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

.wallet-balance {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.wallet-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

.wallet-status.active {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.wallet-status.inactive {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   INVESTMENTS PAGE
   ============================================ */
.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.investment-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.investment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.investment-card.completed {
    border-left-color: #10B981;
}

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

.investment-plan {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.investment-status {
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.investment-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.investment-status.completed {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
}

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

.investment-progress {
    margin-top: 12px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================
   PLANS PAGE
   ============================================ */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.plan-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.plan-header {
    padding: 24px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.plan-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.plan-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.plan-body {
    padding: 24px;
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-features li i {
    color: var(--primary-color);
    font-size: 14px;
}

.plan-footer {
    padding: 16px 24px 24px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 151, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

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

.input-group {
    display: flex;
    align-items: center;
}

.input-group .input-prefix {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
}

.input-group input {
    border-radius: 0 var(--radius) var(--radius) 0;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    padding: 15px;
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 151, 0.3);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--hover-bg);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-sm i {
    font-size: 12px;
}

.btn-sm:hover {
    transform: translateY(-1px);
}

.btn-sm.btn-info {
    background: #3B82F6;
    color: #ffffff;
}

.btn-sm.btn-info:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-sm.btn-success {
    background: #10B981;
    color: #ffffff;
}

.btn-sm.btn-success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-sm.btn-danger {
    background: #EF4444;
    color: #ffffff;
}

.btn-sm.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm.btn-warning {
    background: #F59E0B;
    color: #ffffff;
}

.btn-sm.btn-warning:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-sm.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-sm.btn-secondary:hover {
    background: var(--hover-bg);
}

.btn-success {
    background: #10B981;
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    color: #fff;
}

.btn-danger {
    background: #EF4444;
    color: #fff;
}

.btn-danger:hover {
    background: #DC2626;
    color: #fff;
}

.btn-warning {
    background: #FBBF24;
    color: #fff;
}

.btn-warning:hover {
    background: #F59E0B;
    color: #fff;
}

.btn-info {
    background: #3B82F6;
    color: #fff;
}

.btn-info:hover {
    background: #2563EB;
    color: #fff;
}

/* Button Loading State */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading .btn-spinner {
    display: inline-block !important;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    background: var(--bg-secondary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 600;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.status-badge.active,
.status-badge.completed,
.status-badge.approved,
.status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.status-badge.pending,
.status-badge.warning {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

.status-badge.rejected,
.status-badge.cancelled,
.status-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.status-badge.info {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.status-badge.secondary {
    background: rgba(107, 114, 128, 0.15);
    color: #6B7280;
}

.status-badge.low {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.status-badge.medium {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

.status-badge.high,
.status-badge.urgent {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

.profile-avatar-section {
    text-align: center;
}

.avatar-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

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

.profile-avatar-section h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-avatar-section p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   DEPOSIT / WITHDRAWAL CONTAINERS
   ============================================ */
.deposit-container,
.withdrawal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.empty-state i {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    margin-top: 2px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.toast {
    padding: 12px 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: ifSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

.toast.success { border-left: 4px solid #10B981; }
.toast.error { border-left: 4px solid #EF4444; }
.toast.warning { border-left: 4px solid #F59E0B; }
.toast.info { border-left: 4px solid #3B82F6; }

.toast .toast-icon { font-size: 20px; flex-shrink: 0; }
.toast .toast-content { flex: 1; min-width: 0; }
.toast .toast-title { font-weight: 600; color: #1a2332; font-size: 14px; }
.toast .toast-message { font-size: 13px; color: #64748b; word-break: break-word; }
.toast .toast-close { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 16px; padding: 4px; }
.toast .toast-close:hover { color: #1a2332; }

@keyframes ifSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-primary);
    margin: 3% auto;
    border-radius: var(--radius);
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
}

.modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer .btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

.modal-footer .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-footer .btn-secondary:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.modal-footer .btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 151, 0.3);
}

.modal-footer .btn-success {
    background: #10B981;
    color: #ffffff;
}

.modal-footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.modal-footer .btn-danger {
    background: #EF4444;
    color: #ffffff;
}

.modal-footer .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.modal-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
    flex-wrap: wrap;
}

.modal-action-buttons .btn {
    padding: 10px 24px;
    min-width: 120px;
    justify-content: center;
}

/* Dark theme modal button adjustments */
[data-theme="dark"] .modal-footer .btn-secondary,
[data-theme="dark"] .modal-action-buttons .btn-secondary {
    background: #2d2d4a;
    color: #ffffff;
    border-color: #3d3d5a;
}

[data-theme="dark"] .modal-footer .btn-secondary:hover,
[data-theme="dark"] .modal-action-buttons .btn-secondary:hover {
    background: #3d3d5a;
}

/* ============================================
   TICKET SYSTEM
   ============================================ */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    gap: 16px;
    flex-wrap: wrap;
    cursor: pointer;
    position: relative;
}

.ticket-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.ticket-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 200, 151, 0.08);
    transform: translateY(-2px);
}

.ticket-item:hover::before {
    background: var(--primary-color);
}

.ticket-item .ticket-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.ticket-item .ticket-info {
    flex: 1;
    min-width: 200px;
}

.ticket-item .ticket-subject {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.ticket-item .ticket-subject strong {
    color: var(--primary-color);
    margin-right: 8px;
    font-weight: 700;
}

.ticket-item .ticket-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.ticket-item .ticket-meta i {
    width: 16px;
    margin-right: 4px;
    color: var(--text-muted);
}

.ticket-item .ticket-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.ticket-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.ticket-details-grid .detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-details-grid .detail-item .label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ticket-details-grid .detail-item .value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Messages */
.messages-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 20px;
}

.messages-container::-webkit-scrollbar {
    width: 4px;
}

.messages-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.message-item {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.message-item.user-message {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
}

.message-item.admin-message {
    background: var(--bg-primary);
    border-left: 4px solid #3B82F6;
}

.message-item .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.message-item .message-author {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-item .message-author.admin {
    color: #3B82F6;
}

.message-item .message-author .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.message-item .message-author.admin .avatar {
    background: #3B82F6;
    color: #fff;
    border-color: #3B82F6;
}

.message-item .message-date {
    font-size: 12px;
    color: var(--text-muted);
}

.message-item .message-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.reply-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.reply-form textarea {
    min-height: 100px;
    resize: vertical;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ADMIN RECENT ACTIVITY
   ============================================ */
.admin-recent-activity {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-recent-activity::-webkit-scrollbar {
    width: 4px;
}

.admin-recent-activity::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 2px;
}

.admin-recent-activity::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.admin-recent-activity .activity-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 14px;
}

.admin-recent-activity .activity-item:hover {
    border-color: var(--border-color);
    background: var(--bg-primary);
    transform: translateX(2px);
}

.admin-recent-activity .activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.admin-recent-activity .activity-icon.deposit {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.admin-recent-activity .activity-icon.withdrawal {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

.admin-recent-activity .activity-icon.investment {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
}

.admin-recent-activity .activity-icon.user {
    background: rgba(139, 92, 246, 0.12);
    color: #8B5CF6;
}

.admin-recent-activity .activity-icon.kyc {
    background: rgba(251, 191, 36, 0.12);
    color: #FBBF24;
}

.admin-recent-activity .activity-icon.ticket {
    background: rgba(236, 72, 153, 0.12);
    color: #EC4899;
}

.admin-recent-activity .activity-icon.admin {
    background: rgba(0, 200, 151, 0.12);
    color: #00C897;
}

.admin-recent-activity .activity-info {
    flex: 1;
    min-width: 0;
}

.admin-recent-activity .activity-info .activity-user {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    display: block;
}

.admin-recent-activity .activity-info .activity-action {
    color: var(--text-secondary);
    font-size: 13px;
    display: block;
}

.admin-recent-activity .activity-info .activity-time {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.admin-recent-activity .activity-empty {
    text-align: center;
    padding: 30px 20px;
}

.admin-recent-activity .activity-empty i {
    font-size: 40px;
    color: var(--border-color);
    display: block;
    margin-bottom: 10px;
}

.admin-recent-activity .activity-empty p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   MOBILE SIDEBAR
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Screens */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wallet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .deposit-container,
    .withdrawal-container {
        grid-template-columns: 1fr;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .investflow-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        z-index: 9999;
        background: var(--bg-sidebar, #0f0f23);
        border-right: 1px solid var(--border-color, #2d2d4a);
        transform: translateX(-100%);
        overflow-y: auto;
        box-shadow: 0 0 30px rgba(0,0,0,0.3);
        transition: transform 0.3s ease;
    }
    
    .investflow-sidebar.open {
        transform: translateX(0);
    }
    
    .investflow-main {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 22px;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
    }
    
    .sidebar-toggle:hover {
        background: var(--bg-hover);
    }
    
    .sidebar-toggle:active {
        transform: scale(0.9);
    }
    
    .top-bar {
        padding: 6px 6px !important;
        height: 60px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .top-bar-left .page-title {
        font-size: 14px;
    }
    
    .top-bar-right {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .balance-display {
        padding: 4px 10px;
    }
    
    .balance-display .balance-label {
        font-size: 10px;
    }
    
    .balance-display .balance-amount {
        font-size: 12px;
    }
    
    .user-profile .user-name {
        display: none;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .page-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .wallet-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .action-card {
        padding: 16px;
        flex-direction: row;
        justify-content: center;
    }
    
    .action-card i {
        font-size: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .investment-grid {
        grid-template-columns: 1fr;
    }
    
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .market-item {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .market-item .coin-price {
        font-size: 14px;
    }
    
    .market-item .coin-change {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .market-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    /* Sidebar brand on mobile */
    .investflow-sidebar .sidebar-brand {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .investflow-sidebar .brand-link {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
    }
    
    .investflow-sidebar .brand-icon {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
    }
    
    .investflow-sidebar .brand-text {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        display: block;
    }
    
    /* Ticket system mobile */
    .ticket-item {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    .ticket-item .ticket-status {
        min-width: unset;
        flex-wrap: wrap;
    }
    
    .ticket-item .ticket-actions {
        margin-left: 0;
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
    }
    
    .ticket-details-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .ticket-item .ticket-meta {
        gap: 10px;
        font-size: 12px;
    }
    
    .message-item {
        padding: 12px 16px;
    }
    
    .message-item .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    /* Admin recent activity mobile */
    .admin-recent-activity .activity-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 14px;
    }
    
    .admin-recent-activity .activity-icon {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
    
    .admin-recent-activity .activity-info .activity-user {
        font-size: 13px;
    }
    
    .admin-recent-activity .activity-info .activity-action {
        font-size: 12px;
    }
    
    .admin-recent-activity .activity-info .activity-time {
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .investflow-sidebar {
        width: 260px;
    }
    
    .top-bar {
        padding: 0 12px;
        height: 56px;
    }
    
    .top-bar-right .balance-display .balance-label {
        display: none;
    }
    
    .page-content {
        padding: 12px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .stat-change {
        font-size: 12px;
        padding: 2px 8px;
    }
    
    .wallet-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .wallet-balance {
        font-size: 18px;
    }
    
    .plan-price {
        font-size: 24px;
    }
    
    .transaction-item {
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .transaction-amount {
        width: 100%;
        text-align: right;
        font-size: 14px;
    }
    
    .toast {
        min-width: auto;
        width: calc(100% - 32px);
        margin: 0 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header .btn-primary {
        margin-left: 0;
        width: 100%;
    }
    
    .market-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .market-item {
        padding: 10px 12px;
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    
    .market-item .coin-info {
        flex-direction: column;
        gap: 4px;
    }
    
    .market-item .coin-info .coin-icon {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .market-item .coin-info .coin-name {
        font-size: 13px;
    }
    
    .market-item .coin-info .coin-symbol {
        font-size: 10px;
        margin-left: 0;
    }
    
    .market-item .coin-price {
        font-size: 13px;
    }
    
    .market-item .coin-change {
        font-size: 11px;
        padding: 1px 8px;
        text-align: center;
    }
    
    .modal-footer .btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .modal-action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-action-buttons .btn {
        width: 100%;
        min-width: unset;
    }
    
    .btn-sm {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .ticket-item .ticket-subject {
        font-size: 14px;
    }
    
    .ticket-details-grid .detail-item .value {
        font-size: 14px;
    }
    
    .reply-form textarea {
        min-height: 80px;
    }
    
    .admin-recent-activity .activity-item {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .admin-recent-activity .activity-info .activity-time {
        text-align: right;
        font-size: 11px;
    }
    
    .admin-recent-activity .activity-icon {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    .market-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

	.top-bar-left .page-title {
        font-size: 12px;
    }
    
    .market-item {
        flex-direction: row;
        padding: 10px 14px;
    }
    
    .market-item .coin-info {
        flex-direction: row;
        gap: 8px;
    }
    
    .market-item .coin-info .coin-icon {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }
}

/* Hide any stray text on mobile */
@media (max-width: 768px) {
    .top-bar-left .sidebar-toggle + br,
    .top-bar-left .sidebar-toggle + .page-title + br,
    .top-bar-left br {
        display: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .investflow-sidebar,
    .top-bar,
    .quick-actions,
    .wallet-actions,
    .action-grid {
        display: none !important;
    }
    
    .investflow-main {
        margin-left: 0 !important;
    }
    
    .page-content {
        padding: 0 !important;
    }
    
    .stat-card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
    }
}

/* ============================================
   KYC DETAILS MODAL - COMPLETE STYLES
   ============================================ */

/* KYC Section */
.kyc-section {
    margin-bottom: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.kyc-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.kyc-section-header i {
    color: var(--primary-color);
    font-size: 18px;
}

.kyc-status-badge {
    margin-left: auto;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kyc-status-badge.pending {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

.kyc-status-badge.approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.kyc-status-badge.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* KYC Info Grid */
.kyc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    padding: 16px 20px;
}

.kyc-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.kyc-info-item:last-child {
    border-bottom: none;
}

.kyc-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
}

.kyc-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}

/* KYC Document Grid */
.kyc-document-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px 20px;
}

.kyc-document-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.kyc-document-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 200, 151, 0.08);
}

.kyc-document-card.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background: var(--bg-secondary);
}

.kyc-document-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.kyc-document-label i {
    color: var(--primary-color);
}

.kyc-document-link {
    display: block;
    padding: 8px;
    cursor: pointer;
}

.kyc-document-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.kyc-document-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.01);
}

.kyc-document-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: var(--text-muted);
    gap: 8px;
}

.kyc-document-empty i {
    font-size: 36px;
    opacity: 0.3;
}

.kyc-document-empty span {
    font-size: 13px;
}

.kyc-document-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.kyc-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.kyc-doc-btn-view {
    background: #3B82F6;
    color: #ffffff;
}

.kyc-doc-btn-view:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.kyc-doc-btn-download {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.kyc-doc-btn-download:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}

/* KYC Action Buttons */
.kyc-action-buttons {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    justify-content: center;
    flex-wrap: wrap;
}

.kyc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.kyc-btn-approve {
    background: #10B981;
    color: #ffffff;
}

.kyc-btn-approve:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.kyc-btn-reject {
    background: #EF4444;
    color: #ffffff;
}

.kyc-btn-reject:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* KYC Status Message */
.kyc-status-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    margin: 0 20px 20px;
    font-size: 14px;
}

.kyc-status-message.approved {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.kyc-status-message.rejected {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.kyc-status-message i {
    font-size: 20px;
}

.kyc-status-message strong {
    font-weight: 700;
}

/* ============================================
   KYC RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .kyc-info-grid {
        grid-template-columns: 1fr;
        padding: 12px 16px;
    }
    
    .kyc-info-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 6px 0;
        gap: 2px;
    }
    
    .kyc-value {
        text-align: left;
        font-size: 14px;
    }
    
    .kyc-document-grid {
        grid-template-columns: 1fr;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .kyc-document-img {
        height: 140px;
    }
    
    .kyc-action-buttons {
        flex-direction: column;
        padding: 12px 16px;
    }
    
    .kyc-btn {
        width: 100%;
        justify-content: center;
    }
    
    .kyc-document-actions {
        flex-wrap: wrap;
    }
    
    .kyc-doc-btn {
        flex: 1;
        justify-content: center;
        min-width: 80px;
    }
    
    .kyc-status-message {
        margin: 0 16px 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .kyc-section-header {
        font-size: 14px;
        padding: 10px 14px;
        flex-wrap: wrap;
    }
    
    .kyc-status-badge {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    .kyc-info-item {
        padding: 4px 0;
    }
    
    .kyc-label {
        font-size: 12px;
    }
    
    .kyc-value {
        font-size: 13px;
    }
    
    .kyc-document-img {
        height: 120px;
    }
    
    .kyc-document-empty i {
        font-size: 28px;
    }
    
    .kyc-document-empty span {
        font-size: 12px;
    }
}

/* ============================================
   NOTIFICATION STYLES
   ============================================ */

.notification-wrapper {
    position: relative;
    margin-right: 12px;
}

.notification-bell {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notification-bell .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
    margin-top: 8px;
}

.notification-dropdown.active {
    display: block;
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-dropdown .dropdown-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.notification-dropdown .dropdown-header span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.notification-dropdown .dropdown-header .mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.notification-dropdown .dropdown-header .mark-all-read:hover {
    text-decoration: underline;
}

.notification-dropdown .dropdown-body {
    max-height: 360px;
    overflow-y: auto;
    padding: 4px 0;
}

.notification-dropdown .dropdown-body::-webkit-scrollbar {
    width: 4px;
}

.notification-dropdown .dropdown-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.notification-dropdown .dropdown-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.notification-dropdown .dropdown-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: var(--bg-secondary);
}

.notification-dropdown .dropdown-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.notification-dropdown .dropdown-footer a:hover {
    text-decoration: underline;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item.unread {
    background: rgba(0, 200, 151, 0.04);
    border-left: 3px solid var(--primary-color);
}

.notification-item.unread:hover {
    background: rgba(0, 200, 151, 0.08);
}

.notification-item .notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-item .notification-icon.primary {
    background: rgba(0, 200, 151, 0.12);
    color: #00C897;
}

.notification-item .notification-icon.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.notification-item .notification-icon.warning {
    background: rgba(251, 191, 36, 0.12);
    color: #FBBF24;
}

.notification-item .notification-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

.notification-item .notification-icon.info {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
}

.notification-item .notification-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notification-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: block;
}

.notification-item .notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
}

.notification-item .notification-time {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.notification-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* Notification Page */
.notification-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.notification-page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.notification-page-header .notification-actions {
    display: flex;
    gap: 10px;
}

.notification-page-header .notification-actions .btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.notification-page-header .notification-actions .btn:hover {
    background: var(--bg-hover);
}

.notification-page-header .notification-actions .btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.notification-page-header .notification-actions .btn-primary:hover {
    opacity: 0.85;
}

.notification-list-page {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-item-page {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.notification-item-page:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.notification-item-page.unread {
    border-left: 4px solid var(--primary-color);
    background: rgba(0, 200, 151, 0.03);
}

.notification-item-page .notification-icon-page {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-item-page .notification-content-page {
    flex: 1;
}

.notification-item-page .notification-title-page {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.notification-item-page .notification-message-page {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.notification-item-page .notification-meta-page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.notification-item-page .notification-time-page {
    font-size: 12px;
    color: var(--text-muted);
}

.notification-item-page .notification-actions-page {
    display: flex;
    gap: 8px;
}

.notification-item-page .notification-actions-page .btn-sm {
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.notification-item-page .notification-actions-page .btn-read {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.notification-item-page .notification-actions-page .btn-read:hover {
    background: var(--bg-hover);
}

.notification-item-page .notification-actions-page .btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.notification-item-page .notification-actions-page .btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Admin Action Indicator */
.transaction-item.admin-action {
    border-left: 3px solid #8B5CF6;
    background: rgba(139, 92, 246, 0.02);
}

.transaction-item.admin-action:hover {
    background: rgba(139, 92, 246, 0.05);
}

.transaction-item .transaction-title .admin-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .notification-dropdown {
        width: calc(100vw - 32px);
        right: -50px;
    }
    
    .notification-item-page {
        flex-wrap: wrap;
    }
    
    .notification-item-page .notification-meta-page {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   TazzPouch admin financial pages: contrast and readability
   Scoped to the InvestFlow dashboard; does not alter layout.
   ========================================================= */
.investflow-dashboard-wrapper .page-header h1,
.investflow-dashboard-wrapper .page-header h2,
.investflow-dashboard-wrapper .page-header h3,
.investflow-dashboard-wrapper .page-header .page-title,
.investflow-dashboard-wrapper .page-header .card-title,
.investflow-dashboard-wrapper .page-header .section-title {
    color: #F4F7FF !important;
    font-weight: 750 !important;
    line-height: 1.3;
    letter-spacing: -0.25px;
}
.investflow-dashboard-wrapper .page-header h1 {
    font-size: clamp(25px, 2vw, 32px) !important;
    margin: 0 0 7px !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.investflow-dashboard-wrapper .page-header .page-subtitle {
    color: #B9C7E2 !important;
    font-size: 14px;
    line-height: 1.65;
}
.investflow-dashboard-wrapper .card-header .card-title,
.investflow-dashboard-wrapper .card .card-title,
.investflow-dashboard-wrapper .section-header h3 {
    color: #EAF0FF !important;
    font-weight: 700 !important;
}
.investflow-dashboard-wrapper .card {
    border-color: rgba(148, 170, 211, .22);
}
.investflow-dashboard-wrapper .data-table th {
    color: #DCE6FA !important;
    font-weight: 700;
}
.investflow-dashboard-wrapper .data-table td {
    color: #D5DFF2;
}
.investflow-dashboard-wrapper .data-table td strong,
.investflow-dashboard-wrapper .data-table td b {
    color: #F4F7FF;
}
.investflow-dashboard-wrapper .card label,
.investflow-dashboard-wrapper form label {
    color: #DCE6FA !important;
    font-weight: 600;
}
.investflow-dashboard-wrapper .card input,
.investflow-dashboard-wrapper .card select,
.investflow-dashboard-wrapper .card textarea,
.investflow-dashboard-wrapper form input,
.investflow-dashboard-wrapper form select,
.investflow-dashboard-wrapper form textarea {
    color: #17243E !important;
    background: #F8FAFF !important;
    border: 1px solid #B8C5DB !important;
}
.investflow-dashboard-wrapper .card input::placeholder,
.investflow-dashboard-wrapper .card textarea::placeholder,
.investflow-dashboard-wrapper form input::placeholder,
.investflow-dashboard-wrapper form textarea::placeholder {
    color: #64748B !important;
}
.investflow-dashboard-wrapper .card input:focus,
.investflow-dashboard-wrapper .card select:focus,
.investflow-dashboard-wrapper .card textarea:focus,
.investflow-dashboard-wrapper form input:focus,
.investflow-dashboard-wrapper form select:focus,
.investflow-dashboard-wrapper form textarea:focus {
    outline: 2px solid rgba(0, 200, 151, .45);
    outline-offset: 1px;
    border-color: #00C897 !important;
}
.investflow-dashboard-wrapper .card .btn,
.investflow-dashboard-wrapper form .btn {
    font-weight: 700;
}


/* TazzPouch administrator header: keep controls aligned on one row. */
.tazz-admin-welcome{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 22px;padding:18px 22px;border:1px solid var(--border-color,rgba(148,163,184,.2));border-radius:16px;background:var(--bg-primary,#fff)}
.tazz-admin-welcome-copy h2{margin:0 0 5px;color:var(--text-primary);font-size:22px;font-weight:700;line-height:1.25}
.tazz-admin-welcome-copy p{margin:0;color:var(--text-secondary);font-size:13px}
.tazz-admin-welcome-date{color:var(--text-secondary);font-size:12px;white-space:nowrap}
@media(max-width:767px){
 .investflow-main .top-bar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:58px;padding:10px 12px!important}
 .investflow-main .top-bar .top-bar-left{display:flex!important;flex:1 1 auto!important;min-width:0!important;align-items:center!important;gap:8px!important}
 .investflow-main .top-bar .page-title{display:block!important;min-width:0!important;margin:0!important;font-size:14px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .investflow-main .top-bar .top-bar-right{display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;width:auto!important;margin:0!important}
 .investflow-main .top-bar .notification-wrapper,.investflow-main .top-bar .user-profile{flex:0 0 auto!important;margin:0!important}
 .investflow-main .top-bar .user-name{display:none!important}
 .investflow-main .top-bar .user-avatar{width:30px!important;height:30px!important;min-width:30px!important;object-fit:cover}
 .tazz-admin-welcome{align-items:flex-start;flex-direction:column;gap:8px;margin:14px 12px 18px;padding:16px}
 .tazz-admin-welcome-copy h2{font-size:20px}
 .tazz-admin-welcome-date{white-space:normal}
}
