/* Global theme variables */
:root {
  --bg: #0a192f;
  --panel: rgba(17, 34, 64, 0.7);
  --panel-strong: rgba(10, 25, 47, 0.95);
  --text: #ccd6f6;
  --muted: #8892b0;
  --accent: #64ffda;
  --accent-2: #00b894;
  --warning: #ffa726;
  --error: #ff6b6b;
  --border: #233554;
}

/* Base improvements */
html, body {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: #ffffff;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fixed header spacing */
body { padding-top: 72px; }

/* Header / Navbar */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--panel-strong);
  border-bottom: 1px solid rgba(100,255,218,0.12);
  z-index: 1000;
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 1.25rem;
}

.brand:hover { opacity: 0.95; }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }

/* Ensure nav controls align perfectly */
.site-nav .btn,
.site-nav .language-btn,
.site-nav .user-name,
.site-nav .menu-btn,
.site-nav .nav-link {
  height: 36px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.menu-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 10px;
}

.menu-btn:hover { background: rgba(100,255,218,0.08); border-color: rgba(100,255,218,0.35); }

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--accent); }

/* Make header nav links look like subtle buttons for consistency */
.site-nav .nav-link {
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.site-nav .nav-link:hover {
  background: rgba(100,255,218,0.08);
  border-color: rgba(100,255,218,0.35);
}

/* Dropdown (Support) */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 200px;
  padding: 8px;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 1200;
}
.dropdown.show .dropdown-menu { display: block; }
.dropdown-item {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}
.dropdown-item:hover { background: rgba(100,255,218,0.08); color: var(--accent); }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-links { display: none; }
  #authControls { display: none; }
  body.menu-open .nav-links { display: flex; position: absolute; top: 72px; right: 12px; flex-direction: column; background: var(--panel-strong); border: 1px solid var(--border); padding: 12px; border-radius: 8px; }
  body.menu-open #authControls { display: flex; position: absolute; top: calc(72px + 12px + 100%); right: 12px; gap: 8px; background: var(--panel-strong); border: 1px solid var(--border); padding: 12px; border-radius: 8px; flex-direction: column; }
  #menuBtn { display: inline-flex !important; }
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select, textarea {
  background: var(--panel);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.15);
}

/* Buttons */
.btn,
button,
input[type="submit"] {
  border-radius: 6px;
}

.btn.primary {
  background: var(--accent);
  color: var(--bg);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Cards and panels */
.card,
.feature-card,
.settings-card,
.subscription-status {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* Pricing */
.pricing-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: #0e233f;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  width: 320px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(100, 255, 218, 0.12);
}

.pricing-card .price { 
  font-size: 2.25rem; 
  color: var(--accent);
}

.pricing-card .features { 
  color: var(--muted); 
  text-align: left; 
}

.upgrade-button,
.pricing-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.8rem 1.25rem;
  border-radius: 6px;
  width: 100%;
  transition: all 0.2s ease;
}

.upgrade-button:hover,
.pricing-button:hover {
  background: var(--accent);
  color: var(--bg);
}

.upgrade-button.ultimate,
.pricing-button.ultimate {
  background: var(--accent);
  color: var(--bg);
}

.upgrade-button.ultimate:hover,
.pricing-button.ultimate:hover {
  filter: brightness(0.95);
}

/* Modals */
.modal.show .modal-content {
  animation: modalIn 150ms ease-out;
}

.modal-content {
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

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

/* Notifications */
.notification {
  border-radius: 10px;
}

.notification.success { background: var(--accent); color: var(--bg); }
.notification.error { background: var(--error); }
.notification.info { background: var(--warning); color: var(--bg); }

/* Navbar */
nav, .navbar {
  backdrop-filter: blur(10px);
}

/* Utilities */
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }

/* Sections */
.section { padding: 80px 20px; }
.section-title { color: var(--text); margin: 0 0 1rem 0; text-align: center; }

/* Footer */
footer { background: var(--panel-strong); border-top: 1px solid rgba(100,255,218,0.12); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 400ms ease, transform 400ms ease; }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* Typography scale */
h1, h2, h3 { color: var(--text); }
h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.01em; }


