/* VRIXA - Design System & Master SaaS Stylesheet */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: rgba(2, 132, 199, 0.12);
  --accent: #38bdf8;
  --bg-dark: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* --- Global Themes: Light, Nebula, OLED --- */
body.theme-light {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #0284c7;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-active: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}
body.theme-light .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.theme-light .card,
body.theme-light .feature-card,
body.theme-light .pricing-card,
body.theme-light .builder-card,
body.theme-light .modal,
body.theme-light .domain-result-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

body.theme-nebula {
  --primary: #9333ea;
  --primary-hover: #a855f7;
  --primary-light: rgba(192, 132, 252, 0.2);
  --accent: #c084fc;
  --bg-dark: #0a0618;
  --bg-card: #130c2c;
  --bg-card-hover: #1e1342;
  --border-color: rgba(192, 132, 252, 0.2);
  --border-active: #c084fc;
  --text-main: #faf5ff;
  --text-muted: #d8b4fe;
  background-color: #0a0618 !important;
  color: #faf5ff !important;
}
body.theme-nebula .navbar {
  background: rgba(18, 13, 36, 0.92) !important;
  border-bottom: 1px solid rgba(192, 132, 252, 0.25) !important;
}

body.theme-oled {
  --primary: #00e5ff;
  --primary-hover: #38bdf8;
  --primary-light: rgba(0, 229, 255, 0.15);
  --accent: #00e5ff;
  --bg-dark: #000000;
  --bg-card: #080808;
  --bg-card-hover: #121212;
  --border-color: #1f1f1f;
  --border-active: #00e5ff;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  background-color: #000000 !important;
  color: #ffffff !important;
}
body.theme-oled .navbar {
  background: rgba(0, 0, 0, 0.98) !important;
  border-bottom: 1px solid #222222 !important;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #7dd3fc;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navbar */
.navbar {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 100%;
  padding: 0 1.5rem;
  gap: 1.25rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.brand-logo:hover {
  transform: scale(1.02);
}
.brand-logo .brand-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
  display: inline-block;
  vertical-align: middle;
  transition: all 0.2s;
}
.brand-logo:hover .brand-img {
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 20px rgba(192, 132, 252, 0.6));
  transform: scale(1.06);
}
.brand-logo .brand-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.brand-badge {
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap !important;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  display: inline-block;
}
.nav-links a:hover, .nav-links a.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08) !important;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease-in-out;
  text-decoration: none;
  white-space: nowrap !important;
  line-height: 1.3;
}
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.55);
  transform: translateY(-1px);
  color: #fff;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}
.btn-accent {
  background: var(--accent);
  color: #090d16;
  font-weight: 700;
}
.btn-accent:hover {
  background: #7dd3fc;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 8px;
}
.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.15) 0%, transparent 70%);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}
.hero h1 span {
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* Domain Search Bar */
.domain-search-wrapper {
  max-width: 720px;
  margin: 0 auto 3rem;
  background: var(--bg-card);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 0.5rem;
}
.domain-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1.05rem;
  color: #fff;
  outline: none;
}
.domain-input::placeholder {
  color: #64748b;
}

/* Section Common */
.section {
  padding: 4.5rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-subtitle {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0.5rem auto 0;
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}
.card-popular {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}
.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.price-display {
  margin: 1.25rem 0;
}
.price-currency {
  font-size: 1.25rem;
  font-weight: 600;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}
.feature-check {
  color: var(--success);
  font-weight: bold;
}

/* Notice Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-test {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 95%;
  max-width: 540px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #cbd5e1;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #1e293b;
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
table.data-table th, table.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
table.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
table.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: #090d16;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  width: calc(100% - 48px);
  pointer-events: none;
  z-index: 99999;
}
.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: auto;
  word-break: break-word;
  animation: slideIn 0.25s ease-out;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--accent); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Mobile Drawer & Hamburger Styling */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.25rem;
  padding: 5px 11px;
  border-radius: 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
}
.mobile-main-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 990;
}
.mobile-main-backdrop.open {
  display: block;
}
.mobile-main-drawer {
  display: none;
  position: absolute;
  top: 65px;
  left: 0;
  right: 0;
  background: #090e1c !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1.25rem;
  z-index: 1000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  flex-direction: column;
  gap: 0.75rem;
  animation: slideDownMain 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-main-drawer.open {
  display: flex;
}
@keyframes slideDownMain {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  .container {
    padding: 0 1rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .navbar {
    height: 64px !important;
  }
  .navbar-inner {
    height: 64px !important;
    padding: 0 1rem !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  .nav-links {
    display: none !important;
  }
  .nav-desktop-actions {
    display: none !important;
  }
  .mobile-only-header {
    display: flex !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }
  .hero {
    padding: 3rem 0 2rem !important;
    overflow-x: hidden !important;
  }
  .hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    padding: 0 0.25rem !important;
    letter-spacing: -0.5px !important;
  }
  .hero p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 0 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .hero-action-btn {
    white-space: normal !important;
    font-size: 0.92rem !important;
    padding: 0.75rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.35 !important;
  }
  .domain-search-wrapper {
    flex-direction: column !important;
    padding: 0.75rem !important;
    gap: 0.65rem !important;
    margin: 0 auto 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .domain-input {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.95rem !important;
    padding: 0.65rem 0.75rem !important;
    text-align: center !important;
  }
  .domain-search-wrapper button {
    width: 100% !important;
    padding: 0.75rem !important;
    font-size: 0.95rem !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .pricing-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .dash-tab-btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .data-table {
    font-size: 0.8rem;
  }
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
