/* ==========================================================================
   Şerife Akküçük Akademi — Design System
   Tek kaynak: renk, tipografi, layout, bileşen stilleri
   ========================================================================== */

:root {
  /* Marka renkleri (RGB kanalları — Tailwind opacity desteği) */
  --primary: 116 173 134;
  --primary-dark: 76 116 89;
  --primary-light: 116 173 134;
  --accent: 76 116 89;
  --accent-dark: 76 116 89;

  /* Nötr & yüzey */
  --ink: 107 114 128;
  --ink-muted: 107 114 128;
  --canvas: 255 255 255;
  --surface: 255 255 255;
  --surface-elevated: 255 255 255;
  --border: 229 231 235;
  --border-soft: 243 244 246;

  /* Tipografi ölçeği */
  --font-sans: 'Outfit', sans-serif;
  --text-xs: 0.6875rem;   /* 11px @ 16px base → ~10px @ 14px */
  --text-sm: 0.8125rem;   /* 13px */
  --text-base: 0.875rem;  /* 14px */
  --text-md: 1rem;        /* 15px @ md */
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Radius & gölge */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-2xl: 0px;
  --radius-pill: 0px;

  --shadow-sm: 0 2px 8px rgb(0 0 0 / 0.04);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 16px 40px rgb(0 0 0 / 0.08);
  --shadow-overlay: 0 16px 40px rgb(0 0 0 / 0.08);
  --shadow-brand: 0 8px 24px rgb(0 0 0 / 0.06);

  /* Layout & katman */
  --sidebar-w: 18rem;
  --sidebar-w-collapsed: 6rem;
  --header-h-mobile: 4rem;
  --mobile-nav-h: 4.25rem;
  --mobile-nav-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  --content-pad-x: 1rem;
  --content-pad-y: 1rem;
  --content-pad-bottom-mobile: 6.5rem;
  --content-pad-bottom-desktop: 2.5rem;

  --z-header: 30;
  --z-mobile-nav: 50;
  --z-overlay: 60;
}

@media (min-width: 768px) {
  :root {
    --content-pad-x: 2.5rem;
    --content-pad-y: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Temel
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: rgb(var(--ink));
  background-color: #fff;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

#root {
  min-height: 100vh;
}

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

a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Uygulama kabuğu (App layout)
   -------------------------------------------------------------------------- */

.app-shell {
  display: flex;
  min-height: 100vh;
  background-color: #fff;
  color: rgb(var(--ink));
  font-family: var(--font-sans);
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  min-width: 0;
}

.app-header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h-mobile);
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) 0.5rem
    max(0.75rem, env(safe-area-inset-left, 0px));
  background: rgb(var(--surface-elevated));
  border-bottom: 1px solid rgb(var(--border-soft));
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .app-header-mobile {
    display: none;
  }
}

.app-header-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.5rem;
  margin-left: -0.25rem;
  color: rgb(var(--primary));
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-header-back:hover {
  background-color: rgb(var(--canvas));
}

.app-header-back-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgb(var(--ink) / 0.5);
}

.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--content-pad-y) var(--content-pad-x);
  padding-bottom: var(--content-pad-bottom-mobile);
  overflow-y: auto;
}

.app-content--no-scroll {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .app-content {
    padding-bottom: var(--content-pad-bottom-desktop);
  }
}

.app-page-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.app-page-header--compact {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .app-page-header {
    display: flex;
  }
}

.app-page-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgb(var(--primary));
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.app-page-subtitle {
  margin: 0.25rem 0 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgb(var(--ink) / 0.6);
}

.app-page-title-mobile {
  margin: 0 0 1.5rem;
  font-size: var(--text-xl);
  font-weight: 700;
  color: rgb(var(--primary));
}

@media (min-width: 768px) {
  .app-page-title-mobile {
    display: none;
  }
}

.app-date-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgb(var(--primary));
  background: rgb(var(--surface-elevated));
  border: 1px solid rgb(var(--border-soft));
  border-radius: 0;
  box-shadow: var(--shadow-sm);
}

.app-date-badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0;
  background: rgb(var(--accent));
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Mobil alt navigasyon */
.app-mobile-nav {
  position: fixed;
  bottom: var(--mobile-nav-bottom);
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  height: var(--mobile-nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 0 1rem;
  background: rgb(var(--surface-elevated));
  border: 1px solid rgb(var(--border-soft) / 0.8);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-mobile-nav);
}

@media (min-width: 768px) {
  .app-mobile-nav {
    display: none;
  }
}

.app-mobile-nav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgb(var(--ink) / 0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.app-mobile-nav__btn:hover {
  color: rgb(var(--primary));
}

.app-mobile-nav__btn-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.app-mobile-nav__btn:hover .app-mobile-nav__btn-icon {
  background: rgb(var(--canvas));
}

.app-mobile-nav__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgb(var(--ink) / 0.5);
}

/* Misafir katalog — giriş / kayıt FAB */
.app-mobile-nav--guest {
  justify-content: space-evenly;
  gap: 0;
  padding: 0 0.5rem;
}

.app-mobile-nav--catalog {
  gap: 0;
  justify-content: space-around;
  padding: 0 0.25rem;
}

.app-mobile-nav--catalog .app-mobile-nav__btn {
  flex: 1;
  max-width: 5.5rem;
}

.app-mobile-nav--catalog .app-mobile-nav__btn-icon {
  width: 2.75rem;
  height: 2.75rem;
}

.app-mobile-nav--guest .app-mobile-nav__fab {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgb(var(--primary));
  border: 3px solid rgb(var(--canvas));
  border-radius: 0;
  box-shadow: var(--shadow-brand);
  transform: translateY(-1.25rem);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.app-mobile-nav--guest .app-mobile-nav__fab:hover {
  background: rgb(var(--primary-dark));
}

.app-mobile-nav--guest .app-mobile-nav__fab:active {
  transform: translateY(-1.25rem) scale(0.95);
}

/* --------------------------------------------------------------------------
   Auth (giriş / kayıt)
   -------------------------------------------------------------------------- */

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(2.5rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background: rgb(var(--canvas));
  font-family: var(--font-sans);
}

.auth-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 64rem;
  min-height: 40rem;
  background: rgb(var(--surface-elevated));
  border: 1px solid rgb(var(--border-soft));
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .auth-card {
    flex-direction: row;
    min-height: 650px;
  }
}

.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  order: 2;
}

@media (min-width: 768px) {
  .auth-form-panel {
    padding: 3rem;
    order: 1;
  }
}

.auth-visual-panel {
  display: none;
  flex: 1;
  position: relative;
  overflow: hidden;
  order: 1;
}

@media (min-width: 768px) {
  .auth-visual-panel {
    display: block;
    order: 2;
  }
}

.auth-visual-panel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-visual-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3rem;
}

.auth-logo-glass {
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 0;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.auth-heading {
  margin: 0 0 0.5rem;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgb(var(--primary));
  letter-spacing: -0.02em;
  text-align: center;
}

@media (min-width: 768px) {
  .auth-heading {
    font-size: var(--text-3xl);
    text-align: left;
  }
}

.auth-subheading {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgb(var(--ink) / 0.6);
  text-align: center;
}

@media (min-width: 768px) {
  .auth-subheading {
    text-align: left;
  }
}

.auth-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .auth-mobile-logo {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover:not(:disabled) {
  box-shadow: var(--shadow-md);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--primary) / 0.22);
}

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

.btn--block {
  width: 100%;
}

.btn--primary {
  color: #fff;
  background-color: rgb(var(--primary));
  border-color: rgb(var(--primary));
}

.btn--primary:hover:not(:disabled) {
  color: #fff;
  background-color: rgb(var(--primary-dark));
  border-color: rgb(var(--primary-dark));
}

.btn--secondary {
  color: rgb(var(--primary-dark));
  background-color: #fff;
  border-color: rgb(var(--accent));
}

.btn--secondary:hover:not(:disabled) {
  color: #fff;
  background-color: rgb(var(--accent-dark));
  border-color: rgb(var(--accent-dark));
}

.btn--outline {
  color: rgb(var(--primary-dark));
  background: #fff;
  border-color: rgb(var(--primary));
}

.btn--outline:hover:not(:disabled) {
  color: #fff;
  background-color: rgb(var(--primary));
  border-color: rgb(var(--primary));
}

/* --------------------------------------------------------------------------
   Form alanları
   -------------------------------------------------------------------------- */

.form-field {
  width: 100%;
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgb(var(--ink));
}

.form-control-wrap {
  position: relative;
}

.form-control-wrap:focus-within .form-icon {
  color: rgb(var(--primary));
}

.form-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: rgb(var(--accent));
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
  color: rgb(var(--ink));
  background: #fff;
  border: 1px solid rgb(var(--border));
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input--with-icon {
  padding-left: 2.5rem;
}

.form-input::placeholder {
  color: rgb(var(--ink-muted) / 0.65);
}

.form-input:hover {
  border-color: rgb(var(--accent) / 0.4);
}

.form-input:focus {
  outline: none;
  border-color: rgb(var(--accent));
  box-shadow: 0 0 0 3px rgb(var(--accent) / 0.15);
}

.form-error {
  margin: 0.375rem 0 0 0.25rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   Sidebar — scrollbar gizli, modern panel (öğrenci + yönetici)
   -------------------------------------------------------------------------- */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgb(0 0 0 / 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .sidebar-backdrop {
    display: none;
  }
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: rgb(var(--surface-elevated));
  border-right: 1px solid rgb(var(--border) / 0.7);
  box-shadow: none;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .sidebar {
    position: sticky;
    z-index: 40;
    transform: none !important;
  }
}

.sidebar--open {
  width: min(var(--sidebar-w), 100vw);
  max-width: 100vw;
  transform: translateX(0);
}

.sidebar--closed-mobile {
  width: min(var(--sidebar-w), 100vw);
  transform: translateX(-100%);
}

@media (min-width: 768px) {
  .sidebar--closed-mobile {
    transform: translateX(0);
  }
}

.sidebar--expanded {
  width: var(--sidebar-w);
}

.sidebar--collapsed {
  width: var(--sidebar-w-collapsed);
}

.sidebar__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid rgb(var(--border) / 0.5);
}

@media (min-width: 768px) {
  .sidebar--collapsed .sidebar__header {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sidebar__logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar__brand-text {
  min-width: 0;
  line-height: 1.2;
}

.sidebar__title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgb(var(--primary));
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__subtitle {
  margin: 0.125rem 0 0;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgb(var(--ink) / 0.45);
}

.sidebar__panel-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.375rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
}

.sidebar__panel-badge--student {
  color: rgb(var(--primary-dark));
  background: rgb(var(--primary) / 0.12);
}

.sidebar__panel-badge--admin {
  color: rgb(var(--accent-dark));
  background: rgb(var(--accent) / 0.14);
}

.sidebar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: rgb(var(--primary));
  background: rgb(var(--surface-elevated));
  border: 1px solid rgb(var(--border));
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sidebar__toggle:hover {
  background: rgb(var(--canvas));
}

@media (min-width: 768px) {
  .sidebar__toggle {
    display: flex;
    position: absolute;
    right: -0.875rem;
    top: 1.75rem;
  }
}

.sidebar__close {
  display: flex;
  padding: 0.375rem;
  color: rgb(var(--ink) / 0.5);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sidebar__close:hover {
  color: rgb(var(--primary));
  background: rgb(var(--primary) / 0.08);
}

@media (min-width: 768px) {
  .sidebar__close {
    display: none;
  }
}

/* Kaydırma alanı — scrollbar yok */
.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 0.625rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-nav__section {
  margin-bottom: 1.25rem;
}

.sidebar-nav__section:last-child {
  margin-bottom: 0.5rem;
}

.sidebar-nav__label {
  margin: 0 0 0.5rem;
  padding: 0 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.35);
}

.sidebar--collapsed .sidebar-nav__label,
.sidebar--collapsed .sidebar-nav__label-wrap {
  display: none;
}

.sidebar-nav__guest {
  padding: 1.5rem 0.75rem;
  text-align: center;
}

.sidebar-nav__guest-icon {
  margin: 0 auto 1rem;
  color: rgb(var(--primary) / 0.35);
}

.sidebar-nav__guest-text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgb(var(--ink) / 0.55);
}

.sidebar-nav__submenu {
  margin: 0.25rem 0 0.5rem 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgb(var(--border) / 0.8);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.125rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgb(var(--ink) / 0.65);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-item:hover {
  color: rgb(var(--primary));
  background: rgb(var(--primary) / 0.06);
}

.nav-item--active {
  font-weight: 600;
  color: rgb(var(--primary));
  background: rgb(var(--primary) / 0.12);
}

.sidebar--collapsed .nav-item {
  justify-content: center;
  padding: 0.625rem;
}

.sidebar--collapsed .nav-item span:not(.nav-item__badge) {
  display: none;
}

.nav-item__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0;
  transition: background-color 0.18s ease;
}

.nav-item--active .nav-item__icon-wrap {
  background: rgb(var(--primary) / 0.18);
}

.nav-item__icon {
  color: rgb(var(--accent));
  transition: color 0.18s ease;
}

.nav-item:hover .nav-item__icon,
.nav-item--active .nav-item__icon {
  color: rgb(var(--primary));
}

.nav-item__label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item__chevron {
  flex-shrink: 0;
  color: rgb(var(--ink) / 0.35);
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item__chevron--open {
  transform: rotate(180deg);
  color: rgb(var(--primary));
}

.nav-item__badge {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: 0.5rem;
  height: 0.5rem;
  background: #ef4444;
  border: 2px solid rgb(var(--surface-elevated));
  border-radius: 0;
}

.sidebar--collapsed .nav-item__icon-wrap {
  position: relative;
}

.nav-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4375rem 0.625rem;
  margin-bottom: 0.125rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgb(var(--ink) / 0.55);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-child:hover {
  color: rgb(var(--primary));
  background: rgb(var(--primary) / 0.06);
}

.nav-child--active {
  font-weight: 600;
  color: rgb(var(--primary));
  background: rgb(var(--primary) / 0.1);
}

.sidebar__footer {
  flex-shrink: 0;
  padding: 0.75rem;
  border-top: 1px solid rgb(var(--border) / 0.5);
  background: rgb(var(--surface) / 0.5);
}

.sidebar__profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar__profile:hover {
  background: rgb(var(--surface-elevated));
  border-color: rgb(var(--border) / 0.6);
  box-shadow: var(--shadow-sm);
}

.sidebar__profile--active {
  background: rgb(var(--surface-elevated));
  border-color: rgb(var(--primary) / 0.25);
  box-shadow: var(--shadow-sm);
}

.sidebar--collapsed .sidebar__profile {
  justify-content: center;
  padding: 0.5rem;
}

.sidebar__avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0;
  border: 2px solid rgb(var(--border) / 0.6);
  overflow: hidden;
  background: rgb(var(--canvas));
}

.sidebar__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar__profile-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.sidebar--collapsed .sidebar__profile-info {
  display: none;
}

.sidebar__profile-name {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgb(var(--ink));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__profile-meta {
  margin: 0.125rem 0 0;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgb(var(--accent));
}

.sidebar__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(220 38 38 / 0.85);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (min-width: 768px) {
  .sidebar__logout {
    justify-content: flex-start;
    padding-left: 0.75rem;
  }
}

.sidebar__logout:hover {
  color: #dc2626;
  background: #fef2f2;
}

.sidebar--collapsed .sidebar__logout span {
  display: none;
}

.sidebar__auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem;
  margin-bottom: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.sidebar__auth-btn:last-child {
  margin-bottom: 0;
}

.sidebar__auth-btn:active {
  transform: scale(0.98);
}

.sidebar__auth-btn--primary {
  color: #fff;
  background: rgb(var(--primary));
  border-color: rgb(var(--primary));
}

.sidebar__auth-btn--primary:hover {
  color: #fff;
  background: rgb(var(--primary-dark));
  border-color: rgb(var(--primary-dark));
}

.sidebar__auth-btn--secondary {
  color: rgb(var(--primary-dark));
  background: #fff;
  border-color: rgb(var(--accent));
}

.sidebar__auth-btn--secondary:hover {
  color: #fff;
  background: rgb(var(--accent-dark));
  border-color: rgb(var(--accent-dark));
}

/* --------------------------------------------------------------------------
   Kart & panel
   -------------------------------------------------------------------------- */

.card {
  background: rgb(var(--surface-elevated));
  border: 1px solid rgb(var(--border-soft));
  border-radius: 0;
  box-shadow: var(--shadow-sm);
}

.card--hover {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card--hover:hover {
  border-color: rgb(var(--primary) / 0.2);
  box-shadow: var(--shadow-md);
}

.badge-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgb(var(--primary));
  background: rgb(var(--primary) / 0.1);
  border-radius: 0;
}

.badge-accent {
  color: rgb(var(--accent));
  background: rgb(var(--accent) / 0.1);
}

/* --------------------------------------------------------------------------
   Eğitim kataloğu — sağdan kategori paneli
   -------------------------------------------------------------------------- */

.catalog-cat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgb(0 0 0 / 0);
  pointer-events: none;
  transition: background 0.28s ease;
}

.catalog-cat-backdrop--open {
  background: rgb(0 0 0 / 0.35);
  pointer-events: auto;
}

.catalog-category-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  width: min(18.5rem, 88vw);
  display: flex;
  flex-direction: column;
  background: rgb(var(--surface-elevated));
  border-left: 1px solid rgb(var(--border) / 0.7);
  box-shadow: -8px 0 32px rgb(0 0 0 / 0.08);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.catalog-category-panel--open {
  transform: translateX(0);
}

.catalog-category-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgb(var(--border) / 0.5);
}

.catalog-category-panel__title {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 700;
  color: rgb(var(--primary));
}

.catalog-category-panel__close {
  display: flex;
  padding: 0.375rem;
  color: rgb(var(--ink) / 0.5);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.catalog-category-panel__close:hover {
  color: rgb(var(--primary));
  background: rgb(var(--primary) / 0.08);
}

.catalog-category-panel__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog-category-panel__nav::-webkit-scrollbar {
  display: none;
}

.catalog-category-panel__empty {
  margin: 1rem 0.5rem;
  font-size: var(--text-sm);
  color: rgb(var(--ink) / 0.5);
  text-align: center;
}

.catalog-category-panel__item {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.125rem;
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: left;
  color: rgb(var(--ink) / 0.75);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.catalog-category-panel__item:hover {
  color: rgb(var(--primary));
  background: rgb(var(--primary) / 0.06);
}

.catalog-category-panel__item--child {
  padding-left: 1.5rem;
  font-size: var(--text-xs);
}

.catalog-category-panel__item--active {
  font-weight: 600;
  color: rgb(var(--primary));
  background: rgb(var(--primary) / 0.12);
}

/* --------------------------------------------------------------------------
   wmmill.com — sol menü en altı, ortada (kaydırınca hareket etmez)
   -------------------------------------------------------------------------- */

.sidebar__wmmill {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.875rem 1rem;
  padding-bottom: max(0.875rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(var(--border) / 0.45);
  background: rgb(var(--surface) / 0.35);
}

.sidebar__wmmill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.42;
  transition: opacity 0.2s ease;
}

.sidebar__wmmill-link:hover {
  opacity: 0.72;
}

.sidebar__wmmill-img {
  display: block;
  height: 18px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
}

.sidebar--collapsed .sidebar__wmmill {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.sidebar--collapsed .sidebar__wmmill-img {
  max-width: 48px;
  height: 16px;
}

/* Mağaza — 3 sütun grid */
.catalog-grid {
  width: 100%;
}

/* PDF ders okuyucu */
.pdf-viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: rgb(var(--canvas));
  color: rgb(var(--ink));
}

.pdf-viewer__toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  background: rgb(var(--surface-elevated));
  border-bottom: 1px solid rgb(var(--border) / 0.55);
  box-shadow: 0 1px 0 rgb(var(--ink) / 0.04);
}

.pdf-viewer__toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pdf-viewer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.pdf-viewer__btn:hover:not(:disabled) {
  background: rgb(var(--primary) / 0.08);
  color: rgb(var(--primary));
}

.pdf-viewer__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdf-viewer__btn--text {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.pdf-viewer__btn--download {
  color: rgb(var(--primary));
}

.pdf-viewer__btn--download:hover:not(:disabled) {
  background: rgb(var(--primary) / 0.1);
}

.pdf-viewer__download-error {
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
}

.pdf-viewer__page-jump {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.pdf-viewer__page-input {
  width: 2.75rem;
  padding: 0.3rem 0.4rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(var(--ink));
  background: rgb(var(--canvas));
  border: 1px solid rgb(var(--border) / 0.8);
  border-radius: 0;
  outline: none;
}

.pdf-viewer__page-input:focus {
  border-color: rgb(var(--accent) / 0.8);
}

.pdf-viewer__page-total {
  opacity: 0.55;
  white-space: nowrap;
}

.pdf-viewer__zoom-label {
  min-width: 2.75rem;
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.pdf-viewer__scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, rgb(var(--canvas)) 0%, rgb(var(--surface) / 0.5) 100%);
}

.pdf-viewer__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 12px 32px;
  min-height: min-content;
}

.pdf-viewer__page {
  flex-shrink: 0;
  background: #fff;
  border-radius: 0;
  box-shadow:
    0 1px 2px rgb(var(--ink) / 0.06),
    0 4px 16px rgb(var(--ink) / 0.08);
  line-height: 0;
}

.pdf-viewer__canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.pdf-viewer__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 2rem;
  font-size: 0.875rem;
  color: rgb(var(--ink) / 0.5);
}

.pdf-viewer__state--error {
  color: #f87171;
}

/* Ders izleme ekranı */
.course-watch {
  --cw-dock-offset: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.course-watch__mobile {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.course-watch__player {
  position: relative;
  width: 100%;
  background: #000;
}

.course-watch__player--video {
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  background: #000;
}

.course-watch__player--pdf {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgb(var(--canvas));
}

.course-watch__player--audio {
  flex: 1;
  min-height: 0;
}

.course-watch__player--quiz {
  flex-shrink: 0;
  min-height: 3.5rem;
  background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
}

@media (min-width: 768px) {
  .course-watch__player--pdf {
    flex: 1;
    min-height: 320px;
    height: auto;
  }

  .course-watch__player--quiz {
    min-height: 12rem;
  }

  .course-watch__player--audio {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    min-height: 280px;
  }
}

.course-watch__player-state {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: rgb(var(--ink));
}

.course-watch__quiz-hero {
  width: 100%;
  height: 100%;
  min-height: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.course-watch__quiz-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

/* Mobil alt dock */
.course-watch-dock {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.course-watch-dock__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.4rem 0.5rem;
  background: rgb(var(--surface-elevated) / 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(var(--border) / 0.45);
  border-radius: 0;
  box-shadow:
    0 2px 8px rgb(var(--ink) / 0.06),
    0 16px 40px rgb(var(--ink) / 0.14);
}

.course-watch-dock__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgb(var(--ink) / 0.65);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.course-watch-dock__icon:active:not(:disabled) {
  transform: scale(0.94);
}

.course-watch-dock__icon:hover:not(:disabled) {
  background: rgb(var(--primary) / 0.08);
  color: rgb(var(--primary));
}

.course-watch-dock__icon--off {
  color: rgb(var(--ink) / 0.22);
  cursor: not-allowed;
}

.course-watch-dock__icon--off:hover {
  background: transparent;
  color: rgb(var(--ink) / 0.22);
}

.course-watch-dock__icon--accent {
  color: rgb(var(--accent));
}

.course-watch-dock__icon--accent:hover:not(:disabled) {
  background: rgb(var(--accent) / 0.12);
  color: rgb(var(--accent));
}

.course-watch-dock__icon--done {
  background: rgb(var(--accent) / 0.14);
  color: rgb(var(--accent));
}

.course-watch-dock__menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: none;
  border-radius: 0;
  background: rgb(var(--primary) / 0.08);
  color: rgb(var(--primary));
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.course-watch-dock__menu:hover {
  background: rgb(var(--primary) / 0.14);
}

.course-watch-dock__menu--open {
  background: rgb(var(--primary));
  color: #fff;
  box-shadow: 0 4px 14px rgb(var(--primary) / 0.35);
}

.course-watch-dock__menu--open:hover {
  background: rgb(var(--primary) / 0.92);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Scrollbar
   -------------------------------------------------------------------------- */

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--ink-muted) / 0.35) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgb(var(--canvas));
  border-radius: 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgb(var(--ink-muted) / 0.35);
  border-radius: 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--ink-muted) / 0.55);
}

.lesson-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(0 0 0 / 0.12) transparent;
}

.lesson-scroll::-webkit-scrollbar {
  width: 6px;
}

.lesson-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.lesson-scroll::-webkit-scrollbar-thumb {
  background: rgb(0 0 0 / 0.12);
  border-radius: 0;
}

.lesson-scroll::-webkit-scrollbar-thumb:hover {
  background: rgb(0 0 0 / 0.2);
}

/* --------------------------------------------------------------------------
   Video.js ses oynatıcı
   -------------------------------------------------------------------------- */

.media-player-audio {
  width: 100%;
  min-height: 80px;
}

.media-player-audio .video-js {
  height: 80px;
  padding-top: 0;
  width: 100%;
}

.media-player-audio .vjs-tech {
  height: 80px;
}

.media-player-audio .vjs-control-bar {
  display: flex !important;
}

.media-audio-accent,
.media-player-audio audio {
  accent-color: rgb(var(--accent));
}

/* --------------------------------------------------------------------------
   Yardımcı metin renkleri (Tailwind ile birlikte)
   -------------------------------------------------------------------------- */

.text-brand { color: rgb(var(--primary)); }
.text-brand-muted { color: rgb(var(--accent)); }
.bg-brand { background-color: rgb(var(--primary)); }
.bg-brand-muted { background-color: rgb(var(--accent)); }

.link-brand {
  font-weight: 700;
  color: rgb(var(--accent));
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-brand:hover {
  color: rgb(var(--primary));
}

.alert-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #b91c1c;
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 0;
}

.alert-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgb(var(--primary-dark));
  background: rgb(var(--primary) / 0.1);
  border-left: 4px solid rgb(var(--primary));
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   Tasarim sistemi zorlayici katman
   -------------------------------------------------------------------------- */

html,
body,
#root {
  background: #fff !important;
  color: #6b7280 !important;
  font-family: 'Outfit', sans-serif !important;
}

[class*="rounded"] {
  border-radius: 0;
}

[class~="text-gray-300"],
[class~="text-gray-400"],
[class~="text-gray-500"],
[class~="text-gray-600"],
[class~="text-gray-700"],
[class~="text-slate-300"],
[class~="text-slate-400"],
[class~="text-slate-500"],
[class~="text-slate-600"],
[class~="text-zinc-500"],
[class~="text-neutral-500"],
[class~="text-stone-500"] {
  color: #6b7280 !important;
}

[class~="placeholder-gray-400"]::placeholder {
  color: rgb(107 114 128 / 0.65) !important;
}

.text-brand,
.text-primary {
  color: #74ad86 !important;
}

.text-brand-muted,
.text-accent,
.text-primary-dark,
.text-accent-dark {
  color: #4c7459 !important;
}

.bg-brand,
.bg-primary {
  background-color: #74ad86 !important;
}

.bg-brand-muted,
.bg-accent,
.bg-primary-dark,
.bg-accent-dark {
  background-color: #4c7459 !important;
}

.border-primary,
.border-accent,
.border-primary\/20,
.border-accent\/20,
.border-primary\/30,
.border-accent\/30 {
  border-color: #74ad86 !important;
}

[class~="hover:bg-primary"]:hover,
[class~="hover:bg-accent"]:hover,
[class~="hover:bg-primary-dark"]:hover,
[class~="hover:bg-accent-dark"]:hover {
  background-color: #4c7459 !important;
  color: #fff !important;
}

[class~="hover:text-primary"]:hover,
[class~="hover:text-accent"]:hover {
  color: #4c7459 !important;
}

[class~="bg-primary"],
[class~="bg-accent"],
[class~="bg-primary/90"],
[class~="bg-accent/90"],
[class~="bg-primary-dark"],
[class~="bg-accent-dark"],
button[class~="bg-primary"],
button[class~="bg-accent"],
a[class~="bg-primary"],
a[class~="bg-accent"],
label[class~="bg-primary"],
label[class~="bg-accent"] {
  color: #fff !important;
}

.group:hover [class~="group-hover:bg-primary"],
.group:hover [class~="group-hover:bg-accent"],
.group:hover [class~="group-hover:bg-primary-dark"],
.group:hover [class~="group-hover:bg-accent-dark"] {
  background-color: #4c7459 !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Mobil uyumluluk
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  :root {
    --content-pad-x: 0.875rem;
    --content-pad-y: 0.875rem;
    --content-pad-bottom-mobile: 7rem;
    --header-h-mobile: 3.5rem;
  }

  .app-page-header {
    margin-bottom: 1.25rem;
  }

  .app-page-title-mobile {
    margin-bottom: 1rem;
    font-size: var(--text-lg);
  }

  .app-date-badge {
    display: none;
  }

  .app-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .auth-card {
    min-height: auto;
    border-radius: 0;
  }

  .auth-form-panel {
    padding: 1.25rem;
  }

  .auth-heading {
    font-size: var(--text-xl);
  }

  .btn {
    min-height: 2.75rem;
  }

  .form-input {
    min-height: 2.75rem;
    font-size: 16px; /* iOS zoom engeli */
  }

  .nav-item {
    min-height: 2.75rem;
  }

  .sidebar__footer {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .app-mobile-nav__btn,
  .app-mobile-nav__fab {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}

@media (max-width: 380px) {
  :root {
    --content-pad-x: 0.75rem;
  }

  .app-mobile-nav {
    gap: 1.5rem;
    left: max(0.5rem, env(safe-area-inset-left, 0px));
    right: max(0.5rem, env(safe-area-inset-right, 0px));
  }
}
