/* ============================================
   HAVENCOURT — Global Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* === CSS Variables === */
:root {
  --primary: #393A95;
  --primary-light: #6B6EC4;
  --primary-subtle: #F0F0FA;
  --primary-border: #C7C8E8;

  --white: #FFFFFF;
  --grey-50: #F9FAFB;
  --grey-100: #F5F5F5;
  --grey-200: #E5E5E5;
  --grey-300: #D1D5DB;
  --grey-400: #9CA3AF;
  --grey-600: #6B7280;
  --grey-700: #374151;
  --grey-900: #111827;

  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --info: #3B82F6;
  --info-bg: #EFF6FF;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Mobile layout */
  --header-height: 60px;
  --bottom-nav-height: 70px;
  --page-padding: 16px;
  --max-mobile: 430px;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--primary-subtle);
  color: var(--grey-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font);
}

/* ============================================
   MOBILE LP LAYOUT
   ============================================ */

.mobile-shell {
  max-width: var(--max-mobile);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Desktop frame effect */
@media (min-width: 500px) {
  body:not(.desktop-body) {
    background: #D8D8EC;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 0;
    min-height: 100vh;
  }

  .mobile-shell {
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(57, 58, 149, 0.15), 0 8px 20px rgba(0,0,0,0.1);
    min-height: calc(100vh - 48px);
    position: relative;
  }
}

/* === Top Header === */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.header-logo-text {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary);
  letter-spacing: 0;
}

.header-gp-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-600);
  text-align: center;
  flex: 1;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-subtle);
  border: 2px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* === Page Content === */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--page-padding);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
}

.page-content.no-pad {
  padding: 0;
  padding-bottom: var(--bottom-nav-height);
}

/* === Bottom Navigation === */
.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 100;
  height: var(--bottom-nav-height);
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  display: flex;
  align-items: stretch;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--grey-400);
  transition: color 0.15s;
  padding: 8px 4px;
  min-height: 44px;
  cursor: pointer;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.nav-item-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nav-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid var(--white);
}

.nav-icon-wrap {
  position: relative;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* === Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-padded {
  padding: 16px;
}

/* === Section Headers === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--grey-900);
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

/* === Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

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

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-grey {
  background: var(--grey-100);
  color: var(--grey-600);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

/* === Tags === */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.tag-grey {
  background: var(--grey-100);
  color: var(--grey-600);
  border-color: var(--grey-200);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--grey-600);
  border: 1px solid var(--grey-200);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  min-height: 36px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  padding: 10px;
  min-width: 44px;
}

/* === Inputs === */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--grey-900);
  background: var(--white);
  transition: border-color 0.15s;
  appearance: none;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(57, 58, 149, 0.08);
}

.form-input::placeholder {
  color: var(--grey-400);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* === Search Bar === */
.search-bar {
  position: relative;
  margin-bottom: 14px;
}

.search-bar input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--grey-50);
  color: var(--grey-900);
  min-height: 44px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.search-bar svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--grey-400);
}

/* === Filter Chips === */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--grey-200);
  color: var(--grey-600);
  background: var(--white);
  transition: all 0.15s;
  min-height: 36px;
}

.chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* === Avatar === */
.avatar {
  border-radius: 50%;
  background: var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 14px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.avatar-md {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.avatar-xl {
  width: 80px;
  height: 80px;
  font-size: 26px;
}

.avatar-blurred {
  filter: blur(6px);
  background: var(--grey-200);
  color: var(--grey-400);
}

/* === Stat Cards === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--grey-400);
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.2px;
}

/* === Dividers === */
.divider {
  height: 1px;
  background: var(--grey-200);
  margin: 16px 0;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--grey-400);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 14px;
}

/* === Toggle === */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.toggle-info {
  flex: 1;
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-900);
}

.toggle-sub {
  font-size: 12px;
  color: var(--grey-400);
  margin-top: 2px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--grey-300);
  border-radius: 12px;
  transition: 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* === Page Sections === */
.page-section {
  margin-bottom: 24px;
}

/* === List Items === */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-100);
}

.list-item:last-child {
  border-bottom: none;
}

/* === Activity Feed === */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-100);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.activity-text {
  flex: 1;
}

.activity-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-900);
  line-height: 1.4;
}

.activity-time {
  font-size: 12px;
  color: var(--grey-400);
  margin-top: 2px;
}

/* === Welcome Banner === */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--white);
  margin-bottom: 20px;
}

.welcome-greeting {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 4px;
}

.welcome-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.welcome-sub {
  font-size: 13px;
  opacity: 0.75;
}

/* === Deal Cards === */
.deal-card {
  margin-bottom: 12px;
}

.deal-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.deal-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--grey-900);
  letter-spacing: -0.3px;
}

.deal-desc {
  font-size: 13px;
  color: var(--grey-600);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* === Member Cards === */
.member-card {
  margin-bottom: 12px;
}

.member-card-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 2px;
}

.member-focus {
  font-size: 12px;
  color: var(--grey-600);
  margin-bottom: 6px;
}

.member-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--grey-400);
  margin-bottom: 8px;
}

/* === Signal Cards === */
.signal-card {
  margin-bottom: 12px;
}

.signal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-900);
  line-height: 1.4;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.signal-summary {
  font-size: 13px;
  color: var(--grey-600);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.signal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* === Event Cards === */
.event-card {
  margin-bottom: 12px;
}

.event-date-block {
  text-align: center;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  min-width: 52px;
  flex-shrink: 0;
}

.event-month {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-day {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.event-info {
  flex: 1;
  min-width: 0;
}

.event-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.event-meta {
  font-size: 12px;
  color: var(--grey-600);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* === Conversation Rows === */
.convo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey-100);
  cursor: pointer;
}

.convo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.convo-info {
  flex: 1;
  min-width: 0;
}

.convo-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-900);
  margin-bottom: 2px;
}

.convo-desc {
  font-size: 13px;
  color: var(--grey-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo-meta {
  text-align: right;
  flex-shrink: 0;
}

.convo-count {
  font-size: 11px;
  color: var(--grey-400);
  margin-bottom: 6px;
}

/* ============================================
   DESKTOP — GP & ADMIN PORTALS
   ============================================ */

.desktop-shell {
  display: flex;
  min-height: 100vh;
  background: var(--primary-subtle);
}

/* === Sidebar === */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--white);
  border-right: 1px solid var(--grey-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.sidebar-logo-text {
  font-size: 17px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary);
  letter-spacing: 0;
}

.sidebar-logo-sub {
  font-size: 10px;
  color: var(--grey-400);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.sidebar-section-label {
  padding: 12px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-600);
  text-decoration: none;
  transition: all 0.15s;
  border-radius: 0;
  cursor: pointer;
}

.sidebar-link:hover {
  background: var(--grey-50);
  color: var(--grey-900);
}

.sidebar-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-link-badge {
  margin-left: auto;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--grey-100);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-900);
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--grey-400);
}

/* === Desktop Main Content === */
.desktop-main {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--primary-subtle);
}

.desktop-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.desktop-topbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--grey-900);
}

.desktop-content {
  padding: 32px;
  max-width: 1200px;
  flex: 1;
}

/* === Desktop Placeholder === */
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.placeholder-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.placeholder-card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
}

.coming-soon-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
  margin-bottom: 28px;
}

.coming-soon-banner h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.coming-soon-banner p {
  font-size: 15px;
  opacity: 0.8;
  max-width: 480px;
}

/* === Utilities === */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }

.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--grey-400); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }

/* Scrollable container for sticky header + sticky nav */
@media (max-width: 499px) {
  .mobile-shell {
    min-height: 100vh;
  }
  .page-content {
    -webkit-overflow-scrolling: touch;
  }
}
