/* ============================================================
   WestBridge Trades - Master Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #090c10;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; }
::selection { background: rgba(0,245,149,0.3); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #090c10; }
::-webkit-scrollbar-thumb { background: rgba(0,245,149,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,245,149,0.5); }

/* --- Background Effects --- */
body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,245,149,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(24,96,107,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0,245,149,0.04) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: #fff; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
.gradient-text {
    background: linear-gradient(135deg, #00F595, #18606b, #00c97a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #00F595, #18606b);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,245,149,0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,245,149,0.4);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    border-color: #00F595;
    background: rgba(0,245,149,0.08);
}
.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16,185,129,0.3); }
.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239,68,68,0.3); }
.btn-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
}
.btn-outline:hover { border-color: #00F595; color: #fff; background: rgba(0,245,149,0.08); }
.btn-icon {
    width: 40px; height: 40px; padding: 0;
    border-radius: 10px; font-size: 16px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    outline: none;
}
.form-control:focus {
    border-color: #00F595;
    background: rgba(0,245,149,0.06);
    box-shadow: 0 0 0 3px rgba(0,245,149,0.12);
}
.form-control::placeholder { color: rgba(255,255,255,0.2); }
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
select.form-control option { background: #0f1923; color: #fff; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 4px; }
.form-error { font-size: 12px; color: #f87171; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 26px;
    transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #00F595, #18606b);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* Checkbox & Radio */
.checkbox-group, .radio-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.checkbox-label input, .radio-label input {
    width: 18px; height: 18px;
    accent-color: #00F595;
    cursor: pointer;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: rgba(15,25,35,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,245,149,0.1);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}
.card:hover { border-color: rgba(0,245,149,0.2); }
.card-header { margin-bottom: 20px; }
.card-header h3 { font-size: 18px; font-weight: 700; }
.card-header p { font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* Glass Card */
.glass-card {
    background: rgba(15,25,35,0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 32px;
}

/* Stat Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: rgba(15,25,35,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,245,149,0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: rgba(0,245,149,0.25);
    transform: translateY(-3px);
}
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.stat-card .stat-icon.blue { background: rgba(24,96,107,0.12); color: #18606b; }
.stat-card .stat-icon.purple { background: rgba(0,245,149,0.12); color: #00F595; }
.stat-card .stat-icon.green { background: rgba(52,211,153,0.12); color: #34d399; }
.stat-card .stat-icon.orange { background: rgba(251,191,36,0.12); color: #fbbf24; }
.stat-card .stat-icon.red { background: rgba(248,113,113,0.12); color: #f87171; }
.stat-card .stat-icon.cyan { background: rgba(6,182,212,0.12); color: #06b6d4; }
.stat-card .stat-label { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 6px; }
.stat-card .stat-value { font-size: 26px; font-weight: 800; color: #fff; }
.stat-card .stat-change { font-size: 12px; margin-top: 6px; }
.stat-card .stat-change.up { color: #34d399; }
.stat-card .stat-change.down { color: #f87171; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-active, .badge-completed, .badge-confirmed { background: rgba(52,211,153,0.12); color: #34d399; }
.badge-pending { background: rgba(251,191,36,0.12); color: #fbbf24; }
.badge-processing { background: rgba(96,165,250,0.12); color: #60a5fa; }
.badge-failed, .badge-cancelled { background: rgba(248,113,113,0.12); color: #f87171; }
.badge-deposit { background: rgba(52,211,153,0.12); color: #34d399; }
.badge-withdrawal { background: rgba(248,113,113,0.12); color: #f87171; }
.badge-investment { background: rgba(0,245,149,0.12); color: #00c97a; }
.badge-earning { background: rgba(251,191,36,0.12); color: #fbbf24; }
.badge-referral { background: rgba(24,96,107,0.12); color: #60a5fa; }
.badge-bonus { background: rgba(168,85,247,0.12); color: #c084fc; }
.badge-info { background: rgba(96,165,250,0.12); color: #60a5fa; }
.badge-btc { background: rgba(247,147,26,0.12); color: #f7931a; }
.badge-eth { background: rgba(98,126,234,0.12); color: #627eea; }
.badge-usdt { background: rgba(38,161,123,0.12); color: #26a17b; }

/* ============================================================
   TABLES
   ============================================================ */
.table-card {
    background: rgba(15,25,35,0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,245,149,0.1);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
}
.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.table-card-header h3 { font-size: 16px; font-weight: 700; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}
.data-table td {
    padding: 14px 12px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(0,245,149,0.03); }
.data-table .user-cell { display: flex; align-items: center; gap: 10px; }
.data-table .user-cell .avatar {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #00F595, #18606b);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.2);
    font-size: 14px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination a {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
}
.pagination a:hover {
    border-color: #00F595;
    color: #fff;
    background: rgba(0,245,149,0.1);
}
.pagination .current {
    background: linear-gradient(135deg, #00F595, #18606b);
    color: #fff;
    border: none;
}
.pagination .disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-msg {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: flashIn 0.3s ease;
}
.flash-success {
    background: rgba(52,199,89,0.1);
    border: 1px solid rgba(52,199,89,0.2);
    color: #5dd879;
}
.flash-error {
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.2);
    color: #ff6b6b;
}
.flash-info {
    background: rgba(96,165,250,0.1);
    border: 1px solid rgba(96,165,250,0.2);
    color: #60a5fa;
}
.flash-warning {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    color: #fbbf24;
}
@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-bar .filter-group { flex: 1; min-width: 150px; }
.filter-bar .filter-group label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #0f1923;
    border: 1px solid rgba(0,245,149,0.15);
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-close {
    background: none; border: none;
    color: rgba(255,255,255,0.4);
    font-size: 20px; cursor: pointer;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}
.auth-card {
    background: rgba(15,25,35,0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0,245,149,0.12);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}
.auth-logo .logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #00F595, #18606b);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
}
.auth-logo h1 { font-size: 22px; font-weight: 800; }
.auth-logo h1 span {
    background: linear-gradient(135deg, #00F595, #18606b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.auth-subtitle { font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 32px; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form .form-control {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
}
.auth-form .btn-primary {
    margin-top: 8px;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: rgba(255,255,255,0.2);
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}
.auth-footer a { color: #00F595; font-weight: 600; }
.auth-footer a:hover { color: #00c97a; }
.auth-link { color: #00F595; font-weight: 500; font-size: 13px; }
.auth-link:hover { color: #00c97a; }
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.auth-errors {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.auth-errors ul { list-style: none; }
.auth-errors li {
    font-size: 13px;
    color: #f87171;
    padding: 2px 0;
}
.auth-errors li::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 12px;
}

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   SEARCH INPUT
   ============================================================ */
.search-input {
    position: relative;
}
.search-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.25);
    font-size: 14px;
}
.search-input input {
    padding-left: 40px;
}

/* ============================================================
   COPY BUTTON
   ============================================================ */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0,245,149,0.12);
    border: 1px solid rgba(0,245,149,0.2);
    border-radius: 8px;
    color: #00c97a;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover {
    background: rgba(0,245,149,0.2);
    color: #fff;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i {
    font-size: 48px;
    color: rgba(255,255,255,0.1);
    margin-bottom: 16px;
}
.empty-state h4 { font-size: 18px; color: rgba(255,255,255,0.3); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: rgba(255,255,255,0.2); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-green { color: #34d399; }
.text-red { color: #f87171; }
.text-yellow { color: #fbbf24; }
.text-blue { color: #60a5fa; }
.text-purple { color: #00c97a; }
.text-muted { color: rgba(255,255,255,0.35); }
.text-white { color: #fff; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'Fira Code', monospace; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-fade-in { animation: fadeIn 0.5s ease; }
.animate-fade-up { animation: fadeInUp 0.5s ease; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Reveal on scroll */
.reveal, .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active, .animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #00F595;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }

/* ============================================================
   TOOLTIPS
   ============================================================ */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: #0f1923;
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 200;
    margin-bottom: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .auth-card { padding: 28px 20px; }
    h1 { font-size: 1.6rem; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
    .card { padding: 20px; }
    .filter-bar { flex-direction: column; }
    .filter-bar .filter-group { min-width: 100%; }
}
@media (max-width: 480px) {
    .auth-card { padding: 24px 16px; }
    .btn { padding: 10px 20px; font-size: 13px; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    body { background: #fff; color: #000; }
    .sidebar, .topbar, .btn, .filter-bar, .pagination, .mobile-toggle { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .card, .stat-card, .table-card { border: 1px solid #ddd; background: #fff; box-shadow: none; }
    .data-table th { color: #000; }
    .data-table td { color: #333; border-bottom-color: #ddd; }
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.wa-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    animation: waPulse 2s ease-in-out infinite;
}
.wa-float:hover { animation: none; }
.wa-float .wa-icon {
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s;
    position: relative;
}
.wa-float:hover .wa-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.wa-float .wa-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.4);
    animation: waRing 2s ease-out infinite;
}
.wa-float .wa-label {
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
    pointer-events: none;
}
.wa-float:hover .wa-label {
    opacity: 1;
    transform: translateX(0);
}
@keyframes waPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes waRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 768px) {
    .wa-float { bottom: 20px; left: 20px; }
    .wa-float .wa-icon { width: 50px; height: 50px; font-size: 24px; }
    .wa-float .wa-label { display: none; }
}
