/* ==========================================================================
   BOYUTIX — ULTRA-MODERN P2P VIDEO CHAT DESIGN SYSTEM
   Modern, Sleek, Dead-Simple Video Chat (boyutix.me)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #0a0b10;
  --bg-surface: #121520;
  --bg-card: #181c2b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.2);

  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-red: #ef4444;
  --accent-gold: #f59e0b;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================================================
   CLEAN TOP NAVBAR & ULTRA-COOL CYBER BRAND
   ========================================================================== */

.app-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.brand-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.brand-wrap:hover::before {
  left: 150%;
}

.brand-wrap:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.brand-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon {
  height: 38px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.45));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.brand-wrap:hover .brand-icon {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.8));
}

.brand-live-dot {
  position: absolute;
  bottom: 0px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #0b0f19;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBrandLive 2s infinite ease-in-out;
}

@keyframes pulseBrandLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.brand-text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #38bdf8 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
}

.brand-domain-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.2px;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.brand-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid transparent;
  background-clip: padding-box;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(99, 102, 241, 0.4);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.user-profile-pill::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #3b82f6, #6366f1);
  background-size: 300% 100%;
  z-index: -1;
  animation: bgPan 4s linear infinite;
  border-radius: 999px;
  opacity: 0.7;
}

@keyframes bgPan {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.user-profile-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45), inset 0 0 0 1px rgba(129, 140, 248, 0.8);
}

.user-profile-pill i {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.8));
}

.btn-lang {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-lang:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   MAIN DASHBOARD / SPLIT VIEW
   ========================================================================== */

.main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  gap: 16px;
}
/* Google #1 SEO Headline Banner */
.seo-banner-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-bottom: 8px;
}

.seo-main-h1 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fed7aa;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  margin: 0;
}

.seo-sub-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Quick Preference Bar */
.preference-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 18px;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.clean-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.clean-select:focus {
  border-color: var(--accent-blue);
}

.vip-badge-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.online-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dot-green {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

/* ==========================================================================
   BOYUTIX DUAL VIDEO ARENA (ULTRA-CLEAN SPLIT)
   ========================================================================== */

.video-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 480px;
  position: relative;
}

.video-box {
  background: #000000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-box-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

/* Standby / Placeholder Screen */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #161a29 0%, #0c0e17 100%);
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  z-index: 10;
}

.placeholder-icon {
  font-size: 3rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.placeholder-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.placeholder-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 300px;
}

/* ==========================================================================
   BOTTOM MASTER ACTION BAR
   ========================================================================== */

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  gap: 16px;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Master Primary Start & Next Buttons */
.btn-primary-action {
  background: var(--accent-green);
  color: #ffffff;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary-action:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
}

.btn-next-action {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 14px 38px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-next-action:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.btn-stop-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-stop-action:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.tool-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tool-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.tool-btn-danger {
  color: var(--text-muted);
}

.tool-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

/* ==========================================================================
   UNIFIED STAGE ARENA (ZERO-SCROLL SPLIT VIEW ON DESKTOP)
   ========================================================================== */

.stage-arena {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  position: relative;
}

.stage-media-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.stage-chat-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-chat-area.chat-minimized {
  display: none !important;
}

@media (max-width: 1024px) {
  .stage-arena {
    display: flex;
    flex-direction: column;
  }
  .stage-chat-area {
    width: 100%;
  }
}

/* ==========================================================================
   REDESIGNED MODERN ULTRA-TRANSPARENT GLASS CHAT
   ========================================================================== */

.chat-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  background: transparent;
  border: none;
  padding: 10px;
  gap: 10px;
  position: relative;
}

.chat-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #f1f5f9;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Live Translate Badge Button in Chat Header */
.chat-translate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.chat-translate-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.chat-translate-pill.inactive {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.chat-lang-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.chat-lang-select:focus {
  border-color: #38bdf8;
}

.btn-chat-tool {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-chat-tool:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.chat-stream {
  flex: 1;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 4px 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.chat-stream::-webkit-scrollbar {
  width: 5px;
}

.chat-stream::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.chat-system-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 2px 0;
  text-align: center;
}

/* Chat Message Bubbles */
.chat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: chatFadeIn 0.25s ease forwards;
}

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

.chat-msg-self {
  align-self: flex-end;
}

.chat-msg-peer {
  align-self: flex-start;
}

.chat-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg-self .chat-bubble {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(79, 70, 229, 0.65));
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #ffffff;
  border-bottom-right-radius: 3px;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.chat-msg-peer .chat-bubble {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-bottom-left-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-translated-original {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 4px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-translation-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.chat-unread-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseLiveDot 1.2s infinite ease-in-out;
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
  padding: 0 4px;
}

.chat-msg-self .chat-msg-meta {
  justify-content: flex-end;
}

.chat-msg-author {
  font-weight: 600;
}

.chat-msg-self .chat-msg-author {
  color: #818cf8;
}

.chat-msg-peer .chat-msg-author {
  color: var(--accent-blue);
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}

.chat-input-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.chat-text-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 12px 46px 12px 18px;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.chat-text-input:focus {
  border-color: #6366f1;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
}

.btn-emoji-quick {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.8;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-emoji-quick:hover {
  transform: scale(1.2);
  opacity: 1;
}

.btn-send-glowing {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.btn-send-glowing:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.7);
}

.btn-send-glowing:active {
  transform: scale(0.95);
}

/* ==========================================================================
   MODALS (18+ AGE GATE, PROFILE, REPORT)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

#authModal {
  z-index: 1300 !important;
}

#googleFastModal {
  z-index: 1500 !important;
}

#liveHubModal {
  z-index: 1000 !important;
}

.clean-modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-title-clean {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-desc-clean {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.form-group-clean {
  margin-bottom: 16px;
}

.form-label-clean {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.clean-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.clean-input:focus {
  border-color: var(--accent-blue);
}

.social-btns-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.social-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.social-btn.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.checkbox-clean-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-clean-row input {
  margin-top: 2px;
  accent-color: var(--accent-green);
  width: 16px;
  height: 16px;
}

.btn-full-confirm {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #3b82f6 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-full-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-full-confirm:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-full-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

#btnSubmitRegister {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #0284c7 100%) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

#btnSubmitRegister:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #0369a1 100%) !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5) !important;
}



.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 16px 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.hidden {
  display: none !important;
}

/* Stealth IP Shield & AI Program Badges */
.stealth-shield-badge {
  transition: all 0.2s ease;
  user-select: none;
}
.stealth-shield-badge:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  transform: translateY(-1px);
}

#btnOpenDatasetModal {
  transition: all 0.2s ease;
  user-select: none;
}
#btnOpenDatasetModal:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   DISTINCT ACTIVE HIGHLIGHT FOR FILTERS, OVERLAYS & VOICE PRESETS
   ========================================================================== */

.filter-btn, .overlay-btn, .voice-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  text-align: left;
}

.filter-btn:hover, .overlay-btn:hover, .voice-btn:hover {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.filter-btn.active, .overlay-btn.active, .voice-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(79, 70, 229, 0.45)) !important;
  border: 1px solid #818cf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.45), inset 0 0 8px rgba(129, 140, 248, 0.2) !important;
  font-weight: 700 !important;
}

.filter-btn.active::after, .overlay-btn.active::after, .voice-btn.active::after {
  content: '✓';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 900;
}

/* ==========================================================================
   P2P FRIEND SYSTEM STYLING
   ========================================================================== */

.nav-pill-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-pill-btn:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.badge-count {
  background: #6366f1;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-partner-friend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(79, 70, 229, 0.5));
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-partner-friend:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(79, 70, 229, 0.7));
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

/* Floating Friend Request Toast */
.friend-request-toast {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 60;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.35);
  animation: slideInDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 330px;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.friend-req-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.friend-req-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.friend-req-info {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.35;
}

.friend-req-info strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.friend-req-info span {
  color: #94a3b8;
}

.friend-req-actions {
  display: flex;
  gap: 8px;
}

.btn-req-accept {
  flex: 1;
  background: #10b981;
  border: none;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-req-accept:hover {
  background: #059669;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.btn-req-decline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-req-decline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Friends Drawer / Cards */
.friends-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.friend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.friend-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.35);
}

.friend-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.friend-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.friend-details {
  display: flex;
  flex-direction: column;
}

.friend-name {
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 600;
}

.friend-meta {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.friend-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-friend-call {
  background: #10b981;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-friend-call:hover {
  background: #059669;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-friend-del {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.btn-friend-del:hover {
  color: var(--accent-red);
}

.friends-empty-placeholder {
  text-align: center;
  padding: 30px 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 860px) {
  .app-header {
    height: 58px;
    padding: 0 12px;
    gap: 8px;
  }

  .brand-wrap {
    padding: 4px 8px 4px 6px;
    gap: 8px;
    flex-shrink: 0;
  }

  .brand-sub-badge {
    display: none;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: calc(100vw - 120px);
  }

  .header-right::-webkit-scrollbar {
    display: none;
  }

  .btn-lang {
    padding: 6px 10px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  .user-profile-pill {
    padding: 5px 10px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 540px;
  }

  .action-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px;
  }

  .controls-center {
    width: 100%;
    justify-content: center;
    order: -1;
    margin-bottom: 8px;
  }

  .btn-primary-action, .btn-next-action {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .app-header {
    height: 54px;
    padding: 0 8px;
  }

  .brand-domain-tag {
    display: none;
  }

  .header-right {
    max-width: calc(100vw - 86px);
  }

  .btn-lang {
    padding: 5px 8px;
    font-size: 0.68rem;
  }
}

/* ==========================================================================
   GOOGLE AUTH & OAUTH UI STYLING
/* ==========================================================================
   PREMIUM GOOGLE AUTH & OAUTH UI STYLING
   ========================================================================== */

.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  background: #ffffff;
  color: #374151;
  border: 1px solid #dadce0;
  border-radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-google-auth:hover {
  background: #ffffff;
  color: #111827;
  transform: translateY(-1.5px);
  border-color: #caced4;
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.24), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google-auth:active {
  transform: translateY(0.5px) scale(0.99);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.btn-google-auth svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  transition: transform 0.2s ease;
}

.btn-google-auth:hover svg {
  transform: scale(1.08);
}

.btn-google-auth span {
  font-weight: 600;
}

/* Authentic Google Fast OAuth Modal Styling */
.google-oauth-modal {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(66, 133, 244, 0.15) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(24px) !important;
  padding: 28px !important;
}

.google-logo-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.google-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(66, 133, 244, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(66, 133, 244, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.btn-google-primary {
  background: linear-gradient(135deg, #1a73e8, #1557b0) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35) !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

.btn-google-primary:hover {
  background: linear-gradient(135deg, #1557b0, #0d47a1) !important;
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.5) !important;
  transform: translateY(-1.5px) !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 16px 0;
  color: var(--text-muted, #94a3b8);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.auth-divider span {
  padding: 0 12px;
}
