:root {
  --ink: #172026;
  --muted: #5c6975;
  --line: #d8e0e7;
  --panel: #ffffff;
  --bg: #f5f7f9;
  --brand: #0f766e;
  --brand-2: #2563eb;
  --accent: #f59e0b;
  --danger: #dc2626;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { font-weight: 800; font-size: 20px; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.btn.primary { background: var(--brand); color: white; border-color: var(--brand); }
.btn.blue { background: var(--brand-2); color: white; border-color: var(--brand-2); }
.btn.danger { background: var(--danger); color: white; border-color: var(--danger); }
.hero {
  min-height: 76vh;
  display: grid;
  place-items: center;
  padding: 48px clamp(18px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(90deg, rgba(10,32,37,.88), rgba(15,118,110,.62)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-inner { width: min(1120px, 100%); }
.hero h1 { max-width: 720px; margin: 0 0 16px; font-size: clamp(44px, 7vw, 84px); line-height: .95; letter-spacing: 0; }
.hero p { max-width: 660px; margin: 0 0 24px; font-size: 19px; color: #eaf3f3; }
.section { padding: 54px clamp(18px, 5vw, 72px); }
.section h2 { margin: 0 0 18px; font-size: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.price { font-size: 34px; font-weight: 800; color: var(--brand); }
.dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 22px;
}
.sidebar button { width: 100%; justify-content: flex-start; margin: 6px 0; }
.main { padding: 24px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 11px; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.status { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #e6f4f1; color: var(--brand); font-size: 12px; font-weight: 700; }
.timeline { display: grid; gap: 10px; border-left: 2px solid var(--line); padding-left: 14px; }

/* Premium Support Chat Styles */
.chat-container {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.chat-box {
  height: 400px;
  overflow-y: scroll;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfd;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) rgba(0, 0, 0, 0.05);
}
.chat-box::-webkit-scrollbar {
  width: 6px;
}
.chat-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
.chat-box::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
.chat-box::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.chat-bubble.sent {
  align-self: flex-end;
  background: var(--brand);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}
.chat-bubble.received {
  align-self: flex-start;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 2px;
}
.chat-bubble .sender-name {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: 0.8;
}
.chat-bubble.sent .sender-name {
  color: #ccfbf1;
}
.chat-bubble.received .sender-name {
  color: var(--brand);
}
.chat-bubble .message-text {
  word-break: break-word;
}
.chat-bubble .message-time {
  font-size: 10px;
  text-align: right;
  margin-top: 4px;
  opacity: 0.7;
}
.chat-input-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.chat-input-bar input {
  flex: 1;
  border-radius: 8px;
  padding: 12px;
}
.chat-input-bar button {
  min-height: 44px;
  padding: 0 20px;
}
.message { margin: 0 0 10px; padding: 9px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.hidden { display: none !important; }
.toast { position: fixed; right: 18px; bottom: 18px; padding: 12px 14px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 50; }
/* Mobile Header & Hamburger Menu Button styles */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 90;
  margin: -24px -24px 24px -24px;
}
.mobile-header .brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--brand);
}
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: all 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 780px) {
  .dashboard { grid-template-columns: 1fr; }
  .mobile-header {
    display: flex;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    background: #fff;
    padding: 24px;
    display: block !important;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar button {
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 8px 0 !important;
    padding: 10px 14px !important;
    min-height: 40px !important;
    font-size: 14px !important;
  }
  .sidebar p {
    display: block !important;
    margin: 12px 0 20px 0 !important;
  }
  .hero h1 { font-size: 44px; }
  .main {
    padding: 12px !important;
  }
}

/* Nav toggle button styles */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: all 0.3s ease;
}

/* Dev mode bypass styles */
.dev-bypass-card {
  background: rgba(15, 118, 110, 0.04);
  border: 2px dashed var(--brand);
  border-radius: 12px;
  padding: 24px;
  margin: 40px auto;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.05);
}
.dev-bypass-title {
  font-weight: 700;
  color: var(--brand);
  font-size: 16px;
  margin-bottom: 6px;
}
.dev-bypass-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.dev-bypass-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer styles */
.footer {
  background-color: var(--ink);
  color: #f3f4f6;
  padding: 64px 4vw 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.footer-brand h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: #9ca3af;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: #9ca3af;
  font-size: 13px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: #9ca3af;
  transition: all 0.2s ease;
}
.social-links a:hover {
  background-color: var(--brand);
  color: #fff;
}

@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    padding: 16px 24px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .nav.active {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Auth Modal Premium Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.auth-modal.hidden {
  display: none !important;
}
.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}
.auth-modal-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(440px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 1001;
  animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.auth-modal-close:hover {
  background: var(--bg);
  color: var(--ink);
}
.auth-modal-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.input-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-group label {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.auth-submit-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 600;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.auth-divider:not(:empty)::before {
  margin-right: .5em;
}
.auth-divider:not(:empty)::after {
  margin-left: .5em;
}
.google-auth-btn {
  width: 100%;
  min-height: 44px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.google-auth-btn:hover {
  background: var(--bg);
}
.auth-switch-text {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 0;
}
.auth-switch-text a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}

/* Acadify Premium Transition Loader */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9, 13, 22, 0.85); /* Deep premium dark backdrop */
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.loader-overlay.hidden {
  display: none !important;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.loader-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(15, 118, 110, 0.1);
  border-left-color: var(--brand); /* Brand teal color */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 15px rgba(15, 118, 110, 0.15);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loader-logo {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseLogo 2s infinite ease-in-out;
}
@keyframes pulseLogo {
  0%, 100% { opacity: 0.8; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}
.loader-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

