/* ==========================================================================
   UnfollowTracker - Modern Luxury Cyber / Instagram Dark Design System
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-primary: #07080e;
  --bg-secondary: #0e111d;
  --bg-card: rgba(18, 22, 36, 0.7);
  --bg-card-hover: rgba(26, 32, 52, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(139, 92, 246, 0.6);

  /* Gradients */
  --grad-ig: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --grad-cyber: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-pro: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Accents */
  --color-primary: #8b5cf6;
  --color-accent: #ec4899;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  --color-rose: #f43f5e;
  --color-cyan: #06b6d4;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 35px rgba(139, 92, 246, 0.25);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: #f1f5f9;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% 0%, #17122b 0%, #07080e 55%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background ambient glow particles */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.08) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

/* RTL Support */
body.is-rtl {
  direction: rtl;
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 8, 14, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--grad-ig);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
  font-size: 22px;
  color: white;
  transition: transform 0.3s ease;
}

.logo-wrapper:hover .logo-icon {
  transform: scale(1.05) rotate(-3deg);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language selector */
.lang-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #f1f5f9;
  padding: 8px 32px 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.lang-select:hover, .lang-select:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.09);
}

.lang-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: #94a3b8;
  font-size: 10px;
}

body.is-rtl .lang-select {
  padding: 8px 14px 8px 32px;
}
body.is-rtl .lang-arrow {
  right: auto;
  left: 12px;
}

/* Auth / User Header */
.user-profile-bar {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-full);
}

.user-avatar-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-primary);
}

.user-display-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px;
  transition: color 0.2s;
}

.btn-logout:hover {
  color: var(--color-rose);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--grad-pro);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 70px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: pulseSubtle 3s infinite;
}

@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.85; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 860px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: var(--grad-ig);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(225, 48, 108, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #f1f5f9;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-pro {
  background: var(--grad-cyber);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.6);
}

/* ==========================================================================
   Upload Dropzone Card
   ========================================================================== */
.dropzone-section {
  margin: 30px auto 60px;
  max-width: 800px;
}

.dropzone-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dropzone-card:hover, .dropzone-card.is-dragover {
  border-color: var(--color-primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.dropzone-card.is-processing {
  border-color: var(--color-cyan);
  pointer-events: none;
}

.dropzone-card.is-success {
  border-color: var(--color-emerald);
  border-style: solid;
}

.dropzone-card.is-error {
  border-color: var(--color-rose);
}

.dropzone-icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  transition: transform 0.3s ease;
}

.dropzone-card:hover .dropzone-icon-box {
  transform: scale(1.1);
}

.dropzone-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.dropzone-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto 24px;
}

.dropzone-feedback {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.dropzone-feedback.processing {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
}
.dropzone-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
}
.dropzone-feedback.error {
  background: rgba(244, 63, 94, 0.15);
  color: var(--color-rose);
}
.dropzone-feedback.info {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
}

.dropzone-privacy-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: #64748b;
}

/* ==========================================================================
   Results & Stats Section
   ========================================================================== */
.results-section {
  display: none;
  margin-bottom: 80px;
  animation: fadeIn 0.5s ease forwards;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-card.highlight {
  border-color: rgba(244, 63, 94, 0.4);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.12) 0%, rgba(18, 22, 36, 0.7) 100%);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  color: #ffffff;
}

.stat-card.highlight .stat-value {
  color: var(--color-rose);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

/* Results Content Card */
.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.results-header-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.tabs-group {
  display: flex;
  gap: 8px;
}

.results-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.results-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.results-tab.is-active {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.results-tab.is-active .tab-badge {
  background: var(--color-primary);
  color: #ffffff;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  width: 280px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--border-focus);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  width: 100%;
  margin-left: 8px;
}

body.is-rtl .search-box input {
  margin-left: 0;
  margin-right: 8px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tool {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

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

/* User Rows */
.results-list {
  padding: 8px 0;
  max-height: 520px;
  overflow-y: auto;
  position: relative;
}

.user-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color 0.15s;
}

.user-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.user-rank {
  width: 40px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  margin-right: 14px;
}

body.is-rtl .user-avatar {
  margin-right: 0;
  margin-left: 14px;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
}

.user-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.btn-profile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

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

/* Paywall / Blurring Overlay */
.user-row.is-blurred {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.45;
}

.paywall-banner {
  background: linear-gradient(180deg, rgba(14, 17, 29, 0.85) 0%, rgba(7, 8, 14, 0.98) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 10;
}

.paywall-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.paywall-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.paywall-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  padding: 90px 0;
  text-align: center;
}

.section-tag {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 50px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(16px);
  text-align: left;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

body.is-rtl .pricing-card {
  text-align: right;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, rgba(18, 22, 36, 0.85) 100%);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.2);
}

.pricing-top-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--grad-cyber);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

body.is-rtl .pricing-top-badge {
  right: auto;
  left: 28px;
}

.pricing-plan-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.pricing-plan-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 30px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.pricing-period {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.feature-check {
  color: var(--color-emerald);
  font-size: 1.1rem;
  line-height: 1;
}

.pricing-card .btn {
  width: 100%;
}

/* ==========================================================================
   Interactive Tutorial Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #0f121d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
  animation: modalScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 24px 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Tutorial Step Body */
.modal-body {
  padding: 28px;
}

.tutorial-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}

.tutorial-progress-bar {
  height: 100%;
  width: 16.6%;
  background: var(--grad-ig);
  transition: width 0.3s ease;
}

.tutorial-step-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.tutorial-step-icon {
  font-size: 3rem;
  line-height: 1;
}

.tutorial-step-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tutorial-step-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.tutorial-step-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 480px;
  line-height: 1.6;
}

.tutorial-step-hint-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: #fbbf24;
  text-align: left;
  width: 100%;
}

body.is-rtl .tutorial-step-hint-box {
  text-align: right;
}

/* Dots & Nav */
.tutorial-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.tutorial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.tutorial-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 5px;
}

.tutorial-dot.completed {
  background: var(--color-emerald);
}

.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 60px 0 100px;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(16px);
  transition: border-color 0.2s;
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 30px;
  background: #05060a;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-badge {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-copy {
  font-size: 0.85rem;
  color: #475569;
}

/* ==========================================================================
   Toast Notification & Alerts
   ========================================================================== */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #181c2e;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

body.is-rtl .app-toast {
  right: auto;
  left: 24px;
}

.app-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.app-toast.success {
  border-color: var(--color-emerald);
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
}

.app-toast.error {
  border-color: var(--color-rose);
  background: linear-gradient(135deg, #881337 0%, #0f172a 100%);
}

.auth-notice-banner {
  display: none;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--color-rose);
  color: #fecdd3;
  padding: 10px 18px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-notice-banner.visible {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-section {
    padding: 40px 0 20px;
  }
  .dropzone-card {
    padding: 30px 16px;
  }
  .results-header-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    width: 100%;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Google OAuth 2.0 Button & Preview / Inline Paywall Enhancements
   ========================================================================== */
.btn-google-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.btn-google-login:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.google-icon {
  flex-shrink: 0;
}

/* Free Preview Badge */
.preview-notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 12px 20px 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Inline Paywall Hint Card */
.inline-paywall-card {
  margin: 20px;
  background: linear-gradient(180deg, rgba(23, 26, 44, 0.95) 0%, rgba(13, 15, 26, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(20px);
}

.paywall-lock-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 8px;
  animation: pulseSubtle 2.5s infinite;
}

.paywall-counter-badge {
  display: inline-block;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.paywall-headline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.paywall-subtext {
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.paywall-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

body.is-rtl .paywall-options-grid {
  text-align: right;
}

.paywall-option-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.paywall-option-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.paywall-option-box.featured {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, rgba(18, 22, 36, 0.8) 100%);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.option-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.option-tag.highlight {
  color: var(--color-accent);
}

.option-price {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.1;
}

.option-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.option-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 18px;
  line-height: 1.4;
  flex: 1;
}

.btn-block {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.88rem;
}

