:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f9;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --surface-2: #f8fbff;
  --text: #18263a;
  --text-muted: #6b7a90;
  --heading: #0e1b2d;
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --border: rgba(122, 145, 176, 0.18);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --transition: 0.28s ease;
  --footer-bg-1: rgba(37, 99, 235, 0.08);
  --footer-bg-2: rgba(6, 182, 212, 0.06);
  --footer-gradient-1: #f8fbff;
  --footer-gradient-2: #eaf2ff;
  --footer-text: #0e1b2d;
  --footer-text-muted: #6b7a90;
  --footer-card-bg: rgba(255, 255, 255, 0.72);
  --footer-card-border: rgba(122, 145, 176, 0.18);
  --abacus-frame: #0f172a;
  --abacus-bar: #cbd5e0;
  --abacus-bead-top: #f59e0b;
  --abacus-bead-bottom: #06b6d4;
  --abacus-rod: #64748b;
}

body.dark-mode {
  --bg: #08111f;
  --bg-soft: #0c1728;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-solid: #0f1b2e;
  --surface-2: #12233c;
  --text: #eaf2ff;
  --text-muted: #9fb0c9;
  --heading: #ffffff;
  --primary: #4f8cff;
  --primary-2: #19c2ff;
  --primary-soft: rgba(79, 140, 255, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.32);
  --footer-bg-1: rgba(37, 99, 235, 0.12);
  --footer-bg-2: rgba(6, 182, 212, 0.1);
  --footer-gradient-1: #08111f;
  --footer-gradient-2: #050b16;
  --footer-text: #ffffff;
  --footer-text-muted: rgba(255, 255, 255, 0.68);
  --footer-card-bg: rgba(255, 255, 255, 0.06);
  --footer-card-border: rgba(255, 255, 255, 0.08);
  --abacus-frame: #020617;
  --abacus-bar: #475569;
  --abacus-bead-top: #f97316;
  --abacus-bead-bottom: #22d3ee;
  --abacus-rod: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 22%),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.07), transparent 24%), var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition:
    background var(--transition),
    color var(--transition);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-wrapper {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

body.dark-mode .site-header {
  background: rgba(8, 17, 31, 0.78);
}

.nav-wrapper {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 18px;
  color: var(--heading);
}

.logo-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-icon {
  font-size: 18px;
}

.menu-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--heading);
  border-radius: 999px;
  transition: var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: var(--transition);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--heading);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 20, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1100;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background: var(--surface-solid);
  border-left: 1px solid var(--border);
  z-index: 1200;
  transform: translateX(100%);
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}
.mobile-sidebar.show {
  transform: translateX(0);
}

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.close-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: rotate(90deg);
}

.mobile-sidebar-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.mobile-sidebar-body a {
  padding: 14px 16px;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid transparent;
}

.mobile-sidebar-body a:hover,
.mobile-sidebar-body a.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--border);
}

.mobile-booking-btn {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  color: #fff !important;
}

.mobile-sidebar-footer {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid var(--border);
}

.mobile-sidebar-footer p {
  color: var(--text-muted);
  font-size: 14px;
}

.hero-section {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--border);
}

.hero-content h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  color: var(--heading);
  margin: 18px 0 18px;
  font-weight: 900;
}

.hero-content h1 span {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-item {
  min-width: 130px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.trust-item strong {
  display: block;
  color: var(--heading);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}

.trust-item span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.92), rgba(16, 31, 54, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(25, 194, 255, 0.18), transparent 65%);
}

.panel-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.hero-panel-main {
  position: relative;
  z-index: 1;
}

.panel-summary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
}

.panel-summary h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.panel-summary p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.panel-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.panel-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-card small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  margin-bottom: 10px;
}

.panel-card strong {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}

.panel-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.active-card {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.25), rgba(25, 194, 255, 0.12));
}

.hero-chart {
  height: 150px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-line {
  position: absolute;
  inset: 22px 18px 18px;
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.3), transparent);
  clip-path: polygon(
    0% 80%,
    14% 68%,
    27% 70%,
    40% 52%,
    56% 58%,
    70% 33%,
    82% 40%,
    100% 16%,
    100% 100%,
    0 100%
  );
}

.chart-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -40px;
  left: -10px;
  background: radial-gradient(circle, rgba(25, 194, 255, 0.18), transparent 60%);
}

.stats-section {
  padding: 20px 0 70px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.stat-card strong {
  display: block;
  font-size: 34px;
  color: var(--heading);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-card span {
  color: var(--text-muted);
  font-weight: 700;
}

.section-head {
  margin-bottom: 28px;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--heading);
  margin: 12px 0;
}

.section-head p {
  max-width: 760px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 17px;
}

.features-section {
  padding: 10px 0 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(37, 99, 235, 0.24);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(6, 182, 212, 0.12));
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--heading);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.explore-section {
  padding: 10px 0 90px;
  position: relative;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.explore-card {
  position: relative;
  display: block;
  min-height: 260px;
  padding: 26px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.92));
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

body.dark-mode .explore-card {
  background: linear-gradient(180deg, rgba(15, 27, 46, 0.98), rgba(18, 35, 60, 0.92));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.explore-card::before {
  content: "";
  position: absolute;
  inset: auto auto -70px -70px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 65%);
  pointer-events: none;
}

.explore-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.22);
}

.explore-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.explore-number {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.explore-arrow {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: 20px;
  transition: var(--transition);
}

.explore-card:hover .explore-arrow {
  transform: translate(-4px, -4px);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.explore-card h3 {
  position: relative;
  z-index: 1;
  color: var(--heading);
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 12px;
  font-weight: 900;
}

.explore-card p {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.9;
  max-width: 95%;
}

.featured-explore {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 20px 52px rgba(37, 99, 235, 0.1);
}

.featured-explore .explore-number {
  transform: scale(1.03);
}

.cta-section {
  padding: 0 0 80px;
}

.cta-box {
  background: linear-gradient(135deg, #0d182b, #17345f);
  color: #fff;
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 12px 0 10px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.76);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  position: relative;
  margin-top: 40px;
  background:
    radial-gradient(circle at top right, var(--footer-bg-1), transparent 18%),
    radial-gradient(circle at bottom left, var(--footer-bg-2), transparent 22%),
    linear-gradient(180deg, var(--footer-gradient-1), var(--footer-gradient-2));
  color: var(--footer-text);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    transparent 30%,
    rgba(255, 255, 255, 0.015)
  );
  pointer-events: none;
}

.footer-dev-link {
  color: var(--primary-2);
  font-weight: 800;
  transition: var(--transition);
}

.footer-dev-link:hover {
  color: var(--footer-text);
  text-shadow: 0 0 18px rgba(25, 194, 255, 0.35);
}
.footer-top {
  position: relative;
  z-index: 1;
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-title {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--footer-text);
  line-height: 1.2;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.footer-brand .logo-text strong {
  color: var(--footer-text);
  font-size: 22px;
}

.footer-brand .logo-text span {
  color: var(--footer-text-muted);
  font-size: 13px;
}

.footer-brand-desc {
  max-width: 430px;
  color: var(--footer-text-muted);
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 26px;
}

.footer-badge-box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--footer-card-bg);
  border: 1px solid var(--footer-card-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  max-width: 420px;
}

.footer-badge-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 26px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.footer-badge-text strong {
  display: block;
  font-size: 18px;
  color: var(--footer-text);
  margin-bottom: 4px;
}

.footer-badge-text span {
  color: var(--footer-text-muted);
  font-size: 14px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--footer-text-muted);
  font-size: 22px;
  font-weight: 700;
  transition: var(--transition);
}

.footer-links-list a i {
  color: var(--primary-2);
  font-size: 22px;
}

.footer-links-list a:hover {
  transform: translateX(-6px);
  color: var(--footer-text);
}

.footer-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
  transition: var(--transition);
}

.footer-main-btn:hover {
  transform: translateY(-3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}

.footer-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--footer-card-bg);
  border: 1px solid var(--footer-card-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: var(--transition);
}

.footer-contact-card:hover {
  transform: translateY(-4px);
  background: var(--footer-card-bg);
  filter: brightness(1.05);
}

.footer-contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--footer-text);
  font-size: 22px;
}

.footer-contact-card strong {
  display: block;
  color: var(--footer-text);
  font-size: 16px;
  margin-bottom: 2px;
}

.footer-contact-card span {
  color: var(--footer-text-muted);
  font-size: 15px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--footer-card-bg);
  border: 1px solid var(--footer-card-border);
  color: var(--footer-text);
  font-size: 22px;
  transition: var(--transition);
}

.footer-social a:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--footer-card-border);
  padding: 20px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--footer-text-muted);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-grid,
  .footer-grid,
  .cta-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid,
  .features-grid,
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .desktop-booking {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero-section {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .stats-grid,
  .features-grid,
  .explore-grid,
  .panel-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-content p,
  .section-head p {
    font-size: 15px;
  }

  .cta-box {
    padding: 24px;
  }

  .trust-item {
    width: 100%;
  }

  .hero-buttons,
  .cta-actions {
    width: 100%;
  }

  .hero-buttons .btn,
  .cta-actions .btn {
    width: 100%;
  }
}

.hero-visual {
  position: relative;
}

.hero-showcase {
  position: relative;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.showcase-badge span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.showcase-badge p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.showcase-main-card {
  background: linear-gradient(180deg, var(--surface-solid), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.showcase-main-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -90px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 65%);
  pointer-events: none;
}

.showcase-text {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.showcase-text h3 {
  font-size: 28px;
  color: var(--heading);
  margin-bottom: 10px;
  line-height: 1.3;
}

.showcase-text p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

.showcase-list {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.showcase-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.showcase-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(6, 182, 212, 0.14));
}

.showcase-item strong {
  display: block;
  color: var(--heading);
  font-size: 18px;
  margin-bottom: 4px;
}

.showcase-item span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.showcase-bottom {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mini-highlight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-highlight strong {
  color: var(--heading);
  font-size: 18px;
}

.mini-highlight span {
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .showcase-main-card {
    padding: 20px;
  }

  .showcase-text h3 {
    font-size: 22px;
  }

  .showcase-item {
    padding: 14px;
  }

  .showcase-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .showcase-bottom .btn {
    width: 100%;
  }
}

.hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 18px 24px;
  min-width: 140px;

  border-radius: 20px;

  background: var(--surface);
  border: 1px solid var(--border);

  backdrop-filter: blur(16px);

  box-shadow: var(--shadow);

  transition: 0.3s;
}

.trust-item:hover {
  transform: translateY(-5px);
}

.trust-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  font-size: 24px;

  border-radius: 16px;

  margin-bottom: 10px;

  background: linear-gradient(135deg, var(--primary-soft), rgba(6, 182, 212, 0.14));
}

.trust-item strong {
  font-size: 24px;
  color: var(--heading);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }

  .explore-card {
    min-height: auto;
    padding: 22px;
    border-radius: 24px;
  }

  .explore-number {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 20px;
  }

  .explore-card h3 {
    font-size: 24px;
  }

  .explore-card p {
    font-size: 15px;
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    padding: 54px 0 28px;
    gap: 28px;
  }

  .footer-title {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .footer-brand-desc {
    font-size: 15px;
  }

  .footer-links-list a {
    font-size: 18px;
  }

  .footer-main-btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.inner-hero-section {
  padding: 140px 0 60px;
}

.inner-hero {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.inner-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.2;
  color: var(--heading);
  margin: 18px 0 16px;
  font-weight: 900;
}

.inner-hero p {
  color: var(--text-muted);
  font-size: 18px;
}

.content-section {
  padding: 0 0 80px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.large-card {
  padding: 28px;
}

.content-card h2,
.content-card h3 {
  color: var(--heading);
  margin-bottom: 12px;
}

.content-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-avatar {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(6, 182, 212, 0.14));
}

.team-card h3 {
  color: var(--heading);
  margin-bottom: 6px;
}

.team-card span {
  display: block;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 10px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.contact-grid,
.booking-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.contact-info-wrap {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--heading);
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.blog-card h3 {
  color: var(--heading);
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.5;
}

.blog-card p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.blog-link {
  color: var(--primary);
  font-weight: 800;
}

.info-side-card {
  padding: 28px;
}

.mini-steps {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.mini-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.mini-step strong {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.mini-step span {
  color: var(--heading);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .team-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid,
  .booking-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .inner-hero-section {
    padding: 120px 0 50px;
  }

  .inner-hero p {
    font-size: 15px;
  }

  .team-grid,
  .blog-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .large-card,
  .info-side-card,
  .info-card {
    padding: 20px;
  }
}

:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f9;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-solid: #ffffff;
  --surface-2: #f8fbff;
  --text: #18263a;
  --text-muted: #6b7a90;
  --heading: #0e1b2d;
  --primary: #2563eb;
  --primary-2: #06b6d4;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --border: rgba(122, 145, 176, 0.18);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --transition: 0.28s ease;
}

body.dark-mode {
  --bg: #08111f;
  --bg-soft: #0c1728;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-solid: #0f1b2e;
  --surface-2: #12233c;
  --text: #eaf2ff;
  --text-muted: #9fb0c9;
  --heading: #ffffff;
  --primary: #4f8cff;
  --primary-2: #19c2ff;
  --primary-soft: rgba(79, 140, 255, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 22%),
    radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.07), transparent 24%), var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition:
    background var(--transition),
    color var(--transition);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select {
  font-family: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-wrapper {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

body.dark-mode .site-header {
  background: rgba(8, 17, 31, 0.78);
}

.nav-wrapper {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 18px;
  color: var(--heading);
}

.logo-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-icon {
  font-size: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  transition: var(--transition);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--heading);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

.hero-section {
  padding: 140px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--border);
}

.hero-content h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  color: var(--heading);
  margin: 18px 0 18px;
  font-weight: 900;
}

.hero-content h1 span {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
}

.hero-trust {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 24px;
  min-width: 140px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.trust-item:hover {
  transform: translateY(-5px);
}

.trust-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 16px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(6, 182, 212, 0.14));
}

.trust-item strong {
  font-size: 24px;
  color: var(--heading);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 700;
}

.showcase-main-card {
  background: linear-gradient(180deg, var(--surface-solid), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.showcase-main-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -90px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 65%);
  pointer-events: none;
}

.showcase-text {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.showcase-text h3 {
  font-size: 28px;
  color: var(--heading);
  margin-bottom: 10px;
  line-height: 1.3;
}

.showcase-text p {
  color: var(--text-muted);
  font-size: 15px;
}

.showcase-list {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.showcase-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.showcase-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(6, 182, 212, 0.14));
}

.showcase-item strong {
  display: block;
  color: var(--heading);
  font-size: 18px;
  margin-bottom: 4px;
}

.showcase-item span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.showcase-bottom {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mini-highlight strong {
  color: var(--heading);
  font-size: 18px;
}

.mini-highlight span {
  color: var(--text-muted);
  font-size: 14px;
}

.content-section {
  padding: 0 0 80px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--heading);
  margin: 12px 0;
}

.section-head p {
  max-width: 760px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 17px;
}

.trainer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.large-card {
  padding: 28px;
}

.card-title {
  color: var(--heading);
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 900;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--heading);
  font-weight: 800;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-group.full {
  grid-column: 1 / -1;
}

.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.display-panel {
  display: grid;
  gap: 18px;
}

.display-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.meta-box {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  text-align: center;
}

.meta-box span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 700;
}

.meta-box strong {
  color: var(--heading);
  font-size: 18px;
}

.number-stage {
  position: relative;
  height: 290px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.94), rgba(16, 31, 54, 0.98));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-stage::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(25, 194, 255, 0.18), transparent 60%);
}

.number-box {
  position: absolute;
  font-size: clamp(52px, 9vw, 92px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 24px rgba(79, 140, 255, 0.32);
  transition:
    transform 0.42s ease,
    opacity 0.42s ease,
    top 0.42s ease,
    left 0.42s ease;
  opacity: 1;
  user-select: none;
}

.answer-area {
  display: grid;
  gap: 14px;
}

.result-box {
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--heading);
  font-weight: 800;
}

.result-box.success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
}

.result-box.error {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.sequence-box {
  min-height: 60px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
  word-break: break-word;
}

.features-section {
  padding: 20px 0 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(37, 99, 235, 0.24);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(6, 182, 212, 0.12));
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--heading);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .trainer-layout {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .hero-section {
    padding: 120px 0 40px;
  }

  .settings-grid,
  .display-meta,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-content p,
  .section-head p {
    font-size: 15px;
  }

  .large-card {
    padding: 20px;
  }

  .showcase-main-card {
    padding: 20px;
  }

  .actions-row .btn {
    width: 100%;
  }

  .number-stage {
    height: 240px;
  }
}

.motivation-panel {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}

.motivation-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.motivation-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.motivation-card:hover {
  transform: translateY(-4px);
}

.motivation-card span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 700;
}

.motivation-card strong {
  color: var(--heading);
  font-size: 24px;
  font-weight: 900;
}

.progress-wrap {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.progress-label span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.progress-label strong {
  color: var(--heading);
  font-size: 14px;
}

.progress-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  transition: width 0.4s ease;
}

.motivation-message {
  min-height: 62px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid var(--border);
  color: var(--heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.celebrate {
  animation: celebratePulse 0.7s ease;
}

@keyframes celebratePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
  30% {
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(37, 99, 235, 0.18);
  }
  60% {
    transform: scale(0.99);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
}

.confetti {
  position: absolute;
  width: 10px;
  height: 16px;
  border-radius: 4px;
  opacity: 0.95;
  animation: confettiFall 1200ms linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(260px) rotate(480deg);
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .motivation-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.settings-toggle {
  border: none;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-card-body {
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    margin-top 0.25s ease;
  max-height: 2000px;
  opacity: 1;
}

.settings-card.collapsed .settings-card-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.settings-card.collapsed .settings-toggle i {
  transform: rotate(180deg);
}

.settings-toggle i {
  transition: transform 0.25s ease;
}

.actions-row-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.actions-row-settings .btn {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .trainer-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .display-meta,
  .motivation-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-trust {
    display: none;
  }

  .showcase-list {
    display: none;
  }

  .number-stage {
    min-height: 220px;
  }

  .number-box {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .answer-area .actions-row {
    flex-direction: column;
  }

  .answer-area .btn,
  .actions-row-settings .btn {
    width: 100%;
  }
}

.card-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mode-switch-btn {
  border: none;
  outline: none;
  background: linear-gradient(135deg, #6c63ff, #4f46e5);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.18);
}

.mode-switch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

.settings-form-panel {
  display: none;
  animation: fadeSwitch 0.3s ease;
}

.settings-form-panel.active {
  display: block;
}

@keyframes fadeSwitch {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .card-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .mode-switch-btn,
  .settings-toggle {
    flex: 1;
  }
}

.vertical-math {
  font-size: 64px;
  font-weight: 900;
  text-align: right;
  direction: ltr;
}

.vertical-math .line {
  height: 4px;
  background: #fff;
  margin-top: 10px;
}

.math-game {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.math-game .box {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 20px 30px;
  font-size: 60px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.math-game .op {
  font-size: 50px;
  color: #38bdf8;
}

.hidden {
  display: none !important;
}

.settings-form-panel {
  display: none;
}

.settings-form-panel.active {
  display: block;
}

.settings-mode-switcher {
  margin-bottom: 24px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.full-width-btn {
  display: block;
}

.full-width-btn .btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px;
}

.answer-area .actions-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.answer-area .actions-row .btn {
  flex: 1;
  padding: 16px;
  font-size: 15px;
  border-radius: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 55px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 5px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 18px;
  font-weight: 800;
}

.logo-text span {
  font-size: 12px;
  opacity: 0.8;
}

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #070807;
  overflow: hidden;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;
}

.gsap-loader {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  background: #070807;
  direction: ltr;
  overflow: hidden;
  perspective: 1400px;
}

.loader-main-word {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 51%;
  width: min(88vw, 1280px);
  transform: translate(-50%, -50%);
  text-align: center;
  transform-style: preserve-3d;
}

.loader-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2px, 0.22vw, 6px);
  width: 100%;
  white-space: nowrap;
  transform-style: preserve-3d;
}

.loader-char {
  display: inline-block;
  font-family:
    Arial Black,
    Arial,
    Helvetica,
    sans-serif;
  font-size: clamp(76px, 8.6vw, 160px);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: 0;
  color: #f4efd6;
  opacity: 0;
  filter: blur(18px);
  transform-origin: center center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
}

.loader-char.cut {
  position: relative;
}

.loader-char.cut::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 52%;
  height: clamp(5px, 0.52vw, 8px);
  background: #070807;
  border-radius: 999px;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.45s ease;
}

.loader-char.cut.show-cut::after {
  opacity: 1;
  transform: translateY(-50%) scaleX(1);
}

.mini-word {
  position: absolute;
  z-index: 4;
  color: rgba(244, 239, 214, 0.42);
  font-family:
    Arial Black,
    Arial,
    Helvetica,
    sans-serif;
  font-size: clamp(16px, 1.45vw, 24px);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.word-1 {
  top: 22%;
  left: 18%;
}
.word-2 {
  top: 30%;
  right: 14%;
}
.word-3 {
  bottom: 22%;
  left: 22%;
}
.word-4 {
  bottom: 22%;
  right: 12%;
}

.loader-flower {
  position: absolute;
  z-index: 8;
  top: 12.5%;
  left: 31%;
  width: clamp(104px, 8.8vw, 146px);
  height: clamp(104px, 8.8vw, 146px);
  opacity: 0;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.loader-flower::before {
  content: "";
  position: absolute;
  inset: 37%;
  border-radius: 50%;
  background: #070807;
  z-index: 4;
}

.loader-flower span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 45%;
  height: 45%;
  background: linear-gradient(135deg, #ff9b54 0%, #ff4f9a 45%, #d86cff 100%);
  border-radius: 100% 0 100% 0;
  transform-origin: 0% 0%;
  filter: saturate(1.25) drop-shadow(0 8px 16px rgba(255, 85, 150, 0.24));
}

.loader-flower span:nth-child(1) {
  transform: rotate(0deg) translate(7%, 7%);
}

.loader-flower span:nth-child(2) {
  transform: rotate(90deg) translate(7%, 7%);
}

.loader-flower span:nth-child(3) {
  transform: rotate(180deg) translate(7%, 7%);
}

.loader-flower span:nth-child(4) {
  transform: rotate(270deg) translate(7%, 7%);
}

.loader-dot {
  position: absolute;
  z-index: 8;
  top: 24%;
  left: 46.5%;
  width: clamp(54px, 4.4vw, 78px);
  height: clamp(54px, 4.4vw, 78px);
  background: #f4efd6;
  border-radius: 50%;
  opacity: 0;
}

.loader-star {
  position: absolute;
  z-index: 9;
  top: 43.5%;
  left: 53%;
  font-family:
    Arial Black,
    Arial,
    sans-serif;
  font-size: clamp(72px, 6.2vw, 118px);
  font-weight: 950;
  line-height: 0.7;
  color: #ff876f;
  opacity: 0;
  transform-origin: center;
}

.loader-bolt {
  position: absolute;
  z-index: 8;
  bottom: 12%;
  left: 56%;
  font-size: clamp(102px, 9.4vw, 160px);
  font-weight: 950;
  line-height: 0.8;
  color: #19ff57;
  opacity: 0;
  text-shadow: 0 0 28px rgba(25, 255, 87, 0.3);
  transform-origin: center;
}

.loader-squiggle {
  position: absolute;
  z-index: 8;
  bottom: 22%;
  left: 66%;
  font-size: clamp(78px, 7.2vw, 128px);
  font-weight: 950;
  color: #ad78ff;
  opacity: 0;
  text-shadow: 0 0 26px rgba(173, 120, 255, 0.25);
  transform-origin: center;
}

.loader-dash {
  position: absolute;
  z-index: 7;
  right: 10%;
  bottom: 31%;
  width: clamp(46px, 4.4vw, 78px);
  height: clamp(6px, 0.55vw, 9px);
  background: rgba(244, 239, 214, 0.64);
  border-radius: 999px;
  opacity: 0;
}

.loader-dash::before,
.loader-dash::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 3px;
  background: rgba(244, 239, 214, 0.52);
  border-radius: 999px;
}

.loader-dash::before {
  top: -10px;
}

.loader-dash::after {
  bottom: -10px;
}

@media (max-width: 1024px) {
  .loader-main-word {
    width: 92vw;
    top: 50%;
  }

  .loader-char {
    font-size: clamp(58px, 9.6vw, 112px);
  }

  .loader-flower {
    top: 17%;
    left: 18%;
  }

  .loader-dot {
    top: 27%;
    left: 49%;
  }

  .word-1 {
    top: 22%;
    left: 10%;
  }
  .word-2 {
    top: 22%;
    right: 10%;
  }
  .word-3 {
    bottom: 20%;
    left: 12%;
  }
  .word-4 {
    bottom: 20%;
    right: 10%;
  }
}

@media (max-width: 768px) {
  .gsap-loader {
    min-height: 100svh;
  }

  .loader-main-word {
    top: 49%;
    width: 94vw;
    transform: translate(-50%, -50%) scale(1);
  }

  .loader-line {
    gap: 1px;
  }

  .loader-char {
    font-size: clamp(34px, 10.2vw, 56px);
    line-height: 0.8;
    letter-spacing: 0;
  }

  .loader-char.cut::after {
    height: 4px;
  }

  .loader-flower {
    width: clamp(70px, 20vw, 96px);
    height: clamp(70px, 20vw, 96px);
    top: 25%;
    left: 10%;
  }

  .loader-dot {
    width: clamp(34px, 9vw, 46px);
    height: clamp(34px, 9vw, 46px);
    top: 31%;
    left: 35%;
  }

  .loader-star {
    top: 46%;
    left: 47%;
    font-size: clamp(50px, 14vw, 72px);
  }

  .loader-bolt {
    bottom: 24%;
    left: 50%;
    font-size: clamp(76px, 22vw, 116px);
  }

  .loader-squiggle {
    bottom: 27%;
    left: 68%;
    font-size: clamp(62px, 18vw, 92px);
  }

  .loader-dash {
    right: 10%;
    bottom: 36%;
    width: 48px;
  }

  .mini-word {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .word-1 {
    top: 23%;
    left: 10%;
  }
  .word-2 {
    top: 23%;
    right: 10%;
  }
  .word-3 {
    bottom: 22%;
    left: 12%;
  }
  .word-4 {
    bottom: 22%;
    right: 12%;
  }
}

@media (max-width: 420px) {
  .loader-main-word {
    top: 49%;
    width: 96vw;
  }

  .loader-char {
    font-size: clamp(30px, 9.4vw, 42px);
  }

  .loader-flower {
    top: 26%;
    left: 9%;
  }

  .loader-dot {
    top: 32%;
    left: 36%;
  }

  .loader-bolt {
    bottom: 25%;
    left: 48%;
  }

  .loader-squiggle {
    bottom: 28%;
    left: 68%;
  }
}

.admin-sidebar,
.sidebar-nav,
.subscription-modal-card,
.admin-modal-card,
.table-responsive {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.subscription-modal-card::-webkit-scrollbar,
.admin-modal-card::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
  display: none;
}

html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.student-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
  transition: var(--transition);
  white-space: nowrap;
}

.student-login-btn:hover {
  transform: translateY(-2px);
}

.mobile-student-login-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

@media (max-width: 992px) {
  .student-login-btn {
    display: none;
  }
}
