/* ============================================================
   UETDS Pro API — Premium Design System
   ============================================================ */

:root {
  --brand: #0d6efd;
  --brand-dark: #0a58ca;
  --brand-light: #e8f0ff;
  --brand-50: #f0f5ff;
  --surface: #f7f9fc;
  --surface-white: #ffffff;
  --text-primary: #10213a;
  --text-secondary: #45556f;
  --text-muted: #6c757d;
  --border-light: #e4ecff;
  --border-subtle: #edf2ff;
  --shadow-sm: 0 2px 8px rgba(16, 33, 58, 0.06);
  --shadow-md: 0 8px 26px rgba(16, 33, 58, 0.08);
  --shadow-lg: 0 18px 46px rgba(16, 33, 58, 0.12);
  --shadow-xl: 0 24px 56px rgba(16, 33, 58, 0.16);
  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1rem;
  --radius-xl: 1.2rem;
  --radius-full: 999px;
  --transition: 0.3s ease;
  --gradient-brand: linear-gradient(135deg, #0d6efd, #0a58ca);
  --gradient-dark: linear-gradient(140deg, #0f172a, #1e2f53 60%, #0b5ed7);
  --gradient-surface: linear-gradient(90deg, #f7fbff, #ffffff);
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* ============================================================
   Base
   ============================================================ */
body {
  background: var(--surface);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(13, 110, 253, 0.15);
  color: var(--text-primary);
}

/* ============================================================
   Premium Navbar
   ============================================================ */
.nav-premium {
  position: relative;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.nav-premium.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.nav-premium-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.nav-premium .navbar-collapse.collapse {
  display: flex !important;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-basis: auto;
  height: auto !important;
  visibility: visible !important;
  margin-left: 2rem;
  margin-right: 1rem;
}

.nav-premium-brand {
  flex-shrink: 0;
}

.nav-premium-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition);
}

.nav-premium-logo:hover {
  transform: translateX(2px);
  color: var(--text-primary);
}

.nav-premium-logo-icon {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: 0.65rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(13, 110, 253, 0.5); }
}

.nav-premium-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-premium-logo-text strong {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-premium-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}

.nav-premium-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-premium-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-premium-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-premium-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-premium-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-premium-link {
  position: relative;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 0.6rem;
  transition: all var(--transition);
  display: inline-block;
  white-space: nowrap;
}

.nav-premium-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav-premium-link:hover {
  color: var(--brand);
  background: rgba(13, 110, 253, 0.06);
}

.nav-premium-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-premium-link.active {
  color: var(--brand);
  background: rgba(13, 110, 253, 0.1);
  font-weight: 600;
}

.nav-premium-link.active::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-premium-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-premium-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-premium-btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.nav-premium-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.45);
  color: #fff;
}

.nav-premium-btn-primary svg {
  transition: transform var(--transition);
}

.nav-premium-btn-primary:hover svg {
  transform: translateX(3px);
}

.nav-premium-btn-secondary {
  background: rgba(13, 110, 253, 0.1);
  color: var(--brand);
  border: 1px solid rgba(13, 110, 253, 0.2);
}

.nav-premium-btn-secondary:hover {
  background: rgba(13, 110, 253, 0.15);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.nav-premium-btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(69, 85, 111, 0.3);
}

.nav-premium-btn-outline:hover {
  background: rgba(69, 85, 111, 0.08);
  color: var(--text-primary);
  border-color: rgba(69, 85, 111, 0.5);
}

.nav-premium-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: -1;
}

/* Nav Status Badge - Removed from nav, kept for footer */
.nav-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: #d1e7dd;
  color: #0f5132;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #198754;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   Buttons & Common
   ============================================================ */
.btn {
  border-radius: 0.6rem;
  transition: all var(--transition);
  font-weight: 500;
}

.pulse-on-hover:hover {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.card-lift {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.badge-soft {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
}

/* ============================================================
   Animations
   ============================================================ */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-up-delay {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.fade-in-up-delay-3 {
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* ============================================================
   Code Samples
   ============================================================ */
.code-sample {
  background: #0e1726;
  color: #e8efff;
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
}

.code-container {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8efff;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
  background: rgba(25, 135, 84, 0.3);
  border-color: rgba(25, 135, 84, 0.5);
  color: #98f2cf;
}

/* ============================================================
   Homepage Hero
   ============================================================ */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 12% 18%, #f7fbff 0%, #eef4ff 34%, #f7f9fc 76%);
}

.home-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
}

.home-aurora-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.32), transparent 70%);
  top: -120px;
  right: -80px;
  animation: float 18s ease-in-out infinite;
}

.home-aurora-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(102, 16, 242, 0.26), transparent 72%);
  left: -110px;
  bottom: -140px;
  animation: float 24s ease-in-out infinite reverse;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.home-kicker {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  background: #e7eeff;
  color: #173b90;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.13;
  font-weight: 800;
  color: #111f3f;
  max-width: 680px;
}

.home-subtitle {
  max-width: 660px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.home-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-trust-row span {
  font-size: 0.82rem;
  color: #31456f;
  border: 1px solid #d8e4ff;
  background: #f9fbff;
  border-radius: 0.65rem;
  padding: 0.4rem 0.65rem;
}

/* Hero Showcase Panel */
.home-hero-showcase {
  background: linear-gradient(155deg, rgba(19, 36, 69, 0.94), rgba(11, 21, 42, 0.96));
  color: #ecf3ff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(11, 21, 42, 0.35);
  padding: 1.1rem;
}

.home-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.home-muted-label {
  color: #9bb3de;
  font-size: 0.82rem;
}

.home-live-pill {
  background: #12342a;
  color: #98f2cf;
  border: 1px solid #235744;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.62rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-live-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #98f2cf;
  animation: status-pulse 2s ease-in-out infinite;
}

.home-showcase-stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.home-show-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.home-show-item strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
}

.home-show-item span {
  font-size: 0.76rem;
  color: #bdd0f3;
}

.home-show-list {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 0.8rem;
}

.home-show-list > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d6e4ff;
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
}

.home-dot {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: #63a7ff;
  flex-shrink: 0;
}

/* Metric Tiles */
.home-metric-tile {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 0.95rem;
  box-shadow: 0 8px 24px rgba(16, 33, 58, 0.07);
  padding: 0.95rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.home-metric-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.home-metric-tile strong {
  display: block;
  color: #1141a0;
  font-size: 1.04rem;
}

.home-metric-tile span {
  color: #596780;
  font-size: 0.8rem;
}

/* ============================================================
   Feature Cards
   ============================================================ */
.home-feature-card {
  background: var(--surface-white);
  border: 1px solid #e7edff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(16, 33, 58, 0.07);
  padding: 1.5rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.home-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.home-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #e2ebff, #f4f8ff);
  border: 1px solid #d8e6ff;
  color: #17449c;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

/* ============================================================
   Flow Steps
   ============================================================ */
.home-flow {
  display: grid;
  gap: 0.8rem;
}

.home-flow-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.75rem;
  align-items: start;
  background: #f9fbff;
  border: 1px solid #e3ebff;
  border-radius: 0.95rem;
  padding: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.home-flow-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.home-flow-item > span {
  width: 46px;
  height: 46px;
  border-radius: 0.75rem;
  background: #113f99;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.home-flow-item h6 {
  margin-bottom: 0.2rem;
}

/* ============================================================
   CTA Panel
   ============================================================ */
.home-cta-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #f0f6ff;
  background: var(--gradient-dark);
  box-shadow: var(--shadow-xl);
}

.home-cta-panel p {
  color: #d7e6ff;
}

/* ============================================================
   Blog Section
   ============================================================ */
.blog-section {
  padding: 4rem 0;
  background: var(--surface-white);
}

.blog-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, #e8f0ff, #dce8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-image .blog-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.blog-card-image .blog-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.blog-card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}

.blog-card-link:hover {
  gap: 0.6rem;
  color: var(--brand-dark);
}

/* ============================================================
   e-Devlet / IP Guide Section
   ============================================================ */
.guide-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-white) 100%);
}

.guide-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.guide-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-step:last-child {
  border-bottom: none;
}

.guide-step-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.guide-step-content h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.guide-step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.guide-alert {
  background: linear-gradient(135deg, #fff3cd, #fff8e1);
  border: 1px solid #ffc107;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.guide-alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.guide-alert-content {
  font-size: 0.9rem;
  color: #664d03;
  line-height: 1.6;
}

.guide-info-box {
  background: linear-gradient(135deg, #cfe2ff, #e8f0ff);
  border: 1px solid #9ec5fe;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.guide-info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.guide-info-content {
  font-size: 0.9rem;
  color: #052c65;
  line-height: 1.6;
}

/* ============================================================
   Info Cards / Tooltips / Popups
   ============================================================ */
.info-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.info-card-icon.blue { background: #e8f0ff; color: #0d6efd; }
.info-card-icon.green { background: #d1e7dd; color: #198754; }
.info-card-icon.purple { background: #e8d5f5; color: #6610f2; }
.info-card-icon.orange { background: #fff3cd; color: #fd7e14; }
.info-card-icon.red { background: #f8d7da; color: #dc3545; }
.info-card-icon.teal { background: #d2f4ea; color: #20c997; }

.info-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Tooltip custom */
.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: help;
  margin-left: 0.35rem;
  vertical-align: middle;
  position: relative;
}

.info-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
  max-width: 280px;
  white-space: normal;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  line-height: 1.4;
}

.info-tooltip:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a2e;
  z-index: 100;
}

/* ============================================================
   Trusted By / Social Proof
   ============================================================ */
.trusted-section {
  padding: 3rem 0;
  background: var(--surface-white);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trusted-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.trusted-logo:hover {
  opacity: 1;
}

.trusted-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ============================================================
   Premium Footer
   ============================================================ */
.footer-premium {
  background: #0a0f1e;
  color: #c4d0e8;
  padding: 4rem 0 0;
}

.footer-premium-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-premium-brand {
  max-width: 320px;
}

.footer-premium-brand .nav-premium-logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-premium-brand .nav-premium-logo:hover {
  color: #fff;
}

.footer-premium-brand p {
  font-size: 0.88rem;
  color: #8899b8;
  line-height: 1.7;
}

.footer-premium-col h6 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-premium-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-premium-col ul li {
  margin-bottom: 0.6rem;
}

.footer-premium-col ul li a {
  color: #8899b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-premium-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-premium-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-premium-bottom p {
  font-size: 0.82rem;
  color: #5a6a85;
  margin: 0;
}

.footer-premium-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-premium-bottom-links a {
  color: #5a6a85;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-premium-bottom-links a:hover {
  color: #fff;
}

/* ============================================================
   Auth Pages (Login / Register)
   ============================================================ */
.auth-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
  background: radial-gradient(circle at 20% 80%, rgba(13, 110, 253, 0.05), transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(102, 16, 242, 0.04), transparent 50%),
              var(--surface);
}

.auth-card {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.auth-card-header {
  padding: 2rem 2rem 0;
  text-align: center;
}

.auth-card-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.auth-card-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.auth-card-body {
  padding: 1.5rem 2rem 2rem;
}

.auth-card .form-control {
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  border: 1.5px solid #dee2e6;
  transition: all var(--transition);
  font-size: 0.92rem;
}

.auth-card .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.auth-card .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.auth-card .btn-primary {
  padding: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.auth-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.auth-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d1e7dd;
  color: #198754;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

/* ============================================================
   Docs Specific
   ============================================================ */
.docs-nav {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.docs-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-nav ul li {
  margin-bottom: 0.5rem;
}

.docs-nav a {
  color: var(--text-muted);
  transition: color 0.2s;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
}

.docs-nav a:hover {
  color: var(--brand);
  background: rgba(13, 110, 253, 0.05);
}

.docs-nav a.active {
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 600;
}

.endpoint-card {
  margin-bottom: 2rem;
}

.endpoint-header {
  cursor: pointer;
  padding: 1rem;
  background: var(--gradient-surface);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.endpoint-header:hover {
  background: linear-gradient(90deg, #e8f0ff, #f7fbff);
}

.endpoint-tabs {
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.endpoint-tab {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  font-weight: 500;
}

.endpoint-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.endpoint-content {
  display: none;
}

.endpoint-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

.code-example {
  animation: fadeIn 0.3s;
}

.accordion-button {
  font-weight: 600;
}

/* ============================================================
   Quickstart Step Numbers
   ============================================================ */
.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card-current {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gradient-brand);
  color: #fff;
  text-align: center;
  padding: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-card-header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.pricing-card-current .pricing-card-header {
  padding-top: 2.8rem;
}

.pricing-plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-vehicle-range {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 0.25rem;
}

.pricing-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.3rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-description {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-card-body {
  padding: 0 1.5rem;
  flex: 1;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-card-footer {
  padding: 1.5rem;
}

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard-section {
  min-height: calc(100vh - 80px);
  background: var(--surface);
}

.dashboard-header {
  background: var(--gradient-brand);
  color: white;
  padding: 2rem 0;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0;
}

.dashboard-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.dashboard-header-actions {
  display: flex;
  gap: 0.75rem;
}

.dashboard-alert {
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: none;
}

.dashboard-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid #e9ecef;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dashboard-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: var(--gradient-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-card-header h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.dashboard-card-header small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dashboard-card-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f0ff, #f4f8ff);
  border-radius: 0.75rem;
  border: 1px solid #d8e6ff;
}

.dashboard-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-card-body {
  padding: 1.5rem;
  flex: 1;
}

.dashboard-card .table {
  margin-bottom: 0;
}

.dashboard-card .table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  font-size: 0.85rem;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem;
}

.dashboard-card .table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
  font-size: 0.9rem;
}

.dashboard-card .form-control-sm,
.dashboard-card .form-select-sm {
  border-radius: var(--radius-sm);
  border: 1px solid #dee2e6;
  transition: all 0.2s;
}

.dashboard-card .form-control-sm:focus,
.dashboard-card .form-select-sm:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.dashboard-card .btn-sm {
  border-radius: var(--radius-sm);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  transition: all 0.2s;
}

.dashboard-card .btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Summary Cards */
#summaryCards .card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
  overflow: hidden;
  position: relative;
}

#summaryCards .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

#summaryCards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#summaryCards .card-body {
  padding: 1.5rem;
}

#summaryCards .card-body small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#summaryCards .card-body h5 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0.5rem 0 0 0;
}

.chart-container {
  position: relative;
  height: 300px;
  padding: 1rem 0;
}

/* ============================================================
   API Playground
   ============================================================ */
.api-playground-panel {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.api-playground-panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--gradient-surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-playground-panel-body {
  padding: 1.25rem;
}

.api-send-btn {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
}

/* ============================================================
   Modal Enhancements
   ============================================================ */
.modal-content {
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
}

/* ============================================================
   Feature Icon (legacy)
   ============================================================ */
.feature-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e8f0ff, #dce8ff);
  color: var(--brand-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card {
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ============================================================
   Legacy Compatibility
   ============================================================ */
.hero {
  background: radial-gradient(circle at top right, #dce8ff, #f7f9fc 52%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.1), transparent);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero .title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 36px rgba(16, 33, 58, 0.12);
  backdrop-filter: blur(8px);
  padding: 1.2rem;
}

.stat-box {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(16, 33, 58, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(16, 33, 58, 0.12);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.journey-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.flow-step {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(16, 33, 58, 0.05);
}

.flow-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.cta-strip {
  background: var(--gradient-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip .text-muted {
  color: #d3ddf6 !important;
}

.table-modern {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-modern .card-header {
  background: var(--gradient-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-brand {
  letter-spacing: 0.2px;
}

.list-group-item {
  border-color: var(--border-subtle);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .journey-flow {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .footer-premium-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .auth-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .journey-flow {
    grid-template-columns: 1fr;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-showcase-stats {
    grid-template-columns: 1fr;
  }

  .footer-premium-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Nav */
@media (max-width: 991px) {
  .nav-premium-toggle {
    display: flex;
  }

  .nav-premium-container {
    padding: 0.85rem 1.25rem;
    gap: 1.5rem;
  }
  
  .nav-premium .navbar-collapse.collapse {
    margin-left: 0;
    margin-right: 0;
  }

  .nav-premium .navbar-collapse {
    display: none !important;
  }

  .nav-premium .navbar-collapse.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 0.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 1000;
  }

  .nav-premium-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .nav-premium-link {
    padding: 0.75rem 1rem;
    display: block;
  }

  .nav-premium-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .nav-premium-btn {
    width: 100%;
    justify-content: center;
  }

  .dashboard-header {
    padding: 1.5rem 0;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .dashboard-header-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .dashboard-header-actions .btn {
    width: 100%;
  }

  .dashboard-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 576px) {
  .nav-premium-container {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }

  .nav-premium-logo-text {
    font-size: 0.95rem;
  }

  .nav-premium-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }
  
  .nav-premium-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }
}

/* ============================================================
   Scroll Reveal (JS-driven)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Number Counter Animation
   ============================================================ */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Gradient Text
   ============================================================ */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Skeleton Loading
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
