* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* LIGHT THEME (default) */
:root {
  --navy: #0F172A;
  --cyan: #06B6D4;
  --purple: #7C3AED;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);
  --gradient-primary: linear-gradient(135deg, #06B6D4, #7C3AED);
  --gradient-subtle: linear-gradient(180deg, rgba(6, 182, 212, 0.08) 0%, transparent 100%);

  --footer-start: #0f1f36;
  --footer-end: #1a2d4a;

  --very-light-stroke: 1.5px solid rgba(0, 0, 0, 0.1);

  --vu-color: #00406E;
}

/* DARK THEME btn-abou*/
[data-theme="dark"] {
  --navy: #E2E8F0;
  --cyan: #22D3EE;
  --purple: #A78BFA;
  --slate: #CBD5F5;
  --slate-light: #94A3B8;
  --bg: #020617;
  --white: #0F172A;
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.8);
  --gradient-subtle: linear-gradient(180deg, rgba(34, 211, 238, 0.1) 0%, transparent 100%);

  --footer-start: #0b1220;
  --footer-end: #0f172a;

  --very-light-stroke: 1.5px solid rgba(255, 255, 255, 0.12);
}

html,
body {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* NAV */
nav {
  /* height: 80px; */
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.5rem 15%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
}

.logo span {
  color: var(--cyan);
}

.logo.white {
  color: white;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: baseline;
}

.nav-links a {
  font-weight: 500;
  color: var(--slate);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
}

/* SVG size */
.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Hover */
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-opt {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ===== AUTH NAV ===== */
.nav-auth-container {
  display: flex;
  align-items: center;
  margin-right: 12px;
}

/* LOGIN BUTTON (glass + glow) */
.nav-link-btn {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(124, 58, 237, 0.12));
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-link-btn:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(124, 58, 237, 0.2));
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.2);
}

/* AVATAR & DROPDOWN CONTAINER */
.nav-profile-box {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-user-icon {
  font-size: 16px;
  border: 2px solid var(--cyan);
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-user-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* DROPDOWN MENU */
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  background: var(--white);
  border: var(--very-light-stroke);
  border-radius: 14px;
  width: 240px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1000;
}

.nav-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.odd {
  background-color: #C4B5FD;
}

.even {
  background-color: #FDBA74;
}

.dropdown-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.dropdown-name {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.dropdown-email {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-body {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-usage {
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 500;
}

.dropdown-footer {
  padding: 8px;
}

.dropdown-logout-btn {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  color: #ef4444;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* BADGE BASE (For dropdown header) */
.nav-account-badge {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* FREE PLAN */
.nav-standard {
  background: rgba(100, 116, 139, 0.15);
  color: var(--slate);
}

/* PREMIUM PLAN (GLOW) */
.nav-premium {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #000;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

/* ===== NAV ACTION SPACING FIX ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1px;
}

/* ===== THEME BUTTON UPGRADE ===== */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.25s ease;
}

.theme-toggle:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}

/* ===== SMALL UX DETAIL ===== */
.hidden {
  display: none !important;
}

/* ===== GLOBAL TOAST NOTIFICATIONS ===== */
.global-toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.global-toast {
  padding: 14px 24px;
  border-radius: 12px;
  background: white;
  color: #1e293b;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #94a3b8;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.global-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left-color: #10b981;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-warning {
  border-left-color: #f59e0b;
}

.toast-info {
  border-left-color: #3b82f6;
}

/* Hide hamburger on desktop */
.menu-btn {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Menu button */
#menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
  position: relative;
  /* margin-left: 8px; */
}

#menu-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
}

/* Side panel */
#side-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background: linear-gradient(135deg, var(--footer-start) 0%, var(--footer-end) 100%);
  backdrop-filter: blur(10px);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
  padding: 50px 24px 40px;
  transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 9998;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  overflow-y: auto;
}

#side-panel.active {
  right: 0;
  background: var(--white);
}

/* Sidebar backdrop overlay */
#sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.4s ease;
  z-index: 9997;
}

#sidebar-overlay.active {
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.side-panel-header {
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: var(--very-light-stroke);
}

.side-panel-header .logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
}

.side-panel-header .logo span {
  color: var(--cyan);
}

#side-panel a {
  display: flex;
  align-items: center;
  margin: 0 0 8px 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  letter-spacing: 0.3px;
}

#side-panel a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

#side-panel a:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  padding-left: 20px;
}

#side-panel a:hover::before {
  transform: scaleY(1);
}


a {
  text-decoration: none;
  color: inherit;
}

p {
  color: var(--slate);
}

.page-content {
  margin: 140px 0px 60px;
  padding: 0px 5%;
}

.page-content h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-content h2 {
  font-size: 1.8rem;
  margin-top: 42px;
  margin-bottom: 16px;
  color: var(--navy);
}

.page-content p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.8;
}

.page-content ul {
  margin-left: 20px;
  color: var(--slate);
}

.page-content li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.page-content a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.page-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s ease;
}

.page-content a:hover {
  color: var(--purple);
}

.page-content a:hover::after {
  width: 100%;
  background: var(--purple);
}

.btn-about {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.btn-about:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  background: var(--cyan);
}

.light-bg {
  background: var(--bg);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
}

.section-padding {
  padding: 5rem 15%;
}

.email {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, var(--footer-start) 0%, var(--footer-end) 100%);
  color: white;
  padding: 5rem 15% 3rem;
}

/* GRID LAYOUT */
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* BRAND */
.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--slate-light);
  max-width: 260px;
  line-height: 1.6;
}

/* LINKS */
.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links a,
.footer-contact a {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--slate-light);
  transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

/* BOTTOM BAR */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate);
}

@media (max-width: 376px) {
  nav {
    padding: 0.2rem 4%;
  }

  .section-padding {
    padding: 5rem 5%;
  }
}

@media (max-width: 540px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  #menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .site-footer {
    padding: 3rem 8% 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

/* ================= PREMIUM SCROLLBAR ================= */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple);
}