/* Cricket Exchange - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --primary: #00d4aa;
    --primary-dark: #00a884;
    --primary-glow: rgba(0, 212, 170, 0.3);
    --secondary: #1a1f2e;
    --bg-dark: #0d111c;
    --bg-card: #141928;
    --bg-card2: #1c2233;
    --border: rgba(255,255,255,0.08);
    --text: #e8eaf0;
    --text-muted: #7c8db0;
    --text-dim: #4a5568;
    --danger: #ff4d6d;
    --danger-dark: #c9294a;
    --warning: #ffa726;
    --success: #00e676;
    --info: #29b6f6;
    --gold: #ffd700;
    --admin-accent: #7c3aed;
    --subadmin-accent: #0ea5e9;
    --user-accent: #00d4aa;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(124,58,237,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(0,212,170,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-bg-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
}

.login-bg-particles::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,170,0.06) 0%, transparent 70%);
    top: -200px; right: -200px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.login-bg-particles::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow), var(--shadow-glow);
}

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

.login-logo .logo-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--admin-accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    box-shadow: 0 8px 32px rgba(0,212,170,0.3);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(0,212,170,0.3); }
    50% { box-shadow: 0 8px 48px rgba(0,212,170,0.5); }
}

.login-logo h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--text);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(28, 34, 51, 0.8);
}

.form-control::placeholder {
    color: var(--text-dim);
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.input-wrapper .form-control {
    padding-left: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    box-shadow: 0 4px 20px rgba(0,212,170,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,212,170,0.4);
}

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

.btn-full { width: 100%; }

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #e65100);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00a04d);
    color: #000;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-xs {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #0277bd);
    color: white;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

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

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--admin-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-logo .logo-text h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-logo .logo-text span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-user {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.avatar-admin { background: linear-gradient(135deg, var(--admin-accent), #4f46e5); color: white; }
.avatar-subadmin { background: linear-gradient(135deg, var(--subadmin-accent), #0369a1); color: white; }
.avatar-user { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

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

.user-info .role-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 2px;
    display: inline-block;
}

.role-master { background: rgba(124,58,237,0.2); color: #a78bfa; }
.role-subadmin { background: rgba(14,165,233,0.2); color: #38bdf8; }
.role-user { background: rgba(0,212,170,0.2); color: var(--primary); }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.nav-section-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px 4px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    margin: 2px 8px;
    border-radius: 10px;
}

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

.nav-item.active {
    background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,212,170,0.05));
    color: var(--primary);
    border: 1px solid rgba(0,212,170,0.2);
}

.nav-item .nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.topbar-title p {
    font-size: 13px;
    color: var(--text-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 50px;
}

.wallet-display .wallet-icon {
    font-size: 18px;
}

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

.wallet-display .label {
    font-size: 12px;
    color: var(--text-muted);
}

.page-content {
    padding: 28px;
    flex: 1;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    border-radius: 50%;
    opacity: 0.08;
    transform: translate(30px, -30px);
}

.stat-card.green::before { background: var(--primary); }
.stat-card.purple::before { background: var(--admin-accent); }
.stat-card.blue::before { background: var(--info); }
.stat-card.orange::before { background: var(--warning); }
.stat-card.red::before { background: var(--danger); }

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.icon-green { background: rgba(0,212,170,0.15); }
.icon-purple { background: rgba(124,58,237,0.15); }
.icon-blue { background: rgba(41,182,246,0.15); }
.icon-orange { background: rgba(255,167,38,0.15); }
.icon-red { background: rgba(255,77,109,0.15); }
.icon-gold { background: rgba(255,215,0,0.15); }

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-change {
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.change-up { color: var(--success); }
.change-down { color: var(--danger); }

/* ===== TABLES ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

.table-wrapper {
    overflow-x: auto;
}

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

thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-card2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr:last-child td { border-bottom: none; }

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-active, .badge-approved { background: rgba(0,212,170,0.15); color: var(--primary); }
.badge-inactive { background: rgba(100,100,100,0.2); color: #888; }
.badge-hold { background: rgba(255,167,38,0.15); color: var(--warning); }
.badge-pending { background: rgba(255,167,38,0.15); color: var(--warning); }
.badge-rejected { background: rgba(255,77,109,0.15); color: var(--danger); }

.badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px; height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--bg-card2);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover { background: var(--danger); color: white; }

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ===== ALERTS / NOTIFICATIONS ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success { background: rgba(0,230,118,0.1); border-color: rgba(0,230,118,0.3); color: var(--success); }
.alert-error { background: rgba(255,77,109,0.1); border-color: rgba(255,77,109,0.3); color: var(--danger); }
.alert-warning { background: rgba(255,167,38,0.1); border-color: rgba(255,167,38,0.3); color: var(--warning); }
.alert-info { background: rgba(41,182,246,0.1); border-color: rgba(41,182,246,0.3); color: var(--info); }

/* ===== MISC UTILITIES ===== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.fw-700 { font-weight: 700; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Unique Code badge */
.code-badge {
    font-family: 'Courier New', monospace;
    background: var(--bg-dark);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Copy link button */
.copy-link-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-link-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Transaction list item */
.txn-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.txn-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.txn-credit { background: rgba(0,212,170,0.15); }
.txn-debit { background: rgba(255,77,109,0.15); }

.txn-amount-credit { color: var(--success); font-weight: 700; }
.txn-amount-debit { color: var(--danger); font-weight: 700; }

/* Wallet card */
.wallet-card {
    background: linear-gradient(135deg, #1a1f2e 0%, #0d111c 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0,212,170,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.wallet-amount {
    font-size: 42px;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
    color: var(--primary);
    letter-spacing: 2px;
}

/* Upload area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.upload-area input[type="file"] {
    display: none;
}

/* Loading spinner */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .page-content { padding: 16px; }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p { font-size: 15px; }

/* Search box */
.search-box {
    position: relative;
    flex: 1;
    max-width: 280px;
}

.search-box input {
    width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 9px 16px 9px 38px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

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

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card2);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ==========================================================
   FAST LIVE LINE & CRICKET EXCHANGE MARKET STYLES
   ========================================================== */
:root {
    --back-bg: #72bbef;
    --back-border: #4da3e0;
    --back-text: #0b2238;
    --lay-bg: #faa9ba;
    --lay-border: #f07b93;
    --lay-text: #420815;
    --font-odds: 'Rajdhani', sans-serif;
}

.btn-back, .btn-lay {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 80px; padding: 8px 14px; border-radius: 8px; font-family: var(--font-odds); cursor: pointer;
    transition: all 0.2s ease; border: 1px solid transparent; user-select: none;
}
.btn-back { background: var(--back-bg); border-color: var(--back-border); color: var(--back-text); }
.btn-back:hover { filter: brightness(1.1); transform: scale(1.03); }
.btn-lay { background: var(--lay-bg); border-color: var(--lay-border); color: var(--lay-text); }
.btn-lay:hover { filter: brightness(1.1); transform: scale(1.03); }

.rate-val { font-size: 18px; font-weight: 800; line-height: 1; }
.vol-val { font-size: 10px; font-weight: 700; opacity: 0.8; margin-top: 3px; }

/* Rate Flashing animations */
.flash-up { animation: flash-green 0.8s ease-in-out; }
.flash-down { animation: flash-red 0.8s ease-in-out; }
@keyframes flash-green { 0%{background:#00e676;color:#000} 100%{background:var(--back-bg)} }
@keyframes flash-red { 0%{background:#ff4d6d;color:#fff} 100%{background:var(--lay-bg)} }

/* Ball badges */
.ball-badge {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-odds); font-weight: 800; font-size: 13px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.ball-dot { background: #222a3d; color: #8c9cb8; }
.ball-single { background: #2a344d; color: #ffffff; }
.ball-double { background: #1e3a47; color: #00e676; border-color: rgba(0,230,118,0.3); }
.ball-four { background: #0077b6; color: #ffffff; border-color: #48cae4; box-shadow: 0 0 10px rgba(0,180,216,0.5); }
.ball-six { background: #7209b7; color: #ffffff; border-color: #b5179e; box-shadow: 0 0 12px rgba(181,23,158,0.6); }
.ball-wicket { background: #d90429; color: #ffffff; border-color: #ff4d6d; }
.ball-wide, .ball-noball { background: #d48b00; color: #ffffff; border-color: #ffd166; font-size: 11px; }

