@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-base: #020617;
    --bg-surface: rgba(15, 23, 42, 0.7);
    --bg-surface-hover: rgba(30, 41, 59, 0.8);
    --bg-card: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #10b981;
    --accent-hover: #059669;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --border-color: rgba(255, 255, 255, 0.08);
    --odds-bg: #1e293b;
    
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.text-accent { color: var(--accent-color); }
.text-danger { color: var(--danger-color); }
.text-secondary { color: var(--text-secondary); }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }

.glass {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
}

.scroll-hidden::-webkit-scrollbar {
    width: 6px;
}
.scroll-hidden::-webkit-scrollbar-track {
    background: transparent;
}
.scroll-hidden::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.scroll-hidden::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    border: none;
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
    background: var(--bg-surface-hover);
}
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 6px;
}
.btn-large {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-deposit {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: #000;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.btn-deposit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}
.btn-block {
    width: 100%;
}

/* Header */
.navbar {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 100;
    border-bottom: var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-center {
    flex: 1;
    margin: 0 2rem;
    max-width: 600px;
    overflow: hidden;
}

.marquee-container {
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-size: 0.85rem;
    font-weight: 500;
}
.marquee-content span {
    margin-right: 2.5rem;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0,0,0,0.3);
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.3s;
}
.user-profile:hover {
    background: rgba(0,0,0,0.5);
}

.balance {
    font-weight: 600;
    font-size: 0.95rem;
}
.currency {
    color: var(--text-secondary);
    margin-right: 2px;
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--info-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Main Layout */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    padding: 1.5rem;
    border-right: var(--glass-border);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    margin-bottom: 0.3rem;
    position: relative;
}
.nav-list li.active a, .nav-list li a:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    transform: translateX(5px);
}
.nav-list li.active a {
    border-left: 3px solid var(--accent-color);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    border-radius: 0 12px 12px 0;
}
.nav-list i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}
.live-small {
    position: absolute;
    right: 10px;
    background: var(--danger-color);
    font-size: 0.6rem;
    padding: 2px 5px;
    animation: pulse 2s infinite;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.feed-header h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: capitalize;
}

.tabs {
    display: flex;
    background: rgba(0,0,0,0.3);
    padding: 0.4rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}
.tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.tab.active {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.badge {
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: super;
}
.live-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Match Cards */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.match-card {
    background: linear-gradient(145deg, var(--bg-card), #0b1121);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease forwards;
}

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

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.live-indicator {
    color: var(--danger-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.dot {
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: pulse 1s infinite;
    box-shadow: 0 0 8px var(--danger-color);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 35%;
}

.team-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid rgba(255,255,255,0.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.team-name {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}
.team-score {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.score-empty {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
}

.vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    font-style: italic;
}

.odds-container {
    display: flex;
    gap: 1rem;
}

.odd-btn {
    flex: 1;
    background: var(--odds-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.02);
}

.odd-btn:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.odd-btn.selected {
    background: var(--info-color);
    border-color: var(--info-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.odd-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}
.odd-btn.selected .odd-label {
    color: rgba(255,255,255,0.8);
}

.odd-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Flash Animations */
.flash-green { animation: bgGreenFlash 0.6s ease; }
.flash-red { animation: bgRedFlash 0.6s ease; }

@keyframes bgGreenFlash {
    0% { background-color: var(--accent-color); color: white; border-color: var(--accent-color); transform: scale(1.02); }
    100% { background-color: var(--odds-bg); }
}
@keyframes bgRedFlash {
    0% { background-color: var(--danger-color); color: white; border-color: var(--danger-color); transform: scale(0.98); }
    100% { background-color: var(--odds-bg); }
}

/* Right Panel */
.right-panel {
    width: 320px;
    display: flex;
    flex-direction: column;
    border-left: var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
}

.panel-header {
    padding: 1.5rem;
    border-bottom: var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 { font-weight: 600; }

.slip-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.empty-slip {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    gap: 1rem;
    opacity: 0.5;
}

.slip-item {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.slip-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.remove-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}
.remove-btn:hover { color: var(--danger-color); }
.slip-match {
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
.slip-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.03);
    padding: 0.5rem;
    border-radius: 8px;
}
.selection-name { color: var(--info-color); font-weight: 600; font-size: 0.9rem; }
.selection-odd { font-weight: 700; }

.slip-footer {
    padding: 1.5rem;
    border-top: var(--glass-border);
    background: rgba(0,0,0,0.3);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.stake-input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.6rem;
    border-radius: 8px;
    width: 120px;
    text-align: right;
    font-family: inherit;
    font-weight: 700;
}
.stake-input:focus { outline: none; border-color: var(--accent-color); }
.return-val { font-size: 1.3rem; font-weight: 800; }

/* DEPOSIT UI */
.deposit-dashboard {
    background: rgba(2, 6, 23, 0.95);
    z-index: 50;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.deposit-container {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.deposit-header {
    padding: 1.5rem 2rem;
    border-bottom: var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
}

.deposit-content {
    padding: 2rem;
}

.deposit-step {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.deposit-step h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.payment-details {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 12px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255,255,255,0.2);
}

.upi-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upi-info label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.copy-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--info-color);
}

.bank-details {
    font-size: 0.85rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e2e8f0;
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.pending-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { display: none; }
}
@media (max-width: 768px) {
    .right-panel { display: none; }
    .nav-center { display: none; }
    .main-content { padding: 1rem; }
    .deposit-dashboard { padding: 1rem; }
    .payment-details { flex-direction: column; align-items: center; text-align: center; }
}
