/* ============================================================
   RESET & BASICS
============================================================ */

* {
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  text-align: right;
  direction: rtl;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video {
  max-width: 100%;
  display: block;
}

ul { margin: 0; padding: 0; list-style: none; }


/* ============================================================
      COLOR THEMING — VARIABLES
============================================================ */

/* 🎀 Girl Mode (Default) */
:root {
  --theme-main-1: #ff9bce;
  --theme-main-2: #c9a6ff;
  --theme-accent: #ff79c4;

  --theme-soft-1: #ffd6ec;
  --theme-soft-2: #fbe7ff;

  --theme-bg-light: #fff0fa;
  --theme-bg-gradient: linear-gradient(180deg,#fff0fa 0%,#f8faff 100%);
}

/* 🔵 Boy Mode */
body.boy-mode {
  --theme-main-1: #7cd3ff;
  --theme-main-2: #71ffce;
  --theme-accent: #47c1ff;

  --theme-soft-1: #c8f1ff;
  --theme-soft-2: #d6fff0;

  --theme-bg-light: #e2f7ff;
  --theme-bg-gradient: linear-gradient(180deg,#e2f7ff 0%,#e6ffe8 100%);
}


/* ============================================================
      HEADER — FULL LUX VERSION
============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  width: 100%;
}

.header-inner {
  max-width: 1350px;
  margin: auto;
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg,var(--theme-main-1),var(--theme-main-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

.menu a {
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  color: #444;
  transition: .25s;
}

.menu a:hover {
  background: rgba(0,0,0,0.06);
}

.menu .cta {
  background: linear-gradient(90deg,var(--theme-main-1),var(--theme-main-2));
  color: white;
  border-radius: 30px;
}


.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn {
  background: linear-gradient(90deg,#fbd1eb,#d9b7ff);
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}

body.boy-mode .login-btn {
  background: linear-gradient(90deg,#baf3ff,#a0ffe0);
}

.login-btn:hover {
  transform: translateY(-2px);
}


/* Theme Toggle Button */
.theme-toggle {
  border: none;
  background: rgba(255,255,255,0.8);
  padding: 7px 10px;
  border-radius: 14px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: .25s;
}

.theme-toggle:hover {
  background: rgba(255,255,255,1);
}


/* Mobile */
@media (max-width: 900px) {
  .menu { display: none; }
}



/* ============================================================
      FOOTER — FULL LUX VERSION
============================================================ */

#nini-footer {
  background: var(--theme-bg-gradient);
  margin-top: 80px;
  padding-top: 40px;
}

.footer-container {
  max-width: 1400px;
  margin: auto;
  padding: 0 22px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo {
  text-align: center;
}

.footer-logo video {
  width: 105px;
  margin: auto;
  border-radius: 20px;
}

.footer-logo h2 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 10px;
  background: linear-gradient(90deg,var(--theme-main-1),var(--theme-main-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo p {
  color: #555;
  font-size: 14px;
  margin-top: 4px;
}


.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 28px;
}

.footer-box {
  background: rgba(255,255,255,0.85);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  text-align: right;
}

.footer-box h3 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-main-1);
}

.footer-box ul li {
  margin-bottom: 8px;
}

.footer-box ul li a {
  font-size: 14px;
  color: #555;
}

.footer-box a img {
  margin: 0 5px;
}


.footer-wave svg {
  width: 100%;
  height: 120px;
  display: block;
}

.footer-bar {
  text-align: center;
  padding: 12px 0;
  background: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-top: -1px;
}



/* ============================================================
      BUTTONS — GLOBAL
============================================================ */

.btn-primary {
  background: linear-gradient(90deg,var(--theme-main-1),var(--theme-main-2));
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background: rgba(255,255,255,0.8);
  border: 2px solid var(--theme-main-1);
  color: var(--theme-main-1);
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
}



/* ============================================================
      INPUTS & FORMS
============================================================ */

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--theme-main-1);
  box-shadow: 0 0 0 2px rgba(255,140,200,0.3);
}



/* ============================================================
      SOFT CARD STYLE
============================================================ */

.soft-card {
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}



/* ============================================================
      GRID SYSTEM
============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

@media (max-width: 850px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   THEME SELECTOR — GIRL / BOY PILLS
============================================================ */

.theme-selector {
  display: flex;
  background: rgba(255,255,255,.8);
  border-radius: 40px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  gap: 4px;
}

.theme-pill {
  padding: 6px 14px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: .25s;
  user-select: none;
}

.theme-pill:hover {
  transform: translateY(-2px);
}

/* انتخاب شده */
.theme-pill.selected {
  color: white;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

/* دختر */
.theme-pill.girl.selected {
  background: linear-gradient(90deg, #ff98d0, #d48bff);
}

/* پسر */
.theme-pill.boy.selected {
  background: linear-gradient(90deg,#6fd0ff,#5effc8);
}


/* ============================================================
      UTILITY CLASSES
============================================================ */

.center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.rounded { border-radius: 16px; }
.shadow { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.bg-white { background: white; }

/* MODAL */
.role-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 5000;
}

.modal-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    padding: 32px 26px;
    width: 90%;
    max-width: 360px;
    border-radius: 26px;
    text-align: center;
    animation: fade .25s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

@keyframes fade {
    from {
        opacity: 0;
        transform: scale(.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.role-btn {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    margin-bottom: 10px;
}

.parent-btn {
    background: linear-gradient(145deg, #ff92c6, #ff5fa1);
}

.doctor-btn {
    background: linear-gradient(145deg, #8ca7ff, #6b86ff);
}

.admin-btn {
    background: linear-gradient(145deg, #b690ff, #9a63ff);
}