/* ============================================================
   APP SHELL — sidebar + main content area (warm light theme)
   Shared by both the Advertiser and Publisher apps.
   ============================================================ */

/* ===== Two-column shell layout ===== */
.shell {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  background: var(--ink-green);
  color: #D7E2DB;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar .brand       { font-size: 19px; padding: 2px 8px 20px; color: #fff; display:flex; align-items:center; gap:10px; }
.sidebar .brand .mark { width: 36px; height: 36px; border-radius: 11px; flex:none; }
.sidebar .brand small { color: #7E9388; }
.sidebar .brand > div { flex: 1; }

/* Close button — hidden on desktop, shown on mobile when sidebar is a drawer */
.sb-close-btn {
  display: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #D7E2DB;
  cursor: pointer;
  place-items: center;
  flex: none;
}
.sb-close-btn svg { width: 16px; height: 16px; }

/* Nav section label */
.navlbl {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5F7468;
  padding: 16px 12px 7px;
  font-weight: 700;
}

/* Sidebar navigation item */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #A7BBB0;
  font-weight: 600;
  font-size: 14px;
  transition: 0.16s;
  cursor: pointer;
}
.nav svg           { width: 18px; height: 18px; flex: none; opacity: 0.9; }
.nav:hover         { background: rgba(255,255,255,.05); color: #fff; }
.nav.active        { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(14,159,110,.4); }

/* Notification badge on nav item */
.nav .bdg {
  margin-left: auto;
  background: var(--gold-2);
  color: #241700;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 20px;
}

/* Sidebar footer — user identity */
.sfoot {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 11px;
}
.avi {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 13px;
  flex: none;
  font-family: 'Fraunces', serif;
}
/* Avatar color variants per app */
.avi--adv { background: linear-gradient(135deg, var(--green), #0a6b4a); }
.avi--pub { background: linear-gradient(135deg, var(--telegram), var(--facebook)); }

.sfoot .nm { font-size: 13px; font-weight: 700; color: #fff; }
.sfoot .ml { font-size: 11px; color: #7E9388; }

/* ===== Main content area ===== */
.main { display: flex; flex-direction: column; min-height: 100vh; }

/* Sticky top bar */
.topbar {
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 15px 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Hamburger only visible in mobile/tablet mode */
.ham-btn { display: none; }
.crumb   { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.crumb b { color: var(--ink); font-weight: 700; }

/* Wallet balance pill */
.walletpill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
}
.walletpill svg  { width: 17px; height: 17px; color: var(--green); }
.walletpill .wv  { font-weight: 800; font-size: 14px; }
.walletpill .wl  { font-size: 11px; color: var(--muted); }

/* Icon-only buttons (notifications, etc.) */
.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  position: relative;
}
.iconbtn svg { width: 18px; height: 18px; color: var(--ink-2); }

/* Notification dot on icon button */
.ndot {
  position: absolute;
  top: 9px; right: 10px;
  width: 7px; height: 7px;
  background: var(--rose);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* Scrollable content area */
.content { padding: 34px; flex: 1; min-width: 0; overflow-x: hidden; }

/* ===== Page header (title + primary action) ===== */
.phead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.phead h1 { font-size: 34px; font-weight: 600; }
.phead p  { color: var(--muted); font-size: 15px; margin-top: 5px; }
