/* ==========================================================================
   OmniParser Modern Aesthetic Design System - V4.1 Upgrade
   ========================================================================== */

:root {
  /* Dynamic Brand Accents (Default: Purple/Pink) */
  --brand-primary: #8b5cf6;
  --brand-secondary: #ec4899;
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --brand-glow: rgba(168, 85, 247, 0.35);

  --bg-dark: #0b0f19;
  --bg-card: rgba(21, 28, 44, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-card: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 12px 35px -10px var(--brand-glow);
}

html {
  scroll-behavior: smooth;
}

/* Brand Theme Overrides */
body.theme-xhs {
  --brand-primary: #fe2c55;
  --brand-secondary: #ff2442;
  --brand-gradient: linear-gradient(135deg, #ff2442 0%, #fe2c55 50%, #ff6b81 100%);
  --brand-glow: rgba(254, 44, 85, 0.4);
}

body.theme-youtube {
  --brand-primary: #ff0000;
  --brand-secondary: #cc0000;
  --brand-gradient: linear-gradient(135deg, #ff0000 0%, #dc2626 50%, #b91c1c 100%);
  --brand-glow: rgba(255, 0, 0, 0.4);
}

body.theme-bilibili {
  --brand-primary: #00aeec;
  --brand-secondary: #00c0ff;
  --brand-gradient: linear-gradient(135deg, #00aeec 0%, #00c0ff 50%, #38bdf8 100%);
  --brand-glow: rgba(0, 174, 236, 0.4);
}

body.theme-tiktok {
  --brand-primary: #25f4ee;
  --brand-secondary: #fe2c55;
  --brand-gradient: linear-gradient(135deg, #25f4ee 0%, #00f2fe 50%, #fe2c55 100%);
  --brand-glow: rgba(37, 244, 238, 0.4);
}

body.theme-kuaishou {
  --brand-primary: #ff6000;
  --brand-secondary: #ff7a00;
  --brand-gradient: linear-gradient(135deg, #ff6000 0%, #ff7a00 50%, #ffaa00 100%);
  --brand-glow: rgba(255, 96, 0, 0.4);
}

body.theme-twitter {
  --brand-primary: #1d9bf0;
  --brand-secondary: #0c80d7;
  --brand-gradient: linear-gradient(135deg, #1d9bf0 0%, #38bdf8 50%, #60a5fa 100%);
  --brand-glow: rgba(29, 155, 240, 0.4);
}

body.theme-instagram {
  --brand-primary: #c13584;
  --brand-secondary: #fd1d1d;
  --brand-gradient: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  --brand-glow: rgba(253, 29, 29, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.18) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  transition: background 0.4s ease;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s ease;
}

.logo-icon-wrapper i {
  color: #fff;
  font-size: 1.4rem;
}

.logo:hover .logo-icon-wrapper {
  transform: rotate(15deg) scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: var(--brand-primary);
}

/* Language Switcher Select */
.lang-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.lang-select:hover,
.lang-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--brand-primary);
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.2);
}

.lang-select option {
  background: #121624;
  color: #f1f5f9;
  padding: 8px;
}

.status-badge {
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Main */
main {
  flex: 1;
  padding: 36px 0 60px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c084fc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background 0.4s ease;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Clipboard Smart Banner */
.clip-banner {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--brand-primary);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.clip-url {
  color: #60a5fa;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 380px;
}

.btn-fill-clip {
  padding: 6px 14px;
  background: var(--brand-gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
}

.btn-close-clip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

/* Search Card */
.search-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 36px;
  transition: all 0.3s ease;
}

.input-box-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.input-box {
  width: 100%;
  padding: 20px 130px 20px 22px;
  background: rgba(11, 15, 25, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1.05rem;
  outline: none;
  transition: all 0.3s ease;
}

.input-box:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--brand-glow);
}

.btn-paste {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-paste:hover {
  background: rgba(255, 255, 255, 0.2);
}

.action-bar {
  display: flex;
  gap: 16px;
}

.btn-submit {
  flex: 1;
  padding: 18px;
  background: var(--brand-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s ease;
}

.btn-submit:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--brand-glow);
}

.btn-clear {
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.12);
}

/* Platform Quick Tags */
.platforms-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.platform-tag:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Ad Banner Slots */
.ad-slot-container {
  width: 100%;
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
}

.ad-placeholder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  width: 100%;
  min-height: 60px;
}

/* Multi-Stage Loading Progress Bar */
.loading-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 36px;
  animation: fadeIn 0.3s ease;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brand-gradient);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.loading-stages {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stage-item {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.stage-item.active {
  color: #38bdf8;
  font-weight: 700;
}

.loading-msg {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
}

/* Result Card */
.result-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.cover-wrapper {
  width: 220px;
  height: 140px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #1e293b;
}

.cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.meta-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.platform-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.meta-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
}

.meta-author {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cloud Fast Bar (Result Top Cloud Banner) */
.cloud-fast-bar {
  background: rgba(0, 198, 255, 0.08);
  border: 1.5px solid rgba(0, 198, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.15);
}

.cloud-fast-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cloud-fast-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Cloud Drive Dropdown Component */
.cloud-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.btn-cloud-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: transform 0.15s, background 0.2s;
}

.btn-cloud-dropdown-trigger:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
}

.cloud-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.15);
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.cloud-dropdown-wrapper.active .cloud-dropdown-menu {
  display: flex;
}

.cloud-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.cloud-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.cloud-dropdown-item i {
  font-size: 1rem;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Built-in Video Player Preview */
.player-container {
  margin: 24px 0;
  background: rgba(11, 15, 25, 0.8);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.section-sub-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-player {
  width: 100%;
  max-height: 480px;
  border-radius: 10px;
  outline: none;
  background: #000;
}

/* Image Gallery Masonry */
.gallery-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.gallery-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-batch-dl {
  padding: 8px 18px;
  background: var(--brand-gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Cloud Drive Transfer Buttons */
.btn-cloud-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}

.btn-cloud-dl:hover {
  transform: scale(1.04);
  opacity: 0.95;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.img-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  background: #1e293b;
  aspect-ratio: 1;
}

.img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.img-item:hover img {
  transform: scale(1.06);
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.7);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.img-item:hover .img-overlay {
  opacity: 1;
}

.btn-img-dl {
  padding: 8px 16px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

/* Formats Table Layout */
.table-responsive {
  overflow-x: visible;
}

.formats-table {
  width: 100%;
  border-collapse: collapse;
}

.formats-table th,
.formats-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.formats-table td:nth-child(1),
.formats-table th:nth-child(1) {
  white-space: nowrap !important;
  min-width: 140px !important;
  font-weight: 700;
}

.formats-table td:nth-child(2),
.formats-table th:nth-child(2) {
  white-space: nowrap !important;
  min-width: 90px !important;
}

.formats-table td:nth-child(3),
.formats-table th:nth-child(3) {
  white-space: nowrap !important;
  min-width: 130px !important;
}

.formats-table th {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.action-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.btn-download-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s;
  white-space: nowrap;
}

.btn-download-link:hover {
  transform: scale(1.03);
}

.btn-qr-dl {
  padding: 6px 10px;
  font-size: 0.8rem;
}
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Dropdown Menu Component */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.btn-dropdown-trigger {
  padding: 8px 14px;
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(0, 198, 255, 0.25);
  transition: transform 0.15s;
  white-space: nowrap;
}

.btn-dropdown-trigger:hover {
  transform: scale(1.04);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 2px;
  background: #151c2c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px;
  min-width: 170px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 999;
}

.dropdown-menu.show,
.dropdown-wrapper:hover .dropdown-menu {
  display: block;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-menu:hover,
.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Features Section */
.features-section {
  margin-top: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(21, 28, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--shadow-glow);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* History Section */
.history-section {
  background: rgba(21, 28, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.history-title {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear-history {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.history-item {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.history-item:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.history-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}

.history-info {
  overflow: hidden;
}

.history-title-text {
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Modern Collapsible FAQ Section (Glassmorphic Cards)
   ========================================================================== */
.faq-section {
  margin-top: 60px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.faq-header-center {
  text-align: center;
  margin-bottom: 32px;
}

.faq-header-center .section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card-item {
  background: rgba(21, 28, 48, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.faq-card-item:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(27, 36, 60, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.12);
}

.faq-card-item.active {
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(24, 32, 54, 0.92);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.18);
}

.faq-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-card-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.faq-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-card-item:hover .faq-icon-badge {
  transform: scale(1.05);
}

.faq-card-q {
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.45;
  letter-spacing: -0.2px;
}

.faq-card-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-left: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease, color 0.25s ease;
}

.faq-card-item.active .faq-card-toggle {
  transform: rotate(180deg);
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.faq-card-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card-item.active .faq-card-collapse {
  grid-template-rows: 1fr;
}

.faq-card-body {
  overflow: hidden;
  min-height: 0;
}

.faq-card-body p {
  margin: 0;
  padding: 14px 20px 18px 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.8;
}

.faq-card-body code {
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.28);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.faq-card-body strong {
  color: #f1f5f9;
}

@media (max-width: 768px) {
  .faq-card-header {
    padding: 14px 16px;
  }
  .faq-card-q {
    font-size: 0.94rem;
  }
  .faq-icon-badge {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .faq-card-body p {
    padding: 12px 16px 16px 16px;
    font-size: 0.88rem;
  }
}

/* QR Code Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
    overflow-y: auto;
  padding: 24px 12px;
  box-sizing: border-box;
}

.modal-card {
  background: #151c2c;
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 92%;
  max-width: 440px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.qr-canvas-wrapper {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 16px;
}

.qr-canvas-wrapper canvas,
.qr-canvas-wrapper img {
  display: block;
  width: 180px;
  height: 180px;
}

.qr-tip {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.btn-primary-link {
  display: block;
  padding: 12px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer & Toast */
footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1.5px solid var(--brand-primary);
  color: #fff;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 100020;
  pointer-events: none;
  display: flex;
  align-items: center;
  max-width: 90vw;
  text-align: center;
  box-sizing: border-box;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.toast-error {
  background: rgba(30, 15, 23, 0.98);
  border-color: #ef4444;
  color: #fecaca;
  box-shadow: 0 10px 35px rgba(239, 68, 68, 0.4);
}

.toast.toast-lock {
  background: rgba(45, 10, 18, 0.98);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 10px 40px rgba(244, 63, 94, 0.55);
  animation: pulseLockToast 1.5s infinite alternate;
}

@keyframes pulseLockToast {
  0% { box-shadow: 0 10px 35px rgba(244, 63, 94, 0.35); border-color: #f43f5e; }
  100% { box-shadow: 0 12px 45px rgba(244, 63, 94, 0.7); border-color: #fda4af; }
}

.toast.toast-success {
  background: rgba(10, 30, 22, 0.98);
  border-color: #10b981;
  color: #a7f3d0;
  box-shadow: 0 10px 35px rgba(16, 185, 129, 0.4);
}

.btn-profile-logout {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 14px;
}

.btn-profile-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  transform: translateY(-1px);
}

.btn-profile-logout:active {
  transform: translateY(0);
}

/* Prevent global horizontal scroll overflow */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.logo,
.nav-links li,
.nav-links a,
.btn-nav-vip,
.status-badge,
.lang-select {
  white-space: nowrap;
}

/* Mobile Responsive Design Overhaul */
@media (max-width: 768px) {
  header {
    padding: 12px 0;
  }

  .container {
    padding: 0 12px;
  }

  .nav-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }

  .logo {
    font-size: 1.2rem;
    gap: 8px;
  }

  .logo-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-icon-wrapper i {
    font-size: 1rem;
  }

  .nav-links {
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-links .nav-link-text {
    display: none !important;
  }

  .btn-nav-vip {
    padding: 5px 10px;
    font-size: 0.76rem;
    border-radius: 14px;
    gap: 4px;
  }

  .status-badge {
    padding: 4px 8px;
    font-size: 0.72rem;
    gap: 4px;
  }

  .lang-select {
    padding: 3px 6px;
    font-size: 0.75rem;
    border-radius: 14px;
  }

  /* Hero Section */
  .hero {
    padding: 24px 0 28px 0;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: 1.55rem;
    line-height: 1.35;
    margin: 12px 0 10px 0;
  }

  .hero p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* Search Box & Inputs Mobile Fix */
  .search-card {
    padding: 16px;
  }

  .input-box-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 14px;
    box-sizing: border-box;
  }

  .input-box {
    width: 100%;
    height: 52px;
    padding: 10px 105px 10px 14px;
    font-size: 0.92rem;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .btn-paste {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0 !important;
    padding: 7px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
    width: auto !important;
    justify-content: center;
    white-space: nowrap;
    z-index: 10;
  }

  .action-bar {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  .btn-submit {
    padding: 14px;
    font-size: 0.98rem;
  }

  .btn-clear {
    padding: 14px 18px;
    font-size: 0.9rem;
  }

  .result-card {
    padding: 16px;
    border-radius: 16px;
  }

  .result-header {
    flex-direction: column;
    gap: 12px;
  }

  .cover-wrapper {
    width: 100%;
    height: 190px;
  }

  .meta-title {
    font-size: 1.1rem;
  }

  /* Result Formats Table -> Mobile Card Transformation */
  .table-responsive {
    overflow-x: hidden;
  }

  .formats-table,
  .formats-table tbody,
  .formats-table tr,
  .formats-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .formats-table thead {
    display: none;
  }

  .formats-table tbody tr {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .formats-table td {
    padding: 0;
    border: none;
    text-align: left !important;
  }

  .formats-table td:nth-child(1) {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    white-space: normal;
    word-break: break-word;
  }

  .formats-table td:nth-child(2) {
    font-size: 0.88rem;
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
  }

  .formats-table td:nth-child(3) {
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
  }

  .formats-table td:nth-child(4) {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
  }

  .action-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    width: 100%;
  }

  .dropdown-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-width: 100px;
  }

  .btn-dropdown-trigger {
    width: 100%;
    justify-content: center;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    margin-top: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
  }

  .dropdown-menu.show {
    display: block;
  }

  .btn-dl-now,
  .btn-qr,
  .btn-download-link,
  .btn-qr-dl {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .clip-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-fill-clip {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .gallery-header-bar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .cloud-fast-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Advanced Options Panel (Optional Cookie) */
.advanced-toggle-bar {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.btn-toggle-advanced {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.btn-toggle-advanced:hover {
  color: var(--brand-secondary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-toggle-advanced i {
  transition: transform 0.3s ease;
}

.advanced-panel {
  margin-top: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px dashed rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.advanced-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.advanced-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sm-text {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-sm-text:hover {
  background: rgba(239, 68, 68, 0.15);
}

.cookie-textarea {
  width: 100%;
  height: 72px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 0.8rem;
  padding: 10px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.cookie-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.cookie-textarea.cookie-input-highlight {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35);
  animation: cookiePulse 1.2s ease-in-out infinite alternate;
}

@keyframes cookiePulse {
  from { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2); }
  to { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.5); }
}

.advanced-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.4;
  flex-wrap: wrap;
}

.btn-text-link {
  background: transparent;
  border: none;
  color: var(--brand-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;

  transition: all 0.2s ease;
}

.btn-text-link:hover {
  color: var(--brand-primary);
  background: rgba(139, 92, 246, 0.15);
}

/* Cookie Guide Modal Styling */
.guide-modal-card {
  max-width: 560px !important;
  width: 92%;
}

.guide-step-card {
  display: flex;
  gap: 14px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-content {
  flex: 1;
}

.guide-step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.guide-step-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.guide-step-content code {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
}

.guide-step-content kbd {
  background: #334155;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  box-shadow: 0 2px 0 #0f172a;
}

.guide-security-notice {
  margin-top: 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #34d399;
  line-height: 1.5;
}

/* Ad Action Overlay & Countdowns */
.ad-action-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ad-action-card {
  background: #181c2b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 420px;
  padding: 24px;
  text-align: center;
  animation: adModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes adModalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ad-action-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ad-action-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.ad-countdown-badge {
  background: var(--brand-gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 0 12px var(--brand-glow);
}

.ad-placeholder-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 30px 16px;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.ad-action-tip {
  font-size: 0.82rem;
  color: #64748b;
}

.btn-vip-bypass {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-vip-bypass:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Video Preroll Overlay */
.video-preroll-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preroll-ad-box {
  text-align: center;
  color: #fff;
}

.preroll-header {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.preroll-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.preroll-timer {
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: 12px;
}

.btn-skip-preroll {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-skip-preroll:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Nav VIP Button */
.btn-nav-vip {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

/* VIP Modal Styles */
.vip-benefit-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.vip-benefit-box h4 {
  font-size: 0.95rem;
  color: #fbbf24;
  margin-bottom: 10px;
}

.vip-benefit-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vip-benefit-box li {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  line-height: 1.4;
}

.vip-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.vip-code-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  text-transform: uppercase;
}

.vip-code-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.btn-redeem-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-redeem-submit:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.vip-status-notice {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ==========================================================================
   User Auth Modal & User Center Aesthetic Styles V24.0
   ========================================================================== */
/* Custom Sleek Scrollbars */
.auth-profile-dashboard::-webkit-scrollbar,
.auth-modal-card::-webkit-scrollbar,
.seats-list-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.auth-profile-dashboard::-webkit-scrollbar-track,
.auth-modal-card::-webkit-scrollbar-track,
.seats-list-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
}

.auth-profile-dashboard::-webkit-scrollbar-thumb,
.auth-modal-card::-webkit-scrollbar-thumb,
.seats-list-container::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.auth-profile-dashboard::-webkit-scrollbar-thumb:hover,
.auth-modal-card::-webkit-scrollbar-thumb:hover,
.seats-list-container::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

.auth-modal-card {
  max-width: 440px !important;
  width: 92% !important;
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.15) !important;
  border-radius: 24px !important;
  padding: 28px !important;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

/* When in User Profile Mode: Expand into Flagship Widescreen Dashboard */
.auth-modal-card.is-profile-mode {
  max-width: 1080px !important;
  width: min(96vw, 1080px) !important;
  padding: 28px 32px !important;
  max-height: min(94vh, 900px) !important;
  background: radial-gradient(circle at 10% 12%, rgba(56, 189, 248, 0.1), transparent 45%),
              radial-gradient(circle at 90% 88%, rgba(168, 85, 247, 0.09), transparent 45%),
              rgba(13, 20, 36, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.85),
              0 0 50px rgba(56, 189, 248, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  border-radius: 26px !important;
}

.auth-modal-card .modal-header {
  flex-shrink: 0;
  margin-bottom: 18px;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-title {
  color: #fff !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  font-family: 'Outfit', sans-serif !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-tabs-segmented {
  display: flex;
  gap: 6px;
  background: rgba(2, 6, 23, 0.6);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.auth-segmented-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-segmented-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.auth-form-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 12px 42px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.25s ease;
}

.auth-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

.auth-input:focus + .input-icon,
.auth-input-wrapper:focus-within .input-icon {
  color: #38bdf8;
}

.auth-input-wrapper:has(.password-toggle-btn) .auth-input,
.auth-input-wrapper .auth-input:has(~ .password-toggle-btn) {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 5;
  transition: color 0.2s ease, transform 0.15s ease;
  user-select: none;
}

.password-toggle-btn:hover {
  color: #38bdf8;
}

.password-toggle-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.btn-auth-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 114, 255, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 114, 255, 0.5);
}

.btn-auth-gradient {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-auth-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
}

.auth-footer-tip {
  margin-top: 8px;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   User Center Profile Dashboard (旗舰级加宽尊贵版)
   ========================================================================== */
.auth-profile-dashboard {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 26px;
  overflow-y: auto;
  flex: 1;
  padding-right: 8px;
  align-items: start;
}

/* Left Sidebar Card */
.profile-sidebar-card {
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.profile-sidebar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #ec4899);
}

.profile-avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.25);
  position: relative;
}

.avatar-vip-crown {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  border: 2px solid #0f172a;
  animation: crownFloat 2s ease-in-out infinite alternate;
}

@keyframes crownFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.profile-username {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.profile-vip-pill {
  width: 100%;
  margin-bottom: 16px;
}

.profile-account-meta {
  width: 100%;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
}

.profile-account-meta .meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  transition: all 0.2s ease;
}

.profile-account-meta .meta-label {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.profile-account-meta .meta-val {
  font-weight: 700;
}

/* Right Main Content */
.profile-main-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* VIP Golden Card (CDKEY 激活与特权) */
.vip-golden-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.06) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.09) !important;
  border-radius: 20px !important;
  padding: 20px 24px !important;
}

.recharge-box-header .recharge-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recharge-box-header .recharge-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border-radius: 20px;
  font-weight: 700;
}

.recharge-input-flex {
  display: flex;
  gap: 10px;
}

.recharge-input {
  flex: 1;
  box-sizing: border-box;
  padding: 11px 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.recharge-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  background: rgba(15, 23, 42, 0.98);
}

.btn-recharge-submit {
  padding: 11px 22px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-recharge-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.recharge-perks-row {
  display: flex;
  gap: 24px;
  font-size: 0.83rem;
  color: #cbd5e1;
  margin-top: 4px;
  flex-wrap: wrap;
}

.recharge-perks-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.recharge-perks-row span i {
  color: #10b981;
  font-size: 0.95rem;
}

/* Ecosystem Grid (通行 Token 与 TG 互通) */
.profile-ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.profile-sub-card {
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  min-width: 0;
}

.profile-sub-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.profile-sub-card.script-card {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.09) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.profile-sub-card.tg-card {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.09) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.profile-sub-card.seats-card {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.sub-card-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.65;
  letter-spacing: 0.15px;
}

.recharge-input.mini {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.btn-recharge-submit.purple-btn {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
  padding: 10px 18px;
  font-size: 0.86rem;
}

.btn-recharge-submit.blue-btn {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  padding: 10px 18px;
  font-size: 0.86rem;
}

.tg-status-badge {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-tg-unbind {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tg-unbind:hover {
  background: #ef4444;
  color: #fff;
}

.btn-seats-refresh {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-seats-refresh:hover {
  background: rgba(168, 85, 247, 0.28);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.6);
}

.btn-seats-kick-all {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-seats-kick-all:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.seats-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Device Seat Items (现代化舒展卡片) */
.device-seat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  gap: 12px;
  transition: all 0.2s ease;
}

.device-seat-row:hover {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.device-seat-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.device-seat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.device-seat-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.device-seat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  flex-wrap: wrap;
}

.device-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.btn-seat-rename {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 0.88rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-seat-rename:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  transform: scale(1.1);
}

.device-raw-tag {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-device-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  flex-shrink: 0;
}

.hw-fp-badge {
  font-size: 0.72rem;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.device-seat-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 14px;
}

.device-seat-meta i {
  color: #38bdf8;
  font-size: 0.88rem;
}

.device-seat-actions {
  flex-shrink: 0;
}

.btn-seat-kick {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-seat-kick:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.seat-online-tag {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
}

/* History / Revoked Devices Audit Trail Styles */
.profile-history-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-history-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-toggle-history {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-toggle-history:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.history-arrow {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.history-arrow.expanded {
  transform: rotate(180deg);
  color: #38bdf8;
}

.btn-clear-history-all {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.btn-clear-history-all:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.history-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.device-seat-row.is-history {
  background: rgba(15, 23, 42, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  opacity: 0.85;
}

.device-seat-row.is-history:hover {
  opacity: 1;
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(148, 163, 184, 0.25);
}

.revoke-reason-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.revoke-reason-tag.tag-red {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.revoke-reason-tag.tag-orange {
  background: rgba(249, 115, 22, 0.14);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.revoke-reason-tag.tag-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.revoke-reason-tag.tag-purple {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.revoke-reason-tag.tag-gray {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-seat-remove-history {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.85rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-seat-remove-history:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.1);
}

/* Responsive adjustment for Mobile/Tablet (< 960px) */
@media (max-width: 960px) {
  .auth-modal-card.is-profile-mode {
    padding: 22px 18px !important;
    width: 95% !important;
  }
  .auth-profile-dashboard {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .profile-ecosystem-grid {
    grid-template-columns: 1fr;
  }
}


.recharge-perks-row span i {
  color: #10b981;
}

/* ==========================================================================
   Navigation User Account Button Aesthetics Overhaul
   ========================================================================== */
.btn-nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(59, 130, 246, 0.22) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 30px;
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-nav-user:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(59, 130, 246, 0.4) 100%);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
  color: #fff;
}

.btn-nav-user i {
  font-size: 1.05rem;
  color: #38bdf8;
  transition: color 0.25s ease;
}

.btn-nav-user:hover i {
  color: #fff;
}

/* Logged-in Normal User Pill */
.btn-nav-user.logged-in {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
  padding: 6px 14px;
}

.btn-nav-user.logged-in:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
  color: #fff;
}

.nav-uname {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f1f5f9;
  letter-spacing: 0.01em;
}

.nav-user-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  margin-left: 4px;
}

/* Logged-in VIP User Pill with Golden Glow */
.btn-nav-user.logged-in.is-vip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.28) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.25);
  color: #fff;
}

.btn-nav-user.logged-in.is-vip:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.45) 100%);
  border-color: #f59e0b;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45);
}

.nav-vip-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  margin-left: 4px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* =========================================================================
   Feedback & Message Board Component Styles
   ========================================================================= */
.btn-floating-feedback {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-floating-feedback:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55);
}

.feedback-modal-card {
  max-width: 960px;
  width: 94vw;
  max-height: 86vh;
  height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 24px;
}

@media (max-width: 768px) {
  .feedback-modal-card {
    width: 98vw;
    height: 92vh;
    padding: 16px;
  }
}

.fb-tabs-segmented {
  display: flex;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.feedback-view-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#fbSubmitView {
  overflow-y: auto;
  padding-right: 6px;
}

.qa-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.fb-category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.fb-chip-label {
  cursor: pointer;
  margin: 0;
}

.fb-chip-label input {
  display: none;
}

.fb-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.fb-chip-label input:checked + .fb-chip-btn {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.fb-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fb-filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fb-filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.fb-filter-chip.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #fff;
  font-weight: 700;
}

/* Rich Q&A Ticket Cards */
.qa-ticket-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.qa-ticket-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.qa-ticket-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.qa-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.qa-pill-bug { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.qa-pill-feature { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.qa-pill-download { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.qa-pill-general { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.qa-pill-platform { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }
.qa-pill-device { background: rgba(255, 255, 255, 0.06); color: #94a3b8; border: 1px solid rgba(255, 255, 255, 0.1); }
.qa-pill-loc { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }

.qa-ticket-content {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 8px;
}

.qa-target-url-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 10px;
  overflow: hidden;
}

.qa-target-url-box a {
  color: #38bdf8;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-target-url-box a:hover {
  text-decoration: underline;
}

.qa-reply-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 8px;
}

.qa-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.78rem;
}

.qa-reply-title {
  color: #10b981;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.qa-reply-body {
  font-size: 0.84rem;
  color: #a7f3d0;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Feature Wishlist Cards & Voting */
.wish-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.wish-card-item:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.wish-vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wish-vote-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
  transform: translateY(-2px);
}

.wish-vote-btn.voted {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  font-weight: 700;
}

.wish-vote-count {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-top: 2px;
}

.wish-content-col {
  flex: 1;
  min-width: 0;
}

.wish-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wish-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.wish-desc {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.wish-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.wish-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.wish-status-voting { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.wish-status-planned { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.wish-status-in_progress { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.wish-status-completed { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.wish-status-closed { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

.wish-admin-reply-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #fde68a;
  line-height: 1.5;
}

.wish-sort-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.wish-sort-btn:hover {
  color: #fff;
}

.wish-sort-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.btn-page-sm {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-page-sm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-page-sm:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Feature Wish Discussion & Comments Thread */
.wish-comments-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.74rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  margin-left: auto;
}

.wish-comments-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.wish-comments-drawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wish-comment-item {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.wish-comment-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.wish-comment-content {
  color: #cbd5e1;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.wish-comment-form-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.wish-comment-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #fff;
  outline: none;
}

.wish-comment-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

/* Episodes / Multi-P Selector Panel */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px 2px;
}
.btn-episode-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 12px;
  background: var(--bg-card, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  color: var(--text-main, #e2e8f0);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.btn-episode-item:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  transform: translateY(-1px);
}
.btn-episode-item.active {
  background: rgba(6, 182, 212, 0.25);
  border-color: #06b6d4;
  color: #22d3ee;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
.ep-title {
  font-weight: 700;
  font-size: 0.88rem;
}
.ep-desc {
  font-size: 0.72rem;
  color: var(--text-dim, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.badge-ep-current {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #06b6d4;
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 4px;
}
.badge-ep-vip {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #f43f5e;
  color: #fff;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 4px;
}



/* =================================================================
   P1 / P2: 安全恢复码、密码重置视图与时钟自愈指示样式
   ================================================================= */
.auth-helper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 16px;
  font-size: 0.82rem;
}
.auth-text-link {
  color: #38bdf8;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-text-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
#authResetPwdView {
  animation: fadeIn 0.25s ease-out;
}
#recoveryKeyModal .modal-card {
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 158, 11, 0.15);
}
#profileRecoveryKeyBtn:hover {
  background: rgba(245, 158, 11, 0.08);
  border-radius: 6px;
}


.auth-inline-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 14px;
  box-sizing: border-box;
  animation: shakeX 0.4s ease-in-out;
}
.auth-inline-error i {
  font-size: 1.1rem;
  color: #ef4444;
  flex-shrink: 0;
}
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
