/* ==========================================================================
   LOCAGABON AI - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Modern Dark/Slate Glassmorphism with Gabon Emerald & Gold Accents
   ========================================================================== */

:root {
  --bg-primary: #0b132b;
  --bg-surface: #1c2541;
  --bg-surface-elevated: #243054;
  --bg-glass: rgba(28, 37, 65, 0.85);

  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-azure: #3b82f6;
  --accent-rose: #ef4444;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(16, 185, 129, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Header & Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 1.5rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-azure));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-ia {
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-transform: uppercase;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-surface);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  background: var(--accent-emerald);
  color: #0b132b;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nav-btn-admin {
  border: 1px dashed var(--accent-gold);
  color: var(--accent-gold);
}

.nav-btn-admin.active {
  background: var(--accent-gold);
  color: #0b132b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-auth-outline {
  background: transparent;
  border: 1px solid var(--accent-azure);
  color: var(--accent-azure);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-auth-outline:hover {
  background: rgba(59, 130, 246, 0.15);
}

.btn-primary-sm {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #0b132b;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-primary-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Hero & AI Search Banner */
.hero-section {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15), transparent 70%), var(--bg-primary);
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* AI Smart Search Box */
.ai-search-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-glow);
  text-align: left;
}

.search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.search-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.search-tab-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.ai-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.6rem;
  gap: 0.6rem;
}

.ai-input-icon {
  font-size: 1.3rem;
  color: var(--accent-emerald);
  margin-left: 0.4rem;
}

.ai-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-main);
  padding: 0.4rem 0;
}

.btn-accent {
  background: var(--accent-emerald);
  color: #0b132b;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-accent:hover {
  background: var(--accent-emerald-hover);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.ai-suggestions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.sug-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sug-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sug-chip:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group.full-col {
  grid-column: 1 / -1;
}

.filter-group label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.filter-group select {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-main);
}

.btn-primary-block {
  width: 100%;
  background: var(--accent-emerald);
  color: #0b132b;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Property Badges (Agency vs Private / Rent vs Sale) */
.badge-seller-pro {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  color: #0b132b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.badge-seller-private {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(4px);
}

.badge-op-type {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-op-rent {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-op-sale {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Property Cards Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.property-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.property-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-md);
}

.prop-img-wrapper {
  position: relative;
  height: 200px;
  background-color: var(--bg-surface-elevated);
}

.prop-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop-badge-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(11, 19, 43, 0.9);
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.prop-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prop-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.prop-location {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.prop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.tag-item.highlight {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-azure);
  border-color: rgba(59, 130, 246, 0.3);
}

.prop-footer {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.btn-card-primary {
  flex: 1;
  background: var(--accent-emerald);
  color: #0b132b;
  border: none;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-card-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* PRICING & ABONNEMENTS SECTION */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card.popular {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.pricing-card.pro {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-emerald);
  color: #0b132b;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-full);
}

.pricing-head h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.pricing-head p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.popular .price-amount { color: var(--accent-emerald); }
.pro .price-amount { color: var(--accent-gold); }

.price-amount span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li i.ri-check-line { color: var(--accent-emerald); }
.pricing-features li i.ri-close-line { color: var(--accent-rose); }

.btn-pricing-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
}

.btn-pricing-accent {
  background: var(--accent-emerald);
  color: #0b132b;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-pricing-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #0b132b;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card-box:nth-child(1) .contact-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.contact-card-box:nth-child(2) .contact-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.contact-card-box:nth-child(3) .contact-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.contact-card-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-card-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn-contact-whatsapp {
  width: 100%;
  background: #25d366;
  color: #fff;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-contact-email {
  width: 100%;
  background: var(--accent-azure);
  color: #fff;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* AUTH MODAL */
.card-auth {
  max-width: 460px;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-tab-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-form h3 {
  font-size: 1.2rem;
}

/* SUPER-ADMIN & REVOLUT SECTION */
.admin-location-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.admin-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-stat-card.primary { border-left: 4px solid var(--accent-azure); }
.admin-stat-card.success { border-left: 4px solid var(--accent-emerald); }
.admin-stat-card.gold { border-left: 4px solid var(--accent-gold); }
.admin-stat-card.azure { border-left: 4px solid #3b82f6; }
.admin-stat-card.green-glow { border-left: 4px solid #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.15); }
.admin-stat-card.warning { border-left: 4px solid #f59e0b; }
.admin-stat-card.revolut { border-left: 4px solid #19b5fe; }

.admin-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-stat-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
}

.sub-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sub-text.euro-val {
  color: var(--accent-emerald);
  font-weight: 700;
}

.revolut-logo-badge {
  width: 28px;
  height: 28px;
  background: #19b5fe;
  color: #fff;
  font-weight: 900;
  font-family: var(--font-heading);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* CHARTS SECTION */
.charts-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 1.5rem;
}

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.chart-card.half {
  grid-column: span 1;
}

.chart-header {
  margin-bottom: 1.2rem;
}

.chart-header h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.chart-wrapper {
  position: relative;
  height: 280px;
  width: 100%;
}

.averages-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.averages-summary-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avg-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.avg-list li {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.avg-list li span {
  color: var(--text-secondary);
}

.avg-list li strong {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.revolut-payout-card {
  background: linear-gradient(135deg, rgba(28, 37, 65, 0.95), rgba(11, 19, 43, 0.95));
  border: 1px solid rgba(25, 181, 254, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 0 25px rgba(25, 181, 254, 0.15);
}

.revolut-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.revolut-icon-bg {
  width: 52px;
  height: 52px;
  background: #19b5fe;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(25, 181, 254, 0.4);
}

.revolut-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.revolut-form-grid .full {
  grid-column: span 2;
}

.btn-revolut-submit {
  width: 100%;
  background: linear-gradient(135deg, #19b5fe, #0088cc);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(25, 181, 254, 0.35);
  transition: var(--transition-fast);
}

.btn-revolut-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(25, 181, 254, 0.5);
}

/* IA Juridique Workspace */
.ia-workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  min-height: 580px;
  overflow: hidden;
}

.ia-sidebar {
  background: rgba(11, 19, 43, 0.6);
  border-right: 1px solid var(--border-color);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.ia-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.ia-avatar {
  width: 44px;
  height: 44px;
  background: var(--accent-emerald);
  color: #0b132b;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.status-online {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
}

.ia-intro-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.preset-questions h4 {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: var(--accent-gold);
}

.btn-preset-ia {
  width: 100%;
  text-align: left;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: var(--font-main);
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-preset-ia:hover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.ia-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 480px;
}

.message {
  display: flex;
  gap: 0.8rem;
  max-width: 85%;
}

.message.msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.msg-ai .msg-avatar {
  background: var(--accent-emerald);
  color: #0b132b;
}

.msg-user .msg-avatar {
  background: var(--accent-azure);
  color: #fff;
}

.msg-content {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.msg-user .msg-content {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.6rem;
  background: rgba(11, 19, 43, 0.8);
}

.chat-input-area textarea {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  resize: none;
}

.btn-send-chat {
  background: var(--accent-emerald);
  color: #0b132b;
  border: none;
  padding: 0 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

/* Legal Cards Grid */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
}

.legal-card.locataire { border-top: 4px solid var(--accent-emerald); }
.legal-card.bailleur { border-top: 4px solid var(--accent-gold); }
.legal-card.paiement-digital { border-top: 4px solid var(--accent-azure); }

.legal-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.locataire .legal-icon { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.bailleur .legal-icon { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.paiement-digital .legal-icon { background: rgba(59, 130, 246, 0.15); color: var(--accent-azure); }

.legal-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.legal-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.legal-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.legal-card li i {
  color: var(--accent-emerald);
  margin-top: 0.2rem;
}

/* Dashboards (Bailleur & Locataire) */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.stat-icon.gold { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-azure); }

.stat-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dash-tables {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.dash-tables h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.table-responsive {
  overflow-x: auto;
}

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

.data-table th, .data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.data-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.badge-paid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Locataire Active Card */
.locataire-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.loc-card-active {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.loc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge-status-ok {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.loc-id {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.loc-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.detail-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
}

.detail-box .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.detail-box .val {
  font-size: 0.95rem;
  font-weight: 700;
}

.detail-box .val.highlight {
  color: var(--accent-gold);
  font-size: 1.15rem;
}

.loc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-accent-lg {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-hover));
  color: #0b132b;
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.7rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline {
  background: transparent;
  color: var(--accent-rose);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}

.history-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.history-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item-info h5 {
  font-size: 0.9rem;
}

.history-item-info span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 540px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Modal Payment */
.pay-icon {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.pay-amount-box {
  background: var(--bg-primary);
  border: 1px dashed var(--accent-emerald);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin: 1rem 0;
}

.pay-amount-box h2 {
  color: var(--accent-gold);
  font-size: 1.8rem;
}

.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.pay-method-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.pay-method-card.active {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.pay-logo {
  font-weight: 800;
  font-size: 0.85rem;
}

.pay-logo.airtel { color: #ef4444; }
.pay-logo.moov { color: #3b82f6; }
.pay-logo.card { color: #f59e0b; }
.pay-logo.bank { color: #10b981; }

.pay-code {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.input-with-prefix {
  display: flex;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.input-with-prefix .prefix {
  background: var(--bg-surface-elevated);
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-right: 1px solid var(--border-color);
}

.input-with-prefix input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.6rem;
  font-family: var(--font-main);
  outline: none;
}

.btn-pay-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-emerald-hover));
  color: #0b132b;
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.2rem;
}

/* Modal Receipt Paper Printable */
.receipt-paper {
  background: #ffffff;
  color: #1e293b;
  padding: 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
}

.receipt-header {
  text-align: center;
  margin-bottom: 1rem;
}

.receipt-badge {
  background: #10b981;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.receipt-divider {
  border: 0;
  border-top: 1px dashed #cbd5e1;
  margin: 1rem 0;
}

.receipt-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.rec-label {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
}

.rec-val {
  font-weight: 700;
}

.receipt-amount-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  margin: 1.2rem 0;
}

.receipt-amount-block h1 {
  color: #059669;
  font-size: 2rem;
}

.receipt-footer {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 1rem;
}

.receipt-qr-stamp {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.qr-mock {
  font-size: 2.5rem;
  color: #0f172a;
}

.stamp-mock {
  border: 2px dashed #10b981;
  color: #10b981;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
}

.receipt-actions {
  margin-top: 1rem;
  text-align: center;
}

.btn-primary {
  background: var(--accent-emerald);
  color: #0b132b;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
}

/* Form Styles for Add Property */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-main);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.checkbox-group label {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Footer */
.app-footer {
  background: #070d1e;
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Utility */
.hidden { display: none !important; }
.mt-3 { margin-top: 1rem; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav {
    overflow-x: auto;
    white-space: nowrap;
  }
  .ia-workspace {
    grid-template-columns: 1fr;
  }
  .locataire-container {
    grid-template-columns: 1fr;
  }
  .charts-grid-container {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .revolut-form-grid {
    grid-template-columns: 1fr;
  }
  .revolut-form-grid .full {
    grid-column: span 1;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* --- DISTINCTION BAILLEUR PARTICULIER / PROFESSIONNEL --- */
.bailleur-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.bailleur-type-badge.particulier {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}
.bailleur-type-badge.professionnel {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.admin-stat-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.admin-stat-split .split-item {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.admin-stat-split .split-item strong {
  color: #fff;
}

/* Badge Type Bailleur dans les tableaux (admin + espace bailleur) */
.badge-type-particulier,
.badge-type-professionnel {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.badge-type-particulier {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}
.badge-type-professionnel {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

/* ==========================================================================
   OPTIMISATIONS MOBILE (ANDROID & iOS) - version corrigee
   ========================================================================== */
html, body {
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  overscroll-behavior-y: none;
}

/* Evite le zoom automatique intempestif sur iOS a la saisie, sans desactiver
   le zoom manuel de l'utilisateur (accessibilite preservee) */
@media (max-width: 768px) {
  input, select, textarea, button {
    font-size: 16px !important;
  }
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(11, 19, 43, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 998;
  justify-content: space-around;
  align-items: center;
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom, 0px));
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  gap: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 20%;
  padding: 0.3rem 0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-item i { font-size: 1.3rem; }
.mobile-nav-item.active { color: var(--accent-emerald); }

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  .main-nav { display: none; }

  .ai-floating-widget-container { bottom: 78px; right: 16px; }
  .ai-floating-robot-btn { width: 54px; height: 54px; font-size: 1.5rem; }

  .ai-chat-floating-window {
    width: calc(100vw - 24px);
    height: calc(85vh - 70px);
    bottom: 75px;
    right: 12px;
    border-radius: 20px;
  }

  .pricing-grid { grid-template-columns: 1fr; }

  /* Classes reelles du projet (l'ancien script ciblait des classes qui
     n'existaient pas : admin-wide-grid-4/3/2) */
  .admin-stats-grid { grid-template-columns: 1fr; }

  .modal-box {
    padding: 1.2rem;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px;
  }
}
