/* Pattern B - Bento + Sidebar layout */

.pattern-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-hairline);
}
.ps-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-primary);
  margin-right: 8px;
}
.pattern-switcher a {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ivory-dim);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  transition: all 0.2s;
}
.pattern-switcher a:hover { color: var(--ivory); }
.pattern-switcher a.active {
  color: var(--gold-bright);
  border-color: var(--gold-primary);
}

.bento-app {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  background: var(--bg-void);
}

/* ===== SIDEBAR ===== */
.bento-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--gold-hairline);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.bs-brand { display: flex; gap: 14px; align-items: center; }
.bs-logo-mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-primary);
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--gold-primary);
}
.bs-logo-text { display: flex; flex-direction: column; gap: 2px; }
.bs-logo-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--ivory);
}
.bs-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ivory-dim);
}

.bs-user {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--gold-hairline);
  border-bottom: 1px solid var(--gold-hairline);
}
.bs-user-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-primary);
}
.bs-user-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ivory);
}
.bs-user-meta {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--ivory-dim);
}

.bs-nav { display: flex; flex-direction: column; gap: 6px; }
.bs-nav-section { display: flex; flex-direction: column; gap: 4px; }
.bs-nav-section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--ivory-dim);
  margin-bottom: 12px;
}
.bs-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ivory-muted);
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.bs-nav-item:hover { color: var(--ivory); background: rgba(255,255,255,0.03); }
.bs-nav-item.active {
  color: var(--gold-bright);
  border-left-color: var(--gold-primary);
  background: rgba(217,185,112,0.06);
}
.bs-dot {
  width: 6px; height: 6px;
  background: var(--gold-primary);
  display: inline-block;
}

.bs-fx {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--gold-hairline);
}
.bs-fx-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--ivory-dim);
  margin-bottom: 4px;
}
.bs-fx-row { display: flex; align-items: baseline; gap: 8px; }
.bs-fx-from {
  font-family: 'Newsreader', serif;
  font-size: 16px;
  color: var(--ivory);
}
.bs-fx-eq { color: var(--ivory-dim); font-size: 12px; }
.bs-fx-to {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--gold-primary);
}
.bs-fx-unit {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ivory-dim);
}

.bs-bottom {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-hairline);
}
.bs-action {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ivory-muted);
}
.bs-action.dim { color: var(--ivory-dim); }
.bs-action:hover { color: var(--ivory); }


/* ===== MAIN ===== */
.bento-main {
  padding: 40px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bm-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gold-hairline);
}
.bm-welcome { display: flex; flex-direction: column; gap: 14px; }
.bm-eyebrow {
  display: flex; align-items: center; gap: 14px;
}
.bm-eyebrow .rule { width: 36px; height: 1px; background: var(--gold-primary); }
.bm-eyebrow .kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold-primary);
}
.bm-greeting {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ivory);
}
.bm-date { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.bm-date-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--ivory-dim);
}
.bm-date-num {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ivory);
}
.bm-date-day {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--ivory-dim);
}


/* ===== BENTO GRID ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}
.tile {
  background: var(--bg-surface);
  border: 1px solid var(--gold-hairline);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
a.tile:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
}

/* Hero tile */
.tile-hero {
  grid-column: span 8;
  grid-row: span 2;
  padding: 36px;
  min-height: 360px;
}
.tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.30) 40%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
}
.tile-scrim.deep {
  background: linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.20) 30%, rgba(0,0,0,0.90) 100%);
}
.tile-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.th-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold-bright);
}
.th-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--ivory);
}
.th-amount {
  display: flex; align-items: baseline; gap: 8px;
}
.th-amount .peso {
  font-family: 'Newsreader', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--gold-primary);
}
.th-amount .num {
  font-family: 'Newsreader', serif;
  font-size: 56px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1;
}
.th-conv {
  font-family: 'Newsreader', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--ivory-muted);
}
.th-divider { width: 60px; height: 1px; background: var(--gold-hairline); margin: 6px 0; }
.th-locality {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ivory-muted);
}
.th-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  letter-spacing: 0;
  font-size: 13px;
}

/* KPI tile */
.tile-kpi {
  grid-column: span 4;
  padding: 24px;
  justify-content: space-between;
}
.kpi-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--ivory-dim);
}
.kpi-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ivory-muted);
  margin-top: 6px;
}
.kpi-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
}
.kpi-amount .peso {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-primary);
}
.kpi-amount .num {
  font-family: 'Newsreader', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1;
}
.kpi-sub {
  font-family: 'Newsreader', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--ivory-dim);
  margin-top: 6px;
}
.kpi-arrow {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--gold-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

/* Alert tile */
.tile-alert {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  border-left: 2px solid var(--accent-amber);
  padding: 28px 32px;
}
.alert-icon-bento {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  flex-shrink: 0;
}
.alert-content-bento { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ab-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent-amber);
}
.ab-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ivory);
}
.ab-meta {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--ivory-muted);
}
.ab-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: var(--gold-primary);
  color: var(--bg-void);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.ab-cta:hover { opacity: 0.85; }

/* Property tile */
.tile-property {
  grid-column: span 8;
  grid-row: span 3;
  min-height: 420px;
  padding: 0;
}
.tp-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-top: 0;
}
.tp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
}
.tp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(10,10,10,0.65);
  border: 1px solid var(--gold-primary);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-bright);
}
.amber-dot { width: 6px; height: 6px; background: var(--accent-amber); display: inline-block; border-radius: 50%; }
.tp-geo {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--ivory-dim);
}
.tp-mid { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.tp-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-primary);
}
.tp-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--ivory);
}
.tp-unit {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ivory-muted);
  letter-spacing: 1px;
}
.tp-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
}
.tp-bot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--gold-hairline);
}
.tp-specs { display: flex; gap: 36px; }
.tp-spec { display: flex; flex-direction: column; gap: 4px; }
.tp-spec-label {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--ivory-dim);
}
.tp-spec-value {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ivory);
}
.tp-spec-value.gold { color: var(--gold-bright); }
.tp-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--gold-primary);
  color: var(--bg-void);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
}

/* Payment tile */
.tile-payment {
  grid-column: span 4;
  grid-row: span 2;
  padding: 26px;
}
.tpy-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-primary);
}
.tpy-date { margin-top: 12px; }
.tpy-year {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: var(--ivory-muted);
}
.tpy-md {
  font-family: 'Noto Serif JP', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0;
  line-height: 1;
}
.tpy-meta {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: var(--ivory-muted);
  margin-top: 12px;
}
.tpy-amount {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gold-hairline);
}
.tpy-amount .peso {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--gold-primary);
}
.tpy-amount .num {
  font-family: 'Newsreader', serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1;
}
.tpy-sub {
  font-family: 'Newsreader', serif;
  font-size: 12px;
  font-style: italic;
  color: var(--ivory-dim);
  margin-top: 6px;
}
.tpy-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gold-primary);
}

/* News tile */
.tile-news, .tile-news-2 {
  grid-column: span 4;
  padding: 24px;
}
.tn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-primary);
}
.gold-square {
  width: 6px; height: 6px;
  background: var(--gold-primary);
  display: inline-block;
}
.tile-news-2 .gold-square { background: var(--accent-emerald); }
.tile-news-2 .tn-eyebrow { color: var(--accent-emerald); }
.tn-date {
  font-family: 'Newsreader', serif;
  font-size: 12px;
  color: var(--ivory-dim);
  margin: 6px 0 14px;
}
.tn-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.4;
}
.tn-body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--ivory-muted);
  line-height: 1.7;
  margin-top: 10px;
}
.tn-cta {
  display: inline-flex;
  margin-top: auto;
  padding-top: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-bright);
}

/* Contracts horizontal */
.tile-contracts {
  grid-column: span 12;
  padding: 28px;
}
.tcs-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gold-hairline);
}
.tcs-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-primary);
}
.tcs-eyebrow .rule { width: 28px; height: 1px; background: var(--gold-primary); }
.tcs-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ivory);
}
.tcs-count {
  margin-left: auto;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--ivory-muted);
}
.tcs-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--gold-hairline);
  transition: all 0.2s;
  position: relative;
}
.tc-card:hover { border-color: var(--gold-primary); transform: translateY(-2px); }
.tc-thumb {
  width: 100%;
  height: 110px;
  background-size: cover;
  background-position: center;
  margin-bottom: 4px;
}
.tc-num {
  position: absolute;
  top: 12px; left: 18px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold-bright);
}
.tc-eye {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold-primary);
}
.tc-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ivory);
}
.tc-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--ivory-muted);
  margin-top: auto;
}

/* Status tile */
.tile-status {
  grid-column: span 8;
  padding: 24px 28px;
  flex-direction: row;
  align-items: center;
}
.ts-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 32px;
}
.ts-label { display: flex; flex-direction: column; gap: 4px; }
.ts-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-primary);
}
.ts-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ivory-muted);
}
.ts-value { display: flex; align-items: baseline; gap: 6px; margin-left: auto; }
.ts-num {
  font-family: 'Newsreader', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1;
}
.ts-unit {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--gold-primary);
}
.ts-status-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent-emerald);
}
.em-dot {
  width: 6px; height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
}

/* Footer */
.bm-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--gold-hairline);
  margin-top: 16px;
}
.bmf-left { display: flex; gap: 16px; align-items: baseline; }
.bmf-brand {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--ivory-muted);
}
.bmf-tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  color: var(--ivory-dim);
}
.bmf-right { display: flex; align-items: center; gap: 24px; }
.bmf-right a {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--ivory-dim);
}
.bmf-right a:hover { color: var(--ivory); }
.bmf-divider { width: 1px; height: 12px; background: var(--gold-hairline); }
.bmf-copy {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ivory-dim);
}
