/* ========================================================================
   نقاط الأثر — هوية بصرية جديدة مستوحاة من جمعية تحفيظ عنيزة (إنجاز)
   Palette: Teal primary · Gold accent · Navy dark · Cream backgrounds
   ======================================================================== */

:root {
  --primary: #185C57;
  --primary-dark: #0d3d3a;
  --primary-soft: rgba(24, 92, 87, 0.08);
  --primary-softer: rgba(24, 92, 87, 0.04);
  --accent: #be9558;
  --accent-hover: #d4a96a;
  --accent-soft: rgba(190, 149, 88, 0.12);
  --navy: #09131b;
  --navy-2: #1a2a32;
  --text: #1a2a32;
  --muted: #7a8a92;
  --muted-2: #b8c0c5;
  --bg: #f7f6f3;
  --bg-2: #eae8e4;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --border-2: rgba(0, 0, 0, 0.09);
  --ok: #185C57;
  --ok-soft: rgba(24, 92, 87, 0.1);
  --warn: #be9558;
  --warn-soft: rgba(190, 149, 88, 0.12);
  --err: #c04a3b;
  --err-soft: rgba(192, 74, 59, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.06);
  --shadow-brand: 0 4px 18px rgba(24, 92, 87, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Tajawal", "Segoe UI", "Arial", sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  line-height: 1.55;
}

body {
  display: flex;
  flex-direction: column;
}
.container { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* Subtle brand-tinted scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================
   Top Navbar (dark navy strip)
   ============================ */
.site-header {
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  /* max-width: 1100px; */
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.site-logo img {
    background-color: white;
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    border-radius: 50%;
    padding: 2px;
}
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo-text b {
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
}
.site-logo-text span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============================
   Container
   ============================ */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}

/* ============================
   Brand hero (below navbar)
   ============================ */
.brand {
  text-align: center;
  padding: 8px 0 18px;
}
.brand-logo { display: none; }
.brand h1 {
  font-size: clamp(22px, 5.2vw, 30px);
  margin: 0;
  letter-spacing: 0.5px;
  color: var(--navy-2);
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.brand h1::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  transform: translateX(50%);
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}
.brand p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 400;
}

/* ============================
   Cards
   ============================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
  margin: 14px 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 10px;
  font-size: clamp(17px, 4vw, 21px);
  font-weight: 800;
  color: var(--navy-2);
  position: relative;
  padding-inline-start: 14px;
}
.card h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

/* ============================
   Forms
   ============================ */
label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  color: var(--navy-2);
  font-size: 13px;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: var(--muted-2); }
input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  transition: background 0.25s, border-color 0.25s, transform 0.15s, box-shadow 0.25s;
  box-shadow: 0 2px 6px rgba(24, 92, 87, 0.12);
}
.btn:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(24, 92, 87, 0.22);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: wait; box-shadow: none; }

.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}
.btn.secondary:hover:not(:disabled) {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.btn.ok {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 3px 12px rgba(190, 149, 88, 0.25);
}
.btn.ok:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(190, 149, 88, 0.35);
}

.btn.err {
  background: var(--err);
  border-color: var(--err);
  box-shadow: 0 2px 8px rgba(192, 74, 59, 0.18);
}
.btn.err:hover:not(:disabled) {
  background: #a43b2e;
  border-color: #a43b2e;
}

.btn.block { display: flex; width: 100%; }
.btn.sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }

/* ============================
   Rows / layout
   ============================ */
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }

/* ============================
   Link/copy box
   ============================ */
.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg);
  border: 1px dashed var(--border-2);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  word-break: break-all;
  font-family: "SF Mono", Consolas, monospace;
  direction: ltr;
  font-size: 13px;
  color: var(--navy-2);
}
.link-box span { flex: 1; }
.link-box .btn {
  flex-shrink: 0;
  padding: 8px 14px;
  min-height: 36px;
  font-size: 13px;
}

/* ============================
   Progress
   ============================ */
.progress {
  height: 14px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 8px;
  position: relative;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.6s ease;
  border-radius: 999px;
  position: relative;
}
.progress > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  animation: progress-shine 2.4s linear infinite;
}
@keyframes progress-shine {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================
   Stats grid
   ============================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.2s;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-brand);
}
.stat:hover::before { opacity: 1; }
.stat .v {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ============================
   Segmented nav (pill-tabs)
   ============================ */
.nav {
  display: inline-flex;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  justify-content: center;
  margin: 4px auto 18px;
  flex-wrap: wrap;
  max-width: 100%;
}
.nav a {
  padding: 9px 18px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  border: none;
  font-size: 14px;
  transition: all 0.22s;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--navy-2);
}
.nav a.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.nav-wrap {
  text-align: center;
  margin: 8px 0 10px;
}

/* ============================
   Toolbar (search + export)
   ============================ */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}
.toolbar .search {
  flex: 1 1 220px;
  min-width: 0;
  position: relative;
}
.toolbar .search input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: #fff;
}
.toolbar .search::before {
  content: "🔍";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.55;
  pointer-events: none;
}
.toolbar .btn.export {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 13px;
  min-height: 40px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 3px 12px rgba(190, 149, 88, 0.22);
}
.toolbar .btn.export:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ============================
   Filters (chip row)
   ============================ */
.filters {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.filter {
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--border-2);
  white-space: nowrap;
  transition: all 0.22s;
}
.filter:hover {
  color: var(--primary);
  border-color: var(--primary-soft);
}
.filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(24, 92, 87, 0.2);
}

/* ============================
   Tables
   ============================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  min-width: 480px;
}
th, td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
th {
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.3px;
}
tbody tr:hover { background: var(--primary-softer); }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================
   Badges
   ============================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge.pending {
  background: var(--warn-soft);
  color: #8a6a28;
  border-color: rgba(190, 149, 88, 0.25);
}
.badge.approved {
  background: var(--ok-soft);
  color: var(--primary-dark);
  border-color: rgba(24, 92, 87, 0.22);
}
.badge.rejected {
  background: var(--err-soft);
  color: #8a2f24;
  border-color: rgba(192, 74, 59, 0.25);
}
.badge.paid {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
}

/* ============================
   Messages
   ============================ */
.msg {
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.msg:not(:empty) { display: block; }
.msg.err {
  color: var(--err);
  background: var(--err-soft);
  border: 1px solid rgba(192, 74, 59, 0.25);
}
.msg.ok {
  color: var(--primary-dark);
  background: var(--ok-soft);
  border: 1px solid rgba(24, 92, 87, 0.2);
}

/* ============================
   Helpers
   ============================ */
.center { text-align: center; }
.small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

/* ============================
   Loader
   ============================ */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  gap: 16px;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--bg-2);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loader-txt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================
   Goals list (ambassador home)
   ============================ */
.goals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.goal-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.2s;
}
.goal-item:hover {
  border-color: rgba(24, 92, 87, 0.2);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.goal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.goal-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-2);
}
.goal-pct {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.goal-nums {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}
.goal-nums b { color: var(--navy-2); font-weight: 700; }
.goal-bar {
  height: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.goal-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.4s;
}
.goals-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  margin-inline-start: 8px;
  background: var(--primary-soft, rgba(24, 92, 87, 0.1));
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}
.goal-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}
.btn.goal-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  min-height: 28px;
  border-radius: 999px;
  box-shadow: none;
  letter-spacing: 0;
}
.btn.goal-btn:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}

/* ============================
   Decorative footer strip
   ============================ */
.site-footer {
  text-align: center;
  padding: 24px 20px 32px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  background: #fff;
}
.site-footer b { color: var(--primary); font-weight: 700; }

/* ============================
   Responsive
   ============================ */
/* ---- Tablet ---- */
@media (max-width: 768px) {
  .container { padding: 20px 14px 40px; }
  .card { padding: 20px 16px; }
  table { min-width: 420px; }
}

/* ---- Mobile ---- */
@media (max-width: 560px) {
  .site-header-inner {
    padding: 10px 14px;
    gap: 8px;
  }
  .site-logo { gap: 10px; min-width: 0; }
  .site-logo img { height: 30px; flex-shrink: 0; }
  .site-logo-text { min-width: 0; }
  .site-logo-text b {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-logo-text span {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }

  .container { padding: 16px 12px 32px; }
  .brand { padding: 4px 0 14px; }
  .brand h1 { font-size: 22px; }
  .brand p { font-size: 13px; }

  .card {
    padding: 16px 14px;
    margin: 12px 0;
    border-radius: 12px;
  }
  .card h2 { font-size: 17px; }

  .row { gap: 10px; }
  .row.stack { flex-direction: column; }
  .row.stack > * { width: 100%; min-width: 0; }

  .btn {
    padding: 11px 18px;
    font-size: 14px;
  }
  .btn.sm { padding: 7px 12px; font-size: 12px; }

  label { font-size: 13px; margin: 12px 0 6px; }
  input, select { padding: 11px 12px; font-size: 16px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 14px 10px; }
  .stat .v { font-size: 20px; }
  .stat .l { font-size: 11px; }
  /* Center an orphan stat on the last row */
  .stat-grid > .stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 5px);
    margin: 0 auto;
    width: 100%;
  }

  .toolbar { gap: 8px; margin: 10px 0 4px; }
  .toolbar .search input { padding: 10px 38px 10px 12px; font-size: 14px; }
  .toolbar .btn.export {
    padding: 9px 14px;
    font-size: 13px;
    min-height: 38px;
    flex: 1 1 auto;
  }

  .link-box {
    flex-direction: column;
    align-items: stretch;
    font-size: 12px;
    padding: 10px 12px;
  }
  .link-box .btn { width: 100%; }

  /* Segmented nav: scrollable on tiny screens */
  .nav-wrap {
    margin: 6px -4px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    padding: 0 4px;
    scrollbar-width: none;
  }
  .nav-wrap::-webkit-scrollbar { display: none; }
  .nav {
    display: inline-flex;
    flex-wrap: nowrap;
    margin: 0;
  }
  .nav a {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .filters { gap: 6px; }
  .filter { padding: 6px 12px; font-size: 12px; }

  /* Tables: readable, no forced wide min-width */
  .table-wrap { border-radius: 10px; }
  table {
    font-size: 13px;
    min-width: 0;
  }
  th, td { padding: 10px 10px; }
  th { font-size: 11px; }

  /* Card-style tables on mobile (admin pages) */
  .table-wrap.has-cards,
  .table-wrap:has(.table-cards) {
    border: none;
    background: transparent;
    overflow: visible;
    padding: 0;
  }
  table.table-cards {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 13px;
  }
  table.table-cards thead {
    display: none;
  }
  table.table-cards tbody {
    display: block;
    width: 100%;
  }
  table.table-cards tbody tr {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
  }
  table.table-cards tbody tr:hover { background: #fff; }
  table.table-cards tbody tr:last-child { margin-bottom: 0; }
  table.table-cards td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    text-align: left;
    font-size: 13px;
    color: var(--text);
    word-break: break-word;
    min-width: 0;
  }
  table.table-cards td:last-child { border-bottom: none; }
  table.table-cards td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
  }
  /* Action cell wraps full-width (row-actions) */
  table.table-cards td.td-actions,
  table.table-cards td[data-label="إجراء"] {
    display: block;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  table.table-cards td.td-actions::before,
  table.table-cards td[data-label="إجراء"]::before {
    display: block;
    margin-bottom: 8px;
    min-width: 0;
    text-align: right;
  }
  table.table-cards td[data-label="إجراء"] .row-actions {
    display: flex;
    gap: 6px;
    width: 100%;
  }
  table.table-cards td[data-label="إجراء"] .row-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .row-actions { gap: 6px; }
  .row-actions .btn { flex: 1; min-width: 0; }

  .badge { padding: 3px 9px; font-size: 11px; }

  .msg { font-size: 13px; padding: 9px 12px; }

  .progress { height: 12px; }

  .goal-item { padding: 12px 14px; }
  .goal-name { font-size: 14px; }
  .goal-nums { font-size: 12px; gap: 6px; }

  .site-footer { padding: 18px 14px 24px; font-size: 11px; }
}

/* ---- Very small phones ---- */
@media (max-width: 380px) {
  .site-logo-text span { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 7px 12px; font-size: 12px; }
}
