:root {
  --bg: #f0fdf9;
  --bg-soft: #ecfdf5;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #059669;
  --primary-dark: #047857;
  --sidebar-bg: linear-gradient(165deg, #042f2e 0%, #0f766e 48%, #134e4a 100%);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --danger: #dc2626;
  --radius: 14px;
  --sidebar-w: 268px;
}

.font-figtree { font-family: "Figtree", ui-sans-serif, system-ui, sans-serif; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ——— Shell + sidebar ——— */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--sidebar-border);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  z-index: 50;
}

.sidebar-veli .sidebar-nav { flex: 1; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.35rem 1.15rem;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo {
  width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.sidebar-title { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.2; }
.sidebar-sub { font-size: 0.72rem; opacity: 0.72; margin-top: 0.15rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 0.65rem 0.55rem; display: flex; flex-direction: column; gap: 0.2rem; }

.sidebar-link {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.85rem; border-radius: 11px;
  color: rgba(255, 255, 255, 0.88); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sidebar-link.is-active { background: rgba(255, 255, 255, 0.18); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.sidebar-link-muted { opacity: 0.85; }
.sidebar-ico { font-size: 1.1rem; width: 1.5rem; text-align: center; flex-shrink: 0; }
.sidebar-footer { padding: 0.65rem 0.55rem 1rem; border-top: 1px solid var(--sidebar-border); }

.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 32%, #f0fdf9 100%); }

.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.sidebar-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: #fff; font-size: 1.25rem; cursor: pointer; align-items: center; justify-content: center; }
.topbar-inner { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-title { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(100%, 70vw); }
.topbar-user { font-size: 0.82rem; color: var(--muted); padding: 0.35rem 0.75rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.page-content { flex: 1; padding: 1.35rem 1.5rem 2rem; max-width: 1180px; width: 100%; margin: 0 auto; }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 45; }

@media (max-width: 900px) {
  .sidebar-toggle { display: inline-flex; }
  /* Kapalı menü tam ekran katmanında; tıklamaları üst bardaki düğmeleri yutmaması için */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
    pointer-events: none;
  }
  .sidebar.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .backdrop:not([hidden]) { display: block; }
}

/* ——— Simple / auth layout ——— */
.layout-simple { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: linear-gradient(145deg, #ecfdf5 0%, #f0f9ff 45%, #fdf4ff 100%); }
.layout-simple-inner { width: 100%; max-width: 440px; }

/* ——— Components ——— */
h2.section-title { font-size: 1.05rem; margin: 1rem 0 0.75rem; font-weight: 700; }
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.card { background: var(--card); border: 1px solid rgba(226, 232, 240, 0.95); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 1rem; }
.stat { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; color: #0f766e; }
.label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
th { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.48rem 0.95rem; border-radius: 11px; border: none; font-weight: 700; font-size: 0.88rem; cursor: pointer; text-decoration: none; background: linear-gradient(135deg, var(--primary), #0d9488); color: #fff; box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28); }
.btn:hover { filter: brightness(1.06); }
.btn-secondary { background: #e2e8f0; color: var(--text); box-shadow: none; }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-sm { padding: 0.32rem 0.6rem; font-size: 0.8rem; }
.form-row { margin-bottom: 0.9rem; }
.form-row label { display: block; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.35rem; color: #334155; }
input, select, textarea { width: 100%; max-width: 440px; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 11px; font-size: 1rem; font-family: inherit; }
textarea { min-height: 92px; max-width: 100%; }
.stack { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
.home-wrap { text-align: center; padding: 2.5rem 1rem; }
.home-wrap h1 { margin: 0 0 0.35rem; font-size: 1.85rem; font-weight: 900; letter-spacing: -0.04em; }
.home-wrap .lead { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }
.home-btns { display: flex; flex-direction: column; gap: 0.85rem; max-width: 360px; margin: 0 auto; }
.home-btns a { text-align: center; padding: 0.95rem 1rem; border-radius: var(--radius); font-weight: 800; text-decoration: none; font-size: 1rem; transition: transform 0.15s, box-shadow 0.15s; }
.home-btns .primary { background: linear-gradient(135deg, #059669, #0d9488); color: #fff; box-shadow: 0 10px 28px rgba(5, 150, 105, 0.35); }
.home-btns .primary:hover { transform: translateY(-2px); }
.home-btns .ghost { background: #fff; border: 1px solid var(--border); color: var(--text); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.present { background: rgba(236, 253, 245, 0.95); font-weight: 600; }
.absent { opacity: 0.78; }
.auth-card { background: #fff; border-radius: 18px; padding: 1.75rem 1.5rem; border: 1px solid rgba(226, 232, 240, 0.95); box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08); }
.auth-card h1 { margin: 0 0 1.25rem; font-size: 1.35rem; font-weight: 900; }
.child-head { font-size: 1.45rem; font-weight: 900; margin: 0 0 0.35rem; letter-spacing: -0.03em; }
.child-meta { margin: 0 0 1.15rem; font-size: 0.95rem; color: var(--muted); }

/* ——— Dashboard ——— */
.dash-hero { position: relative; border-radius: 22px; overflow: hidden; margin-bottom: 1.5rem; background: linear-gradient(135deg, #064e3b 0%, #0d9488 38%, #7c3aed 95%); color: #fff; box-shadow: 0 20px 50px rgba(13, 148, 136, 0.35); }
.dash-hero__bg { position: absolute; inset: 0; opacity: 0.25; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5l5 15h15l-12 10 5 15-13-9-13 9 5-15-12-10h15z' fill='%23fff'/%3E%3C/svg%3E"); background-size: 56px 56px; }
.dash-hero__inner { position: relative; padding: 1.75rem 1.5rem 1.85rem; }
.dash-hero__hello { margin: 0 0 0.35rem; font-weight: 700; opacity: 0.92; }
.dash-hero__title { margin: 0 0 0.5rem; font-size: 1.65rem; font-weight: 900; letter-spacing: -0.03em; }
.dash-hero__sub { margin: 0 0 1.25rem; opacity: 0.88; font-size: 0.95rem; }
.dash-hero__stats { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dash-stat-chip { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 1rem; background: rgba(255, 255, 255, 0.18); border-radius: 14px; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.25); }
.dash-stat-chip--accent { background: rgba(255, 255, 255, 0.28); }
.dash-stat-chip__ico { font-size: 1.5rem; }
.dash-stat-chip__val { font-size: 1.45rem; font-weight: 900; line-height: 1; }
.dash-stat-chip__lbl { font-size: 0.72rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.06em; }
.dash-layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 900px) { .dash-layout { grid-template-columns: 1fr 300px; align-items: start; } }
.dash-panel { background: #fff; border-radius: var(--radius); border: 1px solid rgba(226, 232, 240, 0.95); padding: 1.15rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06); }
.dash-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem; }
.dash-panel__title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.dash-panel__date { font-size: 0.78rem; color: var(--muted); }
.dash-panel__link { font-size: 0.82rem; font-weight: 700; color: #0d9488; }
.dash-today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.dash-today-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.65rem; border-radius: 12px; background: linear-gradient(90deg, rgba(236, 253, 245, 0.9), rgba(240, 253, 250, 0.5)); border: 1px solid rgba(167, 243, 208, 0.6); }
.dash-today-ico { font-size: 1.35rem; }
.dash-today-name { flex: 1; font-weight: 700; }
.dash-today-no { font-size: 0.78rem; color: var(--muted); }
.dash-empty { margin: 0; color: var(--muted); font-size: 0.92rem; }
.dash-panel--warn { border-color: rgba(251, 191, 36, 0.45); background: linear-gradient(180deg, #fffbeb 0%, #fff 55%); }
.dash-low-grid { display: flex; flex-direction: column; gap: 0.55rem; }
.dash-low-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: 14px; background: #fff; border: 1px solid rgba(251, 191, 36, 0.55); text-decoration: none; color: inherit; transition: transform 0.12s, box-shadow 0.12s; }
.dash-low-card:hover { transform: translateX(4px); box-shadow: 0 6px 16px rgba(245, 158, 11, 0.2); }
.dash-low-card__emoji { font-size: 1.75rem; }
.dash-low-card__name { font-weight: 800; font-size: 0.92rem; }
.dash-low-card__rem { font-size: 0.8rem; color: #b45309; font-weight: 600; }
.dash-quick-links { display: flex; flex-direction: column; gap: 0.45rem; }
.dash-quick-link { display: block; padding: 0.55rem 0.75rem; border-radius: 11px; background: #ecfdf5; color: #065f46; font-weight: 700; font-size: 0.88rem; text-decoration: none; border: 1px solid rgba(16, 185, 129, 0.25); }
.dash-quick-link:hover { background: #d1fae5; }
.dash-admin-footer { font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0; }

/* ——— Kids / Students browser ——— */
.page-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.playful-intro { padding: 1rem 1.15rem; border-radius: 18px; background: linear-gradient(110deg, rgba(236, 253, 245, 0.95), rgba(250, 245, 255, 0.9)); border: 1px solid rgba(167, 243, 208, 0.5); }
.page-intro-title { margin: 0 0 0.25rem; font-size: 1.35rem; font-weight: 900; letter-spacing: -0.03em; }
.page-intro-text { margin: 0; color: var(--muted); font-size: 0.92rem; }
.kid-browser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.kid-browser-card { background: #fff; border-radius: 20px; padding: 0; overflow: hidden; border: 1px solid rgba(226, 232, 240, 0.95); box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07); transition: transform 0.18s, box-shadow 0.18s; }
.kid-browser-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13, 148, 136, 0.18); }
.kid-browser-card__hero { background: linear-gradient(135deg, #f0fdfa, #ede9fe, #fff7ed); padding: 1.1rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.kid-browser-card__emoji { font-size: 2.5rem; line-height: 1; }
.kid-browser-card__no { font-size: 0.75rem; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, 0.85); padding: 0.25rem 0.5rem; border-radius: 999px; }
.kid-browser-card__name { margin: 0.85rem 1rem 0.35rem; font-size: 1.08rem; font-weight: 900; }
.kid-browser-card__parent { margin: 0 1rem 0.65rem; font-size: 0.82rem; color: var(--muted); }
.kid-browser-card__pkg { margin: 0 1rem; font-size: 0.82rem; font-weight: 600; color: #0f766e; }
.kid-browser-card__foot { margin-top: 1rem; padding: 0.85rem 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.kid-browser-card__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }
.status-pill { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.45rem; border-radius: 6px; }
.status-pill--ok { background: #d1fae5; color: #065f46; }

/* ——— Calendar ——— */
.cal-shell { margin-bottom: 1.75rem; }
.playful-bar { background: linear-gradient(90deg, rgba(236, 253, 245, 0.95), rgba(250, 245, 255, 0.95)); border: 1px solid rgba(167, 243, 208, 0.45); border-radius: 16px; padding: 0.85rem 1rem; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.cal-nav-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-size: 1rem; text-decoration: none; color: inherit; font-weight: 800; }
.cal-nav-btn:hover { border-color: #5eead4; }
.cal-nav-title { flex: 1; text-align: center; }
.cal-month-label { display: block; font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em; }
.cal-grid-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 1rem; margin-bottom: 0.35rem; }
.cal-dow { text-align: center; font-size: 0.68rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { min-height: 76px; padding: 0.35rem 0.3rem; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, 0.85); text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s; }
.cal-cell:hover:not(.cal-cell--empty):not(.cal-cell--future) { border-color: rgba(45, 212, 191, 0.65); transform: scale(1.03); }
.cal-cell.is-selected { border-color: #0d9488; background: linear-gradient(160deg, #ecfdf5, #fff); box-shadow: 0 8px 22px rgba(13, 148, 136, 0.22); }
.cal-cell.is-today:not(.is-selected) { border-color: rgba(234, 179, 8, 0.55); }
.cal-cell.has-att { background: linear-gradient(160deg, rgba(236, 253, 245, 0.95), #fff); }
.cal-cell--empty { background: transparent; pointer-events: none; }
.cal-cell--future { opacity: 0.38; pointer-events: none; background: #f8fafc; }
.cal-daynum { font-weight: 900; font-size: 0.95rem; }
.cal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; max-width: 100%; }
.cal-dot { font-size: 0.72rem; line-height: 1; }

.att-day-head { margin-bottom: 1rem; }
.kid-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.kid-card { border-radius: 20px; padding: 1rem 1.05rem; background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%); border: 2px solid rgba(226, 232, 240, 0.95); box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06); display: flex; flex-direction: column; gap: 0.65rem; }
.kid-card--here { border-color: rgba(52, 211, 153, 0.65); background: linear-gradient(165deg, #ecfdf5 0%, #fff 55%); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.18); }
.kid-card__top { display: flex; align-items: center; gap: 0.75rem; }
.kid-card__avatar { font-size: 2.35rem; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(135deg, #ccfbf1, #e9d5ff); }
.kid-card__name { font-weight: 900; font-size: 1.02rem; }
.kid-card__no { font-size: 0.78rem; color: var(--muted); }
.kid-card__pkg { font-size: 0.82rem; color: #334155; line-height: 1.4; }
.kid-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; }
.kid-card__badge-here { font-weight: 800; font-size: 0.85rem; color: #047857; }

/* ——— Child edit package & Parents ——— */
.playful-card { border-radius: 18px; border: 1px solid rgba(226, 232, 240, 0.95); box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06); }
.pkg-assign-card { margin-top: 1.25rem; background: linear-gradient(180deg, #fffbeb 0%, #fff 40%); border-color: rgba(251, 191, 36, 0.35); }
.pkg-current { padding: 0.85rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(251, 191, 36, 0.4); margin-bottom: 1rem; }
.pkg-pill { display: inline-block; margin-left: 0.35rem; font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.45rem; border-radius: 6px; background: #fef3c7; color: #92400e; }

.parents-add-card { padding: 1.35rem 1.35rem 1.5rem; margin-bottom: 1.75rem; }
.parents-add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.85rem 1rem; }
.parents-add-field--wide { grid-column: span 2; }
.parents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.parent-person-card { border-radius: 20px; padding: 1.25rem 1.15rem; background: #fff; border: 1px solid rgba(226, 232, 240, 0.95); box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06); transition: transform 0.15s, box-shadow 0.15s; }
.parent-person-card:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(13, 148, 136, 0.12); }
.parent-person-card__avatar { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #c7d2fe, #fbcfe8); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; color: #4338ca; margin-bottom: 0.85rem; }

/* ——— Packages page ——— */
.pkg-page-layout { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .pkg-page-layout { grid-template-columns: 1fr; } }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.pkg-tile { border-radius: 20px; padding: 1.1rem 1.05rem 1rem; border: 2px solid transparent; background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%); box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05); display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s; }
.pkg-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08); }
.pkg-tile--hourly { border-color: rgba(56, 189, 248, 0.35); background: linear-gradient(165deg, #f0f9ff 0%, #fff 55%); }
.pkg-tile--monthly { border-color: rgba(52, 211, 153, 0.4); background: linear-gradient(165deg, #ecfdf5 0%, #fff 55%); }
.pkg-tile__badge { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.45rem; border-radius: 8px; background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(226, 232, 240, 0.9); }
.pkg-tile__name { margin: 0 0 0.65rem; font-size: 1.05rem; font-weight: 900; line-height: 1.25; letter-spacing: -0.02em; }
.pkg-tile__price-val { font-size: 1.65rem; font-weight: 900; letter-spacing: -0.03em; color: #0f172a; }

/* ——— Veli Dashboard ——— */
.veli-dash-cards { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.veli-mini-card { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-radius: 16px; background: #fff; border: 1px solid rgba(226, 232, 240, 0.95); box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05); flex: 1 1 160px; min-width: 140px; }
.veli-mini-card--accent { border-color: rgba(52, 211, 153, 0.5); background: linear-gradient(135deg, #ecfdf5, #fff); }
.veli-mini-card__val { font-size: 1.5rem; font-weight: 900; line-height: 1.1; color: #0f766e; }
.veli-cal-grid-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 0.35rem; }
.veli-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.veli-cal-cell { min-height: 64px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px solid rgba(226, 232, 240, 0.8); font-size: 0.7rem; }
.veli-cal-cell--ok { background: linear-gradient(180deg, #bbf7d0 0%, #d1fae5 100%); border-color: #4ade80; }
.veli-cal-daynum { font-weight: 800; font-size: 0.8rem; color: #0f172a; }
.veli-cal-emoji { font-size: 1.1rem; line-height: 1; }

/* ==========================================================================
   SİSTEMİN DAR KUTUSUNDAN KAÇIŞ / TAM EKRAN (JAILBREAK) KODU
   ========================================================================== */
.layout-simple:has(.creative-wrap),
.layout-simple--public:has(.creative-wrap) {
    padding: 0 !important;
    background: #FEF9F5 !important;
    display: block !important;
}

.layout-simple-inner:has(.creative-wrap),
.layout-simple-inner--public:has(.creative-wrap) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================================================
   AWWWARDS STYLE CREATIVE LAYOUT (LANDING PAGE - YENİ PASTEL TASARIM)
   ========================================================================== */
.creative-wrap {
    font-family: 'Manrope', sans-serif;
    background: #FEF9F5; /* Tatlı, sıcak pastel krem/bej rengi */
    color: #1C1917; 
    margin: 0;
    padding: 0;
    overflow-x: clip; 
}

/* 1. HERO BÖLÜMÜ (DEV YAZILAR) */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #FEF9F5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.c-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4vw;
    z-index: 100;
}

/* LOGO - PARILTILI VE TATLI FONT */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.c-logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #FF5E5B;
    text-decoration: none;
    letter-spacing: 1px;
    z-index: 101;
    filter: drop-shadow(0 4px 8px rgba(255, 94, 91, 0.2));
}

.c-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.c-nav a {
    color: #57534E; 
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.c-nav a:hover { color: #FF5E5B; }

.c-btn-login {
    border: 2px solid #FF5E5B;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    color: #FF5E5B !important;
    font-weight: 800;
    transition: all 0.3s;
}

.c-btn-login:hover {
    background: #FF5E5B;
    color: #FFF !important;
}

/* ==========================================================================
   YÜZEN ARKA PLAN SÜSLEMELERİ (PERİLER, KARTLAR, EMOJİLER)
   ========================================================================== */
.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5; /* Yazıların arkasında, arkaplanın önünde */
    overflow: hidden;
}

.decor {
    position: absolute;
    animation: floatAnim 6s ease-in-out infinite;
}

.d-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 800;
    color: #57534E;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #FFF;
}

.d-emoji {
    font-size: 3.5rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08));
}

.d-shape {
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
}

/* Konumlandırmalar ve Animasyon Gecikmeleri */
.d-left-1 { top: 25%; left: 8%; animation-delay: 0s; transform: rotate(-5deg); }
.d-left-2 { top: 60%; left: 12%; animation-delay: 1s; font-size: 4.5rem; }
.d-left-3 { top: 15%; left: 20%; animation-delay: 2s; font-size: 2.5rem; }
.d-shape-1 { top: 20%; left: 5%; width: 250px; height: 250px; background: #FFD2D2; animation-delay: 0.5s; }

.d-right-1 { top: 30%; right: 8%; animation-delay: 0.5s; transform: rotate(5deg); }
.d-right-2 { top: 55%; right: 15%; animation-delay: 1.5s; font-size: 4rem; }
.d-right-3 { top: 18%; right: 25%; animation-delay: 2.5s; font-size: 3rem; }
.d-shape-2 { bottom: 30%; right: 5%; width: 300px; height: 300px; background: #D6E4FF; animation-delay: 1s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rot, 0deg)); }
}

/* Kartların kendi rotasyonlarını tutması için */
.d-left-1, .d-right-1 { --rot: -5deg; }
.d-right-1 { --rot: 5deg; }


/* YAZI KUTUSU */
.hero-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    margin-top: -8vh;
}

.hero-subtitle {
    font-size: 1rem;
    color: #78716C; 
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-massive-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3.5rem, 10vw, 10rem);
    line-height: 1.15; 
    padding-bottom: 20px;
    margin: 0;
    color: #FF5E5B; 
    text-transform: uppercase;
}

/* 2. HAYVAN ÇETESİ (CSS ART) */
.animal-gang {
    position: absolute;
    bottom: -20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: -10px;
    z-index: 20;
    pointer-events: none;
}

.animal {
    position: relative;
    width: 140px;
    height: 180px;
    margin: 0 -15px;
}

.a-cat { z-index: 5; transform: scale(1); filter: drop-shadow(0 -10px 20px rgba(0,0,0,0.1)); }
.a-bear { z-index: 4; transform: scale(1.15) translateX(-40px); }
.a-fox { z-index: 6; transform: scale(0.9) translateX(40px); }
.a-rabbit { z-index: 3; transform: scale(1.05) translateX(90px); }
.a-tiny-bear { z-index: 7; transform: scale(0.7) translateX(-110px) translateY(40px); }

.a-cat .head { background: #3B82F6; }
.a-bear .head { background: #EAB308; }
.a-fox .head { background: #EC4899; }
.a-rabbit .head { background: #8B5CF6; }
.a-tiny-bear .head { background: #14B8A6; }

.a-cat .ear { background: #2563EB; }
.a-bear .ear { background: #CA8A04; }
.a-fox .ear { background: #DB2777; }
.a-rabbit .ear { background: #7C3AED; }
.a-tiny-bear .ear { background: #0D9488; }

.head {
    position: absolute;
    bottom: 0;
    width: 140px;
    height: 120px;
    border-radius: 60px 60px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 -20px 40px rgba(0,0,0,0.15); 
    transform-origin: center bottom;
}

.ear {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 0 0;
    z-index: -1;
}

.ear-l { left: 10px; transform: rotate(-20deg); }
.ear-r { right: 10px; transform: rotate(20deg); }

.bear-ear { width: 50px; height: 50px; top: 30px; border-radius: 50%; }
.fox-ear { height: 60px; border-radius: 10px 10px 0 0; top: 10px; }
.rabbit-ear { width: 30px; height: 100px; border-radius: 50% 50% 0 0; top: -40px; }

.eyes-container {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.eye {
    width: 34px;
    height: 34px;
    background: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.pupil {
    width: 16px;
    height: 16px;
    background: #0D0D0D;
    border-radius: 50%;
    box-shadow: inset -3px -3px 0 rgba(255,255,255,0.4); 
}

.nose {
    width: 14px;
    height: 10px;
    background: #0D0D0D;
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    margin-top: 15px;
}

/* 3. SOL SABİT / SAĞ KAYAN BÖLÜM */
.split-scroll-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    background: #FFFFFF; 
    color: #1C1917;
    position: relative;
}

.sticky-left {
    width: 45%;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 6rem 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FEF9F5; 
    border-right: 2px dashed #F3E8E0;
}

.sticky-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: #1C1917;
    text-transform: uppercase;
}

.sticky-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #57534E;
    max-width: 400px;
}

.scroll-indicator {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #A8A29E;
}

.scroll-line-anim {
    width: 60px;
    height: 2px;
    background: #E7E5E4;
    position: relative;
    overflow: hidden;
}

.scroll-line-anim::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 20px;
    height: 100%;
    background: #FF5E5B; 
    animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(60px); }
}

.scroll-right {
    width: 55%;
    padding: 8rem 6vw;
    background: #FFFFFF;
}

.info-block { margin-bottom: 8rem; }

.block-number {
    font-family: 'Anton', sans-serif;
    font-size: 4rem;
    color: #FEE2E2; 
    line-height: 1;
    margin-bottom: 1rem;
}

.block-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
    color: #1C1917;
    line-height: 1.2;
}

.block-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #57534E;
    margin-bottom: 1.5rem;
}

.c-btn-action {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1.2rem 2.5rem;
    background: #FF5E5B;
    color: #FFF;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 94, 91, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.c-btn-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 94, 91, 0.4);
}

.c-footer {
    border-top: 1px solid #E7E5E4;
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    color: #A8A29E;
    font-size: 0.9rem;
    font-weight: 800;
}

.c-footer a { color: #57534E; text-decoration: none; }
.c-footer a:hover { color: #FF5E5B; }

/* MOBİL & TABLET UYUMU (RESPONSIVE) */
@media (max-width: 1024px) {
    .split-scroll-container { flex-direction: column; }
    
    .sticky-left {
        width: 100%;
        height: auto;
        position: relative; /* Mobilde yapışmayı iptal et */
        padding: 4rem 5vw;
        border-right: none;
        border-bottom: 2px dashed #F3E8E0;
    }
    
    .scroll-right { width: 100%; padding: 4rem 5vw; }

    .c-header { flex-direction: column; gap: 1.5rem; text-align: center; }
    
    .hero-massive-title { font-size: 3.5rem; line-height: 1.2; padding-bottom: 15px;}
    
    .animal { transform: scale(0.6) !important; margin: 0 -20px; } 

    /* Mobilde dekorasyonlar yazıları kapatmasın diye soluklaştırılır ve bazıları gizlenir */
    .hero-decorations { opacity: 0.3; }
    .d-card { display: none; }
    .d-emoji { font-size: 2rem; }
}

/* ——— Tema seçici (admin / veli panel) ——— */
.topbar-start {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.theme-picker {
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-picker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.theme-picker__ico {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.92;
}

.theme-picker__btn:hover {
  color: var(--text);
}

.theme-picker__btn.is-active {
  background: linear-gradient(135deg, var(--primary), #0d9488);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.theme-picker__btn.is-active .theme-picker__ico {
  opacity: 1;
}

.theme-picker--stack {
  flex-direction: column;
  width: 100%;
  gap: 3px;
  border-radius: 14px;
}

.theme-picker--stack .theme-picker__btn {
  width: 100%;
  border-radius: 11px;
  justify-content: center;
}

.sidebar-footer .theme-picker {
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sidebar-footer .theme-picker__btn {
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-footer .theme-picker__btn:hover {
  color: #fff;
}

.sidebar-footer .theme-picker__btn.is-active {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.sidebar-footer .theme-picker__btn.is-active .theme-picker__ico {
  opacity: 1;
}

@media (max-width: 420px) {
  .theme-picker--compact .theme-picker__label {
    display: none;
  }

  .theme-picker--compact .theme-picker__btn {
    padding: 0.4rem 0.55rem;
    min-width: 48px;
  }
}

html[data-theme="dark"] .theme-picker {
  background: rgba(30, 41, 59, 0.92);
  border-color: #475569;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

html[data-theme="dark"] .theme-picker__btn {
  color: #94a3b8;
}

html[data-theme="dark"] .theme-picker__btn:hover {
  color: #e2e8f0;
}

html[data-theme="dark"] .theme-picker__btn.is-active {
  background: linear-gradient(135deg, #10b981, #0d9488);
  color: #fff;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.35);
}

html[data-theme="dark"] .sidebar-footer .theme-picker {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .sidebar-footer .theme-picker__btn {
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .sidebar-footer .theme-picker__btn.is-active {
  background: #f1f5f9;
  color: #0f766e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* ——— Karanlık tema (OS karanlığından bağımsız; varsayılan aydınlık) ——— */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1419;
  --bg-soft: #151c26;
  --card: #1c2634;
  --text: #e8edf4;
  --muted: #94a3b8;
  --border: #334155;
  --primary: #34d399;
  --primary-dark: #10b981;
  --danger: #f87171;
}

html[data-theme="dark"] .main-area {
  background: linear-gradient(180deg, #151c26 0%, #0f1419 45%, #0c1018 100%);
}

html[data-theme="dark"] .topbar {
  background: rgba(28, 38, 52, 0.92);
  border-bottom-color: rgba(51, 65, 85, 0.85);
}

html[data-theme="dark"] .page-title {
  color: var(--text);
}

html[data-theme="dark"] .topbar-user {
  background: var(--card);
  border-color: var(--border);
  color: var(--muted);
}

html[data-theme="dark"] .sidebar-toggle {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .alert-error {
  background: #450a0a;
  color: #fecaca;
  border-color: #7f1d1d;
}

html[data-theme="dark"] .alert-ok {
  background: #052e16;
  color: #a7f3d0;
  border-color: #14532d;
}

html[data-theme="dark"] .card {
  background: var(--card);
  border-color: rgba(51, 65, 85, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .btn-secondary {
  background: #334155;
  color: var(--text);
}

html[data-theme="dark"] .form-row label {
  color: #cbd5e1;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #151c26;
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .stat {
  color: #6ee7b7;
}

html[data-theme="dark"] .dash-panel {
  background: var(--card);
  border-color: rgba(51, 65, 85, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .dash-panel--warn {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, #292018 0%, var(--card) 55%);
}

html[data-theme="dark"] .dash-today-item {
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.35), rgba(15, 23, 42, 0.2));
  border-color: rgba(52, 211, 153, 0.25);
}

html[data-theme="dark"] .dash-quick-link {
  background: rgba(6, 78, 59, 0.45);
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.3);
}

html[data-theme="dark"] .dash-quick-link:hover {
  background: rgba(6, 78, 59, 0.65);
}

html[data-theme="dark"] .playful-intro {
  background: linear-gradient(110deg, rgba(6, 78, 59, 0.35), rgba(49, 46, 129, 0.25));
  border-color: rgba(52, 211, 153, 0.25);
}

html[data-theme="dark"] .kid-browser-card {
  background: var(--card);
  border-color: rgba(51, 65, 85, 0.95);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .kid-browser-card__hero {
  background: linear-gradient(135deg, #1e293b, #312e81, #422006);
}

html[data-theme="dark"] .kid-browser-card__no {
  background: rgba(30, 41, 59, 0.9);
  color: var(--muted);
}

html[data-theme="dark"] .status-pill--ok {
  background: rgba(6, 78, 59, 0.65);
  color: #a7f3d0;
}

html[data-theme="dark"] .present {
  background: rgba(6, 78, 59, 0.35);
}

html[data-theme="dark"] .auth-card {
  background: var(--card);
  border-color: rgba(51, 65, 85, 0.95);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .home-btns .ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .cal-nav-btn {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

html[data-theme="dark"] .cal-cell {
  background: rgba(30, 41, 59, 0.65);
}

html[data-theme="dark"] .cal-cell.has-att {
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.5), var(--card));
}

html[data-theme="dark"] .cal-cell.is-selected {
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.55), var(--card));
  border-color: #2dd4bf;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.3);
}

html[data-theme="dark"] .cal-cell--future {
  background: #1e293b;
}

html[data-theme="dark"] .dash-low-card {
  background: var(--card);
  border-color: rgba(245, 158, 11, 0.45);
}

html[data-theme="dark"] .parent-person-card {
  background: var(--card);
  border-color: rgba(51, 65, 85, 0.95);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .veli-mini-card {
  background: var(--card);
  border-color: rgba(51, 65, 85, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] th {
  color: var(--muted);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] td {
  border-bottom-color: var(--border);
}

/* ——— Haftalık rezervasyon ——— */
.rs-intro { margin-bottom: 1rem; }
.rs-muted { color: var(--muted); font-size: 0.92rem; }
.rs-toolbar { margin-bottom: 1rem; }
.rs-month-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
}
.rs-month-line-mid {
  text-align: center;
  min-width: 0;
}
.rs-month-line-title {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.rs-month-line-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.rs-month-link {
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
  white-space: nowrap;
}
.rs-month-link:hover {
  text-decoration: underline;
}
.rs-period-card {
  margin-bottom: 1.15rem;
  padding: 1rem 1.15rem;
}
.rs-period-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #334155;
}
.rs-period-input {
  max-width: none;
  width: 100%;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 2px solid rgba(226, 232, 240, 0.95);
}
.rs-period-hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.rs-session {
  margin-bottom: 1.75rem;
}
.rs-session-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.rs-session-time {
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.42rem 0.85rem;
  border-radius: 14px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.rs-session-time--peach {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  color: #9a3412;
  border: 1px solid rgba(251, 146, 60, 0.45);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}
.rs-session-time--blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e3a8a;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}
.rs-session-period {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  color: var(--text);
  text-align: right;
  flex: 1;
  min-width: 8rem;
  line-height: 1.35;
}
.rs-week-scroll {
  overflow-x: auto;
  margin-bottom: 0.25rem;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.rs-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(148px, 1fr));
  gap: 0.65rem;
  align-items: start;
  min-width: min(100%, 1100px);
}
.rs-week-grid--6 {
  grid-template-columns: repeat(6, minmax(128px, 1fr));
  min-width: min(100%, 980px);
}
.rs-day {
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.rs-day-head {
  margin: 0;
  padding: 0.5rem 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  text-align: center;
}
.rs-day-name {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #fff;
  line-height: 1.2;
}
.rs-day-age {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  border-radius: 10px;
  line-height: 1.2;
}
.rs-day-age--young {
  background: #fbcfe8;
  color: #831843;
  border: 1px solid rgba(244, 114, 182, 0.55);
}
.rs-day-age--older {
  background: #e9d5ff;
  color: #581c87;
  border: 1px solid rgba(192, 132, 252, 0.55);
}
.rs-day--1 .rs-day-head { background: #2563eb; }
.rs-day--2 .rs-day-head { background: #22c55e; }
.rs-day--3 .rs-day-head { background: #ca8a04; }
.rs-day--4 .rs-day-head { background: #9333ea; }
.rs-day--6 .rs-day-head { background: #0d9488; }
.rs-day--7 .rs-day-head { background: #ea580c; }
.rs-day--1 { border-color: rgba(37, 99, 235, 0.45); }
.rs-day--2 { border-color: rgba(34, 197, 94, 0.45); }
.rs-day--3 { border-color: rgba(202, 138, 4, 0.55); }
.rs-day--4 { border-color: rgba(147, 51, 234, 0.45); }
.rs-day--6 { border-color: rgba(13, 148, 136, 0.45); }
.rs-day--7 { border-color: rgba(234, 88, 12, 0.45); }
.rs-slot-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.4rem 0.55rem;
}
.rs-slot {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.38rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.45);
  font-size: 0.78rem;
}
.rs-slot:last-child {
  border-bottom: none;
}
.rs-slot-num {
  flex-shrink: 0;
  width: 1.15rem;
  font-weight: 800;
  color: var(--muted);
  line-height: 1.5;
  padding-top: 0.35rem;
  font-size: 0.72rem;
}
.rs-slot-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.rs-slot-visual {
  min-height: 2.75rem;
}
.rs-slot-placeholder {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(214, 188, 164, 0.65);
  background: linear-gradient(135deg, #faf5f0 0%, #f5ebe0 55%, #faf8f5 100%);
  color: #78716c;
  font-size: 0.72rem;
  font-weight: 600;
}
.rs-slot-ph-ico {
  opacity: 0.55;
  font-size: 0.85rem;
}
.rs-slot-ph-txt {
  letter-spacing: 0.02em;
}
.rs-slot-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem 0.42rem 0.42rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 253, 245, 0.88) 45%, rgba(224, 242, 254, 0.55) 100%);
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow:
    0 2px 8px rgba(13, 148, 136, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.rs-slot--filled .rs-slot-card {
  animation: rs-pop 0.35s ease;
}
@keyframes rs-pop {
  0% { transform: scale(0.96); opacity: 0.85; }
  70% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}
.rs-slot-avatar {
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  background: linear-gradient(145deg, #ccfbf1 0%, #99f6e4 40%, #5eead4 100%);
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.22), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.rs-slot-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.rs-slot-name {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rs-slot-no {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f766e;
  background: rgba(204, 251, 241, 0.95);
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.45);
}
.rs-day--1 .rs-slot-card { border-color: rgba(37, 99, 235, 0.35); }
.rs-day--2 .rs-slot-card { border-color: rgba(34, 197, 94, 0.38); }
.rs-day--3 .rs-slot-card { border-color: rgba(202, 138, 4, 0.42); }
.rs-day--4 .rs-slot-card { border-color: rgba(147, 51, 234, 0.35); }
.rs-day--5 .rs-slot-card { border-color: rgba(219, 39, 119, 0.35); }
.rs-day--6 .rs-slot-card { border-color: rgba(13, 148, 136, 0.4); }
.rs-day--7 .rs-slot-card { border-color: rgba(234, 88, 12, 0.38); }
.rs-slot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.rs-slot .btn-sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}
.rs-slot-clear {
  border: none;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #b91c1c;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.12);
  transition: transform 0.12s, box-shadow 0.12s;
}
.rs-slot-clear:hover {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  transform: scale(1.05);
}
.rs-notes {
  position: relative;
  overflow: hidden;
}
.rs-notes-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
  color: var(--muted);
}
.rs-notes-input {
  max-width: none;
  width: 100%;
  min-height: 100px;
  border-style: dashed;
  resize: vertical;
}
.rs-notes-deco {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 1.15rem;
  opacity: 0.65;
}
.rs-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Modal — öğrenci seçici */
.rs-modal {
  border: none;
  border-radius: 22px;
  padding: 0;
  max-width: min(96vw, 440px);
  width: 100%;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.rs-modal::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
}
.rs-modal-inner {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 640px);
}
.rs-modal-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 1.15rem 1.15rem 0.85rem;
  background: linear-gradient(125deg, rgba(236, 253, 245, 0.85) 0%, rgba(224, 242, 254, 0.55) 55%, rgba(250, 245, 255, 0.75) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.rs-modal-head-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, rgba(236, 253, 245, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
}
.rs-modal-head-text {
  min-width: 0;
}
.rs-modal-title {
  margin: 0 0 0.28rem;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}
.rs-modal-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.rs-modal-x {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 11px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: background 0.15s, color 0.15s;
}
.rs-modal-x:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.rs-modal-search-wrap {
  position: relative;
  margin: 0.85rem 1.15rem 0.65rem;
}
.rs-modal-search-ico {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.55;
  pointer-events: none;
}
.rs-modal-search {
  width: 100%;
  max-width: none;
  padding: 0.62rem 0.85rem 0.62rem 2.35rem;
  border-radius: 14px;
  border: 2px solid rgba(226, 232, 240, 0.95);
  font-size: 0.92rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rs-modal-search:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}
.rs-modal-list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0.65rem 0.85rem;
  margin: 0 0.5rem;
}
.rs-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.rs-modal-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s, background 0.12s;
}
.rs-modal-row:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}
.rs-modal-row.is-selected {
  border-color: rgba(13, 148, 136, 0.55);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(240, 253, 250, 0.85));
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.18);
}
.rs-modal-row.is-selected .rs-modal-row-check {
  opacity: 1;
  transform: scale(1);
}
.rs-modal-row--empty {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(248, 250, 252, 0.95);
}
.rs-modal-row--empty:hover {
  border-color: rgba(148, 163, 184, 0.65);
}
.rs-modal-row-avatar {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.15);
}
.rs-modal-row-avatar--empty {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--muted);
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}
.rs-modal-row-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.rs-modal-row-name {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.rs-modal-row-no {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0d9488;
  background: rgba(204, 251, 241, 0.75);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}
.rs-modal-row-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.rs-modal-row-check {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #059669, #0d9488);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}
.rs-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.15rem 1.15rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.65);
}
.rs-modal-btn-secondary {
  border-radius: 12px;
  padding: 0.52rem 1.1rem;
  box-shadow: none;
}
.rs-modal-btn-primary {
  border-radius: 12px;
  padding: 0.52rem 1.35rem;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

@media (max-width: 1100px) {
  .rs-week-grid--6 {
    grid-template-columns: repeat(6, minmax(108px, 1fr));
  }
}

html[data-theme="dark"] .rs-month-link {
  color: #5eead4;
}
html[data-theme="dark"] .rs-day {
  background: var(--card);
  border-color: rgba(51, 65, 85, 0.85);
}
html[data-theme="dark"] .rs-period-input {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(51, 65, 85, 0.95);
  color: var(--text);
}
html[data-theme="dark"] .rs-session-period {
  color: rgba(248, 250, 252, 0.92);
}
html[data-theme="dark"] .rs-slot-placeholder {
  background: rgba(30, 41, 59, 0.45);
  border-color: rgba(71, 85, 105, 0.55);
}
html[data-theme="dark"] .rs-slot-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 118, 110, 0.25));
  border-color: rgba(45, 212, 191, 0.28);
}
html[data-theme="dark"] .rs-slot-name {
  color: rgba(248, 250, 252, 0.95);
}
html[data-theme="dark"] .rs-modal {
  background: linear-gradient(180deg, var(--card) 0%, #0f172a 100%);
}
html[data-theme="dark"] .rs-modal-head {
  background: linear-gradient(125deg, rgba(15, 118, 110, 0.35) 0%, rgba(30, 41, 59, 0.95) 100%);
  border-bottom-color: rgba(51, 65, 85, 0.85);
}
html[data-theme="dark"] .rs-modal-search {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.95);
  color: var(--text);
}
html[data-theme="dark"] .rs-modal-row {
  background: rgba(30, 41, 59, 0.65);
}
html[data-theme="dark"] .rs-modal-row.is-selected {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.55), rgba(30, 41, 59, 0.85));
}
html[data-theme="dark"] .rs-modal-actions {
  background: rgba(15, 23, 42, 0.65);
  border-top-color: rgba(51, 65, 85, 0.85);
}