:root {
  --bg-navy: #0B1526;
  --bg-navy-deep: #060C17;
  --bg-mahogany: #150E0A;
  --bg-dark-rum: #231710;
  --bg-card: #121D31;
  --bg-card-mahogany: #1C130E;
  --gold: #D4AF37;
  --gold-light: #F3CF7A;
  --gold-dark: #9A7B1C;
  --parchment: #F5ECD7;
  --parchment-muted: #D5C7A9;
  --ember: #FF6B1A;
  --ember-glow: rgba(255, 107, 26, 0.35);
  --crimson: #9E1B1B;
  --emerald: #1F9D68;
  --border-gold: rgba(212, 175, 55, 0.32);
  --border-gold-bright: rgba(243, 207, 122, 0.65);
  --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.65);
  --font-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-navy-deep);
  color: var(--parchment);
  font-family: var(--font-sans);
}

body {
  background: radial-gradient(circle at 50% 0%, #162642 0%, var(--bg-navy) 45%, var(--bg-mahogany) 100%);
  color: var(--parchment);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Top Sovereign Ticker */
.sovereign-ticker {
  background: linear-gradient(90deg, #120A06 0%, #24140B 50%, #120A06 100%);
  border-bottom: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.ticker-badge {
  background: var(--crimson);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.7rem;
  white-space: nowrap;
  border: 1px solid var(--gold);
}

.ticker-scroll {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.ticker-scroll strong {
  color: var(--ember);
}

.ticker-status {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--parchment);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
}

/* Official Header / Navbar */
.site-header {
  background: rgba(11, 21, 38, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-gold);
  position: sticky;
  top: 35px;
  z-index: 1000;
  padding: 12px 32px;
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-seal {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--parchment);
}

.brand-crest-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-pill {
  background: rgba(21, 14, 10, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 7px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.currency-pill:hover {
  border-color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
}

.cart-trigger-btn {
  background: linear-gradient(135deg, var(--gold) 0%, #B38728 100%);
  color: #150E0A;
  border: 1px solid var(--gold-light);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cart-trigger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
}

.cart-count-badge {
  background: var(--bg-navy-deep);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 99px;
}

/* Container & Section Headers */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 76px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}

.section-seal-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ember);
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.4);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--parchment-muted);
}

/* HERO SECTION */
.hero-section {
  padding: 56px 0 68px;
  background:
    radial-gradient(circle at 80% 25%, rgba(255, 107, 26, 0.14), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.15), transparent 50%),
    linear-gradient(180deg, #0B1526 0%, #150E0A 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.1rem;
  line-height: 1.12;
  color: var(--parchment);
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--gold-light);
  display: block;
}

.hero-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--gold);
  border-left: 3px solid var(--ember);
  padding-left: 16px;
  margin-bottom: 20px;
}

.hero-lead {
  color: var(--parchment-muted);
  font-size: 1.02rem;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #9E7B1C 100%);
  color: #150E0A;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.55);
}

.btn-ember {
  background: linear-gradient(135deg, #FF8038 0%, var(--ember) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 26, 0.35);
}

.btn-ember:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(21, 14, 10, 0.65);
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.16);
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(18, 29, 49, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 16px;
}

.stat-item {
  border-right: 1px solid rgba(212, 175, 55, 0.2);
  padding-right: 10px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--parchment-muted);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-top: 2px;
}

.hero-flag-showcase {
  background: linear-gradient(145deg, #1E140E, #0E1726);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-deep), 0 0 35px rgba(212, 175, 55, 0.22);
  position: relative;
}

.hero-flag-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.flag-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.84rem;
}

.flag-caption-text strong {
  color: var(--gold-light);
  display: block;
}

/* CONSTITUTION & CABINET SECTION */
.constitution-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  align-items: start;
  margin-bottom: 56px;
}

.parchment-frame {
  background: linear-gradient(145deg, #231710, #120B07);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-deep);
}

.parchment-frame img {
  width: 100%;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--gold);
}

.articles-card {
  background: linear-gradient(165deg, rgba(245, 236, 215, 0.97) 0%, rgba(226, 209, 175, 0.96) 100%);
  color: #1A110B;
  border: 3px double #7A5915;
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-deep);
}

.articles-preamble {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #3D2718;
  border-bottom: 2px solid rgba(122, 89, 21, 0.35);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-item {
  background: rgba(255, 255, 255, 0.55);
  border-left: 4px solid var(--crimson);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}

.article-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--crimson);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.06rem;
  color: #150E0A;
  margin: 2px 0 4px;
}

.article-desc {
  font-size: 0.88rem;
  color: #3B281B;
}

.signatures-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 2px solid rgba(122, 89, 21, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wax-seal-pill {
  background: var(--crimson);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--gold);
  font-weight: 700;
}

/* Founding Fathers Cabinet Grid */
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cabinet-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-mahogany) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.cabinet-card.featured-ponz {
  border: 2px solid var(--gold);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.25);
}

.cabinet-img-wrap {
  height: 250px;
  background: #0D1626;
  position: relative;
  overflow: hidden;
}

.cabinet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabinet-role-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 10, 6, 0.9);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.cabinet-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cabinet-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.cabinet-alias {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ember);
  margin-bottom: 10px;
}

.cabinet-bio {
  font-size: 0.86rem;
  color: var(--parchment-muted);
  flex: 1;
}

/* TREASURY & MONETARY SYSTEM */
.treasury-section {
  background: linear-gradient(180deg, rgba(21, 14, 10, 0.95) 0%, rgba(11, 21, 38, 0.98) 100%);
}

.treasury-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 36px;
}

.treasury-asset-card {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.treasury-asset-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-gold);
}

.treasury-asset-info {
  padding: 24px;
}

.treasury-asset-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.converter-box {
  background: linear-gradient(135deg, #19110B 0%, #0F1A2E 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow-deep);
}

.converter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.converter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: end;
}

.input-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold-light);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.input-group input, .input-group select {
  width: 100%;
  background: rgba(6, 12, 23, 0.9);
  border: 1px solid var(--gold);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: 8px;
}

.converter-readout {
  background: rgba(212, 175, 55, 0.12);
  border: 1px dashed var(--gold);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-light);
}

/* EMBASSY PLAQUE & 3-TIER CHARTER PROGRAM */
.embassy-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: start;
}

.plaque-preview-card {
  background: linear-gradient(145deg, #24160E, #110B07);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-deep);
}

.plaque-preview-card img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--gold);
  display: block;
}

.live-brass-plate {
  margin-top: 18px;
  background: linear-gradient(135deg, #9F7928 0%, #F3CF7A 35%, #C89D32 70%, #7E5D15 100%);
  color: #1A0F07;
  border: 3px solid #4A3409;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.45), 0 6px 18px rgba(0,0,0,0.5);
  position: relative;
}

.brass-rivets {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #3B2706;
  font-family: var(--font-mono);
  font-weight: 700;
}

.brass-plate-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0;
}

.brass-plate-sub {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  background: #1A0F07;
  color: var(--gold-light);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  margin: 4px 0;
}

.brass-plate-motto {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.customizer-controls {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.customizer-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  margin-top: 12px;
}

.tier-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tier-card {
  background: linear-gradient(135deg, rgba(18, 29, 49, 0.95) 0%, rgba(28, 19, 14, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.2s ease;
  position: relative;
}

.tier-card.vip-tier {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, #26180E 0%, #132038 100%);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}

.tier-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--parchment);
  margin-top: 4px;
}

.tier-price-box {
  text-align: right;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-light);
  font-weight: 700;
}

.tier-vendor {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--parchment-muted);
}

.tier-desc {
  font-size: 0.86rem;
  color: var(--parchment-muted);
  margin-bottom: 12px;
}

.tier-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ROYAL COMMISSARY E-COMMERCE STOREFRONT */
.commissary-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  background: rgba(18, 29, 49, 0.85);
  border: 1px solid var(--border-gold);
  padding: 14px 20px;
  border-radius: 12px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--parchment-muted);
  padding: 8px 15px;
  border-radius: 99px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active, .filter-tab:hover {
  background: var(--gold);
  color: #150E0A;
  border-color: var(--gold-light);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: linear-gradient(180deg, #131F35 0%, #19120D 100%);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.product-img-box {
  position: relative;
  height: 260px;
  background: #0A111F;
  overflow: hidden;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.04);
}

.product-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 10, 6, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}

.product-pod-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(11, 21, 38, 0.9);
  color: var(--parchment-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.product-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--parchment);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--parchment-muted);
  margin-bottom: 14px;
  flex: 1;
}

.product-options-row {
  margin-bottom: 14px;
}

.product-options-row select {
  width: 100%;
  background: rgba(11, 21, 38, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--parchment);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  gap: 10px;
}

.price-stack {
  display: flex;
  flex-direction: column;
}

.price-usd {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
}

.price-tiki {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ember);
}

/* CITIZENSHIP & PASSPORT STUDIO */
.citizenship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.passport-duo-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.passport-duo-showcase img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--gold);
}

.citizen-live-preview {
  margin-top: 16px;
  background: linear-gradient(135deg, #F5ECD7 0%, #DFCFAF 100%);
  color: #1A110B;
  border: 3px double #7A5915;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.citizen-live-preview h4 {
  font-family: var(--font-display);
  color: var(--crimson);
  font-size: 1rem;
  margin-bottom: 6px;
}

/* CART DRAWER */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
}

.cart-backdrop.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 460px;
  max-width: 95vw;
  height: 100vh;
  background: linear-gradient(180deg, #0E182B 0%, #19110C 100%);
  border-left: 2px solid var(--gold);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -15px 0 45px rgba(0,0,0,0.8);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 21, 38, 0.95);
}

.cart-drawer-header h3 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1.2rem;
}

.close-drawer-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(18, 29, 49, 0.8);
  border: 1px solid var(--border-gold);
  padding: 12px;
  border-radius: 10px;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gold);
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--parchment);
}

.cart-item-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.qty-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 2px solid var(--gold);
  background: #120B07;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.cart-summary-row.total {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding-top: 10px;
  margin-top: 8px;
}

/* FOOTER */
.site-footer {
  background: #080D18;
  border-top: 2px solid var(--gold);
  padding: 56px 0 36px;
  font-size: 0.88rem;
  color: var(--parchment-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--gold-light);
  margin-bottom: 14px;
  font-size: 1rem;
}

.domain-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.domain-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 3px 8px;
  border-radius: 4px;
}

@media (max-width: 1100px) {
  .hero-grid, .constitution-grid, .embassy-layout, .citizenship-grid, .treasury-showcase-grid {
    grid-template-columns: 1fr;
  }
  .cabinet-grid, .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* AUTOMATED EMAIL PROVISIONING PIPELINE & RENEWAL TRACKER LEDGER */
.provision-pipeline-box {
  background: linear-gradient(135deg, #0D182B 0%, #19110B 100%);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}

.pipeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.pipeline-step {
  background: rgba(6, 12, 23, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--parchment-muted);
  transition: all 0.25s ease;
}

.pipeline-step.done {
  border-color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  color: #E6F9F0;
}

.pipeline-step .step-kicker {
  display: block;
  font-size: 0.65rem;
  color: var(--gold);
  margin-bottom: 3px;
}

.pipeline-step.done .step-kicker {
  color: #34D399;
  font-weight: 700;
}

.renewal-dashboard-card {
  margin-top: 40px;
  background: linear-gradient(180deg, #101B30 0%, #16100B 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: var(--shadow-deep);
}

.renewal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0 22px;
}

.renewal-kpi-tile {
  background: rgba(6, 12, 23, 0.82);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 14px 16px;
}

.renewal-kpi-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--parchment-muted);
  letter-spacing: 0.06em;
}

.renewal-kpi-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-top: 4px;
}

.renewal-kpi-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #34D399;
  margin-top: 2px;
}

.renewal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  background: rgba(8, 14, 25, 0.9);
}

.renewal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.renewal-table th {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-gold);
}

.renewal-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  color: var(--parchment);
  vertical-align: middle;
}

.renewal-table tr:hover td {
  background: rgba(212, 175, 55, 0.05);
}

.renewal-price-input {
  width: 78px;
  background: rgba(21, 14, 10, 0.95);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: 5px;
  text-align: right;
}

.status-pill-active {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34D399;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 99px;
}

/* BY ROYAL WARRANT OF APPOINTMENT — OFFICIAL PURVEYORS & SPONSORSHIPS */
.warrants-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.14), transparent 45%),
    linear-gradient(180deg, #120B07 0%, #0B1526 55%, #150E0A 100%);
}

.warrant-top-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 42px;
}

.royal-warrant-crest-card {
  background: linear-gradient(155deg, #21150D 0%, #0E1728 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-deep), 0 0 32px rgba(212, 175, 55, 0.2);
}

.warrant-certificate-preview {
  background: linear-gradient(160deg, #F6EEDB 0%, #DFCFAF 100%);
  color: #1A110B;
  border: 4px double #7A5915;
  border-radius: 12px;
  padding: 22px 24px;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 18px rgba(122, 89, 21, 0.25);
}

.warrant-crest-medallion {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #7A5915;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  margin: 0 auto 8px;
  display: block;
}

.warrant-by-appointment {
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--crimson);
  font-weight: 800;
  text-transform: uppercase;
}

.warrant-brand-display {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #150E0A;
  margin: 6px 0 4px;
  letter-spacing: 0.04em;
}

.warrant-category-display {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.96rem;
  color: #3D2718;
  margin-bottom: 10px;
}

.warrant-seal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(122, 89, 21, 0.35);
  padding-top: 10px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #4A3319;
}

.purveyor-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.purveyor-slot-card {
  background: linear-gradient(180deg, rgba(18, 29, 49, 0.92) 0%, rgba(25, 17, 12, 0.92) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.purveyor-slot-card.appointed {
  border-color: var(--gold);
}

.purveyor-status-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
}

.purveyor-status-tag.granted {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}

.purveyor-status-tag.open-slot {
  background: rgba(255, 107, 26, 0.16);
  color: var(--ember);
  border: 1px solid var(--ember);
}

/* ==========================================================================
   13. NATIONAL CHRONICLES & THE GREAT LEMUR WAR EPIC LORE (#chronicles)
   ========================================================================== */
.chronicles-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(228, 179, 76, 0.1), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(196, 30, 58, 0.1), transparent 55%),
    linear-gradient(180deg, #091d19 0%, #0d2621 50%, #091d19 100%);
  border-top: 2px solid var(--gold-border);
  border-bottom: 2px solid var(--gold-border);
}

.chronicles-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.chronicle-tab-btn {
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 179, 76, 0.35);
  background: rgba(13, 38, 33, 0.85);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chronicle-tab-btn:hover,
.chronicle-tab-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #091d19;
  border-color: var(--gold-bright);
  box-shadow: 0 4px 14px rgba(228, 179, 76, 0.3);
}

.chronicles-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.chronicle-chapter-card {
  background: linear-gradient(160deg, rgba(19, 54, 46, 0.92), rgba(9, 29, 25, 0.96));
  border: 1px solid var(--gold-border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.chronicle-chapter-card.highlight-lemur {
  border-left-color: var(--crimson);
}

.chronicle-chapter-card.highlight-derek {
  border-left-color: #34d399;
  background: linear-gradient(160deg, rgba(20, 62, 50, 0.96), rgba(9, 29, 25, 0.98));
}

.chronicle-chapter-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed rgba(228, 179, 76, 0.28);
}

.chronicle-era-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(228, 179, 76, 0.14);
  color: var(--gold-bright);
  border: 1px solid rgba(228, 179, 76, 0.35);
}

.chronicle-chapter-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--gold-bright);
  margin: 0.25rem 0 0;
}

.chronicle-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  color: var(--parchment);
  font-size: 0.96rem;
  line-height: 1.72;
}

.chronicle-quote-callout {
  background: rgba(9, 24, 20, 0.85);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1.2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--parchment-dim);
  font-size: 0.9rem;
}

.chronicle-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.chronicle-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(228, 179, 76, 0.25);
  color: var(--parchment-dim);
}

/* ==========================================================================
   14. INTERACTIVE FOUNDING FATHERS AI PERSONA CHAT & MCP HUB (#ai-cabinet)
   ========================================================================== */
.ai-cabinet-section {
  background:
    radial-gradient(circle at 85% 15%, rgba(45, 212, 191, 0.1), transparent 55%),
    linear-gradient(180deg, #0b221e 0%, #071714 100%);
  border-bottom: 2px solid var(--gold-border);
}

.ai-persona-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ai-persona-card {
  background: rgba(15, 43, 37, 0.9);
  border: 1px solid rgba(228, 179, 76, 0.3);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.ai-persona-card:hover,
.ai-persona-card.active {
  border-color: var(--gold-bright);
  background: linear-gradient(155deg, rgba(26, 70, 59, 0.95), rgba(13, 38, 33, 0.98));
  box-shadow: 0 8px 25px rgba(228, 179, 76, 0.22);
  transform: translateY(-2px);
}

.ai-persona-card-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ai-persona-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.ai-persona-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-bright);
  margin: 0;
}

.ai-persona-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--parchment-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ai-persona-card-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ai-workspace-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 980px) {
  .ai-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.ai-chat-console {
  background: rgba(7, 20, 17, 0.95);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ai-chat-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(228, 179, 76, 0.16), rgba(15, 43, 37, 0.9));
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ai-chat-messages {
  padding: 1.25rem;
  min-height: 300px;
  max-height: 410px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ai-msg {
  padding: 0.85rem 1.05rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.58;
  max-width: 92%;
}

.ai-msg.founder {
  align-self: flex-start;
  background: rgba(21, 58, 50, 0.92);
  border: 1px solid rgba(228, 179, 76, 0.35);
  color: var(--parchment);
}

.ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #081c18;
  font-weight: 600;
}

.ai-prompt-chips {
  padding: 0.65rem 1.25rem;
  border-top: 1px solid rgba(228, 179, 76, 0.18);
  background: rgba(11, 31, 27, 0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ai-prompt-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(228, 179, 76, 0.12);
  border: 1px solid rgba(228, 179, 76, 0.32);
  color: var(--gold-bright);
  cursor: pointer;
  transition: all 0.18s ease;
}

.ai-prompt-chip:hover {
  background: var(--gold);
  color: #071915;
}

.ai-chat-input-bar {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  background: rgba(5, 16, 13, 0.98);
  border-top: 1px solid var(--gold-border);
}

.ai-chat-input-bar input {
  flex: 1;
  background: rgba(16, 44, 38, 0.9);
  border: 1px solid rgba(228, 179, 76, 0.38);
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  color: var(--parchment);
  font-size: 0.9rem;
}

.mcp-hub-panel {
  background: rgba(7, 20, 17, 0.95);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.mcp-code-block {
  background: #04100d;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 8px;
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a7f3d0;
  overflow-x: auto;
  white-space: pre-wrap;
  max-height: 210px;
  overflow-y: auto;
}

/* ==========================================================================
   15. 3-TIER RBAC MULTI-VIEW ARCHITECTURE (PUBLIC / CITIZEN / CABINET)
   ========================================================================== */
.rbac-subbar {
  background: linear-gradient(90deg, rgba(6, 18, 15, 0.98), rgba(14, 39, 34, 0.98), rgba(6, 18, 15, 0.98));
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding: 8px 0;
  position: sticky;
  top: 72px;
  z-index: 88;
  backdrop-filter: blur(12px);
}

.rbac-subbar-inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rbac-role-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 13, 11, 0.92);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.rbac-role-btn {
  border: none;
  background: transparent;
  color: var(--parchment-muted);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rbac-role-btn:hover {
  color: var(--gold-light);
}

.rbac-role-btn.active[data-role-btn="public"] {
  background: linear-gradient(135deg, var(--gold), #b38622);
  color: #071915;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.rbac-role-btn.active[data-role-btn="citizen"] {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #04130e;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
}

.rbac-role-btn.active[data-role-btn="cabinet"] {
  background: linear-gradient(135deg, #e11d48, #9f1239);
  color: #fff;
  box-shadow: 0 2px 14px rgba(225, 29, 72, 0.45);
}

.view-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.view-tab-link {
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(12, 34, 29, 0.8);
  color: var(--parchment);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-tab-link:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.view-tab-link.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.view-tab-link.role-locked {
  opacity: 0.65;
  border-style: dashed;
}

/* Multi-view visibility rules: only the active view is shown! */
body.rbac-multiview [data-view-panel] {
  display: none !important;
}

body.rbac-multiview [data-view-panel].active-view-panel {
  display: block !important;
  animation: fadeInView 0.24s ease-out;
}

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.citizen-portal-banner {
  background: linear-gradient(135deg, rgba(6, 46, 36, 0.95), rgba(9, 25, 21, 0.98));
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-left: 5px solid #10b981;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cabinet-command-banner {
  background: linear-gradient(135deg, rgba(64, 12, 24, 0.92), rgba(15, 23, 30, 0.98));
  border: 1px solid rgba(244, 63, 94, 0.45);
  border-left: 5px solid #e11d48;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.rbac-matrix-card {
  background: rgba(7, 20, 17, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 24px;
}

.rbac-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 8, 0.8);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rbac-modal-backdrop.open {
  display: flex;
}

.rbac-modal-box {
  background: linear-gradient(160deg, #0d2621, #071613);
  border: 2px solid var(--gold);
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

/* ==========================================================================
   16. MONKEY CAY OFFICERS' CLUB — TAVERN BOARD GAMES VS. FOUNDERS AI
   ========================================================================== */
.tavern-games-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.12), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.1), transparent 55%),
    linear-gradient(180deg, #081c18 0%, #05110e 100%);
  border-bottom: 2px solid var(--gold-border);
}

.tavern-layout-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1024px) {
  .tavern-layout-grid {
    grid-template-columns: 1fr;
  }
}

.tavern-sidebar-card {
  background: rgba(9, 27, 23, 0.95);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.opponent-mini-list {
  display: grid;
  gap: 8px;
}

.opponent-mini-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(6, 18, 15, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--parchment);
  cursor: pointer;
  transition: all 0.18s ease;
}

.opponent-mini-btn:hover,
.opponent-mini-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(16, 48, 40, 0.95));
  border-color: var(--gold-light);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.opponent-mini-btn img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.founder-trash-talk-box {
  background: linear-gradient(145deg, rgba(22, 54, 46, 0.95), rgba(8, 24, 20, 0.98));
  border: 1px solid var(--gold);
  border-left: 4px solid var(--ember);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--parchment);
}

.tavern-stage-card {
  background: rgba(7, 21, 18, 0.96);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.game-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.game-tab-btn {
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(13, 38, 33, 0.85);
  color: var(--parchment);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.game-tab-btn:hover,
.game-tab-btn.active {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #071915;
  border-color: var(--gold-light);
}

/* 8x8 Board for Checkers & Chess */
.board-8x8-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.board-8x8 {
  display: grid;
  grid-template-columns: repeat(8, 52px);
  grid-template-rows: repeat(8, 52px);
  border: 6px solid #6b4423;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), inset 0 0 0 2px var(--gold);
  overflow: hidden;
}

@media (max-width: 600px) {
  .board-8x8 {
    grid-template-columns: repeat(8, 38px);
    grid-template-rows: repeat(8, 38px);
  }
}

.board-sq {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 1.65rem;
  transition: background 0.15s ease;
}

.board-sq.light {
  background: #e8d0a7;
  color: #2b1b0e;
}

.board-sq.dark {
  background: #234b3f;
  color: #f6ebd4;
}

.board-sq.selected {
  box-shadow: inset 0 0 0 3px #f59e0b;
  background: rgba(245, 158, 11, 0.38) !important;
}

.board-sq.valid-target::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.85);
  box-shadow: 0 0 10px #10b981;
}

.checker-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.35);
}

.checker-disc.player {
  background: radial-gradient(circle at 35% 35%, #fde047, #ca8a04);
  border: 2px solid #fef08a;
  color: #1c1917;
}

.checker-disc.ai {
  background: radial-gradient(circle at 35% 35%, #ef4444, #7f1d1d);
  border: 2px solid #fca5a5;
  color: #fff;
}

/* Havana & Monkey Cay Dominoes */
.domino-baize-table {
  background: radial-gradient(circle at center, #114232 0%, #072219 100%);
  border: 4px solid #784f27;
  border-radius: 14px;
  padding: 18px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.domino-chain-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  min-height: 86px;
}

.domino-hand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.domino-tile {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(145deg, #fbf4e4, #e3d1b0);
  color: #1a110a;
  border: 2px solid #855827;
  border-radius: 7px;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.domino-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.domino-tile.playable {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
}

.domino-half {
  padding: 2px 6px;
}

.domino-divider {
  width: 2px;
  height: 20px;
  background: #6b4423;
  margin: 0 3px;
}

/* Pirate Tic-Tac-Toe */
.ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, 96px);
  grid-template-rows: repeat(3, 96px);
  gap: 8px;
  justify-content: center;
  margin: 10px auto;
}

.ttt-cell {
  background: rgba(14, 42, 36, 0.92);
  border: 2px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ttt-cell:hover {
  border-color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   17. MINISTRY OF PROPAGANDA — OMNICHANNEL SOCIAL MEDIA SYNC HUB
   ========================================================================== */
.social-sync-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1024px) {
  .social-sync-grid {
    grid-template-columns: 1fr;
  }
}

.social-composer-card,
.social-feed-card {
  background: rgba(8, 24, 20, 0.95);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.platform-toggles-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.platform-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(5, 15, 13, 0.85);
  color: var(--parchment-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.16s ease;
}

.platform-toggle-pill.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #34d399;
  color: #6ee7b7;
}

.social-post-item {
  background: rgba(13, 37, 32, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 14px;
}

.social-post-item-inner {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
}

.social-post-thumb {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.channel-pill {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  text-transform: uppercase;
}
