:root {
  --primary: #D32F2F;
  --primary-hover: #B71C1C;
  --primary-light: rgba(211, 47, 47, 0.08);
  --primary-glow: rgba(211, 47, 47, 0.22);
  
  --ink: #0F172A;
  --ink-secondary: #334155;
  --ink-muted: #64748B;
  
  --bg-page: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-warm-card: #FAF8F5;
  --bg-card-glass: rgba(255, 255, 255, 0.92);
  
  --border-subtle: #E2E8F0;
  --border-warm: #EBE3D6;
  --border-active: #CBD5E1;
  
  --success: #0F7A4C;
  --success-bg: #E8F5E9;
  --info: #1E3A5F;
  --info-bg: #E3F2FD;
  --warning: #B45309;
  --warning-bg: #FEF0DC;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 290px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, #B71C1C 100%);
  color: #FFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.brand-info h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.brand-pill {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--primary);
}

.nav-section-label {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink-muted);
}

.sidebar-nav {
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  width: 100%;
}

.nav-item .nav-icon {
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

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

.nav-item.active {
  background: linear-gradient(90deg, var(--primary-light) 0%, rgba(227, 30, 36, 0.02) 100%);
  color: var(--primary);
  font-weight: 700;
  border-left: 3px solid var(--primary);
}

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

.sidebar-footer {
  padding: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.mantra-chip {
  background: #F1F5F9;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mantra-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.connected-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(15, 122, 76, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(15, 122, 76, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(15, 122, 76, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(15, 122, 76, 0); }
}

/* Main Content */
.main-content {
  margin-left: 290px;
  flex: 1;
  padding: 32px 40px;
  max-width: 1320px;
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.breadcrumb {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.top-header h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.top-header .subtitle {
  color: var(--ink-muted);
  font-size: 14px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #FFF;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #FFF;
  color: var(--ink);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: var(--border-active);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.metric-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.metric-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.bg-blue { background: #E0F2FE; }
.bg-purple { background: #F3E8FF; }
.bg-green { background: #DCFCE7; }
.bg-orange { background: #FFEDD5; }

.metric-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.metric-trend {
  font-size: 12px;
  font-weight: 600;
}

.text-success { color: var(--success); }
.text-info { color: var(--info); }
.text-warning { color: var(--warning); }

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-left h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.card-description {
  color: var(--ink-secondary);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-neutral { background: #F1F5F9; color: var(--ink-secondary); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: #FEE2E2; color: var(--primary); }

.input-search {
  padding: 8px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  width: 320px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.input-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Workflow Stepper */
.workflow-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
}

.step-card.active {
  opacity: 1;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-active);
  color: #FFF;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card.active .step-badge {
  background: var(--primary);
}

.step-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.step-info span {
  font-size: 11px;
  color: var(--ink-muted);
}

.step-arrow {
  color: var(--ink-muted);
  font-size: 18px;
}

/* Feed Grid */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.feed-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFF;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.feed-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.feed-card-body {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.feed-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 11px;
  color: var(--ink-muted);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background: #F8FAFC;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #F8FAFC;
}

/* Ward Grid */
.ward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ward-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #FFF;
}

.ward-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ward-card p {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Audit Stream */
.audit-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #FFF;
  font-size: 13px;
}

.audit-action-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  color: var(--info);
  background: var(--info-bg);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.audit-meta {
  font-size: 11px;
  color: var(--ink-muted);
}

/* Badges Showcase */
.badges-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.badge-item-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  background: #FFF;
  text-align: center;
}

.badge-item-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.badge-item-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.badge-item-card p {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

/* Empty State */
.empty-state-box {
  padding: 48px;
  text-align: center;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-state-box h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-state-box p {
  color: var(--ink-muted);
  font-size: 13px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-group h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.modal-title-group p {
  font-size: 12px;
  color: var(--ink-muted);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink-muted);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Shimmer Loading */
.loading-shimmer-card {
  height: 160px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   MODERN DRIBBLE-INSPIRED CMS QUOTE SHOWCASE & CARD DESIGNS
   ========================================================================== */
.quote-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.quote-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quote-filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quote-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.quote-filter-btn.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.quote-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.modern-quote-card {
  position: relative;
  background: var(--bg-warm-card);
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modern-quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(211, 47, 47, 0.3);
}

.modern-quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-bar, var(--primary));
  border-radius: 4px 0 0 4px;
}

.quote-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.quote-tag-pill {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(211, 47, 47, 0.08);
  color: var(--primary);
}

.quote-glyph-icon {
  font-family: serif;
  font-size: 38px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.12);
  user-select: none;
}

.quote-body-text {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 20px;
}

.quote-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(235, 227, 214, 0.8);
}

.quote-author-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color, #D32F2F) 0%, #1E293B 100%);
  color: #FFF;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.quote-author-info h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.quote-author-info span {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
}

.quote-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-quote {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #FFF;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-quote:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   LINKEDIN-STYLE EMAIL VERIFICATION MODAL (WEB CLIENT)
   ========================================================================== */
.verify-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.verify-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.verify-modal-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--border-warm);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.verify-modal-overlay.active .verify-modal-card {
  transform: scale(1);
}

.verify-modal-header {
  background: var(--bg-warm-card);
  padding: 28px 24px 20px 24px;
  border-bottom: 1px solid var(--border-warm);
  text-align: center;
  position: relative;
}

.verify-shield-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  font-size: 24px;
}

.verify-modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.verify-modal-header p {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.verify-email-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  background: #FFF;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.verify-modal-body {
  padding: 24px;
}

.otp-boxes-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 20px 0;
}

.otp-single-box {
  width: 48px;
  height: 58px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  background: var(--bg-warm-card);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.otp-single-box:focus {
  border-color: var(--primary);
  background: #FFF;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.otp-single-box.filled {
  border-color: var(--primary);
  background: rgba(211, 47, 47, 0.03);
}

.verify-timer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.timer-countdown-badge {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timer-countdown-badge strong {
  font-family: var(--font-mono);
  color: var(--ink);
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 6px;
}

.resend-action-btn {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.resend-action-btn:hover:not(:disabled) {
  background: var(--primary-light);
}

.resend-action-btn:disabled {
  color: var(--ink-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.verify-error-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
  animation: shake 0.4s ease;
}

.verify-error-box.active {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verify-success-view {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
}

.verify-success-view.active {
  display: flex;
}

.success-check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #DCF5E6;
  color: #0F7A4C;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.verify-modal-footer-note {
  background: var(--bg-warm-card);
  padding: 12px 20px;
  border-top: 1px solid var(--border-warm);
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

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


/* ---------------------------------------------------------------------------
   Admin authentication gate (web-cms/auth.js, Phase 32).
   Covers the whole console until a platform-admin session is established. Uses
   the same Outfit/glassmorphism language as the rest of the dashboard.
   --------------------------------------------------------------------------- */
.cms-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 30% 20%, #1b1f3b 0%, #0b0d1a 60%, #05060d 100%);
}

.cms-gate-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: #f4f6ff;
  font-family: 'Outfit', system-ui, sans-serif;
}

.cms-gate-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff6b6b;
  margin-bottom: 14px;
}

.cms-gate-title { font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.cms-gate-sub { font-size: 14px; margin: 0 0 26px; color: rgba(244, 246, 255, 0.62); }
.cms-gate-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: rgba(244, 246, 255, 0.8); }

.cms-gate-input {
  width: 100%;
  padding: 13px 15px;
  margin-bottom: 18px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: #f4f6ff;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
}
.cms-gate-input:focus { outline: 2px solid #ff6b6b; outline-offset: 1px; border-color: transparent; }
.cms-gate-input::placeholder { color: rgba(244, 246, 255, 0.35); }

.cms-gate-btn {
  width: 100%;
  padding: 13px 18px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff6b6b 0%, #d32f2f 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.cms-gate-btn:disabled { opacity: 0.6; cursor: progress; }
.cms-gate-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.cms-gate-link {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border: none;
  background: none;
  color: rgba(244, 246, 255, 0.6);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.cms-gate-error {
  display: none;
  padding: 11px 14px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.12);
  color: #ffc9c9;
  font-size: 13px;
  line-height: 1.45;
}

.cms-session-chip {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(12, 14, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 12.5px;
  color: #f4f6ff;
}

.cms-session-tier {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.18);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb3b3;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cms-session-signout {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #f4f6ff;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cms-session-signout:hover { background: rgba(255, 255, 255, 0.1); }

/* Ambient Bottom Connection Lining & Diagnostics */
#ambient-connection-line {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

#ambient-connection-line.status-online {
  background: #10B981;
  box-shadow: 0 -2px 14px rgba(16, 185, 129, 0.6);
  opacity: 0.45;
}

#ambient-connection-line.status-online.pulsing {
  opacity: 1;
  box-shadow: 0 -3px 22px rgba(16, 185, 129, 0.85);
}

#ambient-connection-line.status-offline {
  background: #FF3366;
  box-shadow: 0 -3px 18px rgba(255, 51, 102, 0.75);
  animation: ambientBreathingRed 2s infinite ease-in-out;
}

#ambient-connection-line.status-reconnecting {
  background: #38BDF8;
  box-shadow: 0 -2px 16px rgba(56, 189, 248, 0.75);
  animation: ambientShimmerCyan 1.5s infinite ease-in-out;
}

@keyframes ambientBreathingRed {
  0%, 100% { opacity: 0.75; box-shadow: 0 -2px 12px rgba(255, 51, 102, 0.5); }
  50% { opacity: 1; box-shadow: 0 -4px 24px rgba(255, 51, 102, 0.9); }
}

@keyframes ambientShimmerCyan {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; box-shadow: 0 -4px 20px rgba(56, 189, 248, 0.9); }
}

/* Floating Status Capsule Toast (Auto-Dismiss 3.5s) */
.ambient-status-capsule {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #F8FAFC;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ambient-status-capsule.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ambient-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ambient-status-dot.dot-online { background: #10B981; box-shadow: 0 0 8px #10B981; }
.ambient-status-dot.dot-offline { background: #EF4444; box-shadow: 0 0 8px #EF4444; }
.ambient-status-dot.dot-reconnecting { background: #94A3B8; box-shadow: 0 0 8px #94A3B8; }

/* Double-Click Diagnostic Modal Card */
.ambient-diagnostic-card {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 10000;
  width: 90%;
  max-width: 440px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: #F8FAFC;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ambient-diagnostic-card.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

