:root {
  /* Design tokens — Dark Luxury v2.1.0 (text-only, no icons) */
  --bg-base: #111111;
  --surface-1: #181818;
  --surface-2: #222222;
  --surface-3: #2a2a2a;
  --brand-crimson: #3D0101;
  --brand-crimson-light: #5a0a0a;
  --accent-gold: #D4AF37;
  --accent-gold-soft: rgba(212, 175, 55, 0.12);
  --text-primary: #E9DFC9;
  --text-secondary: rgba(233, 223, 201, 0.6);
  --text-tertiary: rgba(233, 223, 201, 0.4);
  --divider: rgba(255, 255, 255, 0.08);

  --ok-bg: #10241a;   --ok-border: #3f8f5c;   --ok-text: #7fd39a;
  --warn-bg: #241d0e; --warn-border: var(--accent-gold); --warn-text: var(--accent-gold);
  --err-bg: #2a1414;  --err-border: #b04343;  --err-text: #e08585;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --shadow-card: 0 2px 10px rgba(0,0,0,0.25);
  --shadow-elevated: 0 8px 24px rgba(0,0,0,0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --brand: var(--brand-crimson);
  --brand-light: var(--brand-crimson-light);
  --bg: var(--bg-base);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; min-height: 100vh; }

h1, h2, h3 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; color: var(--text-primary); margin: 0 0 4px; letter-spacing: -0.01em; }
h1 { font-size: 1.4rem; font-weight: 700; }
h2 { font-size: 0.78rem; font-weight: 700; margin: var(--space-5) 0 var(--space-3); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); }
h3 { font-size: 0.95rem; font-weight: 600; }
p { line-height: 1.55; color: var(--text-primary); margin: 0 0 8px; }
.muted { color: var(--text-secondary); font-size: 0.85rem; }
.subtitle { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: var(--space-4); }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 16px calc(14px + env(safe-area-inset-top, 0px));
  background: var(--surface-1);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 30;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 7px 10px;
}
.menu-toggle:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.brand { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--accent-gold); }
.topbar .brand-mobile { flex: 1; }
.topbar-crumb { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-secondary); overflow: hidden; white-space: nowrap; }
.topbar-crumb .sep { opacity: 0.5; }
.topbar-crumb .current { color: var(--text-primary); font-weight: 600; }
.auth-status { font-size: 0.76rem; color: var(--text-secondary); white-space: nowrap; border: 1px solid var(--divider); border-radius: 999px; padding: 5px 12px; }

/* ---------- Sidebar (desktop) ---------- */
.sidebar { display: none; }
.sidebar-group-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: var(--space-4) 12px 6px;
}
.sidebar-group-label:first-of-type { margin-top: 0; }
.sidebar-nav { display: flex; flex-direction: column; gap: 1px; margin-top: var(--space-4); }
.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: none;
  background: none;
  color: var(--text-secondary);
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
  position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--text-primary); }
.nav-item.active { background: var(--accent-gold-soft); color: var(--accent-gold); font-weight: 700; }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--accent-gold);
  border-radius: 0 3px 3px 0;
}
.nav-item.core {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 12px;
}
.nav-item.core .ni-title { font-size: 0.9rem; font-weight: 600; color: inherit; }
.nav-item.core .ni-sub { font-size: 0.7rem; color: var(--text-tertiary); font-weight: 400; }
.nav-item.core.active .ni-sub { color: rgba(212, 175, 55, 0.65); }
.nav-divider { height: 1px; background: var(--divider); margin: var(--space-3) 4px; }
.sidebar-scrim { display: none; }

/* ---------- Main view ---------- */
.view {
  flex: 1;
  padding: var(--space-4);
  padding-bottom: 96px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: var(--surface-1);
  border-top: 1px solid var(--divider);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 20;
}
.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 11px 4px 9px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 160ms var(--ease);
}
.tab-btn.active { color: var(--accent-gold); }
.tab-btn.active::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-gold);
  margin-bottom: 4px;
}

/* ---------- Cards & surfaces ---------- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-card);
}
.card-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

.greeting-card {
  background: linear-gradient(135deg, var(--brand-crimson) 0%, var(--surface-1) 130%);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.greeting-card h1 { font-size: 1.4rem; }
.greeting-card .muted { color: rgba(233,223,201,0.75); }

/* ---------- Hero Luck Engine ---------- */
.hero-luck {
  background: linear-gradient(150deg, var(--brand-crimson) 0%, var(--surface-1) 120%);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.hero-luck-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.hero-luck-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(233,223,201,0.6); margin-bottom: 6px; }
.hero-luck-score { font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--accent-gold); line-height: 1; }
.hero-luck-score sup { font-size: 1rem; font-weight: 600; color: rgba(233,223,201,0.6); margin-left: 2px; }
.hero-luck-state {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--accent-gold);
  color: var(--accent-gold); white-space: nowrap;
}
.hero-luck-summary { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.9rem; color: var(--text-primary); }
.hero-luck-summary .cap { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(233,223,201,0.55); margin-bottom: 4px; }

/* ---------- 4 Pillars Matrix ---------- */
.pillars-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.pillar-card {
  background: var(--surface-1);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-2);
  text-align: center;
}
.pillar-card .label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 6px; }
.pillar-card .value { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-primary); }
.pillar-card .value.pos { color: var(--ok-text); }
.pillar-card .value.warn { color: var(--warn-text); }
@media (max-width: 480px) { .pillars-matrix { grid-template-columns: repeat(2, 1fr); } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: var(--space-5) 0 var(--space-3); }
.section-head h2 { margin: 0; }
.section-link { font-size: 0.78rem; color: var(--accent-gold); background: none; border: none; cursor: pointer; font-weight: 600; }

/* ---------- Quick launcher ---------- */
.quick-launcher { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--divider); border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-3); }
.quick-launcher-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-1); padding: 13px var(--space-4);
  cursor: pointer; transition: background 140ms var(--ease);
  border-bottom: 1px solid var(--divider);
}
.quick-launcher-item:last-child { border-bottom: none; }
.quick-launcher-item:hover { background: var(--surface-2); }
.quick-launcher-item .q-text { font-size: 0.87rem; color: var(--text-primary); }
.quick-launcher-item .q-arrow { color: var(--accent-gold); font-size: 0.8rem; }

/* ---------- Horizontal scroller ---------- */
.hscroll { display: flex; gap: var(--space-3); overflow-x: auto; padding-bottom: 6px; margin: 0 -4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: 0 0 auto; }

.mini-app-card {
  width: 136px;
  background: var(--surface-1);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: pointer;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease);
}
.mini-app-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.mini-app-card .mono { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-gold-soft); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 0.85rem; margin-bottom: var(--space-2); }
.mini-app-card .name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.mini-app-card .hint { font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- App Store cards ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}
.app-card {
  background: var(--surface-1);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.app-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.app-card .mono {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-gold-soft); color: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 1rem;
  margin-bottom: 2px;
}
.app-card .name { font-weight: 700; font-size: 1rem; }
.app-card .desc { font-size: 0.82rem; color: var(--text-secondary); flex: 1; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  width: fit-content;
}
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.status-pill.available { background: var(--ok-bg); color: var(--ok-text); }
.status-pill.upcoming { background: var(--warn-bg); color: var(--warn-text); }
.status-pill.building { background: var(--surface-2); color: var(--text-secondary); }

.app-card .cta {
  margin-top: var(--space-2);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 160ms var(--ease);
}
.app-card .cta.primary { background: var(--brand-crimson); color: var(--accent-gold); }
.app-card .cta.primary:hover { background: var(--brand-crimson-light); }
.app-card .cta.disabled { background: var(--surface-2); color: var(--text-tertiary); cursor: not-allowed; }

/* ---------- Banners ---------- */
.banner { border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); font-size: 0.85rem; border: 1px solid var(--divider); }
.banner-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.banner-ok { background: var(--ok-bg); border-color: var(--ok-border); }
.banner-err { background: var(--err-bg); border-color: var(--err-border); }
.banner strong { color: var(--text-primary); }
.banner p { margin: 4px 0 0; color: var(--text-secondary); }

/* ---------- Forms ---------- */
label { display: block; font-size: 0.85rem; margin: var(--space-3) 0 4px; color: var(--text-secondary); }
input[type=text], input[type=date], input[type=time], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--surface-2);
  color: var(--text-primary);
  transition: border-color 160ms var(--ease);
}
input:focus, select:focus { outline: none; border-color: var(--accent-gold); }
input::placeholder { color: var(--text-tertiary); }

button.primary {
  margin-top: var(--space-4);
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand-crimson);
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 160ms var(--ease);
}
button.primary:disabled { background: var(--surface-2); color: var(--text-secondary); cursor: not-allowed; }
button.primary:not(:disabled):hover { background: var(--brand-crimson-light); }

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--accent-gold); border-top-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

pre.result {
  background: var(--surface-2);
  color: var(--text-primary);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--divider);
}

.list-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 0.9rem; }
.list-item:last-child { border-bottom: none; }

/* ---------- Empty / coming-soon state ---------- */
.empty-state { text-align: center; padding: var(--space-6) var(--space-4); }
.empty-state .mono {
  width: 46px; height: 46px; border-radius: 12px; margin: 0 auto var(--space-3);
  background: var(--accent-gold-soft); color: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 1.15rem;
}
.empty-state h2 { margin-top: 0; text-transform: none; font-size: 1.05rem; letter-spacing: normal; color: var(--text-primary); }
.empty-state .muted { max-width: 380px; margin: 0 auto; }

/* ---------- Skeleton loading ---------- */
.skeleton { background: var(--surface-2); border-radius: var(--radius-sm); height: 14px; margin-bottom: 8px; animation: skeleton-pulse 1.4s ease-in-out infinite; }
@keyframes skeleton-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------- Dual pane (Bát Tự + Ora AI Copilot) ---------- */
.dual-pane { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.ora-pane {
  background: var(--surface-1);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.ora-pane-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--divider); }
.ora-pane-head .mono { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-gold-soft); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 0.85rem; }
.ora-pane-head .t { font-weight: 700; font-size: 0.92rem; }
.ora-pane-head .s { font-size: 0.74rem; color: var(--text-secondary); }
.ora-pane-body { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
.ora-pane-body .muted { max-width: 300px; }
.ora-input-row { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.ora-input-row input { flex: 1; margin: 0; }
.ora-input-row button { margin: 0; width: auto; padding: 10px 16px; white-space: nowrap; }
@media (min-width: 760px) { .dual-pane { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

/* ---------- Sidebar off-canvas (mobile <900px) ---------- */
@media (max-width: 899px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 240px;
    background: var(--surface-1);
    border-right: 1px solid var(--divider);
    padding: var(--space-5) var(--space-4);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 220ms var(--ease);
    box-shadow: var(--shadow-elevated);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-scrim {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
  }
  body.sidebar-open .sidebar-scrim { display: block; }
}

/* ---------- Responsive: sidebar layout ≥900px ---------- */
@media (min-width: 900px) {
  body { flex-direction: row; }

  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 240px;
    background: var(--surface-1);
    border-right: 1px solid var(--divider);
    padding: var(--space-5) var(--space-4);
    z-index: 25;
  }
  .sidebar .brand { padding: 0 12px; margin-bottom: var(--space-2); }

  .topbar { left: 240px; }
  .menu-toggle, .topbar .brand-mobile { display: none; }

  .tabbar { display: none; }

  .view { margin-left: 240px; max-width: 800px; padding-bottom: var(--space-6); }
}

@media (max-width: 480px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}

/* ================= Topbar icon buttons (search / notification) ================= */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 10px;
  cursor: pointer;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.icon-btn:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.notif-dot {
  display: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-gold);
}
.notif-dot.show { display: inline-block; }

.overlay-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 60;
}
.overlay-scrim.show { display: block; }

/* ================= Spotlight search ================= */
.search-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 70;
  padding: 10vh 16px 0;
}
.search-overlay.open { display: block; }
.search-panel {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-1);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}
.search-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  padding: 18px 20px;
  outline: none;
}
.search-input::placeholder { color: var(--text-tertiary); }
.search-results { max-height: 50vh; overflow-y: auto; padding: 6px; }
.search-result-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 120ms var(--ease);
}
.search-result-item:hover, .search-result-item.sel { background: var(--surface-2); }
.search-result-item .mono { width: 28px; height: 28px; border-radius: 7px; background: var(--accent-gold-soft); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 0.72rem; flex-shrink: 0; }
.search-result-item .t { font-size: 0.88rem; color: var(--text-primary); font-weight: 600; }
.search-result-item .d { font-size: 0.74rem; color: var(--text-secondary); }
.search-empty { padding: 24px 16px; text-align: center; color: var(--text-secondary); font-size: 0.85rem; }
.search-hint { padding: 10px 20px; border-top: 1px solid var(--divider); font-size: 0.72rem; color: var(--text-tertiary); }
.search-hint kbd { background: var(--surface-2); border: 1px solid var(--divider); border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; }

/* ================= Notification panel ================= */
.notif-panel {
  display: none;
  position: fixed;
  top: 62px; right: 16px;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--surface-1);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  z-index: 70;
  overflow: hidden;
}
.notif-panel.open { display: block; }
.notif-panel-head { padding: 14px 16px; font-weight: 700; font-size: 0.85rem; border-bottom: 1px solid var(--divider); }
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--divider); }
.notif-item:last-child { border-bottom: none; }
.notif-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-gold); margin-top: 6px; flex-shrink: 0; }
.notif-item.read .dot { background: var(--divider); }
.notif-item .t { font-size: 0.84rem; color: var(--text-primary); font-weight: 600; margin-bottom: 2px; }
.notif-item .s { font-size: 0.76rem; color: var(--text-secondary); }
.notif-item .time { font-size: 0.68rem; color: var(--text-tertiary); margin-top: 4px; }

@media (min-width: 900px) { .notif-panel { top: 66px; } }

/* ================= Quick actions ================= */
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin-bottom: var(--space-2); }
.quick-action-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: var(--surface-1); border: 1px solid var(--divider); border-radius: var(--radius-md);
  padding: var(--space-3); cursor: pointer; text-align: left;
  transition: border-color 140ms var(--ease), transform 140ms var(--ease);
}
.quick-action-btn:hover { border-color: var(--accent-gold); transform: translateY(-1px); }
.quick-action-btn .mono { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-gold-soft); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 0.7rem; }
.quick-action-btn .t { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
@media (max-width: 420px) { .quick-actions { grid-template-columns: 1fr 1fr; } }

/* ================= Activity timeline ================= */
.timeline-group { margin-bottom: var(--space-4); }
.timeline-group-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); font-weight: 700; margin-bottom: 8px; }
.timeline-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 11px 0; border-bottom: 1px solid var(--divider);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .check { width: 18px; height: 18px; border-radius: 5px; background: var(--ok-bg); color: var(--ok-text); display: flex; align-items: center; justify-content: center; font-size: 0.66rem; font-weight: 700; flex-shrink: 0; }
.timeline-item .t { font-size: 0.86rem; color: var(--text-primary); }
.timeline-item .time { margin-left: auto; font-size: 0.72rem; color: var(--text-tertiary); white-space: nowrap; }

/* ================= App Store tabs ================= */
.store-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: var(--space-4); scrollbar-width: none; }
.store-tabs::-webkit-scrollbar { display: none; }
.store-tab {
  flex: 0 0 auto;
  background: var(--surface-1); border: 1px solid var(--divider); color: var(--text-secondary);
  border-radius: 999px; padding: 7px 15px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 140ms var(--ease); white-space: nowrap;
}
.store-tab:hover { color: var(--text-primary); }
.store-tab.active { background: var(--accent-gold-soft); border-color: var(--accent-gold); color: var(--accent-gold); }
.store-section-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); font-weight: 700; margin: var(--space-5) 0 var(--space-3); }
.store-section-title:first-child { margin-top: 0; }
