/* ==========================================================================
   1024TeraBoxDL — Global Design System & Core Styles
   Domain: https://1024teraboxdl.com
   High-performance, accessible, dark/light theme, zero CLS
   ========================================================================== */

/* Modern CSS Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette — Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;
  
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --brand-accent: #06b6d4;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-glow: 0 0 20px -3px rgba(37, 99, 235, 0.2);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  
  --container-max: 1200px;
  --header-height: 70px;
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: #131c2e;
  --bg-card-hover: #1a263e;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  
  --border-light: #1e293b;
  --border-focus: #60a5fa;
  
  --brand-primary: #3b82f6;
  --brand-primary-hover: #2563eb;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --brand-accent: #22d3ee;
  
  --success: #34d399;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);
  --warning: #fbbf24;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --error: #f87171;
  --error-bg: rgba(239, 68, 68, 0.12);
  --error-border: rgba(239, 68, 68, 0.3);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-glow: 0 0 25px -3px rgba(59, 130, 246, 0.3);
}

/* Base Body Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--brand-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 15px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-main {
  flex: 1 0 auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-wrap:hover {
  text-decoration: none;
}

/* Empty Reusable Logo Placeholder (Fixed dimensions to prevent CLS) */
.logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-primary);
  background-color: var(--bg-tertiary);
  text-decoration: none;
}

.nav-link.active {
  color: var(--brand-primary);
  font-weight: 600;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.theme-icon-light, .theme-icon-dark {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

[data-theme="dark"] .theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-light {
  display: block;
}

:root:not([data-theme="dark"]) .theme-icon-light {
  display: none;
}

:root:not([data-theme="dark"]) .theme-icon-dark {
  display: block;
}

/* Mobile Navigation Hamburger */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: 24px 20px;
  border-top: 1px solid var(--border-light);
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  display: flex;
}

.mobile-menu-drawer .nav-link {
  font-size: 1.1rem;
  padding: 12px 14px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.btn-gradient {
  background: var(--brand-gradient);
  color: #ffffff;
}

.btn-gradient:hover {
  opacity: 0.95;
  box-shadow: var(--shadow-glow);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* In-Button Processing & Seamless Download States */
.btn.is-downloading {
  cursor: wait !important;
  opacity: 0.92;
  filter: brightness(0.95);
  pointer-events: none;
}

.btn.is-success {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4) !important;
}

.btn-download-action,
.btn-player-download {
  transition: all var(--transition-normal);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--brand-primary);
  border: 1px solid var(--border-light);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

/* ==========================================================================
   HERO & SECTION HEADERS
   ========================================================================== */
.hero-section {
  padding: 48px 0 32px 0;
  text-align: center;
  position: relative;
}

.hero-badge-wrap {
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 860px;
  margin: 0 auto 16px auto;
}

.hero-title span.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   DOWNLOADER CARD & INTERFACE
   ========================================================================== */
.downloader-container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}

.downloader-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.downloader-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.downloader-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 4px 6px 4px 16px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.input-group-wrapper:focus-within {
  border-color: var(--border-focus);
  background: var(--bg-card);
}

.input-icon {
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 12px;
}

.downloader-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  padding: 12px 0;
  min-width: 0;
}

.downloader-input::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.input-btn-tool {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.input-btn-tool:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.btn-paste {
  color: var(--brand-primary);
}

.btn-clear {
  color: var(--error);
  display: none;
}

.btn-clear.visible {
  display: inline-flex;
}

.downloader-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.downloader-hints {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hint-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hint-icon {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.btn-download-main {
  min-width: 160px;
  height: 48px;
  font-size: 1rem;
  font-weight: 600;
}

/* ==========================================================================
   ALERTS & NOTICES
   ========================================================================== */
.alert-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-top: 16px;
  animation: fadeIn 0.25s ease;
}

.alert-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}

.alert-info {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.alert-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   SKELETON SCREENS (Pre-allocated dimensions to guarantee 0 CLS)
   ========================================================================== */
.skeleton-container {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  min-height: 160px;
  animation: fadeIn 0.2s ease;
}

.skeleton-container.active {
  display: flex;
  gap: 20px;
  align-items: center;
}

.skeleton-thumbnail {
  width: 140px;
  height: 105px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.skeleton-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-line {
  height: 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.skeleton-title {
  width: 75%;
  height: 20px;
}

.skeleton-sub {
  width: 45%;
}

.skeleton-btn {
  width: 140px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

/* Shimmer Animation */
.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

:root:not([data-theme="dark"]) .shimmer::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 50%,
    transparent 100%
  );
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

/* ==========================================================================
   RESULT CARD STATE
   ========================================================================== */
.result-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.3s ease;
  text-align: left;
}

.result-card.active {
  display: block;
}

.result-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  text-align: left;
}

.result-thumb-box {
  width: 220px;
  height: 124px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #0b0f19;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.result-thumb-box img,
.result-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.result-icon-box {
  background: var(--bg-tertiary);
}

.result-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.result-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: left;
}

.result-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: left;
  justify-content: flex-start;
}

.result-meta-tags .meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.result-meta-tags .meta-tag .meta-icon {
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.result-meta-tags .result-quality-tag {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.result-meta-tags .result-quality-tag .meta-icon {
  color: var(--success);
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: left;
  justify-content: flex-start;
}

/* ==========================================================================
   ADSENSE RESERVED SLOTS
   ========================================================================== */
.ad-slot-container {
  width: 100%;
  margin: 28px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ad-slot-box {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  max-width: 100%;
  width: 100%;
}

.ad-slot-leaderboard {
  min-height: 90px;
  max-width: 728px;
}

.ad-slot-rectangle {
  min-height: 250px;
  max-width: 300px;
}

.ad-slot-responsive {
  min-height: 100px;
  max-width: 970px;
}

/* ==========================================================================
   FEATURE CARDS & GRIDS
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   STEP-BY-STEP WORKFLOW
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
  margin-top: 32px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--border-light);
  line-height: 1;
}

.step-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   CONTENT SECTIONS & ACCORDION
   ========================================================================== */
.content-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 32px;
}

.content-block h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.content-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 10px 0;
}

.content-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.content-block ul, .content-block ol {
  margin: 16px 0 20px 24px;
  color: var(--text-secondary);
}

.content-block li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-focus);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   RATING SYSTEM
   ========================================================================== */
.rating-section {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
}

.rating-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 800px;
  margin: 0 auto;
}

.rating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.rating-score-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rating-average {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.rating-stars-interactive {
  display: flex;
  gap: 6px;
  cursor: pointer;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #cbd5e1;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.star-btn:hover, .star-btn.active {
  color: #f59e0b;
}

.star-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.rating-stats {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rating-distribution {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.dist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dist-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dist-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.dist-count {
  width: 40px;
  text-align: right;
  color: var(--text-muted);
}

.rating-form {
  margin-top: 24px;
  display: none;
}

.rating-form.active {
  display: block;
}

.rating-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  margin-bottom: 12px;
}

/* ==========================================================================
   BREADCRUMBS & BANNER
   ========================================================================== */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.promo-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-gradient);
}

.promo-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.promo-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 56px 0 32px 0;
  margin-top: 60px;
  transition: background-color var(--transition-normal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 16px 0 20px 0;
  max-width: 320px;
  line-height: 1.6;
}

.footer-disclaimer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Header Language Selector Dropdown
   ========================================================================== */
.lang-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-dropdown-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-primary);
}

.lang-globe-icon {
  width: 16px;
  height: 16px;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.lang-arrow-icon {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.lang-dropdown-btn[aria-expanded="true"] .lang-arrow-icon {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 1000;
}

.lang-dropdown-menu.show {
  display: block;
}

.lang-select-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.lang-select-option:hover,
.lang-select-option.active {
  background: var(--bg-tertiary);
  color: var(--brand-primary);
  font-weight: 600;
}

/* ==========================================================================
   RTL (Right-to-Left) Language Support for Arabic
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .header-inner,
[dir="rtl"] .nav-desktop,
[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .input-group-wrapper {
  flex-direction: row-reverse;
}

[dir="rtl"] .btn-clear,
[dir="rtl"] .btn-paste {
  margin-left: 0;
  margin-right: 6px;
}

/* ==========================================================================
   Homepage Comparison Table Section
   ========================================================================== */
.comparison-section {
  padding: 60px 0;
}

.comparison-table-wrapper {
  margin-top: 36px;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

[dir="rtl"] .comparison-table {
  text-align: right;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.comparison-table th {
  background: var(--bg-tertiary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-table th.col-highlight,
.comparison-table td.col-highlight {
  background: rgba(37, 99, 235, 0.05);
  border-left: 2px solid var(--brand-primary);
  border-right: 2px solid var(--brand-primary);
}

[data-theme="dark"] .comparison-table th.col-highlight,
[data-theme="dark"] .comparison-table td.col-highlight {
  background: rgba(59, 130, 246, 0.1);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .feature-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.comparison-table .feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
  line-height: 1.4;
}

.comp-badge-good {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
}

.comp-badge-avg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--warning);
  font-weight: 500;
  font-size: 0.9rem;
}

.comp-badge-bad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--error);
  font-weight: 500;
  font-size: 0.9rem;
}

.recommended-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--brand-gradient);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  vertical-align: middle;
}

[dir="rtl"] .recommended-pill {
  margin-left: 0;
  margin-right: 6px;
}

/* ==========================================================================
   TOAST ALERTS (In-App Non-Intrusive Notifications)
   ========================================================================== */
.toast-notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  pointer-events: all;
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-item.exiting {
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
}

.toast-item.toast-error {
  border-left: 4px solid var(--error);
}

.toast-item.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-item.toast-success {
  border-left: 4px solid var(--success);
}

.toast-icon-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-icon {
  width: 20px;
  height: 20px;
}

.toast-icon-error {
  color: var(--error);
}

.toast-icon-warning {
  color: #f59e0b;
}

.toast-icon-success {
  color: var(--success);
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  word-break: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .toast-notification-container {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  .toast-item {
    padding: 12px 14px;
  }
}

/* ==========================================================================
   GENUINE USER REVIEWS & RATING SYSTEM
   ========================================================================== */
.reviews-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}

.reviews-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: flex-start;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .reviews-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Summary Card */
.reviews-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.rating-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.rating-big-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -1px;
}

.rating-max-number {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stars-summary-row {
  display: inline-flex;
  gap: 4px;
  color: #f59e0b;
}

.rating-count-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Breakdown Bars */
.rating-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.breakdown-label {
  width: 45px;
  text-align: right;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.breakdown-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.breakdown-count {
  width: 30px;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Empty Reviews State */
.empty-reviews-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-star-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.7;
}

.empty-reviews-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.empty-reviews-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0;
  line-height: 1.5;
}

/* Reviews Grid & Cards */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.review-user-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.review-user-card:hover {
  border-color: var(--border-focus);
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.reviewer-meta {
  flex: 1;
  min-width: 0;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-rating-stars {
  display: inline-flex;
  gap: 2px;
}

.review-rating-stars .star-icon.filled {
  color: #f59e0b;
}

.review-rating-stars .star-icon.empty {
  color: var(--border-light);
}

.review-content-text {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
}

.load-more-wrap {
  text-align: center;
  margin-top: 24px;
}

/* Rate Us Submission Form Card */
.rate-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}

.star-rating-selector {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 6px 0;
}

.star-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--border-light);
  transition: transform var(--transition-fast), color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.star-btn svg {
  width: 32px;
  height: 32px;
  transition: transform var(--transition-fast);
}

.star-btn:hover {
  transform: scale(1.18);
}

.star-btn:hover svg,
.star-btn.star-filled svg {
  fill: #f59e0b;
  stroke: #f59e0b;
}

.star-btn.star-filled {
  color: #f59e0b;
}

.rating-selected-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 20px;
  min-height: 20px;
  transition: color var(--transition-fast);
}

.review-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast);
}

.review-textarea:focus {
  border-color: var(--border-focus);
  background: var(--bg-card);
}

.form-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 20px;
}

.review-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .rate-form-card {
    padding: 24px 16px;
  }
  .star-btn svg {
    width: 28px;
    height: 28px;
  }
  .rating-big-number {
    font-size: 2.6rem;
  }
}

/* ==========================================================================
   ⭐ HEADER REVIEW BUTTON & CENTERED MODAL / POPUP
   ========================================================================== */
.btn-review-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn-review-modal:hover {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.btn-review-modal .btn-review-star {
  font-size: 0.95rem;
  line-height: 1;
}

[data-theme="dark"] .btn-review-modal {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

[data-theme="dark"] .btn-review-modal:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--brand-primary);
  color: #a5b4fc;
}

/* Centered Review Modal Backdrop & Overlay */
body.modal-open {
  overflow: hidden;
}

.review-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.review-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.review-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.review-modal-backdrop.is-open .review-modal-card {
  transform: translateY(0) scale(1);
}

.review-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.review-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.review-modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.review-modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.review-field-group {
  margin-bottom: 20px;
}

.review-field-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.required-star {
  color: var(--error, #ef4444);
}

.optional-tag {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: normal;
}

.review-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.review-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--bg-card);
}

/* Modal Star Selector */
.star-rating-selector {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 6px;
}

.star-rating-selector .star-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px 4px;
  transition: transform 0.15s ease, color 0.15s ease;
  user-select: none;
}

.star-rating-selector .star-btn:hover {
  transform: scale(1.22);
}

.star-rating-selector .star-btn.is-active,
.star-rating-selector .star-btn:hover {
  color: #f59e0b;
}

[data-theme="dark"] .star-rating-selector .star-btn {
  color: #475569;
}

[data-theme="dark"] .star-rating-selector .star-btn.is-active,
[data-theme="dark"] .star-rating-selector .star-btn:hover {
  color: #f59e0b;
}

.rating-hint-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  min-height: 18px;
}

.review-char-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}

.review-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.review-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.review-alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #059669;
}

.review-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #dc2626;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

