/* ============================================================
   Coaching Platform Pro - Design System
   Mobile-App-Like UI | Light Professional Theme
   ============================================================ */

/* --- Google Font: Inter loaded via <link> tag in <head> for optimal performance --- */

/* --- CSS Variables --- */
:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --primary-50: #EEF2FF;
    --primary-100: #E0E7FF;
    --secondary: #06B6D4;
    --secondary-light: #67E8F9;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    --bg-body: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-sidebar: #EEF2FF;
    --bg-input: #F8FAFC;

    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;

    --border-color: #E2E8F0;
    --border-light: #F1F5F9;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(79,70,229,0.1);
    --shadow-xl: 0 20px 40px rgba(79,70,229,0.12);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --header-height: 64px;
    --sidebar-width: 260px;
    --bottom-nav-height: 72px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Noto Sans', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
.text-muted { color: var(--text-secondary); }
.text-small { font-size: 0.85rem; }

/* ============================================================
   LAYOUT SYSTEM
   ============================================================ */

/* --- App Header --- */
.app-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center;
    padding: 0 16px;
    transition: var(--transition);
}

.header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-logo img { height: 36px; width: auto; }
.header-logo .logo-text {
    font-size: 1.1rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-center { flex: 1; display: flex; justify-content: center; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.header-btn {
    width: 40px; height: 40px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer;
    color: var(--text-secondary); position: relative;
    transition: var(--transition);
}
.header-btn:hover { background: var(--primary-50); color: var(--primary); }

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

.header-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; border: 2px solid var(--primary-50);
    overflow: hidden;
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- Sidebar (Desktop) --- */
.app-sidebar {
    position: fixed; top: var(--header-height); left: 0; bottom: 0;
    width: var(--sidebar-width); background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    overflow-y: auto; z-index: 90;
    padding: 16px 0;
    transform: translateX(-100%);
    transition: var(--transition);
}
.app-sidebar.active { transform: translateX(0); }

.sidebar-section { padding: 0 12px; margin-bottom: 24px; }
.sidebar-label {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted);
    padding: 0 12px; margin-bottom: 8px;
}

.sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: var(--transition);
}
.sidebar-nav a:hover { background: var(--primary-50); color: var(--primary); }
.sidebar-nav a.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; box-shadow: var(--shadow-lg);
}
.sidebar-nav a .nav-icon { width: 20px; text-align: center; font-size: 1.1rem; }

.sidebar-user {
    padding: 16px; margin: 0 12px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-50), #f0f0ff);
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.sidebar-user-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1rem;
    overflow: hidden; flex-shrink: 0;
}
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.75rem; color: var(--text-muted); }

/* --- Bottom Navigation (Mobile) --- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    height: var(--bottom-nav-height);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: 0.65rem; font-weight: 500;
    transition: var(--transition); min-width: 56px;
}
.bottom-nav a .nav-icon { font-size: 1.3rem; }
.bottom-nav a:hover, .bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active .nav-icon { transform: scale(1.15); }

/* --- Main Content --- */
.app-main {
    margin-top: var(--header-height);
    padding: 20px 16px;
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
    min-height: calc(100vh - var(--header-height));
    max-width: 1200px;
    margin-left: auto; margin-right: auto;
}

/* --- Overlay --- */
.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    z-index: 85; display: none;
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Cards --- */
.card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); border: 1px solid var(--border-light);
    overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 20px; }
.card-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 1rem; font-weight: 600; }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border-color); background: var(--bg-input); }

/* --- Stat Cards --- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 16px; box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    display: flex; align-items: flex-start; gap: 12px;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon {
    width: 44px; height: 44px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.stat-icon.primary { background: var(--primary-50); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.info { background: var(--info-light); color: var(--info); }
.stat-icon.danger { background: var(--danger-light); color: var(--danger); }
.stat-info { min-width: 0; }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm); font-size: 0.9rem;
    font-weight: 600; border: none; cursor: pointer; font-family: inherit;
    transition: var(--transition); white-space: nowrap; text-decoration: none;
    min-height: 44px;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-xl); color: white; }
.btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--primary-50); border-color: var(--primary-light); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; min-height: 34px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; min-height: 52px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--text-primary); }
.form-control {
    width: 100%; padding: 12px 14px; border: 2px solid var(--border-color);
    border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit;
    background: var(--bg-input); color: var(--text-primary);
    transition: var(--transition); min-height: 44px;
}
.form-control:focus {
    outline: none; border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
    background: white;
}
.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { color: var(--danger); font-size: 0.8rem; margin-top: 4px; display: block; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.input-icon-wrap {
    position: relative;
}
.input-icon-wrap .form-control { padding-left: 42px; }
.input-icon-wrap .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 1rem;
}

/* --- Badges --- */
.badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: var(--radius-full); font-size: 0.72rem;
    font-weight: 600; letter-spacing: 0.02em;
}
.badge-master { background: linear-gradient(135deg, #7C3AED, #A78BFA); color: white; }
.badge-admin { background: var(--primary-50); color: var(--primary); }
.badge-coach { background: var(--success-light); color: #047857; }
.badge-coachee { background: var(--info-light); color: #1D4ED8; }
.badge-pending { background: var(--warning-light); color: #B45309; }
.badge-active { background: var(--success-light); color: #047857; }
.badge-inactive { background: var(--danger-light); color: var(--danger); }

/* --- Avatars --- */
.avatar {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.5rem; }

/* --- Tables --- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 0.88rem; }
.table th { font-weight: 600; color: var(--text-secondary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-input); }
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: var(--primary-50); }

/* --- Alerts / Flash Messages --- */
.alert {
    padding: 14px 18px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
    animation: slideDown 0.3s ease;
}
.alert-success { background: var(--success-light); color: #047857; border-left: 4px solid var(--success); }
.alert-error { background: var(--danger-light); color: #B91C1C; border-left: 4px solid var(--danger); }
.alert-warning { background: var(--warning-light); color: #B45309; border-left: 4px solid var(--warning); }
.alert-info { background: var(--info-light); color: #1D4ED8; border-left: 4px solid var(--info); }

/* --- List Items --- */
.list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.list-item:hover { background: var(--primary-50); }
.list-item:last-child { border-bottom: none; }
.list-item-info { flex: 1; min-width: 0; }
.list-item-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-subtitle { font-size: 0.8rem; color: var(--text-secondary); }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; }
.empty-state-text { color: var(--text-muted); font-size: 0.95rem; }

/* --- Page Header --- */
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 1.4rem; margin-bottom: 4px; }
.page-header p { color: var(--text-secondary); font-size: 0.9rem; }

/* --- Dropdown --- */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 210px; background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color); padding: 6px;
    z-index: 200; display: none;
    animation: slideDown 0.18s ease;
}
.dropdown-menu.show { display: block; }
.dropdown-profile-header {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 5px;
}
.dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition); cursor: pointer;
    text-decoration: none;
}
.dropdown-item svg { opacity: 0.6; flex-shrink: 0; }
.dropdown-item:hover { background: var(--primary-50); color: var(--primary); }
.dropdown-item:hover svg { opacity: 1; }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 5px 0; }

/* --- Modal --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 1000; display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl); width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto;
    animation: scaleIn 0.3s ease;
}
.modal-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 8px; }

/* ============================================================
   AUTH LAYOUT
   ============================================================ */
.auth-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #C7D2FE 100%);
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl); overflow: hidden;
}
.auth-header {
    text-align: center; padding: 32px 24px 16px;
}
.auth-header .logo-icon {
    width: 64px; height: 64px; margin: 0 auto 12px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white; box-shadow: var(--shadow-lg);
}
.auth-header h1 { font-size: 1.3rem; margin-bottom: 4px; }
.auth-header p { color: var(--text-secondary); font-size: 0.88rem; }
.auth-body { padding: 8px 24px 24px; }
.auth-footer { text-align: center; padding: 0 24px 24px; font-size: 0.88rem; color: var(--text-secondary); }
.auth-footer a { font-weight: 600; }

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

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-fade { animation: fadeIn 0.4s ease; }

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

/* Tablet */
@media (min-width: 640px) {
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
    .app-main { padding: 24px; padding-bottom: calc(var(--bottom-nav-height) + 24px); }
}

/* Desktop */
@media (min-width: 1024px) {
    .app-sidebar { transform: translateX(0); }
    .app-main {
        margin-left: var(--sidebar-width);
        padding-bottom: 24px;
        max-width: calc(1200px + var(--sidebar-width));
    }
    .bottom-nav { display: none; }
    .sidebar-overlay { display: none !important; }
    .menu-toggle { display: none; }
    .header-logo { padding-left: 8px; width: calc(var(--sidebar-width) - 16px); }
}

/* Wide */
@media (min-width: 1280px) {
    .app-main { padding: 28px 32px; }
}

/* Small Mobile */
@media (max-width: 360px) {
    .stat-grid { grid-template-columns: 1fr; }
    .auth-card { border-radius: var(--radius); }
    .auth-header { padding: 24px 16px 12px; }
    .auth-body { padding: 8px 16px 20px; }
}

/* ============================================================
   Financial Components
   ============================================================ */

/* Plan Cards */
.plan-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-color); padding: 20px;
    position: relative; transition: var(--transition);
}
.plan-card:hover { border-color: var(--primary-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.plan-card.popular { border-color: var(--primary); box-shadow: 0 4px 24px rgba(99,102,241,0.15); }
.popular-badge {
    position: absolute; top: -10px; right: 16px;
    background: var(--primary); color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}
.plan-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.plan-price { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.plan-price span { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.plan-features { list-style: none; padding: 0; margin: 8px 0; }
.plan-features li {
    padding: 5px 0; font-size: 0.82rem; color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-alt);
}
.plan-features li:before { content: '✓ '; color: var(--success); font-weight: 700; }
.plan-features li:last-child { border-bottom: none; }

/* Payment Method Cards */
.payment-method-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border: 1.5px solid var(--border-color);
    border-radius: var(--radius); cursor: pointer; margin-bottom: 8px;
    transition: var(--transition);
}
.payment-method-card:hover { border-color: var(--primary-300); background: var(--primary-50); }
.payment-method-card.selected { border-color: var(--primary); background: var(--primary-50); }
.pm-logo { font-size: 1.5rem; flex-shrink: 0; width: 36px; text-align: center; }
.pm-info { flex: 1; }
.pm-name { font-weight: 600; font-size: 0.9rem; }
.pm-desc { font-size: 0.78rem; color: var(--text-muted); }
.pm-check { display: none; color: var(--primary); font-weight: 700; font-size: 1.2rem; }
.payment-method-card.selected .pm-check { display: block; }

/* Bank Info Display */
.bank-info-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--bg-alt);
}
.bank-info-item:last-child { border-bottom: none; }
.bank-info-item .label { font-size: 0.82rem; color: var(--text-muted); }
.bank-info-item .value { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.copy-btn {
    background: var(--bg-alt); border: 1px solid var(--border-color);
    padding: 2px 8px; border-radius: 4px; cursor: pointer;
    font-size: 0.72rem; transition: var(--transition);
}
.copy-btn:hover { background: var(--primary-50); border-color: var(--primary); }
.qr-container { background: var(--bg-card); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border-color); }

/* Button utilities */
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-outline {
    background: transparent; border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.w-100 { width: 100%; }

/* Wallet History */
.wallet-history-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--bg-alt);
    transition: var(--transition);
}
.wallet-history-item:hover { background: var(--bg-alt); }
.wallet-history-item:last-child { border-bottom: none; }
.wh-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.wh-icon.wh-credit { background: rgba(16,185,129,0.12); color: var(--success); }
.wh-icon.wh-debit { background: rgba(239,68,68,0.12); color: var(--danger); }
.wh-info { flex: 1; min-width: 0; }
.wh-desc { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-date { font-size: 0.72rem; color: var(--text-muted); }
.wh-amount { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.wh-amount.wh-credit { color: var(--success); }
.wh-amount.wh-debit { color: var(--danger); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px; font-size: 0.88rem; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); color: #92400e; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #065f46; }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #991b1b; }

/* Progress Bar */
.progress-bar {
    width: 100%; height: 8px; background: var(--bg-alt);
    border-radius: 4px; overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-400));
    transition: width 0.6s ease;
}

/* Chart canvas */
#revenueChart { width: 100% !important; }

/* Responsive finance */
@media (max-width: 768px) {
    .stat-grid { grid-template-columns: 1fr 1fr !important; }
}

