/* ==========================================================================
   TAANUS (تآنس) Design System — shared visual foundation for all surfaces.
   BUD-04: TAANUS brand — Sage Green / Warm Cream / Soft Beige — Arabic-first RTL
   Palette: #0F5B4E #2E7D6B #7FAE96 #F2D7B3 #FFE7CF #F6FBF7
   ========================================================================== */
@import url('fonts-cairo.css');

:root {
  /* Brand */
  --brand: "TAANUS";
  --brand-ar: "تآنس";
  --brand-tagline: "معاً.. نُنشئ بيئة أجمل";

  /* Backgrounds */
  --bg-main: #F6FBF7;
  --bg-sidebar: #FFFBF0;
  --bg-nav: var(--bg-sidebar);            /* alias for platform_admin templates */

  /* Primary — TAANUS deep / sage */
  --primary: #2E7D6B;                     /* sage */
  --primary-dark: #0F5B4E;                /* deep green */
  --primary-mint: #7FAE96;                /* soft sage alias */
  --primary-soft: #E8F6F1;

  /* Accents — TAANUS warm */
  --sky: #FFE7CF;
  --sky-blue: #7FAE96;                 /* repurposed as sage soft */
  --peach: #F2D7B3;
  --beige: #F2D7B3;
  --cream: #FFE7CF;
  --lavender: #E6DEF5; /* keep for legacy badges, soft */
  --warm: #F2D7B3;

  /* Text & borders */
  --text-main: #1A3C34;
  --text: var(--text-main);               /* alias */
  --text-muted: #6E7F7C;
  --border: #E2EDE9;
  --border-soft: #EAF3EF;

  /* Status */
  --warning: #F2D7B3;
  --danger: #D96C6C;
  --error: var(--danger);                 /* alias */
  --success: #0F5B4E;

  /* Radii & shadows */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 4px rgba(15, 91, 78, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 91, 78, 0.09);
  --shadow-lg: 0 12px 32px rgba(15, 91, 78, 0.12);

  /* Typography — Cairo first for Arabic */
  --font-sans: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { color: var(--primary-dark); font-weight: 700; line-height: 1.3; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.row > * { min-width: 0; }

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

@media (max-width: 992px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.brand-ar { font-size: 1.25rem; }
.brand-en { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
  background: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background-color: var(--primary-dark); color: #fff; }
.btn-primary:hover { background-color: #1f6d58; color: #fff; }

.btn-secondary { background-color: var(--primary); color: #fff; }
.btn-secondary:hover { background-color: #54ab92; color: #fff; }

.btn-outline { background-color: transparent; border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { background-color: var(--bg-sidebar); }

.btn-danger { background-color: var(--danger); color: #fff; }
.btn-danger:hover { background-color: #c75c5c; color: #fff; }

.btn-warning { background-color: var(--warning); color: #3d3113; }
.btn-warning:hover { background-color: #e9b853; }

.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-nursery-link { background: var(--sky-blue); color: #333; }
.btn-admin-link { background: var(--bg-nav); color: var(--text); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.card-header h2 { font-size: 1rem; }
.card-body { padding: 1.5rem; }
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.badge-success { background: #E6F7F2; color: var(--primary-dark); }
.badge-warning { background: #FFF3DB; color: #B3641B; }
.badge-danger { background: #FDECEC; color: var(--danger); }
.badge-info { background: #E4F1F8; color: #2A6B86; }
.badge-neutral { background: var(--lavender); color: #4C3E7D; }

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.alert-success { background: #E6F7F2; border-color: var(--primary); color: #1D5C4B; }
.alert-warning { background: #FFF6E2; border-color: var(--warning); color: #7A4A09; }
.alert-error, .alert-danger { background: #FDECEC; border-color: var(--danger); color: #7C2B2B; }
.alert-info { background: #E4F1F8; border-color: var(--sky); color: #1F4E63; }
.alert-draft { background: #e8f4f1; border: 1px solid #b6ded4; color: #1d5c49; padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.draft-inline-form { display: inline; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-container { overflow-x: auto; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table, .table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td, .table th, .table td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.data-table th, .table th {
  background: var(--bg-sidebar);
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.data-table tbody tr:hover, .table tbody tr:hover { background: var(--bg-main); }
.data-table tbody tr:last-child td, .table tbody tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
}
.form-control, .form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(101, 191, 166, 0.2);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-errors { color: var(--danger); font-size: 0.8rem; }

/* --------------------------------------------------------------------------
   Stats & quick actions
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; font-size: 1.2rem;
}
.stat-icon.mint { background: var(--primary); color: #fff; }
.stat-icon.blue { background: var(--sky); color: #fff; }
.stat-icon.peach { background: var(--peach); color: #fff; }
.stat-icon.lavender { background: var(--lavender); color: #fff; }
.stat-card h3 { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.35rem; }
.stat-card .stat-number { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }

/* ---- Attendance chart (hand-rolled SVG, data-driven) --------------------- */
.ghiras-chart-legend { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 0.9rem; flex-wrap: wrap; }
.ghiras-chart-key { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.ghiras-chart-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.ghiras-chart-swatch--present { background: var(--primary); }
.ghiras-chart-swatch--absent { background: var(--peach); }
.ghiras-chart-wrap { width: 100%; overflow-x: auto; }
.ghiras-chart { width: 100%; height: auto; max-height: 260px; display: block; }
.ghiras-chart-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.ghiras-chart-line { stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ghiras-chart-line--present { stroke: var(--primary-dark); }
.ghiras-chart-line--absent { stroke: var(--peach); stroke-width: 2; stroke-dasharray: 5 5; }
.ghiras-chart-dot { fill: var(--primary-dark); }
.ghiras-chart-xlabel { font-size: 11px; fill: var(--text-muted); font-weight: 600; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.quick-action-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.quick-action-btn .icon { font-size: 1.5rem; margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   Sidebar navigation (shared by nursery + platform admin)
   -------------------------------------------------------------------------- */
.sidebar { background: var(--bg-sidebar); }
.sidebar-nav li a,
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active,
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: var(--primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin: 1.5rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; padding: 0.4rem 0.7rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--primary-dark); font-size: 0.85rem; text-decoration: none; background: #fff;
}
.pagination a:hover { background: var(--bg-sidebar); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --------------------------------------------------------------------------
   Marketing site (GHIRAS landing + website pages)
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-header nav a {
  color: var(--text-main);
  text-decoration: none;
  margin-right: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}
.site-header nav a:hover, .site-header nav a.active { background: var(--primary); color: #fff; }

.site-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}
.site-hero h1 { color: #fff; font-size: 2.25rem; margin-bottom: 0.75rem; }
.site-hero p { font-size: 1.1rem; opacity: 0.95; max-width: 640px; margin: 0 auto 1.5rem; }

.site-section { padding: 3rem 1rem; }
.site-section h2 { text-align: center; margin-bottom: 1.75rem; }

.site-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.site-feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.site-feature .icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
.site-feature h3 { margin-bottom: 0.4rem; }

.site-footer { background: var(--primary-dark); color: #fff; padding: 2.5rem 1rem; margin-top: 2rem; }
.site-footer a { color: var(--sky); }
.site-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.5rem; padding-top: 1rem; text-align: center; font-size: 0.85rem; opacity: 0.9; }

/* --------------------------------------------------------------------------
   Auth / login
   -------------------------------------------------------------------------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-sidebar) 100%);
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  width: 100%;
  max-width: 420px;
}
.auth-card .brand { justify-content: center; margin-bottom: 1.25rem; display: flex; }
.auth-card h1 { text-align: center; font-size: 1.25rem; margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Status bar (marketing dashboard)
   -------------------------------------------------------------------------- */
.status-bar { margin-bottom: 1.5rem; font-size: 0.85rem; }
.status-ok { color: var(--primary-dark); font-weight: 600; }
.status-error { color: var(--danger); }

/* --------------------------------------------------------------------------
   Mobile drawer & responsive
   -------------------------------------------------------------------------- */
.navbar-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--primary-dark);
}
.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
}

@media (max-width: 768px) {
  .navbar-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .drawer-backdrop.show { display: block; }

  .sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    bottom: 0;
    width: 78%;
    max-width: 300px;
    z-index: 999;
    transition: right 0.28s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { right: 0; }

  .main, .nursery-main { margin-right: 0; }
  .nursery-layout { flex-direction: column; }

  .stats-grid, .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .site-hero h1 { font-size: 1.6rem; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; display: flex; }
  .site-header nav a { margin-right: 0; margin-left: 0.4rem; white-space: nowrap; }
}

@media (max-width: 480px) {
  .stats-grid, .quick-actions { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem; }
}

/* ==========================================================================
   BUD-04 Visual Foundation — Nursery app shell (shared by all surfaces)
   ========================================================================== */

/* Radius & shadow tuning: cards 14–18px, soft shadows */
.nursery-layout, .app-layout { --radius: 14px; --radius-sm: 10px; }

.card, .stat-card, .quick-action-btn, .auth-card { border-radius: 16px; }
.accent-card { border-radius: 18px; }

/* --------------------------------------------------------------------------
   App shell layout (fixed sidebar + main column)
   -------------------------------------------------------------------------- */
.nursery-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-main);
}

/* Sidebar */
.nursery-sidebar {
  width: 262px;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border);
  position: fixed;
  right: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.app-brand-logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.app-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.app-brand-text .brand-ar { font-size: 1.3rem; color: var(--primary-dark); font-weight: 800; }
.app-brand-text .brand-en { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }

.sidebar-tenant {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
}
.tenant-name { font-weight: 700; color: var(--text-main); }
.tenant-branch {
  font-size: 0.72rem;
  background: var(--lavender);
  color: #4C3E7D;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
}

.sidebar-nav-wrap { flex: 1; overflow-y: auto; padding-bottom: 0.5rem; }

.sidebar-nav { list-style: none; }
.sidebar-nav .sidebar-section-label {
  padding: 1.1rem 1.5rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.15rem 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s, color 0.18s;
}
.sidebar-nav li a:hover { background: rgba(101, 191, 166, 0.16); color: var(--primary-dark); }
.sidebar-nav li a.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.sidebar-nav li a .icon {
  width: 22px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--bg-sidebar);
}
.user-mini { display: flex; align-items: center; gap: 0.6rem; }
.user-mini-name { font-size: 0.85rem; font-weight: 700; color: var(--text-main); }

/* Avatars */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky) 0%, var(--primary) 100%);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  user-select: none;
}
.avatar-sm { width: 30px; height: 30px; font-size: 0.8rem; }
.avatar-md { width: 40px; height: 40px; font-size: 1rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.6rem; border-radius: 20px; }

/* --------------------------------------------------------------------------
   Main column + top bar
   -------------------------------------------------------------------------- */
.nursery-main {
  flex: 1;
  margin-right: 262px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nursery-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-title { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.topbar-title h1 { font-size: 1.35rem; color: var(--primary-dark); font-weight: 800; }

.topbar-actions { display: flex; align-items: center; gap: 1.1rem; }
.topbar-icon-link {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.18s;
}
.topbar-icon-link:hover { border-color: var(--primary); background: var(--bg-sidebar); }
.badge-notif {
  position: absolute;
  top: -5px; left: -5px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.user-info { display: flex; align-items: center; gap: 0.6rem; }
.user-info-text { display: flex; flex-direction: column; line-height: 1.25; }
.user-info-text strong { font-size: 0.85rem; color: var(--text-main); }
.user-info-text span { font-size: 0.72rem; color: var(--text-muted); }

.nursery-content { padding: 2rem; flex: 1; }

.nursery-footer {
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-sidebar);
  color: var(--text-muted);
  font-size: 0.78rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

.dashboard-columns { align-items: start; }

/* Summary chips (list pages) */
.summary-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.summary-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.summary-chip strong { color: var(--primary-dark); }
.summary-chip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-mint { background: var(--primary); }
.dot-sky { background: var(--sky); }
.dot-peach { background: var(--peach); }
.dot-lavender { background: var(--lavender); }

/* --------------------------------------------------------------------------
   Page heading (large, consistent)
   -------------------------------------------------------------------------- */
.page-heading {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-heading h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.page-heading p { color: var(--text-muted); font-size: 0.9rem; margin: 0.2rem 0 0; }
.page-heading .page-heading-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Breadcrumb refinement */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* --------------------------------------------------------------------------
   Stat cards with accent tints
   -------------------------------------------------------------------------- */
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
}
.stat-icon.mint { background: var(--primary); color: #fff; }
.stat-icon.blue { background: var(--sky); color: #fff; }
.stat-icon.peach { background: var(--peach); color: #fff; }
.stat-icon.lavender { background: var(--lavender); color: #fff; }
.stat-card h3 { font-size: 0.82rem; color: var(--text-muted); font-weight: 700; margin-bottom: 0.3rem; }
.stat-card .stat-number { font-size: 1.7rem; font-weight: 800; color: var(--primary-dark); }
.stat-card .stat-number small { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }

/* Accent gradient stat cards (optional variant) */
.accent-card { border: none; color: var(--text-main); }
.accent-card.sky { background: linear-gradient(160deg, #CFEAF5 0%, #EAF6FB 100%); }
.accent-card.peach { background: linear-gradient(160deg, #FFE4D8 0%, #FFF3EE 100%); }
.accent-card.lavender { background: linear-gradient(160deg, #E6DEF5 0%, #F5F1FC 100%); }
.accent-card.mint { background: linear-gradient(160deg, #D2F0E6 0%, #EFFAF6 100%); }

/* --------------------------------------------------------------------------
   Quick action tiles
   -------------------------------------------------------------------------- */
.quick-action-btn {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: #fff;
}
.quick-action-btn:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
.quick-action-btn .icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-sidebar);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  transition: background 0.18s;
}
.quick-action-btn:hover .icon { background: rgba(255, 255, 255, 0.25); }

/* --------------------------------------------------------------------------
   Cards refinements
   -------------------------------------------------------------------------- */
.card { border-radius: 16px; box-shadow: var(--shadow-sm); }
.card-header { padding: 1.1rem 1.5rem; }
.card-header h2 { font-size: 1.05rem; font-weight: 800; }
.card-body { padding: 1.5rem; }
.card-body--flush { padding: 0; }

/* --------------------------------------------------------------------------
   Responsive tables → stacked mobile cards
   -------------------------------------------------------------------------- */
.table-container { overflow-x: auto; border-radius: 12px; }

.data-table th, .data-table td { padding: 0.85rem 1.1rem; }
.data-table th {
  background: var(--bg-sidebar);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}
.data-table tbody tr { transition: background-color 0.15s; }
.data-table tbody tr:hover { background: #FBFAF5; }

@media (max-width: 768px) {
  .table--cards, .data-table.table--cards {
    display: block;
    width: 100%;
    border: none;
  }
  .table--cards thead { display: none; }
  .table--cards tbody { display: block; }
  .table--cards tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.9rem;
    padding: 0.4rem 1rem;
  }
  .table--cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 0.2rem;
    border-bottom: 1px dashed var(--border);
    font-size: 0.88rem;
    text-align: right;
  }
  .table--cards td:last-child { border-bottom: none; }
  .table--cards td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .table--cards .table-actions { justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   Info grid (detail pages)
   -------------------------------------------------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1rem;
}
.info-item {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
}
.info-item label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.info-item span, .info-item div.value { font-size: 0.95rem; color: var(--text-main); font-weight: 600; }
.info-stack { display: flex; flex-direction: column; gap: 0.85rem; }

/* Profile header (child details) */
.profile-card { overflow: visible; }
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.75rem;
}
.profile-identity { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.profile-photo {
  width: 72px; height: 72px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}
.profile-meta h1 { font-size: 1.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.2rem; }
.profile-meta p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.profile-badges { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.profile-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.detail-grid .card { margin-bottom: 0; }
@media (max-width: 992px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Filter / toolbar
   -------------------------------------------------------------------------- */
.search-filter-bar {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.search-input { flex: 1; min-width: 220px; position: relative; }
.search-input input { width: 100%; padding: 0.7rem 1rem 0.7rem 2.6rem; }

/* --------------------------------------------------------------------------
   Avatar in tables / list rows
   -------------------------------------------------------------------------- */
.cell-user { display: flex; align-items: center; gap: 0.7rem; }
.cell-user .avatar { background: linear-gradient(135deg, var(--lavender) 0%, var(--sky) 100%); }
.cell-user .cell-name { font-weight: 700; color: var(--text-main); }
.cell-user .cell-sub { font-size: 0.75rem; color: var(--text-muted); }
.cell-user-info { display: flex; flex-direction: column; line-height: 1.25; }
.table-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.filter-select { width: auto; min-width: 150px; }

/* Empty state */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 2.4rem; margin-bottom: 0.6rem; }

/* Messages stack */
.messages-stack .alert { border-radius: 12px; box-shadow: var(--shadow-sm); }

/* Login page refinements */
.auth-wrapper {
  background:
    radial-gradient(500px 300px at 85% 10%, rgba(168, 216, 232, 0.35), transparent 60%),
    radial-gradient(460px 300px at 10% 90%, rgba(255, 214, 201, 0.5), transparent 60%),
    linear-gradient(135deg, var(--bg-main) 0%, var(--bg-sidebar) 100%);
}
.auth-card { border-radius: 18px; box-shadow: var(--shadow-lg); }
.auth-brand-mark {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem;
  box-shadow: var(--shadow-md);
}
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin: -0.5rem 0 1.5rem; }
.auth-brand { flex-direction: column; align-items: center; gap: 0.2rem; }
.auth-brand .brand-ar { font-size: 1.6rem; font-weight: 800; }
.auth-brand .brand-en { letter-spacing: 0.16em; }
.auth-footer-links { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; }
.auth-footer-links a { color: var(--primary-dark); font-weight: 600; }

/* ==========================================================================
   BUD-04 Mobile overrides (MUST come last so they win the cascade over
   base rules defined earlier in this file)
   ========================================================================== */
@media (max-width: 768px) {
  .nursery-layout { flex-direction: column; }

  .nursery-sidebar {
    width: 78%;
    max-width: 300px;
    position: fixed;
    right: -100%;
    top: 0;
    bottom: 0;
    z-index: 999;
    transition: right 0.28s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .nursery-sidebar.open { right: 0; }

  .main, .nursery-main { margin-right: 0; }

  .nursery-topbar {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .topbar-title h1 { font-size: 1.1rem; }
  .topbar-actions { gap: 0.5rem; }
  .user-info-text { display: none; }
  .user-info .avatar { width: 34px; height: 34px; font-size: 0.9rem; }

  .nursery-content { padding: 1.25rem; }
  .nursery-footer { padding: 1rem 1.25rem; }

  .page-heading { padding: 0.25rem 0 0.5rem; }
  .page-heading h1 { font-size: 1.45rem; }
  .page-heading .page-heading-actions .btn { padding: 0.55rem 0.9rem; font-size: 0.85rem; }

  .search-filter-bar { padding: 0.85rem 1rem; gap: 0.6rem; }
  .search-filter-bar .filter-select { width: 100%; }
  .search-filter-bar .btn { flex: 1 1 auto; }

  .profile-header { padding: 1.25rem; }
  .profile-photo { width: 60px; height: 60px; }
  .profile-meta h1 { font-size: 1.25rem; }
}

/* ======================================================================
   TAANUS visual language (alias: keep ghiras vars for backward compat)
   ====================================================================== */
:root {
  --ghiras-ink: #0F2A26;
  --ghiras-deep: #0F5B4E;
  --ghiras-green: #2E7D6B;
  --ghiras-soft: #E8F6F1;
  --ghiras-gold: #F2D7B3;
  --ghiras-cloud: #F6FBF7;
  --taanus-ink: var(--ghiras-ink);
  --taanus-deep: var(--ghiras-deep);
  --taanus-green: var(--ghiras-green);
  --taanus-soft: var(--ghiras-soft);
  --taanus-gold: var(--ghiras-gold);
  --taanus-cloud: var(--ghiras-cloud);
  --taanus-beige: #F2D7B3;
  --taanus-cream: #FFE7CF;
  --taanus-sage: #7FAE96;
}

body { background: var(--ghiras-cloud); color: var(--ghiras-ink); }
button, input, select, textarea { font: inherit; }

.ghiras-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ghiras-ink);
  text-decoration: none;
}
.ghiras-brand:hover { color: var(--ghiras-deep); }
.ghiras-brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.ghiras-brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.ghiras-brand-ar { color: var(--ghiras-ink); font-size: 1.35rem; font-weight: 900; }
.ghiras-brand-en { color: var(--ghiras-deep); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.2em; }
.ghiras-brand--large .ghiras-brand-mark { width: 58px; height: 58px; }
.ghiras-brand--large .ghiras-brand-ar { font-size: 1.8rem; }
.ghiras-brand--large .ghiras-brand-en { font-size: 0.78rem; }

.brand-ar, .brand-en { display: none; }
.btn-primary { background: var(--ghiras-deep); }
.btn-primary:hover { background: #095348; }
.btn-secondary { background: var(--ghiras-green); }
.btn-secondary:hover { background: #0d836d; }
.btn-outline:hover { border-color: var(--ghiras-green); color: var(--ghiras-deep); }

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(21, 155, 127, 0.14);
  box-shadow: 0 8px 24px rgba(23, 59, 59, 0.04);
}
.site-header nav a { color: var(--ghiras-ink); }
.site-header nav a:hover { background: var(--ghiras-soft); color: var(--ghiras-deep); }
.site-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dff4ec 0%, #f7fbfa 48%, #fff0e8 100%);
  color: var(--ghiras-ink);
  text-align: right;
  padding: 5rem 1rem 4rem;
}
.site-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(21, 155, 127, 0.1);
}
.site-hero h1 { position: relative; z-index: 1; max-width: 660px; color: var(--ghiras-ink); font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -0.04em; }
.site-hero p { position: relative; z-index: 1; max-width: 640px; margin: 1rem 0 1.7rem; color: #52706e; font-size: 1.05rem; }
.site-hero .btn { position: relative; z-index: 1; border-radius: 999px; padding-inline: 1.4rem; }
.site-footer { background: linear-gradient(135deg, #0d6558, #173b3b); }
.drawer-backdrop { background: rgba(10, 48, 44, 0.48); backdrop-filter: blur(2px); }
.navbar-toggle { border-color: rgba(21, 155, 127, 0.2); color: var(--ghiras-deep); }

/* Nursery shell */
.nursery-layout { background: var(--ghiras-cloud); }
.nursery-sidebar { background: #fff; border-left-color: rgba(21, 155, 127, 0.14); box-shadow: -8px 0 28px rgba(23, 59, 59, 0.03); }
.sidebar-header { background: linear-gradient(180deg, #f4fbf8, #fff); border-bottom-color: rgba(21, 155, 127, 0.12); }
.app-brand { width: 100%; }
.app-brand-logo { width: 44px; height: 44px; border-radius: 14px; background: var(--ghiras-soft); box-shadow: none; }
.app-brand-sprout { display: none; }
.app-brand-text .brand-ar { display: block; color: var(--ghiras-ink); font-size: 1.32rem; }
.app-brand-text .brand-en { display: block; color: var(--ghiras-deep); font-size: 0.65rem; }
.sidebar-nav .sidebar-section-label { color: var(--ghiras-deep); }
.sidebar-nav li a { color: #486463; }
.sidebar-nav li a:hover { background: var(--ghiras-soft); color: var(--ghiras-deep); }
.sidebar-nav li a.active { background: linear-gradient(135deg, var(--ghiras-green), var(--ghiras-deep)); }
.nursery-topbar { background: rgba(255, 255, 255, 0.88); border-bottom-color: rgba(21, 155, 127, 0.14); }
.topbar-title h1, .page-heading h1 { color: var(--ghiras-ink); }
.nursery-footer { background: #fff; border-top-color: rgba(21, 155, 127, 0.12); }

/* Platform owner shell */
.layout { background: var(--ghiras-cloud); }
.layout .sidebar { background: linear-gradient(180deg, #116e61, #0b5a50); border-left: 0; }
.layout .sidebar-logo { border-bottom-color: rgba(255, 255, 255, 0.16); }
.layout .sidebar-logo > span { display: block; color: rgba(255, 255, 255, 0.74); margin-top: 0.65rem; }
.layout .sidebar-logo .ghiras-brand-ar { color: #fff; }
.layout .sidebar-logo .ghiras-brand-en { color: #b9eadc; }
.layout .sidebar-logo .sidebar-close { color: #fff; }
.layout .sidebar-nav a { color: rgba(255, 255, 255, 0.84); border-radius: 12px; margin: 0.15rem 0.75rem; }
.layout .sidebar-nav a:hover, .layout .sidebar-nav a.active { background: rgba(255, 255, 255, 0.15); color: #fff; }
.layout .main { background: var(--ghiras-cloud); }
.top-bar { background: rgba(255, 255, 255, 0.9); border-bottom-color: rgba(21, 155, 127, 0.14); }
.top-bar h1 { color: var(--ghiras-ink); }
.landing-section-title { margin: 2rem 0 1rem; color: var(--ghiras-ink); font-size: 1.25rem; }
.layout .sidebar-close { display: none; }
.sidebar-close { border: 0; background: transparent; cursor: pointer; font-size: 1.5rem; line-height: 1; }

/* Login */
.auth-wrapper { background: radial-gradient(circle at 12% 88%, rgba(220, 174, 91, 0.18), transparent 25rem), linear-gradient(135deg, #e8f6f1, #f9fcfb 52%, #fff0e8); }
.auth-card { border: 0; box-shadow: 0 24px 70px rgba(23, 59, 59, 0.14); }
.auth-card .auth-brand-mark { width: 72px; height: 72px; margin-bottom: 0.7rem; border-radius: 22px; background: var(--ghiras-soft); box-shadow: none; }

/* Landing page composition */
.ghiras-landing { padding: 2.5rem 0 4rem; }
.ghiras-landing-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr); gap: 3rem; align-items: center; }
.ghiras-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ghiras-deep); font-size: 0.8rem; font-weight: 800; }
.ghiras-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 99px; background: var(--ghiras-gold); }
.ghiras-landing h1 { color: var(--ghiras-ink); font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.1; margin: 0.8rem 0 1rem; letter-spacing: -0.05em; }
.ghiras-landing-lead { max-width: 620px; color: #5a7471; font-size: 1.08rem; }
.ghiras-landing-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.ghiras-landing-actions .btn { border-radius: 999px; padding-inline: 1.3rem; }
.ghiras-preview { position: relative; min-height: 350px; padding: 1.2rem; border: 1px solid rgba(21, 155, 127, 0.16); border-radius: 26px; background: linear-gradient(145deg, #fff, #eaf7f2); box-shadow: 0 24px 60px rgba(23, 59, 59, 0.13); transform: rotate(1.2deg); }
.ghiras-preview::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(21, 155, 127, 0.1); border-radius: 18px; pointer-events: none; }
.ghiras-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0.5rem 1rem; }
.ghiras-preview-title { color: var(--ghiras-ink); font-size: 0.85rem; font-weight: 800; }
.ghiras-preview-dots { display: flex; gap: 0.25rem; }
.ghiras-preview-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ghiras-gold); }
.ghiras-preview-dots i:nth-child(2) { background: var(--ghiras-green); }
.ghiras-preview-dots i:nth-child(3) { background: #9cafea; }
.ghiras-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.ghiras-preview-stat, .ghiras-preview-chart, .ghiras-preview-list { position: relative; z-index: 1; border: 1px solid rgba(21, 155, 127, 0.1); border-radius: 13px; background: rgba(255, 255, 255, 0.84); padding: 0.7rem; }
.ghiras-preview-stat span { display: block; color: #76908e; font-size: 0.65rem; }
.ghiras-preview-stat strong { display: block; margin-top: 0.3rem; color: var(--ghiras-deep); font-size: 1.25rem; }
.ghiras-preview-chart { grid-column: span 2; min-height: 135px; background: linear-gradient(180deg, #fff, #f0faf6); }
.ghiras-preview-chart svg { width: 100%; height: 112px; }
.ghiras-preview-list { min-height: 135px; }
.ghiras-preview-list b { display: block; color: var(--ghiras-ink); font-size: 0.72rem; margin-bottom: 0.55rem; }
.ghiras-preview-list span { display: block; height: 8px; margin: 0.5rem 0; border-radius: 99px; background: #e3f1ed; }
.ghiras-preview-list span:nth-child(2) { width: 82%; background: #d0ebe3; }
.ghiras-preview-list span:nth-child(3) { width: 64%; background: #f7e4c2; }
.ghiras-value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 2.2rem; }
.ghiras-value-item { padding: 1rem; border: 1px solid rgba(21, 155, 127, 0.1); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(23, 59, 59, 0.04); }
.ghiras-value-item strong { display: block; color: var(--ghiras-ink); margin-bottom: 0.25rem; }
.ghiras-value-item span { color: #698280; font-size: 0.78rem; }

@media (max-width: 900px) {
  .ghiras-landing-hero { grid-template-columns: 1fr; }
  .ghiras-preview { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 768px) {
  .layout .sidebar-close { display: inline-flex; position: absolute; top: 1rem; left: 1rem; }
  .layout .sidebar-logo { position: relative; }
}
@media (max-width: 640px) {
  .ghiras-landing { padding-top: 1.4rem; }
  .ghiras-value-strip { grid-template-columns: repeat(2, 1fr); }
  .ghiras-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .ghiras-preview-chart { grid-column: span 2; }
}
@media (max-width: 380px) {
  .ghiras-landing h1 { font-size: 2.15rem; }
  .ghiras-value-strip { grid-template-columns: 1fr; }
  .ghiras-preview { padding: 0.75rem; }
}

/* Phase B — Nursery Pages (Dashboard through Child Registration) */
.ghiras-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.page-heading-title h1 { margin: 0; font-size: 1.75rem; }
.page-subtitle { color: var(--text-muted); margin-top: 0.4rem; }
.page-heading-actions { display: flex; gap: 0.75rem; }
.ghiras-btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--ghiras-green));
  border: none;
  border-radius: 999px;
  padding-inline: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.ghiras-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(39, 131, 108, 0.25); }
.ghiras-btn-outline {
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  padding-inline: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.ghiras-btn-outline:hover { background: var(--primary); color: #fff; }
.ghiras-stats { --stat-gap: 1rem; }
.stat-card { border-radius: 16px; }
.ghiras-card { border-radius: 16px; box-shadow: var(--shadow-md); }
.ghiras-card-header { border-bottom: 1px solid var(--border); }
.ghiras-card-title { color: var(--ghiras-deep); }
.ghiras-table th { color: var(--ghiras-ink); font-weight: 700; }
.ghiras-cell-user { display: inline-flex; align-items: center; gap: 0.5rem; }
.ghiras-badge, .badge-success, .badge-info, .badge-neutral, .badge-warning {
  border-radius: 999px;
  font-weight: 600;
}
.ghiras-empty { text-align: center; padding: 2rem; }
.ghiras-empty .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.ghiras-activity { list-style: none; padding: 0; }
.ghiras-activity-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.ghiras-action-btn {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem;
}
.ghiras-avatar { border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600; }
.ghiras-page-header .ghiras-btn-primary .btn-icon,
.ghiras-page-header .ghiras-btn-outline .btn-icon { font-size: 1.1rem; }
.form-steps { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.step-indicator { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-size: 0.9rem; }
.step-indicator.active { color: var(--primary-dark); font-weight: 700; }
.step-indicator.completed .step-number { background: var(--primary); color: #fff; }

/* Phase B additional styles */
.ghiras-breadcrumb { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1.2rem; }
.ghiras-breadcrumb .sep { color: var(--text-muted); }
.ghiras-btn-primary .btn-icon,
.ghiras-btn-outline .btn-icon { font-size: 1.1rem; }
.ghiras-children-title { color: var(--ghiras-ink); }
.ghiras-search-bar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.ghiras-search-input { position: relative; flex: 1; min-width: 220px; }
.ghiras-search-input .search-icon { position: absolute; left: 0.75rem; color: var(--text-muted); }
.ghiras-search-input input { padding-left: 2.5rem; }
.ghiras-btn-apply { border-radius: 999px; }
.ghiras-btn-clear { border-radius: 999px; }
.ghiras-summary { margin-bottom: 1rem; }
.ghiras-table-actions { display: flex; gap: 0.3rem; }
.ghiras-btn-edit { background: var(--primary); color: #fff; border: none; border-radius: 999px; }
.ghiras-stepper { background: #fff; padding: 1.2rem; border-radius: 16px; box-shadow: var(--shadow-md); margin-bottom: 1.5rem; }
.ghiras-step-number { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-sidebar); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.ghiras-stepper .step-indicator.active .ghiras-step-number,
.ghiras-stepper .step-indicator.completed .ghiras-step-number { background: var(--primary); color: #fff; }
.ghiras-stepper .step-indicator.active .ghiras-step-label { color: var(--primary-dark); font-weight: 700; }
.ghiras-form-group label { color: var(--ghiras-ink); font-weight: 600; font-size: 0.9rem; }
.ghiras-input { border: 1.5px solid var(--border); border-radius: 10px; padding: 0.6rem 0.8rem; }
.ghiras-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(101, 191, 166, 0.15); }
.ghiras-error { color: var(--danger); font-size: 0.8rem; }
.ghiras-alert { border-radius: 12px; padding: 1rem; }
.ghiras-alert-error { background: #fff5f5; border: 1px solid var(--danger); border-radius: 12px; padding: 1rem; }
.ghiras-subheading { color: var(--primary-dark); font-weight: 700; margin: 1rem 0 0.75rem; }
.ghiras-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.ghiras-review-section { color: var(--primary-dark); font-weight: 700; margin: 1.5rem 0 0.75rem; }
.ghiras-review-photo { border-radius: 10px; }
.ghiras-review-list { list-style: none; padding: 0; }
.ghiras-profile-name { color: var(--ghiras-ink); margin: 0; font-size: 1.5rem; }
.ghiras-profile-meta { color: var(--text-muted); }
.ghiras-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ghiras-info-item label { color: var(--ghiras-ink); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.3px; }
.ghiras-detail-grid .ghiras-card { margin-bottom: 1rem; }
/* ==========================================================================
   BUD-04 FINAL VISUAL REFINEMENT — GHIRAS Design System (complete layer).
   Single shared design language for nursery, platform owner, parents and
   publishing surfaces. Loaded by theme.css consumers (nursery + platform).
   ========================================================================== */

/* ---- Focus & selection ------------------------------------------------ */
::selection { background: rgba(101, 191, 166, 0.35); }
:focus-visible { outline: 2px solid rgba(39, 131, 108, 0.55); outline-offset: 2px; }

/* ---- Buttons (pill radius, layered shadows) ---------------------------- */
.btn { border-radius: 999px; box-shadow: 0 1px 2px rgba(23, 59, 59, 0.06); }
.btn-primary { background: linear-gradient(135deg, #27836C, #1e6b58); box-shadow: 0 6px 16px rgba(39, 131, 108, 0.22); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(39, 131, 108, 0.3); transform: translateY(-1px); }
.btn-secondary { background: linear-gradient(135deg, #65BFA6, #4fae93); }
.btn-outline { border-color: #DDE6E2; }
.btn-sm { border-radius: 999px; }
.btn-success { background: #e6f7f2; color: #1d5c4b; border: 1px solid rgba(39, 131, 108, 0.2); }
.btn-success:hover { background: #d2f0e6; color: #143f34; }
.btn-text { background: none; border: 0; color: var(--primary-dark); box-shadow: none; padding: 0.3rem 0.5rem; }
.btn-text:hover { background: rgba(101, 191, 166, 0.14); }

/* ---- Cards ------------------------------------------------------------- */
.card { border-radius: 18px; border-color: #E7EDEA; box-shadow: 0 1px 3px rgba(23, 59, 59, 0.04), 0 8px 24px rgba(23, 59, 59, 0.04); }
.card-header { background: linear-gradient(180deg, #FFFFFF, #FDFCF8); border-bottom-color: #EDF2EF; border-radius: 18px 18px 0 0; }
.card-header h2 { display: flex; align-items: center; gap: 0.5rem; }
.card-footer { background: #FDFCF8; }

/* ---- Page heading ------------------------------------------------------ */
.page-heading { margin-bottom: 1.75rem; }
.page-heading h1 { font-size: 1.85rem; letter-spacing: -0.02em; }
.page-heading p { font-size: 0.95rem; }
.page-heading-title .eyebrow, .ghiras-eyebrow-page { font-size: 0.72rem; font-weight: 800; color: #27836C; letter-spacing: 0.08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.4rem; }
.page-heading-title .eyebrow::before, .ghiras-eyebrow-page::before { content: ""; width: 20px; height: 3px; border-radius: 99px; background: #F5C767; }

/* ---- Breadcrumb -------------------------------------------------------- */
.breadcrumb { background: #F8F5EE; border: 1px solid #EDF2EF; border-radius: 999px; padding: 0.4rem 1rem; display: inline-flex; }

/* ---- Stats -------------------------------------------------------------- */
.stats-grid { gap: 1.1rem; }
.stat-card { border-color: #E7EDEA; box-shadow: 0 1px 3px rgba(23, 59, 59, 0.04), 0 10px 26px rgba(23, 59, 59, 0.05); }
.stat-card .stat-icon { box-shadow: 0 4px 10px rgba(23, 59, 59, 0.08); }
.stat-card .stat-number { letter-spacing: -0.02em; }

/* ---- Info grid ---------------------------------------------------------- */
.info-item { background: #FDFCF8; border-color: #E7EDEA; }
.info-item label { letter-spacing: 0.02em; }

/* ---- Tables ------------------------------------------------------------- */
.table-container { background: #fff; border: 1px solid #E7EDEA; border-radius: 16px; box-shadow: 0 1px 3px rgba(23, 59, 59, 0.04); }
.data-table th { background: #F4FAF7; color: #41625d; font-size: 0.78rem; letter-spacing: 0.03em; }
.data-table tbody tr:hover { background: #FBFDF9; }
.table-responsive { border-radius: 16px; }

/* ---- Forms -------------------------------------------------------------- */
.form-control, .form-group input, .form-group textarea, .form-group select { border-radius: 12px; border-color: #DDE6E2; background: #fff; }
select { cursor: pointer; }
textarea { min-height: 96px; resize: vertical; }

/* ---- Badges ------------------------------------------------------------- */
.badge { font-weight: 700; letter-spacing: 0.01em; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03); }

/* ---- Alerts ------------------------------------------------------------- */
.alert { border-radius: 14px; box-shadow: 0 1px 3px rgba(23, 59, 59, 0.04); }

/* ---- Search / filter bar ------------------------------------------------ */
.search-filter-bar { border-color: #E7EDEA; border-radius: 16px; background: linear-gradient(180deg, #fff, #FDFCF8); }

/* ---- Pagination --------------------------------------------------------- */
.pagination a, .pagination span { border-radius: 999px; }
.pagination a:hover { border-color: rgba(101, 191, 166, 0.5); }

/* ---- Empty state -------------------------------------------------------- */
.empty-state { background: #fff; border: 1px dashed #D9E3DE; border-radius: 18px; margin: 0.5rem 0; }
.empty-state .empty-icon { color: #65BFA6; }

/* ---- Modal -------------------------------------------------------------- */
.modal-overlay { background: rgba(15, 41, 38, 0.5); backdrop-filter: blur(3px); }
.modal { border-radius: 20px; box-shadow: 0 24px 70px rgba(15, 41, 38, 0.3); }
.modal-header { padding: 1.15rem 1.5rem; }
.modal-footer { gap: 0.6rem; }

/* ---- Toggle switch & progress (platform) -------------------------------- */
.toggle-slider { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.toggle-switch input:checked + .toggle-slider { background: linear-gradient(135deg, #65BFA6, #27836C); }
.progress-bar { height: 8px; border-radius: 99px; background: #EEF3F0; }
.progress-bar .fill { background: linear-gradient(90deg, #65BFA6, #27836C); border-radius: 99px; }

/* ---- Sidebar nav refinement --------------------------------------------- */
.sidebar-nav li a { font-weight: 600; }
.sidebar-nav .sidebar-section-label { letter-spacing: 0.08em; }
.sidebar-nav li a .icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.sidebar-nav li a .icon svg { width: 20px; height: 20px; }
.app-brand-text .brand-ar { font-weight: 900; }
.sidebar-footer .btn { border-radius: 999px; }

/* ---- Notifications list -------------------------------------------------- */
.notification-item { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.9rem 0; border-bottom: 1px solid #EDF2EF; }
.notification-item:last-child { border-bottom: 0; }

/* ---- Summary chips ------------------------------------------------------- */
.summary-chips { gap: 0.5rem; }
.summary-chip { border-color: #E0E9E5; background: #fff; }

/* ---- Profile header ------------------------------------------------------ */
.profile-card { border-radius: 20px; }
.profile-photo { border-radius: 22px; }

/* ---- ghiras-* component completion --------------------------------------- */
.ghiras-page-header { margin-bottom: 1.75rem; }
.ghiras-card { border-radius: 18px; border-color: #E7EDEA; box-shadow: 0 1px 3px rgba(23, 59, 59, 0.04), 0 10px 26px rgba(23, 59, 59, 0.05); overflow: hidden; }
.ghiras-card-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid #EDF2EF; background: linear-gradient(180deg, #fff, #FDFCF8); }
.ghiras-card-title { font-size: 1.05rem; font-weight: 800; }
.ghiras-table th { background: #F4FAF7; color: #41625d; font-size: 0.78rem; }
.ghiras-btn-primary { background: linear-gradient(135deg, #27836C, #1e6b58); border-radius: 999px; box-shadow: 0 6px 16px rgba(39, 131, 108, 0.22); }
.ghiras-btn-outline { border-radius: 999px; border-color: #DDE6E2; }
.ghiras-btn-edit { border-radius: 999px; background: linear-gradient(135deg, #65BFA6, #4fae93); }
.ghiras-breadcrumb { background: #F8F5EE; border: 1px solid #EDF2EF; border-radius: 999px; padding: 0.4rem 1rem; display: inline-flex; font-size: 0.82rem; }
.ghiras-breadcrumb a { color: #27836C; font-weight: 600; }
.ghiras-breadcrumb .sep { color: #9AAEa8; }
.ghiras-search-bar { background: #fff; border: 1px solid #E7EDEA; border-radius: 16px; padding: 0.9rem 1.1rem; box-shadow: 0 1px 3px rgba(23, 59, 59, 0.04); }
.ghiras-search-input input { border-radius: 12px; border-color: #DDE6E2; }
.ghiras-avatar { border-radius: 50%; }
.ghiras-empty { border: 1px dashed #D9E3DE; border-radius: 18px; background: #fff; }
.ghiras-info-grid { gap: 1.1rem; }
.ghiras-info-item { background: #FDFCF8; border: 1px solid #E7EDEA; border-radius: 14px; padding: 0.95rem 1.15rem; }
.ghiras-info-item div, .ghiras-info-item span { font-weight: 700; color: #303A42; }
.ghiras-profile-header { border-radius: 20px; }
.ghiras-profile-photo { border-radius: 22px; }
.ghiras-stepper { border-radius: 18px; }
.ghiras-form-group label { font-weight: 700; }
.ghiras-input { border-radius: 12px; border-color: #DDE6E2; }
.ghiras-alert { border-radius: 14px; }
.ghiras-alert-error { background: #FDF1F1; border: 1px solid #F0C9C9; border-radius: 14px; color: #7C2B2B; }
.ghiras-subheading, .ghiras-review-section { display: flex; align-items: center; gap: 0.5rem; }
.ghiras-nav { margin-top: 2rem; }
.ghiras-action-btn { border-radius: 16px; }
.ghiras-link { color: #27836C; font-weight: 700; }

/* ---- Stepper (registration) --------------------------------------------- */
.form-steps { background: #fff; border: 1px solid #E7EDEA; border-radius: 18px; padding: 1.2rem 1.4rem; box-shadow: 0 1px 3px rgba(23, 59, 59, 0.04); }
.step-number { box-shadow: 0 0 0 4px #fff; }
.step-label { font-weight: 600; }

/* ---- Misc refinement ----------------------------------------------------- */
.profile-actions, .table-actions, .ghiras-table-actions { gap: 0.5rem; }
.filter-bar { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.form-actions, .ghiras-form-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.inline-form { display: inline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
@media (max-width: 992px) { .form-grid { grid-template-columns: 1fr; } }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--sky-blue); }
.ghiras-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
.ghiras-stat-card { background: #fff; border: 1px solid #E7EDEA; border-radius: 18px; padding: 1.25rem 1.35rem; box-shadow: 0 1px 3px rgba(23, 59, 59, 0.04), 0 10px 26px rgba(23, 59, 59, 0.05); }

/* ---- Platform owner shell (moved from inline <style>) --------------------- */
.layout { display: flex; min-height: 100vh; background: #F7FBF8; }
.layout .sidebar {
  width: 262px;
  background: linear-gradient(180deg, #116E61, #0B5A50);
  border-left: 0;
  padding: 1.5rem 0;
  position: fixed;
  right: 0; top: 0; bottom: 0;
  overflow-y: auto;
  box-shadow: -8px 0 28px rgba(23, 59, 59, 0.08);
}
.layout .sidebar-logo { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.14); margin-bottom: 1rem; position: relative; }
.layout .sidebar-logo h2 { color: #fff; font-size: 1.2rem; }
.layout .sidebar-logo > span { font-size: 0.78rem; color: rgba(255,255,255,0.74); display: block; margin-top: 0.55rem; }
.layout .sidebar-close { position: absolute; top: 0.6rem; left: 0.6rem; color: #fff; background: rgba(255,255,255,0.12); border: 0; width: 34px; height: 34px; border-radius: 10px; font-size: 1.1rem; cursor: pointer; display: none; }
.layout .sidebar-nav a {
  display: flex; align-items: center; gap: 0.7rem;
  margin: 0.15rem 0.75rem; padding: 0.62rem 0.9rem;
  border-radius: 12px;
  color: rgba(255,255,255,0.84); font-size: 0.88rem; font-weight: 600; text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.layout .sidebar-nav a .icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.layout .sidebar-nav a .icon svg { width: 20px; height: 20px; fill: currentColor; }
.layout .sidebar-nav a:hover, .layout .sidebar-nav a.active { background: rgba(255,255,255,0.16); color: #fff; }
.layout .sidebar-nav a.active { background: linear-gradient(135deg, rgba(101,191,166,0.9), rgba(39,131,108,0.9)); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
/* ==========================================================================
   Premium KPI Counters & Watermarks — Botanical refresh for BUD-04
   ========================================================================== */

/* Watermark overlay for dashboards — visible but soft */
.premium-watermark {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("../brand/taanus-watermark.svg");
    background-repeat: repeat;
    background-size: 200px;
    z-index: 0;
}
.dashboard-content { position: relative; z-index: 1; }

/* KPI grid container — responsive */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1200px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

/* Premium KPI counters */
.kpi-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FCFA 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.kpi-card::before {
    content: "";
    position: absolute;
    top: 0; left: -50px;
    width: 100px; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(46,125,107,0.08) 50%, transparent 50%);
}
.kpi-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}
.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.35rem;
}
.kpi-card.dash-success { border-top: 4px solid var(--success); }
.kpi-card.dash-warning { border-top: 4px solid var(--warning); }
.kpi-card.dash-danger { border-top: 4px solid var(--danger); }
.kpi-card.dash-info { border-top: 4px solid var(--primary); }
.kpi-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}
.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.35rem;
}
.kpi-card.dash-success { border-top: 4px solid var(--success); }
.kpi-card.dash-warning { border-top: 4px solid var(--warning); }
.kpi-card.dash-danger { border-top: 4px solid var(--danger); }
.kpi-card.dash-info { border-top: 4px solid var(--primary); }

/* Botanical accent dividers */
.divider-botanical {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 1.5rem 0;
}

/* Premium button variants */
.btn-premium {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-premium-primary {
    background: var(--primary);
    color: #fff;
}
.btn-premium-primary:hover {
    background: var(--primary-dark);
}
.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-premium-outline:hover {
    background: var(--primary-soft);
}

/* Table enhancements for RTL */
.table-premium {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}
.table-premium td, .table-premium th {
    padding: 0.875rem 1rem;
    border: none;
}
.table-premium tbody tr {
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.table-premium tbody tr:hover {
    box-shadow: var(--shadow-md);
}

/* Status badges with botanical colors */
.badge-paid { background: var(--bg-main); color: var(--success); }
.badge-pending { background: var(--sky); color: var(--text-main); }
.badge-failed { background: var(--danger); color: #fff; }

/* Mobile responsive improvements */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .table-premium { font-size: 0.9rem; }
}
@media (max-width: 768px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .table-premium tbody tr { padding: 0.65rem 0.75rem; }
}

/* --------------------------------------------------------------------------
   Layout .main (line 1516) — ensure sidebar works on mobile
   -------------------------------------------------------------------------- */
.layout .main { flex: 1; margin-right: 262px; min-width: 0; display: flex; flex-direction: column; }
.layout .sidebar { position: fixed; top: 0; right: 0; width: 262px; height: 100vh; background: var(--bg-sidebar); z-index: 1000; transition: right 0.3s ease; }
@media (max-width: 768px) {
  .layout .sidebar { width: 78%; max-width: 300px; right: -100%; transition: right 0.28s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
  .layout .sidebar.open { right: 0; }
  .layout .main { margin-right: 0; }
  .layout .top-bar { padding: 0.75rem 1rem; flex-wrap: wrap; row-gap: 0.5rem; }
  .layout .content { padding: 1.25rem; }
}
.layout .top-bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid #E7EDEA;
  padding: 0.9rem 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.layout .top-bar h1 { font-size: 1.35rem; font-weight: 800; color: #173B3B; }
.layout .top-bar .topbar-actions { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.layout .content { padding: 2rem; flex: 1; }
.layout .stat-card .label { font-size: 0.8rem; color: #7A8A85; margin-bottom: 0.5rem; font-weight: 700; }
.layout .stat-card .value { font-size: 1.9rem; font-weight: 800; color: #27836C; letter-spacing: -0.02em; }
.layout .stat-card .sub { font-size: 0.75rem; color: #7A8A85; margin-top: 0.25rem; }
.layout .badge { border-radius: 999px; font-weight: 700; }
.badge-active, .badge-resolved { background: #E6F7F2; color: #27836C; }
.badge-suspended, .badge-critical { background: #FDECEC; color: #D96C6C; }
.badge-trial, .badge-high { background: #FFF3DB; color: #B3641B; }
.badge-medium, .badge-new { background: #E9E2F8; color: #5B21B6; }
.badge-low { background: #F1F4F2; color: #5E6E68; }
.layout .messages p { padding: 0.85rem 1.1rem; border-radius: 12px; margin-bottom: 0.5rem; font-size: 0.85rem; }
.layout .messages .success { background: #E6F7F2; color: #1D5C4B; }
.layout .messages .warning { background: #FFF6E2; color: #7A4A09; }
.layout .btn-nursery-link, .layout .btn-admin-link { border-radius: 999px; }

@media (max-width: 768px) {
  .layout .sidebar { width: 78%; max-width: 300px; right: -100%; transition: right 0.28s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
  .layout .sidebar.open { right: 0; }
  .layout .sidebar-close { display: inline-flex; }
  .layout .main { margin-right: 0; }
  .layout .top-bar { padding: 0.75rem 1rem; flex-wrap: wrap; row-gap: 0.5rem; }
  .layout .content { padding: 1.25rem; }
  .layout .content table, .layout .content .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- Mobile bottom sheet polish ------------------------------------------ */
@media (max-width: 768px) {
  .table--cards tbody tr { box-shadow: 0 2px 8px rgba(23, 59, 59, 0.05); }
  .card-header { align-items: flex-start; gap: 0.5rem; }
}

/* ---- Inline SVG icon sizing (shared sprite) ----------------------------- */
svg.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.stat-card .stat-icon svg.icon { width: 22px; height: 22px; }
.stat-card .stat-icon .icon { stroke-width: 2; }
.ghiras-btn-primary .btn-icon svg.icon,
.ghiras-btn-outline .btn-icon svg.icon { width: 16px; height: 16px; }
.navbar-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; }
.navbar-toggle .icon, .topbar-icon-link .icon, .sidebar-close .icon, .sidebar-footer .icon { width: 18px; height: 18px; }
.sidebar-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; }
.topbar-icon-link .icon { width: 20px; height: 20px; }
.app-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 0.45rem; }

/* ---- Platform owner shell — additional base components -------------------- */
.layout .card { padding: 1.5rem; border-radius: 18px; }
.layout .card h3 { margin-bottom: 1rem; font-size: 1rem; color: #27836C; }
.toggle-switch { position: relative; width: 46px; height: 26px; display: inline-block; vertical-align: middle; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #CFD8D4; border-radius: 99px; transition: background 0.25s; }
.toggle-slider:before { content: ""; position: absolute; height: 20px; width: 20px; right: 3px; bottom: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.25s; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(-20px); }

/* ---- Language switcher (shared, used by nursery/platform/parents shells) -- */
.language-switcher { display: inline-flex; align-items: center; }
.lang-select-wrap { position: relative; display: inline-flex; align-items: center; }
.lang-select-wrap .icon { position: absolute; inset-inline-start: 0.65rem; width: 15px; height: 15px; color: #5E726C; pointer-events: none; z-index: 1; }
.lang-select-wrap .lang-select {
  appearance: none; -webkit-appearance: none;
  padding-inline-start: 2rem;
  padding-inline-end: 1.1rem;
  height: 38px;
  border: 1px solid #DDE6E2;
  border-radius: 999px;
  background: #fff;
  color: #303A42;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E726C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center right 0.7rem;
}
[dir="rtl"] .lang-select-wrap .lang-select { background-position: center left 0.7rem; }
.lang-select-wrap .lang-select:hover { border-color: rgba(39, 131, 108, 0.4); }
.lang-select-wrap .lang-select:focus { outline: none; border-color: #65BFA6; box-shadow: 0 0 0 3px rgba(101, 191, 166, 0.2); }

/* ==========================================================================
   BUD-04 CORRECT IDENTITY � child & sprout visual layer (nursery dashboard)
   ========================================================================== */
.ghiras-tagline {
  margin-top: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #27836C;
}
.ghiras-tagline--welcome { font-size: 0.86rem; margin-top: 0.35rem; }

.ghiras-welcome {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 1.9rem 2.2rem;
  border-radius: 24px;
  background: linear-gradient(120deg, #F0F8F5, #FFFDF9 60%, #FFF3EE);
  border: 1px solid rgba(39, 131, 108, 0.16);
  box-shadow: 0 10px 30px rgba(39, 131, 108, 0.08);
  overflow: hidden;
  position: relative;
}
.ghiras-welcome-copy { min-width: 0; }
.ghiras-welcome-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #27836C;
  background: rgba(101, 191, 166, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  margin-bottom: 0.6rem;
}
.ghiras-welcome-title { font-size: 1.7rem; font-weight: 800; color: #303A42; margin-bottom: 0.15rem; }
.ghiras-welcome-note { color: #5B6B66; font-size: 0.92rem; max-width: 560px; margin-top: 0.5rem; }
.ghiras-welcome-actions { margin-top: 1.1rem; }
.ghiras-welcome-art { position: relative; width: 300px; max-width: 38%; }
.ghiras-welcome-art img { width: 100%; height: auto; display: block; border-radius: 20px; }
.ghiras-welcome-chip {
  position: absolute;
  inset-inline-start: -0.5rem;
  bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(39, 131, 108, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #27836C;
  box-shadow: 0 4px 12px rgba(39, 131, 108, 0.12);
}
.ghiras-welcome-chip .icon { width: 15px; height: 15px; color: #F5C767; }

.ghiras-card-mascot { width: 54px; height: 40px; object-fit: contain; opacity: 0.95; }

.ghiras-day-summary { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; align-items: center; }
.ghiras-day-illus img { width: 100%; height: auto; border-radius: 16px; }
.ghiras-day-list { list-style: none; display: grid; gap: 0.7rem; }
.ghiras-day-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: #303A42; }
.ghiras-day-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ghiras-day-dot--mint { background: #65BFA6; }
.ghiras-day-dot--sky { background: #A8D8E8; }
.ghiras-day-dot--gold { background: #F5C767; }
.ghiras-day-dot--lavender { background: #DDD2F2; }

.ghiras-transport-summary { display: grid; grid-template-columns: 130px 1fr; gap: 1.25rem; align-items: center; }
.ghiras-transport-illus img { width: 100%; height: auto; border-radius: 16px; }
.ghiras-transport-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.ghiras-metric {
  background: #F8F5EE;
  border: 1px solid rgba(39, 131, 108, 0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.ghiras-metric strong { display: block; font-size: 1.45rem; font-weight: 800; color: #27836C; }
.ghiras-metric span { font-size: 0.78rem; color: #6B7480; }

.ghiras-finance-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ghiras-finance-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid #E7EDEA;
  border-radius: 16px;
  background: #fff;
}
.ghiras-finance-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.ghiras-finance-icon .icon { width: 20px; height: 20px; }
.ghiras-finance-icon--mint { background: #E4F3EE; color: #27836C; }
.ghiras-finance-icon--sky { background: #E6F1F7; color: #1F6B87; }
.ghiras-finance-icon--peach { background: #FFF0E8; color: #B75F38; }
.ghiras-finance-icon--lavender { background: #EFE9FB; color: #5B21B6; }
.ghiras-finance-item strong { display: block; font-size: 1.05rem; color: #303A42; font-weight: 800; }
.ghiras-finance-item strong small { font-size: 0.72rem; color: #84909A; }
.ghiras-finance-item span { font-size: 0.74rem; color: #6B7480; }

.ghiras-empty--art { display: grid; place-items: center; gap: 0.4rem; }
.ghiras-empty-art { width: 96px; height: auto; margin-bottom: 0.5rem; }

@media (max-width: 900px) {
  .ghiras-welcome { grid-template-columns: 1fr; }
  .ghiras-welcome-art { max-width: 340px; width: 100%; justify-self: center; margin: 0.25rem auto 0; }
  .ghiras-finance-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ghiras-day-summary, .ghiras-transport-summary { grid-template-columns: 1fr; }
  .ghiras-day-illus img, .ghiras-transport-illus img { max-width: 220px; }
  .ghiras-welcome-art { display: none; }
}

.ghiras-register-band {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.6rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1.4rem 1.8rem;
  border-radius: 20px;
  background: linear-gradient(120deg, #F0F8F5, #FFFDF9 55%, #FFF3EE);
  border: 1px solid rgba(39, 131, 108, 0.16);
  box-shadow: 0 8px 22px rgba(39, 131, 108, 0.07);
}
.ghiras-register-art { width: 100%; height: auto; border-radius: 16px; display: block; }
.ghiras-register-copy h2 { font-size: 1.35rem; font-weight: 800; color: #303A42; margin-bottom: 0.3rem; }
.ghiras-register-note { color: #5B6B66; font-size: 0.92rem; margin-top: 0.4rem; max-width: 640px; }
@media (max-width: 700px) {
  .ghiras-register-band { grid-template-columns: 1fr; }
  .ghiras-register-art { max-width: 260px; }
}

/* ==========================================================================
   BUD-04 ROUND 2 — Nursery shell polish (topbar + sidebar only)
   ========================================================================== */
.topbar-actions { gap: 0.9rem; }
.topbar-icon-group { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar-divider { width: 1px; height: 30px; background: var(--border); flex-shrink: 0; }
.nursery-topbar .avatar {
  width: 46px; height: 46px; font-size: 1.1rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(23, 59, 59, 0.12);
}
.user-info { gap: 0.75rem; }
.user-info-text strong { font-size: 0.88rem; font-weight: 800; }
.user-info-text span { font-size: 0.73rem; }
.topbar-lang { display: inline-flex; align-items: center; }
.topbar-lang .lang-select-wrap { background: #F8F5EE; border-radius: 999px; }
.topbar-lang .lang-select { background-color: transparent; }

/* Sidebar — breathing room, clear sections, tidy scrollbar */
.nursery-sidebar { scrollbar-width: thin; scrollbar-color: #D8E4DF transparent; }
.nursery-sidebar::-webkit-scrollbar { width: 6px; }
.nursery-sidebar::-webkit-scrollbar-thumb { background: #D8E4DF; border-radius: 99px; }
.nursery-sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav .sidebar-section-label {
  padding: 1.15rem 1.5rem 0.4rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(21, 155, 127, 0.1);
}
.sidebar-nav .sidebar-section-label:first-child { border-top: 0; margin-top: 0; }
.sidebar-nav li a { margin: 0.12rem 0.85rem; padding: 0.58rem 0.85rem; }
.sidebar-footer { padding: 1rem 1.25rem 1.1rem; gap: 0.7rem; }
.sidebar-footer .avatar { width: 34px; height: 34px; }
.sidebar-footer .btn { min-height: 38px; }

/* Mirror application shells for a genuine LTR experience. */
html[dir="ltr"] .nursery-sidebar {
  left: 0;
  right: auto;
  border-left: 0;
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 28px rgba(23, 59, 59, 0.03);
}
html[dir="ltr"] .nursery-main {
  margin-left: 262px;
  margin-right: 0;
}
html[dir="ltr"] .layout .sidebar {
  left: 0;
  right: auto;
  box-shadow: 8px 0 28px rgba(23, 59, 59, 0.08);
}
html[dir="ltr"] .layout .main {
  margin-left: 262px;
  margin-right: 0;
}

@media (max-width: 768px) {
  html[dir="ltr"] .nursery-sidebar,
  html[dir="ltr"] .layout .sidebar {
    left: -100%;
    right: auto;
  }
  html[dir="ltr"] .nursery-sidebar.open,
  html[dir="ltr"] .layout .sidebar.open {
    left: 0;
    right: auto;
  }
  html[dir="ltr"] .nursery-main,
  html[dir="ltr"] .layout .main {
    margin-left: 0;
    margin-right: 0;
  }
  .layout .ghiras-search-bar {
    width: 100%;
    min-width: 0;
    padding: 0.75rem;
  }
  .layout .ghiras-search-bar form {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }
  .layout .ghiras-search-bar select,
  .layout .ghiras-search-bar input {
    flex: 1 1 145px;
    min-width: 0;
    max-width: 100%;
  }
  .topbar-icon-link { width: 38px; height: 38px; }
  .topbar-divider { height: 24px; }
  .nursery-topbar .avatar { width: 36px; height: 36px; font-size: 0.95rem; }
  .user-info { gap: 0.5rem; }
}
@media (max-width: 420px) {
  .topbar-icon-link--support { display: none; }
  .topbar-actions { gap: 0.45rem; }
  .topbar-lang .lang-select { padding-inline-end: 0.85rem; }
}

/* ========================================================================== 
   BUD-04 FINAL VISUAL SYSTEM — approved nursery identity across every app
   ========================================================================== */
:root {
  --gh-brand: #27836c;
  --gh-brand-deep: #165f52;
  --gh-mint: #65bfa6;
  --gh-mint-soft: #e8f6f1;
  --gh-sky: #a8d8e8;
  --gh-sky-soft: #eaf6fa;
  --gh-peach: #ffd6c9;
  --gh-peach-soft: #fff1ec;
  --gh-lavender: #ddd2f2;
  --gh-lavender-soft: #f2eefb;
  --gh-gold: #f5c767;
  --gh-gold-soft: #fff7e5;
  --gh-ink: #173b3b;
  --gh-muted: #6b7d78;
  --gh-line: #e1ebe7;
  --gh-canvas: #f6faf8;
  --gh-cream: #fffdf9;
  --gh-card: rgba(255, 255, 255, 0.96);
  --gh-radius-xl: 24px;
  --gh-radius-lg: 18px;
  --gh-radius-md: 14px;
  --gh-shadow: 0 1px 2px rgba(23,59,59,.03), 0 12px 32px rgba(23,59,59,.07);
  --gh-shadow-hover: 0 18px 40px rgba(23,59,59,.12);
}

body { background: var(--gh-canvas); color: var(--gh-ink); }
body::selection { background: rgba(101,191,166,.28); color: var(--gh-ink); }
.icon { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; flex: 0 0 auto; }

.layout .content,
.nursery-content {
  background:
    radial-gradient(circle at 7% 3%, rgba(168,216,232,.16), transparent 22rem),
    radial-gradient(circle at 94% 17%, rgba(255,214,201,.18), transparent 24rem),
    var(--gh-canvas);
}

.layout .content { padding: clamp(1.1rem, 2.2vw, 2rem); }
.nursery-content { padding: clamp(1rem, 2.2vw, 2rem); }

/* Application shells */
.layout .sidebar,
.nursery-sidebar { width: 272px; }
.layout .main,
.nursery-main { margin-left: 0; margin-right: 272px; }
html[dir="ltr"] .layout .main,
html[dir="ltr"] .nursery-main { margin-left: 272px; margin-right: 0; }

.layout .sidebar {
  background:
    radial-gradient(circle at 85% 4%, rgba(168,216,232,.22), transparent 10rem),
    linear-gradient(180deg, #147a69 0%, #0d6759 58%, #095246 100%);
  padding-block: 1.2rem;
  box-shadow: -12px 0 38px rgba(15,75,67,.11);
}
.layout .sidebar::after {
  content: "";
  position: absolute;
  inset-inline: 18px;
  bottom: 132px;
  height: 94px;
  pointer-events: none;
  opacity: .12;
  background: url('/static/img/taanus-sprout.svg') center/contain no-repeat;
}
.layout .sidebar-logo { padding: .4rem 1.4rem 1.4rem; }
.layout .sidebar-nav { display: grid; gap: .16rem; padding-top: .25rem; }
.layout .sidebar-nav a {
  margin-inline: .85rem;
  padding: .76rem .95rem;
  border-radius: 13px;
  font-size: .9rem;
  font-weight: 700;
  gap: .72rem;
}
.layout .sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(121,215,187,.96), rgba(69,170,145,.94));
  box-shadow: 0 8px 22px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.22);
}
.layout .sidebar-footer {
  position: relative;
  margin: 1rem .8rem 0;
  padding: .7rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.nursery-sidebar {
  background: rgba(255,255,255,.98);
  border-left: 1px solid rgba(39,131,108,.12);
  box-shadow: -12px 0 38px rgba(23,59,59,.05);
}
.sidebar-header { padding: 1.15rem 1.3rem 1rem; }
.sidebar-header .app-brand { justify-content: center; }
.sidebar-tenant {
  margin-top: .85rem;
  padding: .7rem .8rem;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gh-mint-soft), #f7fcfa);
  border: 1px solid rgba(39,131,108,.12);
  text-align: center;
}
.tenant-name { display: block; color: var(--gh-ink); font-weight: 800; }
.tenant-branch { display: block; margin-top: .1rem; font-size: .72rem; color: var(--gh-muted); }
.ghiras-tagline { text-align: center; color: var(--gh-brand); font-size: .73rem; margin-top: .55rem; }
.nursery-sidebar .sidebar-nav-wrap { padding-block: .25rem 1rem; }
.nursery-sidebar .sidebar-nav li a {
  min-height: 42px;
  border-radius: 12px;
  gap: .7rem;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.nursery-sidebar .sidebar-nav li a:hover { transform: translateX(-2px); }
html[dir="ltr"] .nursery-sidebar .sidebar-nav li a:hover { transform: translateX(2px); }
.nursery-sidebar .sidebar-nav li a.active {
  background: linear-gradient(135deg, #2d9d83, #227b68);
  box-shadow: 0 8px 20px rgba(39,131,108,.22);
}

.nursery-topbar,
.layout .top-bar {
  min-height: 76px;
  padding: .85rem clamp(1rem,2.2vw,2rem);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(39,131,108,.11);
  box-shadow: 0 7px 22px rgba(23,59,59,.035);
}
.layout .top-bar { position: sticky; top: 0; z-index: 70; }
.nursery-topbar { position: sticky; top: 0; z-index: 70; }
.topbar-title h1,
.layout .top-bar h1 { font-size: clamp(1.12rem, 2vw, 1.45rem); color: var(--gh-ink); }

/* Premium shared controls */
.btn {
  min-height: 40px;
  border-radius: 12px;
  padding-inline: 1rem;
  font-family: inherit;
  font-weight: 750;
}
.btn-primary,
.ghiras-btn-primary {
  background: linear-gradient(135deg, #2e9e84, #237b69);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(39,131,108,.2);
}
.btn-primary:hover,
.ghiras-btn-primary:hover { background: linear-gradient(135deg, #278d77, #196352); color: #fff; }
.btn-outline,
.ghiras-btn-outline { background: rgba(255,255,255,.84); border-color: #d8e5e0; color: var(--gh-ink); }
.btn-outline:hover,
.ghiras-btn-outline:hover { background: var(--gh-mint-soft); border-color: rgba(39,131,108,.28); color: var(--gh-brand-deep); }

.card,
.ghiras-card,
.section {
  background: var(--gh-card);
  border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-lg);
  box-shadow: var(--gh-shadow);
}
.layout .card { padding: 0; }
.card-header,
.section-header {
  min-height: 60px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #edf2ef;
}
.card-body { padding: 1.25rem; }
.card:hover,
.ghiras-card:hover { border-color: rgba(39,131,108,.2); }

.form-control,
.ghiras-input,
.ghiras-form-control,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  min-height: 44px;
  padding: .68rem .85rem;
  color: var(--gh-ink);
  background: rgba(255,255,255,.94);
  border: 1px solid #d8e5e0;
  border-radius: 12px;
  font: inherit;
  outline: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus,
.ghiras-input:focus,
.ghiras-form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gh-mint);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(101,191,166,.15);
}
label { color: #385651; font-weight: 700; }
.form-help, .helptext, .ghiras-form-text { color: var(--gh-muted); font-size: .78rem; }

/* Platform owner: header and dashboard density */
.dashboard-header,
.nurseries-header,
.packages-header,
.subscriptions-header,
.feature-flags-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(39,131,108,.13);
  border-radius: var(--gh-radius-xl);
  background:
    radial-gradient(circle at 94% 20%, rgba(168,216,232,.32), transparent 15rem),
    linear-gradient(120deg, #eff9f5, #fffdf9 62%, #fff2ed);
  box-shadow: 0 12px 30px rgba(39,131,108,.065);
}
.dashboard-title-section h2,
.header-left h3 { margin: 0; color: var(--gh-ink); font-size: 1.35rem; }
.dashboard-title-section p,
.header-left p { margin-top: .28rem; color: var(--gh-muted); font-size: .88rem; }
.dashboard-actions,
.header-right { display: flex; gap: .65rem; flex-wrap: wrap; }

.layout .stats-grid.ghiras-stats {
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .9rem;
  margin-bottom: 1rem;
}
.layout .ghiras-stat-card {
  position: relative;
  min-height: 146px;
  padding: 1.15rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gh-line);
  border-radius: 18px;
}
.layout .ghiras-stat-card::after {
  content: "";
  position: absolute;
  width: 72px; height: 72px;
  inset-inline-end: -20px; bottom: -24px;
  border-radius: 50%;
  background: var(--gh-mint-soft);
}
.layout .ghiras-stat-card:nth-child(4n+2)::after { background: var(--gh-sky-soft); }
.layout .ghiras-stat-card:nth-child(4n+3)::after { background: var(--gh-lavender-soft); }
.layout .ghiras-stat-card:nth-child(4n+4)::after { background: var(--gh-peach-soft); }
.layout .ghiras-stat-card .label { color: #58716c; font-size: .79rem; }
.layout .ghiras-stat-card .value { margin-top: .52rem; color: var(--gh-ink); font-size: clamp(1.45rem,2.3vw,1.95rem); }
.layout .ghiras-stat-card .sub { position: relative; z-index: 1; margin-top: .45rem; display: flex; gap: .28rem; flex-wrap: wrap; color: var(--gh-muted); }
.status-badge { padding: .18rem .45rem; border-radius: 999px; background: #f2f7f5; font-size: .68rem; }
.status-badge.active { color: #18705c; background: var(--gh-mint-soft); }
.status-badge.trial { color: #7053a6; background: var(--gh-lavender-soft); }
.status-badge.suspended { color: #b35151; background: #fff0f0; }

.dashboard-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.dashboard-sections > .section { margin: 0; padding: 0; overflow: hidden; }
.dashboard-sections > .section.quick-actions { display: block; }
.dashboard-sections > .quick-actions,
.dashboard-sections > .grid-2,
.dashboard-sections > .card { grid-column: 1 / -1; }
.status-cards,
.revenue-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; padding: 1.1rem; }
.revenue-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.status-card,
.revenue-card {
  padding: 1rem;
  text-align: center;
  border: 1px solid #e8efec;
  border-radius: 15px;
  background: linear-gradient(180deg,#fff,#fbfdfc);
}
.status-value { font-size: 1.55rem; color: var(--gh-brand); font-weight: 850; }
.status-value.trial { color: #7658ad; }
.status-value.suspended { color: #c45d5d; }
.status-label,
.revenue-label { margin-top: .2rem; color: var(--gh-muted); font-size: .77rem; font-weight: 700; }
.revenue-value { margin-top: .38rem; color: var(--gh-ink); font-size: 1.12rem; font-weight: 850; }
.revenue-period-tabs { display: inline-flex; padding: .2rem; background: #f2f7f5; border-radius: 10px; }
.tab-btn { border: 0; background: transparent; border-radius: 8px; padding: .38rem .7rem; color: var(--gh-muted); cursor: pointer; font-family: inherit; }
.tab-btn.active { background: #fff; color: var(--gh-brand); box-shadow: 0 2px 8px rgba(23,59,59,.08); }

.quick-actions-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; padding: 1.1rem; }
.action-card {
  display: flex;
  align-items: center;
  gap: .82rem;
  min-width: 0;
  padding: .92rem;
  color: var(--gh-ink);
  border: 1px solid #e5eeea;
  border-radius: 15px;
  background: #fff;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.action-card:hover { transform: translateY(-2px); border-color: rgba(39,131,108,.32); box-shadow: 0 10px 22px rgba(23,59,59,.08); }
.action-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--gh-brand); background: var(--gh-mint-soft); }
.action-card:nth-child(3n+2) .action-icon { color: #276f8c; background: var(--gh-sky-soft); }
.action-card:nth-child(3n+3) .action-icon { color: #7658ad; background: var(--gh-lavender-soft); }
.action-title { color: var(--gh-ink); font-size: .86rem; font-weight: 800; }
.action-desc { color: var(--gh-muted); font-size: .72rem; margin-top: .12rem; }

/* Platform cards, filters and grids */
.ghiras-filters-bar,
.packages-filters-bar,
.subscriptions-filters-bar,
.feature-flags-filters-bar,
.support-filter-form {
  padding: 1rem 1.15rem;
  border: 1px solid var(--gh-line);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(23,59,59,.045);
}
.ghiras-filters-bar form,
.packages-filters-bar form,
.subscriptions-filters-bar form,
.feature-flags-filters-bar form { align-items: end !important; }
.filter-group { flex: 1 1 150px; min-width: 0; }
.filter-group input,
.filter-group select { width: 100%; min-width: 0 !important; }

.nurseries-grid,
.feature-flags-grid,
.pricing-grid,
.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}
.nursery-card,
.feature-flag-card,
.pricing-card,
.subscription-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nursery-card:hover,
.feature-flag-card:hover,
.pricing-card:hover,
.subscription-card:hover { transform: translateY(-3px); box-shadow: var(--gh-shadow-hover); }
.nursery-card-header,
.feature-flag-card-header,
.pricing-card-header,
.subscription-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid #edf2ef;
  background: linear-gradient(180deg,#fff,#fcfdfc);
}
.nursery-name,
.feature-flag-name,
.package-name,
.subscription-name { color: var(--gh-ink); font-size: 1rem; font-weight: 850; }
.nursery-meta,
.feature-flag-meta,
.subscription-meta { display: flex; flex-wrap: wrap; gap: .35rem .7rem; margin-top: .35rem; color: var(--gh-muted); font-size: .72rem; }
.nursery-card-body,
.feature-flag-card-body,
.pricing-card-body,
.subscription-card-body { padding: 1.1rem; flex: 1; }
.nursery-details,
.feature-statistics,
.limits-grid,
.subscription-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.detail-item,
.stat-item,
.limit-item {
  padding: .72rem;
  text-align: center;
  border: 1px solid #e9f0ed;
  border-radius: 12px;
  background: #f9fcfa;
}
.detail-label,
.limit-label { color: var(--gh-muted); font-size: .7rem; font-weight: 700; }
.detail-value,
.stat-value,
.limit-value { margin-top: .12rem; color: var(--gh-ink); font-size: 1.02rem; font-weight: 850; }
.storage-bar { display: flex; align-items: center; gap: .55rem; margin-top: .85rem; }
.progress-bar { height: 8px; flex: 1; border-radius: 999px; overflow: hidden; background: #edf2ef; }
.progress-bar .fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--gh-brand),var(--gh-mint)); }
.progress-bar .fill.warning { background: var(--gh-gold); }
.progress-bar .fill.danger { background: #d96c6c; }
.storage-percent { color: var(--gh-muted); font-size: .72rem; }
.nursery-card-footer,
.feature-flag-card-footer,
.pricing-card-footer,
.subscription-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  border-top: 1px solid #edf2ef;
  background: #fcfdfc;
}
.nursery-contact { min-width: 0; color: var(--gh-muted); font-size: .7rem; }
.contact-item { display: flex; align-items: center; gap: .32rem; overflow-wrap: anywhere; }
.nursery-actions,
.feature-actions,
.subscription-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }

.pricing-section { padding: .9rem; border-radius: 14px; background: linear-gradient(135deg,var(--gh-mint-soft),#f9fcfa); text-align: center; }
.price-monthly .amount { font-size: 2rem; color: var(--gh-brand); font-weight: 900; }
.price-yearly { margin-top: .25rem; color: var(--gh-muted); font-size: .8rem; }
.limits-grid { margin-top: .9rem; }
.features-section { margin-top: .9rem; }
.features-section .section-title { color: var(--gh-ink); font-size: .77rem; font-weight: 800; }
.feature-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.feature-badge { padding: .28rem .58rem; border-radius: 999px; background: var(--gh-lavender-soft); color: #654b97; font-size: .69rem; font-weight: 700; }
.feature-flag-description { min-height: 44px; color: var(--gh-muted); font-size: .8rem; }
.feature-statistics { margin-top: .8rem; }
.toggle-switch { flex: 0 0 auto; }

.pagination-section {
  margin-top: 1rem;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--gh-line);
  border-radius: 14px;
  background: #fff;
  color: var(--gh-muted);
  font-size: .78rem;
}
.pagination-controls { display: flex; align-items: center; gap: .5rem; }
.pagination-current { padding: .4rem .7rem; border-radius: 9px; background: var(--gh-mint-soft); color: var(--gh-brand); font-weight: 700; }

/* Tables and empty states */
.table-responsive,
.table-container,
.ghiras-table-container { border-radius: 14px; overflow-x: auto; }
.table th,
.data-table th { padding: .78rem .9rem; color: #49645f; background: #f1f8f5; font-size: .73rem; }
.table td,
.data-table td { padding: .82rem .9rem; border-color: #edf2ef; vertical-align: middle; }
.table tbody tr:hover,
.data-table tbody tr:hover { background: #fbfdfc; }
.empty-state,
.ghiras-empty-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .55rem;
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(39,131,108,.28);
  border-radius: 22px;
  background: linear-gradient(135deg,#fff,#f3faf7);
}
.empty-state .empty-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 22px; color: var(--gh-brand); background: var(--gh-mint-soft); }
.empty-state .empty-icon .icon { width: 32px; height: 32px; }
.empty-state h3 { color: var(--gh-ink); }
.empty-state p { color: var(--gh-muted); max-width: 440px; }

/* Platform user menu */
.user-dropdown { position: relative; width: 100%; }
.user-dropdown-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 18px;
  align-items: center;
  gap: .65rem;
  padding: .55rem;
  color: #fff;
  background: transparent;
  border: 0;
  text-align: start;
  cursor: pointer;
  font-family: inherit;
}
.user-avatar,
.avatar-placeholder { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; color: var(--gh-brand-deep); background: #fff; }
.user-avatar img,
.dropdown-user-info img { width: 100%; height: 100%; object-fit: cover; }
.user-details { min-width: 0; display: grid; }
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 800; }
.user-role { color: rgba(255,255,255,.68); font-size: .69rem; }
.user-dropdown-menu {
  display: none;
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% + .7rem);
  z-index: 120;
  padding: .55rem;
  border: 1px solid var(--gh-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(10,52,45,.22);
  color: var(--gh-ink);
}
.user-dropdown-menu.show { display: block; }
.dropdown-user-info { display: flex; align-items: center; gap: .6rem; padding: .45rem; }
.dropdown-user-details { display: grid; min-width: 0; }
.dropdown-user-name { font-size: .78rem; font-weight: 800; }
.dropdown-user-role { color: var(--gh-muted); font-size: .68rem; }
.dropdown-menu-items { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid #edf2ef; }
.dropdown-item { width: 100%; display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; border: 0; border-radius: 10px; color: #a94141; background: #fff5f5; cursor: pointer; font-family: inherit; }
[aria-disabled="true"] { opacity: .58; cursor: not-allowed; pointer-events: none; }

/* Direction and responsive behavior */
html[dir="ltr"] .data-table th,
html[dir="ltr"] .data-table td,
html[dir="ltr"] .table th,
html[dir="ltr"] .table td { text-align: left; }
html[dir="ltr"] .layout .sidebar { border-right: 0; }

@media (max-width: 1180px) {
  .layout .stats-grid.ghiras-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nurseries-grid, .feature-flags-grid, .pricing-grid, .subscriptions-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .layout .stats-grid.ghiras-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-sections { grid-template-columns: 1fr; }
  .dashboard-sections > * { grid-column: 1 !important; }
  .quick-actions-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .layout .sidebar, .nursery-sidebar { width: min(88vw, 320px); }
  .layout .main, .nursery-main,
  html[dir="ltr"] .layout .main,
  html[dir="ltr"] .nursery-main { margin: 0; }
  .layout .sidebar-close { display: inline-flex; }
  .nursery-topbar, .layout .top-bar { min-height: 66px; }
  .dashboard-header, .nurseries-header, .packages-header, .subscriptions-header, .feature-flags-header { align-items: flex-start; flex-direction: column; padding: 1.1rem; }
  .dashboard-actions, .header-right { width: 100%; }
  .dashboard-actions .btn, .header-right .btn { flex: 1 1 auto; }
  .nurseries-grid, .feature-flags-grid, .pricing-grid, .subscriptions-grid { grid-template-columns: 1fr; }
  .ghiras-filters-bar form, .packages-filters-bar form, .subscriptions-filters-bar form, .feature-flags-filters-bar form { gap: .7rem !important; }
  .filter-group { flex-basis: 100%; }
  .filter-group label[style*="transparent"] { display: none !important; }
  .pagination-section { align-items: stretch; flex-direction: column; }
  .pagination-controls { justify-content: space-between; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .layout .content, .nursery-content { padding: .8rem; }
  .layout .stats-grid.ghiras-stats { gap: .7rem; }
  .layout .ghiras-stat-card { min-height: 128px; padding: .9rem; }
  .quick-actions-grid { grid-template-columns: 1fr; }
  .status-cards { grid-template-columns: 1fr 1fr 1fr; padding: .75rem; gap: .5rem; }
  .revenue-cards { grid-template-columns: 1fr; padding: .75rem; }
  .nursery-card-footer, .feature-flag-card-footer, .pricing-card-footer, .subscription-card-footer { align-items: stretch; flex-direction: column; }
  .nursery-actions, .feature-actions, .subscription-actions { justify-content: stretch; }
  .nursery-actions .btn, .feature-actions .btn, .subscription-actions .btn { flex: 1; }
  .topbar-actions .btn-nursery-link, .topbar-actions .btn-admin-link { display: none; }
  .nursery-topbar { padding-inline: .75rem; }
  .nursery-topbar .topbar-title h1,
  .nursery-topbar .language-switcher label,
  .nursery-topbar .topbar-divider { display: none; }
  .nursery-topbar .topbar-actions { gap: .35rem; }
  .nursery-topbar .topbar-lang .lang-select { min-width: 0; padding-inline: .65rem; }
  .ghiras-kpi-label {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.22;
  }
}

/* ==========================================================================
   Auth (login) — TAANUS split layout: brand story panel + login card
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(160deg, #F9F1E7 0%, #FDFBF7 45%, #E7F3EC 100%);
}
.auth-lang { position: fixed; top: 16px; inset-inline-start: 16px; z-index: 30; }
.auth-split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.75rem 3.25rem;
  overflow: hidden;
  color: #F4F7F4;
  background: linear-gradient(165deg, #1E5A48 0%, #185444 55%, #113B30 100%);
}
.auth-story::before {
  content: ""; position: absolute; top: -140px; inset-inline-end: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(84,164,126,.38), transparent 72%);
}
.auth-story::after {
  content: ""; position: absolute; bottom: -150px; inset-inline-start: -110px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236,200,157,.20), transparent 72%);
}
.auth-story > * { position: relative; z-index: 1; }
.auth-story .ghiras-brand { margin-bottom: .25rem; }
.auth-story .ghiras-brand-ar { color: #F4F7F4; }
.auth-story .ghiras-brand-en { color: #C9D6CD; }
.auth-story h2 { color: #F4F7F4; font-size: 1.6rem; font-weight: 800; line-height: 1.55; margin: .25rem 0 0; }
.auth-story > p { color: #C9D6CD; line-height: 1.95; margin: 0; max-width: 54ch; }
.auth-story-illus img {
  display: block;
  width: min(260px, 72%);
  margin-top: .35rem;
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(9, 38, 30, .38);
}
.auth-story-illus img.auth-story-bg {
  width: min(300px, 78%);
  border-radius: 22px;
  border: 1px solid rgba(244, 247, 244, .18);
}
.auth-story-list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}
.auth-story-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #E7F3EC;
  font-weight: 600;
}
.auth-story-list .icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(84,164,126,.30);
  color: #D9E9DF;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.75rem;
}
.auth-card { width: min(430px, 100%); padding: 2.5rem 2.25rem; }
.auth-card h1 { font-size: 1.45rem; margin-bottom: .4rem; }
.login-form { margin-top: .4rem; }
.auth-card .form-control { min-height: 48px; }
.auth-card .btn-primary {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  letter-spacing: .02em;
}
.auth-card .btn-primary:hover { background: #0C4739; }

@media (max-width: 940px) {
  .auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-story { padding: 1.75rem 1.5rem 1.4rem; gap: .75rem; }
  .auth-story h2 { font-size: 1.25rem; }
  .auth-story > p { font-size: .85rem; }
  .auth-story-illus img { width: 150px; border-radius: 16px; box-shadow: 0 12px 30px rgba(9,38,30,.30); }
  .auth-story-list { grid-template-columns: 1fr; gap: .5rem; margin-top: .5rem; }
  .auth-story-list .icon { flex-basis: 28px; width: 28px; height: 28px; padding: 6px; }
  .auth-panel { padding: 1.75rem 1.25rem 2.5rem; }
  .auth-card { padding: 1.75rem 1.4rem; }
}
@media (max-width: 560px) {
  .auth-story-list li:nth-child(n+2) { display: none; }
  .auth-story > p { display: none; }
}


/* ==========================================================================
   Landing dashboard (/dashboard/) — TAANUS identity sections
   ========================================================================== */
.ghiras-landing { background: linear-gradient(180deg, #FDFBF7 0%, #F3FAF6 100%); padding: 2.5rem 0 0; }
.ghiras-landing-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-bottom: 3rem; }
.ghiras-landing-motto { margin-bottom: .9rem; }
.ghiras-motto-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; border: 1px solid #D8EAE0; border-radius: 999px;
  padding: .45rem 1.1rem .45rem .8rem; font-weight: 700; color: #1E5A48; font-size: .88rem;
  box-shadow: 0 6px 18px rgba(24, 84, 68, .07);
}
.ghiras-motto-badge img { width: 26px; height: 26px; }
.ghiras-landing-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; color: #185444; line-height: 1.4; margin: .4rem 0 .9rem; }
.ghiras-landing-lead { color: #5B6F66; line-height: 1.95; max-width: 56ch; margin: 0 0 1.6rem; }
.ghiras-landing-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.ghiras-trust { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.ghiras-trust-item { display: inline-flex; align-items: center; gap: .45rem; color: #1E5A48; font-weight: 600; font-size: .86rem; }
.ghiras-trust-item .icon { width: 17px; height: 17px; color: #54A47E; }
.ghiras-hero-visual { position: relative; }
.ghiras-hero-visual img { width: 100%; max-width: 480px; border-radius: 24px; box-shadow: 0 26px 60px rgba(24, 84, 68, .16); display: block; margin-inline-start: auto; }
.ghiras-hero-float {
  position: absolute; bottom: -14px; inset-inline-start: 8px;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #185444; color: #F4F7F4; font-size: .8rem; font-weight: 600;
  border-radius: 999px; padding: .5rem 1.1rem; box-shadow: 0 14px 30px rgba(17, 59, 48, .35);
}
.ghiras-hero-float .icon { width: 16px; height: 16px; color: #ECC89D; }

.ghiras-kids-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; padding-bottom: 3.2rem; }
.ghiras-kids-card {
  background: #fff; border: 1px solid #E8F0EB; border-radius: 18px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease; text-align: center; padding-bottom: 1rem;
}
.ghiras-kids-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(24, 84, 68, .1); }
.ghiras-kids-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.ghiras-kids-card h4 { margin: .8rem .9rem .2rem; color: #185444; font-size: .98rem; }
.ghiras-kids-card p { margin: 0 .9rem; color: #6E8378; font-size: .8rem; line-height: 1.7; }

.ghiras-numbers { background: linear-gradient(165deg, #1E5A48 0%, #185444 60%, #123F33 100%); color: #F4F7F4; padding: 3.4rem 0; }
.ghiras-numbers-inner { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.ghiras-numbers-head { text-align: center; margin-bottom: 2.2rem; }
.ghiras-numbers-head .ghiras-eyebrow { color: #ECC89D; }
.ghiras-numbers-head h2 { color: #F4F7F4; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: .3rem 0 0; }
.ghiras-numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.ghiras-number { background: rgba(255,255,255,.07); border: 1px solid rgba(231,243,236,.14); border-radius: 18px; padding: 1.6rem 1rem; text-align: center; }
.ghiras-number strong { display: block; font-size: 2.2rem; font-weight: 800; color: #E7F3EC; }
.ghiras-number span { display: block; margin-top: .3rem; font-size: .85rem; color: #C9D6CD; }

.ghiras-section { padding: 3.6rem 0; background: #fff; }
.ghiras-section--soft { background: #F7FBF8; }
.ghiras-section-head { text-align: center; max-width: 720px; margin: 0 auto 2.4rem; }
.ghiras-section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #185444; margin: .3rem 0 .5rem; }
.ghiras-section-head p { color: #5B6F66; line-height: 1.9; margin: 0; }
.ghiras-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ghiras-module {
  background: #fff; border: 1px solid #E8F0EB; border-radius: 18px; padding: 1.5rem 1.35rem;
  display: flex; flex-direction: column; gap: .5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.ghiras-module:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(24, 84, 68, .1); }
.ghiras-module .icon { width: 42px; height: 42px; padding: 10px; box-sizing: border-box; border-radius: 12px; }
.ghiras-module h3 { margin: .2rem 0 0; font-size: 1.05rem; color: #185444; }
.ghiras-module p { margin: 0; color: #6E8378; font-size: .86rem; line-height: 1.8; }

.ghiras-promise { display: grid; grid-template-columns: 300px 1fr; gap: 2.4rem; align-items: center; max-width: 1000px; margin: 0 auto; }
.ghiras-promise img { width: 100%; border-radius: 22px; box-shadow: 0 20px 50px rgba(24, 84, 68, .14); display: block; }
.ghiras-promise h3 { font-size: 1.5rem; color: #185444; margin: 0 0 .7rem; line-height: 1.6; }
.ghiras-promise p { color: #5B6F66; line-height: 2; margin: 0; }

.ghiras-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; max-width: 960px; margin: 0 auto; }
.ghiras-step { background: #fff; border: 1px solid #E8F0EB; border-radius: 18px; padding: 1.6rem 1.4rem; }
.ghiras-step-num {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: #E7F3EC; color: #185444; font-weight: 800; border-radius: 50%; margin-bottom: .7rem;
}
.ghiras-step h3 { font-size: 1.02rem; color: #185444; margin: 0 0 .35rem; }
.ghiras-step p { margin: 0; color: #6E8378; font-size: .86rem; line-height: 1.8; }

.ghiras-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ghiras-quote { background: #fff; border: 1px solid #E8F0EB; border-radius: 18px; padding: 1.5rem 1.4rem; margin: 0; }
.ghiras-quote blockquote { margin: 0 0 .8rem; color: #3D4F47; line-height: 1.95; font-size: .9rem; }
.ghiras-quote figcaption { color: #54A47E; font-weight: 700; font-size: .8rem; }

.ghiras-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.ghiras-plan { background: #fff; border: 1px solid #E8F0EB; border-radius: 20px; padding: 1.8rem 1.5rem; display: flex; flex-direction: column; }
.ghiras-plan--featured { border: 2px solid #54A47E; box-shadow: 0 20px 46px rgba(24, 84, 68, .14); }
.ghiras-plan h3 { color: #185444; font-size: 1.15rem; margin: 0 0 .5rem; }
.ghiras-price { font-size: 2rem; font-weight: 800; color: #185444; margin-bottom: .4rem; }
.ghiras-price small { font-size: .85rem; font-weight: 600; color: #6E8378; }
.ghiras-plan > p { color: #6E8378; font-size: .85rem; margin: 0 0 1rem; }
.ghiras-plan ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; flex: 1; }
.ghiras-plan li { display: flex; align-items: center; gap: .5rem; color: #3D4F47; font-size: .86rem; }
.ghiras-plan li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #54A47E; flex: 0 0 7px; }

.ghiras-faq { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.ghiras-faq-item { background: #fff; border: 1px solid #E8F0EB; border-radius: 16px; padding: 1rem 1.3rem; }
.ghiras-faq-item summary { cursor: pointer; font-weight: 700; color: #185444; font-size: .95rem; }
.ghiras-faq-item p { margin: .7rem 0 0; color: #5B6F66; line-height: 1.9; font-size: .88rem; }

.ghiras-cta { background: linear-gradient(165deg, #1E5A48 0%, #185444 55%, #123F33 100%); color: #F4F7F4; padding: 3.6rem 0; }
.ghiras-cta-inner { max-width: 760px; margin: 0 auto; text-align: center; padding: 0 1.25rem; }
.ghiras-cta-inner h2 { color: #F4F7F4; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 .6rem; }
.ghiras-cta-inner p { color: #C9D6CD; margin: 0 0 1.6rem; }

@media (max-width: 980px) {
  .ghiras-landing-hero { grid-template-columns: 1fr; }
  .ghiras-hero-visual img { margin-inline: auto; }
  .ghiras-kids-strip { grid-template-columns: repeat(2, 1fr); }
  .ghiras-modules, .ghiras-steps, .ghiras-quotes, .ghiras-plans { grid-template-columns: 1fr 1fr; }
  .ghiras-promise { grid-template-columns: 1fr; }
  .ghiras-promise img { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .ghiras-kids-strip, .ghiras-modules, .ghiras-steps, .ghiras-quotes, .ghiras-plans { grid-template-columns: 1fr; }
  .ghiras-numbers-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Landing header/footer helpers ===== */
.site-header-actions { display: flex; align-items: center; gap: .75rem; }
.site-footer { background: #123F33; color: #C9D6CD; padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.2rem; }
.site-footer h4 { color: #E7F3EC; margin: 0 0 .8rem; font-size: .95rem; }
.site-footer-brand strong { color: #E7F3EC; font-size: 1.05rem; letter-spacing: .02em; }
.site-footer-desc { color: #9DB5A8; line-height: 1.95; font-size: .84rem; margin: .5rem 0 0; }
.site-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer-links a { color: #C9D6CD; font-size: .86rem; }
.site-footer-links a:hover { color: #E7F3EC; }
.site-footer-bottom { border-top: 1px solid rgba(231,243,236,.14); margin-top: 2.2rem; padding-top: 1.2rem; text-align: center; }
.site-footer-bottom p { margin: 0; font-size: .8rem; color: #9DB5A8; }
@media (max-width: 860px) { .site-footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ===== Botanical watermark card accent (subtle, non-intrusive) ===== */
.ghiras-card--botanical {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.96)), url("../img/taanus-botanical-watermark.svg");
  background-size: auto, cover;
  background-position: center, center top;
  background-repeat: no-repeat, no-repeat;
}
