/* ============================
   YKS Pusula — Modern CSS
   ============================ */
:root {
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: rgba(79, 70, 229, 0.1);
  --accent: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --surface: #1e293b;
  --surface-soft: #283548;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --primary: #818cf8;
  --primary-hover: #6366f1;
  --primary-soft: rgba(129, 140, 248, 0.14);
  --accent: #38bdf8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: transform 0.15s, border-color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.86rem;
  border-radius: 9px;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

.text-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.12), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.12), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Hero Right Card */
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.countdown-box,
.daily-tip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
}

.countdown-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cd-unit {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem;
  text-align: center;
}

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.cd-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.countdown-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.countdown-target input {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.84rem;
}

.tip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.tip-badge {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
}

.tip-refresh {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.tip-refresh:hover {
  border-color: var(--primary);
}

.daily-tip-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
}

/* Quick Overview */
.quick-overview {
  padding: 1rem 0 2.5rem;
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ov-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.ov-icon {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.ov-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.ov-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin: 0 0 0.35rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.search-wrap input {
  width: min(320px, 100%);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.93rem;
}

.search-wrap input:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

/* Filter Bars */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.resource-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.filter-group .filter-bar {
  margin-bottom: 0;
}

.filter-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  min-width: 60px;
}

.golden-rule-banner {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  margin: 1rem 0 1.75rem;
  font-size: 0.93rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.card-subtitle {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-tyt {
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
}

.badge-ayt {
  background: rgba(168, 85, 247, 0.14);
  color: #9333ea;
}

.badge-both {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-temel {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.badge-orta {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.badge-ileri {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

[data-theme="dark"] .badge-tyt { color: #38bdf8; }
[data-theme="dark"] .badge-ayt { color: #c084fc; }
[data-theme="dark"] .badge-temel { color: #34d399; }
[data-theme="dark"] .badge-orta { color: #fbbf24; }
[data-theme="dark"] .badge-ileri { color: #f87171; }

.card-desc {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-chip {
  font-size: 0.77rem;
  background: var(--surface-soft);
  color: var(--text-muted);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.yt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 700;
}

.yt-link:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Tips Tabs & Panel */
.tips-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.tip-tab {
  padding: 0.65rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tip-tab:hover {
  border-color: var(--primary);
}

.tip-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tip-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.tip-panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.tip-panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.tip-panel p.lead {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.tip-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tip-list li {
  color: var(--text);
  font-size: 0.95rem;
}

.tip-callout {
  background: var(--surface-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
}

.tip-callout h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--primary);
}

.tip-callout p,
.tip-callout ul {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tip-callout ul {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}

/* Schedule Grid */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.schedule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.sch-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
  margin-bottom: 0.5rem;
}

.badge-ayt {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-review {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

[data-theme="dark"] .sch-badge { color: #38bdf8; }
[data-theme="dark"] .badge-ayt { color: #818cf8; }
[data-theme="dark"] .badge-review { color: #34d399; }

.schedule-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.schedule-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.schedule-card strong {
  color: var(--text);
}

/* Interactive Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tool-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.tool-badge {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.tool-header select {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Pomodoro */
.pomo-modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.pomo-mode {
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.pomo-mode.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pomo-display {
  text-align: center;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.pomo-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.pomo-time {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.pomo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* Net Calculator */
.net-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.net-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.7fr;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.86rem;
}

.net-row label {
  font-weight: 600;
}

.net-row input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-align: center;
  font-size: 0.86rem;
}

.net-row .row-net {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
}

.net-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-soft);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.net-res-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.net-res-value {
  font-size: 1.25rem;
  color: var(--primary);
  margin-left: 0.35rem;
}

.net-history {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 150px;
  overflow-y: auto;
}

.net-hist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.81rem;
  padding: 0.4rem 0.6rem;
  background: var(--surface-soft);
  border-radius: 8px;
}

.net-hist-del {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-weight: 700;
}

/* Todo List */
.todo-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.todo-form input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.88rem;
}

.todo-list {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 0.87rem;
}

.todo-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  flex: 1;
}

.todo-item.done span {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
}

.todo-del:hover {
  color: var(--danger);
}

.todo-progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transition: width 0.25s ease;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-note {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 55ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .tip-panel-grid,
  .tools-grid,
  .schedule-grid,
  .overview-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.85rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}
