:root {
  --rattl-primary: #14b8a6;
  --rattl-primary-dark: #0d9488;
  --rattl-bg: #f8fafc;
  --rattl-bg-soft: #f0fdfa;
  --rattl-surface: #ffffff;
  --rattl-border: #d9f3ef;
  --rattl-text: #0f172a;
  --rattl-muted: #64748b;
  --rattl-shadow: 0 18px 55px rgba(20, 184, 166, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  color: var(--rattl-text);
  background: linear-gradient(180deg, var(--rattl-bg-soft) 0%, #ffffff 42%, var(--rattl-bg) 100%);
  -webkit-font-smoothing: antialiased;
}

a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }

.theme-shell {
  min-height: 100vh;
}

.theme-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(20, 184, 166, 0.12);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.theme-container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.theme-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  overflow: visible;
}

.theme-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.theme-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-nav-link {
  color: #334155;
  font-weight: 700;
  text-decoration: none;
}

.theme-nav-link:hover { color: var(--rattl-primary-dark); }

.theme-btn,
.theme-btn-secondary,
.theme-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.theme-btn {
  background: var(--rattl-primary-dark);
  color: #fff;
}

.theme-btn:hover { background: #0b7f76; }

.theme-btn-secondary {
  background: #fff;
  color: var(--rattl-primary-dark);
  border-color: rgba(20, 184, 166, 0.25);
}

.theme-btn-secondary:hover {
  background: var(--rattl-bg-soft);
}

.theme-btn-ghost {
  background: rgba(20, 184, 166, 0.08);
  color: var(--rattl-primary-dark);
  border-color: rgba(20, 184, 166, 0.14);
}

.theme-card {
  border-radius: 28px;
  background: var(--rattl-surface);
  border: 1px solid rgba(20, 184, 166, 0.12);
  box-shadow: var(--rattl-shadow);
}

.theme-card-muted {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.theme-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.14);
  background: rgba(20, 184, 166, 0.08);
  color: var(--rattl-primary-dark);
  padding: .5rem .9rem;
  font-size: .85rem;
  font-weight: 800;
}

.theme-input,
.theme-select,
.theme-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  background: #fff;
  color: var(--rattl-text);
  padding: .9rem 1rem;
  outline: none;
}

.theme-input:focus,
.theme-select:focus,
.theme-textarea:focus {
  border-color: var(--rattl-primary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.theme-prose {
  line-height: 2;
  color: #334155;
}

.theme-prose h1,
.theme-prose h2,
.theme-prose h3 {
  color: var(--rattl-text);
  font-weight: 900;
}

.theme-prose p,
.theme-prose li { color: #475569; }

.theme-footer {
  border-top: 1px solid rgba(20, 184, 166, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 768px) {
  .theme-container { width: min(100%, calc(100% - 1.25rem)); }
  .theme-nav { gap: .75rem; }
}
