/* Global Finance Pro - Modern Financial UI */
/* Glassmorphism + Dark Mode + Neon Finance Theme */

:root {
  /* Dark Mode Colors - True Black for Android */
  --dark-bg: #000000;
  --dark-card: rgba(10, 10, 15, 0.8);
  --dark-border: rgba(255, 255, 255, 0.1);
  --dark-text: #e0e0ff;
  --dark-accent: #00d4ff;
  --dark-neon: #00f0ff;
  
  /* Light Mode Colors */
  --light-bg: #f5f7ff;
  --light-card: rgba(255, 255, 255, 0.8);
  --light-border: rgba(0, 0, 0, 0.1);
  --light-text: #1a1a2e;
  --light-accent: #0066cc;
  
  /* Common */
  --primary: #00d4ff;
  --success: #00ff88;
  --warning: #ffaa00;
  --danger: #ff4444;
  --glass-bg: rgba(30, 30, 50, 0.5);
  --glass-border: rgba(255, 255, 50, 0.2);
  --gradient: linear-gradient(135deg, #00d4ff, #00ff88);
  --transition: all 0.3s ease;
  --shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

/* Theme Classes */
[data-theme="dark"] {
  --bg: var(--dark-bg);
  --card: var(--dark-card);
  --border: var(--dark-border);
  --text: var(--dark-text);
  --accent: var(--dark-accent);
}

[data-theme="light"] {
  --bg: var(--light-bg);
  --card: var(--light-card);
  --border: var(--light-border);
  --text: var(--light-text);
  --accent: var(--light-accent);
}

/* Base Styles - Mobile First */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  transition: var(--transition);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-size: 16px; /* Base font size for mobile */
}

/* Mobile-first typography */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Touch-friendly elements */
button, input, select, textarea {
  -webkit-appearance: none;
  appearance: none;
}

/* Ensure no horizontal overflow */
.container {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Android Chrome fixes */
@supports (-webkit-appearance: none) {
  html {
    scroll-behavior: smooth;
  }
}

/* Mobile-first grid adjustments */
.cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gainers-losers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Top Searched Pages */
.search-pages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.search-page-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  display: block;
}

.search-page-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

/* Glassmorphism Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--card);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

.nav-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.theme-toggle,
.mobile-menu-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
  transform: scale(1.1);
  background: var(--primary);
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  opacity: 0.8;
}

/* Dashboard */
.dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.dashboard-section {
  margin-bottom: 3rem;
}

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

.section-header h2 {
  font-size: 1.8rem;
  color: var(--primary);
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem 0.75rem 3rem;
  border-radius: 10px;
  width: 250px;
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.search-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.2rem;
}

/* Cards Container */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.currency-card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.currency-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.currency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.currency-flag {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.currency-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.currency-code {
  color: var(--primary);
  font-size: 0.9rem;
  opacity: 0.8;
}

.currency-rate {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
  margin-top: 0.5rem;
}

/* Trending */
.trending-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.trending-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  min-width: 150px;
  text-align: center;
  flex-shrink: 0;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.crypto-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
}

.crypto-table th,
.crypto-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.crypto-table th {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.crypto-table tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

.price-positive {
  color: var(--success);
}

.price-negative {
  color: var(--danger);
}

/* Gainers/Losers */
.gainers-losers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.gainers-list,
.losers-list {
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
}

.gainer-item,
.loser-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

/* Converter */
.converter-container {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  width: 100%;
}

.converter-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: end;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.amount-input,
.currency-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.875rem;
  border-radius: 10px;
  font-size: 1rem;
  flex: 1;
  min-width: 120px;
  width: 100%;
  transition: var(--transition);
}

.amount-input:focus,
.currency-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.converter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.swap-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  min-width: 50px;
  height: 44px;
  transition: var(--transition);
  flex-shrink: 0;
}

.swap-btn:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: var(--shadow);
}

.convert-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  min-width: 100px;
  height: 44px;
  transition: var(--transition);
  flex-shrink: 0;
}

.convert-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.conversion-result {
  text-align: center;
  color: var(--primary);
  font-size: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  word-break: break-word;
}

.rate-info {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.7;
  margin-top: 0.25rem;
}

.error-message {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.75rem;
  border-radius: 10px;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Calculator Grid */
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.calc-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.calc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.calc-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.calc-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Ludo Preview */
.ludo-preview {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
}

.ludo-board-preview {
  margin-bottom: 1.5rem;
}

.player-pieces {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.piece {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.piece.red { background: #ff4444; }
.piece.blue { background: #4444ff; }
.piece.green { background: #44ff44; }
.piece.yellow { background: #ffff44; }

.dice-preview {
  font-size: 1.2rem;
  color: var(--primary);
}

.btn-play-ludo {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-play-ludo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* Watchlist */
.watchlist-container {
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
}

.watchlist-empty {
  opacity: 0.6;
  font-style: italic;
}

/* Ad Slots */
.ad-slot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.ad-header {
  margin-bottom: 2rem;
}

.ad-footer {
  margin-top: 2rem;
}

.ad-placeholder {
  color: var(--primary);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn-load-more {
  display: block;
  margin: 0 auto;
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-load-more:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* Android & Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .btn-play-ludo,
  .theme-toggle,
  .mobile-menu-btn,
  .btn-load-more {
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.3);
    tap-highlight-color: rgba(0, 212, 255, 0.3);
  }
  
  .currency-card,
  .calc-card {
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.2);
    tap-highlight-color: rgba(0, 212, 255, 0.2);
  }
}

/* Responsive Design */
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .dashboard {
    padding: 0 1.5rem;
  }
  
  .cards-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .calculator-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 0 1rem;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--card);
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0;
    z-index: 1001;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 0.5rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .dashboard {
    padding: 0 1rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-box .search-input {
    width: 100%;
  }
  
  .gainers-losers {
    grid-template-columns: 1fr;
  }
  
  .currency-card {
    min-width: 100%;
    padding: 1rem;
  }
  
  .converter-box {
    flex-direction: column;
    width: 100%;
  }
  
  .converter-actions {
    flex-direction: row;
    width: 100%;
  }
  
  .swap-btn {
    transform: rotate(90deg);
    align-self: center;
    width: 100%;
    max-width: 200px;
  }
  
  .convert-btn {
    width: 100%;
    max-width: 200px;
  }
  
  .conversion-result {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .crypto-table th,
  .crypto-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .dashboard {
    padding: 0 0.5rem;
  }
  
  .dashboard-section {
    margin-bottom: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.3rem;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
  }
  
  .calc-card {
    padding: 1rem;
  }
  
  .calc-icon {
    font-size: 2rem;
  }
  
  .auth-container {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }
  
  .ludo-board {
    width: 280px;
    height: 280px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* Neon Glow */
.neon-glow {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Ludo Game Styles */
.ludo-game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.ludo-board {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card) 0%, var(--bg) 100%);
  position: relative;
  border: 4px solid var(--primary);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 5px;
  padding: 10px;
}

.player-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.red-home {
  grid-column: 1;
  grid-row: 1;
  border: 2px solid #ff4444;
}

.blue-home {
  grid-column: 3;
  grid-row: 1;
  border: 2px solid #4444ff;
}

.green-home {
  grid-column: 1;
  grid-row: 3;
  border: 2px solid #44ff44;
}

.yellow-home {
  grid-column: 3;
  grid-row: 3;
  border: 2px solid #ffff44;
}

.center-path {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  padding: 15px;
}

.path-cell {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--primary);
}

.center-star {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.ludo-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.dice-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dice {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.dice:hover {
  transform: scale(1.1) rotate(180deg);
}

.dice.rolling {
  animation: spin 0.5s ease-in-out;
}

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

.dice-history {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-turn {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  background: var(--card);
  border-radius: 10px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Calculator Styles */
.calc-display {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  min-height: 80px;
  word-break: break-all;
}

.btn-num, .btn-op, .btn-ac, .btn-eq {
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.btn-num:hover, .btn-op:hover {
  background: var(--primary);
  color: white;
}

.btn-ac {
  color: var(--warning);
}

.btn-ac:hover {
  background: var(--warning);
  color: white;
}

.btn-eq {
  background: var(--primary);
  color: white;
}

.btn-eq:hover {
  transform: scale(1.1);
}

.calc-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Auth Container */
.auth-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
}

.admin-info {
  background: rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 2rem;
}

/* Ludo Preview */
.ludo-preview {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
}

.ludo-board-preview {
  margin-bottom: 1.5rem;
}

.player-pieces {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.piece {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.piece.red { background: #ff4444; }
.piece.blue { background: #4444ff; }
.piece.green { background: #44ff44; }
.piece.yellow { background: #ffff44; }

.dice-preview {
  font-size: 1.2rem;
  color: var(--primary);
}

.btn-play-ludo {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-play-ludo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* Gainers/Losers */
.gainers, .losers {
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border);
}

.gainers-list, .losers-list {
  background: var(--card);
  border-radius: 12px;
  padding: 1rem;
}

.gainer-item, .loser-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.gainer-item:last-child, .loser-item:last-child {
  border-bottom: none;
}

/* Input Group */
.input-group {
  margin-bottom: 1rem;
}

/* OTP Container */
.otp-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.otp-input {
  width: 45px;
  height: 45px;
  text-align: center;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.timer {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--warning);
}