html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1f2e;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* =========================================
   NAVBAR — Professional dark slate design
   ========================================= */
.navbar-kalytera {
  background: #0f1623;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.85rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.navbar-kalytera .navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-kalytera .navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.navbar-kalytera .navbar-brand:hover {
  color: #e2e8f0;
}

.navbar-kalytera .nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem !important;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar-kalytera .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.07);
}

.navbar-kalytera .nav-link.active-link {
  color: #60a5fa !important;
}

.navbar-kalytera .dropdown-menu {
  background: #1a2236;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  min-width: 200px;
}

.navbar-kalytera .dropdown-item {
  color: #cbd5e1;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.navbar-kalytera .dropdown-item:hover {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
}

.navbar-kalytera .dropdown-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 0.35rem 0;
}

.navbar-kalytera .navbar-toggler {
  border-color: rgba(255,255,255,0.2);
}

.navbar-kalytera .navbar-toggler-icon {
  filter: none;
}

/* CTA button in navbar */
.navbar-kalytera .btn-nav-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #fff !important;
  border: none;
  font-size: 0.875rem;
  padding: 0.45rem 1.1rem !important;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-kalytera .btn-nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
}

/* =========================================
   HERO SECTION — Dark professional gradient
   ========================================= */
.hero-section-dark {
  background: linear-gradient(135deg, #0f1623 0%, #1a2236 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.hero-section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 10% 80%, rgba(99,102,241,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #3b82f6, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.65;
  max-width: 520px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-check-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.hero-check-item .check-icon {
  width: 18px;
  height: 18px;
  background: rgba(34,197,94,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.hero-screen-wrapper {
  position: relative;
  z-index: 1;
}

.hero-screen-card {
  background: #1a2236;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.hero-screen-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  align-items: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-dot-red   { background: #ef4444; }
.hero-dot-yellow { background: #f59e0b; }
.hero-dot-green  { background: #22c55e; }

.hero-screen-img {
  border-radius: 10px;
  width: 100%;
  display: block;
  background: #0f1623;
}

/* Stats strip */
.stats-strip {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stat-item-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section titles */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3b82f6;
  background: rgba(59,130,246,0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

/* =========================================
   FEATURE CARDS
   ========================================= */
.feature-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  background: #fff;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: #bfdbfe;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* CTA section */
.cta-dark {
  background: linear-gradient(135deg, #0f1623 0%, #1e3a5f 100%);
}

/* =========================================
   SMOOTH SCROLL & ANIMATIONS
   ========================================= */
html {
  scroll-behavior: smooth;
}

/* Button styling */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Card hover effects */
.card {
  border-radius: 12px;
  overflow: hidden;
}

/* Section spacing */
section {
  scroll-margin-top: 80px;
}

/* Footer */
footer {
  margin-top: auto;
}

footer a:hover {
  color: #fff !important;
  transition: color 0.3s ease;
}

/* Utility classes */
.text-primary {
  color: #3b82f6 !important;
}

.bg-primary {
  background-color: #3b82f6 !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* =========================================
   FORUM & SUPPORT PAGES
   ========================================= */
.page-hero-sm {
  background: linear-gradient(135deg, #0f1623 0%, #1a2236 100%);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero-sm::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(59,130,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.forum-category-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.2s ease;
  background: #fff;
}

.forum-category-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 24px rgba(59,130,246,0.1);
  transform: translateY(-2px);
}

.forum-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.support-option-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem;
  height: 100%;
  background: #fff;
  transition: all 0.2s ease;
}

.support-option-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 24px rgba(59,130,246,0.1);
  transform: translateY(-3px);
}

.support-tier-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

/* =========================================
   UNIFIED MODAL HEADER
   ========================================= */
.modal-header-dark {
  background: linear-gradient(135deg, #0f1623 0%, #1a2236 100%);
}

/* =========================================
   ADMIN PANEL LAYOUT
   ========================================= */
.admin-layout {
  display: flex;
  gap: 2rem;
}

.admin-sidebar {
  width: 230px;
  flex-shrink: 0;
}

.admin-sidebar-nav {
  position: sticky;
  top: 1.5rem;
}

.admin-sidebar-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  padding: 0.4rem 0.85rem;
  margin-top: 0.75rem;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
  background: #eff6ff;
  color: #3b82f6;
}

.admin-sidebar-link .fa-fw {
  width: 1.25em;
  text-align: center;
  font-size: 0.85rem;
}

.admin-sidebar-badge {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .admin-layout {
    flex-direction: column;
    gap: 1rem;
  }
  .admin-sidebar {
    width: 100%;
  }
  .admin-sidebar-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .admin-sidebar-heading {
    width: 100%;
  }
}

/* Admin alerts */
.admin-content .alert {
  border-radius: 12px;
}

/* Admin card styling */
.admin-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Admin action buttons */
.btn-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-admin-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.btn-admin-action-label { display: none; }
@media (min-width: 1200px) { .btn-admin-action-label { display: inline; } }

.btn-admin-action.primary   { background:rgba(59,130,246,0.12);  color:#2563eb; }
.btn-admin-action.primary:hover   { background:#2563eb; color:#fff; }
.btn-admin-action.secondary  { background:rgba(100,116,139,0.12); color:#64748b; }
.btn-admin-action.secondary:hover  { background:#64748b; color:#fff; }
.btn-admin-action.success   { background:rgba(34,197,94,0.12);   color:#16a34a; }
.btn-admin-action.success:hover   { background:#16a34a; color:#fff; }
.btn-admin-action.warning   { background:rgba(234,179,8,0.12);   color:#b45309; }
.btn-admin-action.warning:hover   { background:#b45309; color:#fff; }
.btn-admin-action.info      { background:rgba(14,165,233,0.12);  color:#0284c7; }
.btn-admin-action.info:hover      { background:#0284c7; color:#fff; }
.btn-admin-action.danger    { background:rgba(239,68,68,0.12);   color:#dc2626; }
.btn-admin-action.danger:hover    { background:#dc2626; color:#fff; }
/* =========================================
   AUTH / ACCOUNT PAGES
   ========================================= */
.auth-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

.auth-card .card-body {
  padding: 2rem;
}

.auth-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e2e8f0;
}

.btn-auth-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-auth-primary:hover {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.form-control-auth {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-auth:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* Footer link hover */
.footer-link:hover {
  transition: color 0.2s ease;
}

/* Forum Markdown content styling */
.forum-markdown {
  line-height: 1.7;
  word-wrap: break-word;
}

.forum-markdown h1,
.forum-markdown h2,
.forum-markdown h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.forum-markdown p {
  margin-bottom: 0.75rem;
}

.forum-markdown code {
  background: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  color: #0f172a;
}

.forum-markdown pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.forum-markdown pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.forum-markdown blockquote {
  border-left: 4px solid #3b82f6;
  padding: 0.5rem 1rem;
  margin: 0.75rem 0;
  background: rgba(59,130,246,0.05);
  border-radius: 0 8px 8px 0;
  color: #475569;
}

.forum-markdown ul,
.forum-markdown ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.forum-markdown a {
  color: #3b82f6;
  text-decoration: none;
}

.forum-markdown a:hover {
  text-decoration: underline;
}

.forum-markdown img {
  max-width: 100%;
  border-radius: 8px;
}

.forum-markdown table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.92em;
}

.forum-markdown th,
.forum-markdown td {
  border: 1px solid #e2e8f0;
  padding: 0.55rem 0.85rem;
  text-align: left;
}

.forum-markdown th {
  background: #f1f5f9;
  font-weight: 600;
  color: #1e293b;
}

.forum-markdown tr:nth-child(even) {
  background: #f8fafc;
}

.forum-markdown tr:hover {
  background: #eff6ff;
}
