/* ==========================================
   SEREN — DARK PREMIUM THEME
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.landing-body {
  background: #000;
  color: #fff;
  font-family: 'Roboto', -apple-system, system-ui, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Base Theme Variables for Modal/Popups */
:root {
  --primary: #1a1a1a;
  --primary-hover: #2a2a2a;
  --accent: #fff;
}

[data-theme="red"] {
  --primary: #1a050a;
  --primary-hover: #e11d48;
}

[data-theme="blue"] {
  --primary: #050a1a;
  --primary-hover: #1d4ed8;
}

[data-theme="green"] {
  --primary: #051a0a;
  --primary-hover: #059669;
}

.bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 60%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 4s alternate infinite;
}

@keyframes glowPulse {
  from {
    opacity: 0.6;
  }

  to {
    opacity: 1;
  }
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: relative;
  overflow-y: auto;
  z-index: 1;
}

/* Typography & logo */
.branding-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10vh;
  margin-bottom: auto;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  animation: logoBolt 2s ease-in-out infinite;
}

@keyframes logoBolt {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 0, 85, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(255, 0, 85, 1));
  }
}

.th-text {
  font-size: clamp(2rem, 9vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -2px;
  line-height: 1;
  color: #ff0033;
}

.th-tagline {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  opacity: 0.9;
  letter-spacing: -0.2px;
}

/* Online Count Box */
.online-box-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.th-online-box {
  background: #1a1a1a;
  border-radius: 50px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
}

.dot-green {
  width: 14px;
  height: 14px;
  background-color: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}

/* Controls */
.th-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.country-filter-wrap {
  position: relative;
  flex: 1;
}

.th-btn-dark {
  background: #1a1a1a;
  border: none;
  border-radius: 50px;
  color: #fff;
  padding: 0 18px;
  height: 52px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  transition: 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-btn-dark:active {
  background: #2a2a2a;
}

.th-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.th-dropdown.hidden {
  display: none;
}

.th-dropdown input {
  width: 100%;
  background: #0a0a0a;
  border: none;
  border-bottom: 1px solid #222;
  padding: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.th-dropdown-list {
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-item {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.1s;
}

.dropdown-item:hover {
  background: #2a2a2a;
  color: #fff;
}

.th-mode-toggle {
  display: flex;
  background: #1a1a1a;
  border-radius: 50px;
  overflow: hidden;
  padding: 4px;
  flex: 1.25;
}

.th-toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #aaa;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.th-toggle-btn.active {
  background: #fff;
  color: #000;
}

/* Interests Box */
.th-interests-box {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
  position: relative;
}

.th-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.th-tag {
  background: #fff;
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.th-tag i {
  opacity: 0.6;
  cursor: pointer;
}

.th-tag i:hover {
  opacity: 1;
}

.th-tag-input {
  flex: 1;
  min-width: 140px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
}

.th-tag-input::placeholder {
  color: #666;
}

.th-tag-count {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: #aaa;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 3D Avatar Area */
.avatar-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 12px 16px;
  transition: 0.3s;
}

.avatar-box:active {
  background: #1a1a1a;
}

.avatar-preview {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #222;
  border: 2px solid #333;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.shuffle-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: 0.2s;
  z-index: 2;
}

.shuffle-btn:active {
  transform: rotate(45deg) scale(0.9);
}

.avatar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avatar-label {
  font-size: 0.8rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.avatar-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

/* Start Button */
.th-start-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50px;
  height: 64px;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.1s;
}

.th-start-btn:active {
  transform: scale(0.98);
}

/* Bottom Nav */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  height: 70px;
  padding-bottom: 10px;
  padding-top: 6px;
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #666;
  font-size: 0.8rem;
  font-weight: 500;
  width: 60px;
  transition: color 0.1s;
}

.nav-item.active,
.nav-item:hover {
  color: #fff;
}

.nav-item i {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #222;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

/* Modals content */
.theme-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.theme-opt {
  background: #1a1a1a;
  border: none;
  color: #aaa;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
}

.theme-opt.active {
  background: #fff;
  color: #000;
}

/* Settings Modal Specifics */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #1a1a1a;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: 0.2s;
}

.settings-row:hover {
  border-color: #333;
}

.settings-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-info i {
  color: #888;
}

.settings-label {
  display: flex;
  flex-direction: column;
}

.settings-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.settings-desc {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

/* Custom Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #333;
  transition: .3s;
  border-radius: 34px;
}

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

input:checked+.slider {
  background-color: #00e676;
}

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

.reset-btn {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ff4b2b22;
  background: #ff4b2b11;
  color: #ff4b2b;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.reset-btn:hover {
  background: #ff4b2b22;
}

/* Social Handle Input */
.social-input-wrap {
  margin-top: 10px;
  position: relative;
  width: 100%;
}

.social-input-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 50px;
  padding: 10px 16px 10px 42px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: 0.2s;
}

.social-input-wrap input:focus {
  border-color: #00e676;
  background: rgba(255, 255, 255, 0.1);
}

.social-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #888;
  pointer-events: none;
}

/* Social Platform Selector */
.social-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 50px 0 0 50px;
  padding: 10px 8px 10px 12px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

.social-select:focus {
  border-color: #00e676;
}

.social-input-wrap input {
  border-radius: 0 50px 50px 0 !important;
  padding-left: 12px !important;
}

/* Social Link style */
.social-link {
  color: #00e676;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 4px;
}

.social-link:hover {
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

/* Action Button Highlight (for Social Swap) */
.action-btn-vertical.highlight {
  animation: pulse-glow 2s infinite;
  color: #00e676 !important;
}

.action-btn-vertical.active {
  color: #00e676 !important;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes pulse-glow {
  0% {
    text-shadow: 0 0 5px rgba(0, 230, 118, 0.5);
    transform: scale(1);
  }

  50% {
    text-shadow: 0 0 15px rgba(0, 230, 118, 1);
    transform: scale(1.05);
  }

  100% {
    text-shadow: 0 0 5px rgba(0, 230, 118, 0.5);
    transform: scale(1);
  }
}

/* Landing Footer */
.landing-footer {
  margin-top: 60px;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links .dot {
  color: #333;
}

.landing-footer .copy {
  color: #444;
  font-size: 0.8rem;
  margin: 0;
}

/* Legal Page Scrolling */
.legal-body {
  overflow-y: auto !important;
  height: 100vh;
}

/* ==========================================
   DESKTOP LAYOUT (768px+)
   ========================================== */

/* Hide desktop-only elements ONLY on mobile */
@media (max-width: 767px) {

  .desktop-left,
  .desktop-right,
  .desktop-header {
    display: none !important;
  }
}


@media (min-width: 768px) {

  /* Hide the mobile bottom nav */
  .bottom-nav {
    display: none !important;
  }

  /* Fixed top header bar */
  .desktop-header {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #1a1a1a;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
  }

  .desktop-header .dh-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 900;
    font-style: italic;
    color: #ff0033;
    letter-spacing: -1px;
    text-decoration: none;
  }

  .desktop-header .dh-brand img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 0, 51, 0.6));
  }

  .desktop-header .dh-links {
    display: flex;
    gap: 28px;
  }

  .desktop-header .dh-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
  }

  .desktop-header .dh-links a:hover {
    color: #fff;
  }

  /* Main area: two-column split */
  .landing-main {
    padding: 0;
    margin-top: 60px;
    height: calc(100vh - 60px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }

  /* Mobile-only sections hidden on desktop */
  .mobile-only {
    display: none !important;
  }

  /* Show desktop panels */
  .desktop-left {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 56px;
    border-right: 1px solid #1a1a1a;
    gap: 24px;
  }

  .desktop-right {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    gap: 20px;
    overflow-y: auto;
  }

  /* Branding reset for left panel */
  .branding-section {
    margin-top: 0;
    margin-bottom: 0;
    align-items: flex-start;
  }

  .th-text {
    font-size: clamp(2.5rem, 3.5vw, 4rem);
  }

  .th-tagline {
    font-size: 1.05rem;
  }

  /* Online count aligned left */
  .online-box-container {
    justify-content: flex-start;
    margin-bottom: 0;
  }

  /* Avatar box full width */
  .avatar-box {
    width: 100%;
    padding: 20px 24px;
  }

  /* Controls stack vertically in right panel */
  .th-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 0;
  }

  /* Start button sizing on desktop */
  .th-start-btn {
    height: 56px;
    font-size: 1.1rem;
  }

  /* Footer inside right panel */
  .landing-footer {
    margin-top: 8px;
    padding: 16px 0 0;
    border-top: 1px solid #1a1a1a;
  }
}