
/* ============================================
   XZONE - Modern Betting Platform Styles
   THREE COLUMN LAYOUT (20% | 53% | 27%)
   ============================================ */

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary: #d32f2f;
    --secondary-dark: #c62828;
    --accent: #f57c00;
    --dark: #1a1a2e;
    --gray: #4a5568;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #16213e;
    --success: #2e7d32;
    --danger: #d32f2f;
    --warning: #f57c00;
    --info: #2196f3;
    --facebook: #1877f2;
    --twitter: #1da1f2;
    --whatsapp: #25d366;
    --reddit: #ff4500;
    --instagram: #e4405f;
    --tiktok: #000000;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   DESKTOP LAYOUT - THREE COLUMN (20% | 53% | 27%)
   ============================================ */
body.desktop-layout {
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* LEFT SIDEBAR - 20% */
.sidebar-left {
    width: 20%;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

/* MAIN CONTENT - 53% */
.main-center {
    width: 53%;
    margin-left: 20%;
    min-height: 100vh;
}

/* RIGHT SIDEBAR - 27% */
.sidebar-right {
    width: 27%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    z-index: 99;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1rem;
}

.sidebar-logo {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-logo i {
    color: var(--accent);
}

.sidebar-logo span {
    color: var(--black);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0 1rem 1rem 1rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-nav a i {
    width: 1.5rem;
    font-size: 1.1rem;
}

.sidebar-nav a:hover {
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: white;
}

.sidebar-nav a.active i {
    color: white;
}

.sidebar-nav .withdraw-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    margin-top: 0.5rem;
}

.sidebar-nav .withdraw-link:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
}

.sidebar-nav .whatsapp-link {
    background: var(--whatsapp);
    color: white;
}

.sidebar-nav .whatsapp-link:hover {
    background: #128C7E;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.balance-sidebar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.balance-sidebar i {
    font-size: 1.1rem;
}

/* RIGHT SIDEBAR CONTENT */
.right-sidebar-content {
    padding: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.section-header i {
    color: var(--primary);
    font-size: 1.2rem;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
}

/* World Cup Section */
.world-cup-section {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1a472a, #0e2a1a);
    border-radius: var(--border-radius);
    padding: 1rem;
    color: white;
}

.world-cup-section .section-header {
    border-bottom-color: var(--accent);
}

.world-cup-section .section-header i,
.world-cup-section .section-header h3 {
    color: var(--accent);
}

.match-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.match-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.match-teams .team {
    font-size: 0.9rem;
}

.match-teams .vs {
    color: var(--accent);
    font-size: 0.8rem;
}

.match-time {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.btn-sm {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-sm:hover {
    background: #e65100;
    transform: translateY(-1px);
}

/* Trending Section */
.trending-section {
    margin-bottom: 2rem;
}

.trending-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trending-item:hover {
    background: var(--light-gray);
    padding-left: 1rem;
}

.trend-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--black);
}

.trend-stats {
    font-size: 0.7rem;
    color: var(--gray);
}

.trend-stats i {
    margin-right: 0.25rem;
}

/* Quick Stats Section */
.quick-stats {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span {
    color: var(--gray);
    font-size: 0.85rem;
}

.stat-row strong {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Mobile Header (hidden on desktop by default) */
.mobile-header {
    display: none;
}

/* Page Container */
.page-container {
    padding: 2rem;
}

/* ============================================
   MOBILE LAYOUT (Original)
   ============================================ */
body.mobile-layout {
    overflow-x: hidden;
}

/* Navigation - Original */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo i {
    color: var(--accent);
}

.logo span {
    color: var(--black);
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    position: relative;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(46, 125, 50, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.btn-withdraw {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
}

.btn-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-admin {
    background: var(--accent);
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
}

.btn-admin:hover {
    background: #e65100;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black);
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:active {
    opacity: 0.7;
}

/* ============================================
   Container & Layout (Mobile)
   ============================================ */
body.mobile-layout .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   Cards & Components (Shared)
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
}

.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--border-radius);
    color: white;
    margin-bottom: 2rem;
}

.hero h1 {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .highlight {
    color: var(--accent);
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.p2p-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ============================================
   TWEET STYLE CARDS
   ============================================ */
.tweet-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tweet-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    border: 1px solid #eef2f6;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.tweet-card:hover {
    background: #fafbfc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tweet-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tweet-user {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.tweet-name {
    font-weight: 700;
    color: var(--black);
    font-size: 0.95rem;
}

.tweet-handle {
    color: var(--gray);
    font-size: 0.8rem;
}

.tweet-time {
    color: var(--gray);
    font-size: 0.75rem;
}

.tweet-badge {
    flex-shrink: 0;
}

.tweet-content {
    margin-left: 52px;
}

.tweet-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.tweet-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.tweet-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tweet-stats i {
    font-size: 0.7rem;
}

.payment-badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: #ff9800;
    color: white;
}

.payment-badge.pending {
    background: #ff9800;
}

.payment-badge.warning {
    background: #f57c00;
}

.result-badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.result-badge.winner {
    background: var(--success);
    color: white;
}

.result-badge.loser {
    background: var(--danger);
    color: white;
}

/* ============================================
   Bet Type Cards (Home Page)
   ============================================ */
.bet-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.bet-type-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--box-shadow);
}

.bet-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--box-shadow-hover);
}

.bet-type-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.bet-type-card.two-person .icon {
    color: var(--primary);
}

.bet-type-card.live-market .icon {
    color: var(--secondary);
}

.bet-type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.live-badge {
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.will-requirement {
    background: var(--warning);
    color: white;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 1rem 0;
}

.will-requirement span {
    font-weight: bold;
    background: white;
    color: var(--warning);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

/* ============================================
   Challenge Cards (Legacy)
   ============================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.challenge-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.challenge-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-light);
}

.challenge-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--black);
    line-height: 1.4;
}

.creator-info {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.side-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.stake-badge {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem 0;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.stats i {
    margin-right: 0.3rem;
}

.btn-join {
    display: block;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-join:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-view {
    background: var(--info);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-view:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
}

.btn-pay {
    display: block;
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

/* ============================================
   Bet Type Badges
   ============================================ */
.bet-type-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bet-type-badge.live {
    background: var(--secondary);
    color: white;
}

.bet-type-badge.two-person {
    background: var(--primary);
    color: white;
}

/* ============================================
   Payment Status
   ============================================ */
.payment-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.payment-status.completed {
    background: var(--success);
    color: white;
}

.payment-status.pending {
    background: var(--warning);
    color: white;
}

.payment-status.failed {
    background: var(--danger);
    color: white;
}

.deadline-badge {
    background: var(--warning);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
    margin: 0.5rem 0;
}

.waiting-badge {
    background: var(--info);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
}

/* ============================================
   Status Badges
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge.settled {
    background: var(--success);
    color: white;
}

.status-badge.pending {
    background: var(--warning);
    color: white;
}

.status-badge.cancelled {
    background: var(--danger);
    color: white;
}

/* ============================================
   Share Section
   ============================================ */
.share-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.share-section h5 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-btn.whatsapp {
    background: var(--whatsapp);
    color: white;
}

.share-btn.twitter {
    background: var(--twitter);
    color: white;
}

.share-btn.facebook {
    background: var(--facebook);
    color: white;
}

.share-btn.reddit {
    background: var(--reddit);
    color: white;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    color: white;
}

.share-btn.tiktok {
    background: var(--tiktok);
    color: white;
}

.share-btn.copy {
    background: var(--gray);
    color: white;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-buttons-large {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.share-buttons-large .share-btn {
    width: auto;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.challenge-link {
    font-size: 0.7rem;
    color: var(--gray);
    word-break: break-all;
    margin-top: 0.5rem;
    background: var(--light-gray);
    padding: 0.5rem;
    border-radius: 5px;
}

.challenge-link-large {
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    word-break: break-all;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

/* ============================================
   Form Elements
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 2rem;
    border-radius: var(--border-radius);
    color: white;
    margin-bottom: 2rem;
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.balance-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ============================================
   Admin Dashboard
   ============================================ */
.admin-badge {
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-admin-action {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-admin-action:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.admin-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.admin-section h3 {
    margin-bottom: 1rem;
    color: var(--black);
}

/* ============================================
   Withdrawal Modal
   ============================================ */
.withdrawal-section {
    margin-bottom: 1.5rem;
}

.withdrawal-input-group {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.withdrawal-input-group input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.withdraw-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.withdraw-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.withdraw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.withdrawal-note {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    margin-top: 0.5rem;
}

.withdrawal-history {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.withdrawal-history h4 {
    margin-bottom: 1rem;
}

/* ============================================
   Status Colors
   ============================================ */
.status-pending {
    background: var(--warning);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
}

.status-processing {
    background: var(--info);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
}

.status-completed {
    background: var(--success);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
}

.status-failed {
    background: var(--danger);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
}

.status-timeout {
    background: #9e9e9e;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
}

/* ============================================
   Alerts & Notifications
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.5s ease-out;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border-left: 4px solid var(--info);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Join Challenge Page
   ============================================ */
.join-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
}

.join-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sides-info {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.side-info {
    text-align: center;
    flex: 1;
}

.side-info .label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.side-info .value {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    color: white;
}

.stake-display {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary);
    margin: 1rem 0;
}

.participants-count {
    text-align: center;
    color: var(--gray);
    margin: 1rem 0;
}

.question-box {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.pool-info {
    text-align: center;
    margin: 1rem 0;
}

.pending-activation {
    background: var(--warning);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
}

.full-challenge {
    background: var(--danger);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
}

.side-display {
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    color: white;
    font-weight: bold;
    margin: 1rem 0;
}

.payment-note {
    text-align: center;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.auth-prompt {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin: 1rem 0;
}

/* ============================================
   Challenge Detail Page
   ============================================ */
.challenge-detail-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.detail-header {
    margin-bottom: 1.5rem;
}

.header-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.detail-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    color: white;
    font-weight: bold;
}

.action-required {
    background: var(--warning);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

.pending-creator {
    background: var(--info);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

.result-box {
    padding: 1rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    margin: 1rem 0;
}

.share-section-large {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.your-bet-details {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.deadline-warning {
    background: var(--warning);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.expired {
    color: var(--danger);
    font-weight: bold;
}

.participant-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
}

.participant-phone {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ============================================
   Responsive Design
   ============================================ */
/* Tablet and Mobile (max-width: 1024px) - Switch to mobile layout */
@media (max-width: 1024px) {
    body.desktop-layout .app-container {
        display: block;
    }
    
    body.desktop-layout .sidebar-left {
        position: fixed;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000;
    }
    
    body.desktop-layout .sidebar-left.mobile-open {
        transform: translateX(0);
    }
    
    body.desktop-layout .main-center {
        width: 100%;
        margin-left: 0;
    }
    
    body.desktop-layout .sidebar-right {
        display: none;
    }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .mobile-menu-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--black);
        padding: 0.5rem;
    }
    
    .mobile-logo {
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--primary);
    }
    
    .mobile-logo i {
        color: var(--accent);
    }
    
    .mobile-balance {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .page-container {
        padding: 1rem;
    }
    
    body.mobile-layout .container {
        padding: 1rem;
    }
    
    /* Tweet card adjustments for mobile */
    .tweet-content {
        margin-left: 0;
    }
    
    .tweet-header {
        flex-wrap: wrap;
    }
    
    .tweet-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 0.5rem;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.75rem !important;
        font-size: 1rem;
    }
    
    .nav-links a.active::after {
        display: none;
    }
    
    .btn-withdraw,
    .btn-admin,
    .btn-whatsapp {
        text-align: center;
        margin: 0.25rem 0;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-stats {
        flex-direction: column;
    }
    
    .withdrawal-input-group {
        flex-direction: column;
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .bet-type-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons-large {
        justify-content: center;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .btn-admin-action {
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sides-info {
        flex-direction: column;
    }
    
    .hero {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .stake-display {
        font-size: 1.5rem;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
    }
    
    .share-buttons-large .share-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .join-card {
        padding: 1rem;
    }
    
    .challenge-detail-card {
        padding: 1rem;
    }
    
    .tweet-stats {
        font-size: 0.7rem;
    }
    
    .tweet-content h4 {
        font-size: 0.9rem;
    }
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Modal Styles (FIXED)
   ============================================ */
#authModal,
#withdrawalModal,
#participantsModal,
#profileModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

#authModal > div,
#withdrawalModal > div,
#participantsModal > div,
#profileModal > div {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal close button */
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #000;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .sidebar-left,
    .sidebar-right,
    .mobile-header,
    .btn,
    .share-section,
    .admin-actions,
    .share-buttons,
    .share-buttons-large,
    .modal {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card,
    .challenge-card,
    .tweet-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .main-center {
        width: 100%;
        margin-left: 0;
    }
    
    .page-container {
        padding: 0;
    }
}












