/* ==========================================================================
   XTANK HTML5 CSS STYLESHEET
   ========================================================================== */

:root {
  --bg-dark: #0a0a0f;
  --bg-panel: rgba(16, 16, 28, 0.65);
  --border-glow: rgba(0, 242, 254, 0.15);
  
  /* Cyberpunk Palette */
  --neon-orange: #ff9500;
  --neon-cyan: #00f2fe;
  --neon-purple: #af52de;
  --neon-red: #ff3b30;
  --neon-green: #34c759;
  
  --text-primary: #f0f0f5;
  --text-muted: #9ba0b0;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  --transition-speed: 0.25s;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Neon Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  pointer-events: none;
}

.grid-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, var(--bg-dark) 80%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(175, 82, 222, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.6);
}

/* Typography & Utility classes */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

.glow-text {
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  font-weight: 800;
  color: #fff;
}
.glow-text span {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

.text-cyan { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0,242,254,0.3); }
.text-purple { color: var(--neon-purple); text-shadow: 0 0 8px rgba(175,82,222,0.3); }
.text-orange { color: var(--neon-orange); text-shadow: 0 0 8px rgba(255,149,0,0.3); }
.text-danger { color: var(--neon-red); text-shadow: 0 0 8px rgba(255,59,48,0.3); }
.text-success { color: var(--neon-green); text-shadow: 0 0 8px rgba(52,199,89,0.3); }

.hidden {
  display: none !important;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 12px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

select.btn {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23ffffff' d='M0 0l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px !important;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.primary-btn {
  background: var(--neon-cyan);
  color: #000;
}
.primary-btn:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.orange-btn {
  background: var(--neon-orange);
  color: #000;
}
.orange-btn:hover {
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 149, 0, 0.5);
}

.danger-btn {
  background: var(--neon-red);
}
.danger-btn:hover {
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
}

.admin-btn {
  background: linear-gradient(135deg, var(--neon-orange), var(--neon-purple));
  border: 1px solid rgba(255,255,255,0.2);
}
.admin-btn:hover {
  box-shadow: 0 0 15px rgba(175, 82, 222, 0.4);
}

/* Forms & Inputs */
.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.input-group input {
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  border-radius: 6px;
  transition: all var(--transition-speed);
}

.input-group input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

/* App Core Container */
#app {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ==========================================================================
   1. AUTHENTICATION STYLES
   ========================================================================== */
.auth-card {
  width: 420px;
  padding: 40px 30px;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.auth-header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.auth-header .subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.form-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}

.auth-submit-btn {
  width: 100%;
}

.auth-toggle {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-toggle a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.divider span {
  padding: 0 10px;
}

.social-login-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-btn {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.social-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

/* ==========================================================================
   2. LOBBY / DASHBOARD STYLES
   ========================================================================== */
.lobby-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-rows: auto 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  animation: fadeIn 0.4s ease-out;
}

.lobby-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neon-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(175,82,222,0.5);
}

.user-role {
  font-size: 0.75rem;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

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

.lobby-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.motd-card {
  padding: 20px;
}

.motd-content {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(0,0,0,0.2);
  padding: 12px;
  border-left: 2px solid var(--neon-cyan);
  border-radius: 0 6px 6px 0;
}

.leaderboard-card {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.table-container {
  overflow-y: auto;
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 10px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

th {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  background: #0f0f18;
}

tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

tbody tr:first-child td {
  color: var(--neon-orange);
  font-weight: 600;
}

/* Tank Designer Portal */
.tank-designer {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.design-section {
  margin-bottom: 25px;
}

.design-section h4 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.chassis-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.chassis-card {
  cursor: pointer;
}

.chassis-card input {
  display: none;
}

.chassis-card .card-inner {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  transition: all var(--transition-speed);
  height: 100%;
}

.chassis-card .card-inner h5 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.chassis-card .card-inner p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.chassis-card input:checked + .card-inner {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.weapon-selector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weapon-option-btn input {
  display: none;
}

.weapon-option-btn span {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.weapon-option-btn input:checked + span {
  background: rgba(255, 149, 0, 0.15);
  border-color: var(--neon-orange);
  color: var(--neon-orange);
  box-shadow: 0 0 10px rgba(255, 149, 0, 0.2);
}

.designer-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 10px;
  margin-bottom: 30px;
  background: rgba(0,0,0,0.15);
  padding: 15px;
  border-radius: 8px;
}

.stat-bar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--neon-cyan);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.designer-join-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  margin-top: auto;
}

/* ==========================================================================
   3. GAMEPLAY CANVAS STYLES
   ========================================================================== */
.game-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  animation: fadeIn 0.4s ease-out;
}

.game-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  background: #050508;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

#gameCanvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: #000;
}

/* Respawn Overlay */
.respawn-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.respawn-card {
  padding: 30px;
  text-align: center;
  max-width: 400px;
  border-color: var(--neon-red);
}

.respawn-card h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* In-game HUD */
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
}

.hud-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hud-bars {
  width: 320px;
  gap: 10px;
}

.hud-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 80px;
}

.hud-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
  overflow: hidden;
}

.hud-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.15s ease;
}

.health-fill {
  background: linear-gradient(90deg, var(--neon-red), var(--neon-orange));
}

.energy-fill {
  background: linear-gradient(90deg, var(--neon-cyan), #007aff);
}

.hud-value-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 70px;
  text-align: right;
}

.hud-weapon {
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 0 30px;
}

.hud-meta-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hud-weapon h3 {
  font-size: 1.2rem;
  margin: 2px 0;
}

.ammo-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-radar {
  align-items: center;
}

#radarCanvas {
  background: #000;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 50%;
  margin-bottom: 4px;
}

.leave-btn {
  height: fit-content;
}

/* Sidebar Columns */
.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.players-section {
  height: 240px;
}

.section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 6px;
}

.voice-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  background: rgba(0,0,0,0.2);
  padding: 8px 12px;
  border-radius: 8px;
}

.voice-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.mic-off {
  background: rgba(255,255,255,0.05);
}

.mic-on {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 10px rgba(52,199,89,0.3);
}

.visualizer-container {
  flex: 1;
  height: 25px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

#voiceVisualizer {
  display: block;
}

.active-users-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-comm-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  font-size: 0.8rem;
  border-left: 2px solid transparent;
}

.player-comm-badge.speaking {
  border-left-color: var(--neon-green);
  background: rgba(52,199,89,0.05);
}

.speaking-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: pulse 1s infinite alternate;
}

.chat-section {
  flex: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.chat-msg {
  word-break: break-word;
  line-height: 1.4;
}

.chat-msg .sender {
  color: var(--neon-cyan);
  font-weight: 600;
  margin-right: 5px;
}

.chat-msg.admin-msg .sender {
  color: var(--neon-orange);
  text-shadow: 0 0 5px rgba(255,149,0,0.5);
}

.chat-msg.system-msg {
  color: var(--text-muted);
  font-style: italic;
}
.chat-msg.system-join { color: var(--neon-green); font-style: italic; }
.chat-msg.system-exit { color: var(--text-muted); font-style: italic; }
.chat-msg.system-kill { color: var(--neon-red); font-weight: 600; }
.chat-msg.system-cheat { color: var(--neon-purple); font-weight: 600; }
.chat-msg.system-ban { color: var(--neon-red); font-weight: 800; border-left: 2px solid var(--neon-red); padding-left: 5px; }

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--neon-purple);
}

/* ==========================================================================
   4. MODALS & DIALOGS (NATIVE)
   ========================================================================== */
dialog::backdrop {
  background-color: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(5px);
}

dialog {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f0f18;
  color: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  margin: auto;
}

.dialog-content {
  padding: 30px;
  width: 100%;
}

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

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color var(--transition-speed);
}
.btn-close:hover {
  color: var(--neon-red);
}

/* Moderator Panel Tab Content */
.admin-dialog {
  width: 90%;
  max-width: 960px;
  max-height: 85vh;
  overflow-y: auto;
}

.admin-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.admin-subpanel {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 15px;
}

.admin-subpanel.full-width {
  grid-column: 1 / -1;
}

.admin-subpanel h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 6px;
}

.moderator-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.mod-user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  font-size: 0.85rem;
}

.mod-actions {
  display: flex;
  gap: 6px;
}

.mod-actions .btn {
  padding: 4px 8px;
  font-size: 0.7rem;
}

/* Cheats list styling */
.cheats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cheat-toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
}

.cheat-toggle-item input {
  accent-color: var(--neon-cyan);
  width: 16px;
  height: 16px;
}

.motd-editor-section textarea {
  width: 100%;
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  resize: none;
  margin-bottom: 10px;
}
.motd-editor-section textarea:focus {
  outline: none;
  border-color: var(--neon-orange);
}

/* Mock Social Login Dialogs */
.mock-dialog {
  width: 360px;
  border-radius: 8px;
  background: #fff;
  color: #3c4043;
}

.mock-dialog-header {
  padding: 25px 24px 10px 24px;
  text-align: center;
}

.mock-dialog-header h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 10px;
}

.oauth-logo {
  width: 32px;
  height: 32px;
}

.mock-dialog-body {
  padding: 0 24px 20px 24px;
  font-size: 0.9rem;
  color: #5f6368;
  text-align: center;
}

.mock-dialog-body strong {
  color: #202124;
}

.mock-dialog-body .input-group {
  margin-top: 20px;
  text-align: left;
}

.mock-dialog-body input {
  background: #f1f3f4;
  border: 1px solid #dadce0;
  color: #202124;
}

.oauth-help {
  font-size: 0.75rem;
  margin-top: 12px;
}

.oauth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-size: 0.8rem;
  color: #1a73e8;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(26, 115, 232, 0.2);
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.mock-dialog-footer {
  padding: 10px 24px 20px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #f1f3f4;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.mock-dialog-footer .btn {
  text-transform: none;
  font-family: inherit;
  font-weight: 500;
  border-radius: 4px;
  font-size: 0.85rem;
  padding: 8px 16px;
  color: #1a73e8;
  background: transparent;
}
.mock-dialog-footer .btn:hover {
  background: rgba(26, 115, 232, 0.04);
}
.mock-dialog-footer .primary-btn {
  background: #1a73e8;
  color: #fff;
}
.mock-dialog-footer .primary-btn:hover {
  background: #1557b0;
  box-shadow: none;
}

/* TikTok Dialog overrides */
#tiktokModal {
  background: #121212;
  color: #fff;
  border-color: #2f2f2f;
}
#tiktokModal h2 {
  color: #fff;
}
.tiktok-logo-symbol {
  font-size: 2.2rem;
  text-shadow: -2px 0 var(--neon-cyan), 2px 0 var(--neon-red);
}
.tiktok-primary-btn {
  background: #fe2c55 !important;
  color: #fff !important;
}
.tiktok-primary-btn:hover {
  background: #ef294f !important;
}

/* Instagram Dialog overrides */
#instagramModal {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  color: #fff;
  border: none;
}
#instagramModal .mock-dialog-body input {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
#instagramModal h2 {
  color: #fff;
}
#instagramModal p, #instagramModal label {
  color: rgba(255,255,255,0.9);
}
.instagram-logo-symbol {
  font-size: 2.2rem;
}
.instagram-primary-btn {
  background: rgba(255,255,255,0.25) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  color: #fff !important;
}
.instagram-primary-btn:hover {
  background: rgba(255,255,255,0.35) !important;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
  from { transform: scale(1); box-shadow: 0 0 2px rgba(52,199,89,0.4); }
  to { transform: scale(1.15); box-shadow: 0 0 8px rgba(52,199,89,0.8); }
}
