/* =========================================================
   AIRATERHUB — NEXT-GEN DASHBOARD UI (V4.2)
   Design Recipe: 70% Glassmorphism + 25% Cyberpunk + 5% 3D
   Engineered for: airaterhub.com
   Creator: @subhurowdy
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #060913;
  --surface: rgba(14, 21, 38, 0.70);
  --surface-2: rgba(19, 28, 51, 0.75);
  --surface-3: rgba(26, 38, 68, 0.82);
  --border: rgba(255, 255, 255, 0.08);
  --border-specular: rgba(255, 255, 255, 0.22);
  --text: #edf2ff;
  --muted: #8b97b2;
  --primary: #8b5cf6;
  --primary-2: #6366f1;
  --cyan: #00f0ff;
  --neon-cyan: #00f0ff;
  --neon-purple: #a855f7;
  --neon-blue: #38bdf8;
  --neon-green: #10b981;
  --neon-pink: #ec4899;
  --green: #10b981;
  --pink: #f472b6;
  --orange: #fb923c;
  --radius: 20px;
  --sidebar-width: 260px;
  --shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 240, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --shadow-3d: 0 20px 45px -12px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 240, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  --shadow-3d-hover: 0 28px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* CYBERPUNK 25%: Futuristic dark matrix grid + glowing atmospheric nebulas */
body {
  margin: 0;
  min-height: 100vh;
  background-color: #060913;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 92% 35%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(ellipse 55% 35% at 8% 75%, rgba(0, 240, 255, 0.12), transparent),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

::selection {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.55);
}

.mobile-overlay {
  display: none;
}

/* =========================================================
   SIDEBAR — 70% Glassmorphism + 25% Cyberpunk + 5% 3D
   ========================================================= */
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 24px 16px 16px;
  overflow-y: auto;
  background: rgba(8, 12, 24, 0.80);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow: 4px 0 35px rgba(0, 0, 0, 0.5), inset -1px 0 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.28s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

/* 3D Brand Logo Squircle */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-radius: 13px;
  background: #020713;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.7);
}

.brand-logo img,
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-version-pill {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #00d2ff, #7c3aed);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  display: inline-block;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.4);
}

.brand h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.6px;
  font-weight: 800;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  padding: 10px 14px;
  color: #9ca8c0;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.22);
  transform: translateX(4px);
}

.nav-item:hover svg {
  color: var(--neon-cyan);
  transform: scale(1.1);
}

.nav-item.active {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.38);
  border-top-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.18), rgba(139, 92, 246, 0.08));
  box-shadow: inset 3px 0 0 #00f0ff, 0 0 18px rgba(0, 240, 255, 0.22);
  font-weight: 600;
}

.nav-item.active svg {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}

.nav-title {
  padding: 20px 12px 7px;
  color: #556586;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", monospace;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}

/* 70% Glass + 25% Cyberpunk Upgrade Box */
.upgrade-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-top: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 240, 255, 0.18), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.16), transparent 60%),
    rgba(14, 20, 38, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.upgrade-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #a855f7, transparent);
  box-shadow: 0 0 10px #00f0ff;
}

.upgrade-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 11px;
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 11px;
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.upgrade-icon svg {
  width: 19px;
  filter: drop-shadow(0 0 4px #00f0ff);
}

.upgrade-card > strong {
  font-size: 13px;
  color: #ffffff;
  display: block;
}

.upgrade-card p {
  margin: 6px 0 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* 3D Tactile Button */
.upgrade-card button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #00d2ff 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 4px 0 #4c1d95,
    0 8px 22px rgba(0, 210, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.15s ease, filter 0.15s ease;
}

.upgrade-card button:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #4c1d95,
    0 12px 28px rgba(0, 210, 255, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.upgrade-card button:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #4c1d95,
    0 4px 10px rgba(0, 210, 255, 0.3);
}

.upgrade-card button svg {
  width: 15px;
  height: 15px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 3px 0;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #7c3aed);
  color: white;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.35);
}

.user-info {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.user-info strong {
  font-size: 12px;
}

.user-info span {
  color: var(--muted);
  font-size: 11px;
}

.more-btn,
.icon-btn,
.theme-btn,
.mobile-menu {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(18, 26, 48, 0.75);
  backdrop-filter: blur(14px);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.more-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
}

.more-btn svg {
  width: 17px;
}

/* =========================================================
   TOPBAR — 70% Glassmorphism + 25% Cyberpunk + 5% 3D
   ========================================================= */
.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.28s ease;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 94px;
  padding: 18px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 23, 0.74);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(0, 240, 255, 0.14);
}

.page-title h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn,
.theme-btn {
  position: relative;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.icon-btn svg,
.theme-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover,
.theme-btn:hover,
.more-btn:hover {
  color: #ffffff;
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.10);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.25);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--bg);
  border-radius: 50%;
  background: #ff007a;
  box-shadow: 0 0 10px #ff007a;
  animation: cyberPulse 2s infinite;
}

/* 3D Tactile Auth Header Button */
.btn-auth-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00d2ff, #7c3aed);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 4px 0 #4c1d95,
    0 8px 20px rgba(0, 210, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-auth-header:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #4c1d95,
    0 12px 25px rgba(0, 210, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-auth-header:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #4c1d95,
    0 4px 10px rgba(0, 210, 255, 0.3);
}

.profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(18, 26, 48, 0.65);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.15);
}

.profile-text {
  display: flex;
  flex-direction: column;
}

.profile-text strong {
  font-size: 12px;
}

.profile-text span {
  color: var(--muted);
  font-size: 10px;
}

.profile > svg {
  width: 15px;
  color: var(--muted);
}

.profile-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: 185px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  background: rgba(15, 22, 42, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.1);
}

.profile-dropdown.open {
  display: block;
  animation: modalFadeIn 0.2s ease;
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  transition: all 0.18s ease;
}

.profile-dropdown a:hover {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.10);
  transform: translateX(3px);
}

.profile-dropdown svg {
  width: 16px;
}

.mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
}

/* =========================================================
   MAIN CONTENT & 3D PERSPECTIVE CONTAINER
   ========================================================= */
.content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 34px 45px;
  perspective: 1200px;
}

/* =========================================================
   ANALYZER HERO CARD — 70% Glass + 25% Cyberpunk + 5% 3D
   ========================================================= */
.analyzer-card {
  position: relative;
  overflow: hidden;
  padding: 32px 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(0, 240, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at 15% 100%, rgba(139, 92, 246, 0.13), transparent 45%),
    linear-gradient(135deg, rgba(16, 24, 46, 0.84), rgba(9, 14, 28, 0.90) 70%, rgba(12, 19, 36, 0.88));
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow:
    0 24px 50px -12px rgba(0, 0, 0, 0.78),
    0 0 30px rgba(0, 240, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

/* Cyberpunk Top Neon Laser Beam */
.analyzer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff 40%, #a855f7 70%, transparent);
  box-shadow: 0 0 14px #00f0ff;
  border-radius: 2px;
  pointer-events: none;
}

.analyzer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00f0ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", monospace;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 14px #10b981;
  animation: cyberPulse 2s infinite;
}

@keyframes cyberPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.95);
  }
}

.analyzer-header h2 {
  margin: 12px 0 6px;
  font-size: clamp(23px, 2.5vw, 31px);
  letter-spacing: -0.9px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.analyzer-header p {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.analyzer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  white-space: nowrap;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 11px;
  background: rgba(0, 240, 255, 0.08);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
}

.analyzer-status svg {
  width: 16px;
  height: 16px;
  color: var(--neon-cyan);
}

/* URL Input & 3D Tactile Form */
.url-form {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.url-input {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 12px;
  padding: 6px 10px 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 14px;
  background: rgba(5, 8, 18, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.url-input:focus-within {
  border-color: #00f0ff;
  background: rgba(7, 11, 24, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.22), 0 0 24px rgba(0, 240, 255, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.url-input > svg {
  flex-shrink: 0;
  width: 19px;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}

.url-input input {
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  outline: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.url-input input::placeholder {
  color: #62728f;
}

.paste-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #9cb0d1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.paste-btn:hover {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.3);
}

.paste-btn svg {
  width: 15px;
}

/* 3D Tactile Cyber CTA Button */
.analyze-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #00d2ff 0%, #2563eb 50%, #7c3aed 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 5px 0 #1e3a8a,
    0 12px 28px rgba(0, 210, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.15s ease, filter 0.15s ease;
}

.analyze-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow:
    0 7px 0 #1e3a8a,
    0 16px 35px rgba(0, 210, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.analyze-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #1e3a8a,
    0 6px 15px rgba(0, 210, 255, 0.35);
}

.analyze-btn svg {
  width: 17px;
  height: 17px;
}

.analyze-btn .spin {
  animation: spin 1s linear infinite;
}

#formMessage {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

#formMessage.error {
  color: #ff4d6d;
  text-shadow: 0 0 10px rgba(255, 77, 109, 0.4);
}

#formMessage.success {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

.supported-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.supported-platforms > span {
  color: #6d7d9b;
  font-weight: 600;
}

.supported-platforms > div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.supported-platforms svg {
  width: 15px;
  height: 15px;
  color: var(--neon-cyan);
}

.platform-note {
  margin: 12px 0 0;
  color: #657492;
  font-size: 10.5px;
}

/* =========================================================
   RESULTS & TELEMETRY SECTION
   ========================================================= */
.result-section {
  margin-top: 36px;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.result-heading h2 {
  margin: 5px 0 0;
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 800;
}

.analyzed-url {
  max-width: 48%;
  overflow: hidden;
  padding: 8px 14px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.06);
  color: #a5f3fc;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.score-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 2fr);
  gap: 18px;
}

/* 70% Glassmorphism Base for Cards */
.overall-card,
.metric-card,
.panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 24, 45, 0.75), rgba(9, 14, 27, 0.84));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 20px 45px -12px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(0, 240, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.overall-card:hover,
.panel:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow:
    0 26px 55px -10px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(0, 240, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* =========================================================
   OVERALL CARD & 3D SPHERICAL SCORE RING
   ========================================================= */
.overall-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}

.overall-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  box-shadow: 0 0 10px #00f0ff;
}

/* 3D Concentric Score Orb */
.score-ring {
  display: grid;
  place-items: center;
  width: 164px;
  height: 164px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0%, #1e263d 0%);
  position: relative;
  box-shadow:
    0 16px 36px rgba(0, 240, 255, 0.24),
    0 0 0 6px rgba(255, 255, 255, 0.03),
    inset 0 0 25px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.3s ease;
}

.score-ring::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  background: radial-gradient(circle at 35% 30%, #17223e, #090d1a 75%);
  box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(255, 255, 255, 0.12);
  content: "";
}

.score-center {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.score-number {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 30%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 240, 255, 0.35));
}

.score-center small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.overall-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.overall-card > p {
  max-width: 220px;
  min-height: 35px;
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 11.5px;
}

.score-confidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10.5px;
}

.score-confidence svg {
  width: 15px;
  color: var(--neon-cyan);
}

.score-confidence span {
  flex: 1;
  text-align: left;
}

.score-confidence strong {
  color: #00f0ff;
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", monospace;
}

/* =========================================================
   METRICS GRID — 70% Glass + 25% Cyberpunk + 5% 3D
   ========================================================= */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
  transform-style: preserve-3d;
}

/* 3D Hover Tilt & Elevation */
.metric-card:hover {
  transform: translateY(-5px) translateZ(10px) rotateX(1deg);
  border-color: rgba(0, 240, 255, 0.32);
  box-shadow:
    0 22px 48px -10px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(0, 240, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.metric-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.metric-icon svg {
  width: 17px;
  height: 17px;
}

.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.pink {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.25);
}

.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.orange {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.25);
}

.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.metric-label {
  color: #b1bed6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 11px;
}

.metric-value strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}

.metric-value span {
  color: var(--muted);
  font-size: 12px;
}

/* Cyber Neon Progress Bar */
.progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #00f0ff);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.metric-card p {
  min-height: 29px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

/* =========================================================
   LOWER GRID & PIPELINE PANELS
   ========================================================= */
.lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.panel {
  padding: 24px;
  margin-top: 18px;
}

.lower-grid .panel {
  margin-top: 0;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.panel-header h3 svg {
  width: 18px;
  height: 18px;
  color: var(--neon-cyan);
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.complete-badge,
.ai-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  color: #a5f3fc;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", monospace;
  background: rgba(0, 240, 255, 0.08);
}

.ai-badge {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.10);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

/* Analysis Pipeline */
.pipeline {
  display: flex;
  flex-direction: column;
}

.pipeline-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pipeline-item:last-child {
  border-bottom: 0;
}

.pipeline-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(18, 26, 48, 0.65);
  color: #9cb0d1;
  transition: all 0.2s ease;
}

.pipeline-icon svg {
  width: 17px;
}

.pipeline-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.pipeline-text strong {
  font-size: 12px;
}

.pipeline-text span {
  color: var(--muted);
  font-size: 10.5px;
}

.pipeline-check {
  width: 18px;
  color: #556586;
}

.pipeline-item.done .pipeline-icon {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.pipeline-item.done .pipeline-check {
  color: #34d399;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.5));
}

.pipeline-item.active .pipeline-icon {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.14);
  color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

/* Suggestions & AI Insights */
.empty-suggestion {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
  padding: 20px;
  text-align: center;
}

.empty-suggestion > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

.empty-suggestion strong {
  font-size: 13px;
}

.empty-suggestion p {
  max-width: 240px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.suggestion-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item h4 {
  margin: 0;
  font-size: 12.5px;
}

.suggestion-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.suggestion-type,
.priority {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #c084fc;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.priority.high {
  color: #ff4d6d;
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.1);
}

.priority.medium {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.1);
}

.priority.low {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}

/* Hashtags Panel */
.hashtag-panel {
  margin-top: 20px;
}

.copy-all {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 240, 255, 0.2), 0 4px 12px rgba(0, 240, 255, 0.15);
  transition: all 0.18s ease;
}

.copy-all:hover {
  background: rgba(0, 240, 255, 0.16);
  border-color: #00f0ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(0, 240, 255, 0.3), 0 6px 18px rgba(0, 240, 255, 0.25);
}

.copy-all:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 240, 255, 0.2);
}

.copy-all svg {
  width: 14px;
  height: 14px;
}

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hashtag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(0, 240, 255, 0.06);
  backdrop-filter: blur(12px);
  color: #c4b5fd;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.18s ease;
}

.hashtag:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.25);
}

.page-details p {
  padding: 11px 0;
  margin: 0;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.page-details p:last-child {
  border-bottom: 0;
}

.page-details strong {
  color: var(--text);
}

.page-details #analysisDisclaimer {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.06);
  color: #fed7aa;
  font-size: 11px;
  line-height: 1.6;
}

/* =========================================================
   FOOTER & TOAST
   ========================================================= */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 34px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 22, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #76819a;
  font-size: 11px;
}

.legal-pages-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-pages-links a {
  color: #9ca8c0;
  transition: color 0.18s ease;
}

.legal-pages-links a:hover {
  color: var(--neon-cyan);
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(14, 21, 38, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 240, 255, 0.2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast svg {
  width: 18px;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

/* Light theme support */
body.light-theme {
  color-scheme: light;
  --bg: #f2f5fc;
  --surface: #ffffff;
  --surface-2: #f7f8fd;
  --surface-3: #eceffc;
  --border: rgba(55, 65, 100, 0.14);
  --text: #1b2440;
  --muted: #65708a;
  --shadow: 0 12px 32px rgba(32, 45, 80, 0.08);
  background: #f2f5fc;
}

body.light-theme .sidebar {
  background: rgba(255, 255, 255, 0.96);
}

body.light-theme .topbar {
  background: rgba(255, 255, 255, 0.88);
}

body.light-theme .analyzer-card {
  background: radial-gradient(ellipse at 90% 0%, rgba(109, 93, 252, 0.09), transparent 45%), #ffffff;
}

body.light-theme .overall-card,
body.light-theme .metric-card,
body.light-theme .panel {
  background: #ffffff;
}

body.light-theme .score-ring {
  background: conic-gradient(var(--primary) 0%, #e4e7f1 0%);
}

body.light-theme .score-ring::before {
  background: #ffffff;
}

body.light-theme .url-input {
  background: #f7f8fd;
}

body.light-theme .upgrade-card {
  background: #f1edff;
}

body.light-theme .upgrade-card > strong {
  color: #33235c;
}

body.light-theme .upgrade-card p {
  color: #6b6283;
}

body.light-theme .metric-label {
  color: #59657d;
}

body.light-theme .profile-dropdown {
  background: #ffffff;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive layouts */
@media (min-width: 1500px) {
  .content {
    padding-right: 42px;
    padding-left: 42px;
  }

  .topbar {
    padding-right: 42px;
    padding-left: 42px;
  }

  .metric-card {
    padding: 20px;
  }
}

@media (max-width: 1200px) {
  :root {
    --sidebar-width: 240px;
  }

  .content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .topbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .score-layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    padding: 16px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 260px;
    transform: translateX(-105%);
    box-shadow: none;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 20px 0 55px rgba(0, 0, 0, 0.6);
  }

  .mobile-overlay.show {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
  }

  .main {
    margin-left: 0;
  }

  .mobile-menu {
    display: grid;
    flex-shrink: 0;
  }

  .topbar {
    gap: 12px;
  }

  .page-title {
    flex: 1;
  }

  .page-title h1 {
    font-size: 19px;
  }

  .profile-text,
  .profile > svg {
    display: none;
  }

  .profile {
    padding: 4px;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 76px;
    padding: 13px 16px;
    gap: 10px;
  }

  .page-title h1 {
    font-size: 17px;
  }

  .page-title p {
    max-width: 240px;
    font-size: 10.5px;
    line-height: 1.5;
  }

  .top-actions {
    gap: 7px;
  }

  .icon-btn,
  .theme-btn,
  .mobile-menu {
    width: 36px;
    height: 36px;
  }

  .btn-auth-header {
    padding: 8px 12px;
    font-size: 11.5px;
  }

  .content {
    padding: 18px 14px 30px;
  }

  .analyzer-card {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .analyzer-header {
    flex-direction: column;
    gap: 13px;
  }

  .analyzer-header h2 {
    font-size: 24px;
  }

  .analyzer-status {
    align-self: flex-start;
  }

  .url-form {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .url-input {
    min-height: 48px;
  }

  .analyze-btn {
    width: 100%;
    min-height: 48px;
  }

  .supported-platforms {
    gap: 10px 14px;
  }

  .result-section {
    margin-top: 28px;
  }

  .result-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .result-heading h2 {
    font-size: 19px;
  }

  .analyzed-url {
    max-width: 100%;
  }

  .score-layout {
    grid-template-columns: 1fr;
  }

  .overall-card {
    padding: 26px 18px;
  }

  .score-ring {
    width: 150px;
    height: 150px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-value strong {
    font-size: 25px;
  }

  .lower-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 16px;
  }

  .panel,
  .hashtag-panel {
    padding: 18px;
    margin-top: 16px;
  }

  .lower-grid .panel {
    margin-top: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 16px 24px;
  }
}

@media (max-width: 390px) {
  .page-title p {
    display: none;
  }

  .top-actions {
    gap: 5px;
  }

  .icon-btn,
  .theme-btn {
    width: 33px;
    height: 33px;
  }

  .content {
    padding-right: 10px;
    padding-left: 10px;
  }

  .analyzer-card {
    padding: 18px 13px;
  }

  .metrics-grid {
    gap: 8px;
  }

  .metric-card {
    padding: 12px;
  }

  .metric-value strong {
    font-size: 23px;
  }

  .paste-btn {
    font-size: 0;
    padding: 6px;
  }

  .paste-btn svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================
   AIRATERHUB — PREMIUM ANALYSIS HISTORY
   70% Glass + 25% Cyberpunk + 5% 3D
   ===================================== */
.history-section {
  position: relative;
  margin: 28px 0;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  color: #eef4ff;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 240, 255, 0.12), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(16, 24, 45, 0.82), rgba(9, 14, 28, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow:
    0 22px 50px -12px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(0, 240, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.history-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  box-shadow: 0 0 10px #00f0ff;
}

.history-section .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.history-section .section-label {
  margin-bottom: 8px;
  color: var(--neon-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.history-section h2 {
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.7px;
}

.history-section .section-heading p {
  margin: 6px 0 0;
  color: #9cb1d4;
  font-size: 13px;
}

.history-section #clearHistoryBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: #ffd8df;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(255, 77, 109, 0.25), 0 4px 14px rgba(255, 77, 109, 0.15);
  transition: all 0.18s ease;
}

.history-section #clearHistoryBtn:hover {
  background: rgba(255, 77, 109, 0.22);
  border-color: #ff4d6d;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(255, 77, 109, 0.35), 0 8px 20px rgba(255, 77, 109, 0.25);
}

.history-section #clearHistoryBtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(255, 77, 109, 0.25);
}

#emptyHistoryMessage {
  margin: 0;
  padding: 34px 20px;
  text-align: center;
  color: #8fa5cb;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

/* =========================================================
   AIRATERHUB HASHTAG ANALYZER — 70% Glass + 25% Cyberpunk + 5% 3D
   ========================================================= */
.hashtag-tool-section {
  position: relative;
  margin: 28px 0;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  color: #eef4ff;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.14), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(0, 240, 255, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(16, 24, 45, 0.82), rgba(9, 14, 28, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow:
    0 22px 50px -12px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hashtag-tool-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, #00f0ff, transparent);
  box-shadow: 0 0 12px #a855f7;
}

.hashtag-tool-header,
.hashtag-tool-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.hashtag-tool-header h2,
.hashtag-tool-results h3 {
  margin: 4px 0 0;
  color: #f4f7ff;
  font-size: clamp(21px, 2.8vw, 29px);
  font-weight: 800;
  letter-spacing: -0.6px;
}

.hashtag-tool-header p,
.hashtag-tool-results-heading p,
.hashtag-tool-note {
  margin: 6px 0 0;
  color: #9cb1d4;
  font-size: 13px;
}

.hashtag-tool-badge {
  padding: 6px 14px;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", monospace;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 99px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.hashtag-tool-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hashtag-tool-card label {
  display: block;
  margin-bottom: 8px;
  color: #cad8f0;
  font-size: 12.5px;
  font-weight: 700;
}

.hashtag-tool-card textarea,
.hashtag-tool-card select {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 18px;
  color: #f4f7ff;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(6, 10, 22, 0.7);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  outline: none;
  transition: all 0.2s ease;
}

.hashtag-tool-card textarea:focus,
.hashtag-tool-card select:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.hashtag-tool-card textarea {
  resize: vertical;
  min-height: 95px;
}

.hashtag-tool-card select option {
  background: #0d152a;
  color: #ffffff;
}

/* 3D Tactile Generate Button */
#generateHashtagsBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #00d2ff, #7c3aed);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 4px 0 #4c1d95,
    0 8px 22px rgba(0, 210, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#generateHashtagsBtn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #4c1d95,
    0 12px 28px rgba(0, 210, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#generateHashtagsBtn:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #4c1d95,
    0 4px 10px rgba(0, 210, 255, 0.3);
}

#hashtagToolMessage {
  margin: 12px 0 0;
  font-size: 12px;
  color: #9cb1d4;
}

.hashtag-tool-results {
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hashtag-tool-results[hidden] {
  display: none;
}

.hashtag-tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.hashtag-tool-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hashtag-tool-chip:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 240, 255, 0.25);
}

#copyHashtagSetBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

#copyHashtagSetBtn:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: #00f0ff;
  transform: translateY(-1px);
}

/* =========================================================
   CONTENT POTENTIAL — 70% Glass + 25% Cyberpunk + 5% 3D
   ========================================================= */
#content-potential.hashtag-tool-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 240, 255, 0.14), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.14), transparent 45%),
    linear-gradient(145deg, rgba(16, 24, 45, 0.82), rgba(9, 14, 28, 0.88));
}

#contentPotentialCard {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(10, 16, 32, 0.7);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

#contentPotentialScore {
  display: inline-block;
  color: #00f0ff;
  font-size: clamp(48px, 7vw, 68px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  transition: filter 0.25s ease;
}

#contentPotentialCard.content-potential-locked #contentPotentialScore {
  filter: blur(8px);
  user-select: none;
}

#contentPotentialLock {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.08);
  color: #fed7aa;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.15);
}

#contentPotentialLock[hidden] {
  display: none;
}



/* =========================================================
   APP MODALS: PROFILE, SETTINGS, UPGRADE (100% FUNCTIONAL)
   ========================================================= */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 20, 0.78);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.app-modal-backdrop.open {
  display: flex;
}

.app-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal-wide {
  max-width: 740px;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.app-modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.modal-title-wrap i {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.modal-close-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.app-modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(10, 14, 25, 0.4);
}

.btn-modal-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-modal-primary:hover {
  opacity: 0.9;
}

.btn-modal-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-modal-secondary:hover:not(:disabled) {
  background: var(--surface-3);
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
}

.profile-big-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-row h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text);
}

.user-tier-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--primary);
  display: inline-block;
}

.user-tier-badge.pro {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--green);
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.modal-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 13.5px;
}

.modal-input:focus {
  border-color: var(--primary);
  outline: none;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.p-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.p-stat-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.p-stat-lbl {
  font-size: 11px;
  color: var(--muted);
}

/* Settings Sections */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-section h4 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-row strong {
  font-size: 13.5px;
  color: var(--text);
  display: block;
}

.settings-row p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Upgrade Pricing Grid */
.modal-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.modal-plan-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.modal-plan-card.plan-featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), var(--surface-2));
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.plan-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-badge-pro {
  color: var(--primary);
  background: rgba(139, 92, 246, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  align-self: flex-start;
}

.modal-plan-card h4 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.plan-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.plan-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
}

.plan-features-list li.disabled {
  color: var(--muted);
  opacity: 0.6;
}

.plan-action-btn {
  width: 100%;
  margin-top: auto;
  padding: 11px;
}

@media (max-width: 640px) {
  .modal-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* 3-Column Pricing Grid */
.modal-pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 820px) {
  .modal-pricing-grid-3 {
    grid-template-columns: 1fr;
  }
}

.plan-policy-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}

.policy-non-cancel {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.policy-cancel-anytime {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* UPI Checkout Modal Elements */
.checkout-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(34, 211, 238, 0.15));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-banner strong {
  font-size: 15px;
  color: var(--text);
}

.checkout-amount-badge {
  font-size: 20px;
  font-weight: 800;
  color: var(--cyan);
}

.upi-qr-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.upi-qr-frame {
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-flex;
}

.upi-qr-frame img {
  display: block;
  width: 170px;
  height: 170px;
}

.upi-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  width: 100%;
  max-width: 340px;
  box-sizing: border-box;
}

.upi-copy-row code {
  font-family: monospace;
  font-size: 13px;
  color: var(--cyan);
  font-weight: 600;
}

.btn-copy-upi {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy-upi:hover {
  background: var(--primary);
  color: #fff;
}

.mobile-upi-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.mobile-upi-btn:hover {
  opacity: 0.92;
}

/* Subscription Box in Profile Modal */
.sub-management-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-header-row strong {
  font-size: 14px;
  color: var(--text);
}

.btn-cancel-sub {
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-sub:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

.btn-cancel-sub:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================================================
   USER AUTHENTICATION (SIGN IN, SIGN UP, EMAIL VERIFICATION)
   ========================================================= */
.btn-auth-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.2s ease;
}

.btn-auth-header:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.auth-tabs-row {
  display: flex;
  background: var(--surface-3);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 16px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-form-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-verify-screen {
  text-align: center;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-verify-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-code-input {
  font-size: 26px;
  letter-spacing: 8px;
  text-align: center;
  font-family: monospace;
  font-weight: 800;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: var(--surface-3);
  color: var(--text);
}

.profile-dropdown a.logout-item {
  color: #ef4444;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 8px;
}

.profile-dropdown a.logout-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}



/* Aether Reference Sparkline Waves */
.sparkline {
  width: 100%;
  height: 28px;
  margin-top: 10px;
  display: block;
}
.metric-card:nth-child(1) .sparkline { color: #a855f7; }
.metric-card:nth-child(2) .sparkline { color: #f43f5e; }
.metric-card:nth-child(3) .sparkline { color: #38bdf8; }
.metric-card:nth-child(4) .sparkline { color: #10b981; }
.metric-card:nth-child(5) .sparkline { color: #f59e0b; }
.metric-card:nth-child(6) .sparkline { color: #06b6d4; }

@media (max-width: 900px) {
  .aether-top-controls { display: none !important; }
}

/* =========================================================
   AETHER GLASSMORPHISM COOKIE & ADSENSE CONSENT POPUP
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(160%);
  width: calc(100% - 32px);
  max-width: 640px;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(6, 182, 212, 0.38);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(6, 182, 212, 0.2);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  color: #f8fafc;
  font-family: inherit;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.cookie-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cookie-text p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    padding: 16px;
    gap: 14px;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
  .cookie-btn-accept, .cookie-btn-decline {
    flex: 1;
    text-align: center;
  }
}
