:root {
    /* 🔵 PREMIUM OBSIDIAN BLACK & ELECTRIC BLUE */
    --bg-dark: #030712; 
    --bg-card-dark: #090d16; 
    --text-dark: #f8fafc;
    
    /* The Core Colors */
    --primary: #2563eb; 
    --neon-blue: #00f0ff;
    --primary-yellow: #fbbf24; 
    --danger: #ef4444;
    
    /* Glow Variables */
    --glow-blue: rgba(0, 240, 255, 0.35);
    --border-glass: rgba(0, 240, 255, 0.1);
}

/* Add this to the very top of your style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn't widen elements */
}

body { 
    /* Your original styling */
    font-family: 'Rajdhani', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-dark); 
    margin: 0; 
    overflow-x: hidden; 

    /* The Responsive Upgrades */
    width: 100%;
    min-height: 100dvh; /* Prevents the mobile browser URL bar from hiding your chat/menus */
    overscroll-behavior-y: none; /* Stops the annoying "pull-to-refresh" bounce on mobile apps */
}

/* Smooth Background Transitions */
body {
    transition: background 0.5s ease-in-out, color 0.3s ease;
}





/* Switcher Button UI */
.league-switch-container {
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.8);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid #334155;
}

.league-switch-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.league-switch-btn.active {
    background: var(--primary-yellow);
    color: #000;
    box-shadow: 0 0 10px var(--primary-yellow);
}



/* The main wrapper holding your whole app */
.app-container {
    display: grid;
    /* On mobile: 1 column, stacking vertically */
    grid-template-columns: 1fr; 
    min-height: 100dvh;
}

/* 💻 TABLET & DESKTOP LAYOUT */
@media (min-width: 768px) {
    .app-container {
        /* On screens wider than 768px: 
           Sidebar gets 300px, the rest of the app takes remaining space (1fr) */
        grid-template-columns: 300px 1fr; 
    }
}
h1 {
    /* Minimum 24px, scales smoothly with screen width, Maximum 36px */
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

p,
.chat-message {
    /* Minimum 14px, optimal for reading, Maximum 18px */
    font-size: clamp(0.875rem, 2vw, 1.125rem);
}
img, canvas, video {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* DYNAMIC UCL BACKGROUND - Darkened to Obsidian */
.ucl-dynamic-bg { background: radial-gradient(circle at top right, rgba(37, 0, 255, 0.73) 0%, var(--bg-dark) 60%); background-attachment: fixed; }

.hidden { display: none !important; }

/* WELCOME SCREEN (FLAT CIRCULAR SPIN & ZOOM) */
.welcome-overlay { 
    position: fixed; 
    inset: 0; 
    background: var(--bg-dark); 
    z-index: 99999; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: opacity 1s ease; 
    pointer-events: auto; 
}

.spin-zoom-logo { 
    width: 60%; 
    max-width: 320px; 
    height: auto;
    /* 2.5 seconds with a smooth slow-down as it locks into place */
    animation: efootballCircularSpin 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
    filter: drop-shadow(0 0 25px var(--neon-blue)); /* Enhanced Neon Glow */
}

/* THE NEW KEYFRAMES */
@keyframes efootballCircularSpin { 
    0% { opacity: 0; transform: scale(0.1) rotate(-720deg); } 
    60% { opacity: 1; transform: scale(1.1) rotate(15deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); } 
}

/* AUTH */
.auth-wrap { display: flex; justify-content: center; align-items: center; height: 100vh; background: url('https://images.unsplash.com/photo-1518605368461-1e1e38ce8058?q=80&w=1920') center/cover; position: relative; }
.auth-wrap::before { content: ''; position: absolute; inset:0; background: rgba(3, 7, 18, 0.9); } /* Darker Obsidian overlay */
.auth-glass-box { position: relative; background: rgba(9, 13, 22, 0.65); backdrop-filter: blur(15px); border: 1px solid var(--border-glass); padding: 40px; border-radius: 20px; width: 90%; max-width: 400px; color: #fff; box-shadow: 0 0 30px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.05);}
.input-group input, .modal-content input, .modal-content select { width: 100%; padding: 12px; margin-bottom:15px; background: rgba(0,0,0,0.7); border: 1px solid rgba(59, 130, 246, 0.3); color: var(--neon-blue); border-radius: 8px; outline: none; font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; transition: 0.3s;}
.input-group input:focus, .modal-content input:focus { border-color: var(--neon-blue); box-shadow: 0 0 10px var(--glow-blue); }
.show-pass { font-size: 0.85rem; margin-bottom: 20px; color: #cbd5e1; display:flex; align-items:center; gap:5px;}
.glass-btn, .main-btn { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--primary), var(--neon-blue)); color: #000; border: none; border-radius: 8px; font-weight: 800; cursor: pointer; font-size: 1.2rem; font-family: 'Rajdhani', sans-serif; box-shadow: 0 4px 15px var(--glow-blue); text-transform: uppercase; transition: transform 0.2s, filter 0.2s;}
.glass-btn:hover, .main-btn:hover { transform: scale(1.02); filter: brightness(1.1); }
.small-btn { padding: 6px 12px; font-size: 1rem; width: auto; background: var(--primary); color: #fff; border: none; border-radius: 5px; cursor: pointer;}
.danger { background: var(--danger); box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);}
.text-danger { color: var(--danger) !important; font-weight: bold; }

/* AVATARS */
.profile-avatar-container { text-align: center; margin-bottom: 20px; }
.auth-avatar-picker img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--neon-blue); object-fit: cover; margin-bottom: 10px; box-shadow: 0 0 15px var(--glow-blue);}
#avatarGridContainer img { border: 2px solid transparent; }
#avatarGridContainer img:hover { border-color: var(--neon-blue) !important; transform: scale(1.1); box-shadow: 0 0 10px var(--glow-blue); transition: all 0.2s ease; }

/* ==========================================
   🌟 PREMIUM HEADER STYLES
   ========================================== */
.premium-league-title {
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 2px;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* UCL Gold Glow */
.premium-league-title.ucl-theme {
    color: #facc15;
    /* Or var(--primary-yellow) */
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4), 0 0 20px rgba(250, 204, 21, 0.2);
}

/* Premier League Cyan/Green Glow */
.premium-league-title.epl-theme {
    color: #00ff85;
    text-shadow: 0 0 10px rgba(0, 255, 133, 0.4), 0 0 20px rgba(0, 255, 133, 0.2);
}

/* 🌟 Base styling for the League Title and Images */
.premium-league-title {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 800;
    font-size: 1.25rem; /* Bumped up the text size slightly to match the bigger logo */
}

.premium-league-title img {
    width: 42px;  /* Increased from 26px to 42px */
    height: 42px; /* Increased from 26px to 42px */
    object-fit: contain;
    vertical-align: middle;
    margin-right: 12px; /* Pushed the text back slightly for breathing room */
    image-rendering: -webkit-optimize-contrast;
    animation: premiumPulse 3s infinite ease-in-out;
}


/* 🟢 EPL Theme: Neon Green Brilliance */
.epl-theme {
    color: #00ff85;
    text-shadow: 0 0 8px rgba(0, 255, 133, 0.4);
}

.epl-theme img {
    /* Brightens the lion and gives it a neon green drop-shadow */
    filter: drop-shadow(0 0 8px rgba(0, 255, 133, 0.8)) brightness(1.1) contrast(1.15);
}

/* 🔵 UCL Theme: Cyan/Silver Brilliance */
.ucl-theme {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.ucl-theme img {
    /* Brightens the stars and gives it a cyan/blue drop-shadow */
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8)) brightness(1.1) contrast(1.15);
}

/* ✨ The subtle breathing animation */
@keyframes premiumPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* 🌟 League Switcher Button Styling */
.league-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Adds perfect spacing between the logo and text */
    padding: 8px 16px; 
    font-weight: bold;
    cursor: pointer;
}

.league-switch-btn img {
    width: 22px; /* Perfect size for inside a button */
    height: 22px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); /* Subtle shadow to lift it off the button */
    transition: transform 0.2s ease;
}

/* Optional: Make the logo pop slightly when you hover over the button */
.league-switch-btn:hover img {
    transform: scale(1.15);
}


/* =========================================
   LAYOUT & NAVBARS (Premium Edition)
   ========================================= */

.app-layout { 
  display: flex; 
  flex-direction: column; 
  height: 100vh; 
}

/* --- Top Bar --- */
.top-bar { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 16px 24px; /* Slightly wider padding for a spacious feel */
  background: rgba(3, 7, 18, 0.65); /* More transparent to allow blur to show through */
  backdrop-filter: blur(20px) saturate(180%); /* Apple-style glassmorphism */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Softer, ultra-thin glass border */
  position: sticky; 
  top: 0; 
  z-index: 50; 
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); /* Deeper, softer shadow */
}

/* Premium Gradient Text for Logo */
.ucl-logo-text { 
  font-size: 1.5rem; 
  font-weight: 800; 
  background: linear-gradient(135deg, #ffffff, var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px var(--glow-blue); 
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ucl-logo-text:hover {
  text-shadow: 0 0 30px var(--neon-blue);
  transform: scale(1.02);
}

/* Circular, tactile icon buttons */
.icon-btn { 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.05); 
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem; 
  color: #94a3b8; 
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover { 
  color: var(--neon-blue); 
  background: rgba(0, 240, 255, 0.1); /* Assuming neon-blue is cyan-ish */
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px var(--glow-blue);
  transform: translateY(-2px);
}

/* --- Bottom Nav --- */
.bottom-nav { 
  position: fixed; 
  bottom: 0; 
  left: 0; 
  width: 100%; 
  height: 80px; /* Taller for breathing room */
  background: rgba(15, 23, 42, 0.85); /* Rich dark transparent dock */
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  display: flex; 
  justify-content: space-around; 
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 10px); /* Native mobile notch support */
  border-top: 1px solid rgba(255, 255, 255, 0.08); 
  z-index: 100; 
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

/* Nav Items */
.nav-item { background: none; border: none; color: #64748b; display: flex; flex-direction: column; align-items: center; font-size: 0.9rem; cursor: pointer; font-family: 'Rajdhani', sans-serif; font-weight: bold; transition: color 0.2s;}

.nav-item i, 
.nav-item svg {
  font-size: 1.4rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Slight bounce on icons */
}

/* The Animated Top Glow Indicator */
.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--neon-blue);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 10px var(--glow-blue);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.nav-item:hover {
  color: #e2e8f0;
}

.nav-item:hover i, 
.nav-item:hover svg {
  transform: translateY(-4px) scale(1.1);
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.nav-item:hover::before {
  width: 15px;
  opacity: 0.5;
}

/* Active State Effects */
.nav-item.active { 
  color: var(--neon-blue); 
  text-shadow: 0 0 12px var(--glow-blue); 
}

.nav-item.active i, 
.nav-item.active svg {
  transform: translateY(-4px) scale(1.15);
  color: var(--neon-blue);
  filter: drop-shadow(0 0 12px var(--glow-blue));
}

/* Full glowing indicator line for active item */
.nav-item.active::before {
  width: 35px;
  opacity: 1;
}


/* SIDEBAR */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 99; }
.sidebar-menu { position: fixed; top: 0; left: -300px; width: 280px; height: 100%; background: var(--bg-card-dark); z-index: 100; transition: 0.3s; overflow-y: auto; box-shadow: 5px 0 25px rgba(0,0,0,0.8); display: flex; flex-direction: column; border-right: 1px solid var(--border-glass);}
.sidebar-menu.open { left: 0; }
.sidebar-header { padding: 20px; font-size: 1.5rem; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 10px; color: var(--neon-blue);}
.close-sidebar { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 2rem; color: var(--text-dark); cursor: pointer; transition: color 0.2s;}
.close-sidebar:hover { color: var(--danger); }
.sidebar-item { display: block; width: 100%; padding: 15px 20px; text-align: left; background: none; border: none; color: var(--text-dark); font-size: 1.2rem; cursor: pointer; border-left: 3px solid transparent; transition: all 0.2s;}
.sidebar-item:hover { background: rgba(0, 240, 255, 0.05); border-left-color: var(--neon-blue); color: var(--neon-blue); padding-left: 25px;}
.sidebar-divider { padding: 15px 20px 5px; font-size: 0.9rem; color: #64748b; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;}

/* CONTENT AREA */
.content-area { flex: 1; padding: 15px; overflow-y: auto; padding-bottom: 100px; }
.card { background: var(--bg-card-dark); padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--border-glass); box-shadow: 0 8px 20px rgba(0,0,0,0.5);}

/* STANDINGS */
.tabs { display: flex; margin-bottom: 15px; background: #000; border-radius: 8px; padding: 5px; border: 1px solid rgba(255,255,255,0.05);}
.tab-btn { flex: 1; padding: 10px; background: transparent; border: none; color: #64748b; font-weight: bold; font-size: 1rem; font-family: 'Rajdhani', sans-serif; border-radius: 5px; cursor: pointer; transition: 0.3s;}
.tab-btn.active { background: rgba(0, 240, 255, 0.1); color: var(--neon-blue); box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05); }
.table-wrap { overflow-x: auto; background: var(--bg-card-dark); border-radius: 12px; }
.standings-table { width: 100%; text-align: center; border-collapse: collapse; font-size: 1rem; }
.standings-table th, .standings-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.ucl-direct { border-left: 5px solid #22c55e !important; background-color: rgba(34, 197, 94, 0.05); }
.ucl-playoff { border-left: 5px solid var(--neon-blue) !important; background-color: rgba(0, 240, 255, 0.05); }
.ucl-elim { border-left: 5px solid #ef4444 !important; opacity: 0.6; }

/* FIXTURES & PREDICTIONS */
.fixture-card { background: var(--bg-card-dark); border-radius: 10px; margin-bottom: 15px; overflow: hidden; border: 1px solid var(--border-glass); box-shadow: 0 6px 15px rgba(0,0,0,0.5); transition: transform 0.2s;}
.fixture-card:hover { transform: translateY(-2px); border-color: rgba(0, 240, 255, 0.3); }
.fixture-header { background: #000; padding: 5px; font-size: 0.9rem; text-align: center; color: var(--neon-blue); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border-glass);}
.fixture-body { display: flex; align-items: center; padding: 10px 0;}
.team-side { flex: 1; padding: 10px; text-align: center; font-weight: bold; font-size: 1.2rem;}
.score-center { padding: 0 10px; font-size: 1.5rem; font-weight: bold; background: rgba(15, 23, 42, 0.8); border-radius: 5px; min-width: 60px; text-align: center; border: 1px solid rgba(255,255,255,0.05);}
.match-time { font-size: 0.9rem; color: var(--primary-yellow); text-align: center; margin-bottom: 5px; text-shadow: 0 0 5px rgba(251, 191, 36, 0.3);}
.predict-bar { display: flex; background: #000; border-top: 1px solid var(--border-glass);}
.predict-btn { flex: 1; padding: 8px; background: transparent; border: 1px solid transparent; color: #94a3b8; font-family: 'Rajdhani', sans-serif; cursor: pointer; transition: 0.2s; font-size: 1.2rem; font-weight: bold; }
.predict-btn:hover { background: rgba(0, 240, 255, 0.05); color: var(--neon-blue);}
.fixture-controls-public { padding: 10px; text-align: center; background: rgba(15, 23, 42, 0.5); border-top: 1px solid var(--border-glass); }

/* eFootball Style CHAIN BRACKETS */
.bracket-wrapper { display: flex; gap: 50px; padding: 20px; align-items: flex-start; justify-content: flex-start; position: relative;}
.bracket-column { display: flex; flex-direction: column; justify-content: space-around; min-width: 220px; position: relative; gap: 20px; z-index: 2;}
.bracket-title { text-align: center; color: var(--primary-yellow); font-size: 1rem; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 2px; text-shadow: 0 0 8px rgba(251,191,36,0.4);}
.bracket-match { background: var(--bg-card-dark); border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 8px; padding: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.6); position: relative;}
.bracket-team { display: flex; justify-content: space-between; padding: 6px 0; font-size: 1.1rem; color: #cbd5e1; font-weight: bold;}
/* Connection Lines */
.bracket-column:not(:last-child) .bracket-match::after { content: ''; position: absolute; top: 50%; right: -25px; width: 25px; height: 2px; background: rgba(59, 130, 246, 0.5); z-index: 1;}
.bracket-column:not(:first-child) .bracket-match::before { content: ''; position: absolute; top: 50%; left: -25px; width: 25px; height: 2px; background: rgba(59, 130, 246, 0.5); z-index: 1;}

/* LIVE VIEW */
.streams-grid { display: flex; flex-direction: column; gap: 10px; padding: 10px 0; }
.main-stream-wrapper { width: 100%; height: 250px; background: #000; border-radius: 8px; overflow: hidden; border: 2px solid var(--primary-yellow); box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);}
.sub-streams-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sub-stream { height: 120px; background: #000; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-glass); }

.live-badge { background: #ef4444; color: white; padding: 5px 10px; border-radius: 5px; font-weight: bold; font-size: 0.9rem; animation: pulse-dot 1.5s infinite; box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);}
.react-btn { font-size: 1.5rem !important; background: rgba(15, 23, 42, 0.8) !important; border: 1px solid rgba(59, 130, 246, 0.3) !important; border-radius: 50%; width:40px; height:40px; cursor:pointer; transition: 0.2s;}
.react-btn:hover { border-color: var(--neon-blue) !important; box-shadow: 0 0 10px var(--glow-blue); }

/* CHAT & ACTIVITY */
.chat-area { display: flex; flex-direction: column; height: calc(100vh - 240px); }
.chat-box { flex: 1; overflow-y: auto; padding: 10px; background: radial-gradient(circle at center, rgba(15, 23, 42, 0.5) 0%, var(--bg-card-dark) 100%); border-radius: 20px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border-glass); }
.msg-bubble { max-width: 85%; padding: 10px 15px; border-radius: 12px; font-size: 1.1rem; line-height: 1.4; box-shadow: 0 4px 10px rgba(0,0,0,0.3);}
.msg-bubble.mine { background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%); color: white; align-self: flex-end; border-bottom-right-radius: 2px; border: 1px solid rgba(0, 240, 255, 0.4);}
.msg-bubble.other { background: rgba(15, 23, 42, 0.85); color: white; align-self: flex-start; border-bottom-left-radius: 2px; border: 1px solid rgba(59, 130, 246, 0.2);}
.activity-item { font-size: 0.9rem; color: #94a3b8; border-left: 3px solid var(--neon-blue); padding-left: 10px; margin-bottom: 5px;}

/* eFootball Custom Chat UI */
.efootball-chat-ui .chat-input-row {
    background: rgba(9, 13, 22, 0.95);
    border: 1.5px solid var(--primary);
    border-radius: 20px;
    padding: 7px;
    display: flex;
    gap: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.efootball-chat-ui .chat-input-row:focus-within {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--glow-blue);
}
.efootball-chat-ui input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    font-size: 1.1rem;
    outline: none;
    font-family: 'Rajdhani', sans-serif;
}
.efootball-chat-ui button {
    background: linear-gradient(135deg, var(--primary), var(--neon-blue));
    color: #000;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--glow-blue);
}

/* PROFILE, BADGES & CHARTS */
.profile-card { background: linear-gradient(135deg, #090d16, #030712); padding: 30px; border-radius: 15px; text-align: center; border: 1px solid rgba(59, 130, 246, 0.3); position: relative; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.6);}
.stats-row { display: flex; justify-content: space-around; margin-top: 20px; }
.stat-box { background: rgba(0,0,0,0.5); padding: 10px; border-radius: 8px; width: 60px; border: 1px solid rgba(255,255,255,0.05);}
.stat-box strong { font-size: 1.6rem; color: var(--neon-blue); }

/* eFootball Custom Avatar Style */
.efootball-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 15px auto;
}
.efootball-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,3 97,25 97,75 50,97 3,75 3,25" fill="none" stroke="%2300f0ff" stroke-width="3"/></svg>') center/cover;
    animation: rotate-avatar-border 10s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}
#utAvatar {
    position: absolute;
    top: 10px; left: 10px;
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-dark);
}
@keyframes rotate-avatar-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badges-grid { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px 0;}
.badge-item { background: rgba(15, 23, 42, 0.8); border: 1px solid var(--primary-yellow); padding: 5px 10px; border-radius: 20px; font-size: 0.85rem; color: var(--primary-yellow); font-weight: bold; display: flex; align-items: center; gap: 5px; box-shadow: 0 0 10px rgba(251,191,36,0.15);}
.form-chart { display: flex; justify-content: center; gap: 8px; align-items: flex-end; height: 60px; padding: 10px; background: rgba(0,0,0,0.4); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05);}
.form-bar { width: 25px; border-radius: 3px 3px 0 0; text-align: center; font-size: 0.7rem; color: #000; font-weight: bold; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 2px;}
.form-bar.W { background: #22c55e; height: 100%; box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.form-bar.D { background: #eab308; height: 60%; box-shadow: 0 0 8px rgba(234, 179, 8, 0.4); }
.form-bar.L { background: #ef4444; height: 30%; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

/* UTILS */
.winner-card { background: linear-gradient(135deg, #f59e0b, #fbbf24); padding: 30px; border-radius: 15px; margin-bottom: 25px; text-align: center; color: #000; animation: pulse-gold 2s infinite; font-weight: bold;}
@keyframes pulse-gold { 0% { transform: scale(1); box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);} 50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);} 100% { transform: scale(1); box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);} }
.modal { position: fixed; inset: 0; background: rgba(3, 7, 18, 0.9); display: flex; justify-content: center; align-items: center; z-index: 200; backdrop-filter: blur(10px);}
.modal-content { background: var(--bg-card-dark); padding: 25px; border-radius: 15px; width: 90%; max-width: 400px; border: 1px solid rgba(0, 240, 255, 0.2); box-shadow: 0 10px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(0, 240, 255, 0.05);}
.notification-area { position: fixed; top: 20px; right: 20px; z-index: 1000; display:flex; flex-direction:column; gap:10px;}
.toast { background: linear-gradient(90deg, var(--primary), var(--bg-card-dark)); color: white; padding: 15px 25px; border-radius: 8px; font-weight: bold; box-shadow: 0 4px 15px rgba(0,0,0,0.5); font-size: 1.1rem; border-left: 5px solid var(--neon-blue);}

/* DOT INDICATORS */
.green-dot, .red-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle;}
.green-dot { background-color: #22c55e; box-shadow: 0 0 8px #22c55e; }
.red-dot { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* CHAT BLUE DOT NOTIFICATION */
.blue-dot {
    position: absolute;
    top: -4px;
    right: -6px;
    width: 12px;
    height: 12px;
    background-color: var(--neon-blue); 
    border: 2px solid var(--bg-card-dark); 
    border-radius: 50%;
    z-index: 10;
    animation: pulse-blue 1.5s infinite;
}
@keyframes pulse-blue {
	0% { box-shadow: 0 0 0 0px rgba(0, 240, 255, 0.7); }
	70% { box-shadow: 0 0 0 6px rgba(0, 240, 255, 0); }
	100% { box-shadow: 0 0 0 0px rgba(0, 240, 255, 0); }
}

/* TOUR */
.tour-box { border: 2px solid var(--neon-blue); position: relative; box-shadow: 0 0 15px var(--glow-blue);}
.tour-dots { display: flex; justify-content: center; gap: 5px; margin-bottom: 15px;}
.tour-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2);}
.tour-dot.active { background: var(--neon-blue); box-shadow: 0 0 8px var(--neon-blue);}

/* 🔮 PREDICTION LEADERBOARD STYLES */
.leaderboard-row {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 15px; 
    background: rgba(15, 23, 42, 0.4); 
    border-radius: 8px; 
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--neon-blue);
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.rank-number {
    font-weight: 900; 
    color: var(--neon-blue); 
    width: 30px;
    font-size: 1.1rem;
}

.points-display {
    color: var(--primary-yellow); 
    font-weight: 900; 
    font-size: 18px;
    text-shadow: 0 0 5px rgba(251,191,36,0.3);
}

.points-display span {
    font-size: 11px; 
    color: #94a3b8; 
    text-transform: uppercase;
}

/* CUSTOM BADGES */
.badge-icon {
    font-size: 1.1rem; 
    margin-left: 8px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

.oracle-title {
    font-size: 0.65rem; 
    background: linear-gradient(90deg, #f59e0b, #fbbf24); 
    color: #000; 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-weight: 900; 
    vertical-align: middle; 
    margin-left: 6px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    letter-spacing: 0.5px;
}

/* 🚨 MATCH OF THE WEEK STYLES */
.motw-container {
    background: linear-gradient(135deg, #090d16 0%, #030712 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    text-align: center;
    padding: 25px 15px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2), inset 0 0 20px rgba(239, 68, 68, 0.05);
    position: relative;
    overflow: hidden;
}

.motw-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #dc2626, #ef4444);
    color: #fff;
    padding: 4px 15px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
}

.motw-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap; 
}

.motw-team-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.motw-vs {
    font-size: 1rem;
    color: var(--neon-blue);
    font-weight: 900;
    background: rgba(0, 240, 255, 0.1);
    padding: 5px 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.motw-timer {
    font-size: 2.5rem;
    font-family: monospace;
    font-weight: 900;
    color: var(--primary-yellow);
    margin: 10px 0 20px 0;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    letter-spacing: 2px;
}

.live-alert {
    color: #ef4444 ;
    animation: pulse 1.5s infinite;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.motw-h2h-box {
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.h2h-title {
    color: var(--neon-blue);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.h2h-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.h2h-win b, .h2h-draw b {
    color: #fff;
    font-size: 1.2rem;
}

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

/* ==========================================
   ✨ PREMIUM STANDINGS TABLE
   ========================================== */
.table-wrap {
    width: 100%;
    /* 🌟 Premium Dark Gradient & Glow */
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden; /* Keeps the rounded corners perfectly clean */
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Keeps mobile layout strict */
    font-size: 0.85rem;
    color: #e2e8f0;
}

/* 🌟 Premium Header Typography */
.standings-table thead {
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.standings-table th {
    padding: 12px 2px;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: #94a3b8; /* Muted grey for stats */
    font-weight: 700;
    text-align: center;
}

/* 🌟 Row Styling & Smooth Hover Effects */
.standings-table td {
    padding: 12px 2px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.standings-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.05); /* Subtle highlight when tapped/hovered */
}

/* 🌟 Rank Column (#) & Qualification Color Coding */
.standings-table th:nth-child(1),
.standings-table td:nth-child(1) {
    width: 32px;
    font-weight: 900;
    color: #cbd5e1;
}

/* 🟢 Direct Qualification (UCL / Top 4) */
.standings-table tbody tr.ucl-direct td:nth-child(1) {
    border-left: 3px solid #22c55e;
    color: #22c55e; 
}
/* 🔵 Play-offs / Europa League (5th) */
.standings-table tbody tr.ucl-playoff td:nth-child(1) {
    border-left: 3px solid #3b82f6;
    color: #3b82f6;
}
/* 🔴 Elimination / Relegation (Bottom 3) */
.standings-table tbody tr.ucl-elim td:nth-child(1) {
    border-left: 3px solid #ef4444;
    color: #ef4444;
}

/* 🌟 Team Column Formatting */
.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
    text-align: left;
    width: auto;
    padding-left: 8px;
}

.team-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    width: 100%;
    min-width: 0;
}

/* 🌟 3D Badge Drop Shadows */
.team-name-cell img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.team-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds the "..." to long names */
    flex: 1;
    
}

/* 🌟 The Points Column Panel */
.standings-table td:last-child {
    background: rgba(0, 0, 0, 0.3); /* Distinct dark background panel */
    font-size: 1rem !important;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4); /* Subtle gold glow */
}
.standings-table th:last-child {
    background: rgba(0, 0, 0, 0.3);
}

/* ==========================================
   🔍 TABLE EXPAND TOGGLE STYLES (Keep this!)
   ========================================== */
.table-wrap.expanded-mode {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-wrap.expanded-mode .standings-table {
    table-layout: auto; 
    min-width: 600px; 
}
.table-wrap.expanded-mode .team-name-text {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    display: inline-block;
}

/* 🌟 Tiny Screen Adjustments */
@media (max-width: 400px) {
    .standings-table { font-size: 0.75rem; }
    .standings-table th, .standings-table td { padding: 10px 1px; }
    .team-name-cell img { width: 20px; height: 20px; }
    .standings-table td:last-child { font-size: 0.9rem !important; }
}


/* ==========================================
   🏆 PREMIUM STATS & HALL OF FAME UI
   ========================================== */

/* The Main Panel Container */
.stats-panel {
    background: linear-gradient(145deg, #090d16, #030712);
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.2); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.stats-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Panel Header */
.panel-header {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(9, 13, 22, 0.9) 100%);
    padding: 18px 20px;
    border-bottom: 1px solid var(--primary-yellow);
    position: relative;
    z-index: 1;
}

/* Panel Title with Glowing Icon */
.panel-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.panel-title i {
    color: var(--primary-yellow);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5)); 
}

/* The Tables */
.efootball-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    position: relative;
    z-index: 1;
}

/* Table Headers */
.efootball-table th {
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--neon-blue);
    padding: 14px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Table Cells */
.efootball-table td {
    padding: 16px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 600;
}

/* Remove border from the very last row */
.efootball-table tr:last-child td {
    border-bottom: none;
}

/* Row Hover Animation */
.efootball-table tbody tr {
    transition: all 0.2s ease-in-out;
}

.efootball-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.9) 0%, rgba(9, 13, 22, 0.9) 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: default;
}

/* Highlight the Rank Number */
.efootball-table td:first-child {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: #cbd5e1;
    text-align: center;
    opacity: 0.8;
}

/* Highlight the Number 1 Spot */
.efootball-table tbody tr:first-child td:first-child {
    color: var(--primary-yellow);
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
    opacity: 1;
}

/* Highlight the Goals/Titles Column */
.efootball-table td:last-child {
    color: var(--primary-yellow);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}


/* ==========================================
   📩 DM TOAST NOTIFICATION STYLES
   ========================================== */
.dm-toast {
    position: fixed;
    bottom: 80px; 
    right: -350px; 
    background: var(--bg-card-dark); 
    border-left: 4px solid var(--neon-blue);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 240, 255, 0.1);
    z-index: 9999; 
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
    color: #ffffff;
    max-width: 320px;
    pointer-events: none; 
}

.dm-toast.show-toast {
    right: 20px; 
}

/* 🏆 SYMMETRICAL GLASS BRACKET WRAPPER */
.glass-gloomy {
    background: rgba(9, 13, 22, 0.75); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 35px 0 rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(0, 240, 255, 0.03);
    border-radius: 16px;
    padding: 30px 10px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 700px;
    overflow-x: auto; 
}

/* 🏆 COLUMN ALIGNMENT */
.bracket-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around; 
    gap: 15px;
    min-width: 145px;
    padding: 0 10px;
}

.center-col {
    justify-content: center;
    align-items: center;
    min-width: 220px;
}

/* 🏆 THE TROPHY & TITLES */
.center-trophy {
    width: 130px;
    margin-top: 30px;
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.7)); 
    animation: floatTrophy 4s ease-in-out infinite;
}

@keyframes floatTrophy {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.champion-title {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.4rem;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

/* 🏆 GLASSMATCH CARDS */
.bracket-match-card {
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    font-family: 'Rajdhani', sans-serif;
}

.b-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    transition: background 0.3s ease;
}

.b-team.winner {
    background: rgba(37, 99, 235, 0.4); /* Neon blue highlight for winners */
    border-left: 3px solid var(--neon-blue);
}

.b-team-info { display: flex; align-items: center; gap: 8px; }
.b-team-info img {
    width: 20px; height: 20px; object-fit: contain; border-radius: 3px;
}
.b-name { font-size: 0.8rem; color: #f8fafc; font-weight: 600; }
.b-score {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.b-divider { height: 1px; background: rgba(255, 255, 255, 0.05); width: 100%; }


/* 🛠️ ADMIN TOOL BUTTONS */
.tool-btn {
    background: rgba(250, 204, 21, 0.1);
    color: var(--primary-yellow);
    border: 1px solid rgba(250, 204, 21, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    font-family: 'Rajdhani', sans-serif;
}

.tool-btn:hover {
    background: var(--primary-yellow);
    color: #000;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
    transform: translateY(-2px);
}

/* Section Wrapper */
.premium-stat-section {
    width: 100%;
    margin-bottom: 20px;
}

/* Glowing Pill Headers */
.premium-title {
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 12px;
    border-radius: 40px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

/* Header Color Variants */
.title-gold {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.85), rgba(245, 158, 11, 0.85));
    border: 1px solid rgba(251, 191, 36, 0.5);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.title-blue {
    background: linear-gradient(90deg, rgba(30, 0, 255, 0.85), rgba(0, 180, 255, 0.85));
    border: 1px solid rgba(0, 212, 255, 0.4);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.title-pink {
    background: linear-gradient(90deg, rgba(250, 0, 255, 0.65), rgba(255, 0, 128, 0.85));
    border: 1px solid rgba(250, 0, 255, 0.4);
    text-shadow: 0 0 10px rgba(250, 0, 255, 0.4);
}

/* Glass Panels to hold JS-injected content */
.premium-panel {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-height: 50px;
    /* Prevents layout collapse before JS loads */
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* Centers badges nicely */
    align-items: flex-start;
    padding: 10px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.badge-item:hover {
    transform: scale(1.1); /* Nice little pop effect on hover */
}


/* Container layout for the Form Bubbles */
.form-chart {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
}

/* Sleek Match Row for H2H */
.premium-h2h-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05); /* Slight white glow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 10px;
    transition: transform 0.2s, background 0.2s;
}

/* Hover effect so it feels interactive */
.premium-h2h-row:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.h2h-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-left: 15px;
}

.h2h-matchup {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Digital Score Box */
.h2h-score-box {
    background: rgba(0, 0, 0, 0.5); /* Dark background for score */
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
 
/* =========================================
   🔥 PREMIUM FORM BUBBLES (LAST 5 MATCHES)
   ========================================= */

/* 1. Aligns the bubbles in a perfect horizontal row inside the glass panel */
.form-chart {
    display: flex;
    justify-content: center; /* Centers the bubbles */
    gap: 12px;               /* Space between each bubble */
    align-items: center;
    padding: 10px 0;
}

/* 2. The 3D Circle Shape */
.form-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%; /* Makes it a perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* 3D Drop shadow */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: transform 0.2s; /* Tiny animation effect */
}

/* Hover effect on bubbles */
.form-badge:hover {
    transform: scale(1.1); 
}

/* 3. The Colors (Win, Draw, Loss) */
.badge-w { 
    background: linear-gradient(135deg, #22c55e, #16a34a); 
    border: 2px solid #4ade80; 
} /* Green for Win */

.badge-d { 
    background: linear-gradient(135deg, #64748b, #475569); 
    border: 2px solid #94a3b8; 
} /* Gray for Draw */

.badge-l { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    border: 2px solid #f87171; 
} /* Red for Loss */

/* ==========================================
   ⭐ MANAGER RATING (PREMIUM UI)
   ========================================== */

/* The main container */
.rating-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
}

/* The Glowing OVR Badge */
.ovr-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 3px solid;
    margin-bottom: 15px;
    animation: pulse-glow 2s infinite;
}

/* The Number inside the Badge */
.ovr-value {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
}

.ovr-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Motivational Caption */
.rating-caption {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Glassmorphism Stats Bar */
.rating-stats-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 30px;
}

.rating-stat-item {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.rating-stat-highlight {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin-left: 5px;
}

/* 🎨 TIER COLORS & GLOW EFFECTS */
.tier-legendary { border-color: #facc15; color: #facc15; box-shadow: 0 0 20px rgba(250, 204, 21, 0.5); }
.tier-master { border-color: #f59e0b; color: #f59e0b; box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
.tier-pro { border-color: #22c55e; color: #22c55e; box-shadow: 0 0 20px rgba(34, 197, 94, 0.5); }
.tier-solid { border-color: #00d4ff; color: #00d4ff; box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
.tier-struggle { border-color: #f97316; color: #f97316; box-shadow: 0 0 20px rgba(249, 115, 22, 0.5); }
.tier-danger { border-color: #ef4444; color: #ef4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }

/* Breathing Animation */
@keyframes pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 15px currentColor; }
    50% { transform: scale(1.05); box-shadow: 0 0 25px currentColor; }
    100% { transform: scale(1); box-shadow: 0 0 15px currentColor; }
}

/* ==========================================
   🏆 PREMIUM WINNER BANNER
   ========================================== */
.premium-winner-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: 2px solid #facc15; /* Gold border */
    border-radius: 24px;
    padding: 30px 40px;
    margin: 20px 0 40px 0;
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.3), inset 0 0 20px rgba(250, 204, 21, 0.1);
    overflow: hidden;
    /* Pops onto the screen when the hidden class is removed */
    animation: banner-slide-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Keeps the JS hide/show logic working */
.premium-winner-card.hidden {
    display: none !important;
}

/* Floating Trophy Animation */
.trophy-container {
    position: relative;
    z-index: 2;
}

.ucl-trophy {
    width: 140px; /* Makes the trophy large and prominent */
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
    animation: float-trophy 3s ease-in-out infinite;
}

/* Text Styling */
.winner-info {
    position: relative;
    z-index: 2;
    text-align: left;
}

.winner-subtitle {
    color: #cbd5e1;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

/* Metallic Gold Gradient for the Team Name */
.winner-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.5);
}

.winner-label {
    display: inline-block;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.5);
    color: #facc15;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    margin-top: 12px;
    letter-spacing: 2px;
}

/* Spinning Glow Effect behind the text and trophy */
.winner-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(250,204,21,0.15) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    animation: spin-glow 15s linear infinite;
    z-index: 1;
}

/* Keyframes */
@keyframes float-trophy {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

@keyframes spin-glow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes banner-slide-in {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive adjustment for mobile screens */
@media (max-width: 600px) {
    .premium-winner-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }
    .winner-info {
        text-align: center;
    }
    .winner-title {
        font-size: 2.5rem;
    }
}

/* 🏆 PREMIUM PROFILE BADGES */
.badges-grid { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    justify-content: center; 
    padding: 15px 0; 
}

.badge-item-premium {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-item-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.badge-item-premium img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
}

.badge-item-premium span {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
}

/* 🎉 PREMIUM AWARD POPUP MODAL */
.award-popup-overlay {
    position: fixed; inset: 0; 
    background: rgba(2, 6, 23, 0.85); 
    backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center; 
    z-index: 9999;
    opacity: 0; pointer-events: none; 
    transition: opacity 0.5s ease;
}

.award-popup-overlay.show { 
    opacity: 1; 
    pointer-events: auto; 
}

.award-popup-card {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 3px; 
    border-radius: 20px;
    transform: scale(0.5); 
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.6);
}

.award-popup-overlay.show .award-popup-card { 
    transform: scale(1); 
}

.award-popup-inner {
    background: #0f172a; 
    border-radius: 18px; 
    padding: 40px;
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    max-width: 350px;
}

.award-popup-inner img { 
    width: 140px; 
    height: 140px; 
    object-fit: contain; 
    animation: float-award 3s ease-in-out infinite; 
}

@keyframes float-award { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}

.award-popup-title { 
    color: #fbbf24; 
    font-size: 1.8rem; 
    font-weight: 900; 
    margin: 15px 0 5px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.award-popup-desc { color: #94a3b8; font-size: 1rem; margin-bottom: 25px; line-height: 1.4; }
.btn-claim-award { background: #fbbf24; color: #000; font-weight: 900; border: none; padding: 12px 30px; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 1.1rem; transition: transform 0.2s;}
.btn-claim-award:hover { transform: scale(1.05); }

/* ==========================================
   🎙️ PREMIUM UNIFIED VOICE STUDIO PILL
   ========================================== */

/* 1. The Main Container - Blends everything together */
#voiceReviewArea {
    background: linear-gradient(145deg, #1e293b, #0f172a) !important;
    border: 1px solid #fbbf24 !important; 
    border-radius: 40px !important; 
    padding: 6px 6px 6px 12px !important; 
    
    /* 🚨 DELETE the "display: flex !important;" that was here! 🚨 */
    
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.05) !important;
}


/* 2. The Audio Player - Dark Mode Stealth */
#audioPreview {
    height: 32px !important;
    width: 150px !important;
    outline: none !important;
    /* This instantly converts the standard light-grey player into a sleek dark-mode player! */
    filter: invert(1) hue-rotate(180deg) brightness(1.2) contrast(1.1) !important;
    border-radius: 16px !important;
}

/* 3. The Send Button - Glowing Neon Emerald */
#btnSendVoice {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 6px 16px !important;
    border: 1px solid #34d399 !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
}

/* 4. The Delete Button - Minimalist Red Ring */
#btnDiscardVoice {
    background: rgba(239, 68, 68, 0.1) !important; /* Very faint red background */
    color: #ef4444 !important;
    border-radius: 50% !important; /* Perfect circle */
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important; /* Thin red border */
    transition: all 0.2s ease !important;
}

/* Hover effect so it fills with red when they are about to delete */
#btnDiscardVoice:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4) !important;
}

/* 5. The Main Record Button */
#btnVoiceToggle {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); /* Premium Blue Gradient */
    color: #ffffff;
    border-radius: 30px !important; /* Perfect Pill shape */
    padding: 8px 20px !important;
    border: 1px solid #60a5fa !important; /* Light blue glowing edge */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease; /* Smooth shrink when clicked */
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Give it that tactile "push" effect when clicked */
#btnVoiceToggle:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.4);
}

/* =========================================
   📢 PREMIUM ANNOUNCEMENT UI
   ========================================= */

/* The Broadcast Button */
.premium-broadcast-btn {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    transition: all 0.2s ease;
}

.premium-broadcast-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(251, 191, 36, 0.4);
}

/* The Live Announcement Card */
.premium-announce-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-left: 5px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

/* Adds a subtle glowing effect inside the card */
.premium-announce-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.1), transparent 70%);
    pointer-events: none;
}

.announce-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.announce-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.announce-time {
    font-size: 0.75rem;
    color: #64748b;
}

.announce-text {
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   🗑️ ANNOUNCEMENT DELETE BUTTON
   ========================================= */

.announce-delete-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    /* Faint red border */
    color: #ef4444;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lights up bright red when the admin hovers over it */
.announce-delete-btn:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
    transform: scale(1.05);
}

.announce-delete-btn:active {
    transform: scale(0.95);
}

/* Master Container Styling */
.premium-master-container {
    padding: 25px;
    border-radius: 16px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Header Alignment */
.profile-header {
    text-align: center;
}

.team-status-banner {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px dashed rgba(245, 158, 11, 0.3);
}

/* Subtle glowing divider line */
.premium-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 10px 0;
}

/* Grid for the bottom sections (Stacks on mobile, side-by-side on desktop) */
.premium-sections-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Inner Panels (Darker contrast to sit inside the main card) */
.premium-inner-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inner-panel {
    background: rgba(0, 0, 0, 0.3) !important;
    /* Forces a darker inset look */
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 12px;
    padding: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.premium-title {
    font-size: 1.1rem;
    margin: 0;
    padding-left: 5px;
}

/* INSTALL APP BUTTON STYLES */
.btn-install-sidebar {
    background: #00e5ff;
    color: #000;
    border: none;
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    transition: 0.2s ease;
}

/* Adds a nice press effect when clicked */
.btn-install-sidebar:active {
    transform: scale(0.95);
}

/* PERMISSIONS MODAL STYLES */
.permissions-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.permissions-box {
    background: #111;
    border: 1px solid #00e5ff;
    border-radius: 10px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    color: #fff;
}

.permissions-box h3 {
    color: #00e5ff;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.permissions-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.permissions-list li {
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.permissions-list i {
    color: #00e5ff;
    font-size: 18px;
}

.btn-accept-permissions {
    background: #00e5ff;
    color: #000;
    border: none;
    padding: 12px;
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-accept-permissions:active {
    transform: scale(0.95);
}

/* Fix voice note size in chat */
.premium-audio-player {
    max-width: 100%;
    height: 40px;
    outline: none;
    border-radius: 20px;
}

/* Make standings table look perfect */
.standings-table td, .standings-table th {
    white-space: nowrap;
}
.standings-table td:nth-child(2) {
    min-width: 140px;
}

/* Fix voice note controls responsive fit */
#voiceNoteControls {
    flex-wrap: wrap;
    justify-content: flex-end;
}
#voiceReviewArea {
    flex-wrap: wrap;
    max-width: 100%;
}
#audioPreview {
    max-width: 140px;
}
.chat-input-row {
    flex-wrap: wrap;
}

/* EPL Switch Button Active State */
body.theme-epl .league-switch-btn.active {
    background: #00ff85;
    color: #000;
    box-shadow: 0 0 10px #00ff85;
    border-color: #00ff85;
}

/* 🦁 eFootball Premier League Theme Overrides */
body.theme-epl {
    background: radial-gradient(circle at top right, rgba(255, 0, 230, 0.88) 0%, var(--bg-dark) 60%) !important;
    background-attachment: fixed;
    --primary-yellow: #f4d03f; /* eFootball Yellow */
    --accent-blue: #ff006a;    /* eFootball Pink */
    --card-bg: rgba(15, 23, 42, 0.9);
}

/* Hide Knockout tab in EPL */
body.theme-epl button[data-filter="knockout"],
body.theme-epl #bracketArea {
    display: none !important;
}
body.theme-epl button[data-filter="league"] {
    width: 100%;
}

/* Home Interface changes for EPL */
body.theme-epl .card {
    background: linear-gradient(145deg, #111827, #0f172a) !important;
    border: 1px solid #ff006a !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 0, 106, 0.15);
    position: relative;
    overflow: hidden;
}
body.theme-epl .card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: #f4d03f;
}

/* Chat for EPL */
body.theme-epl .chat-msg {
    border-radius: 8px 12px 12px 8px !important;
    border-left: 3px solid #ff006a !important;
    background: rgba(15, 23, 42, 0.8) !important;
}
body.theme-epl .chat-msg.me {
    border-left: none !important;
    border-right: 3px solid #f4d03f !important;
    background: rgba(244, 208, 63, 0.1) !important;
}
body.theme-epl .chat-input-row {
    border-top: 1px solid #ff006a !important;
    background: #020b1a !important;
}
body.theme-epl .chat-input-row button {
    background: #ff006a !important;
    color: #fff !important;
}

/* Profile for EPL */
body.theme-epl #managerCardInner > div {
    border: 2px solid #ff006a !important;
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%) !important;
    box-shadow: 0 15px 35px rgba(255, 0, 106, 0.25) !important;
}
body.theme-epl #modalManagerCups,
body.theme-epl #modalManagerForm,
body.theme-epl #modalManagerGoals {
    color: #f4d03f !important; 
}
body.theme-epl #modalManagerPlaystyle {
    background: rgba(255, 0, 106, 0.2) !important;
    border: 1px solid #ff006a !important;
    color: #ff006a !important;
}

/* Matches card for EPL */
body.theme-epl .fixture-card {
    background: linear-gradient(to right, rgba(11, 19, 43, 0.9), rgba(28, 37, 65, 0.9)) !important;
    border: 1px solid rgba(244, 208, 63, 0.3) !important;
    border-left: 5px solid #ff006a !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%) !important;
}
body.theme-epl .fixture-header {
    background: #ff006a !important;
    color: #fff !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}
body.theme-epl .score-box {
    background: rgba(244, 208, 63, 0.1) !important;
    border: 1px solid #f4d03f !important;
    color: #f4d03f !important;
}

/* eFootball loader styles for EPL */
body.theme-epl #premiumLoader {
     background: radial-gradient(circle at top right, rgba(239, 0, 255, 0.89) 0%, var(--bg-dark) 60%); background-attachment: fixed; }


body.theme-epl #premiumLoader div {
    border: 4px solid #ff006a !important;
    border-top: 4px solid #f4d03f !important;
    border-radius: 0 !important; /* Make it square/rhombus for efootball style */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: efootball-spin 1.5s linear infinite !important;
}
body.theme-epl #loaderText {
    color: #f4d03f !important;
    text-shadow: 0 0 10px rgba(255, 0, 106, 0.5);
}

@keyframes efootball-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Premium Cards & Text */
.premium-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
    padding: 25px; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.text-warning { color: #fbbf24; vertical-align: middle; }
.text-success { color: #10b981; vertical-align: middle; }
.text-muted { color: #94a3b8; font-size: 0.9rem; margin-top: 5px; }
.text-center { text-align: center; }

/* Payment Buttons */
.payment-options { display: flex; gap: 15px; margin-top: 20px; }
.btn-pay {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    padding: 20px; border-radius: 12px; cursor: pointer; transition: all 0.2s;
}
.btn-pay:hover { background: rgba(255,255,255,0.08); border-color: #3b82f6; transform: translateY(-3px); }
.btn-pay .price { color: #fff; font-size: 1.5rem; font-weight: 900; }
.btn-pay .desc { color: #94a3b8; font-size: 0.8rem; margin-top: 5px; text-transform: uppercase; }
.btn-pay.gold { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.05); }
.btn-pay.gold:hover { border-color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.btn-pay.gold .price { color: #fbbf24; }

/* Premium Form */
.premium-form label { display: block; color: #cbd5e1; font-size: 0.85rem; margin: 15px 0 5px; text-transform: uppercase; letter-spacing: 1px; }
.premium-form input, .premium-form select {
    width: 100%; padding: 12px 15px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: #fff; font-size: 1rem; outline: none;
}
.premium-form input:focus, .premium-form select:focus { border-color: #3b82f6; }
.btn-submit {
    width: 100%; margin-top: 25px; padding: 15px; background: #3b82f6; color: #fff;
    border: none; border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer;
    text-transform: uppercase; transition: 0.2s;
}
.btn-submit:hover { background: #2563eb; }

/* Verified UI */
.verified-badge {
    display: inline-flex; align-items: center; gap: 5px; background: rgba(16, 185, 129, 0.15);
    color: #10b981; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; border: 1px solid rgba(16,185,129,0.3); margin-bottom: 20px;
}
.team-badge-display { width: 100px; height: 100px; object-fit: contain; border-radius: 50%; background: #000; padding: 5px; border: 2px solid #fbbf24; margin: 0 auto; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 999; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-box { background: #1e293b; padding: 25px; border-radius: 12px; max-width: 350px; text-align: center; border: 1px solid #3b82f6; }
.modal-box h3 { color: #fff; margin-top: 0; }
.modal-box p { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; }
.btn-cancel { flex: 1; padding: 10px; background: transparent; border: 1px solid #64748b; color: #cbd5e1; border-radius: 6px; cursor: pointer; }
.btn-confirm { flex: 1; padding: 10px; background: #10b981; border: none; color: #fff; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* Makes the Admin Modal wider than the User Modal */
.admin-modal-box {
    max-width: 800px !important; /* Wide enough for the 5 columns */
    width: 95%;
    max-height: 85vh; /* Prevents it from going off the screen */
    overflow-y: auto; /* Adds a scrollbar if the list gets too long */
}

/* Prevents the table from squeezing too tightly on mobile phones */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}


/* Inline Dashboard Styles */
.premium-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
    padding: 30px; margin: 20px auto; max-width: 500px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.btn-launch-modal {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%); color: #fff;
    border: none; padding: 15px 30px; border-radius: 8px; font-weight: 900; font-size: 1.1rem;
    cursor: pointer; display: inline-flex; align-items: center; gap: 10px; margin-top: 15px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); text-transform: uppercase; transition: 0.2s;
}
.btn-launch-modal:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6); }

/* Master Modal Overlay & Box */
.modal-overlay { 
    display: none; position: fixed; inset: 0; background: rgba(5, 8, 15, 0.9); 
    z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(8px); 
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; }

.modal-box { 
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); 
    padding: 30px 25px; border-radius: 16px; width: 100%; max-width: 400px; 
    border: 1px solid rgba(59, 130, 246, 0.3); position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-box { transform: scale(1); }

/* Close Button */
.btn-close-modal {
    position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.05);
    border: none; color: #94a3b8; border-radius: 50%; width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s;
}
.btn-close-modal:hover { background: #ef4444; color: #fff; }

/* Reusable Utility Classes */
.text-warning { color: #fbbf24; vertical-align: middle; }
.text-success { color: #10b981; vertical-align: middle; }
.text-muted { color: #94a3b8; font-size: 0.9rem; margin-top: 5px; }
.text-center { text-align: center; }

/* Payment Buttons inside Modal */
.payment-options { display: flex; gap: 15px; }
.btn-pay {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    padding: 20px; border-radius: 12px; cursor: pointer; transition: all 0.2s;
}
.btn-pay:hover { background: rgba(255,255,255,0.08); border-color: #3b82f6; transform: translateY(-3px); }
.btn-pay .price { color: #fff; font-size: 1.5rem; font-weight: 900; }
.btn-pay .desc { color: #94a3b8; font-size: 0.8rem; margin-top: 5px; text-transform: uppercase; font-weight: bold; }
.btn-pay.gold { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.05); }
.btn-pay.gold:hover { border-color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.btn-pay.gold .price { color: #fbbf24; }

/* Form inside Modal */
.premium-form label { display: block; color: #cbd5e1; font-size: 0.85rem; margin: 15px 0 5px; text-transform: uppercase; font-weight: bold; }
.premium-form input, .premium-form select {
    width: 100%; padding: 12px 15px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: #fff; font-size: 1rem; outline: none; box-sizing: border-box;
}
.premium-form input:focus, .premium-form select:focus { border-color: #3b82f6; }
.btn-submit {
    width: 100%; margin-top: 25px; padding: 15px; background: #3b82f6; color: #fff;
    border: none; border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer;
    text-transform: uppercase; transition: 0.2s; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-submit:hover { background: #2563eb; }

/* Step 3 Modal Actions */
.modal-actions { display: flex; gap: 10px; }
.btn-cancel { flex: 1; padding: 12px; background: transparent; border: 1px solid #64748b; color: #cbd5e1; border-radius: 8px; cursor: pointer; font-weight: bold; }
.btn-cancel:hover { background: rgba(255,255,255,0.05); }
.btn-confirm { flex: 1; padding: 12px; background: #10b981; border: none; color: #fff; border-radius: 8px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }

/* Verified Badge in Dashboard */
.verified-badge {
    display: inline-flex; align-items: center; gap: 5px; background: rgba(16, 185, 129, 0.15);
    color: #10b981; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; border: 1px solid rgba(16,185,129,0.3); margin-bottom: 20px;
}
.team-badge-display { width: 100px; height: 100px; object-fit: contain; border-radius: 50%; background: #000; padding: 5px; border: 2px solid #fbbf24; margin: 0 auto; display: block; }

/* 🌟 PREMIUM ADMIN DATA GRID 🌟 */
.premium-table-container {
    width: 100%;
    overflow-x: auto;
    background: #1e1e2f; /* Sleek dark card */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    margin-top: 20px;
    border: 1px solid #2a2a3f;
}

.premium-admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    color: #e2e8f0;
}

.premium-admin-table th {
    background: #171724;
    padding: 14px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    border-bottom: 2px solid #2a2a3f;
}

.premium-admin-table td {
    padding: 16px;
    border-bottom: 1px solid #2a2a3f;
    font-size: 0.9rem;
    vertical-align: middle;
}

.premium-admin-table tr:last-child td {
    border-bottom: none;
}

.premium-admin-table tr:hover {
    background: #252538; /* Highlight on hover */
}

/* Beautiful Badges for Data */
.badge-league {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(251, 191, 36, 0.3);
}

.badge-amount {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.premium-assign-btn {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.premium-assign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.5);
}

/* ==========================================
   📱 GLOBAL TOGGLE BUTTON & RESPONSIVE TABLE
   ========================================== */
.premium-table-container {
    width: 100%;
    overflow-x: auto; /* Allow horizontal scroll if they force email open on tiny screens */
    box-sizing: border-collapse;
}

.premium-admin-table {
    width: 100%;
    table-layout: fixed; 
    border-collapse: collapse;
    min-width: 500px; /* Prevent it from shrinking to unreadable sizes */
}

.premium-admin-table th,
.premium-admin-table td {
    padding: 10px 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: middle;
}

/* Default Desktop Widths */
.premium-admin-table th:nth-child(1), .premium-admin-table td:nth-child(1) { width: 25%; } 
.premium-admin-table th:nth-child(2), .premium-admin-table td:nth-child(2) { width: 25%; } /* Email */
.premium-admin-table th:nth-child(3), .premium-admin-table td:nth-child(3) { width: 20%; } 
.premium-admin-table th:nth-child(4), .premium-admin-table td:nth-child(4) { width: 10%; } 
.premium-admin-table th:nth-child(5), .premium-admin-table td:nth-child(5) { width: 10%; } 
.premium-admin-table th:nth-child(6), .premium-admin-table td:nth-child(6) { width: 10%; } 

/* The Toggle Button (Hidden on Desktop) */
.mobile-toggle-btn {
    display: none;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.mobile-toggle-btn:hover { background: #334155; color: #fff; }
.mobile-toggle-btn .material-icons-round { font-size: 16px; }

/* Mobile Adjustments */
@media (max-width: 640px) {
    .premium-admin-table th, 
    .premium-admin-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    /* Show the Toggle Button */
    .mobile-toggle-btn {
        display: flex;
    }

    /* Hide Email Class initially on mobile */
    .desktop-only-col {
        display: none;
    }

    /* Base Mobile Widths (When Email is HIDDEN) */
    .premium-admin-table th:nth-child(1), .premium-admin-table td:nth-child(1) { width: 35%; }
    .premium-admin-table th:nth-child(3), .premium-admin-table td:nth-child(3) { width: 25%; }
    .premium-admin-table th:nth-child(4), .premium-admin-table td:nth-child(4) { width: 13%; }
    .premium-admin-table th:nth-child(5), .premium-admin-table td:nth-child(5) { width: 12%; }
    .premium-admin-table th:nth-child(6), .premium-admin-table td:nth-child(6) { width: 15%; }
    
    /* When the table has the 'show-emails' class applied by JS */
    .premium-admin-table.show-emails .desktop-only-col {
        display: table-cell; /* Reveal the email column */
    }
    
    /* Adjust widths when Email is SHOWN on mobile */
    .premium-admin-table.show-emails th:nth-child(1), .premium-admin-table.show-emails td:nth-child(1) { width: 25%; }
    .premium-admin-table.show-emails th:nth-child(2), .premium-admin-table.show-emails td:nth-child(2) { width: 30%; } /* Email */
    .premium-admin-table.show-emails th:nth-child(3), .premium-admin-table.show-emails td:nth-child(3) { width: 20%; }
    .premium-admin-table.show-emails th:nth-child(4), .premium-admin-table.show-emails td:nth-child(4) { width: 8%; }
    .premium-admin-table.show-emails th:nth-child(5), .premium-admin-table.show-emails td:nth-child(5) { width: 8%; }
    .premium-admin-table.show-emails th:nth-child(6), .premium-admin-table.show-emails td:nth-child(6) { width: 9%; }
}

/* ==========================================
   🟢 DRAGGABLE FLOATING PAID BADGE CSS
   ========================================== */
.floating-paid-badge {
    position: fixed;
    bottom: 80px; /* Starting position */
    right: 25px;
    background: linear-gradient(135deg, #10b981, #059669); 
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUpFade 0.6s ease-out forwards;
    
    /* 🌟 Drag specific styles */
    cursor: grab; /* Shows the hand icon on desktop */
    touch-action: none; /* Prevents the screen from scrolling when dragging on mobile */
    user-select: none; /* Prevents accidental text highlighting while dragging */
}

.floating-paid-badge:active {
    cursor: grabbing; /* Closes the hand icon when clicked */
}

/* ==========================================
   🟢 PREMIUM CIRCLE BADGE
   ========================================== */
.premium-circle-badge {
    position: fixed;
    bottom: 80px; 
    right: 25px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981, #059669); 
    color: white;
    border-radius: 50%; /* Makes it a perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5), 0 0 0 2px rgba(255,255,255,0.2);
    z-index: 9998;
    cursor: grab;
    touch-action: none; 
    user-select: none;
    animation: slideUpFade 0.6s ease-out forwards, premiumPulse 2s infinite ease-in-out;
}

.premium-circle-badge:active {
    cursor: grabbing;
}

.premium-circle-badge .material-icons-round {
    font-size: 28px;
}

@keyframes premiumPulse {
    0% { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4), 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4), 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================
   🟢 PREMIUM STATUS MODAL
   ========================================== */
.premium-status-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-status-modal.active {
    display: flex;
    opacity: 1;
}

.premium-modal-content {
    background: #1e293b;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.premium-status-modal.active .premium-modal-content {
    transform: translateY(0);
}

.premium-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.text-emerald { color: #10b981; }

.close-modal-btn {
    background: none; border: none; color: #94a3b8; font-size: 24px; cursor: pointer;
}

.premium-caption { color: #94a3b8; font-size: 0.9rem; margin-bottom: 20px; line-height: 1.5; }

.status-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-box.pending { border-left: 3px solid #fbbf24; }

.status-label { color: #cbd5e1; font-size: 0.85rem; font-weight: bold; }
.status-value { color: #fff; font-size: 0.95rem; font-weight: bold; }
.status-value.highlight { color: #10b981; }

.premium-footer-text {
    margin-top: 20px; font-size: 0.8rem; color: #64748b; text-align: center; line-height: 1.5;
}

/* ==========================================
   🟢 DYNAMIC MODAL FRANCHISE CARDS
   ========================================== */
.modal-league-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.modal-league-card:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(16, 185, 129, 0.3);
}

.modal-team-badge {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.modal-team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-team-name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: bold;
    margin: 0;
}

.modal-league-name {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-status-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 4px;
}

/* ==========================================
   🌐 IN-APP BROWSER STYLES
   ========================================== */
.in-app-browser-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.in-app-browser-box {
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUpInApp 0.3s ease-out forwards;
}

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

.in-app-header {
    background: #1e293b;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.in-app-title {
    color: #f8fafc;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.in-app-actions {
    display: flex;
    gap: 10px;
}

.in-app-btn {
    background: #334155;
    color: #cbd5e1;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.in-app-btn:hover {
    background: #475569;
    color: #fff;
}

.in-app-btn.close-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.in-app-btn.close-btn:hover {
    background: #ef4444;
    color: #fff;
}

.in-app-content {
    flex: 1;
    width: 100%;
    background: #fff; /* White background for external sites */
}

.in-app-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
