:root {
    --primary: #4f46e5;
    --secondary: #9333ea;
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-dim: #64748b;
    --success: #10b981;
    --danger: #e11d48;
    --glass: rgba(255, 255, 255, 0.7);
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glassmorphism Background Elements - Softened for Light Mode */
.bg-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.1;
}

.glow-1 {
    top: -100px;
    right: -100px;
}

.glow-2 {
    bottom: -100px;
    left: -100px;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-badge {
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Match Cards */
.lobby-container {
    padding: 20px;
    padding-bottom: 90px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.match-card:active {
    transform: scale(0.98);
}

.match-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.match-info p {
    color: var(--text-dim);
    font-size: 14px;
}

.match-action {
    text-align: right;
}

.btn-play {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s;
}

.btn-play:active {
    filter: brightness(0.9);
}

/* Wallet Styles */
.wallet-container {
    padding: 20px;
    padding-bottom: 90px;
}

.balance-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.balance-card h1 {
    font-size: 48px;
    margin: 10px 0;
}

.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-action {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 15px;
    border-radius: 16px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-action.active {
    border-color: var(--primary);
    background: #f1f5f9;
    color: var(--primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 14px;
}

input {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.upi-copy {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border: 1px dashed var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-top: 10px;
}

/* History */
.history-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.status-pending {
    color: #ffcc00;
}

.status-success {
    color: var(--success);
}

.status-failed {
    color: var(--danger);
}

/* Bottom Tab Bar */
.tab-bar {
    position: fixed;
    bottom: 0px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 25px 10px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.02);
}

.tab-item {
    color: var(--text-dim);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    gap: 4px;
}

.tab-item.active {
    color: var(--primary);
}

/* Shadow Fight 2 Classic UI Styles */
.ui-overlay {
    position: fixed;
    top: 20px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 100;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 35%;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 0 15px var(--primary);
}

.header-info {
    flex-grow: 1;
}

.player-name {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px #000;
}

.health-bar-container {
    height: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.health-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, #ff9900, #ffcc00);
    transition: width 0.3s;
}

.match-timer {
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#timer-text {
    font-size: 32px;
    font-weight: 900;
    color: #ffcc00;
    line-height: 1;
}

.round-text {
    font-size: 10px;
    color: var(--text-dim);
}

/* Classic Joystick & Buttons */
.mobile-controls-classic {
    position: fixed;
    bottom: 40px;
    width: 100%;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.joystick-container {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
    pointer-events: auto;
}

.joystick-knob {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.action-buttons-classic {
    position: relative;
    width: 200px;
    height: 150px;
    pointer-events: auto;
}

.action-btn-circle {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: transform 0.1s;
}

.small-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.action-btn-circle:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.9);
}

/* Partners & Trust Section */
.partners-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 80px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.partner-card {
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.partner-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.1);
}

.partner-card span {
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(to right, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.trust-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trust-info p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    display: flex;
    gap: 12px;
    text-align: left;
}

.trust-info i {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer {
    margin-top: 25px;
    text-align: center;
    font-size: 11px;
    color: #ff0055;
    line-height: 1.5;
    opacity: 0.8;
}