/* ===================================================
   Készenléti Rendőrség Nemzeti Nyomozó Iroda – Official Green Banking Redesign
   Aesthetic: "Corporate Bank Trust & Safety"
   =================================================== */

/* ─── CSS Custom Properties ─── */
:root {
  /* Green Corporate Theme Colors */
  --brand-green:       #005a36; /* Deep forest green */
  --brand-green-dark:  #004227;
  --accent-green:      #00a86b; /* Vibrant success green */
  --accent-green-light:rgba(0, 168, 107, 0.08);
  --accent-green-glow: rgba(0, 168, 107, 0.2);

  /* Clean Light Backgrounds */
  --bg-page:           #ffffff;
  --bg-section:        #f9fafb;
  --bg-card:           #ffffff;
  --bg-card-hover:     #f3f4f6;
  --bg-sidebar:        #f9fafb;
  --bg-header:         #005a36;

  /* Typography Colors - High Contrast Slate */
  --text-primary:      #111827; /* Dark slate */
  --text-secondary:    #4b5563; /* Slate gray */
  --text-muted:        #9ca3af; /* Muted gray */
  --text-on-dark:      #ffffff;
  --text-on-dark-dim:  rgba(255, 255, 255, 0.8);
  --text-link:         #00a86b;

  /* Semantic Alerts */
  --success:           #00a86b;
  --success-light:     #e6f7f0;
  --success-border:    #b3e6d2;
  --warning:           #d97706;
  --warning-light:     #fef3c7;
  --warning-border:    #fde68a;
  --danger:            #dc2626;
  --danger-light:      #fee2e2;
  --danger-border:     #fca5a5;
  --info:              #2563eb;
  --info-light:        #dbeafe;
  --info-border:       #bfdbfe;

  /* Borders & Shadows */
  --border:            #e5e7eb; /* Fine light gray */
  --border-strong:     #d1d5db;
  --border-focus:      #00a86b;

  --shadow-sm:         0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md:         0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:         0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-hud:        0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.04);

  /* Radius Scales */
  --radius-sm:         6px;
  --radius-md:         8px;
  --radius-lg:         12px;
  --radius-xl:         16px;
  --radius-full:       9999px;

  /* Layout Font Settings */
  --font-title:        'Outfit', 'Inter', system-ui, sans-serif;
  --font-body:         'Inter', system-ui, -apple-system, sans-serif;
  --transition:        200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Resets ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover {
  color: var(--brand-green);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--accent-green);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ─── Visible Focus State ─── */
:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
}

/* ─── Page Switcher ─── */
.page { display: none; }
.page.active { 
  display: block; 
  animation: pageFadeIn 0.35s ease-out forwards;
}

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

/* ─── Trust Indicator Strip ─── */
.safe-strip {
  background: #f3f4f6;
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.safe-strip-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-green);
  flex-shrink: 0;
}

/* ===================================================
   NAVIGATION BAR (HEADER)
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: 64px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--brand-green-dark);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-shield-svg {
  width: 16px;
  height: 16px;
  color: #fff;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-link {
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  position: relative;
}
.nav-link:hover {
  color: #fff;
}
.nav-link.active {
  color: #fff;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 3px;
  background: var(--accent-green);
  border-radius: 3px 3px 0 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switcher {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.lang-btn {
  cursor: pointer;
  padding: 4px 6px;
}

.nav-emergency-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  min-height: 34px;
}
.nav-emergency-btn i {
  width: 14px;
  height: 14px;
}
.nav-emergency-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===================================================
   CENTERED HERO PANEL (REFERENCE LAYOUT)
   =================================================== */
.hero {
  background: #ffffff;
  padding: 100px 24px 60px;
  border-bottom: 1px solid var(--border);
}

.centered-hero {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* Concentric Pulse Widget Visual */
.pulse-shield-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  cursor: pointer;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 168, 107, 0.035);
  border: 1px solid rgba(0, 168, 107, 0.05);
  animation: pulseRingAnimation 4s infinite cubic-bezier(0.25, 0, 0, 1);
}
.ring-1 {
  width: 130px; height: 130px;
  animation-delay: 0s;
}
.ring-2 {
  width: 180px; height: 180px;
  animation-delay: 1.2s;
}
.ring-3 {
  width: 230px; height: 230px;
  animation-delay: 2.4s;
}

.pulse-center-badge {
  position: relative;
  z-index: 10;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 168, 107, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pulse-center-badge i {
  width: 44px;
  height: 44px;
  color: #fff;
}
.pulse-shield-wrapper:hover .pulse-center-badge {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 168, 107, 0.45);
}

@keyframes pulseRingAnimation {
  0% {
    transform: scale(0.92);
    opacity: 0.3;
  }
  50% {
    opacity: 0.95;
  }
  100% {
    transform: scale(1.08);
    opacity: 0.3;
  }
}

/* CTA Centered Panel */
.hero-cta-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
  width: 100%;
}

.btn-bank-protect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 44px;
  background: var(--accent-green);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  min-height: 48px;
  box-shadow: 0 4px 16px rgba(0, 168, 107, 0.2);
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.btn-bank-protect:hover {
  background: #00935d;
  box-shadow: 0 6px 20px rgba(0, 168, 107, 0.3);
  transform: translateY(-1px);
}
.btn-bank-protect i {
  width: 16px;
  height: 16px;
}

/* ─── Global Premium Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-green);
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  min-height: 42px;
  box-shadow: 0 4px 14px rgba(0, 168, 107, 0.18);
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--brand-green-dark);
  box-shadow: 0 6px 18px rgba(0, 168, 107, 0.25);
  transform: translateY(-1px);
  color: #ffffff;
}
.btn-primary i {
  width: 16px;
  height: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: #f3f4f6;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  min-height: 42px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-secondary:hover {
  background: #e5e7eb;
  border-color: #c7cbd2;
  transform: translateY(-1px);
}
.btn-secondary i {
  width: 16px;
  height: 16px;
}

.cta-subtext {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}
.cta-check-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-green);
}

/* 4-Column Feature Row (reference exact styling) */
.hero-feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 28px;
  text-align: left;
}

.feature-col {
  padding: 0 20px;
  display: flex;
  gap: 12px;
}
.feature-col:not(:first-child) {
  border-left: 1px solid var(--border);
}

.feature-col-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-col-icon i {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}

.feature-col-text h4 {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.feature-col-text p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.hero-footer-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.hero-footer-notice i {
  width: 14px;
  height: 14px;
}

/* ===================================================
   SECTIONS COMMON & FRAUD GRID
   =================================================== */
section {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-green-light);
  border: 1px solid rgba(0, 168, 107, 0.15);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-header h2 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.categories-section {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

/* Clean White Card Component */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--card-accent, var(--accent-green));
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon-wrap i {
  width: 18px;
  height: 18px;
  color: var(--card-accent, var(--accent-green));
}
.card-severity {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.severity-high {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}
.severity-medium {
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}

.card-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.card-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0 6px;
}
.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.card-read-more {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-green);
  font-weight: 700;
}
.card-read-more i {
  width: 12px;
  height: 12px;
}
.card-stats {
  color: var(--text-muted);
}

/* ===================================================
   QUICK CHECK & PROTECTION TIPS
   =================================================== */
.quick-check-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.qc-left {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
}
.qc-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qc-icon i {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
}
.qc-left h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.qc-left p {
  font-size: 13px;
  color: var(--text-secondary);
}

.qc-right {
  flex: 1;
  width: 100%;
}
.qc-input-group {
  display: flex;
  gap: 8px;
}
.qc-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13.5px;
}
.qc-input:focus {
  outline: none;
  border-color: var(--accent-green);
}
.qc-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.qc-btn:hover {
  background: var(--brand-green);
}
.qc-btn i {
  width: 16px;
  height: 16px;
}
.qc-result {
  margin-top: 10px;
  font-size: 13px;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: none;
}
.qc-result.show {
  display: block;
}
.qc-result.safe {
  background: var(--success-light);
  border: 1px solid var(--success-border);
  color: var(--success);
}
.qc-result.warning {
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}
.qc-result.danger {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

.tips-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}
.tip-number {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 20px;
  font-weight: 800;
  color: #f3f4f6;
}
.tip-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.tip-icon i {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}
.tip-card h4 {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.tip-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===================================================
   VERIFICATION & REPORT SYSTEMS
   =================================================== */
.page-header {
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.page-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.verify-container {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 24px;
}
.verify-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.vtab {
  flex: 1;
  padding: 10px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.vtab i {
  width: 14px;
  height: 14px;
}
.vtab.active {
  background: var(--accent-green-light);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.verify-input-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.verify-input-section h3 {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.verify-input-section p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.verify-input-group {
  display: flex;
  gap: 8px;
  position: relative;
}
.verify-input-icon {
  position: absolute;
  left: 14px; top: 11px;
  color: var(--text-muted);
}
.verify-input-icon i {
  width: 18px;
  height: 18px;
}
.verify-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 44px;
  color: var(--text-primary);
  font-size: 13.5px;
}
.verify-input:focus {
  outline: none;
  border-color: var(--accent-green);
}
.verify-btn {
  padding: 0 20px;
  background: var(--accent-green);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
}
.verify-btn:hover {
  background: var(--brand-green);
}

.verify-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  display: none;
  font-size: 13px;
}
.verify-result.show {
  display: block;
}
.verify-result.safe {
  background: var(--success-light);
  border: 1px solid var(--success-border);
  color: var(--success);
}
.verify-result.warning {
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
  color: var(--warning);
}

.vr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.vr-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vr-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-green);
  font-size: 12px;
}
.vr-card strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-primary);
}
.vr-card span {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Checklist Red Flags */
.red-flags-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
}
.red-flags-section h3 {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.red-flags-section h3 i {
  color: var(--danger);
}
.flags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.flag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.flag-item:hover {
  background: #f3f4f6;
}
.flag-check {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}
.flag-check i {
  width: 16px;
  height: 16px;
}
.flag-item.checked {
  border-color: var(--danger-border);
  background: var(--danger-light);
}
.flag-item.checked .flag-check {
  color: var(--danger);
}
.flags-result {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===================================================
   REPORT & EMERGENCY LAYOUTS
   =================================================== */
.report-container {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 24px;
}
.report-emergency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.re-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.re-card.urgent {
  border-color: var(--danger-border);
  background: var(--danger-light);
}
.re-icon i {
  width: 20px;
  height: 20px;
}
.re-card.urgent .re-icon i {
  color: var(--danger);
}
.re-card.bank .re-icon i {
  color: var(--accent-green);
}
.re-content h3 {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.re-content p {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.re-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
}
.re-btn i {
  width: 14px;
  height: 14px;
}
.re-btn.secondary {
  background: #f3f4f6;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.re-btn.secondary:hover {
  background: #e5e7eb;
}

.report-channels h3 {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-icon i {
  width: 14px;
  height: 14px;
  color: var(--accent-green);
}
.channel-card h4 {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--text-primary);
}
.channel-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.after-fraud {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
}
.after-fraud h3 {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.step-content h4 {
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.step-content p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ===================================================
   FRAUD DETAILED ARCTICLES
   =================================================== */
.fraud-layout {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}
.fraud-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.sidebar-card h4 {
  font-family: var(--font-title);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-item {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.sidebar-item:hover {
  background: #f3f4f6;
  color: var(--text-primary);
}
.sidebar-item.active {
  background: var(--accent-green-light);
  color: var(--brand-green);
  border-left: 3px solid var(--accent-green);
  font-weight: 700;
}

.sidebar-emergency {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.se-icon i {
  color: var(--danger);
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
}
.sidebar-emergency p {
  font-size: 12px;
  margin-bottom: 12px;
}
.se-btn {
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 12px;
}

.fraud-main {
  min-width: 0;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-header {
  padding: 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
  position: relative;
}
.article-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 32px; right: 32px;
  height: 2px;
  background: var(--accent-green);
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.article-icon-lg i {
  width: 24px;
  height: 24px;
  color: var(--accent-green);
}
.article-tags {
  display: flex;
  gap: 6px;
}
.article-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.article-header h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}
.article-header .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.article-body {
  padding: 32px;
}
.article-section {
  margin-bottom: 24px;
}
.article-body h3 {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-body p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Warnings and info boxes */
.warning-box {
  background: var(--danger-light);
  border: 1px solid var(--danger-border);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 16px;
}
.wb-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wb-title i {
  width: 14px;
  height: 14px;
}
.warning-box p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.info-box {
  background: var(--success-light);
  border: 1px solid var(--success-border);
  border-left: 4px solid var(--success);
  border-radius: var(--radius-md);
  padding: 16px;
}
.ib-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  color: var(--success);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ib-title i {
  width: 14px;
  height: 14px;
}
.info-box p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-list-item {
  display: flex;
  gap: 12px;
}
.step-list-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}
.step-list-content strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.step-list-content span {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.signs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sign-item {
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ===================================================
   RESOURCES DIRECTORY
   =================================================== */
.resources-container {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 24px;
}
.res-section h3 {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.res-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.res-card h4 {
  font-family: var(--font-title);
  font-size: 13.5px;
  color: var(--text-primary);
}
.res-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.tool-category h4 {
  font-family: var(--font-title);
  font-size: 13px;
  margin-bottom: 10px;
}
.tools-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.bank-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #f9fafb;
  border-top: 1px solid var(--border);
  padding: 40px 24px 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}
.footer-brand p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 10px;
}
.footer-logo-svg {
  width: 16px;
  height: 16px;
  color: var(--brand-green);
}
.footer-brand .logo-main {
  color: var(--brand-green);
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.footer-link {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-align: left;
  text-decoration: none;
}
.footer-link:hover {
  color: var(--brand-green);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-legal, .footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===================================================
   THREAT SCANNER OFFICIAL MODAL (WHITE CORPORATE LOOK)
   =================================================== */
.scanner-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.scanner-hud {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hud);
  overflow: hidden;
}

.scanner-header {
  padding: 16px 24px;
  background: var(--brand-green);
  border-bottom: 1px solid var(--brand-green-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scanner-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scanner-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scanner-logo-icon i {
  width: 16px;
  height: 16px;
  color: #fff;
}
.hud-main {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.hud-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}
.hud-close-btn {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  padding: 4px;
}
.hud-close-btn:hover {
  color: #fff;
}

.scanner-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hud-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}
.hud-card-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hud-card-value {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}
.hud-card-value.text-cyan {
  color: var(--accent-green);
}
.hud-card-value.text-green {
  color: var(--accent-green);
}

/* Diagnostic Console View */
.hud-display {
  position: relative;
  height: 180px;
  background: #fafafa;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.scan-grid-decor {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.01) 50%, rgba(255, 255, 255, 0.01) 50%),
    linear-gradient(90deg, rgba(0,0,0,0.01) 50%, rgba(255,255,255,0.01) 50%);
  background-size: 100% 4px, 4px 100%;
  pointer-events: none;
  z-index: 3;
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  opacity: 0.7;
  z-index: 2;
  animation: scanningSweepVertical 2.5s linear infinite;
  pointer-events: none;
}
@keyframes scanningSweepVertical {
  0% { transform: translateY(-2px); }
  100% { transform: translateY(182px); }
}

.hud-console {
  position: absolute;
  inset: 12px;
  overflow: hidden;
  z-index: 1;
}
.hud-log-container {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hud-log-container::-webkit-scrollbar {
  width: 4px;
}
.hud-log-container::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}
.hud-log-line {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.log-time {
  color: var(--text-muted);
}
.log-text {
  color: var(--text-primary);
  font-weight: 550;
}

/* Progress Section */
.hud-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hud-progress-bar-wrap {
  height: 5px;
  background: #f3f4f6;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.hud-progress-bar {
  height: 100%;
  background: var(--accent-green);
  width: 0%;
  transition: width 0.3s ease;
}
.hud-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.hud-progress-info span:first-child {
  color: var(--accent-green);
}

/* Report View Panel */
.hud-result-panel {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 5;
  padding: 20px;
  overflow-y: auto;
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.result-header {
  text-align: center;
}
.result-shield-icon {
  color: var(--accent-green);
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.result-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--text-primary);
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.res-item {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.res-item i {
  width: 14px;
  height: 14px;
}
.res-item i.text-green {
  color: var(--accent-green);
}
.res-item span {
  color: var(--text-secondary);
}
.res-item strong {
  margin-left: auto;
  color: var(--text-primary);
}
.result-tips {
  background: #fcfcfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.result-tips h4 {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.result-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.result-tips li {
  font-size: 12px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 14px;
}
.result-tips li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent-green);
}

.ip-details-card {
  background: #f9fafb;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
}
.ip-details-card h4 {
  font-family: var(--font-title);
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ip-details-card h4 i {
  color: var(--brand-green);
  width: 16px;
  height: 16px;
}
.ip-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ip-details-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ip-details-item span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.ip-details-item strong {
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-all;
}

/* ===================================================
   RESPONSIVE DESIGN ADAPTATIONS
   =================================================== */
@media (max-width: 900px) {
  .hero-feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
  }
  .feature-col:nth-child(even) {
    border-left: 1px solid var(--border);
  }
  .feature-col:nth-child(odd) {
    border-left: none;
  }
  .quick-check-card {
    flex-direction: column;
    gap: 16px;
  }
  .qc-left {
    text-align: center;
    flex-direction: column;
  }
  .report-emergency {
    grid-template-columns: 1fr;
  }
  .fraud-layout {
    grid-template-columns: 1fr;
  }
  .fraud-sidebar {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-feature-row {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }
  .feature-col {
    border-left: none !important;
    padding: 0;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .flags-grid {
    grid-template-columns: 1fr;
  }
  .hud-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ─── Web Scanning Limitations & WHOIS Custom Styles ─── */
.scanner-warning-alert {
  display: flex;
  gap: 12px;
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 8px;
  align-items: flex-start;
}
.scanner-warning-alert i {
  color: var(--warning);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.scanner-warning-alert span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.text-warning-orange {
  color: var(--warning) !important;
}
.btn-whois-toggle {
  background: none;
  border: none;
  color: var(--brand-green);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.btn-whois-toggle:hover {
  background: rgba(0, 90, 54, 0.05);
}
.whois-card {
  margin-top: 16px;
  border: 1px solid var(--border-strong) !important;
}
.whois-raw-container {
  border: 1px solid #2d3748;
  border-radius: var(--radius-md);
  background: #1a202c;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.whois-terminal-header {
  background: #2d3748;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #1a202c;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-dot.red { background: #fc5753; }
.terminal-dot.yellow { background: #fdbc40; }
.terminal-dot.green { background: #33c748; }
.terminal-title {
  color: #a0aec0;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  margin-left: 8px;
}
.whois-raw-output {
  color: #edf2f7;
  background: #1a202c;
  padding: 16px;
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  line-height: 1.5;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  text-align: left;
}
.whois-raw-output::-webkit-scrollbar {
  width: 6px;
}
.whois-raw-output::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 3px;
}

/* ===================================================
   TRANSLATOR ANNOTATOR SYSTEM
   =================================================== */
.translator-panel-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 90, 54, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: var(--shadow-hud);
  transition: transform var(--transition), box-shadow var(--transition);
}
.translator-panel-root:hover {
  box-shadow: 0 15px 30px rgba(0, 90, 54, 0.15);
}
.translator-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-green);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}
.translator-mode-btn i {
  width: 14px;
  height: 14px;
}
.translator-mode-btn:hover {
  background: var(--brand-green-dark);
}
.translator-mode-btn.active {
  background: var(--accent-green);
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}
.translator-mode-btn.active:hover {
  background: #00935d;
}
.translator-list-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.translator-list-btn i {
  width: 15px;
  height: 15px;
}
.translator-list-btn:hover {
  background: #e5e7eb;
}
.translator-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Correction Tooltip Button */
.translator-floating-edit-btn {
  position: fixed;
  z-index: 99999;
  background: var(--brand-green);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 6px;
  transform: scale(0.9);
  opacity: 0;
  animation: floatIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
  cursor: pointer;
  transition: var(--transition);
}
.translator-floating-edit-btn i {
  width: 14px;
  height: 14px;
}
.translator-floating-edit-btn:hover {
  background: var(--accent-green);
  transform: scale(1.05);
}
@keyframes floatIn {
  to { transform: scale(1); opacity: 1; }
}

/* Suggestion Modal Overlay */
.translator-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
.translator-modal {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  margin: 16px;
  box-shadow: var(--shadow-hud);
  overflow: hidden;
  transform: translateY(20px);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes slideUp {
  to { transform: translateY(0); }
}
.translator-modal-header {
  background: var(--brand-green);
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.translator-modal-header h3 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.translator-modal-close {
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}
.translator-modal-close:hover {
  color: #fff;
}
.translator-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.translator-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.translator-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}
.translator-original-text-well {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}
.translator-textarea {
  width: 100%;
  height: 90px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: 13.5px;
  color: var(--text-primary);
  font-family: var(--font-body);
  resize: vertical;
}
.translator-textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-glow);
}
.translator-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.translator-input:focus {
  outline: none;
  border-color: var(--accent-green);
}
.translator-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f9fafb;
}

/* Slide-over Sidebar */
.translator-sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 24, 39, 0.4);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.translator-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.translator-sidebar {
  position: fixed;
  top: 0; bottom: 0; right: -420px;
  width: 400px;
  max-width: 90%;
  background: #ffffff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  border-left: 1px solid var(--border);
  z-index: 100001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.translator-sidebar.active {
  right: 0;
}
.translator-sidebar-header {
  background: var(--brand-green);
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.translator-sidebar-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.translator-sidebar-close {
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.translator-sidebar-close:hover {
  color: #fff;
}
.translator-sidebar-actions {
  display: flex;
  padding: 12px 20px;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.translator-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.translator-action-btn i {
  width: 13px;
  height: 13px;
}
.translator-action-btn:hover {
  background: #f3f4f6;
}
.translator-action-btn.danger {
  color: var(--danger);
  border-color: var(--danger-border);
}
.translator-action-btn.danger:hover {
  background: var(--danger-light);
}
.translator-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.translator-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 200px;
  color: var(--text-muted);
  text-align: center;
}
.translator-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--border-strong);
}

/* Correction Card */
.correction-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.correction-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.correction-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 6px;
  font-size: 11px;
}
.correction-card-path {
  font-weight: 700;
  color: var(--brand-green);
  text-decoration: none;
}
.correction-card-date {
  color: var(--text-muted);
}
.correction-card-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  text-align: left;
}
.correction-label-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.correction-original {
  background: #f9fafb;
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--text-secondary);
  border-left: 2px solid var(--border-strong);
  white-space: pre-wrap;
  word-break: break-word;
}
.correction-corrected {
  background: var(--accent-green-light);
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--text-primary);
  border-left: 2px solid var(--accent-green);
  font-weight: 500;
  white-space: pre-wrap;
  word-break: break-word;
}
.correction-comment {
  font-style: italic;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: #fff;
  border: 1px dashed var(--border);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.correction-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 12px;
  padding-top: 6px;
  border-top: 1px solid #f3f4f6;
}
.correction-card-action {
  background: none;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.correction-card-action.edit {
  color: var(--info);
}
.correction-card-action.edit:hover {
  background: var(--info-light);
}
.correction-card-action.delete {
  color: var(--danger);
}
.correction-card-action.delete:hover {
  background: var(--danger-light);
}

