/* ============================================
   شاي بالنعناع — Tea & Mint Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Kufi+Arabic:wght@400;600;700&display=swap');

/* ── Tokens ── */
:root {
  /* Mint greens */
  --mint-50:  #f0fdf4;
  --mint-100: #dcfce7;
  --mint-200: #bbf7d0;
  --mint-300: #86efac;
  --mint-400: #4ade80;
  --mint-500: #22c55e;
  --mint-600: #16a34a;
  --mint-700: #15803d;
  --mint-800: #166534;
  --mint-900: #14532d;

  /* Tea / amber tones */
  --tea-50:  #fffbeb;
  --tea-100: #fef3c7;
  --tea-200: #fde68a;
  --tea-300: #fcd34d;
  --tea-400: #fbbf24;
  --tea-500: #d4a574;
  --tea-600: #b8860b;
  --tea-700: #92400e;
  --tea-800: #78350f;
  --tea-900: #451a03;

  /* Dark backgrounds */
  --bg-dark:    #0d1117;
  --bg-surface: #161b22;
  --bg-card:    #1c2333;
  --bg-hover:   #22293a;
  --bg-input:   #0d1117;

  /* Glass */
  --glass-bg:     rgba(22, 27, 34, 0.75);
  --glass-border: rgba(78, 206, 130, 0.15);
  --glass-glow:   rgba(78, 206, 130, 0.06);

  /* Text */
  --text-primary:   #e6edf3;
  --text-secondary: #8b949e;
  --text-muted:     #6e7681;
  --text-accent:    #4ece82;

  /* Gradients */
  --gradient-mint: linear-gradient(135deg, #22c55e, #4ade80, #16a34a);
  --gradient-tea:  linear-gradient(135deg, #d4a574, #fbbf24, #b8860b);
  --gradient-hero: linear-gradient(160deg, #0d1117 0%, #0f1d15 40%, #0d1117 100%);
  --gradient-card: linear-gradient(145deg, rgba(34,197,94,0.06), rgba(212,165,116,0.04));

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 14px rgba(0,0,0,0.4);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(34,197,94,0.15);

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Outfit', 'Noto Kufi Arabic', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--mint-300);
}

img {
  max-width: 100%;
  display: block;
}

/* ── Animated Background ── */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: floatOrb 20s ease-in-out infinite;
}

.bg-pattern::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,165,116,0.06) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: floatOrb 25s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -40px) scale(1.1); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Floating Mint Leaves ── */
.leaf {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  font-size: 2rem;
  animation: leafFall linear infinite;
}
.leaf:nth-child(1) { left: 10%; animation-duration: 18s; animation-delay: 0s; font-size: 1.5rem; }
.leaf:nth-child(2) { left: 25%; animation-duration: 22s; animation-delay: 3s; font-size: 2.5rem; }
.leaf:nth-child(3) { left: 50%; animation-duration: 16s; animation-delay: 7s; font-size: 1.8rem; }
.leaf:nth-child(4) { left: 70%; animation-duration: 24s; animation-delay: 2s; font-size: 2rem; }
.leaf:nth-child(5) { left: 85%; animation-duration: 20s; animation-delay: 5s; font-size: 1.6rem; }
.leaf:nth-child(6) { left: 40%; animation-duration: 19s; animation-delay: 9s; font-size: 2.2rem; }

@keyframes leafFall {
  0%   { transform: translateY(-100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.07; }
  90%  { opacity: 0.07; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── Steam Animation ── */
.steam-container {
  position: relative;
  display: inline-block;
}

.steam {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 3px;
  height: 30px;
  background: linear-gradient(to top, rgba(34,197,94,0.3), transparent);
  border-radius: 50%;
  animation: steamRise 2.5s ease-in-out infinite;
  filter: blur(3px);
}
.steam:nth-child(1) { left: 40%; animation-delay: 0s; }
.steam:nth-child(2) { left: 50%; animation-delay: 0.5s; }
.steam:nth-child(3) { left: 60%; animation-delay: 1s; }

@keyframes steamRise {
  0%   { opacity: 0; transform: translateY(0) scaleX(1); }
  50%  { opacity: 0.6; transform: translateY(-20px) scaleX(1.5); }
  100% { opacity: 0; transform: translateY(-50px) scaleX(2); }
}

/* ── Layout ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 480px;
}

.container--medium {
  max-width: 800px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(13, 17, 23, 0.8);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 24px;
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar__brand-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 6px rgba(34,197,94,0.4));
}

.navbar__brand-text {
  background: var(--gradient-mint);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar__link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.navbar__link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.navbar__link--active {
  color: var(--text-accent);
  background: rgba(34,197,94,0.1);
}

.navbar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.navbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--bg-dark);
}

/* ── Hero Section ── */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  background: var(--gradient-hero);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--text-accent);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero__title span {
  background: var(--gradient-mint);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero__tea-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  display: inline-block;
  animation: fadeInUp 0.6s ease-out, teaBob 3s ease-in-out infinite 1s;
  filter: drop-shadow(0 0 20px rgba(34,197,94,0.3));
}

@keyframes teaBob {
  0%, 100% { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Features Grid ── */
.features {
  padding: 80px 24px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-mint);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,197,94,0.3);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-mint);
  color: #0d1117;
  box-shadow: 0 4px 15px rgba(34,197,94,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(34,197,94,0.4);
  color: #0d1117;
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn--secondary:hover {
  background: var(--bg-hover);
  border-color: rgba(34,197,94,0.3);
  color: var(--text-primary);
}

.btn--outline {
  background: transparent;
  color: var(--text-accent);
  border: 1px solid var(--text-accent);
}
.btn--outline:hover {
  background: rgba(34,197,94,0.1);
  color: var(--text-accent);
}

.btn--danger {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.2);
}
.btn--danger:hover {
  background: rgba(239,68,68,0.25);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

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

.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ── Cards / Glass Panels ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.glass-card--glow {
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ── Forms ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid rgba(78,206,130,0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--mint-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-error {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #ef4444;
}

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--gradient-hero);
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card__icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(34,197,94,0.3));
}

.auth-card__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-card__footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-card__divider::before,
.auth-card__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* ── Alert / Toast ── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 0.3s ease-out;
}

.alert--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
}

.alert--success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--mint-300);
}

.alert--warning {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  color: var(--tea-300);
}

.alert--info {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  color: #93c5fd;
}

/* ── Dashboard Layout ── */
.dashboard {
  padding: 32px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard__title {
  font-size: 1.6rem;
  font-weight: 700;
}

.dashboard__greeting {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ── Notes Grid ── */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.note-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  cursor: default;
}

.note-card:hover {
  border-color: rgba(34,197,94,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.note-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  word-break: break-word;
}

.note-card__content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: break-word;
  max-height: 120px;
  overflow: hidden;
  position: relative;
}

.note-card__content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg-card));
}

.note-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.note-card__actions {
  display: flex;
  gap: 8px;
}

.note-card__action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.note-card__action:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.note-card__action--delete:hover {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

/* ── Add Note Card ── */
.note-card--add {
  border-style: dashed;
  border-color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  cursor: pointer;
  color: var(--text-muted);
  gap: 8px;
}

.note-card--add:hover {
  border-color: var(--text-accent);
  color: var(--text-accent);
  background: rgba(34,197,94,0.03);
}

.note-card--add__icon {
  font-size: 2rem;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  transition: all var(--transition);
}

.modal__close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ── Admin Panel ── */
.admin-section {
  margin-top: 40px;
}

.admin-section__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(212,165,116,0.15);
  color: var(--tea-500);
  border: 1px solid rgba(212,165,116,0.2);
}

/* ── Logs Viewer ── */
.log-viewer {
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  max-height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--mint-300);
}

.log-viewer::-webkit-scrollbar {
  width: 6px;
}
.log-viewer::-webkit-scrollbar-track {
  background: transparent;
}
.log-viewer::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

.log-entry {
  padding: 2px 0;
  border-bottom: 1px solid rgba(78,206,130,0.05);
}

.log-users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.log-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text-primary);
}

.log-user-item:hover {
  border-color: rgba(34,197,94,0.3);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.log-user-item__icon {
  font-size: 1.4rem;
}

.log-user-item__info {
  flex: 1;
  min-width: 0;
}

.log-user-item__uid {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── OTP Page ── */
.otp-input {
  letter-spacing: 12px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 16px;
}

/* ── WAF Blocked ── */
.waf-block {
  text-align: center;
  padding: 60px 24px;
}

.waf-block__icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.waf-block__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 8px;
}

.waf-block__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--glass-border);
}

.footer a {
  color: var(--text-accent);
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar__inner {
    height: 56px;
  }
  .hero {
    padding: 60px 16px 50px;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .dashboard__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .glass-card {
    padding: 24px 20px;
  }
}

/* ── Page Transition ── */
.page-enter {
  animation: pageIn 0.4s ease-out;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state__desc {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ── Skeleton Loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton--text {
  height: 14px;
  margin-bottom: 8px;
  width: 80%;
}

.skeleton--title {
  height: 20px;
  margin-bottom: 12px;
  width: 60%;
}

.skeleton--card {
  height: 180px;
}
