/* ========================================
   ParentNext Marketing Website
   ======================================== */

:root {
  --primary: #0f62fe;
  --primary-dark: #0043ce;
  --primary-light: #edf5ff;
  --text: #161616;
  --text-light: #525252;
  --text-helper: #6f6f6f;
  --bg: #f4f4f4;
  --white: #ffffff;
  --border: #e0e0e0;
  --border-strong: #c6c6c6;
  --success: #198038;
  --error: #da1e28;
  --warning: #f1c21b;
  --shadow: none;
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.1);
  --radius: 0;
  --radius-sm: 0;
  --layer-01: #f4f4f4;
  --layer-02: #ffffff;
  --spacing-03: 8px;
  --spacing-05: 16px;
  --spacing-06: 24px;
  --spacing-07: 32px;
  --spacing-09: 48px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.12s ease;
  gap: 8px;
  letter-spacing: 0.16px;
  line-height: 1.3;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.navbar-links a.btn-nav {
  background: var(--white);
  color: var(--primary);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 0;
  border: none;
  letter-spacing: 0.16px;
  height: auto;
}

.navbar-links a.btn-nav:hover {
  background: #e8e8e8;
  color: var(--primary-dark);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
  padding: 14px;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: auto;
}

.btn-disabled:hover {
  background: transparent !important;
}

.btn-tooltip-wrap {
  position: relative;
  display: inline-flex;
}

.btn-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--white);
  font-size: 0.8rem;
  padding: 6px 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  letter-spacing: 0.16px;
}

.btn-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

.btn-tooltip-wrap:hover .btn-tooltip {
  opacity: 1;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   Navbar
   ======================================== */

.navbar {
  background: var(--primary);
  padding: 0;
  border-bottom: none;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  height: 100%;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.navbar-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 400;
  transition: background 0.12s, color 0.12s;
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  letter-spacing: 0.16px;
}

.navbar-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========================================
   Language Selector
   ======================================== */

.lang-selector {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.12s;
  height: 48px;
  letter-spacing: 0.16px;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.lang-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lang-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.lang-selector.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid var(--border);
}

.lang-selector.open .lang-dropdown {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.12s;
  text-align: left;
  letter-spacing: 0.16px;
}

.lang-option:hover {
  background: var(--primary-light);
}

.lang-option.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.lang-option-code {
  font-weight: 600;
  text-transform: uppercase;
  min-width: 24px;
  font-size: 0.75rem;
  color: var(--text-helper);
}

.lang-option.active .lang-option-code {
  color: var(--primary);
}

/* ========================================
   Hero
   ======================================== */

.hero {
  padding: 80px 0 40px;
  background: var(--white);
  color: var(--text);
  overflow: visible;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 0;
}

.highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   Phone Mockup Slider — 3D Perspective
   ======================================== */

.hero-visual {
  position: relative;
  z-index: 10;
  margin-bottom: -120px;
}

.phone-slider-container {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  perspective: 1400px;
}

.phone-frame {
  position: relative;
  width: 300px;
  height: 620px;
  margin: 0 auto;
  background: linear-gradient(145deg, #3a3a3a 0%, #1a1a1a 40%, #0a0a0a 100%);
  border-radius: 36px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Multi-layer shadow for depth */
  box-shadow:
    -8px 12px 20px rgba(0, 0, 0, 0.15),
    -16px 24px 45px rgba(0, 0, 0, 0.12),
    -24px 36px 80px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.phone-frame:hover {
  transform: rotateY(-6deg) rotateX(2deg) rotateZ(0.5deg);
}

/* Side edge for 3D depth */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  right: -3px;
  width: 3px;
  background: linear-gradient(180deg,
    #444 0%, #222 30%, #111 70%, #222 100%);
  border-radius: 0 2px 2px 0;
  transform: rotateY(90deg);
  transform-origin: left center;
}

/* Bottom edge for 3D depth */
.phone-frame::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg,
    #333 0%, #1a1a1a 50%, #333 100%);
  border-radius: 0 0 2px 2px;
  transform: rotateX(90deg);
  transform-origin: center top;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
}

/* Glass reflection overlay */
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.0) 25%,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.12) 35%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.0) 50%,
    rgba(255, 255, 255, 0.0) 100%
  );
  z-index: 5;
  pointer-events: none;
}

.phone-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.phone-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.phone-slide.active {
  opacity: 1;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 30px;
}

/* Floor reflection */
.hero-visual::after {
  content: '';
  display: block;
  width: 300px;
  height: 140px;
  margin: -10px auto 0;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.06) 40%,
    transparent 70%
  );
  filter: blur(4px);
  transform: perspective(800px) rotateX(60deg) scaleX(1.1);
  pointer-events: none;
}

.phone-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.phone-slider-nav svg {
  width: 18px;
  height: 18px;
}

.phone-slider-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.phone-slider-prev {
  left: -16px;
}

.phone-slider-next {
  right: 16px;
}

.phone-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.phone-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.phone-slider-dot.active {
  background: var(--primary);
  width: 18px;
  border-radius: 3px;
}

/* ========================================
   Section Header
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ========================================
   Features
   ======================================== */

.features {
  position: relative;
  background: var(--layer-01);
  color: var(--text);
  padding: 80px 0;
}

.features .section-header h2 {
  color: var(--text);
}

.features .section-header p {
  color: var(--text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.feature-cell {
  background: var(--white);
  padding: 32px;
  transition: background 0.12s ease;
  border-left: 3px solid transparent;
}

.feature-cell:hover {
  background: #e8e8e8;
  border-left-color: var(--primary);
}

.feature-cell h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 0.16px;
}

.feature-cell p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
  letter-spacing: 0.16px;
}

/* ========================================
   How It Works
   ======================================== */

.how-it-works {
  padding: 96px 0;
  padding-top: 160px;
  position: relative;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 260px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.step-arrow {
  width: 32px;
  height: 32px;
  color: var(--primary);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ========================================
   Auth Modal
   ======================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 0;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  position: relative;
  border-top: 3px solid var(--primary);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-logo {
  height: 32px;
  width: auto;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-light);
}

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

.turnstile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 65px;
}

.btn-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-link:hover {
  text-decoration: underline;
}

.step-info-content {
  text-align: center;
  padding: 16px 0 24px;
}

.info-icon {
  width: 48px;
  height: 48px;
  color: var(--success);
  margin: 0 auto 16px;
}

.step-info-content p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

/* Form Elements */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--layer-01);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color 0.12s;
  outline: none;
  letter-spacing: 0.16px;
}

.form-group input:focus {
  border-bottom: 2px solid var(--primary);
}

.form-group input::placeholder {
  color: #aab4be;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 0;
  font-size: 0.875rem;
  display: none;
  line-height: 1.5;
  letter-spacing: 0.16px;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-message.error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #f8bbd0;
}

/* Spinner */
.btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.loading .spinner {
  display: inline-block;
}

.btn.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   Footer — IBM Carbon Style
   ======================================== */
/* ── ORIGINAL FOOTER (keep for rollback) ──
.footer {
  background: #1a1e2a;
  color: rgba(255, 255, 255, 0.4);
}
.footer-main { padding-top: 56px; }
.footer-top {
  display: flex; justify-content: space-between; gap: 60px; padding-bottom: 48px;
}
.footer-brand { max-width: 320px; }
.footer-logo {
  height: 24px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px;
}
.footer-desc { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.4); }
.footer-columns { display: flex; gap: 64px; }
.footer-col h4 {
  font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.peda-logo { height: 16px; width: auto; filter: brightness(0) invert(1); opacity: 0.6; transition: opacity 0.2s; }
.peda-logo:hover { opacity: 1; }
── END ORIGINAL FOOTER ── */

/* — Footer (Boxed Cards — Hover Accent) — */
.footer {
  background: #0d0d0d;
  color: #c6c6c6;
}

.footer-wrap {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-cards {
  display: flex;
  gap: 16px;
  padding: 48px 0 32px;
}

.footer-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-left: 3px solid transparent;
  padding: 32px;
  flex: 1;
  transition: border-left-color 0.12s;
}

.footer-card:hover {
  border-left-color: #0f62fe;
}

.footer-card-brand {
  flex: 2;
}

.footer-logo {
  width: 147px;
  height: 29px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.75rem;
  line-height: 1.7;
  color: #6f6f6f;
  letter-spacing: 0.32px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: #a8a8a8;
  letter-spacing: 0.16px;
  transition: color 0.12s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1a1a1a;
  height: 72px;
  display: flex;
  align-items: center;
}

.footer-bottom-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.75rem;
  color: #6f6f6f;
  letter-spacing: 0.32px;
  margin: 0;
  line-height: 1rem;
}

.footer-bottom-inner a {
  display: inline-flex;
  align-items: center;
}

.peda-logo {
  height: 16px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.peda-logo:hover {
  opacity: 0.7;
}

/* ========================================
   Nav Auth Items
   ======================================== */

#navGuestItems {
  display: contents;
}

.nav-auth-items {
  display: contents;
}

.nav-auth-items a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-auth-items a:hover {
  color: var(--white);
}

.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-logout {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 6px 16px !important;
  font-size: 0.82rem !important;
  border-radius: 0 !important;
  letter-spacing: 0.16px !important;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--white) !important;
}

/* ========================================
   Dashboard
   ======================================== */

.dashboard {
  padding: 64px 0 48px;
  background: var(--bg);
  min-height: 80vh;
}

.dash-welcome {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dash-welcome h1 {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0;
}

.dash-welcome p {
  color: var(--text-light);
  font-size: 0.875rem;
  letter-spacing: 0.16px;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.16px;
  text-transform: uppercase;
}

.dash-stats-row {
  display: flex;
  gap: 1px;
  margin-bottom: 24px;
  background: var(--border);
}

.dash-stats {
  display: flex;
  gap: 1px;
  flex: 1;
  background: var(--border);
}

.stat-card {
  background: var(--white);
  border-radius: 0;
  padding: 20px;
  text-align: left;
  border: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.15s;
}

.stat-card:hover::after {
  background: var(--primary);
}

.stat-icon {
  width: 32px;
  height: 32px;
  margin: 0 0 12px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none !important;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-icon-children {
  color: var(--primary);
}

.stat-icon-scanned {
  color: #8a3ffc;
}

.stat-icon-safe {
  color: var(--success);
}

.stat-icon-risky {
  color: var(--error);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-helper);
  margin-top: 4px;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.dash-usage {
  background: var(--white);
  border-radius: 0;
  padding: 20px 24px;
  border-top: 3px solid var(--primary);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.dash-usage-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dash-usage-right {
  flex: 1;
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

.dash-usage h3 {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.usage-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 8px;
}

.usage-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 0;
  transition: width 0.5s ease;
}

.usage-text {
  font-size: 0.75rem;
  color: var(--text-helper);
  letter-spacing: 0.32px;
}

.usage-divider {
  display: none;
}

.sub-info-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.sub-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-label {
  font-size: 0.75rem;
  color: var(--text-helper);
  letter-spacing: 0.32px;
}

.sub-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.dash-children-section {
  margin-bottom: 32px;
}

.dash-children-section .section-title {
  margin-bottom: 16px;
}

.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
}

.no-children {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-helper);
  font-size: 0.875rem;
  padding: 48px 20px;
  background: var(--white);
  border-radius: 0;
  border: 1px dashed var(--border-strong);
  letter-spacing: 0.16px;
}

.child-card {
  background: var(--white);
  border-radius: 0;
  padding: 20px;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
  text-align: left;
  position: relative;
}

.child-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: background 0.12s;
}

.child-card:hover {
  background: #e8e8e8;
}

.child-card:hover::before {
  background: var(--primary);
}

.child-card-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.child-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: 0.16px;
}

.child-card-age {
  font-size: 0.75rem;
  color: var(--text-helper);
  margin-bottom: 12px;
  letter-spacing: 0.32px;
}

.child-card-stats {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-helper);
  letter-spacing: 0.32px;
}

.child-card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.child-card-risk {
  color: var(--error);
  font-weight: 600;
}

.dash-education {
  margin-bottom: 32px;
}

.education-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: 0;
  padding: 40px;
  text-align: center;
  background: var(--white);
  position: relative;
}

.coming-soon-badge {
  display: inline-block;
  background: #393939;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 2px 8px;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.32px;
  margin-bottom: 12px;
}

.education-placeholder h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.education-placeholder p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========================================
   Profile Section
   ======================================== */

.profile-section {
  padding: 100px 0 60px;
  background: var(--bg);
  min-height: 80vh;
}

.profile-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.profile-form {
  max-width: 480px;
  background: var(--white);
  border-radius: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
}

.profile-form .form-group {
  margin-bottom: 16px;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--layer-01);
  outline: none;
  cursor: pointer;
  transition: border-color 0.12s;
  letter-spacing: 0.16px;
}

.form-select:focus {
  border-bottom: 2px solid var(--primary);
}

/* ========================================
   Child Detail Section (full page)
   ======================================== */

.child-detail-section {
  max-width: 1340px;
  margin: 64px auto 40px;
  padding: 0 20px;
}

.child-detail-container {
  background: var(--white);
  border-radius: 0;
  padding: 24px 32px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: background 0.12s;
}

.btn-back:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.child-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.child-emoji {
  font-size: 3rem;
  line-height: 1;
}

.child-detail-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.child-detail-header p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.risk-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 0;
  letter-spacing: 0.32px;
  border: none;
  color: var(--white);
}

.risk-badge.risk-low {
  background: var(--success);
}

.risk-badge.risk-medium {
  background: #b28600;
}

.risk-badge.risk-high {
  background: var(--error);
}

.child-detail-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
}

.child-assessment {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--layer-01);
  border-radius: 0;
  border-left: 3px solid var(--primary);
}

.child-assessment p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

/* Risk Chart */
.risk-chart-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.risk-donut-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.risk-donut {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.risk-donut-center {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.risk-donut-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.risk-donut-label {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.risk-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text);
}

.risk-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.risk-legend-safe { background: #1b874b; }
.risk-legend-risky { background: #b91c1c; }

.risk-factors {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.risk-factor-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.risk-factor-label {
  font-size: 0.75rem;
  color: var(--text-light);
  width: 110px;
  flex-shrink: 0;
}

.risk-factor-track {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.risk-factor-fill {
  height: 100%;
  background: #b91c1c;
  border-radius: 3px;
}

.risk-factor-count {
  font-size: 0.72rem;
  color: var(--text-light);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.child-games-table-wrap {
  overflow-x: auto;
}

.games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.games-table th {
  text-align: left;
  padding: 12px 16px;
  background: #e0e0e0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.32px;
  border-bottom: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
}

.games-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
}

.games-table tbody tr:hover {
  background: #e8e8e8;
}

.no-games {
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
  padding: 24px;
}

/* Suitability badges */
.suitability-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 0;
  letter-spacing: 0.32px;
  border: none;
  color: var(--white);
}

.suitability-badge.suit-yes {
  background: var(--success);
}

.suitability-badge.suit-no {
  background: var(--error);
}

/* Game Detail Popup */
.game-detail-modal {
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
}

.game-detail-modal h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.suitability-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 0;
  letter-spacing: 0.32px;
  border: none;
  color: var(--white);
  margin-bottom: 20px;
}

.suitability-tag.suit-yes {
  background: var(--success);
}

.suitability-tag.suit-no {
  background: var(--error);
}

.game-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.game-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

.game-detail-value {
  font-size: 0.88rem;
  color: var(--text);
}

.game-detail-reason {
  padding: 16px;
  background: var(--layer-01);
  border-radius: 0;
  border-left: 3px solid var(--error);
}

.game-detail-reason strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text);
}

.game-detail-reason ul {
  margin: 0;
  padding-left: 20px;
}

.game-detail-reason li {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
}

.reason-safe {
  font-size: 0.88rem;
  color: #2e7d32;
  margin: 0;
}

.game-detail-source {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 12px;
  opacity: 0.6;
}

.game-detail-desc {
  margin-bottom: 14px;
}

.game-detail-desc strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--text);
}

.game-detail-desc p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
}


/* ========================================
   Animations
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RTL Support
   ======================================== */

[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .navbar-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-inner {
  direction: rtl;
}

[dir="rtl"] .hero-buttons {
  flex-direction: row-reverse;
}

[dir="rtl"] .steps {
  flex-direction: row-reverse;
}

[dir="rtl"] .step-arrow {
  transform: rotate(180deg);
}

[dir="rtl"] .footer-bottom-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 20px;
}

[dir="rtl"] .phone-frame {
  transform: rotateY(12deg) rotateX(4deg) rotateZ(-1deg);
}

[dir="rtl"] .phone-frame:hover {
  transform: rotateY(6deg) rotateX(2deg) rotateZ(-0.5deg);
}

[dir="rtl"] .phone-slider-prev {
  left: auto;
  right: -16px;
}

[dir="rtl"] .phone-slider-next {
  right: auto;
  left: 16px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .steps {
    flex-direction: column;
    gap: 32px;
  }

  [dir="rtl"] .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  [dir="rtl"] .step-arrow {
    transform: rotate(90deg);
  }

  .step {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .dash-stats-row {
    flex-direction: column;
  }

  .dash-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-usage {
    flex-direction: column;
    gap: 0;
  }

  .dash-usage-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
  }

  .children-grid {
    grid-template-columns: 1fr;
  }

  .child-detail-body {
    grid-template-columns: 1fr;
  }

  .child-detail-header {
    flex-wrap: wrap;
  }

  .risk-badge {
    margin-left: 0;
  }

  .games-table {
    font-size: 0.78rem;
  }

  .games-table th,
  .games-table td {
    padding: 8px;
  }

  .dashboard {
    padding: 80px 0 40px;
  }

  .profile-section {
    padding: 80px 0 40px;
  }

  .profile-form {
    padding: 24px;
  }

  .nav-auth-items {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }

  #navGuestItems {
    display: contents;
  }

  .nav-user-menu {
    flex-direction: column;
    gap: 8px;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .navbar-links.open {
    display: flex;
  }

  [dir="rtl"] .navbar-links {
    flex-direction: column;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .lang-selector {
    align-self: center;
  }

  .lang-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  [dir="rtl"] .lang-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .hero {
    padding: 48px 0 24px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  [dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    margin-bottom: -80px;
  }

  .phone-slider-container {
    max-width: 320px;
    perspective: 1000px;
  }

  .phone-frame {
    width: 240px;
    height: 496px;
    border-radius: 30px;
    padding: 4px;
    transform: rotateY(-8deg) rotateX(3deg) rotateZ(0.5deg);
  }

  .phone-frame:hover {
    transform: rotateY(-4deg) rotateX(1.5deg) rotateZ(0.3deg);
  }

  [dir="rtl"] .phone-frame {
    transform: rotateY(8deg) rotateX(3deg) rotateZ(-0.5deg);
  }

  [dir="rtl"] .phone-frame:hover {
    transform: rotateY(4deg) rotateX(1.5deg) rotateZ(-0.3deg);
  }

  .phone-screen {
    border-radius: 27px;
  }

  .phone-screen::after {
    border-radius: 27px;
  }

  .phone-slide img {
    border-radius: 27px;
  }

  .phone-slider-nav {
    display: none;
  }

  .hero-visual::after {
    width: 240px;
    height: 90px;
  }

  .how-it-works {
    padding: 120px 0 64px;
  }

  .features {
    padding: 64px 0;
  }

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

  .feature-cell {
    padding: 32px 24px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .footer-cards {
    flex-direction: column;
  }

  .footer-card-brand {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .modal {
    padding: 24px;
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .dash-welcome h1 {
    font-size: 1.4rem;
  }
}
