/* =============================================================
   WebOrder — Dark Theme Stylesheet
   Brand: #00e676 green on #0d0d0d dark
   ============================================================= */

/* ---- CSS Custom Properties ---- */
:root {
  --bg:           #0d0d0d;
  --bg-card:      #1a1a1a;
  --bg-elevated:  #222222;
  --accent:       #00e676;
  --accent-dim:   rgba(0, 230, 118, 0.15);
  --accent-glow:  0 0 20px rgba(0, 230, 118, 0.3);
  --accent-hover: #1aed88;
  --text:         #e0e0e0;
  --text-muted:   #888888;
  --border:       #2a2a2a;
  --danger:       #ff4444;
  --warning:      #ffaa00;
  --radius:       10px;
  --radius-sm:    6px;
  --transition:   0.2s ease;
}

/* ---- Base Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}


/* =============================================================
   NAVBAR
   ============================================================= */

.navbar {
  background-color: rgba(13, 13, 13, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 12px;
  padding-bottom: 12px;
  z-index: 1030;
}

.navbar-brand {
  color: var(--accent) !important;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: opacity var(--transition);
}

.navbar-brand:hover {
  opacity: 0.85;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent) !important;
}

/* Mobile hamburger */
.navbar-toggler {
  border-color: var(--border);
  color: var(--text-muted);
}

.navbar-toggler-icon {
  filter: invert(0.7);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--accent-dim);
  outline: none;
}


/* =============================================================
   BUTTONS
   ============================================================= */

.btn-accent {
  background-color: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
  color: #000;
}

.btn-accent:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-accent:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-outline-accent:hover {
  background-color: var(--accent-dim);
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
  color: var(--accent);
}

.btn-outline-accent:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline-accent:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Language toggle button */
.btn-lang {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-lang:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-lang:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Small button modifier */
.btn-sm.btn-accent,
.btn-sm.btn-outline-accent {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}


/* =============================================================
   CARDS
   ============================================================= */

.card-dark {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card-dark:hover {
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 4px 32px rgba(0, 230, 118, 0.08);
}


/* =============================================================
   PRICING CARDS
   ============================================================= */

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.pricing-card:hover {
  box-shadow: 0 8px 40px rgba(0, 230, 118, 0.15);
  transform: translateY(-3px);
}

.pricing-card--featured {
  border-color: var(--accent);
  border-top-width: 3px;
  background: linear-gradient(160deg, rgba(0, 230, 118, 0.06) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.25), 0 4px 24px rgba(0, 230, 118, 0.12);
}

.pricing-card--featured:hover {
  box-shadow: 0 8px 48px rgba(0, 230, 118, 0.25);
}

.pricing-card-header {
  margin-bottom: 20px;
}

.pricing-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0;
}

.pricing-price {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.price-subscription {
  font-size: 0.85rem;
  color: var(--warning);
  font-weight: 600;
  margin-top: 4px;
}

/* Features list */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  font-size: 0.88rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.feature-check,
.feature-cross {
  padding-left: 0;
}

.feature-check::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 16px;
}

.feature-cross::before {
  content: '✗';
  color: var(--text-muted);
  font-weight: 400;
  flex-shrink: 0;
  min-width: 16px;
  opacity: 0.5;
}

.feature-cross {
  color: var(--text-muted);
  opacity: 0.6;
}


/* =============================================================
   BADGES
   ============================================================= */

.badge-tier {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}

.badge-tier-outline {
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
}

.badge-tier-filled {
  color: #000;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.badge-popular {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #000;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 4px;
}

.badge-city {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 20px;
  padding: 4px 14px;
}


/* =============================================================
   HERO SECTION
   ============================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px; /* offset fixed navbar */
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(0, 230, 118, 0.12) 0%,
    rgba(0, 230, 118, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}


/* =============================================================
   SECTIONS
   ============================================================= */

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.65;
}

/* Page header (sub-hero for inner pages) */
.page-header {
  padding-top: 120px;
  padding-bottom: 40px;
  text-align: center;
}

.page-header .section-sub {
  margin-bottom: 0;
}


/* =============================================================
   FEATURE CARDS (index)
   ============================================================= */

.feat-icon {
  font-size: 2rem;
  line-height: 1;
}

.feat-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}


/* =============================================================
   TRUSTED SECTION
   ============================================================= */

.trusted-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* =============================================================
   CONTACT PAGE
   ============================================================= */

.contact-info {
  padding: 32px 0;
}

.contact-info-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item-icon {
  font-size: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

a.contact-item-value:hover {
  color: var(--accent);
}


/* =============================================================
   FORMS
   ============================================================= */

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control-dark,
.form-control {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-control-dark::placeholder,
.form-control::placeholder {
  color: #555;
}

.form-control-dark:focus,
.form-control:focus {
  background-color: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.12);
  outline: none;
}

.form-control-dark:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea.form-control-dark,
textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* Select overrides */
select.form-control-dark,
select.form-select {
  background-color: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
}

select.form-control-dark:focus,
select.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.12);
}


/* =============================================================
   ALERTS
   ============================================================= */

.alert-success-dark,
.alert-success {
  background-color: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-danger {
  background-color: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.35);
  color: #ff6b6b;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 500;
}


/* =============================================================
   ACCORDION (FAQ)
   ============================================================= */

.accordion-dark .accordion-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-dark .accordion-button {
  background-color: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 18px 22px;
  border-radius: var(--radius) !important;
  transition: background var(--transition), color var(--transition);
}

.accordion-dark .accordion-button:not(.collapsed) {
  background-color: var(--bg-elevated);
  color: var(--accent);
  box-shadow: none;
}

.accordion-dark .accordion-button::after {
  filter: invert(0.6);
}

.accordion-dark .accordion-button:not(.collapsed)::after {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(90deg);
}

.accordion-dark .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15);
  outline: none;
}

.accordion-dark .accordion-body {
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 18px 22px;
}


/* =============================================================
   DASHBOARD ELEMENTS (license key rows)
   ============================================================= */

.key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.license-key-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  letter-spacing: 0.04em;
  user-select: all;
}

.toggle-key,
.copy-key {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.toggle-key:hover,
.copy-key:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.toggle-key:focus-visible,
.copy-key:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* =============================================================
   TABLE (admin / dashboard)
   ============================================================= */

.table-dark-custom {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
  font-size: 0.88rem;
}

.table-dark-custom th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.table-dark-custom td {
  border-color: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  vertical-align: middle;
}

.table-dark-custom tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}


/* =============================================================
   ADMIN MAP
   ============================================================= */

#admin-map {
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Override Leaflet popup for dark theme */
.leaflet-popup-content-wrapper {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-tip {
  background: var(--bg-card);
}

.leaflet-popup-content b {
  color: var(--accent);
}


/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: auto;
}

.footer-brand {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-copy a:hover {
  color: var(--accent);
}

.footer-links {
  margin: 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0 8px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* =============================================================
   UTILITY / MISC
   ============================================================= */

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* Selection */
::selection {
  background: rgba(0, 230, 118, 0.25);
  color: var(--text);
}

/* Bootstrap overrides — remove default focus rings */
.btn:focus:not(:focus-visible) {
  box-shadow: none;
}

/* Override Bootstrap card defaults in dark context */
.accordion-flush .accordion-item {
  border-radius: 0;
}


/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .navbar-collapse {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 10px;
  }

  .footer-social {
    justify-content: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 56px 0;
  }

  .page-header {
    padding-top: 100px;
    padding-bottom: 24px;
  }

  .pricing-card {
    padding: 22px 18px;
  }
}
