/* ROOT THEMES */
:root {
  --bg: #0b0d10;
  --fg: #ffffff;
  --muted: #9aa0a6;
  --accent: #4ea1ff;
  --accent2: #9b4dff;
  --card-bg: #14171c;
  --border: rgba(255,255,255,0.08);
}

html.light {
  --bg: #f7f7f7;
  --fg: #111;
  --muted: #555;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,0.08);
}

html.futuristic {
  --bg: #050510;
  --fg: #d0e0ff;
  --muted: #7a8cff;
  --accent: #00e0ff;
  --accent2: #ff00e0;
  --card-bg: #0d0d1a;
  --border: rgba(0,255,255,0.15);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* THEME TOGGLE — BOTTOM LEFT */
.theme-toggle {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: var(--card-bg);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  z-index: 2000;
  transition: 0.25s ease;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 30px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-inner .tree {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 4px;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: 0.25s ease;
}
.nav-link:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}
.nav-cta:hover {
  background: var(--accent2);
  color: #fff;
}

/* CONVERSION ENGINE BELOW HEADER */
.nav-right-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
  z-index: 998;
}

.nav-item {
  background: var(--card-bg);
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
  transition: 0.25s ease;
}

.nav-item:hover {
  background: var(--accent);
  color: #000;
}

.nav-icon {
  font-size: 22px;
  color: var(--accent);
}

.nav-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.nav-phone {
  font-size: 0.9rem;
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav-right-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0 10px;
  }
}

/* HERO */
.hero {
  margin-top: 40px;
  margin-bottom: 80px;
  text-align: left;
  padding: 0 30px;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  font-size: 0.9rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: 2.3rem;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 20px;
  max-width: 900px;
}

.hero-title span {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 900px;
}

.hero-sub a {
  color: var(--accent2);
  text-decoration: none;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent2);
  color: #fff;
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #000;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  padding: 0 30px;
}

.card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  background: var(--border);
  border-radius: 20px;
  margin: 6px 6px 0 0;
  font-size: 0.8rem;
}

.pill-accent {
  background: var(--accent);
  color: #000;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 0;
  opacity: 0.7;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* FUTURISTIC MODE — SHOW SPECIAL SECTIONS */
.futuristic-only {
  display: none;
}
html.futuristic .futuristic-only {
  display: block;
}

/* ENERGY SWITCH — ONLY IN FUTURISTIC MODE */
.energy-switch-wrap {
  display: none;
}
html.futuristic .energy-switch-wrap {
  display: flex;
}

/* FUTURISTIC GLOW — CLEAN */
html.futuristic body {
  background: radial-gradient(circle at top, #0a0a1a, #050510 60%, #000008);
}

html.futuristic .card,
html.futuristic .nav-item,
html.futuristic header,
html.futuristic .theme-toggle {
  box-shadow: 0 0 12px rgba(0,255,255,0.25),
              inset 0 0 12px rgba(255,0,255,0.15);
  border-color: rgba(0,255,255,0.25);
}

html.futuristic .nav-link:hover,
html.futuristic .nav-cta:hover {
  color: #00e0ff;
  text-shadow: 0 0 8px #00e0ff;
}

html.futuristic .hero-title span {
  color: #00e0ff;
  text-shadow: 0 0 10px #00e0ff;
}

html.futuristic .pill-accent {
  background: #00e0ff;
  color: #000;
  box-shadow: 0 0 10px #00e0ff;
}

html.futuristic .nav-icon {
  color: #00e0ff;
  text-shadow: 0 0 6px #00e0ff;
}

/* FUTURISTIC — NEON GRID + DIAGONAL LATTICE */
html.futuristic body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(0,255,255,0.06) 0px, rgba(0,255,255,0.06) 2px, transparent 2px, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(255,0,255,0.06) 0px, rgba(255,0,255,0.06) 2px, transparent 2px, transparent 20px),
    linear-gradient(90deg, rgba(0,255,255,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,255,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  animation: gridShift 4s ease-in-out infinite;
}

/* ORB‑SYNCED BACKGROUND PULSE */
html.futuristic body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,255,255,0.18), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(255,0,255,0.12), transparent 70%);
  animation: orbPulse 4s ease-in-out infinite;
}

/* Pulse synced to orbFloat */
@keyframes orbPulse {
  0%   { opacity: 0.25; transform: scale(1); }
  50%  { opacity: 0.55; transform: scale(1.06); }
  100% { opacity: 0.25; transform: scale(1); }
}

/* Grid movement synced to orb */
@keyframes gridShift {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

/* FLOATING SQUARES — FUTURISTIC ONLY */
html.futuristic .floating-square {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,255,255,0.25);
  animation: floatSquare 12s infinite ease-in-out;
  z-index: -1;
}

@keyframes floatSquare {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-40px) rotate(180deg); opacity: 0.6; }
  100% { transform: translateY(0) rotate(360deg); opacity: 0.3; }
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  font-size: 16px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 999;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-item:hover {
  background: #f5f5f5;
}



/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", sans-serif;
  background: #030407;
  color: #e6e6e6;
  overflow-x: hidden;
  padding-bottom: 60px;
}

/* HEADER */
.top-header {
    width: 100%;
    padding: 22px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-left img {
    height: 64px;
    filter: drop-shadow(0 0 8px rgba(78,161,255,0.45));
}
.header-right .login-btn {
    padding: 12px 22px;
    background: linear-gradient(90deg,#4ea1ff,#9b4dff);
    color: #000;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
}

/* CALENDAR WRAPPER */
.calendar-wrapper {
  width: 92%;
  max-width: 980px;
  margin: 50px auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 36px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 50px rgba(0,150,255,0.25);
}

/* CALENDAR HEADER */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.calendar-header h2 {
  font-size: 28px;
  font-weight: 600;
}
.nav-btn {
  cursor: pointer;
  font-size: 32px;
  color: #4ea1ff;
  transition: 0.25s ease;
}
.nav-btn:hover {
  color: #9b4dff;
  transform: scale(1.15);
}

/* GRID */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.day-name {
  text-align: center;
  opacity: 0.75;
  font-size: 15px;
  font-weight: 600;
}
.day {
  height: 95px;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  transition: 0.25s ease;
}
.day:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}
.day-number {
  font-size: 20px;
  font-weight: 700;
}

/* MODAL POPUP */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: blurIn 0.4s ease forwards;
}

@keyframes blurIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(6px); }
}

.modal-box {
  width: 90%;
  max-width: 480px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 0 40px rgba(0,150,255,0.35);
  animation: modalFade 0.35s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  float: right;
  font-size: 26px;
  cursor: pointer;
  color: #4ea1ff;
}

/* FORM INPUTS */
.modal-box input,
.modal-box select {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 15px;
  transition: 0.25s ease;
}
.modal-box input:focus,
.modal-box select:focus {
  background: rgba(255,255,255,0.18);
  outline: none;
}

/* SUCCESS POPUP */
.success-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #4ea1ff;
  color: #000;
  padding: 18px 24px;
  border-radius: 12px;
  font-weight: 700;
  display: none;
  box-shadow: 0 0 20px rgba(78,161,255,0.6);
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SUBMIT BUTTON */
.submit-btn {
  margin-top: 26px;
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg,#4ea1ff,#9b4dff);
  color: #000;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: 16px;
  transition: 0.3s ease;
}
.submit-btn:hover {
  background: linear-gradient(90deg,#9b4dff,#4ea1ff);
  color: #fff;
  transform: translateY(-3px);
}
