/* ==============================================================================
   FILMY NORA - OFFICIAL VERIFIED DIRECTORY
   PREMIUM ULTRA-CLEAN MODERN DESIGN SYSTEM
   ============================================================================== */

:root {
  /* Core Color Architecture */
  --bg-main: #090a10;
  --bg-card: rgba(18, 20, 30, 0.72);
  --bg-card-hover: rgba(25, 29, 44, 0.88);
  --bg-primary-card: linear-gradient(145deg, rgba(38, 16, 22, 0.8) 0%, rgba(20, 22, 34, 0.85) 100%);
  --bg-header: rgba(9, 10, 16, 0.82);
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-body: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #f8fafc;
  
  /* Brand Crimson & Radiant Accents */
  --brand-red: #e50914;
  --brand-red-light: #ff3342;
  --brand-red-dark: #b80610;
  --brand-red-glow: rgba(229, 9, 20, 0.3);
  
  /* Amber & Gold Accents */
  --brand-amber: #f59e0b;
  --brand-gold: #fbbf24;
  --brand-gold-glow: rgba(245, 158, 11, 0.22);
  
  /* Telegram Blues */
  --tele-blue: #0284c7;
  --tele-cyan: #38bdf8;
  --tele-glow: rgba(56, 189, 248, 0.28);
  
  /* Status Indicators */
  --status-emerald: #10b981;
  --status-emerald-glow: rgba(16, 185, 129, 0.35);
  
  /* Borders & Glassmorphism */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(229, 9, 20, 0.5);
  --border-primary-card: rgba(229, 9, 20, 0.35);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout */
  --container-max-width: 880px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --ease-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==============================================================================
   RESET & GLOBAL BASE
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  line-height: 1.55;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 50% 0%, rgba(229, 9, 20, 0.12) 0%, transparent 60%),
    radial-gradient(at 80% 80%, rgba(14, 165, 233, 0.06) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.glow-top {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 680px);
  height: 380px;
  background: radial-gradient(ellipse, rgba(229, 9, 20, 0.18) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 80%);
}

.glow-right {
  top: 40%;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
}

.ambient-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ==============================================================================
   CLEAN MINIMAL NAVIGATION HEADER
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.8rem 0;
}

.header-inner {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-avatar-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1f2333 0%, #10121d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: var(--ease-smooth);
}

.brand-group:hover .brand-avatar-box {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 16px var(--brand-red-glow);
  transform: translateY(-1px);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-white);
  line-height: 1;
}

/* ==============================================================================
   MAIN CONTAINER
   ============================================================================== */
.page-main-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1.5rem 18px 3rem 18px;
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

/* ==============================================================================
   HERO / INTRO SECTION (CLEAN & SLEEK)
   ============================================================================== */
.hero-block {
  text-align: center;
  padding: 2rem 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-brand-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e2235 0%, #10121d 100%);
  border: 1px solid rgba(229, 9, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px var(--brand-red-glow);
  transition: var(--ease-smooth);
}

.hero-brand-logo-wrap:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(229, 9, 20, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 9, 20, 0.5);
}

.hero-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.hero-main-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-white);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.gradient-accent {
  background: linear-gradient(135deg, #ff4d5a 0%, #e50914 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==============================================================================
   HERO APP DOWNLOAD BUTTON (HIGH CONVERSION)
   ============================================================================== */
.hero-app-download-wrap {
  width: 100%;
  max-width: 440px;
  margin-top: 0.5rem;
}

.btn-hero-app-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, #e50914 0%, #b80610 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.42), 0 0 30px rgba(229, 9, 20, 0.25);
  transition: var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-hero-app-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.6s ease;
}

.btn-hero-app-download:hover::before {
  left: 100%;
}

.btn-hero-app-download:hover {
  background: linear-gradient(135deg, #ff1a26 0%, #d40713 100%);
  box-shadow: 0 12px 35px rgba(229, 9, 20, 0.6), 0 0 45px rgba(229, 9, 20, 0.4);
  transform: translateY(-2px);
}

.app-download-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.app-download-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
  text-align: left;
}

.app-download-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  line-height: 1.2;
}

.app-download-meta {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.app-download-arrow {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.btn-hero-app-download:hover .app-download-arrow {
  transform: translateY(2px);
  background: rgba(0, 0, 0, 0.4);
}

/* ==============================================================================
   COMPACT & CLEAN TELEGRAM BAR
   ============================================================================== */
.telegram-compact-bar {
  width: 100%;
  max-width: 620px;
  background: linear-gradient(135deg, rgba(14, 26, 42, 0.75) 0%, rgba(10, 16, 26, 0.7) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: var(--ease-smooth);
}

.telegram-compact-bar:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.18);
}

.tele-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.tele-icon-circle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.tele-bar-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tele-bar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-white);
}

.tele-bar-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.btn-join-here {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ease-smooth);
  flex-shrink: 0;
}

.btn-join-here:hover {
  background: #38bdf8;
  color: #041019;
  box-shadow: 0 0 14px var(--tele-glow);
  transform: translateY(-1px);
}

/* ==============================================================================
   DOMAINS SECTION & CARDS
   ============================================================================== */
.domains-container {
  margin-top: 2rem;
}

.section-headline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.headline-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.headline-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.domain-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Search / Filter Box */
.search-filter-box {
  position: relative;
  width: 100%;
  margin-bottom: 1.25rem;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(18, 20, 30, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.8rem 2.8rem 0.8rem 2.7rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--ease-smooth);
}

.search-input:focus {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(22, 25, 38, 0.95);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-body);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Domains List & Grid */
.domains-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Gateway Card (The Core UX) */
.gateway-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.gateway-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Primary Gateway Highlight */
.gateway-card.is-primary {
  background: var(--bg-primary-card);
  border-color: var(--border-primary-card);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.1);
}

.gateway-card.is-primary:hover {
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 9, 20, 0.2);
}

.gateway-main-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.gateway-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Badges */
.pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ff5562;
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.45);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--status-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--status-emerald);
}

.pill-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

/* Main Domain Link Display */
.gateway-link-row {
  margin-top: 4px;
  margin-bottom: 2px;
}

.domain-main-link {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-white);
  text-decoration: none;
  display: inline-block;
  transition: var(--ease-smooth);
  word-break: break-word;
  line-height: 1.25;
}

.domain-host {
  color: var(--text-white);
  transition: color 0.2s ease;
}

.domain-main-link:hover .domain-host,
.domain-main-link:hover {
  color: #ff4d5a;
}

.gateway-note-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-body);
}

.gateway-note-row svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Card Actions */
.gateway-actions-col {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 8px;
  align-items: center;
}

.btn-copy-link {
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease-smooth);
}

.btn-copy-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  transform: translateY(-1px);
}

.btn-copy-link.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-open-gateway {
  height: 44px;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0 1rem;
  box-shadow: 0 4px 14px var(--brand-red-glow);
  cursor: pointer;
  transition: var(--ease-smooth);
  white-space: nowrap;
}

.btn-open-gateway:hover {
  background: linear-gradient(135deg, #ff1a26 0%, #d40713 100%);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
  transform: translateY(-1px);
}

.btn-open-gateway svg {
  transition: transform 0.2s ease;
}

.btn-open-gateway:hover svg {
  transform: translate(2px, -2px);
}

/* Empty Search State */
.empty-search-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.empty-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==============================================================================
   SAFETY & VERIFICATION POPUP TRIGGER & MODAL
   ============================================================================== */
.safety-trigger-row {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-safety-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  color: var(--brand-gold);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--ease-smooth);
}

.btn-safety-trigger:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 6px 20px var(--brand-gold-glow);
  transform: translateY(-1px);
  color: #ffffff;
}

.safety-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-amber);
}

.safety-trigger-chevron {
  color: rgba(245, 158, 11, 0.7);
  transition: transform 0.2s ease;
}

.btn-safety-trigger:hover .safety-trigger-chevron {
  transform: translateX(3px);
  color: #ffffff;
}

/* Modal Backdrop */
.safety-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.safety-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Card */
.safety-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, #131622 0%, #0c0e16 100%);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.safety-modal-backdrop.active .safety-modal-card {
  transform: scale(1) translateY(0);
}

.safety-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ease-smooth);
}

.safety-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.safety-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.safety-modal-icon-badge {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--brand-gold-glow);
}

.safety-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.safety-modal-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.25;
}

.safety-modal-subtitle {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-amber);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.safety-modal-body {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.safety-modal-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-safety-ack {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #0b0c10;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: var(--ease-smooth);
}

.btn-safety-ack:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
  transform: translateY(-1px);
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: #06070a;
  padding: 2rem 18px 2.5rem 18px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-white);
}

.footer-brand-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--ease-smooth);
}

.footer-link-pill:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--tele-cyan);
  transform: translateY(-1px);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border-glass);
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.safe-badge {
  color: #34d399;
}

/* ==============================================================================
   TOAST NOTIFICATION
   ============================================================================== */
.toast-wrapper {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  transition: var(--ease-smooth);
}

.toast-box {
  background: #141824;
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--text-white);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
  opacity: 0;
  transform: translateY(15px);
  transition: var(--ease-spring);
}

.toast-wrapper.active .toast-box {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon-check {
  color: var(--status-emerald);
  display: flex;
  align-items: center;
}

/* ==============================================================================
   AD SLOTS
   ============================================================================== */
.fn-ad-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0.25rem 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.fn-ad-slot iframe {
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

/* ==============================================================================
   TABLET & DESKTOP ENHANCEMENTS (>= 720px)
   ============================================================================== */
@media (min-width: 720px) {
  .header-inner {
    justify-content: flex-start;
    padding: 0 24px;
  }

  .page-main-container {
    padding: 2.5rem 24px 4rem 24px;
  }

  .hero-block {
    padding: 2.25rem 0 1.75rem 0;
  }

  .section-headline-bar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  /* Gateway Card in Row Layout */
  .gateway-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 1.6rem;
    gap: 1.5rem;
  }

  .gateway-actions-col {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    flex-shrink: 0;
  }

  .btn-copy-link {
    width: 78px;
    height: 42px;
  }

  .btn-open-gateway {
    height: 42px;
    padding: 0 1.4rem;
  }

  .footer-top-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .toast-wrapper {
    left: auto;
    right: 28px;
    transform: none;
  }
}
