/* ============================================
   REAL ESTATE AGENCY — Premium Dark
   Soft dark, organic, no hard borders
   ============================================ */

:root {
  /* Dark Palette — noir profond */
  --bg: #09090f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --bg-elevated: #1a1a24;
  --bg-surface: #0e0e16;
  --bg-section: #0a0a12;
  --bg-darker: #060609;

  /* Accent — Gold Premium */
  --accent: #c9a84c;
  --accent-light: #e2c36b;
  --accent-dark: #a88a3a;
  --accent-soft: rgba(201, 168, 76, 0.1);
  --accent-glow: rgba(201, 168, 76, 0.25);
  --cyan: #d4a853;
  --cyan-soft: rgba(212, 168, 83, 0.08);
  --or: #c9a84c;

  /* Text */
  --text: #e0e0ea;
  --text-secondary: #8b8b9e;
  --text-muted: #555566;
  --text-white: #f4f4f8;

  /* Borders — very subtle */
  --border: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(201, 168, 76, 0.15);
  --glass-border: rgba(255, 255, 255, 0.04);
  --sable: #b8915a;

  /* Semantic */
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.08);
  --success-border: rgba(74, 222, 128, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.08);
  --danger-border: rgba(248, 113, 113, 0.12);
  --info: #60a5fa;
  --info-bg: rgba(96, 165, 250, 0.08);
  --info-border: rgba(96, 165, 250, 0.12);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.08);
  --warning-border: rgba(251, 191, 36, 0.12);

  /* Sizing */
  --fivem-bar-height: 30px;
  --nav-height: calc(72px + var(--fivem-bar-height));
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s var(--ease);
}

/* ============ RESET ============ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

.bg-gradient, .bg-noise { display: none; }

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4, .heading {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-white);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

.text-or { color: var(--accent); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-label::after { display: none; }

/* ============ FEATURE ROWS (alternating text/visual) ============ */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-row-reverse {
  direction: rtl;
}

.feature-row-reverse > * {
  direction: ltr;
}

.feature-text h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-white);
}

.feature-text .section-label {
  margin-bottom: 16px;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .feature-text h2 {
    font-size: 1.8rem;
  }
}

/* ============ NAVBAR ============ */

.navbar {
  position: fixed;
  top: var(--fivem-bar-height); left: 0; right: 0;
  height: 72px;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: none;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.nav-logo-icon {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.3));
}

.nav-logo-text {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 2.5px;
  line-height: 1.1;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-logo-accent {
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 3.5px;
  font-size: 0.65rem;
  display: block;
}

.logo-ls {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.logo-agency {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 8px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 100px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover { color: var(--text-white); }

.nav-link.active {
  color: var(--text-white);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

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

/* ============ BANNER ============ */

.agency-banner {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  padding: 10px 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 999;
  transition: var(--transition);
}

body.has-banner { --banner-height: 38px; }
body.has-banner .hero { padding-top: var(--banner-height); }
body.has-banner .page-header { padding-top: calc(var(--nav-height) + var(--banner-height) + 56px); }
body.has-banner .about-hero { padding-top: calc(var(--nav-height) + var(--banner-height) + 40px); }
body.has-banner .about-hero-compact { padding-top: calc(var(--nav-height) + var(--banner-height) + 24px); }

.agency-banner .banner-content { display: flex; align-items: center; justify-content: center; gap: 8px; }
.agency-banner .banner-dot { width: 6px; height: 6px; border-radius: 50%; animation: dotPulse 2s ease-in-out infinite; }
.agency-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; }

.agency-banner.open { background: rgba(74, 222, 128, 0.06); color: var(--success); border-bottom: 1px solid rgba(74,222,128,0.08); }
.agency-banner.open .banner-dot { background: var(--success); box-shadow: 0 0 8px var(--success); }
.agency-banner.closed { background: rgba(248, 113, 113, 0.06); color: var(--danger); border-bottom: 1px solid rgba(248,113,113,0.08); }
.agency-banner.closed .banner-dot { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.agency-banner.rdv { background: rgba(201, 168, 76, 0.06); color: var(--accent); border-bottom: 1px solid rgba(201,168,76,0.08); }
.agency-banner.rdv .banner-dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

/* ============ BUTTONS — rounded like MEE6 ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn::after { display: none; }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent);
  color: #1a1a2e;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-white);
  border: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-white); background: rgba(255,255,255,0.04); }

.btn-lg { padding: 16px 40px; font-size: 0.95rem; }
.btn-sm { padding: 7px 18px; font-size: 0.75rem; }

.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: rgba(248,113,113,0.15); }
.btn-success { background: var(--success-bg); color: var(--success); }
.btn-success:hover { background: rgba(74,222,128,0.15); }

.refresh-btn {
  position: fixed; bottom: 28px; left: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: var(--bg-card);
  color: var(--accent); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease); box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 900;
}
.refresh-btn:hover { transform: translateY(-3px) rotate(90deg); background: var(--bg-elevated); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.refresh-btn.spinning { animation: refreshSpin 0.8s var(--ease); }
@keyframes refreshSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============ CARDS — no border, soft bg like MEE6 ============ */

.glass-card, .glass-card-static {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  transition: all 0.35s var(--ease);
  position: relative;
}

.glass-card::before, .glass-card-static::before { display: none; }

.glass-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* ============ FORMS ============ */

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

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg-elevated);
}

.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: rgba(255,255,255,0.08); }
.form-input::placeholder { color: var(--text-muted); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5b72' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 14px 18px;
  padding-right: 40px;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-select-trigger:hover {
  border-color: rgba(255,255,255,0.08);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg-elevated);
}

.custom-select.open .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-select-trigger svg {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #14141e;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  max-height: 280px;
  overflow-y: auto;
}

.custom-select.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.custom-select-option:last-child {
  margin-bottom: 0;
}

.custom-select-option:hover {
  background: rgba(201,168,76,0.08);
  color: var(--text-white);
}

.custom-select-option.selected {
  background: rgba(201,168,76,0.12);
  color: var(--accent-light);
  font-weight: 600;
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.2);
  border-radius: 4px;
}

.form-textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-checkbox input[type="checkbox"] {
  appearance: none; width: 20px; height: 20px;
  border: none; border-radius: 6px;
  background: var(--bg-surface); cursor: pointer;
  transition: var(--transition); position: relative;
}
.form-checkbox input[type="checkbox"]:checked { background: var(--accent); }
.form-checkbox input[type="checkbox"]:checked::after { content: '\2713'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #1a1a2e; font-size: 12px; font-weight: 700; }

/* ============ LAYOUT ============ */

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }

.page-header {
  padding: calc(var(--nav-height) + 80px) 0 56px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 1px;
}

.page-header h1 { margin-bottom: 16px; }
.page-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ============ HERO — gradient top like MEE6 ============ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 20px) 32px 0 32px;
  background: linear-gradient(180deg,
    rgba(201, 168, 76, 0.12) 0%,
    rgba(201, 168, 76, 0.04) 25%,
    var(--bg) 55%
  );
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(201, 168, 76, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(201, 168, 76, 0.1);
  border: none;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s var(--ease) forwards;
}

.hero-badge .status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(74,222,128,0.5);
}

.hero-badge .status-dot.closed { background: var(--danger); box-shadow: 0 0 8px rgba(248,113,113,0.5); }
.hero-badge .status-dot.rdv { background: var(--warning); box-shadow: 0 0 8px rgba(251,191,36,0.5); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s 0.08s var(--ease) both;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s 0.16s var(--ease) both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s 0.24s var(--ease) both;
}

.hero-actions .btn-primary { padding: 16px 40px; font-size: 0.95rem; }
.hero-actions .btn-secondary { padding: 16px 36px; font-size: 0.95rem; }

.hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 80px;
  justify-content: center;
  animation: fadeInUp 0.6s 0.32s var(--ease) both;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.hero-stat { text-align: center; }

.hero-stat .stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text-white);
}

.hero-stat .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

/* ============ DISCORD CTA ============ */

/* Discord Banner */
/* ============ DISCORD BANNER ============ */
.discord-banner {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 50%, #3b44b5 100%);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.discord-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(88, 101, 242, 0.35);
}
.discord-banner-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.discord-logo-bg {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 35%;
  height: auto;
  opacity: 1;
}
.discord-banner-inner {
  position: relative;
  z-index: 1;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.discord-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.discord-banner-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.discord-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  background: white;
  color: #5865F2;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.discord-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  background: #f0f0f5;
}
.discord-banner-links {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.discord-join-btn-outline {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}
.discord-join-btn-outline:hover {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .discord-banner-inner { flex-direction: column; padding: 28px 24px; text-align: center; }
  .discord-banner-left { flex-direction: column; }
  .discord-banner-links { justify-content: center; }
  .discord-logo-bg { width: 50%; opacity: 0.3; right: -5%; }
}

/* ============ PROPERTY CARDS ============ */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.property-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: none;
  transition: all 0.4s var(--ease);
}

.property-card::after { display: none; }

.property-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.property-card-image {
  height: 220px;
  background: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}

.property-card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}

.property-card:hover .property-card-image { transform: scale(1.05); }

.property-card-image-wrapper { overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.property-card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }

.property-badge {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-vente { background: var(--accent); color: #1a1a2e; }
.badge-location { background: var(--success); color: #1a1a2e; }
.badge-exclusif { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #1a1a2e; }
.badge-reserve { background: var(--warning); color: #1a1a2e; }
.badge-vendu, .badge-loue { background: var(--danger); color: white; }
.badge-disponible { background: var(--success); color: #1a1a2e; }

.property-badge-new {
  background: linear-gradient(135deg, #c9a84c, #e8d48b, #c9a84c);
  background-size: 200% 100%;
  color: #1a1a2e;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgeShimmer 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.4);
}

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

.property-favorite {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: var(--transition); z-index: 2; color: white;
}

.property-favorite:hover { background: rgba(0,0,0,0.6); transform: scale(1.15); }
.property-favorite.active { color: #ff4757; }

.property-card-body { padding: 24px; }

.price-ht {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.7;
  margin-left: 1px;
}
.property-card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.property-card-title { font-size: 1rem; font-weight: 600; color: var(--text-white); margin-bottom: 6px; }
.property-card-location { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-bottom: 18px; }

.property-card-features { display: flex; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.04); }
.property-feature { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.property-feature span { color: var(--text-secondary); font-weight: 600; }

/* ============ PROPERTY DETAIL V2 — Immersive ============ */

.property-detail-v2 { padding-bottom: 0; }

/* Gallery Section — Full Width */
.pd-gallery-section {
  position: relative;
  padding-top: calc(var(--nav-height) + 24px);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.pd-back-float {
  position: absolute;
  top: calc(var(--nav-height) + 36px);
  left: 36px;
  z-index: 10;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.pd-back-float:hover { background: rgba(201,168,76,0.4); transform: scale(1.05); }
.pd-badges-float {
  position: absolute;
  top: calc(var(--nav-height) + 36px);
  right: 36px;
  z-index: 10;
  display: flex; gap: 6px;
}
.pd-badge {
  padding: 8px 18px; border-radius: 10px; font-size: 0.82rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.pd-badge-status { background: #2d8a56; color: #fff; border: none; }
.pd-badge-reserve { background: #f59e0b; color: #fff; border: none; }
.pd-badge-vendu { background: #ef4444; color: #fff; border: none; }
.pd-badge-loue { background: #3b82f6; color: #fff; border: none; }
.pd-badge-new { background: var(--accent); color: #000; border: none; font-weight: 900; }
.pd-badge-premium {
  background: linear-gradient(135deg, #b8860b, #d4a843, #f5d478, #d4a843, #b8860b);
  background-size: 300% 100%;
  animation: pd-premium-shimmer 3s ease infinite;
  color: #000;
  border: 1px solid rgba(245,212,120,0.5);
  font-weight: 900;
  position: relative;
  overflow: hidden;
}
.pd-badge-premium::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: pd-premium-shine 3s ease-in-out infinite;
}
@keyframes pd-premium-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pd-premium-shine {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

/* Gallery Mosaic */
.pd-gallery-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5px;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
}
.pd-gallery-main {
  background-size: cover; background-position: center; background-color: var(--bg-elevated);
  cursor: pointer; position: relative; overflow: hidden;
  border-radius: 16px 0 0 16px;
}
.pd-gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
}
.pd-gallery-thumb {
  background-size: cover; background-position: center; background-color: var(--bg-elevated);
  cursor: pointer; position: relative; overflow: hidden;
}
.pd-gallery-side .pd-gallery-thumb:nth-child(2) { border-radius: 0 16px 0 0; }
.pd-gallery-side .pd-gallery-thumb:last-child { border-radius: 0 0 16px 0; }
.pd-gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(9,9,15,0);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; color: #fff; opacity: 0;
  pointer-events: none;
}
.pd-gallery-main:hover .pd-gallery-item-overlay,
.pd-gallery-thumb:hover .pd-gallery-item-overlay { background: rgba(9,9,15,0.3); opacity: 1; }
.pd-gallery-count {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff;
  pointer-events: none;
}
/* Single photo: full width, no side panel */
.pd-gallery-mosaic--single {
  grid-template-columns: 1fr;
}
.pd-gallery-mosaic--single .pd-gallery-main {
  border-radius: 16px;
  height: 380px;
}

/* Two photos: main + 1 side */
.pd-gallery-mosaic--duo .pd-gallery-side {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

/* Three photos: main + 2 side stacked */
.pd-gallery-mosaic--trio .pd-gallery-side {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}
.pd-gallery-mosaic--trio .pd-gallery-side .pd-gallery-thumb:first-child { border-radius: 0 16px 0 0; }
.pd-gallery-mosaic--trio .pd-gallery-side .pd-gallery-thumb:last-child { border-radius: 0 0 16px 0; }

.pd-gallery-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; min-height: 300px; color: var(--text-muted); font-size: 0.9rem;
}

/* Floating Info Card */
.pd-floating-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-top: 20px;
  position: relative;
  z-index: 5;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.pd-float-left { flex: 1; min-width: 0; }
.pd-title { font-size: 1.6rem; font-weight: 700; color: var(--text-white); margin: 0 0 6px; line-height: 1.3; }
.pd-location-row { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 0.88rem; }
.pd-float-right { text-align: right; flex-shrink: 0; }
.pd-price-big { font-size: 2rem; font-weight: 800; color: var(--accent-light); line-height: 1.1; }
.pd-price-suffix { font-size: 0.85rem; font-weight: 400; opacity: 0.7; }
.pd-price-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

/* Two Column Layout */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  padding: 40px 0 80px;
}

/* Left Content */
.pd-content { min-width: 0; }
.pd-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}
.pd-spec-card {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.pd-spec-card:hover { border-color: rgba(201,168,76,0.2); transform: translateY(-2px); }
.pd-spec-num { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text-white); }
.pd-spec-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.pd-section { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.pd-section:last-child { border-bottom: none; }
.pd-section-title { font-size: 1.1rem; font-weight: 700; color: var(--text-white); margin: 0 0 16px; }
.pd-desc-text { color: var(--text-secondary); line-height: 1.85; font-size: 0.93rem; white-space: pre-line; margin: 0; }

.pd-location-info { display: flex; align-items: flex-start; gap: 12px; }
.pd-loc-district { font-weight: 700; font-size: 1rem; color: var(--text-white); }
.pd-loc-address { font-size: 0.85rem; color: var(--text-secondary); margin-top: 3px; }
.pd-loc-city { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

.pd-agent { display: flex; align-items: center; gap: 14px; }
.pd-agent-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #1a1a2e; flex-shrink: 0;
}
.pd-agent-name { font-weight: 600; font-size: 0.95rem; color: var(--text-white); }
.pd-agent-role { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Right Sidebar */
.pd-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.pd-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.pd-sidebar-price { font-size: 1.8rem; font-weight: 800; color: var(--accent-light); margin-bottom: 4px; }
.pd-sidebar-type { font-size: 0.82rem; color: var(--text-muted); }
.pd-sidebar-sep { height: 1px; background: var(--border); margin: 20px 0; }
.pd-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px; border-radius: var(--radius); font-size: 0.88rem;
  font-weight: 600; cursor: pointer; transition: all 0.3s; text-decoration: none; border: none;
  margin-bottom: 10px;
}
.pd-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #1a1a2e; }
.pd-btn-primary:hover { background: linear-gradient(135deg, var(--accent-light), var(--accent)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.25); }
.pd-btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-hover) !important; }
.pd-btn-secondary:hover { border-color: var(--accent) !important; color: var(--accent-light); background: rgba(201,168,76,0.05); }
.pd-btn-discord { background: linear-gradient(135deg, #5865F2, #4752C4) !important; color: #fff !important; border: none !important; }
.pd-btn-discord:hover { background: linear-gradient(135deg, #4752C4, #3b44a8) !important; transform: translateY(-1px); }
.pd-btn-discord svg { flex-shrink: 0; }
.pd-sidebar-links { display: flex; justify-content: center; gap: 20px; margin-top: 6px; }
.pd-action-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--text-muted); font-size: 0.82rem;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.pd-action-link:hover { color: var(--text-white); }
.pd-action-fav:hover { color: #e74c3c; }

/* Related Properties */
.pd-related { padding: 80px 0; background: var(--bg-section); border-top: 1px solid var(--border); }

/* Lightbox */
.pd-lightbox {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 9999; background: rgba(0,0,0,0.96); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.pd-lightbox-img {
  max-width: min(90vw, 1200px); max-height: 90vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.pd-lightbox-close {
  position: fixed; top: 24px; right: 32px; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1); color: #fff; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; z-index: 10000;
}
.pd-lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.pd-lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; z-index: 10000;
}
.pd-lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.pd-lightbox-prev { left: 24px; }
.pd-lightbox-next { right: 24px; }
.pd-lightbox-counter {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 0.85rem; color: rgba(255,255,255,0.6); font-weight: 500;
}

/* Legacy property detail classes */
.property-detail { padding-top: calc(var(--nav-height) + 24px); padding-bottom: 80px; }
.property-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.property-detail-info h1 { font-size: 2.2rem; margin-bottom: 10px; }
.property-detail-location { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.property-detail-price { font-size: 2.6rem; color: var(--accent-light); font-weight: 800; margin-bottom: 32px; }
.property-detail-price small { font-size: 0.88rem; color: var(--text-muted); font-weight: 400; }
.property-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 36px; }
.property-spec { padding: 20px 16px; background: var(--bg-surface); border: none; border-radius: var(--radius); text-align: center; transition: var(--transition); }
.property-spec:hover { background: var(--bg-elevated); transform: translateY(-2px); }
.property-spec-value { font-size: 1.4rem; font-weight: 800; color: var(--text-white); }
.property-spec-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.property-description { color: var(--text-secondary); line-height: 1.9; margin-bottom: 36px; font-size: 0.95rem; }
.property-features-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.property-feature-tag { padding: 6px 16px; background: var(--accent-soft); border: none; border-radius: 100px; font-size: 0.78rem; color: var(--accent-light); font-weight: 500; transition: var(--transition); }
.property-feature-tag:hover { background: rgba(201,168,76,0.15); }
.property-sidebar-card { padding: 32px; position: sticky; top: calc(var(--nav-height) + 24px); border: none; border-radius: var(--radius-lg); background: var(--bg-card); }
.property-sidebar-card h3 { margin-bottom: 28px; font-size: 1.3rem; }
.property-sidebar-card .btn { width: 100%; margin-bottom: 12px; padding: 14px 24px; font-weight: 600; }

/* ============ FILTERS ============ */

.filters-bar { padding: 24px; margin-bottom: 28px; background: var(--bg-card); border-radius: var(--radius-lg); border: none; }
.filters-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: end; }
.filter-group { min-width: 0; }
.filter-group label { display: block; font-size: 0.68rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.filter-group .form-input, .filter-group .form-select { padding: 10px 14px; font-size: 0.85rem; }
.filter-group .form-input { box-sizing: border-box; }
.filter-group .custom-select-trigger, .filter-group .form-input { height: 42px; box-sizing: border-box; padding: 10px 14px; font-size: 0.85rem; }
.filters-actions { display: flex; gap: 8px; align-items: end; }
@media (max-width: 900px) { .filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .filters-grid { grid-template-columns: 1fr; } }

/* Toggle Switch */
.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  cursor: pointer;
  user-select: none;
}
.toggle-input { display: none; }
.toggle-track {
  width: 48px;
  height: 26px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 13px;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
}
.toggle-thumb {
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform 0.3s, background 0.3s;
}
.toggle-input:checked ~ .toggle-track {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--accent);
}
.toggle-input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(22px);
  background: var(--accent);
}
.toggle-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s;
}
.toggle-input:checked ~ .toggle-label {
  color: var(--accent);
}

/* ============ SERVICES ============ */

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { padding: 40px; cursor: default; }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 24px; transition: var(--transition);
}
.service-card:hover .service-icon { background: rgba(201,168,76,0.15); transform: scale(1.1); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; }

/* ============ TEAM ============ */

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.team-card { padding: 40px; text-align: center; }
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #1a1a2e;
  margin: 0 auto 20px; transition: var(--transition);
  box-shadow: 0 8px 24px rgba(201,168,76,0.15);
}
.team-card:hover .team-avatar { transform: scale(1.1); box-shadow: 0 12px 36px rgba(201,168,76,0.25); }
.team-card h4 { margin-bottom: 6px; font-size: 1.1rem; }
.team-card .team-role { color: var(--accent-light); font-size: 0.8rem; font-weight: 600; }
.team-card .team-specialty { color: var(--text-muted); font-size: 0.8rem; margin-top: 10px; }

/* ============ STATUS BADGES ============ */

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.status-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.status-nouveau { background: var(--info-bg); color: var(--info); }
.status-nouveau::before { background: var(--info); }
.status-en_attente { background: var(--warning-bg); color: var(--warning); }
.status-en_attente::before { background: var(--warning); }
.status-en_cours { background: var(--accent-soft); color: var(--accent-light); }
.status-en_cours::before { background: var(--accent); }
.status-disponible { background: var(--success-bg); color: var(--success); }
.status-disponible::before { background: var(--success); }
.status-confirme, .status-traite, .status-realise, .status-accepte { background: var(--success-bg); color: var(--success); }
.status-confirme::before, .status-traite::before, .status-realise::before, .status-accepte::before { background: var(--success); }
.status-envoye, .status-propose { background: var(--info-bg); color: var(--info); }
.status-envoye::before, .status-propose::before { background: var(--info); }
.status-refuse, .status-annule { background: var(--danger-bg); color: var(--danger); }
.status-refuse::before, .status-annule::before { background: var(--danger); }
.status-reporte { background: rgba(100,100,120,0.06); color: #888; }
.status-reporte::before { background: #888; }
.status-exclusif { background: var(--accent-soft); color: var(--accent-light); }
.status-exclusif::before { background: var(--accent); }
.status-reserve { background: var(--warning-bg); color: var(--warning); }
.status-reserve::before { background: var(--warning); }
.status-vendu { background: var(--danger-bg); color: var(--danger); }
.status-vendu::before { background: var(--danger); }
.status-expire { background: rgba(100,100,120,0.06); color: #888; }
.status-expire::before { background: #888; }
.status-brouillon { background: rgba(100,100,120,0.04); color: #777; }
.status-brouillon::before { background: #777; }

.agency-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 18px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.agency-status.open { background: var(--success-bg); color: var(--success); }
.agency-status.rdv { background: var(--accent-soft); color: var(--accent); }
.agency-status.closed { background: var(--danger-bg); color: var(--danger); }

/* ============ USER MENU ============ */

.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.03));
  border: 1px solid rgba(201,168,76,0.12) !important;
  transition: all 0.3s ease;
}
.user-btn:hover {
  background: linear-gradient(135deg, rgba(201,168,76,0.14), rgba(201,168,76,0.06));
  border-color: rgba(201,168,76,0.25) !important;
  box-shadow: 0 4px 20px rgba(201,168,76,0.1);
}
.user-btn #userName {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-white);
  transition: color 0.2s;
}
.user-btn:hover #userName {
  color: var(--accent);
}
.user-avatar-small {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d4b85a);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; color: #1a1a2e;
  box-shadow: 0 2px 10px rgba(201,168,76,0.2);
  border: 2px solid rgba(201,168,76,0.25);
  transition: all 0.3s ease;
  overflow: hidden;
}
.user-btn:hover .user-avatar-small {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 2px 16px rgba(201,168,76,0.3);
}
.user-dropdown { position: absolute; top: 100%; right: 0; margin-top: 10px; min-width: 220px; padding: 8px; background: var(--bg-card); border: none; border-radius: var(--radius); box-shadow: 0 16px 56px rgba(0,0,0,0.4); z-index: 100; animation: dropdownIn 0.2s var(--ease); }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-item { display: block; padding: 10px 14px; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; border-radius: 8px; transition: var(--transition); border: none; background: none; width: 100%; text-align: left; cursor: pointer; font-family: 'Inter', sans-serif; }
.dropdown-item:hover { color: var(--text-white); background: rgba(255,255,255,0.05); }
.dropdown-admin { color: var(--accent-light); }
.dropdown-logout { color: var(--danger); }
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.04); margin: 6px 0; }

/* ============ DASHBOARD ============ */

.dashboard-layout { padding-top: calc(var(--nav-height) + 28px); display: grid; grid-template-columns: 240px 1fr; gap: 28px; min-height: 100vh; max-width: 1360px; margin: 0 auto; padding-left: 28px; padding-right: 28px; overflow: hidden; }

.dashboard-sidebar { padding: 24px 14px; position: sticky; top: calc(var(--nav-height) + 28px); height: fit-content; border: none; border-radius: var(--radius-lg); background: var(--bg-card); }

.sidebar-nav { list-style: none; }
.sidebar-nav-item { margin-bottom: 2px; }
.sidebar-nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; border-radius: var(--radius-sm); transition: var(--transition); position: relative; }
.sidebar-nav-link:hover { color: var(--text-white); background: rgba(255,255,255,0.04); }
.sidebar-nav-link.active { color: var(--accent-light); background: var(--accent-soft); font-weight: 600; }
.sidebar-nav-link.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 55%; background: var(--accent); border-radius: 0 3px 3px 0; }

.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #1a1a2e; font-size: 0.62rem; font-weight: 700; margin-left: auto; }
.badge-count.danger { background: var(--danger); color: white; }
.badge-count.info { background: var(--info); color: white; }

.dashboard-content { padding: 4px 0 40px 0; min-height: 60vh; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.dashboard-header h2 { font-size: 1.5rem; }

/* ============ NEW PANEL LAYOUT (v2) ============ */

.panel-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px;
  max-width: 1400px; margin: 0 auto;
  padding: calc(var(--nav-height) + 28px) 28px 60px;
  min-height: 100vh;
}

.panel-sidebar {
  position: sticky; top: calc(var(--nav-height) + 28px); height: fit-content;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.panel-sidebar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.panel-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #0a0a12;
  flex-shrink: 0;
}

.panel-user-name { font-weight: 600; font-size: 0.9rem; color: var(--text-white); }
.panel-user-role { font-size: 0.72rem; color: var(--accent); font-weight: 500; }

.panel-edit-profile-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.panel-edit-profile-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(201,168,76,0.08); }

.panel-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }

.panel-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: var(--transition); position: relative;
}
.panel-nav-link svg { flex-shrink: 0; transition: var(--transition); }
.panel-nav-link:hover { color: var(--text-white); background: rgba(255,255,255,0.04); }
.panel-nav-link.active {
  color: var(--accent-light); background: rgba(201,168,76,0.08);
  font-weight: 600;
}
.panel-nav-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; background: var(--accent); border-radius: 0 3px 3px 0;
}

.panel-sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.04); }

.panel-main {
  padding: 4px 0 40px 0; min-height: 60vh;
}

/* Panel Header */
.panel-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px;
}
.panel-title { font-size: 1.6rem; font-weight: 800; color: var(--text-white); margin-bottom: 4px; }
.panel-subtitle { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }

/* Panel Stats */
.panel-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.panel-stat-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}
.panel-stat-card:hover { border-color: rgba(255,255,255,0.08); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.panel-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.panel-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text-white); }
.panel-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* Panel Card */
.panel-card {
  background: var(--bg-card); border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden; margin-bottom: 24px;
}
.panel-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.panel-card-header h3 { font-size: 1rem; font-weight: 700; }
.panel-card-link {
  font-size: 0.8rem; color: var(--accent); text-decoration: none;
  font-weight: 500; transition: var(--transition);
}
.panel-card-link:hover { color: var(--accent-light); }

/* Panel Table */
.panel-table { width: 100%; border-collapse: collapse; }
.panel-table th {
  text-align: left; padding: 14px 20px;
  font-size: 0.68rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015); white-space: nowrap;
}
.panel-table td {
  padding: 14px 20px; font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary); vertical-align: middle;
}
.panel-table tr:last-child td { border-bottom: none; }
.panel-table tr:hover td { background: rgba(201,168,76,0.02); }
.panel-table th:last-child, .panel-table td:last-child { text-align: right; }

.panel-row-highlight td { background: rgba(201,168,76,0.03); }

/* Panel Mini Footer */
.panel-mini-footer { grid-column: 1 / -1; margin-top: 0; padding: 16px 32px; border-top: 1px solid rgba(255,255,255,0.04); display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--text-muted); }

/* ============================================================
   Dashboard LS Housing — styles dédiés (préfixe .lsh-)
   ============================================================ */
.lsh-root { display: flex; flex-direction: column; gap: 18px; }
.lsh-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lsh-header-title { font-size: 1.4rem; font-weight: 700; color: var(--text-white); letter-spacing: -0.02em; }
.lsh-header-sub { color: var(--text-secondary); font-size: 0.82rem; margin-top: 4px; }
.lsh-status-live { color: #4ade80; }
.lsh-status-stale { color: #fbbf24; }
.lsh-status-off { color: #ef4444; }
.lsh-refresh { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); color: var(--accent); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1rem; transition: var(--transition); }
.lsh-refresh:hover { background: var(--bg-elevated); transform: rotate(90deg); color: var(--accent-light); }

/* Tabs nav */
.lsh-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04); border-radius: 12px; }
.lsh-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--text-secondary); border-radius: 8px; text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: var(--transition); white-space: nowrap; }
.lsh-tab:hover { color: var(--text-white); background: rgba(255,255,255,0.03); }
.lsh-tab.active { background: var(--accent); color: #16161f; }
.lsh-tab svg { flex-shrink: 0; }

.lsh-body { min-height: 200px; }

/* KPI cards */
.lsh-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.lsh-kpis-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lsh-kpis-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.lsh-kpi { position: relative; padding: 16px 18px 14px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04); border-radius: 12px; overflow: hidden; transition: var(--transition); }
.lsh-kpi:hover { border-color: rgba(201,168,76,0.15); transform: translateY(-2px); }
.lsh-kpi-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; }
.lsh-kpi:hover .lsh-kpi-bar { opacity: 1; }
.lsh-kpi-label { color: var(--text-muted); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.lsh-kpi-value { color: var(--text-white); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.lsh-kpi-sub { color: var(--text-muted); font-size: 0.75rem; margin-top: 6px; }
.lsh-kpi-accent .lsh-kpi-value { color: var(--accent-light); }

/* Grids */
.lsh-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.lsh-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .lsh-grid-2 { grid-template-columns: 1fr; } }

/* Filters */
.lsh-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lsh-input, .lsh-filters select { background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.06); color: var(--text); padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; }
.lsh-input:focus, .lsh-filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.lsh-input-q { flex: 1; min-width: 200px; }
.lsh-check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 0.82rem; cursor: pointer; }

/* Table tweaks (override panel-table) */
.lsh-table th.sortable { cursor: pointer; user-select: none; }
.lsh-table th.sortable:hover { color: var(--accent); }
.lsh-table th .sort-a { opacity: 0.3; margin-left: 4px; font-size: 0.7rem; }
.lsh-table th.sorted .sort-a { opacity: 1; color: var(--accent); }
.lsh-table th:last-child, .lsh-table td:last-child { text-align: inherit; }

/* Pagination */
.lsh-pag { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; color: var(--text-secondary); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.04); }
.lsh-pag button { background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.06); color: var(--text); padding: 6px 12px; margin-left: 4px; border-radius: 8px; cursor: pointer; }
.lsh-pag button:hover:not(:disabled) { background: var(--accent); color: #16161f; border-color: var(--accent); }
.lsh-pag button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Pills */
.lsh-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.lsh-pill-free { background: rgba(74,222,128,0.12); color: #4ade80; }
.lsh-pill-busy { background: rgba(201,168,76,0.12); color: var(--accent-light); }
.lsh-pill-sale { background: rgba(59,130,246,0.12); color: #3b82f6; }
.lsh-pill-paid { background: rgba(74,222,128,0.12); color: #4ade80; }
.lsh-pill-refused { background: rgba(239,68,68,0.12); color: #ef4444; }
.lsh-pill-pending { background: rgba(251,191,36,0.12); color: #fbbf24; }
.lsh-pill-neutral { background: var(--bg-elevated); color: var(--text-secondary); }
.lsh-pill-online { background: rgba(74,222,128,0.12); color: #4ade80; }
.lsh-pill-onduty { background: rgba(201,168,76,0.18); color: var(--accent-light); }

/* Timeline */
.lsh-timeline { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; max-height: 460px; overflow-y: auto; }
.lsh-tl-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 10px 12px; background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.04); border-radius: 8px; font-size: 0.82rem; }
.lsh-tl-when { color: var(--text-muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; min-width: 70px; }
.lsh-tl-label { color: var(--accent-light); font-weight: 600; }
.lsh-tl-who { color: var(--text-secondary); font-weight: 400; font-size: 0.78rem; }
.lsh-tl-detail { color: var(--text); margin-top: 2px; }
.lsh-tl-sale { border-left: 2px solid #4ade80; }
.lsh-tl-invoice { border-left: 2px solid var(--accent); }
.lsh-tl-audit { border-left: 2px solid #64748b; }

/* Map */
.lsh-map { position: relative; aspect-ratio: 1/1; max-height: 460px; background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.04); border-radius: 12px; overflow: hidden; }
.lsh-map-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: grayscale(0.3) brightness(0.7); pointer-events: none; }
.lsh-map-svg { position: relative; width: 100%; height: 100%; display: block; }
.lsh-pt-free { fill: #4ade80; opacity: 0.85; cursor: pointer; transition: r 0.15s; }
.lsh-pt-busy { fill: #c9a84c; opacity: 0.85; cursor: pointer; transition: r 0.15s; }
.lsh-pt-sale { fill: #3b82f6; opacity: 0.95; cursor: pointer; transition: r 0.15s; }
.lsh-pt-free:hover, .lsh-pt-busy:hover, .lsh-pt-sale:hover { opacity: 1; }
.lsh-map-legend { position: absolute; top: 12px; right: 12px; background: rgba(9,9,15,0.85); border: 1px solid rgba(255,255,255,0.04); border-radius: 8px; padding: 8px 12px; font-size: 0.72rem; color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(8px); }
.lsh-map-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Bars chart (generic) */
.lsh-bars { display: flex; flex-direction: column; gap: 10px; }
.lsh-bar-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; align-items: center; }
.lsh-bar-label { color: var(--text-secondary); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsh-bar { flex: 1; height: 8px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; }
.lsh-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 999px; transition: width 0.4s; }
.lsh-bar-value { color: var(--accent-light); font-weight: 600; font-size: 0.85rem; font-variant-numeric: tabular-nums; text-align: right; }
.lsh-bar-sub { display: block; color: var(--text-muted); font-size: 0.7rem; font-weight: 400; }

/* Leaderboard */
.lsh-lead { padding: 10px 0; }
.lsh-lead-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lsh-dot-online, .lsh-dot-onduty { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.lsh-dot-online { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.lsh-dot-onduty { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Dual bars (agent perf) */
.lsh-dual { height: 160px; display: flex; align-items: flex-end; gap: 4px; padding: 10px 0 26px; position: relative; }
.lsh-dual-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.lsh-dual-bars { width: 100%; max-width: 28px; height: 100%; display: flex; align-items: flex-end; gap: 2px; }
.lsh-dual-s { flex: 1; background: linear-gradient(180deg, var(--accent-light), var(--accent-dark)); border-radius: 3px 3px 0 0; min-height: 1px; }
.lsh-dual-i { flex: 1; background: linear-gradient(180deg, #4ade80, #16a34a); border-radius: 3px 3px 0 0; min-height: 1px; }
.lsh-dual-lbl { color: var(--text-muted); font-size: 0.62rem; position: absolute; bottom: 0; transform: translateY(2px); }

/* Detail rows */
.lsh-detail-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.9rem; }
.lsh-detail-row:last-child { border-bottom: none; }
.lsh-detail-row span { color: var(--text-muted); }
.lsh-detail-row b { color: var(--text-white); font-weight: 600; text-align: right; }
.lsh-link { color: var(--accent); text-decoration: none; }
.lsh-link:hover { color: var(--accent-light); text-decoration: underline; }
.lsh-back { display: inline-block; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; margin-bottom: 14px; transition: var(--transition); }
.lsh-back:hover { color: var(--accent); }

/* Badges (improvements) */
.lsh-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.lsh-badge { display: inline-block; padding: 4px 10px; background: var(--bg-elevated); color: var(--text-secondary); border-radius: 999px; font-size: 0.72rem; font-weight: 500; }
.lsh-badge-gold { background: rgba(201,168,76,0.15); color: var(--accent-light); }
.lsh-badge-green { background: rgba(74,222,128,0.12); color: #4ade80; }
.lsh-badge-blue { background: rgba(59,130,246,0.12); color: #3b82f6; }

/* Mini cards (owner portfolio) */
.lsh-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lsh-mini-card { display: block; padding: 14px 16px; background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.04); border-radius: 10px; text-decoration: none; transition: var(--transition); }
.lsh-mini-card:hover { border-color: rgba(201,168,76,0.2); transform: translateY(-2px); }
.lsh-mini-title { color: var(--text-white); font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.lsh-mini-meta { color: var(--text-muted); font-size: 0.78rem; }
.lsh-mini-price { color: var(--accent-light); font-weight: 700; margin-top: 8px; font-size: 1rem; }

/* Empty / loader */
.lsh-empty { padding: 40px 20px; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }
.lsh-loader { display: flex; justify-content: center; padding: 60px 20px; }
.lsh-spinner { width: 24px; height: 24px; border: 2px solid var(--bg-elevated); border-top-color: var(--accent); border-radius: 50%; animation: lshSpin 0.8s linear infinite; }
@keyframes lshSpin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .lsh-bar-row { grid-template-columns: 100px 1fr auto; }
  .lsh-tabs { gap: 2px; padding: 4px; }
  .lsh-tab { padding: 8px 10px; font-size: 0.78rem; }
  .lsh-tab span { display: none; }
}

/* Panel Actions */
.panel-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
.panel-action-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.panel-action-btn:hover { color: var(--text-white); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.panel-action-btn.danger:hover { color: var(--danger); border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08); }
.panel-action-btn.success:hover { color: var(--success); border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.08); }

/* Panel Tags & Badges */
.panel-tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 600;
  background: rgba(255,255,255,0.05); color: var(--text-secondary);
}
.panel-role-badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 600;
}

/* Panel User Avatar */
.panel-user-avatar {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}

/* Panel Grid */
.panel-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-empty-small { padding: 32px 20px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Panel Responsive */
@media (max-width: 1024px) {
  .panel-layout { grid-template-columns: 1fr; }
  .panel-sidebar { position: static; }
  .panel-nav { flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .panel-nav-link { padding: 8px 12px; font-size: 0.8rem; }
  .panel-main { padding: 24px 0; }
  .panel-grid-2 { grid-template-columns: 1fr; }
  .panel-sidebar-footer { display: none; }
}

@media (max-width: 768px) {
  .panel-stats { grid-template-columns: 1fr 1fr; }
  .panel-header { flex-direction: column; gap: 12px; }
}

/* ============ STAT CARDS ============ */

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }

.stat-card { padding: 24px; position: relative; overflow: hidden; border: none; transition: var(--transition); border-radius: var(--radius); background: var(--bg-card); }
.stat-card:hover { background: var(--bg-card-hover); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--cyan)); opacity: 0; transition: var(--transition); border-radius: var(--radius) var(--radius) 0 0; }
.stat-card:hover::before { opacity: 1; }

.stat-card-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px; color: var(--accent); }
.stat-card-value { font-size: 2rem; font-weight: 800; color: var(--text-white); }
.stat-card-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.stat-card-change { display: inline-flex; align-items: center; gap: 3px; font-size: 0.68rem; font-weight: 600; margin-top: 8px; padding: 3px 8px; border-radius: 100px; }
.stat-card-change.positive { color: var(--success); background: var(--success-bg); }
.stat-card-change.negative { color: var(--danger); background: var(--danger-bg); }

/* ============ TABLES ============ */

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 14px 18px; font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid rgba(255,255,255,0.04); white-space: nowrap; background: var(--bg-card); position: sticky; top: 0; z-index: 1; }
.data-table td { padding: 14px 18px; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-secondary); vertical-align: middle; }
.data-table tr:hover td { background: rgba(201,168,76,0.02); }
.data-table th:last-child, .data-table td:last-child { text-align: right; }

.table-actions { display: inline-flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.data-table td:last-child { padding-top: 10px; padding-bottom: 10px; }

.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: none; background: var(--bg-card); }
.table-wrapper .data-table th:first-child, .table-wrapper .data-table td:first-child { padding-left: 24px; }
.table-wrapper .data-table th:last-child, .table-wrapper .data-table td:last-child { padding-right: 24px; }

/* ============ MODAL ============ */

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(12px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 28px; animation: fadeIn 0.2s var(--ease); }
.modal { width: 100%; max-width: 620px; max-height: 85vh; overflow-y: auto; padding: 36px; animation: modalIn 0.3s var(--ease); border: none; box-shadow: 0 32px 100px rgba(0,0,0,0.5); background: var(--bg-card); border-radius: var(--radius-xl); }
.modal.modal-large { max-width: 780px; }
.modal h3 { font-size: 1.4rem; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.modal .form-group { margin-bottom: 20px; }
.modal .btn-primary { padding: 12px 28px; }
.modal-lg { max-width: 900px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg-surface); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: var(--transition); }
.modal-close:hover { background: var(--bg-elevated); color: var(--text-white); transform: rotate(90deg); }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.04); }
.modal-footer .btn { min-width: 110px; justify-content: center; }

/* ============ TOAST ============ */

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column-reverse; gap: 10px; max-width: 380px; width: 100%; pointer-events: none; }
.toast { padding: 14px 18px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,0.5); font-size: 0.88rem; color: var(--text); animation: toastIn 0.4s var(--ease); display: flex; align-items: center; gap: 12px; pointer-events: auto; position: relative; overflow: hidden; backdrop-filter: blur(12px); }
.toast-emoji { font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
.toast-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.88rem; flex-shrink: 0; }
.toast.success { border-left: 3px solid var(--success); background: linear-gradient(135deg, var(--bg-elevated), rgba(74, 222, 128, 0.05)); }
.toast.success .toast-icon { background: var(--success-bg); color: var(--success); }
.toast.error { border-left: 3px solid var(--danger); background: linear-gradient(135deg, var(--bg-elevated), rgba(248, 113, 113, 0.05)); }
.toast.error .toast-icon { background: var(--danger-bg); color: var(--danger); }
.toast.info { border-left: 3px solid var(--info); background: linear-gradient(135deg, var(--bg-elevated), rgba(96, 165, 250, 0.05)); }
.toast.info .toast-icon { background: var(--info-bg); color: var(--info); }
.toast.warning { border-left: 3px solid var(--warning); background: linear-gradient(135deg, var(--bg-elevated), rgba(251, 191, 36, 0.05)); }
.toast.warning .toast-icon { background: var(--warning-bg); color: var(--warning); }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 2px; }
.toast-message { font-size: 0.8rem; color: var(--text-secondary); }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; font-size: 1rem; flex-shrink: 0; transition: color 0.2s; }
.toast-close:hover { color: var(--text); }
.toast-exit { animation: toastOut 0.3s var(--ease) forwards; }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 2px; border-radius: 0 0 0 var(--radius); animation: toastProgress 3.5s linear forwards; }
.toast.success .toast-progress { background: var(--success); }
.toast.error .toast-progress { background: var(--danger); }
.toast.info .toast-progress { background: var(--info); }
.toast.warning .toast-progress { background: var(--warning); }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

/* ============ QUOTE CARD ============ */

.quote-card { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-card); border: none; position: relative; transition: var(--transition); }
.quote-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.quote-card:hover { background: var(--bg-card-hover); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.quote-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.quote-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-white); }
.quote-card-body { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }
.quote-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.04); gap: 14px; }
.quote-card-price { font-size: 1.3rem; font-weight: 800; color: var(--accent-light); }
.quote-card-meta { font-size: 0.72rem; color: var(--text-muted); }

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

.availability-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.availability-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 500; background: var(--bg-surface); border: none; color: var(--text-secondary); }
.availability-tag.available { background: var(--success-bg); color: var(--success); }
.availability-tag.busy { background: var(--danger-bg); color: var(--danger); }
.availability-tag.partial { background: var(--warning-bg); color: var(--warning); }
.availability-tag .tag-time { font-weight: 600; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,0.04); }
.timeline-item { position: relative; padding-bottom: 24px; padding-left: 10px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -25px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-card); border: 2px solid rgba(255,255,255,0.06); z-index: 1; }
.timeline-item:hover::before { border-color: var(--accent); }
.timeline-item.active::before { background: var(--accent); border-color: var(--accent); }
.timeline-item-time { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.timeline-item-title { font-size: 0.88rem; font-weight: 600; color: var(--text-white); margin-bottom: 3px; }
.timeline-item-description { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }

.message-card { padding: 20px; border-radius: var(--radius); background: var(--bg-card); border: none; transition: var(--transition); cursor: pointer; }
.message-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.message-card.unread { border-left: 3px solid var(--accent); }
.message-card.unread .message-card-sender { color: var(--text-white); font-weight: 600; }
.message-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.message-card-sender { font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); }
.message-card-time { font-size: 0.68rem; color: var(--text-muted); }
.message-card-subject { font-size: 0.88rem; font-weight: 600; color: var(--text-white); margin-bottom: 5px; }
.message-card-preview { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.message-card-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--cyan)); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; color: #1a1a2e; flex-shrink: 0; }

.glow-border, .glow-border-static { border: none; border-radius: var(--radius-lg); background: var(--bg-card); }
.glow-border::before, .glow-border::after, .glow-border-static::before, .glow-border-static::after { display: none; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--bg-card); color: var(--text-secondary); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.pagination-btn:hover { background: var(--bg-elevated); color: var(--text-white); }
.pagination-btn.active { background: var(--accent); color: #1a1a2e; font-weight: 700; }

/* ============ CONTACT HOME SECTION ============ */

.contact-home-section {
  padding: 40px 0 80px;
}

.contact-home-banner {
  text-align: center;
  padding: 72px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(201,168,76,0.06) 0%, rgba(201,168,76,0.02) 100%);
  border: 1px solid rgba(201,168,76,0.1);
  position: relative;
  overflow: hidden;
}

.contact-home-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 300px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-home-banner h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.contact-home-banner p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 32px;
}

.contact-home-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-home-infos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.contact-home-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-home-info span {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .contact-home-banner { padding: 48px 24px; }
  .contact-home-banner h2 { font-size: 1.8rem; }
  .contact-home-infos { flex-direction: column; align-items: center; gap: 16px; }
}

/* ============ FOOTER ============ */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  margin-top: 80px;
  background: linear-gradient(180deg, var(--bg-darker) 0%, #050508 100%);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo-icon { height: 30px; width: auto; }
.footer-brand .nav-logo-text { font-size: 1.1rem; }
.footer-brand .logo-ls { font-size: 1.5rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.85rem; margin-top: 14px; line-height: 1.8; max-width: 300px; }
.footer-discord-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; padding: 10px 22px;
  border-radius: 100px;
  background: #5865F2; color: white;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s var(--ease);
}
.footer-discord-btn:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3); }
.footer h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-light); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-partner { padding: 24px 0; margin-bottom: 20px; border-top: 1px solid rgba(201, 168, 76, 0.08); border-bottom: 1px solid rgba(201, 168, 76, 0.08); text-align: center; }
.footer-partner-link { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; transition: transform 0.3s ease, opacity 0.3s ease; }
.footer-partner-link:hover { transform: scale(1.03); }
.footer-partner-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 2px; font-weight: 500; }
.footer-partner-logo { height: 36px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); transition: filter 0.3s ease; animation: footerLogoFloat 4s ease-in-out infinite, footerLogoShake 3s ease-in-out infinite; }
.footer-partner-link:hover .footer-partner-logo { filter: drop-shadow(0 4px 16px rgba(201, 168, 76, 0.3)); }
.footer-partner-cta { font-size: 0.75rem; color: var(--accent); font-weight: 600; letter-spacing: 0.5px; opacity: 0; transition: opacity 0.3s ease; }
.footer-partner-link:hover .footer-partner-cta { opacity: 1; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-secondary); }
.footer-bottom a { color: var(--accent-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* Footer Logo Float Animation */
@keyframes footerLogoFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)) drop-shadow(0 0 6px rgba(201,168,76,0.1)); }
  50% { transform: translateY(-10px); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4)) drop-shadow(0 0 18px rgba(201,168,76,0.4)); }
}

/* Footer Logo Shake Animation */
@keyframes footerLogoShake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-3deg); }
  30% { transform: rotate(3deg); }
  45% { transform: rotate(-2deg); }
  60% { transform: rotate(2deg); }
  75% { transform: rotate(-1deg); }
}

/* rgDylan Creator Credit */
.footer-credit-dylan {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}

@keyframes shimmerRainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Animated Heart */
.footer-heart {
  display: inline-block;
  color: #e74c3c;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(231,76,60,0.4)); }
  15% { transform: scale(1.25); filter: drop-shadow(0 0 8px rgba(231,76,60,0.6)); }
  30% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(231,76,60,0.4)); }
  45% { transform: scale(1.2); filter: drop-shadow(0 0 6px rgba(231,76,60,0.5)); }
}

/* ============ TESTIMONIALS ============ */

.testimonials-section { background: var(--bg-section); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 32px; }
.testimonial-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.testimonial-stars { color: var(--accent); font-size: 1.2rem; letter-spacing: 2px; }
.testimonial-text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; font-style: italic; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; object-fit: cover; }
.testimonial-name { font-weight: 600; color: var(--text-white); font-size: 0.9rem; }
.testimonial-date { font-size: 0.75rem; color: var(--text-muted); }

/* Compact testimonial cards for homepage */
.testimonial-card--compact { padding: 20px; gap: 10px; }
.testimonial-card--compact .testimonial-stars { font-size: 1rem; }
.testimonial-card--compact .testimonial-text { font-size: 0.85rem; line-height: 1.6; }
.testimonial-card--compact .testimonial-author { padding-top: 8px; }
.testimonial-card--compact .testimonial-avatar { width: 32px; height: 32px; font-size: 0.8rem; }

.star-rating { display: flex; gap: 4px; }
.star-btn { font-size: 1.8rem; color: var(--text-muted); cursor: pointer; transition: color 0.15s; }
.star-btn.active { color: var(--accent); }
.star-btn:hover { color: var(--accent-light); }

/* ============ STAT CHARTS ============ */

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-chart-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04); border-radius: 14px; padding: 24px; }
.stat-chart-card h3 { font-size: 0.9rem; font-weight: 600; color: var(--text-white); margin-bottom: 20px; }
.stat-bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 8px; }
.stat-bar-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.stat-bar { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); min-height: 4px; transition: height 0.6s var(--ease); animation: barGrow 0.8s var(--ease) backwards; }
.stat-bar-label { font-size: 0.65rem; color: var(--text-muted); text-align: center; }
.stat-bar-value { font-size: 0.7rem; color: var(--text-white); font-weight: 600; }
@keyframes barGrow { from { height: 0 !important; } }

.stat-donut { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto; position: relative; }
.stat-donut-center { position: absolute; inset: 25%; border-radius: 50%; background: var(--bg-card); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: var(--text-white); }
.stat-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.stat-legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-secondary); }
.stat-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.stat-metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-metric { text-align: center; padding: 16px; background: var(--bg-surface); border-radius: var(--radius-sm); }
.stat-metric-value { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-metric-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-metric-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ DASHBOARD ENHANCED ============ */

/* Dashboard Sections */
.dash-section { margin-bottom: 36px; }
.dash-section-title {
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Top Stats Row - 4 clean cards */
.dash-top-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 36px;
}
.dash-stat-card {
  padding: 24px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
  display: flex; flex-direction: column; align-items: flex-start;
}
.dash-stat-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.07);
}
.dash-stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(201,168,76,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.dash-stat-number {
  font-size: 2.2rem; font-weight: 800; color: var(--text-white);
  line-height: 1;
}
.dash-stat-label {
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 6px;
}

/* Activity List - clean simple rows */
.dash-activity-list {
  background: var(--bg-card); border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.dash-activity-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  font-size: 0.85rem;
  transition: var(--transition);
}
.dash-activity-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dash-activity-row:hover { background: rgba(255,255,255,0.02); }
.dash-activity-row-icon { font-size: 0.95rem; flex-shrink: 0; width: 24px; text-align: center; }
.dash-activity-row-text { flex: 1; color: var(--text-white); font-weight: 500; }
.dash-activity-row-user { color: var(--text-secondary); font-size: 0.78rem; font-weight: 600; }
.dash-activity-row-time { color: var(--text-muted); font-size: 0.72rem; opacity: 0.7; min-width: 70px; text-align: right; }

/* Dashboard Responsive */
@media (max-width: 1024px) {
  .dash-top-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .dash-top-stats { grid-template-columns: 1fr; }
  .dash-activity-row-user { display: none; }
}

/* ============ CLIENT TAGS ============ */

.user-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; vertical-align: middle; }
.user-tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 12px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.user-tag-remove { background: none; border: none; cursor: pointer; font-size: 0.8rem; opacity: 0.6; color: inherit; padding: 0; }
.user-tag-remove:hover { opacity: 1; }
.tag-VIP { background: rgba(201,168,76,0.15); color: #c9a84c; }
.tag-Acheteur { background: rgba(74,222,128,0.15); color: #4ade80; }
.tag-Vendeur { background: rgba(96,165,250,0.15); color: #60a5fa; }
.tag-Investisseur { background: rgba(167,139,250,0.15); color: #a78bfa; }
.tag-Locataire { background: rgba(251,191,36,0.15); color: #fbbf24; }
.tag-Premium { background: rgba(244,114,182,0.15); color: #f472b6; }

.tag-add-select { padding: 4px 8px; font-size: 0.75rem; border-radius: 8px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; }

/* ============ ACTIVITY TIMELINE ============ */

.activity-timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 24px; }
.activity-timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.activity-item { position: relative; padding: 12px 0; }
.activity-dot { position: absolute; left: -21px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-card); z-index: 1; }
.activity-content { padding-left: 4px; }

/* ============ NOTIFICATION BELL ============ */

.notif-bell { position: relative; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 8px; border-radius: 50%; transition: var(--transition); }
.notif-bell:hover { color: var(--text-white); background: var(--bg-card); }
.notif-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 10px; background: var(--danger); color: white; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-badge.hidden { display: none; }

.notif-dropdown { position: absolute; top: 100%; right: 0; width: 360px; max-height: 420px; overflow-y: auto; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(0,0,0,0.5); z-index: 2000; }
.notif-dropdown.hidden { display: none; }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-header h4 { font-size: 0.9rem; color: var(--text-white); }
.notif-mark-all { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.78rem; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.notif-item:hover { background: var(--bg-card); }
.notif-item.unread { background: rgba(201,168,76,0.04); }
.notif-item.unread::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }
.notif-item-content { flex: 1; min-width: 0; }
.notif-item-title { font-size: 0.85rem; font-weight: 600; color: var(--text-white); margin-bottom: 2px; }
.notif-item-msg { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.notif-empty { padding: 32px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ============ PROFILE PAGE ============ */

.profile-page { animation: fadeInUp 0.4s var(--ease); }
.profile-page .profile-sections { display: flex; flex-direction: column; gap: 20px; }

.profile-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; background: var(--bg-card); border: 1px solid var(--border); }
.profile-banner-bg { height: 140px; background: linear-gradient(135deg, rgba(201,168,76,0.25) 0%, rgba(201,168,76,0.05) 40%, rgba(96,165,250,0.12) 70%, rgba(167,139,250,0.1) 100%); position: relative; overflow: hidden; }
.profile-banner-pattern { position: absolute; inset: 0; background-image: radial-gradient(rgba(201,168,76,0.08) 1px, transparent 1px); background-size: 20px 20px; }
.profile-banner-content { display: flex; align-items: center; gap: 22px; padding: 24px 28px 28px; position: relative; z-index: 1; }
.profile-big-avatar { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 4px solid var(--bg-card); box-shadow: 0 8px 32px rgba(0,0,0,0.35); flex-shrink: 0; margin-top: -60px; }
.profile-name { font-size: 1.5rem; font-weight: 700; color: var(--text-white); margin-bottom: 0; }
.profile-banner-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 8px rgba(74,222,128,0.5); animation: statusPulse 2s ease-in-out infinite; }
@keyframes statusPulse { 0%, 100% { box-shadow: 0 0 8px rgba(74,222,128,0.5); } 50% { box-shadow: 0 0 16px rgba(74,222,128,0.8); } }
.profile-role-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.profile-role-admin { background: rgba(201,168,76,0.15); color: var(--accent); border: 1px solid rgba(201,168,76,0.25); }
.profile-role-agent { background: rgba(96,165,250,0.15); color: var(--info); border: 1px solid rgba(96,165,250,0.25); }
.profile-role-player { background: rgba(74,222,128,0.15); color: var(--success); border: 1px solid rgba(74,222,128,0.25); }
.profile-big-avatar-img { width: 90px; height: 90px; border-radius: 50%; border: 4px solid var(--bg-card); box-shadow: 0 8px 32px rgba(0,0,0,0.35); flex-shrink: 0; margin-top: -60px; object-fit: cover; }
.profile-banner-blur-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(20px) brightness(0.4); transform: scale(1.2); z-index: 0; }
.profile-banner-pattern { position: relative; z-index: 1; }
.profile-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.profile-meta-discord { font-size: 0.9rem; color: var(--info); font-weight: 600; margin-top: 2px; }
.profile-meta-login { font-size: 0.75rem; opacity: 0.7; }
.profile-banner-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Life Santos member badge */
.life-santos-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(201,168,76,0.15)); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); text-transform: uppercase; position: relative; cursor: help; }
.life-santos-badge svg { color: #4ade80; }
.life-santos-badge--small { font-size: 0.65rem; padding: 2px 8px; margin-top: 2px; }
.life-santos-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  background: #1a1a28;
  color: #e0e0e8;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  border-radius: 8px;
  border: 1px solid rgba(74,222,128,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(4px);
  z-index: 100;
}
.life-santos-badge[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a28;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 101;
}
.life-santos-badge[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.life-santos-badge[data-tooltip]:hover::before {
  opacity: 1;
}

/* Avatar in user cards */
.user-card-v2__avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Panel sidebar avatar img */
.panel-avatar-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

/* Subsection dividers */
.profile-subsection-divider { height: 1px; background: var(--border); margin: 24px 0; }
.profile-subsection-title { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.profile-subsection-title svg { opacity: 0.6; }

/* Stats */
.profile-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.profile-stat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 14px; background: var(--bg-surface); border-radius: var(--radius-sm); text-align: center; transition: var(--transition); }
.profile-stat-item:hover { background: var(--bg-hover); transform: translateY(-2px); }
.profile-stat-icon-mini { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-stat-number { font-size: 1.6rem; font-weight: 700; color: var(--text-white); line-height: 1; }
.profile-stat-desc { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* Grid & Cards */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-section-full { grid-column: 1 / -1; }
.profile-section-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--transition); }
.profile-section-card:hover { border-color: var(--border-hover); }
.profile-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.profile-section-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.profile-section-header h3 { font-size: 1rem; font-weight: 600; color: var(--text-white); }

/* Forms */
.profile-form { display: flex; flex-direction: column; gap: 16px; }
.profile-field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-field-group-3 { grid-template-columns: 1fr 1fr 1fr; }
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-secondary); }
.profile-input-icon { position: relative; }
.profile-save-btn { align-self: flex-start; display: flex; align-items: center; gap: 8px; margin-top: 4px; }

.btn-danger-outline { background: transparent; border: 1px solid var(--danger); color: var(--danger); padding: 10px 20px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: var(--transition); }
.btn-danger-outline:hover { background: var(--danger-bg); }

/* Info grid */
.profile-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.profile-info-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--bg-surface); border-radius: var(--radius-sm); }
.profile-info-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.profile-info-value { font-size: 0.95rem; color: var(--text-white); font-weight: 500; }

/* Security section */
.profile-security-info { margin-bottom: 20px; }
.profile-security-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.profile-security-item { padding: 14px; background: var(--bg-surface); border-radius: var(--radius-sm); }
.profile-security-divider { height: 1px; background: var(--border); margin: 20px 0; }
.profile-sub-header { font-size: 0.9rem; font-weight: 600; color: var(--text-white); margin-bottom: 16px; }

/* Tags */
.profile-tags-display { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.profile-tags-display .user-tag { padding: 4px 14px; font-size: 0.78rem; }
.profile-tags-hint { font-size: 0.75rem; color: var(--text-muted); font-style: italic; margin-top: 8px; }

/* Preferences */
.profile-pref-list { display: flex; flex-direction: column; gap: 0; }
.profile-pref-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.profile-pref-item:last-child { border-bottom: none; }
.profile-pref-info { display: flex; flex-direction: column; gap: 2px; }
.profile-pref-title { font-size: 0.9rem; font-weight: 600; color: var(--text-white); }
.profile-pref-desc { font-size: 0.75rem; color: var(--text-muted); }
.profile-pref-select { max-width: 180px; font-size: 0.82rem; padding: 6px 12px; }

/* Toggle switch */
.profile-toggle { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; }
.profile-toggle input { opacity: 0; width: 0; height: 0; }
.profile-toggle-slider { position: absolute; cursor: pointer; inset: 0; background-color: var(--bg-surface); border: 1px solid var(--border); transition: 0.3s; border-radius: 24px; }
.profile-toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 2px; bottom: 2px; background-color: var(--text-muted); transition: 0.3s; border-radius: 50%; }
.profile-toggle input:checked + .profile-toggle-slider { background-color: rgba(74,222,128,0.2); border-color: var(--success); }
.profile-toggle input:checked + .profile-toggle-slider::before { transform: translateX(22px); background-color: var(--success); }

/* Danger zone */
.profile-danger-zone { border-color: rgba(248,113,113,0.3) !important; }
.profile-danger-zone:hover { border-color: rgba(248,113,113,0.5) !important; }
.profile-danger-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.profile-delete-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--danger); color: var(--danger); padding: 10px 24px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: var(--transition); }
.profile-delete-btn:hover { background: rgba(248,113,113,0.1); border-color: #f87171; color: #f87171; }

@media (max-width: 768px) {
  .profile-field-group, .profile-field-group-3 { grid-template-columns: 1fr; }
  .profile-info-grid { grid-template-columns: 1fr 1fr; }
  .profile-banner-content { flex-direction: column; text-align: center; padding: 20px 16px 20px; }
  .profile-big-avatar { margin-top: -50px; }
  .profile-security-row { grid-template-columns: 1fr; }
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-banner-name-row { justify-content: center; }
  .profile-banner-tags { justify-content: center; }
}

/* ============ ANIMATIONS ============ */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(10px) scale(0.95); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.fade-in { animation: fadeInUp 0.5s var(--ease) both; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
.fade-in-delay-5 { animation-delay: 0.5s; }

.stagger-grid > * { animation: fadeInUp 0.4s var(--ease) both; }
.stagger-grid > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-grid > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-grid > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-grid > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-grid > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-grid > *:nth-child(6) { animation-delay: 0.3s; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.page-transition { position: fixed; inset: 0; background: var(--bg); z-index: 5000; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.page-transition.active { opacity: 1; }
.page-enter { animation: fadeInUp 0.4s var(--ease) both; }

/* ============ SCROLLBAR ============ */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.06) transparent; }

/* ============ UTILITIES ============ */

.hidden { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 28px; } .mb-4 { margin-bottom: 40px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 28px; }
.flex { display: flex; } .flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-select { user-select: none; }

.empty-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 20px; opacity: 0.25; }
.empty-state h3 { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 10px; }
.empty-state p { font-size: 0.9rem; max-width: 400px; margin: 0 auto; line-height: 1.7; }
.empty-state .btn { margin-top: 24px; }

.loading-spinner { display: flex; justify-content: center; padding: 48px; }
.spinner { width: 32px; height: 32px; border: 2px solid rgba(255,255,255,0.06); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-sm { width: 18px; height: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text-secondary); border-radius: 1px; transition: var(--transition); }
.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ CONTACT ============ */
.ct-page { }
.ct-hero { position: relative; padding: calc(var(--nav-height) + 60px) 0 48px; text-align: center; overflow: hidden; }
.ct-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ct-hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; }
.ct-hero-orb-1 { width: 400px; height: 400px; background: var(--accent); top: -100px; left: -100px; }
.ct-hero-orb-2 { width: 300px; height: 300px; background: #5865F2; bottom: -50px; right: -50px; }
.ct-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; padding: 6px 20px; border: 1px solid rgba(201,168,76,0.2); border-radius: 100px; background: rgba(201,168,76,0.06); }
.ct-title { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px; }
.ct-title-accent { background: linear-gradient(135deg, var(--accent), #e8d5a0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ct-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 480px; margin: 0 auto; line-height: 1.6; }

.ct-chips { padding: 0 0 40px; }
.ct-chips-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ct-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 100px; font-size: 0.82rem; color: var(--text-secondary); }
.ct-chip-discord { background: rgba(88,101,242,0.12); border-color: rgba(88,101,242,0.2); color: #8b9aff; text-decoration: none; transition: all 0.2s; }
.ct-chip-discord:hover { background: rgba(88,101,242,0.2); color: #a8b4ff; transform: translateY(-1px); }
.ct-chip-status { font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
.ct-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.ct-chip-status--open { background: rgba(76,175,80,0.1); border-color: rgba(76,175,80,0.2); color: #66bb6a; }
.ct-chip-status--open .ct-status-dot { background: #66bb6a; box-shadow: 0 0 6px #66bb6a; }
.ct-chip-status--closed { background: rgba(244,67,54,0.1); border-color: rgba(244,67,54,0.2); color: #ef5350; }
.ct-chip-status--closed .ct-status-dot { background: #ef5350; }
.ct-chip-status--rdv { background: rgba(255,152,0,0.1); border-color: rgba(255,152,0,0.2); color: #ffa726; }
.ct-chip-status--rdv .ct-status-dot { background: #ffa726; }

.ct-form-section { padding-bottom: 40px; }
.ct-form-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; padding: 40px; position: relative; overflow: hidden; }
.ct-form-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 160px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.ct-form { display: flex; flex-direction: column; gap: 20px; }
.ct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.ct-input, .ct-textarea { padding: 12px 16px; background: #0e0e16 !important; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; color: #f4f4f8; font-size: 0.88rem; font-family: inherit; outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none; width: 100%; }
.ct-input:focus, .ct-textarea:focus { border-color: var(--accent); background: #0e0e16 !important; box-shadow: 0 0 0 3px rgba(201,168,76,0.08); }
.ct-input:hover, .ct-textarea:hover { border-color: rgba(255,255,255,0.12); }
.ct-textarea { resize: vertical; min-height: 80px; }
.ct-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-color: #0e0e16 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b8b9e' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; color: #f4f4f8; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px 36px 10px 14px; font-size: 0.85rem; font-weight: 500; font-family: inherit; cursor: pointer; transition: all 0.2s ease; }
.ct-select:hover { border-color: rgba(255,255,255,0.12); background-color: rgba(255,255,255,0.04); }
.ct-select:focus { border-color: var(--accent, #c9a84c); box-shadow: 0 0 0 3px rgba(201,168,76,0.08); background-color: rgba(255,255,255,0.04); }
.ct-select option { background: #141420; color: #f5f5f5; padding: 8px 14px; }
.ct-select option:checked { background: rgba(201,168,76,0.2); color: #c9a84c; }
.ct-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 36px; background: linear-gradient(135deg, var(--accent), #d4b85a); color: #000; border: none; border-radius: 12px; font-size: 0.92rem; font-weight: 700; cursor: pointer; transition: all 0.25s; text-decoration: none; font-family: inherit; margin-top: 4px; }
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }

.ct-locked { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ct-locked-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(201,168,76,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.ct-locked-title { font-size: 1.1rem; font-weight: 700; }
.ct-locked-text { font-size: 0.85rem; color: var(--text-secondary); max-width: 360px; line-height: 1.6; margin-bottom: 4px; }

@media (max-width: 640px) {
  .ct-title { font-size: 1.6rem; }
  .ct-form-card { padding: 28px 20px; }
  .ct-form-row { grid-template-columns: 1fr; }
  .ct-chips-row { flex-direction: column; }
  .ct-submit { width: 100%; }
}

/* ============ ABOUT PAGE ============ */

/* Hero Banner */
/* ============ ABOUT PAGE ============ */

/* Hero */
.about-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  background: linear-gradient(180deg, rgba(201,168,76,0.04) 0%, transparent 40%, rgba(201,168,76,0.02) 100%);
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,168,76,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(201,168,76,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(201,168,76,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.about-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.about-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  animation: aboutParticleFloat 8s ease-in-out infinite;
}
.about-particle-1 {
  width: 6px; height: 6px;
  top: 20%; left: 15%;
  animation-delay: 0s;
}
.about-particle-2 {
  width: 4px; height: 4px;
  top: 60%; right: 20%;
  animation-delay: 2.5s;
}
.about-particle-3 {
  width: 8px; height: 8px;
  bottom: 25%; left: 60%;
  animation-delay: 5s;
  background: rgba(201,168,76,0.1);
}
@keyframes aboutParticleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-30px) scale(1.3); opacity: 0.8; }
}

.about-hero-content { position: relative; z-index: 1; }
.about-hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  padding: 10px 24px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50px;
  margin-bottom: 40px;
  background: rgba(201,168,76,0.06);
}
.about-hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 28px;
  color: var(--text-white);
}
.about-hero-title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #e8d5a0 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aboutGoldShimmer 4s ease-in-out infinite;
}
@keyframes aboutGoldShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}
.about-hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.9;
  max-width: 620px;
  margin: 0 auto;
}
.about-hero-scroll {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}
.about-hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: aboutScrollPulse 2s ease-in-out infinite;
}
@keyframes aboutScrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* Separator */
.about-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
}
.about-separator-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.about-separator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201,168,76,0.4);
}

/* Sections */
.about-section {
  padding: 100px 0;
  position: relative;
}
.about-section-alt {
  background: rgba(255,255,255,0.012);
}
.about-section-header {
  text-align: center;
  margin-bottom: 64px;
}
.about-section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-section-header-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* Notre Histoire */
.about-story {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}
.about-story-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.about-story-label-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(201,168,76,0.3));
  border-radius: 2px;
}
.about-story-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 32px;
}
.about-story-text {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(201,168,76,0.15);
}
.about-story-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-story-text p:last-child { margin-bottom: 0; }
.about-story-text p strong {
  color: var(--accent-light);
  font-weight: 600;
}
.about-story-visual {
  display: flex;
  justify-content: center;
}
.about-story-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.02) 100%);
  overflow: hidden;
  position: relative;
}
.about-story-image-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.about-story-image-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(201,168,76,0.15);
  pointer-events: none;
}
.about-story-image-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.about-story-image-inner span {
  font-size: 5rem;
  filter: drop-shadow(0 4px 20px rgba(201,168,76,0.2));
}
.about-story-image-inner p {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Nos Valeurs */
.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-value-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 40px 28px 36px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}
.about-value-card-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
  transition: all 0.5s ease;
  opacity: 0;
}
.about-value-card:hover .about-value-card-glow {
  opacity: 1;
  width: 200px;
  height: 200px;
}
.about-value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(201,168,76,0.05);
  background: rgba(255,255,255,0.05);
}
.about-value-card-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.about-value-card:hover .about-value-card-line {
  width: 60%;
}
.about-value-icon {
  font-size: 2.2rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.1);
  margin-left: auto;
  margin-right: auto;
  transition: all 0.4s ease;
}
.about-value-card:hover .about-value-icon {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.2);
  transform: scale(1.08);
}
.about-value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--text-white);
  font-weight: 600;
}
.about-value-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* Call to Action */
.about-cta-section {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}
.about-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.about-cta {
  position: relative;
  text-align: center;
  padding: 80px 48px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 28px;
  overflow: hidden;
}
.about-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Shooting star / sparkle particles */
.about-cta-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201,168,76,0.8);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 6px 2px rgba(201,168,76,0.4);
}
.about-cta-star::after {
  content: '';
  position: absolute;
  top: 0;
  right: 100%;
  width: 28px;
  height: 1.5px;
  background: linear-gradient(to left, rgba(201,168,76,0.6), transparent);
}
.about-cta-star:nth-child(1) { animation: ctaShootingStar1 6s 0.5s linear infinite; }
.about-cta-star:nth-child(2) { animation: ctaShootingStar2 8s 2s linear infinite; width: 2px; height: 2px; }
.about-cta-star:nth-child(3) { animation: ctaShootingStar3 7s 4s linear infinite; }
.about-cta-star:nth-child(4) { animation: ctaShootingStar4 9s 1s linear infinite; width: 2.5px; height: 2.5px; }
.about-cta-star:nth-child(5) { animation: ctaShootingStar5 7.5s 3.5s linear infinite; width: 2px; height: 2px; }

@keyframes ctaShootingStar1 {
  0% { opacity: 0; top: 10%; left: -5%; }
  5% { opacity: 1; }
  30% { opacity: 0.6; }
  40% { opacity: 0; top: 60%; left: 105%; }
  100% { opacity: 0; top: 60%; left: 105%; }
}
@keyframes ctaShootingStar2 {
  0% { opacity: 0; top: 5%; left: 20%; }
  4% { opacity: 0.8; }
  25% { opacity: 0.5; }
  35% { opacity: 0; top: 70%; left: 110%; }
  100% { opacity: 0; top: 70%; left: 110%; }
}
@keyframes ctaShootingStar3 {
  0% { opacity: 0; top: 25%; left: -8%; }
  5% { opacity: 1; }
  28% { opacity: 0.4; }
  38% { opacity: 0; top: 80%; left: 90%; }
  100% { opacity: 0; top: 80%; left: 90%; }
}
@keyframes ctaShootingStar4 {
  0% { opacity: 0; top: 0%; left: 40%; }
  3% { opacity: 0.7; }
  22% { opacity: 0.3; }
  30% { opacity: 0; top: 65%; left: 108%; }
  100% { opacity: 0; top: 65%; left: 108%; }
}
@keyframes ctaShootingStar5 {
  0% { opacity: 0; top: 15%; left: 60%; }
  4% { opacity: 0.9; }
  26% { opacity: 0.4; }
  36% { opacity: 0; top: 75%; left: 115%; }
  100% { opacity: 0; top: 75%; left: 115%; }
}

/* Sweeping shimmer glow across CTA card */
.about-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(201,168,76,0.04) 45%,
    rgba(201,168,76,0.08) 50%,
    rgba(201,168,76,0.04) 55%,
    transparent 70%
  );
  animation: ctaSweepShimmer 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaSweepShimmer {
  0% { left: -50%; }
  50% { left: 110%; }
  100% { left: 110%; }
}

/* Static sparkle dots */
.about-cta-sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201,168,76,0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: ctaSparkle 3s ease-in-out infinite;
  box-shadow: 0 0 4px 1px rgba(201,168,76,0.3);
}
.about-cta-sparkle:nth-child(6) { top: 12%; left: 8%; animation-delay: 0s; }
.about-cta-sparkle:nth-child(7) { top: 20%; right: 12%; animation-delay: 0.8s; }
.about-cta-sparkle:nth-child(8) { bottom: 18%; left: 15%; animation-delay: 1.6s; }
.about-cta-sparkle:nth-child(9) { bottom: 25%; right: 8%; animation-delay: 0.4s; }
.about-cta-sparkle:nth-child(10) { top: 35%; left: 5%; animation-delay: 1.2s; width: 2px; height: 2px; }
.about-cta-sparkle:nth-child(11) { top: 50%; right: 5%; animation-delay: 2s; width: 2px; height: 2px; }
@keyframes ctaSparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

.about-cta-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(0 4px 16px rgba(201,168,76,0.3));
}
.about-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-white);
}
.about-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 40px;
}
.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--accent) 0%, #b8943d 100%);
  color: #0a0a0f;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}
.about-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 32px rgba(201,168,76,0.4);
  background: linear-gradient(135deg, #d4b85a 0%, var(--accent) 100%);
}
.about-cta-btn:active {
  transform: translateY(-1px) scale(1.01);
}
.about-cta-btn svg {
  transition: transform 0.3s ease;
}
.about-cta-btn:hover svg {
  transform: translateX(4px);
}

/* Scroll fade-in animation */
.about-value-card {
  opacity: 0;
  transform: translateY(24px);
  animation: aboutFadeUp 0.6s var(--ease) forwards;
}
.about-value-card:nth-child(1) { animation-delay: 0.1s; }
.about-value-card:nth-child(2) { animation-delay: 0.2s; }
.about-value-card:nth-child(3) { animation-delay: 0.3s; }
.about-value-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes aboutFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compact Hero */
.about-hero-compact {
  min-height: auto;
  padding: calc(var(--nav-height) + 24px) 0 48px;
}

/* Notre Histoire - Title highlight */
.about-story-title-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #e8d5a0 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: aboutGoldShimmer 4s ease-in-out infinite;
}

/* Notre Histoire - Reveal animation */
.about-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: aboutRevealIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes aboutRevealIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notre Histoire - Paragraph stagger animation */
.about-story-paragraph {
  opacity: 0;
  transform: translateX(-16px);
  animation: aboutParaSlideIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes aboutParaSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* CTA Section - Entrance animation */
.about-cta-animated {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  animation: aboutCtaEntrance 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}
@keyframes aboutCtaEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* CTA icon bounce */
.about-cta-bounce {
  animation: aboutCtaBounce 2.5s ease-in-out infinite;
}
@keyframes aboutCtaBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* CTA title reveal */
.about-cta-title-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: aboutFadeUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
}

/* CTA text reveal */
.about-cta-text-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: aboutFadeUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.55s forwards;
}

/* CTA buttons container */
.about-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: aboutFadeUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.7s forwards;
}

/* CTA button glow pulse */
.about-cta-btn-glow {
  animation: aboutBtnGlow 3s ease-in-out infinite;
}
@keyframes aboutBtnGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(201,168,76,0.25); }
  50% { box-shadow: 0 4px 32px rgba(201,168,76,0.5), 0 0 60px rgba(201,168,76,0.15); }
}
.about-cta-btn-glow:hover {
  animation: none;
}

/* Discord button — inherits size from .about-cta-btn, only overrides colors */
.about-cta-btn-discord {
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(88,101,242,0.25);
}
.about-cta-btn-discord:hover {
  background: #4752c4;
  color: #fff;
  box-shadow: 0 8px 32px rgba(88,101,242,0.45);
}
.about-cta-btn-discord svg {
  flex-shrink: 0;
}

.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; position: relative; overflow: hidden; }
.auth-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(201,168,76,0.04) 0%, transparent 60%), var(--bg); }
.auth-bg::before { content: ''; position: absolute; inset: -50%; background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(201,168,76,0.015) 40px, rgba(201,168,76,0.015) 41px), repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(201,168,76,0.015) 40px, rgba(201,168,76,0.015) 41px); animation: authPatternDrift 60s linear infinite; }
@keyframes authPatternDrift { 0% { transform: translate(0,0); } 100% { transform: translate(56px,56px); } }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: authOrbFloat 12s ease-in-out infinite; }
.auth-orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(201,168,76,0.15), transparent 70%); top: -10%; left: -5%; animation-duration: 14s; }
.auth-orb-2 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(201,168,76,0.1), transparent 70%); bottom: -10%; right: -5%; animation-duration: 18s; animation-delay: -6s; }
.auth-orb-3 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%); top: 50%; left: 60%; animation-duration: 10s; animation-delay: -3s; }
@keyframes authOrbFloat { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.05); } 66% { transform: translate(-20px,15px) scale(0.95); } }
.auth-card { width: 100%; max-width: 440px; padding: 48px 40px; position: relative; z-index: 1; background: rgba(17,17,24,0.75); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(201,168,76,0.1); border-radius: var(--radius-xl); box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset, 0 1px 0 rgba(255,255,255,0.04) inset; animation: authCardIn 0.7s var(--ease) both; }
@keyframes authCardIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); border-radius: 2px; }
.auth-logo { text-align: center; margin-bottom: 36px; }
.auth-logo img { height: 48px; width: auto; margin-bottom: 10px; filter: drop-shadow(0 0 16px rgba(201,168,76,0.35)); transition: filter 0.5s var(--ease); }
.auth-logo:hover img { filter: drop-shadow(0 0 24px rgba(201,168,76,0.5)); }
.auth-logo-text { font-size: 1.15rem; font-weight: 700; color: var(--text-white); letter-spacing: 2px; text-transform: uppercase; }
.auth-logo-text span { color: var(--accent); }
.auth-card h2 { text-align: center; margin-bottom: 6px; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(135deg, var(--text-white), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-card .auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 36px; line-height: 1.5; }
.auth-section-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; }
.auth-section-divider::before, .auth-section-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.2), transparent); }
.auth-section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.auth-field { position: relative; margin-bottom: 22px; }
.auth-field .auth-input { width: 100%; padding: 16px 18px 8px; background: rgba(14,14,22,0.6); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); color: var(--text-white); font-family: 'Inter', sans-serif; font-size: 0.9rem; transition: all 0.35s var(--ease); outline: none; }
.auth-field .auth-input::placeholder { color: transparent; }
.auth-field .auth-label { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 0.88rem; color: var(--text-muted); pointer-events: none; transition: all 0.3s var(--ease); transform-origin: left center; }
.auth-field .auth-input:focus ~ .auth-label, .auth-field .auth-input:not(:placeholder-shown) ~ .auth-label { top: 10px; transform: translateY(0); font-size: 0.68rem; color: var(--accent); letter-spacing: 0.05em; font-weight: 600; }
.auth-field .auth-input:focus { border-color: var(--accent); background: rgba(14,14,22,0.8); box-shadow: 0 0 0 3px rgba(201,168,76,0.08), 0 4px 16px rgba(0,0,0,0.2); }
.auth-field .auth-input:hover:not(:focus) { border-color: rgba(255,255,255,0.1); }
.auth-field::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: linear-gradient(90deg, var(--accent-dark), var(--accent-light)); border-radius: 2px; transition: all 0.4s var(--ease); transform: translateX(-50%); }
.auth-field:focus-within::after { width: calc(100% - 24px); }
.auth-field-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s var(--ease); pointer-events: none; }
.auth-field:focus-within .auth-field-icon { color: var(--accent); }
.auth-submit { width: 100%; padding: 16px 32px; margin-top: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #1a1a2e; border: none; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; position: relative; overflow: hidden; transition: all 0.4s var(--ease); box-shadow: 0 4px 24px rgba(201,168,76,0.2); }
.auth-submit::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-light), var(--accent)); opacity: 0; transition: opacity 0.4s var(--ease); }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(201,168,76,0.35); }
.auth-submit:hover::before { opacity: 1; }
.auth-submit:active { transform: translateY(0) scale(0.98); }
.auth-submit span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-submit::after { content: ''; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transform: skewX(-20deg); transition: none; animation: authBtnShimmer 4s ease-in-out infinite; }
@keyframes authBtnShimmer { 0%, 100% { left: -60%; } 50% { left: 120%; } }
.auth-switch { text-align: center; margin-top: 28px; font-size: 0.84rem; color: var(--text-muted); }
.auth-switch a { color: var(--accent-light); text-decoration: none; font-weight: 600; position: relative; transition: color 0.3s var(--ease); }
.auth-switch a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s var(--ease); }
.auth-switch a:hover { color: var(--accent); }
.auth-switch a:hover::after { width: 100%; }
.auth-discord-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 16px 32px; margin-top: 24px;
  background: #5865F2; color: white; border: none; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.3px; cursor: pointer; text-decoration: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 24px rgba(88, 101, 242, 0.3);
}
.auth-discord-btn:hover {
  background: #4752c4; transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(88, 101, 242, 0.45); color: white;
}
.auth-discord-btn:active { transform: translateY(0) scale(0.98); }
.auth-info {
  text-align: center; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
}
.auth-card-register { max-width: 520px; }

.img-placeholder { background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.8rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============ PAGE LOADER ============ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.6s var(--ease) both;
}
.loader-logo {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 24px rgba(201, 168, 76, 0.3));
  animation: loaderPulse 1.8s ease-in-out infinite;
}
.loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.loader-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-white);
}
.loader-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}
.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.loader-bar-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  animation: loaderSlide 1.2s var(--ease) infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}
@keyframes loaderSlide {
  0% { transform: translateX(-160px); }
  100% { transform: translateX(400px); }
}

/* ============ 404 PAGE ============ */

.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.not-found-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.6s var(--ease) both;
}
.not-found-logo {
  width: 56px;
  height: 56px;
  opacity: 0.5;
  margin-bottom: 8px;
}
.not-found-code {
  font-family: 'Playfair Display', serif;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.not-found-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-white);
  margin-top: -4px;
}
.not-found-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.7;
}
.not-found-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 480px) {
  .not-found-code { font-size: 5rem; }
  .not-found-title { font-size: 1.3rem; }
  .not-found-actions { flex-direction: column; width: 100%; }
  .not-found-actions .btn { width: 100%; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
  .property-detail-grid { grid-template-columns: 1fr; }
  .property-sidebar-card { position: static; }
  .property-gallery { height: 340px; }
  .pd-gallery-mosaic { height: 320px; }
  .pd-gallery-section { padding-left: 16px; padding-right: 16px; }
  .pd-layout { grid-template-columns: 1fr; gap: 32px; }
  .pd-sidebar { position: static; }
  .pd-floating-card { margin-top: -36px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .about-story { grid-template-columns: 1fr; gap: 48px; }
  .about-story-visual { order: -1; }
  .about-story-image { max-width: 400px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(9,9,15,0.98); backdrop-filter: blur(24px); flex-direction: column; padding: 24px; border-bottom: none; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: var(--transition); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-burger { display: flex; }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { gap: 24px; }
  .hero-stat .stat-number { font-size: 1.6rem; }
  .properties-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .about-hero { min-height: auto; padding: calc(var(--nav-height) + 60px) 0 60px; }
  .about-hero-compact { padding: calc(var(--nav-height) + 20px) 0 40px; }
  .about-hero-title { font-size: 2.4rem; }
  .about-hero-subtitle { font-size: 0.95rem; }
  .about-section { padding: 72px 0; }
  .about-cta { padding: 48px 28px; }
  .about-cta h2 { font-size: 1.5rem; }
  .about-cta-section { padding: 72px 0 80px; }
  .about-story-title { font-size: 1.8rem; }
  .about-cta-buttons { flex-direction: column; gap: 12px; }
  .about-cta-btn { font-size: 0.88rem; padding: 14px 32px; }
  .form-row { grid-template-columns: 1fr; }
  .property-gallery { grid-template-columns: 1fr; height: auto; }
  .property-gallery-main { min-height: 240px; }
  .pd-hero { height: 45vh; min-height: 300px; }
  .pd-hero-title { font-size: 2rem; }
  .pd-hero-price { font-size: 1.7rem; }
  .pd-hero-content { padding-left: 20px; padding-right: 20px; padding-bottom: 32px; }
  .pd-hero-badges { right: 16px; top: calc(var(--nav-height) + 12px); }
  .pd-hero-back { left: 16px; top: calc(var(--nav-height) + 12px); }
  .pd-spec { padding: 10px 18px; }
  .pd-title { font-size: 1.5rem; }
  .pd-price-big { font-size: 1.8rem; }
  .pd-related .properties-grid { grid-template-columns: 1fr !important; }
  .property-gallery-side { grid-template-columns: 1fr 1fr; }
  .property-gallery-thumb { min-height: 110px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .modal { padding: 28px; }
  .toast-container { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .discord-promo { padding: 36px 24px; }
  .discord-promo-links { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-cards { grid-template-columns: 1fr; }
  .page-header { padding: calc(var(--nav-height) + 40px) 0 28px; }
  .about-values { grid-template-columns: 1fr; }
  .about-hero { min-height: auto; padding: calc(var(--nav-height) + 40px) 0 48px; }
  .about-hero-compact { padding: calc(var(--nav-height) + 16px) 0 32px; }
  .about-hero-title { font-size: 1.8rem; }
  .about-hero-badge { font-size: 0.65rem; letter-spacing: 2px; padding: 8px 18px; margin-bottom: 28px; }
  .about-section { padding: 56px 0; }
  .about-cta-section { padding: 56px 0 72px; }
  .about-cta { padding: 40px 20px; }
  .about-cta h2 { font-size: 1.3rem; }
  .about-cta-btn { padding: 14px 32px; font-size: 0.88rem; }
  .about-story-title { font-size: 1.5rem; }
  .about-story-text { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ SHARE BUTTON ============ */

.btn-share {
  width: 100%;
  padding: 10px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  gap: 8px;
  margin-top: 4px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  transition: var(--transition);
}
.btn-share:hover {
  color: var(--accent-light);
  border-color: rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.05);
}
.btn-share svg { flex-shrink: 0; }

/* ============ USER TAGS ============ */

.user-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.user-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.user-tag-remove {
  background: none; border: none; color: inherit;
  cursor: pointer; font-size: 0.85rem; line-height: 1;
  opacity: 0.6; transition: opacity 0.2s;
  padding: 0; margin-left: 2px;
}
.user-tag-remove:hover { opacity: 1; }

.tag-add-dropdown {
  position: relative; display: inline-block;
}
.tag-add-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600;
  background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.1);
  color: var(--text-muted); cursor: pointer;
  transition: var(--transition);
}
.tag-add-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(201,168,76,0.05); }
.tag-dropdown-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: 4px;
  min-width: 140px; z-index: 50;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: dropdownIn 0.15s var(--ease);
}
.tag-dropdown-item {
  display: block; width: 100%; padding: 6px 12px;
  border: none; background: none;
  font-size: 0.8rem; color: var(--text-secondary);
  text-align: left; cursor: pointer;
  border-radius: 6px; transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.tag-dropdown-item:hover { background: rgba(201,168,76,0.08); color: var(--text-white); }

/* ============ ANNOUNCEMENT BANNER ============ */

.announcement-banner {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  padding: 10px 48px 10px 24px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: fadeInDown 0.4s var(--ease);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.announcement-banner .announcement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.announcement-banner.type-info {
  background: rgba(96,165,250,0.18);
  color: var(--info);
  border-bottom: 1px solid rgba(96,165,250,0.35);
  border-top: 1px solid rgba(96,165,250,0.1);
}
.announcement-banner.type-warning {
  background: rgba(251,191,36,0.18);
  color: var(--warning);
  border-bottom: 1px solid rgba(251,191,36,0.35);
  border-top: 1px solid rgba(251,191,36,0.1);
}
.announcement-banner.type-success {
  background: rgba(74,222,128,0.18);
  color: var(--success);
  border-bottom: 1px solid rgba(74,222,128,0.35);
  border-top: 1px solid rgba(74,222,128,0.1);
}
.announcement-banner.type-promo {
  background: linear-gradient(135deg, rgba(201,168,76,0.25) 0%, rgba(212,168,83,0.15) 100%);
  color: var(--accent-light);
  border-bottom: 1px solid rgba(201,168,76,0.4);
  border-top: 1px solid rgba(201,168,76,0.15);
}

.announcement-text { flex: 1; min-width: 0; }

.announcement-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: inherit; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
  opacity: 0.6; transition: opacity 0.2s;
  padding: 6px;
}
.announcement-close:hover { opacity: 1; }

body.has-announcement { --announcement-height: 42px; }
body.has-announcement .hero { min-height: calc(100vh + var(--announcement-height)); padding-top: var(--announcement-height); }
body.has-announcement .page-header { padding-top: calc(var(--nav-height) + var(--announcement-height) + 56px); }
body.has-announcement .about-hero { padding-top: calc(var(--nav-height) + var(--announcement-height) + 40px); }
body.has-announcement .about-hero-compact { padding-top: calc(var(--nav-height) + var(--announcement-height) + 24px); }
body.has-announcement .property-detail { padding-top: calc(var(--nav-height) + var(--announcement-height) + 24px); }
body.has-announcement .pd-hero-badges { top: calc(var(--nav-height) + var(--announcement-height) + 20px); }
body.has-announcement .pd-hero-back { top: calc(var(--nav-height) + var(--announcement-height) + 20px); }
body.has-announcement .pd-quickinfo { top: calc(var(--nav-height) + var(--announcement-height)); }
body.has-announcement .panel-layout { padding-top: calc(var(--nav-height) + var(--announcement-height) + 28px); }
body.has-announcement .panel-sidebar { top: calc(var(--nav-height) + var(--announcement-height) + 28px); }
body.has-announcement .dashboard-layout { padding-top: calc(var(--nav-height) + var(--announcement-height) + 28px); }
body.has-announcement .agency-banner { top: calc(var(--nav-height) + var(--announcement-height)); }
body.has-announcement.has-banner .hero { padding-top: calc(var(--announcement-height) + var(--banner-height)); }

/* ============ ARCHIVE TABS & UI ============ */

.archive-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: fit-content;
}

.archive-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.archive-tab:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.archive-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(201, 168, 76, 0.1);
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0a12;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.archived-row td {
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.01) !important;
}

.archived-row:hover td {
  opacity: 0.85;
}

.panel-action-btn.warning:hover {
  color: var(--warning);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}

/* ============ ACTION BUTTON COLORS (always visible) ============ */
.panel-action-btn.btn-edit { color: var(--info); border-color: rgba(96,165,250,0.25); background: rgba(96,165,250,0.08); }
.panel-action-btn.btn-edit:hover { color: #93bbfd; border-color: rgba(96,165,250,0.45); background: rgba(96,165,250,0.15); }
.panel-action-btn.btn-delete { color: var(--danger); border-color: rgba(248,113,113,0.25); background: rgba(248,113,113,0.08); }
.panel-action-btn.btn-delete:hover { color: #fca5a5; border-color: rgba(248,113,113,0.45); background: rgba(248,113,113,0.15); }
.panel-action-btn.btn-view { color: var(--success); border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.08); }
.panel-action-btn.btn-view:hover { color: #86efac; border-color: rgba(74,222,128,0.45); background: rgba(74,222,128,0.15); }
.panel-action-btn.btn-confirm { color: var(--success); border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.08); }
.panel-action-btn.btn-confirm:hover { color: #86efac; border-color: rgba(74,222,128,0.45); background: rgba(74,222,128,0.15); }
.panel-action-btn.btn-cancel { color: var(--danger); border-color: rgba(248,113,113,0.25); background: rgba(248,113,113,0.08); }
.panel-action-btn.btn-cancel:hover { color: #fca5a5; border-color: rgba(248,113,113,0.45); background: rgba(248,113,113,0.15); }
.panel-action-btn.btn-images { color: #a78bfa; border-color: rgba(167,139,250,0.25); background: rgba(167,139,250,0.08); }
.panel-action-btn.btn-images:hover { color: #c4b5fd; border-color: rgba(167,139,250,0.45); background: rgba(167,139,250,0.15); }
.panel-action-btn.btn-webhook { color: #5865F2; border-color: rgba(88,101,242,0.25); background: rgba(88,101,242,0.08); }
.panel-action-btn.btn-webhook:hover { color: #7983f5; border-color: rgba(88,101,242,0.45); background: rgba(88,101,242,0.15); }
.panel-action-btn.btn-archive { color: var(--warning); border-color: rgba(251,191,36,0.25); background: rgba(251,191,36,0.08); }
.panel-action-btn.btn-archive:hover { color: #fcd34d; border-color: rgba(251,191,36,0.45); background: rgba(251,191,36,0.15); }
.panel-action-btn.btn-restore { color: var(--success); border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.08); }
.panel-action-btn.btn-restore:hover { color: #86efac; border-color: rgba(74,222,128,0.45); background: rgba(74,222,128,0.15); }
.panel-action-btn.btn-read { color: var(--success); border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.08); }
.panel-action-btn.btn-read:hover { color: #86efac; border-color: rgba(74,222,128,0.45); background: rgba(74,222,128,0.15); }
.panel-action-btn.btn-message { color: #a78bfa; border-color: rgba(167,139,250,0.25); background: rgba(167,139,250,0.08); }
.panel-action-btn.btn-message:hover { color: #c4b5fd; border-color: rgba(167,139,250,0.45); background: rgba(167,139,250,0.15); }
.panel-action-btn.btn-approve { color: var(--success); border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.08); }
.panel-action-btn.btn-approve:hover { color: #86efac; border-color: rgba(74,222,128,0.45); background: rgba(74,222,128,0.15); }

/* ============ IMPROVED APPOINTMENT FORM ============ */
.rdv-form-section { padding: 20px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); margin-bottom: 20px; }
.rdv-form-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.rdv-form-section-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rdv-form-section-icon.client { background: rgba(96,165,250,0.12); color: #60a5fa; }
.rdv-form-section-icon.details { background: rgba(201,168,76,0.12); color: #c9a84c; }
.rdv-form-section-icon.schedule { background: rgba(74,222,128,0.12); color: #4ade80; }
.rdv-form-section-title { font-weight: 700; font-size: 0.95rem; color: var(--text-white); }
.rdv-form-section-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ============ IMPROVED USERS PANEL ============ */
.users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.user-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.04); padding: 24px; transition: var(--transition); position: relative; overflow: hidden; }
.user-card:hover { border-color: rgba(255,255,255,0.08); background: var(--bg-card-hover); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.user-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.user-card-avatar { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; flex-shrink: 0; }
.user-card-avatar.role-admin { background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.08)); color: var(--accent); box-shadow: 0 0 20px rgba(201,168,76,0.1); }
.user-card-avatar.role-agent { background: linear-gradient(135deg, rgba(96,165,250,0.2), rgba(96,165,250,0.08)); color: var(--info); box-shadow: 0 0 20px rgba(96,165,250,0.1); }
.user-card-avatar.role-player { background: linear-gradient(135deg, rgba(139,139,158,0.2), rgba(139,139,158,0.08)); color: var(--text-muted); }
.user-card-info { flex: 1; min-width: 0; }
.user-card-name { font-weight: 700; font-size: 1.05rem; color: var(--text-white); margin-bottom: 4px; }
.user-card-username { font-size: 0.78rem; color: var(--text-muted); font-family: monospace; }
.user-card-role-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.user-card-role-badge.role-admin { background: rgba(201,168,76,0.12); color: var(--accent); border: 1px solid rgba(201,168,76,0.2); }
.user-card-role-badge.role-agent { background: rgba(96,165,250,0.12); color: var(--info); border: 1px solid rgba(96,165,250,0.2); }
.user-card-role-badge.role-player { background: rgba(139,139,158,0.1); color: var(--text-muted); border: 1px solid rgba(139,139,158,0.15); }
.user-card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; padding: 14px; border-radius: 10px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.03); }
.user-card-detail { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-secondary); }
.user-card-detail svg { flex-shrink: 0; opacity: 0.5; }
.user-card-detail-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.04); }
.user-card-stat { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); }
.user-card-stat-value { font-weight: 700; color: var(--accent); }
.user-card-actions { display: flex; gap: 6px; }

/* ============ COMPOSE MESSAGE MODAL ============ */
.compose-modal-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.compose-modal-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(167,139,250,0.05)); display: flex; align-items: center; justify-content: center; color: #a78bfa; }
.compose-modal-title { font-weight: 800; font-size: 1.3rem; color: var(--text-white); }
.compose-modal-subtitle { font-size: 0.82rem; color: var(--text-muted); }
.compose-recipient-display { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.12); margin-bottom: 20px; }
.compose-recipient-avatar { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: #0a0a12; flex-shrink: 0; }
.compose-recipient-info { flex: 1; }
.compose-recipient-name { font-weight: 700; color: var(--text-white); font-size: 0.95rem; }
.compose-recipient-role { font-size: 0.75rem; color: var(--text-muted); }

/* ============ SETTINGS PAGE — REDESIGNED ============ */

/* Page layout */
.settings-page { display: grid; gap: 28px; }

/* Card container */
.settings-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.settings-card:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Card header */
.settings-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.012);
}
.settings-card-header-text { flex: 1; min-width: 0; }
.settings-card-title {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text-white);
  letter-spacing: -0.01em;
}
.settings-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* Card icon badges */
.settings-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.settings-card:hover .settings-card-icon { transform: scale(1.05); }
.settings-card-icon--gold { background: rgba(201,168,76,0.12); color: #c9a84c; box-shadow: 0 0 20px rgba(201,168,76,0.06); }
.settings-card-icon--red { background: rgba(239,68,68,0.1); color: #ef4444; box-shadow: 0 0 20px rgba(239,68,68,0.04); }
.settings-card-icon--discord { background: rgba(114,137,218,0.12); color: #7289da; box-shadow: 0 0 20px rgba(114,137,218,0.06); }
.settings-card-icon--yellow { background: rgba(251,191,36,0.1); color: #fbbf24; box-shadow: 0 0 20px rgba(251,191,36,0.04); }

/* Card body & footer */
.settings-card-body { padding: 28px 32px; }
.settings-card-footer {
  padding: 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.012);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Save button styling */
.settings-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* Status badge in header */
.settings-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--badge-color, #8b8b9e);
  background: color-mix(in srgb, var(--badge-color, #8b8b9e) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge-color, #8b8b9e) 18%, transparent);
  white-space: nowrap;
  transition: all 0.3s ease;
}
.settings-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: settings-pulse 2s infinite;
}
@keyframes settings-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Subsection labels */
.settings-subsection { margin-bottom: 4px; }
.settings-subsection-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Divider */
.settings-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 24px 0;
}

/* Field row — 2 columns */
.settings-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.settings-field-half { min-width: 0; }

/* Contact info 2x2 grid */
.settings-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.settings-contact-grid .form-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Toggle cards for Security ---- */
.settings-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.25s ease;
}
.settings-toggle-card + .settings-toggle-card { margin-top: 14px; }
.settings-toggle-card:hover {
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.07);
}
.settings-toggle-card--warning:hover { border-color: rgba(251,191,36,0.15); }
.settings-toggle-card-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.settings-toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-toggle-icon--green { background: rgba(74,222,128,0.1); color: #4ade80; }
.settings-toggle-icon--orange { background: rgba(251,191,36,0.1); color: #fbbf24; }
.settings-toggle-icon--accent { background: rgba(201,168,76,0.1); color: #c9a84c; }
.settings-toggle-content { flex: 1; min-width: 0; }
.settings-toggle-title { font-weight: 650; font-size: 0.92rem; color: var(--text-white); }
.settings-toggle-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }

/* Maintenance active warning */
.settings-maintenance-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.12);
}

/* Toggle Switch (redesigned) */
.toggle-switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.07);
  border-radius: 28px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: #555566;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: rgba(201,168,76,0.22);
  border-color: rgba(201,168,76,0.35);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(201,168,76,0.3);
}

/* ---- Webhook section ---- */
.settings-webhook-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}
.settings-webhook-status--active {
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.12);
}
.settings-webhook-status--inactive {
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.settings-webhook-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.settings-webhook-status--active .settings-webhook-status-dot { background: #4ade80; }
.settings-webhook-status--inactive .settings-webhook-status-dot { background: var(--text-muted); }

.settings-webhook-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.settings-webhook-hint svg { flex-shrink: 0; margin-top: 1px; opacity: 0.5; }

/* Test button with loading state */
.settings-test-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(114,137,218,0.1);
  color: #7289da;
  border: 1px solid rgba(114,137,218,0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.settings-test-btn:hover {
  background: rgba(114,137,218,0.18);
  border-color: rgba(114,137,218,0.3);
}
.settings-test-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.settings-test-btn.loading .settings-test-icon {
  animation: settings-spin 1s linear infinite;
}
@keyframes settings-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---- Announcement type selector ---- */
.settings-announce-types {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.settings-announce-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.settings-announce-type-option input { display: none; }
.settings-announce-type-option:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-white);
}
.settings-announce-type-option.active {
  background: color-mix(in srgb, var(--type-color) 12%, transparent);
  border-color: color-mix(in srgb, var(--type-color) 25%, transparent);
  color: var(--type-color);
}
.settings-announce-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Live preview */
.settings-announce-preview-wrap {
  margin-top: 20px;
}
.settings-announce-preview-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.settings-announce-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--preview-color, #60a5fa) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--preview-color, #60a5fa) 15%, transparent);
  color: var(--preview-color, #60a5fa);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.settings-announce-preview-icon { flex-shrink: 0; display: flex; }
.settings-announce-preview-text { flex: 1; min-width: 0; }

/* ---- Settings responsive ---- */
@media (max-width: 700px) {
  .settings-card-header { padding: 20px 20px; }
  .settings-card-body { padding: 22px 20px; }
  .settings-card-footer { padding: 16px 20px; }
  .settings-field-row { grid-template-columns: 1fr; }
  .settings-contact-grid { grid-template-columns: 1fr; }
  .settings-announce-types { flex-direction: column; }
  .settings-toggle-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .settings-status-badge { display: none; }
}

/* ---- Legacy compat ---- */
.settings-grid-full { display: grid; gap: 24px; }

/* ---- User card improvements ---- */
.user-card-bordered { border-left-width: 3px !important; border-left-style: solid !important; }
.user-card-email { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card-registered { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--accent); font-weight: 600; padding: 8px 14px; margin: 0 0 14px 0; border-radius: 8px; background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.1); }
.user-card-registered svg { opacity: 0.7; }

/* ============================================================
   USERS V2 - Enhanced user cards, toolbar, filters
   ============================================================ */

/* --- Toolbar: search + role filters --- */
.users-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.users-search-wrapper { position: relative; flex: 1; min-width: 220px; }
.users-search-wrapper svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.users-search-input { width: 100%; padding: 11px 14px 11px 40px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; color: var(--text-white); font-size: 0.88rem; outline: none; transition: border-color 0.2s; }
.users-search-input::placeholder { color: var(--text-muted); }
.users-search-input:focus { border-color: rgba(201,168,76,0.4); }

.users-role-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.users-role-filter { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.users-role-filter:hover { background: rgba(255,255,255,0.07); color: var(--text-white); }
.users-role-filter.active { background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.25); color: var(--accent); }
.users-role-filter--admin.active { background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.25); color: #c9a84c; }
.users-role-filter--agent.active { background: rgba(96,165,250,0.12); border-color: rgba(96,165,250,0.25); color: #60a5fa; }
.users-role-filter--player.active { background: rgba(139,139,158,0.1); border-color: rgba(139,139,158,0.2); color: #8b8b9e; }
.users-role-count { background: rgba(255,255,255,0.08); padding: 1px 7px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }

/* --- Stats bar --- */
.users-stats-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 10px 18px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 10px; font-size: 0.82rem; font-weight: 600; }
.users-stats-item--admin { color: #c9a84c; }
.users-stats-item--agent { color: #60a5fa; }
.users-stats-item--player { color: #8b8b9e; }
.users-stats-sep { color: rgba(255,255,255,0.15); font-size: 1.1rem; }

/* --- Grid V2 --- */
.users-grid-v2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); gap: 18px; }

/* --- Card V2 --- */
.user-card-v2 { background: var(--bg-card); border-radius: 16px; border: 1px solid rgba(255,255,255,0.04); overflow: hidden; transition: all 0.25s ease; position: relative; }
.user-card-v2:hover { border-color: rgba(255,255,255,0.08); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }

/* Role-specific top accent line */
.user-card-v2::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.user-card-v2--admin::before { background: linear-gradient(90deg, #c9a84c, #e8d48b, #c9a84c); }
.user-card-v2--agent::before { background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6); }
.user-card-v2--player::before { background: linear-gradient(90deg, #64748b, #8b8b9e, #64748b); }

/* Header: avatar + identity + badge */
.user-card-v2__header { display: flex; align-items: center; gap: 14px; padding: 22px 22px 16px; }
.user-card-v2__avatar { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.user-card-v2__avatar--admin { background: linear-gradient(135deg, rgba(201,168,76,0.25), rgba(201,168,76,0.08)); box-shadow: 0 0 24px rgba(201,168,76,0.15); }
.user-card-v2__avatar--agent { background: linear-gradient(135deg, rgba(96,165,250,0.25), rgba(96,165,250,0.08)); box-shadow: 0 0 24px rgba(96,165,250,0.15); }
.user-card-v2__avatar--player { background: linear-gradient(135deg, rgba(139,139,158,0.2), rgba(139,139,158,0.06)); }
.user-card-v2__initial { font-size: 1.3rem; font-weight: 800; z-index: 1; }
.user-card-v2__avatar--admin .user-card-v2__initial { color: #c9a84c; }
.user-card-v2__avatar--agent .user-card-v2__initial { color: #60a5fa; }
.user-card-v2__avatar--player .user-card-v2__initial { color: #8b8b9e; }

.user-card-v2__identity { flex: 1; min-width: 0; }
.user-card-v2__name { font-weight: 700; font-size: 1.08rem; color: var(--text-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-v2__username { font-size: 0.78rem; color: var(--text-muted); font-family: monospace; margin-top: 2px; }

.user-card-v2__badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.user-card-v2__badge--admin { background: rgba(201,168,76,0.12); color: #c9a84c; border: 1px solid rgba(201,168,76,0.2); }
.user-card-v2__badge--agent { background: rgba(96,165,250,0.12); color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }
.user-card-v2__badge--player { background: rgba(139,139,158,0.1); color: #8b8b9e; border: 1px solid rgba(139,139,158,0.15); }

/* Specialty tag */
.user-card-v2__specialty { display: flex; align-items: center; gap: 7px; padding: 6px 22px 14px; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.user-card-v2__specialty svg { opacity: 0.7; }

/* Info grid */
.user-card-v2__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 22px 16px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04); }
.user-card-v2__field { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: rgba(255,255,255,0.01); }
.user-card-v2__field-icon { flex-shrink: 0; margin-top: 1px; opacity: 0.45; color: var(--text-secondary); }
.user-card-v2__field-content { min-width: 0; }
.user-card-v2__field-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 3px; }
.user-card-v2__field-value { font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-v2__field-value strong { color: var(--accent); font-weight: 700; }
.user-card-v2__empty { color: rgba(255,255,255,0.2); font-style: italic; }

/* Footer */
.user-card-v2__footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid rgba(255,255,255,0.04); background: rgba(255,255,255,0.01); }
.user-card-v2__meta { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; }
.user-card-v2__meta svg { opacity: 0.5; flex-shrink: 0; }
.user-card-v2__meta-ago { padding: 2px 8px; border-radius: 100px; background: rgba(255,255,255,0.04); font-size: 0.7rem; font-weight: 600; }

.user-card-v2__actions { display: flex; gap: 6px; }
.user-card-v2__action-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: var(--text-muted); }
.user-card-v2__action-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-white); border-color: rgba(255,255,255,0.12); }
.user-card-v2__action-btn--message:hover { color: #60a5fa; border-color: rgba(96,165,250,0.3); background: rgba(96,165,250,0.08); }
.user-card-v2__action-btn--edit:hover { color: #c9a84c; border-color: rgba(201,168,76,0.3); background: rgba(201,168,76,0.08); }
.user-card-v2__action-btn--delete:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.08); }

@media (max-width: 768px) {
  .users-toolbar { flex-direction: column; gap: 10px; }
  .users-search-wrapper { min-width: 100%; }
  .users-role-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .users-grid-v2 { grid-template-columns: 1fr; }
  .user-card-v2__grid { grid-template-columns: 1fr; }
  .user-card-v2__header { flex-wrap: wrap; }
  .user-card-v2__badge { margin-top: 4px; }
  .users-stats-bar { flex-wrap: wrap; font-size: 0.78rem; }
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================================ */

/* ---------- TABLET (max-width: 1024px) enhancements ---------- */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .properties-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .testimonials-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .archive-tabs { flex-wrap: wrap; width: 100%; }
}

/* ---------- MOBILE (max-width: 768px) enhancements ---------- */

@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }

  /* Navbar */
  .nav-container { padding: 0 16px; }
  .nav-logo-text { font-size: 1rem; letter-spacing: 1.5px; }
  .nav-logo-accent { font-size: 0.58rem; letter-spacing: 2.5px; }
  .nav-logo-icon { height: 30px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(9,9,15,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 16px 20px;
    gap: 0;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-link:hover,
  .nav-link.active {
    background: rgba(201,168,76,0.06);
  }
  .nav-link.active::after {
    bottom: auto; left: 0;
    top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px;
    border-radius: 0 2px 2px 0;
  }
  .nav-burger {
    display: flex;
    padding: 10px;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
  }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-ghost { padding: 8px 14px; font-size: 0.8rem; }
  #userName { display: none; }
  .user-dropdown { right: -8px; min-width: 200px; }
  .notif-dropdown {
    position: fixed;
    top: var(--nav-height);
    left: 8px; right: 8px;
    width: auto; max-height: 70vh;
    border-radius: var(--radius);
  }

  /* Hero */
  .hero { padding: 0 20px; min-height: 90vh; }
  .hero h1 { font-size: 2rem; margin-bottom: 20px; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 36px; }
  .hero-badge { font-size: 0.65rem; padding: 6px 14px; margin-bottom: 24px; }
  .hero-stats { gap: 20px; margin-top: 48px; padding-top: 28px; flex-wrap: wrap; }
  .hero-stat .stat-number { font-size: 1.4rem; }
  .hero-stat .stat-label { font-size: 0.65rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { padding: 14px 28px; font-size: 0.88rem; min-height: 48px; }

  /* Banner */
  .agency-banner { font-size: 0.65rem; padding: 8px 0; }
  .announcement-banner { font-size: 0.75rem; padding: 8px 36px 8px 16px; }

  /* Property cards */
  .properties-grid { grid-template-columns: 1fr; gap: 16px; }
  .property-card-image { height: 200px; }
  .property-card-body { padding: 18px; }
  .property-card-price { font-size: 1.3rem; }
  .property-card-features { gap: 14px; flex-wrap: wrap; }

  /* Property detail */
  .property-detail { padding-top: calc(var(--nav-height) + 16px); padding-bottom: 60px; }
  .property-gallery { grid-template-columns: 1fr; height: auto; margin-bottom: 24px; }
  .property-gallery-main { min-height: 220px; }
  .property-gallery-side { grid-template-columns: 1fr 1fr; }
  .property-gallery-thumb { min-height: 100px; }
  .property-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .property-detail-info h1 { font-size: 1.6rem; }
  .property-detail-price { font-size: 2rem; margin-bottom: 24px; }
  .property-detail-location { font-size: 0.88rem; }
  .property-specs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .property-spec { padding: 14px 12px; }
  .property-spec-value { font-size: 1.15rem; }
  .property-sidebar-card { position: static; padding: 24px; }
  .property-description { font-size: 0.88rem; }

  /* Property detail V2 mobile */
  .pd-hero { height: 40vh; min-height: 280px; }
  .pd-hero-title { font-size: 1.6rem; }
  .pd-hero-price { font-size: 1.5rem; }
  .pd-hero-content { padding-left: 16px; padding-right: 16px; padding-bottom: 24px; }
  .pd-hero-badges { right: 12px; top: calc(var(--nav-height) + 10px); gap: 6px; }
  .pd-hero-back { left: 12px; top: calc(var(--nav-height) + 10px); width: 38px; height: 38px; }
  .pd-badge { font-size: 0.68rem; padding: 5px 12px; }
  .pd-gallery-mosaic { height: 260px; grid-template-columns: 1fr; border-radius: 12px; }
  .pd-gallery-main { border-radius: 12px 12px 0 0; }
  .pd-gallery-side { grid-template-columns: repeat(4, 1fr); }
  .pd-gallery-side .pd-gallery-thumb:nth-child(2) { border-radius: 0; }
  .pd-gallery-side .pd-gallery-thumb:last-child { border-radius: 0 0 12px 0; }
  .pd-gallery-side .pd-gallery-thumb:nth-child(3) { border-radius: 0 0 0 12px; }
  .pd-gallery-section { padding-left: 12px; padding-right: 12px; }
  .pd-floating-card { flex-direction: column; margin-top: -28px; padding: 20px 24px; }
  .pd-float-right { text-align: left; }
  .pd-title { font-size: 1.3rem; }
  .pd-price-big { font-size: 1.6rem; }
  .pd-layout { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 60px; }
  .pd-sidebar { position: static; }
  .pd-sidebar-card { padding: 22px; }
  .pd-desc-text { font-size: 0.88rem; }
  .pd-related { padding: 48px 0; }
  .pd-related .properties-grid { grid-template-columns: 1fr !important; }
  .pd-lightbox-nav { width: 40px; height: 40px; }
  .pd-lightbox-prev { left: 12px; }
  .pd-lightbox-next { right: 12px; }

  /* Dashboard / Admin */
  .dashboard-layout { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; gap: 16px; }
  .dashboard-sidebar { position: static; padding: 16px 10px; }
  .sidebar-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar-nav-item { margin-bottom: 0; }
  .sidebar-nav-link { padding: 8px 12px; font-size: 0.8rem; gap: 6px; }
  .sidebar-nav-link.active::before { display: none; }
  .dashboard-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .dashboard-header h2 { font-size: 1.25rem; }
  .dashboard-content { padding: 0 0 28px 0; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card-value { font-size: 1.5rem; }
  .stat-card-icon { width: 34px; height: 34px; font-size: 0.95rem; margin-bottom: 10px; }

  /* Tables: horizontally scrollable */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .data-table { min-width: 600px; }
  .panel-table { min-width: 600px; }
  .data-table th, .data-table td { padding: 10px 14px; font-size: 0.8rem; }
  .panel-table th, .panel-table td { padding: 10px 14px; font-size: 0.8rem; }

  /* Panel layout */
  .panel-layout { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; gap: 16px; }
  .panel-sidebar { position: static; }
  .panel-nav { flex-direction: row; flex-wrap: wrap; padding: 10px; gap: 4px; }
  .panel-nav-link { padding: 8px 12px; font-size: 0.78rem; gap: 6px; }
  .panel-nav-link.active::before { display: none; }
  .panel-sidebar-header { padding: 18px 16px; }
  .panel-sidebar-footer { display: none; }
  .panel-main { padding: 0 0 28px 0; }
  .panel-grid-2 { grid-template-columns: 1fr; }
  .panel-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .panel-title { font-size: 1.3rem; }
  .panel-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .panel-stat-card { padding: 16px; gap: 12px; }
  .panel-stat-value { font-size: 1.2rem; }
  .panel-stat-icon { width: 38px; height: 38px; }
  .panel-card-header { padding: 16px 18px; }
  .panel-card-header h3 { font-size: 0.9rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .form-input, .form-select, .form-textarea { padding: 12px 14px; font-size: 0.88rem; min-height: 44px; }
  .custom-select-trigger { min-height: 44px; padding: 12px 14px; }
  .form-group { margin-bottom: 18px; }
  .auth-container { padding: 20px 16px; }
  .auth-card { padding: 32px 22px; }
  .auth-card h2 { font-size: 1.4rem; }
  .auth-field { margin-bottom: 18px; }
  .auth-orb-1 { width: 250px; height: 250px; }
  .auth-orb-2 { width: 200px; height: 200px; }
  .auth-orb-3 { width: 120px; height: 120px; }

  /* Footer */
  .footer { padding: 48px 0 28px; margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand p { max-width: none; margin-left: auto; margin-right: auto; }
  .footer-discord-btn { margin: 16px auto 0; }
  .footer h4 { margin-bottom: 14px; }
  .footer-links { display: flex; flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px; }
  .service-icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 18px; }

  /* About values */
  .about-values { grid-template-columns: 1fr; gap: 16px; }

  /* Contact home */
  .contact-home-section { padding: 60px 0 80px; }
  .contact-home-banner { padding: 36px 20px; }
  .contact-home-banner h2 { font-size: 1.5rem; }
  .contact-home-infos { flex-direction: column; align-items: center; gap: 12px; }

  /* Profile */
  .profile-field-group, .profile-field-group-3 { grid-template-columns: 1fr; }
  .profile-info-grid { grid-template-columns: 1fr 1fr; }
  .profile-banner-content { flex-direction: column; text-align: center; padding: 20px 16px 20px; }
  .profile-big-avatar { width: 80px; height: 80px; font-size: 1.5rem; margin-top: -50px; }
  .profile-big-avatar-img { width: 80px; height: 80px; margin-top: -50px; }
  .profile-name { font-size: 1.25rem; }
  .profile-banner-bg { height: 120px; }
  .profile-security-row { grid-template-columns: 1fr; }
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-banner-name-row { justify-content: center; }
  .profile-banner-tags { justify-content: center; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 20px; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 28px; }
  .team-avatar { width: 72px; height: 72px; font-size: 1.3rem; }

  /* Modal */
  .modal-overlay { padding: 12px; }
  .modal { padding: 24px 18px; max-height: 90vh; border-radius: var(--radius-lg); }
  .modal h3 { font-size: 1.2rem; margin-bottom: 18px; padding-bottom: 14px; }
  .modal-lg { max-width: 100%; }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; }

  /* Discord */
  .discord-banner-inner { flex-direction: column; padding: 20px 18px; text-align: center; }
  .discord-banner-left { flex-direction: column; }
  .discord-banner-links { justify-content: center; flex-wrap: wrap; }
  .discord-logo-bg { width: 50%; opacity: 0.2; }

  /* Feature rows */
  .feature-row, .feature-row-reverse { grid-template-columns: 1fr; gap: 28px; direction: ltr; }
  .feature-text h2 { font-size: 1.5rem; }

  /* Filters */
  .filters-bar { padding: 16px; margin-bottom: 20px; }
  .filters-grid { grid-template-columns: 1fr; gap: 12px; }
  .filters-actions { flex-direction: column; width: 100%; }
  .filters-actions .btn { width: 100%; }

  /* Page header */
  .page-header { padding: calc(var(--nav-height) + 40px) 0 28px; }
  .page-header h1 { font-size: 1.8rem; }
  .page-header p { font-size: 0.9rem; }

  /* Stat charts */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-metric-grid { grid-template-columns: 1fr 1fr; }
  .stat-bar-chart { height: 120px; }

  /* Toasts */
  .toast-container { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .toast { font-size: 0.82rem; padding: 12px 14px; }

  /* Pagination */
  .pagination { gap: 6px; margin-top: 28px; }
  .pagination-btn { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }

  /* Touch-friendly buttons */
  .btn { min-height: 44px; padding: 10px 22px; }
  .btn-sm { min-height: 36px; padding: 6px 14px; }
  .btn-lg { min-height: 48px; }
  .btn-icon { width: 44px; height: 44px; }

  /* Quote cards */
  .quote-card { padding: 20px; }
  .quote-card-footer { flex-direction: column; gap: 10px; align-items: flex-start; }
  .quote-card-price { font-size: 1.1rem; }

  /* Messages */
  .message-card { padding: 16px; }

  /* Misc */
  .empty-state { padding: 48px 16px; }
  .empty-state-icon { font-size: 2.5rem; }
  .empty-state h3 { font-size: 1.1rem; }
  .refresh-btn { bottom: 16px; left: 16px; width: 44px; height: 44px; }

  /* Archive tabs */
  .archive-tabs { width: 100%; flex-wrap: wrap; }
  .archive-tab { padding: 6px 12px; font-size: 0.78rem; flex: 1; justify-content: center; min-height: 36px; }

  /* Announcement/banner offsets for mobile nav dropdown */
  body.has-announcement .nav-links { top: calc(var(--nav-height) + var(--announcement-height, 0px)); }
  body.has-banner .nav-links { top: calc(var(--nav-height) + var(--banner-height, 0px)); }
  body.has-announcement.has-banner .nav-links { top: calc(var(--nav-height) + var(--announcement-height, 0px) + var(--banner-height, 0px)); }

  /* Prevent horizontal overflow */
  #app { overflow-x: hidden; }
}

/* ---------- SMALL MOBILE (max-width: 480px) ---------- */

@media (max-width: 480px) {
  .hero { min-height: 85vh; }
  .hero h1 { font-size: 1.7rem; letter-spacing: -0.02em; }
  .hero-subtitle { font-size: 0.88rem; line-height: 1.7; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat .stat-number { font-size: 1.3rem; }

  .stat-cards { grid-template-columns: 1fr; }
  .panel-stats { grid-template-columns: 1fr; }

  .property-detail-info h1 { font-size: 1.35rem; }
  .property-detail-price { font-size: 1.7rem; }
  .property-specs { grid-template-columns: 1fr 1fr; }
  .pd-hero { height: 35vh; min-height: 250px; }
  .pd-hero-title { font-size: 1.35rem; }
  .pd-hero-price { font-size: 1.3rem; }
  .pd-features-grid { grid-template-columns: 1fr; }
  .pd-gallery-mosaic { height: auto; grid-template-columns: 1fr; border-radius: 12px; }
  .pd-gallery-main { min-height: 200px; border-radius: 12px 12px 0 0; }
  .pd-gallery-side { grid-template-columns: 1fr 1fr; }
  .pd-gallery-side .pd-gallery-thumb:nth-child(2) { border-radius: 0; }
  .pd-gallery-side .pd-gallery-thumb:last-child { border-radius: 0 0 12px 0; }
  .pd-gallery-side .pd-gallery-thumb:nth-child(3) { border-radius: 0 0 0 12px; }
  .pd-gallery-section { padding-left: 10px; padding-right: 10px; }
  .pd-specs-grid { grid-template-columns: 1fr 1fr; }
  .pd-sidebar-links { flex-direction: column; gap: 10px; align-items: center; }

  .profile-info-grid { grid-template-columns: 1fr; }
  .profile-big-avatar { width: 64px; height: 64px; font-size: 1.2rem; margin-top: -40px; }
  .profile-big-avatar-img { width: 64px; height: 64px; margin-top: -40px; }
  .profile-name { font-size: 1.1rem; }
  .profile-stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-pref-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .profile-pref-select { max-width: 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: 1fr; }

  .contact-home-banner h2 { font-size: 1.3rem; }
  .contact-home-banner { padding: 28px 16px; }
  .feature-text h2 { font-size: 1.3rem; }

  .page-header { padding: calc(var(--nav-height) + 28px) 0 20px; }
  .page-header h1 { font-size: 1.5rem; }
  .about-values { grid-template-columns: 1fr; }

  /* Modal bottom sheet */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; padding: 22px 16px; }

  .auth-card { padding: 24px 16px; border-radius: var(--radius-lg); }
  .auth-card h2 { font-size: 1.25rem; }
  .auth-logo img { height: 36px; }
  .auth-logo { margin-bottom: 24px; }
  .auth-field { margin-bottom: 16px; }
  .auth-submit { padding: 14px 24px; }

  .footer { padding: 36px 0 20px; margin-top: 36px; }

  .nav-logo-text { font-size: 0.9rem; letter-spacing: 1px; }
  .nav-logo-accent { font-size: 0.52rem; }
  .nav-logo-icon { height: 26px; }
  .notif-dropdown { left: 4px; right: 4px; }

  .not-found-code { font-size: 4rem; }
  .not-found-title { font-size: 1.1rem; }
  .not-found-actions { flex-direction: column; width: 100%; }
  .not-found-actions .btn { width: 100%; }

  .stat-metric-grid { grid-template-columns: 1fr; }
  .stat-bar-chart { height: 100px; }

  .loader-logo { width: 56px; height: 56px; }
  .loader-title { font-size: 1.1rem; }
  .loader-subtitle { font-size: 0.7rem; }
  .loader-bar { width: 120px; }
}

/* ---------- LANDSCAPE PHONE ---------- */

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 80px 20px 40px; }
  .hero-stats { margin-top: 24px; }
  .nav-links { max-height: calc(100vh - var(--nav-height)); overflow-y: auto; }
}

/* ---------- TOUCH DEVICE HELPERS ---------- */

@media (hover: none) and (pointer: coarse) {
  .glass-card:hover { transform: none; }
  .property-card:hover { transform: none; box-shadow: none; }
  .stat-card:hover { transform: none; }
  .team-card:hover .team-avatar { transform: none; }
  .quote-card:hover { transform: none; }
  .message-card:hover { transform: none; }

  .dropdown-item { min-height: 44px; display: flex; align-items: center; }
  .sidebar-nav-link { min-height: 44px; }
  .panel-nav-link { min-height: 44px; }
  .pagination-btn { min-width: 44px; min-height: 44px; }
  .panel-action-btn { min-width: 40px; min-height: 40px; }
}

/* ============ FIVEM PLAYER BAR ============ */

.fivem-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--fivem-bar-height);
  background: #07070e;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  color: #b0b0c0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  letter-spacing: 0.02em;
}

.fivem-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
  animation: fivemPulse 2s ease-in-out infinite;
}

.fivem-status-dot.orange {
  background: #f59e0b;
  animation: fivemPulseOrange 2s ease-in-out infinite;
}

.fivem-status-dot.red {
  background: #ef4444;
  animation: fivemPulseRed 2s ease-in-out infinite;
}

@keyframes fivemPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

@keyframes fivemPulseOrange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}

@keyframes fivemPulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* ============================================
   Property Form Sections
   ============================================ */
.pf-section {
  margin-bottom: 28px;
}
.pf-section:last-of-type {
  margin-bottom: 8px;
}
.pf-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}
.pf-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pf-section-icon svg {
  color: #c9a84c;
}
.pf-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.pf-price-input {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  letter-spacing: 0.5px;
}

/* ============ ACTIVITY LOG V2 — Filters, Pagination, Detail ============ */

.activity-filters {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.activity-filters-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.activity-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}
.activity-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.activity-filters select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--glass-bg, rgba(255,255,255,0.03));
  color: var(--text-primary);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  border-radius: 10px;
  padding: 10px 36px 10px 14px;
  font-size: 0.85rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.3s ease;
}
.activity-filters select:focus {
  border-color: var(--accent);
  outline: none;
}
.activity-filters select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}
.activity-period-btns {
  display: flex;
  gap: 4px;
}
.activity-period-btn {
  padding: 7px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.activity-period-btn:hover {
  border-color: var(--accent);
  color: var(--text-white);
}
.activity-period-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a2e;
  font-weight: 600;
}
.activity-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  color: #ef4444;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.activity-clear-filters:hover {
  background: rgba(239,68,68,0.2);
}

/* Activity Timeline V2 */
.activity-timeline-v2 {
  display: flex;
  flex-direction: column;
}
.activity-row-v2 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}
.activity-row-v2:last-of-type { border-bottom: none; }
.activity-row-v2:hover {
  background: rgba(201,168,76,0.04);
}
.activity-row-v2.expanded {
  background: rgba(201,168,76,0.06);
  border-bottom-color: transparent;
}
.activity-row-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 8px;
}
.activity-row-main {
  flex: 1;
  min-width: 0;
}
.activity-row-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.activity-row-action {
  color: var(--text-white);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.activity-row-preview {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-row-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.activity-row-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.activity-row-user {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.activity-row-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.activity-row-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.activity-row-v2.expanded .activity-row-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Activity Detail Panel (expandable) */
.activity-detail-panel {
  background: rgba(201,168,76,0.03);
  border-bottom: 1px solid var(--border);
  padding: 0 20px 16px 66px;
  animation: actDetailSlide 0.2s ease;
}
@keyframes actDetailSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.activity-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-white);
}
.activity-detail-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-detail-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.activity-detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 100px;
  flex-shrink: 0;
}
.activity-detail-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-word;
}
.activity-detail-json {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
}
.activity-detail-raw {
  margin-top: 8px;
}
.activity-detail-raw summary {
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}
.activity-detail-raw summary:hover {
  color: var(--accent);
}

/* Pagination */
.activity-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-top: 8px;
}
.activity-pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.activity-pagination-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}
.activity-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.activity-page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--accent);
  color: var(--text-white);
  background: var(--bg-surface);
}
.activity-page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a2e;
  font-weight: 700;
}
.activity-page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.activity-page-ellipsis {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .activity-filters-row {
    flex-direction: column;
    gap: 12px;
  }
  .activity-filter-group {
    min-width: 100%;
  }
  .activity-period-btns {
    flex-wrap: wrap;
  }
  .activity-row-v2 {
    padding: 12px 14px;
    gap: 10px;
  }
  .activity-row-preview { display: none; }
  .activity-detail-panel {
    padding-left: 14px;
  }
  .activity-pagination {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .activity-row-top { flex-wrap: wrap; }
}

/* ============ PUBLIC PROFILE — CARTE DE VISITE ============ */
.pp-page { min-height: 100vh; display: flex; flex-direction: column; }
.pp-hero { position: relative; width: 100%; flex: 1; overflow: hidden; }
.pp-hero-bg { position: absolute; inset: 0; }
.pp-hero-blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(50px) brightness(0.15) saturate(1.4); }
.pp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,20,0.5) 0%, rgba(10,10,20,0.8) 100%); }

/* Business Card */
.pp-bcard { position: relative; z-index: 1; background: linear-gradient(170deg, rgba(20,20,32,0.95), rgba(12,12,18,0.98)); border: 1px solid rgba(255,255,255,0.06); border-radius: 24px; padding: 40px; overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,0.5); }
.pp-bcard-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.pp-bcard-corner { position: absolute; width: 20px; height: 20px; border-color: rgba(201,168,76,0.15); border-style: solid; border-width: 0; }
.pp-bcard-corner-tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; border-radius: 0 6px 0 0; }
.pp-bcard-corner-bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 6px; }

/* Top section */
.pp-bcard-top { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.pp-avatar-wrap { position: relative; flex-shrink: 0; width: 106px; height: 106px; display: flex; align-items: center; justify-content: center; }
.pp-avatar-img, .pp-avatar-initials { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.1); }
.pp-avatar-initials { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05)); color: var(--accent); font-size: 2rem; font-weight: 700; }
.pp-avatar-ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid; opacity: 0.5; }
.pp-avatar-status { position: absolute; bottom: 8px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #44b37f; border: 3px solid rgba(20,20,32,0.95); z-index: 2; }

.pp-identity { flex: 1; }
.pp-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.pp-role-title { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 10px; }
.pp-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp-role { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 14px; border-radius: 100px; }
.pp-role-admin { background: rgba(201,168,76,0.12); color: var(--accent); border: 1px solid rgba(201,168,76,0.25); }
.pp-role-agent { background: rgba(96,165,250,0.12); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.pp-role-player { background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.1); }

/* Agency branding */
.pp-bcard-agency { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.pp-agency-logo { height: 20px; width: auto; opacity: 0.4; }
.pp-bcard-agency span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.25); }

.pp-bcard-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); margin-bottom: 24px; }

/* Info grid */
.pp-bcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pp-bcard-item { display: flex; align-items: flex-start; gap: 10px; }
.pp-bcard-item svg { flex-shrink: 0; margin-top: 2px; }
.pp-item-label { display: block; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 2px; }
.pp-item-value { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }

/* Footer */
.pp-bcard-footer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.04); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; color: rgba(255,255,255,0.15); }

@media (max-width: 640px) {
  .pp-bcard { padding: 28px 20px; }
  .pp-bcard-top { flex-direction: column; text-align: center; }
  .pp-badges { justify-content: center; }
  .pp-bcard-agency { justify-content: center; }
  .pp-bcard-grid { grid-template-columns: 1fr; }
  .pp-avatar-img, .pp-avatar-initials { width: 80px; height: 80px; }
  .pp-name { font-size: 1.3rem; }
}

/* Clickable username link in sidebar */
.panel-user-name--link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-user-name--link:hover {
  color: var(--accent);
}

/* Clickable admin sidebar header */
.panel-sidebar-header--clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.panel-sidebar-header--clickable:hover {
  background: rgba(255,255,255,0.03);
}

@media (max-width: 600px) {
  .public-profile-content { padding: 0 20px 28px; }
  .public-profile-avatar { width: 90px; height: 90px; }
  .public-profile-name { font-size: 1.3rem; }
  .public-profile-banner { height: 120px; }
}

/* ============================================
   RECRUITMENT PAGE
   ============================================ */

.recruit-page { overflow: hidden; }
.recruit-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.recruit-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(201,168,76,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 60%, rgba(201,168,76,0.08) 0%, transparent 50%),
              var(--bg);
}
.recruit-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(9,9,15,0.6) 100%);
}
.recruit-hero-grid {
  position: absolute;
  inset: -50%;
  background: repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(201,168,76,0.03) 60px, rgba(201,168,76,0.03) 61px),
              repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(201,168,76,0.03) 60px, rgba(201,168,76,0.03) 61px);
  animation: recruitGridDrift 40s linear infinite;
}
@keyframes recruitGridDrift { 0% { transform: translate(0,0); } 100% { transform: translate(60px,60px); } }

.recruit-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: recruitOrbFloat 14s ease-in-out infinite;
}
.recruit-hero-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,168,76,0.2), transparent 70%); top: -10%; left: -8%; animation-duration: 16s; }
.recruit-hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(201,168,76,0.12), transparent 70%); bottom: -15%; right: -5%; animation-duration: 20s; animation-delay: -7s; }
.recruit-hero-orb-3 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(201,168,76,0.1), transparent 70%); top: 40%; left: 55%; animation-duration: 12s; animation-delay: -3s; }
@keyframes recruitOrbFloat { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(25px,-20px) scale(1.06); } 66% { transform: translate(-15px,20px) scale(0.94); } }

.recruit-sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: recruitSparkle 4s ease-in-out infinite;
}
.recruit-sparkle-1 { top: 15%; left: 10%; animation-delay: 0s; }
.recruit-sparkle-2 { top: 25%; right: 15%; animation-delay: 0.7s; }
.recruit-sparkle-3 { bottom: 30%; left: 20%; animation-delay: 1.4s; }
.recruit-sparkle-4 { bottom: 20%; right: 25%; animation-delay: 2.1s; }
.recruit-sparkle-5 { top: 40%; left: 5%; animation-delay: 2.8s; }
.recruit-sparkle-6 { top: 60%; right: 8%; animation-delay: 3.5s; }
@keyframes recruitSparkle { 0%, 100% { opacity: 0; transform: scale(0); } 50% { opacity: 0.8; transform: scale(1); } }

.recruit-float {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  animation: recruitFloat 18s ease-in-out infinite;
  pointer-events: none;
}
.recruit-float-1 { top: 18%; left: 8%; animation-delay: 0s; animation-duration: 20s; }
.recruit-float-2 { top: 70%; left: 15%; animation-delay: -5s; animation-duration: 22s; }
.recruit-float-3 { top: 25%; right: 10%; animation-delay: -10s; animation-duration: 18s; }
.recruit-float-4 { bottom: 25%; right: 15%; animation-delay: -3s; animation-duration: 24s; }
@keyframes recruitFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, -25px) rotate(10deg); }
  50% { transform: translate(-10px, -40px) rotate(-5deg); }
  75% { transform: translate(20px, -15px) rotate(8deg); }
}

.recruit-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}
.recruit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: recruitFadeUp 0.7s cubic-bezier(0.23,1,0.32,1) both;
}
.recruit-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: recruitDotPulse 2s ease-in-out infinite;
}
@keyframes recruitDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}
.recruit-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: recruitFadeUp 0.7s cubic-bezier(0.23,1,0.32,1) 0.1s both;
}
.recruit-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 36px;
  animation: recruitFadeUp 0.7s cubic-bezier(0.23,1,0.32,1) 0.2s both;
}
.recruit-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: recruitFadeUp 0.7s cubic-bezier(0.23,1,0.32,1) 0.35s both;
}
@keyframes recruitFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.recruit-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
  cursor: pointer;
  letter-spacing: 0.3px;
}
.recruit-cta-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1a2e;
  box-shadow: 0 4px 24px rgba(201,168,76,0.3);
  position: relative;
  overflow: hidden;
}
.recruit-cta-btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: recruitBtnShimmer 3.5s ease-in-out infinite;
}
@keyframes recruitBtnShimmer { 0%, 100% { left: -60%; } 50% { left: 130%; } }
.recruit-cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(201,168,76,0.45);
}
.recruit-cta-btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.recruit-cta-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.2);
  transform: translateY(-2px);
  color: var(--accent-light);
}

/* ============================================
   VIP INVITATION CARD
   ============================================ */
.vip-invitation-section {
  padding: 60px 0 40px;
  position: relative;
}

/* --- The Card --- */
.vip-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(12,12,18,0.92);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Animated gradient border - uses a pseudo-element trick for universal support */
.vip-card-border {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.vip-card-border::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    rgba(201,168,76,0.7),
    rgba(201,168,76,0.0) 25%,
    rgba(201,168,76,0.7) 50%,
    rgba(201,168,76,0.0) 75%,
    rgba(201,168,76,0.7)
  );
  animation: vipBorderSpin 4s linear infinite;
}
.vip-card-border::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 24px;
  background: rgba(12,12,18,0.97);
}
@keyframes vipBorderSpin {
  to { transform: rotate(360deg); }
}

/* Noise texture overlay */
.vip-card-noise {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Corner ornaments */
.vip-card-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 2;
}
.vip-card-corner::before,
.vip-card-corner::after {
  content: '';
  position: absolute;
  background: rgba(201,168,76,0.35);
}
.vip-card-corner::before { width: 16px; height: 1px; }
.vip-card-corner::after { width: 1px; height: 16px; }
.vip-card-corner-tl { top: 16px; left: 16px; }
.vip-card-corner-tl::before { top: 0; left: 0; }
.vip-card-corner-tl::after { top: 0; left: 0; }
.vip-card-corner-tr { top: 16px; right: 16px; }
.vip-card-corner-tr::before { top: 0; right: 0; }
.vip-card-corner-tr::after { top: 0; right: 0; }
.vip-card-corner-bl { bottom: 16px; left: 16px; }
.vip-card-corner-bl::before { bottom: 0; left: 0; }
.vip-card-corner-bl::after { bottom: 0; left: 0; }
.vip-card-corner-br { bottom: 16px; right: 16px; }
.vip-card-corner-br::before { bottom: 0; right: 0; }
.vip-card-corner-br::after { bottom: 0; right: 0; }

/* --- Card Header (ticket top) --- */
.vip-header,
.vip-perforation,
.vip-title-block,
.vip-section,
.vip-footer {
  position: relative;
  z-index: 1;
}
.vip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 36px 20px;
}
.vip-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vip-seal {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
}
.vip-agency-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.01em;
}
.vip-agency-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.vip-header-right {
  text-align: right;
}
.vip-invite-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.vip-invite-type {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #c9a84c, #e8d48b, #c9a84c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* --- Perforated line --- */
.vip-perforation {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0;
  margin: 0 -2px;
}
.vip-perforation-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg, #0a0a0f);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.vip-perforation-left { margin-left: -12px; }
.vip-perforation-right { margin-right: -12px; }
.vip-perforation-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(201,168,76,0.25) 0,
    rgba(201,168,76,0.25) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* --- Main Title Block --- */
.vip-title-block {
  text-align: center;
  padding: 28px 36px 32px;
}
.vip-position-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 100px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.18);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #c9a84c;
  margin-bottom: 16px;
}
.vip-position-title {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff, #c9a84c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vip-position-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.vip-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.vip-meta-tag svg { color: rgba(201,168,76,0.6); }
.vip-meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
}

/* --- Sections --- */
.vip-section {
  padding: 0 36px 32px;
}
.vip-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}
.vip-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  font-size: 0.65rem;
  font-weight: 800;
  color: #c9a84c;
  letter-spacing: 0;
}

/* --- Timeline (Missions) --- */
.vip-timeline {
  position: relative;
  padding-left: 28px;
}
.vip-timeline-line {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(201,168,76,0.4), rgba(201,168,76,0.05));
  border-radius: 2px;
}
.vip-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  position: relative;
}
.vip-timeline-step:last-child { padding-bottom: 0; }
.vip-step-node {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-left: -28px;
}
.vip-step-node-inner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  border: 2px solid rgba(201,168,76,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
  position: relative;
  z-index: 2;
}
.vip-step-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.15);
  animation: vipPulse 3s ease-in-out infinite;
}
.vip-timeline-step:nth-child(2) .vip-step-pulse { animation-delay: -1s; }
.vip-timeline-step:nth-child(3) .vip-step-pulse { animation-delay: -2s; }
@keyframes vipPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0; }
}
.vip-step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 3px;
  line-height: 1.8;
}
.vip-step-content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --- Traits Grid (Profile) --- */
.vip-traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vip-trait {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.3s, background 0.3s;
}
.vip-trait:hover {
  border-color: rgba(201,168,76,0.15);
  background: rgba(201,168,76,0.04);
}
.vip-trait:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
}
.vip-trait-check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
  flex-shrink: 0;
}
.vip-trait span {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* --- Perks (Conditions) --- */
.vip-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vip-perk {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.vip-perk:hover {
  border-color: rgba(201,168,76,0.15);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.vip-perk-featured {
  background: rgba(201,168,76,0.04);
  border-color: rgba(201,168,76,0.12);
}
.vip-perk-shimmer {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.08), transparent);
  transform: skewX(-20deg);
  animation: vipShimmer 5s ease-in-out infinite;
  pointer-events: none;
}
.vip-perk:nth-child(2) .vip-perk-shimmer { animation-delay: -2.5s; }
@keyframes vipShimmer {
  0%, 100% { left: -60%; }
  50% { left: 130%; }
}
.vip-perk-icon {
  color: #c9a84c;
  margin-bottom: 12px;
  opacity: 0.8;
}
.vip-perk-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.vip-perk-featured .vip-perk-value {
  background: linear-gradient(135deg, #e8d48b, #c9a84c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vip-perk-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Card Footer --- */
.vip-footer {
  padding: 0 36px 28px;
}
.vip-footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.15), transparent);
  margin-bottom: 20px;
}
.vip-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.vip-barcode {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  opacity: 0.2;
}
.vip-barcode-bar {
  width: 2px;
  background: #c9a84c;
  border-radius: 1px;
}
.vip-footer-text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.25);
  font-family: monospace;
}

/* --- VIP Responsive --- */
@media (max-width: 900px) {
  .recruit-hero-content { padding: 100px 0 60px; }
  .recruit-hero-title { font-size: clamp(2rem, 8vw, 3rem); }
}
@media (max-width: 600px) {
  .recruit-hero-content { padding: 90px 0 50px; }
  .recruit-hero-actions { flex-direction: column; width: 100%; }
  .recruit-cta-btn { width: 100%; justify-content: center; }
  .vip-card { border-radius: 18px; }
  .vip-header { padding: 20px 20px 16px; flex-wrap: wrap; gap: 12px; }
  .vip-title-block { padding: 20px 20px 24px; }
  .vip-position-title { font-size: 1.8rem; }
  .vip-section { padding: 0 20px 24px; }
  .vip-traits-grid { grid-template-columns: 1fr; }
  .vip-trait:last-child:nth-child(odd) { max-width: 100%; }
  .vip-perks { grid-template-columns: 1fr; }
  .vip-footer { padding: 0 20px 20px; }
  .vip-position-meta { flex-direction: column; gap: 8px; }
  .vip-meta-divider { display: none; }
}

/* ============================================
   RECRUITMENT CTA SECTION
   ============================================ */

.rj-cta {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f23 100%);
  overflow: hidden;
}

.rj-cta-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rj-cta-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.rj-cta-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent, #c9a84c);
  top: -100px;
  right: -100px;
}

.rj-cta-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent, #c9a84c);
  bottom: -80px;
  left: -80px;
}

.rj-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.rj-cta-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent, #c9a84c);
  margin-bottom: 20px;
  padding: 6px 20px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 100px;
  background: rgba(201,168,76,0.06);
}

.rj-cta-headline {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.rj-cta-headline-accent {
  color: var(--accent, #c9a84c);
}

.rj-cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 36px;
}

.rj-apply-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rj-apply-btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  border-radius: inherit;
  z-index: 0;
  transition: opacity 0.25s ease;
}

.rj-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88,101,242,0.35);
}

.rj-apply-btn:hover .rj-apply-btn-bg {
  opacity: 0.9;
}

.rj-apply-btn-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .rj-cta { padding: 60px 0; }
  .rj-cta-headline { font-size: 1.8rem; }
  .rj-cta-sub { font-size: 0.95rem; }
  .rj-apply-btn { padding: 14px 28px; font-size: 0.9rem; }
}

/* ============================================
   ADMIN PANEL IMPROVEMENTS
   ============================================ */

/* --- Sidebar Role Badge --- */
.panel-sidebar-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.panel-sidebar-role-badge--admin {
  background: rgba(201,168,76,0.15);
  color: #c9a84c;
  border: 1px solid rgba(201,168,76,0.25);
}
.panel-sidebar-role-badge--agent {
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.2);
}
.panel-sidebar-role-badge--viewer {
  background: rgba(139,139,158,0.1);
  color: #8b8b9e;
  border: 1px solid rgba(139,139,158,0.15);
}
.panel-sidebar-role-badge--player {
  background: rgba(139,139,158,0.1);
  color: #8b8b9e;
  border: 1px solid rgba(139,139,158,0.15);
}

/* --- Quick actions bar in sidebar --- */
.panel-quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 16px 6px;
  padding: 0;
}
.panel-quick-actions__sep {
  flex: 1;
}
.panel-quick-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #8b8b9e;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.panel-quick-action:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.25);
  color: var(--accent);
}
.panel-quick-action[data-tooltip] {
  position: relative;
}
.panel-quick-action[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: #1a1a28;
  color: #e0e0e8;
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
  border: 1px solid rgba(201,168,76,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.panel-quick-action[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Sidebar avatar improvements --- */
.panel-avatar-wrapper {
  flex-shrink: 0;
}
.panel-sidebar-header .panel-avatar-img {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  border: 2px solid rgba(201,168,76,0.2);
}
.panel-sidebar-header--clickable:hover .panel-avatar-img {
  border-color: rgba(201,168,76,0.5);
}
.panel-sidebar-header--clickable:hover .panel-user-name {
  color: var(--accent);
}

/* --- Premium sidebar hero --- */
.panel-sidebar-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px 20px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  background: linear-gradient(180deg, rgba(201,168,76,0.04) 0%, transparent 100%);
  transition: all 0.3s ease;
}
.panel-sidebar-hero:hover {
  background: linear-gradient(180deg, rgba(201,168,76,0.08) 0%, transparent 100%);
}
.panel-sidebar-hero__glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}
.panel-sidebar-hero:hover .panel-sidebar-hero__glow {
  opacity: 1.5;
}
.panel-sidebar-hero__avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.panel-sidebar-hero__avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.3);
  box-shadow: 0 4px 20px rgba(201,168,76,0.15), 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.panel-sidebar-hero:hover .panel-sidebar-hero__avatar img {
  border-color: rgba(201,168,76,0.6);
  box-shadow: 0 4px 24px rgba(201,168,76,0.25), 0 2px 8px rgba(0,0,0,0.3);
}
.panel-sidebar-hero__initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05));
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  border: 2px solid rgba(201,168,76,0.3);
}
.panel-sidebar-hero__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.15);
  animation: hero-ring-pulse 3s ease-in-out infinite;
}
@keyframes hero-ring-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.03); }
}
.panel-sidebar-hero__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.panel-sidebar-hero__welcome {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  opacity: 0.7;
}
.panel-sidebar-hero__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  transition: color 0.2s;
}
.panel-sidebar-hero:hover .panel-sidebar-hero__name {
  color: var(--accent);
}
.panel-sidebar-hero__sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- User Card v2 Fixes --- */
/* Fix avatar image border-radius to match container */
.user-card-v2__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}
/* Avatar ring decoration */
.user-card-v2__avatar-ring {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  pointer-events: none;
}
.user-card-v2__avatar--admin .user-card-v2__avatar-ring {
  border: 2px solid rgba(201,168,76,0.3);
}
.user-card-v2__avatar--agent .user-card-v2__avatar-ring {
  border: 2px solid rgba(96,165,250,0.25);
}
.user-card-v2__avatar--player .user-card-v2__avatar-ring {
  border: 2px solid rgba(139,139,158,0.15);
}
/* Fix user card header alignment */
.user-card-v2__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 16px;
}
/* Fix badge positioning on smaller cards */
.user-card-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}
/* Ensure action buttons are consistently sized */
.user-card-v2__action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  flex-shrink: 0;
}
/* Footer alignment fix */
.user-card-v2__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01);
  gap: 12px;
}
.user-card-v2__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
/* Grid field fix for third column spanning */
.user-card-v2__grid .user-card-v2__field:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* --- Settings Page — Constrained Width --- */
.settings-page {
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.settings-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.settings-card-body {
  padding: 28px 32px;
}
.settings-card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01);
}
/* Settings contact grid: 2 columns */
.settings-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Settings field row: horizontal layout */
.settings-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
/* Subsection labels */
.settings-subsection {
  margin-bottom: 8px;
}
.settings-subsection-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.settings-subsection-label svg {
  opacity: 0.6;
}
/* Divider */
.settings-divider {
  height: 1px;
  background: rgba(255,255,255,0.04);
  margin: 24px 0;
}
/* Save button states */
.settings-save-btn--saving {
  opacity: 0.7;
  pointer-events: none;
}
.settings-save-btn--saved {
  background: #4ade80 !important;
  border-color: #4ade80 !important;
  color: #0a0a12 !important;
}
@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-icon {
  animation: spin-icon 0.8s linear infinite;
}

/* Toggle switch cards improvement */
.settings-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.settings-toggle-card:hover {
  border-color: rgba(255,255,255,0.08);
}
.settings-toggle-card--warning {
  border-color: rgba(251,191,36,0.1);
}
.settings-toggle-card--warning:hover {
  border-color: rgba(251,191,36,0.2);
}
.settings-toggle-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.settings-toggle-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-toggle-icon--green {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
}
.settings-toggle-icon--orange {
  background: rgba(251,191,36,0.1);
  color: #fbbf24;
}
.settings-toggle-icon--accent {
  background: rgba(201,168,76,0.1);
  color: #c9a84c;
}
.settings-toggle-content {
  flex: 1;
  min-width: 0;
}
.settings-toggle-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-white);
  margin-bottom: 3px;
}
.settings-toggle-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.settings-maintenance-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(251,191,36,0.08);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Toggle switch refined */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  transition: all 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* Duplicate activity filter overrides removed — styles consolidated above */

/* --- Settings responsive --- */
@media (max-width: 768px) {
  .settings-contact-grid { grid-template-columns: 1fr; }
  .settings-field-row { grid-template-columns: 1fr; }
  .settings-card-body { padding: 20px 18px; }
  .settings-card-footer { padding: 14px 18px; }
  .settings-toggle-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .settings-toggle-card .toggle-switch { align-self: flex-end; }
  .activity-filters select { min-width: 100%; }
  .activity-filters-row { flex-direction: column; }
}

/* =============================================================
   ADMIN PANEL IMPROVEMENTS — Users, Settings, Messages
   ============================================================= */

/* --- SETTINGS PAGE: Reasonable width (overrides removed) --- */
.settings-card-header {
  padding: 26px 32px;
}
.settings-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.settings-card-desc {
  font-size: 0.82rem;
  margin-top: 4px;
}
.settings-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.settings-card-body {
  padding: 30px 32px;
}

/* --- USERS TAB: Card improvements --- */

/* Grid: ensure consistent card sizing */
.users-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

/* Card: consistent height and alignment */
.user-card-v2 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.user-card-v2__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 16px;
  flex-wrap: nowrap;
}
.user-card-v2__identity {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.user-card-v2__grid {
  flex: 1;
}
.user-card-v2__footer {
  margin-top: auto;
}

/* Role badges: distinct colors */
.user-card-v2__badge--admin {
  background: rgba(201,168,76,0.15);
  color: #e8d48b;
  border: 1px solid rgba(201,168,76,0.3);
  box-shadow: 0 0 12px rgba(201,168,76,0.08);
}
.user-card-v2__badge--agent {
  background: rgba(96,165,250,0.15);
  color: #93bbfc;
  border: 1px solid rgba(96,165,250,0.3);
  box-shadow: 0 0 12px rgba(96,165,250,0.08);
}
.user-card-v2__badge--player {
  background: rgba(139,139,158,0.12);
  color: #a5a5b8;
  border: 1px solid rgba(139,139,158,0.2);
}

/* Action buttons: visible base colors (not just hover) */
.user-card-v2__action-btn--message {
  color: #60a5fa;
  border-color: rgba(96,165,250,0.2);
  background: rgba(96,165,250,0.06);
}
.user-card-v2__action-btn--message:hover {
  color: #93bbfc;
  border-color: rgba(96,165,250,0.4);
  background: rgba(96,165,250,0.12);
  box-shadow: 0 0 12px rgba(96,165,250,0.15);
}
.user-card-v2__action-btn--edit {
  color: #c9a84c;
  border-color: rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.06);
}
.user-card-v2__action-btn--edit:hover {
  color: #e8d48b;
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.12);
  box-shadow: 0 0 12px rgba(201,168,76,0.15);
}
.user-card-v2__action-btn--delete {
  color: #ef4444;
  border-color: rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.06);
}
.user-card-v2__action-btn--delete:hover {
  color: #f87171;
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.12);
  box-shadow: 0 0 12px rgba(239,68,68,0.15);
}

/* Search bar enhancement */
.users-search-input {
  padding: 12px 14px 12px 42px;
  font-size: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.users-search-input:focus {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

/* Role filter buttons: enhanced states */
.users-role-filter {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.users-role-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  font-size: 0.7rem;
  font-weight: 700;
}
.users-role-filter.active .users-role-count {
  background: rgba(255,255,255,0.12);
}
.users-role-filter--admin.active .users-role-count {
  background: rgba(201,168,76,0.2);
  color: #c9a84c;
}
.users-role-filter--agent.active .users-role-count {
  background: rgba(96,165,250,0.2);
  color: #60a5fa;
}
.users-role-filter--player.active .users-role-count {
  background: rgba(139,139,158,0.15);
  color: #8b8b9e;
}

/* Stats bar: refined look */
.users-stats-bar {
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Field grid: ensure 3rd field spans full width cleanly */
.user-card-v2__grid {
  grid-template-columns: 1fr 1fr;
}
.user-card-v2__field {
  padding: 14px 16px;
}
.user-card-v2__field-icon {
  opacity: 0.55;
}
.user-card-v2__field-label {
  font-size: 0.7rem;
  margin-bottom: 4px;
}
.user-card-v2__field-value {
  font-size: 0.84rem;
}

/* --- MESSAGES PANEL: Compose button styling --- */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

/* Compose modal improvements */
.compose-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compose-modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compose-modal-title {
  font-weight: 800;
  font-size: 1.35rem;
}
.compose-recipient-display {
  padding: 16px 18px;
  border-radius: 14px;
  transition: border-color 0.2s;
}
.compose-recipient-display:hover {
  border-color: rgba(201,168,76,0.25);
}
.compose-recipient-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.05rem;
}

/* Webhook status badges */
.settings-webhook-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}
.settings-webhook-status--active {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.2);
}
.settings-webhook-status--inactive {
  background: rgba(139,139,158,0.08);
  color: #8b8b9e;
  border: 1px solid rgba(139,139,158,0.15);
}
.settings-webhook-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.settings-webhook-status--active .settings-webhook-status-dot {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,0.5);
}
.settings-webhook-status--inactive .settings-webhook-status-dot {
  background: #8b8b9e;
}

/* Status badge in settings header */
.settings-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--badge-color) 12%, transparent);
  color: var(--badge-color);
  border: 1px solid color-mix(in srgb, var(--badge-color) 25%, transparent);
}
.settings-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Webhook hint */
.settings-webhook-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Test button styling */
.settings-test-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(114,137,218,0.1);
  border: 1px solid rgba(114,137,218,0.2);
  color: #7289da;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.settings-test-btn:hover {
  background: rgba(114,137,218,0.18);
  border-color: rgba(114,137,218,0.35);
}
.settings-test-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}
.settings-test-btn.loading .settings-test-icon {
  animation: spin-icon 0.8s linear infinite;
}

/* Announcement type options */
.settings-announce-types {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.settings-announce-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.settings-announce-type-option:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.settings-announce-type-option.active {
  background: color-mix(in srgb, var(--type-color) 10%, transparent);
  border-color: color-mix(in srgb, var(--type-color) 30%, transparent);
  color: var(--type-color);
}
.settings-announce-type-option input[type="radio"] {
  display: none;
}
.settings-announce-type-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Announcement preview */
.settings-announce-preview-wrap {
  margin-top: 20px;
}
.settings-announce-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.settings-announce-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--preview-color) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--preview-color) 20%, transparent);
  color: var(--preview-color);
  font-size: 0.88rem;
  font-weight: 500;
}
.settings-announce-preview-icon {
  flex-shrink: 0;
  opacity: 0.8;
}
.settings-announce-preview-text {
  flex: 1;
}

/* ============ PERMISSIONS ============ */

/* Permission section divider */
.perm-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  margin: 20px 0;
}

/* Permission section */
.perm-section {
  margin-bottom: 8px;
}

/* Permission grid */
.perm-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Permission toggle row */
.perm-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.perm-toggle:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.perm-toggle--active {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.15);
}
.perm-toggle input[type="checkbox"] {
  display: none;
}
.perm-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.perm-toggle--active .perm-toggle__icon {
  background: rgba(201,168,76,0.12);
  color: var(--accent);
}
.perm-toggle__label {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.perm-toggle--active .perm-toggle__label {
  color: var(--text-white);
}

/* Toggle switch */
.perm-toggle__switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.perm-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.25s ease;
}
.perm-toggle--active .perm-toggle__switch {
  background: var(--accent);
}
.perm-toggle--active .perm-toggle__switch::after {
  left: 19px;
  background: #fff;
}

/* Role permissions panel */
.role-perm-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.1);
  margin-bottom: 24px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.role-perm-info svg { flex-shrink: 0; margin-top: 2px; }

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

.role-perm-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.role-perm-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.role-perm-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.role-perm-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-perm-card__info { flex: 1; }
.role-perm-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
  padding: 0;
  border: none;
}
.role-perm-card__count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

.role-perm-card__perms {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role-perm-card__footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.role-perm-card__footer .btn-sm {
  font-size: 0.76rem;
  padding: 5px 12px;
}

/* Favorites remove button */
.fav-card-wrap {
  position: relative;
}
.fav-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.fav-card-wrap:hover .fav-remove-btn {
  opacity: 1;
}
.fav-remove-btn:hover {
  background: rgba(248,113,113,0.2);
  border-color: rgba(248,113,113,0.4);
  transform: scale(1.1);
}
.fav-remove-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.fav-remove-btn:hover[data-tooltip]::after {
  opacity: 1;
}

/* ============ Messaging System ============ */
.msg-layout {
  display: flex;
  gap: 0;
  height: 560px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* Message list (left panel) */
.msg-list {
  width: 320px;
  min-width: 280px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: rgba(0,0,0,0.15);
}
.msg-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  position: relative;
}
.msg-item:hover {
  background: rgba(255,255,255,0.04);
}
.msg-item--active {
  background: rgba(201,168,76,0.08) !important;
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}
.msg-item--unread .msg-item-subject {
  color: var(--text-white);
  font-weight: 700;
}
.msg-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.msg-item-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.msg-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.msg-item-subject {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-item-subject-line {
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-item-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 8px;
}
.msg-item-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-item-dot {
  position: absolute;
  top: 18px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}
.msg-item-delete {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #ef4444;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-item:hover .msg-item-delete { opacity: 1; }
.msg-item-delete:hover { background: rgba(239,68,68,0.25); border-color: rgba(239,68,68,0.4); }

/* Thread panel (right) */
.msg-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.msg-thread-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.msg-thread-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.1);
}
.msg-thread-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.msg-thread-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-white);
  font-weight: 600;
}
.msg-thread-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.msg-thread-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.msg-thread-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Message rows with avatars */
.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.msg-row--self {
  flex-direction: row-reverse;
}
.msg-row--client {
  flex-direction: row;
}
.msg-row--consecutive {
  margin-top: -6px;
}
.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(201,168,76,0.12);
  border: 1.5px solid rgba(201,168,76,0.25);
  margin-bottom: 2px;
}
.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.msg-avatar span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}
.msg-avatar--agent {
  background: rgba(96,165,250,0.12);
  border-color: rgba(96,165,250,0.25);
}
.msg-avatar--agent span {
  color: #60a5fa;
}
.msg-avatar-spacer {
  width: 28px;
  flex-shrink: 0;
}

/* Chat bubbles */
.msg-bubble {
  max-width: 65%;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  display: inline-block;
}
.msg-bubble p {
  margin: 0;
  white-space: pre-line;
  color: var(--text-secondary);
  word-break: break-word;
}
.msg-bubble-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 2px;
  gap: 6px;
  white-space: nowrap;
}
.msg-bubble-name {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-white);
  white-space: nowrap;
}
.msg-bubble-role {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(96,165,250,0.15);
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.msg-bubble-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Self bubble (player's own message) */
.msg-bubble--self {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.15);
  border-bottom-right-radius: 4px;
}

/* Client bubble (in admin view) */
.msg-bubble--client {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.12);
  border-bottom-left-radius: 4px;
}

/* Agent/admin bubble */
.msg-bubble--agent {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 4px;
}

/* Waiting indicator */
.msg-thread-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Reply bar */
.msg-thread-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.msg-thread-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg-thread-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 20px;
}

.msg-reply-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}
.msg-reply-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px;
}
.msg-emoji-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.msg-emoji-toggle:hover {
  color: var(--accent);
  background: rgba(201,168,76,0.1);
}
.msg-emoji-picker {
  border-top: 1px solid var(--border);
  padding: 8px 12px 10px;
  background: rgba(0,0,0,0.1);
}
.msg-emoji-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  overflow-x: auto;
}
.msg-emoji-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.msg-emoji-tab:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.06);
}
.msg-emoji-tab.active {
  color: var(--accent);
  background: rgba(201,168,76,0.12);
}
.msg-emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-height: 120px;
  overflow-y: auto;
}
.msg-emoji-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background 0.12s;
  line-height: 1;
}
.msg-emoji-btn:hover {
  background: rgba(255,255,255,0.1);
}
.msg-reply-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  color: var(--text-white);
  font-size: 0.88rem;
  font-family: inherit;
  resize: none;
  max-height: 100px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.msg-reply-input:focus {
  border-color: rgba(201,168,76,0.4);
  background: rgba(255,255,255,0.08);
}
.msg-reply-input::placeholder {
  color: var(--text-muted);
}
.msg-reply-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--or), var(--sable));
  border: none;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.msg-reply-send:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(201,168,76,0.4);
}

/* Responsive messaging */
@media (max-width: 768px) {
  .msg-layout {
    flex-direction: column;
    height: auto;
  }
  .msg-list {
    width: 100%;
    min-width: 0;
    max-height: 250px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .msg-thread {
    min-height: 350px;
  }
  .msg-bubble { max-width: 90%; }
}

/* ============ Messaging Improvements ============ */

/* Date separator between days */
.msg-date-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  user-select: none;
}
.msg-date-separator::before,
.msg-date-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.msg-date-separator span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Read status */
.msg-read-status {
  font-size: 0.65rem;
  color: var(--accent);
  margin-top: 2px;
  text-align: right;
  opacity: 0.85;
}

/* Send animation */
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-row--new { animation: msgSlideIn 0.3s ease-out; }

/* Sidebar unread badge */
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 6px;
  line-height: 1;
}
.sidebar-badge:empty { display: none; }

/* Delete reply button */
.msg-bubble-wrapper { position: relative; padding-bottom: 2px; flex: 1; min-width: 0; }
.msg-row--self .msg-bubble-wrapper { text-align: right; }
.msg-row--client .msg-bubble-wrapper { text-align: left; }
.msg-delete-btn {
  position: absolute;
  top: 4px;
  right: -28px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.2);
  color: #ef4444;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.msg-row--self .msg-delete-btn { right: auto; left: -28px; }
.msg-row:hover .msg-delete-btn { opacity: 1; }
.msg-delete-btn:hover { background: rgba(239,68,68,0.25); }

/* Online status dots */
.msg-online-dot,
.msg-offline-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.msg-online-dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.5);
  animation: onlinePulse 2s ease-in-out infinite;
}
.msg-offline-dot { background: #6b7280; }
@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 4px rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 10px rgba(34,197,94,0.7); }
}

/* Reactions */
.msg-reactions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
  z-index: 2;
}
.msg-reaction {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
  line-height: 1.3;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.msg-reaction:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.25);
}
.msg-reaction--active {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.3);
}
.msg-reaction-count {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
}
.msg-bubble-wrapper:has(.msg-reactions:not(:empty)) {
  margin-bottom: 2px;
}
.msg-reaction-add,
.msg-reaction--add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  padding: 0;
  opacity: 0.4;
}
.msg-row:hover .msg-reaction-add,
.msg-row:hover .msg-reaction--add { opacity: 1; }
.msg-reaction-add:hover,
.msg-reaction--add:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.3);
  color: var(--accent);
  transform: scale(1.1);
}
.msg-reaction-picker {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
}
.msg-row--client .msg-reaction-picker { right: auto; left: 0; }
.msg-reaction-picker button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.12s;
  line-height: 1;
}
.msg-reaction-picker button:hover {
  background: rgba(255,255,255,0.1);
}

.msg-quick-reactions {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
}

/* New message button in dashboard header */
.msg-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--or), var(--sable));
  color: #111;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.msg-new-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}

/* Responsive for new improvements */
@media (max-width: 768px) {
  .users-grid-v2 { grid-template-columns: 1fr; }
  .user-card-v2__header { flex-wrap: wrap; }
  .user-card-v2__badge { margin-top: 4px; }
  .settings-announce-types { flex-direction: column; }
  .role-perm-grid { grid-template-columns: 1fr; }
  .panel-header { flex-direction: column; align-items: flex-start; }
  .perm-grid { gap: 4px; }
  .perm-toggle { padding: 8px 10px; }
}

/* ============================================
   INTERACTIVE MAP PAGE
   ============================================ */
.map-page {
  display: flex;
  height: calc(100vh - var(--nav-height));
  margin-top: var(--nav-height);
  overflow: hidden;
}

.map-sidebar {
  width: 380px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.map-sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.map-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 4px;
}

.map-sidebar-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.map-filters {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-filter-group .form-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.map-filter-group .form-select {
  padding: 10px 14px;
  padding-right: 40px;
  font-size: 0.82rem;
  width: 100%;
}

.map-properties-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.map-property-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 4px;
}

.map-property-item:hover {
  background: rgba(255,255,255,0.05);
}

.map-property-img {
  width: 64px;
  height: 50px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
}

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

.map-property-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.map-property-title {
  font-size: 0.82rem;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-property-district {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.map-container {
  flex: 1;
  background: #0a0a12;
  position: relative;
  overflow: hidden;
}

/* Leaflet overrides for dark theme */
#leafletMap { background: #0a0a12; }
#leafletMap .leaflet-control-zoom { border: none; }
#leafletMap .leaflet-control-zoom a {
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--text-white);
  width: 36px; height: 36px;
  line-height: 36px;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.15s;
}
#leafletMap .leaflet-control-zoom a:hover { background: rgba(201,168,76,0.2); border-color: var(--accent-dim) !important; }

/* Leaflet marker */
.map-marker-leaflet {
  background: none !important;
  border: none !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  transition: transform 0.15s, filter 0.15s;
}
.map-marker-leaflet:hover, .map-marker-leaflet--active {
  filter: drop-shadow(0 2px 6px rgba(201,168,76,0.7));
  transform: scale(1.2);
}

/* Leaflet popup */
.map-popup-container .leaflet-popup-content-wrapper {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  padding: 0;
}
.map-popup-container .leaflet-popup-content { margin: 0; width: 240px !important; }
.map-popup-container .leaflet-popup-tip { background: var(--bg-card); }

.map-popup-img {
  width: 100%;
  height: 130px;
  background-size: cover;
  background-position: center;
}
.map-popup-body {
  padding: 12px 14px;
}
.map-popup-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 3px;
}
.map-popup-suffix {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 2px;
}
.map-popup-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-white);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-popup-meta {
  display: flex;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.map-popup-meta span {
  padding: 2px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}
.map-popup-type--villa { border-left: 2px solid #c9a84c; }
.map-popup-type--maison { border-left: 2px solid #4ade80; }
.map-popup-type--appartement { border-left: 2px solid #60a5fa; }
.map-popup-type--penthouse { border-left: 2px solid #a78bfa; }
.map-popup-type--local_commercial { border-left: 2px solid #fb923c; }
.map-popup-type--garage { border-left: 2px solid #94a3b8; }
.map-popup-type--terrain { border-left: 2px solid #2dd4bf; }
.map-popup-btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  background: var(--accent);
  color: #0a0a12;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.map-popup-btn:hover { opacity: 0.85; }

/* Sidebar count */
.map-sidebar-count {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Sidebar property type dots */
.map-property-type-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
}
.map-type--villa { background: #c9a84c; }
.map-type--maison { background: #4ade80; }
.map-type--appartement { background: #60a5fa; }
.map-type--penthouse { background: #a78bfa; }
.map-type--local_commercial { background: #fb923c; }
.map-type--garage { background: #94a3b8; }
.map-type--terrain { background: #2dd4bf; }

.map-property-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.map-property-nomap {
  font-size: 0.65rem;
  opacity: 0.4;
}
.map-price-suffix {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 1px;
}
.map-property-premium {
  position: absolute;
  top: 4px; left: 4px;
  background: var(--accent);
  color: #0a0a12;
  font-size: 0.6rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Property detail mini-map */
.pd-minimap {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0a0a12;
}
.pd-minimap-wrapper {
  position: relative;
  transform-origin: 0 0;
  will-change: transform;
}
.pd-minimap-img {
  display: block;
  width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
.pd-minimap-marker {
  position: absolute;
  width: 18px; height: 18px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.3), 0 2px 8px rgba(0,0,0,0.5);
  z-index: 5;
  animation: minimapPulse 2s ease-out infinite;
}
@keyframes minimapPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,168,76,0.3), 0 2px 8px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(201,168,76,0.1), 0 2px 8px rgba(0,0,0,0.5); }
}
.pd-minimap-link {
  position: absolute;
  bottom: 10px; right: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: rgba(10,10,18,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 0.78rem;
  z-index: 1000;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.pd-minimap-link:hover { background: rgba(201,168,76,0.2); border-color: var(--accent-dim); }

/* Admin map picker */
.admin-map-picker {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  height: 280px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a0a12;
  cursor: crosshair;
}
.admin-map-picker-inner {
  position: relative;
  transform-origin: 0 0;
  will-change: transform;
  transition: transform 0.15s ease-out;
}
.admin-map-picker-img {
  display: block;
  width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
.admin-map-picker-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 10;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,0.6));
  pointer-events: none;
}
.admin-map-picker-controls {
  position: absolute;
  top: 8px; right: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 20;
}
.admin-map-picker-coords {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 10px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mobile responsive map */
@media (max-width: 768px) {
  .map-page {
    flex-direction: column;
    height: calc(100vh - var(--nav-height));
  }
  .map-sidebar {
    width: 100%;
    height: 280px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .map-filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .map-filter-group {
    flex: 1;
    min-width: 100px;
  }
  .map-properties-list {
    display: none;
  }
}

/* ============================================
   CREDITS (INSTALLMENT PAYMENTS)
   ============================================ */

/* Progress bar */
.credit-progress { width: 100%; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; position: relative; }
.credit-progress-fill--normal { height: 100%; background: linear-gradient(90deg, #60a5fa, #4ade80); border-radius: 99px; transition: width 0.6s cubic-bezier(.4,0,.2,1); }
.credit-progress-fill--complete { height: 100%; background: #4ade80; border-radius: 99px; transition: width 0.6s cubic-bezier(.4,0,.2,1); }
.credit-progress-fill--late { height: 100%; background: linear-gradient(90deg, #f87171, #fbbf24); border-radius: 99px; transition: width 0.6s cubic-bezier(.4,0,.2,1); }
.credit-progress-label { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 0.72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.credit-progress-label--outside { position: relative; right: auto; top: auto; transform: none; display: inline-block; margin-left: 10px; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-shadow: none; }

/* Cards grid */
.credit-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.credit-card { padding: 22px; border-radius: var(--radius-lg); cursor: pointer; transition: all 0.25s; border: 1px solid rgba(255,255,255,0.05); background: var(--bg-card); }
.credit-card:hover { transform: translateY(-3px); border-color: var(--accent-dim); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.credit-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.credit-card-avatar { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.credit-card-info { flex: 1; min-width: 0; }
.credit-card-name { font-weight: 700; font-size: 0.95rem; color: var(--text-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit-card-property { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit-card-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.credit-card-progress-section { margin-bottom: 8px; }
.credit-card-amounts { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.credit-card-paid { font-weight: 700; font-size: 1rem; color: var(--text-white); }
.credit-card-total { font-size: 0.82rem; color: var(--text-muted); }
.credit-card-bottom-row { display: flex; justify-content: space-between; margin-top: 6px; }
.credit-card-pct { font-size: 0.78rem; font-weight: 700; color: var(--accent); }
.credit-card-remaining { font-size: 0.75rem; color: var(--text-muted); }
.credit-card-date { font-size: 0.72rem; color: var(--text-muted); text-align: right; }

/* Detail view */
.credit-detail-header { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid rgba(255,255,255,0.05); margin-bottom: 22px; }
.credit-detail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }
.credit-detail-avatar { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; flex-shrink: 0; }
.credit-detail-name { font-weight: 700; font-size: 1.25rem; color: var(--text-white); margin: 0; }
.credit-detail-property { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.credit-detail-agent { font-size: 0.78rem; color: var(--accent); margin-top: 4px; display: flex; align-items: center; gap: 5px; font-weight: 500; }
.credit-detail-progress { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.credit-detail-progress .credit-progress { flex: 1; }
.credit-detail-pct { font-size: 1rem; font-weight: 700; color: var(--text-white); min-width: 48px; text-align: right; }
.credit-detail-amounts-row { display: flex; gap: 14px; }
.credit-detail-amount-box { flex: 1; text-align: center; padding: 16px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.04); }
.credit-detail-amount-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.credit-detail-amount-value { font-size: 1.2rem; font-weight: 700; color: var(--text-white); }

/* Grid layout */
.credit-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.credit-detail-section { padding: 20px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04); }
.credit-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.credit-section-header h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-white); margin: 0; }
.credit-section-count { background: var(--accent); color: #0a0a12; font-size: 0.7rem; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Add forms */
.credit-add-form { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.credit-add-form .form-input { flex: 1; min-width: 80px; font-size: 0.82rem; padding: 8px 10px; }
.credit-add-form .btn { padding: 8px 14px; font-size: 0.85rem; }

/* Items */
.credit-items-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; }
.credit-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.03); transition: background 0.15s; }
.credit-item:hover { background: rgba(255,255,255,0.04); }
.credit-item-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.credit-item-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.credit-item-main { font-weight: 600; font-size: 0.88rem; color: var(--text-white); }
.credit-item-sub { font-size: 0.75rem; color: var(--text-muted); }
.credit-item-delete { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; padding: 4px; border-radius: 6px; opacity: 0; transition: all 0.15s; }
.credit-item:hover .credit-item-delete { opacity: 1; }
.credit-item-delete:hover { color: #f87171; background: rgba(248,113,113,0.1); }
.credit-empty { text-align: center; padding: 24px 0; color: var(--text-muted); font-size: 0.82rem; }

/* Contract */
.credit-contract-box { padding: 16px; border-radius: 10px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); }
.credit-contract-text { font-family: monospace; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; white-space: pre-wrap; margin: 0; }

@media (max-width: 900px) {
  .credit-detail-grid { grid-template-columns: 1fr; }
  .credit-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================
   APRIL FOOLS
   ============================================ */
.april-fools-price {
  position: relative;
  cursor: default;
}
.af-fish {
  display: inline-block;
  font-size: 2rem;
  pointer-events: none;
  vertical-align: middle;
  margin-left: 8px;
}
.af-fish.af-fish-swim {
  animation: af-swim 2s ease-in-out infinite;
}
.af-text {
  font-size: 0.5em;
  color: #f39c12;
  font-weight: 700;
  letter-spacing: 1px;
  animation: af-fade 0.5s ease-in forwards;
  margin-top: 2px;
}
@keyframes af-swim {
  0% { transform: translateX(0) rotate(0deg) scaleX(1); }
  25% { transform: translateX(12px) rotate(5deg) scaleX(1); }
  50% { transform: translateX(0) rotate(0deg) scaleX(1); }
  75% { transform: translateX(-12px) rotate(-5deg) scaleX(-1); }
  100% { transform: translateX(0) rotate(0deg) scaleX(1); }
}
@keyframes af-fade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   IRS — DÉCLARATIONS FISCALES
   Refonte minimaliste — Inter, carré, propre
   ============================================================ */

/* === BANNER === */
.irs-banner {
  position: relative;
  margin-top: var(--nav-height);
  background: #061224;
  color: #fff;
  padding: 32px 0 28px;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 169, 66, 0.2);
  isolation: isolate;
}

/* — Aurora animated background — */
.irs-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.irs-aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  mix-blend-mode: screen;
}
.irs-aurora-blob--1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
  top: -120px; left: -80px;
  animation: aurora-drift-1 18s ease-in-out infinite;
}
.irs-aurora-blob--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #d4a942 0%, transparent 70%);
  top: -60px; right: -40px;
  opacity: 0.25;
  animation: aurora-drift-2 22s ease-in-out infinite;
}
.irs-aurora-blob--3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
  bottom: -120px; left: 40%;
  opacity: 0.3;
  animation: aurora-drift-3 25s ease-in-out infinite;
}
@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 30px) scale(1.1); }
}
@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(0.9); }
}
@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -30px) scale(1.2); }
}
.irs-banner-inner { z-index: 1; }
.irs-banner-stripe { z-index: 1; }
.irs-banner-stripe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #d4a942 30%, #d4a942 70%, transparent 100%);
}
.irs-banner-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  position: relative;
}
.irs-seal-img {
  width: 76px; height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}
.irs-banner-text { min-width: 0; }
.irs-banner-overline {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 2.8px;
  color: #d4a942;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.irs-live-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px #4ade80;
}
.irs-live-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #4ade80;
  opacity: 0.4;
  animation: irs-live-pulse 1.6s ease-in-out infinite;
}
@keyframes irs-live-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(2); opacity: 0; }
}
.irs-banner-meta-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem !important;
  color: #fff;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.irs-banner-meta-date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.irs-banner-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
  line-height: 1.1;
  text-transform: uppercase;
}
.irs-banner-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}
.irs-banner-state {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 1px solid rgba(212, 169, 66, 0.2);
  padding-left: 24px;
}
.irs-state-seal-img {
  width: 56px; height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.irs-banner-meta { text-align: left; }
.irs-banner-meta-label {
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: rgba(212, 169, 66, 0.65);
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 600;
}
.irs-banner-meta-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* === CONTAINER === */
.irs-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

.irs-loading, .irs-empty, .irs-access-denied {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.irs-spinner {
  width: 28px; height: 28px;
  border: 2px solid rgba(212, 169, 66, 0.15);
  border-top-color: #d4a942;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: irs-spin 0.7s linear infinite;
}
@keyframes irs-spin { to { transform: rotate(360deg); } }
.irs-empty-icon, .irs-access-denied-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}
.irs-empty h3, .irs-access-denied h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.irs-access-denied { padding: 80px 24px; }
.irs-access-denied .btn { margin-top: 14px; display: inline-block; }

/* === IDENTITY CARD === */
.irs-identity-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(212, 169, 66, 0.18);
  border-radius: 8px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.irs-identity-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #d4a942;
}
.irs-identity-overline {
  font-size: 0.6rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.irs-identity-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.irs-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.irs-identity-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.irs-identity-right {
  display: flex;
  gap: 24px;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 28px;
}
.irs-identity-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
}
.irs-identity-stat span {
  font-size: 0.6rem;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.irs-identity-stat strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: var(--text-white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.irs-identity-status {
  color: #4ade80 !important;
  font-size: 0.95rem !important;
}

/* === SECTION TITLES === */
.irs-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
  flex-wrap: wrap;
  gap: 16px;
}
.irs-section-title h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-white);
  margin: 0;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding-left: 14px;
}
.irs-section-title h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 14px;
  background: #d4a942;
  border-radius: 1px;
}

/* === BUTTONS === */
.irs-section-actions { display: flex; gap: 8px; align-items: center; }
.irs-btn-ghost, .irs-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
}
.irs-btn-ghost:hover { color: var(--text-white); border-color: rgba(255, 255, 255, 0.2); }
.irs-btn-export {
  background: rgba(212, 169, 66, 0.08);
  color: #d4a942;
  border-color: rgba(212, 169, 66, 0.3);
}
.irs-btn-export:hover {
  background: rgba(212, 169, 66, 0.15);
  border-color: rgba(212, 169, 66, 0.5);
}

/* === KPI GRID === */
.irs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.irs-kpi {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.irs-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 66, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.irs-kpi--positive { border-color: rgba(74, 222, 128, 0.15); }
.irs-kpi--positive .irs-kpi-value { color: #4ade80; }
.irs-kpi--tax {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.06), rgba(212, 169, 66, 0.02));
  border-color: rgba(212, 169, 66, 0.2);
}
.irs-kpi--tax .irs-kpi-value { color: #d4a942; }
.irs-kpi-label {
  font-size: 0.62rem;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.irs-kpi-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.05;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.irs-kpi-foot {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* === EVOLUTION CHART === */
.irs-chart-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 22px 24px 16px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.irs-chart-card:hover { border-color: rgba(212, 169, 66, 0.2); }
.irs-chart-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #d4a942 0%, #4ade80 100%);
}
.irs-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.irs-chart-overline {
  font-size: 0.6rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.irs-chart-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-white);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.irs-chart-legend {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.irs-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.irs-chart-legend-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
}
.irs-chart-svg { width: 100%; overflow-x: auto; }
.irs-chart {
  width: 100%;
  height: auto;
  display: block;
}
.irs-chart path:nth-of-type(2),
.irs-chart path:nth-of-type(4) {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: irs-draw-line 1.6s ease-out forwards;
}
.irs-chart path:nth-of-type(4) { animation-delay: 0.4s; }
.irs-chart circle {
  opacity: 0;
  animation: irs-fade-in 0.4s ease forwards;
  animation-delay: 1.2s;
}
.irs-chart circle:hover { r: 5; stroke-width: 3; }
@keyframes irs-draw-line { to { stroke-dashoffset: 0; } }
@keyframes irs-fade-in { to { opacity: 1; } }

/* === STATUS OVERVIEW === */
.irs-status-overview {
  display: flex;
  gap: 32px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 24px;
}
.irs-status-overview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-white);
}
.irs-status-overview-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  box-shadow: 0 0 8px currentColor;
}
.irs-status-overview-item span {
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.irs-status-overview-item small {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* === TABS === */
.irs-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.irs-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
  font-family: 'Inter', sans-serif;
}
.irs-tab:hover { color: var(--text-white); }
.irs-tab--active { color: #d4a942; }
.irs-tab--active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: -1px;
  height: 2px;
  background: #d4a942;
  border-radius: 1px 1px 0 0;
  animation: irs-tab-slide 0.25s ease;
}
@keyframes irs-tab-slide {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* === TABLE === */
.irs-table-wrapper {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.irs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', sans-serif;
}
.irs-table thead {
  background: rgba(10, 37, 64, 0.35);
  border-bottom: 1px solid rgba(212, 169, 66, 0.2);
}
.irs-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #d4a942;
  font-weight: 700;
}
.irs-th-num { text-align: right; }
.irs-th-actions { width: 130px; text-align: center; }
.irs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-white);
}
.irs-table tbody tr { transition: background 0.15s ease; }
.irs-table tbody tr:hover { background: rgba(212, 169, 66, 0.04); }
.irs-table tbody tr:last-child td { border-bottom: none; }
.irs-td-num { text-align: right; }
.irs-td-benefit { font-weight: 700; font-size: 0.92rem; }
.irs-td-benefit--positive { color: #4ade80; }
.irs-td-benefit--negative { color: #f87171; }
.irs-td-tax { color: #d4a942; font-weight: 600; }
.irs-td-actions { text-align: center; white-space: nowrap; }

/* === PILLS === */
.irs-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
}
.irs-pill--draft { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.25); }
.irs-pill--validated { background: rgba(74, 222, 128, 0.12); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.irs-pill--contested { background: rgba(248, 113, 113, 0.12); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.irs-pill--lg { padding: 6px 14px; font-size: 0.74rem; }

/* === TREND BADGES === */
.irs-trend {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  letter-spacing: 0.4px;
  vertical-align: middle;
  font-family: 'Inter', sans-serif;
}
.irs-trend--up { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.irs-trend--down { background: rgba(248, 113, 113, 0.15); color: #f87171; }

/* === MINI BUTTONS === */
.irs-btn-mini {
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-right: 4px;
}
.irs-btn-mini:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.irs-btn-mini--ok { color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.irs-btn-mini--ok:hover { background: rgba(74, 222, 128, 0.15); }
.irs-btn-mini--ko { color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.irs-btn-mini--ko:hover { background: rgba(248, 113, 113, 0.15); }

/* === DETAIL MODAL === */
.irs-detail-header { align-items: flex-start; }
.irs-detail-overline {
  font-size: 0.6rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.irs-detail-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.irs-detail-body { display: flex; flex-direction: column; gap: 16px; }
.irs-detail-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.irs-detail-meta-inline { font-size: 0.8rem; color: var(--text-muted); }

.irs-contest-banner {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-left: 3px solid #f87171;
  border-radius: 6px;
}
.irs-contest-banner-icon { font-size: 1.3rem; flex-shrink: 0; }
.irs-contest-banner-title { font-weight: 700; color: #fca5a5; font-size: 0.9rem; margin-bottom: 4px; }
.irs-contest-banner-reason { color: #fecaca; font-style: italic; font-size: 0.84rem; }

.irs-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.irs-detail-cell {
  padding: 16px 20px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.irs-detail-cell span {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.irs-detail-cell strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}
.irs-detail-cell--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.5), rgba(15, 23, 42, 0.6));
  padding: 22px 26px;
}
.irs-detail-cell--featured strong { font-size: 1.6rem; }
.irs-detail-cell--positive strong { color: #4ade80; }
.irs-detail-cell--negative strong { color: #f87171; }

.irs-detail-notes {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 14px 18px;
}
.irs-detail-notes-label {
  font-size: 0.6rem;
  color: #d4a942;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.irs-detail-notes-text { color: var(--text-white); font-size: 0.88rem; line-height: 1.55; }

/* === STATUS TIMELINE === */
.irs-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow-x: auto;
}
.irs-timeline-step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  position: relative;
}
.irs-timeline-step:last-child { flex: 0 0 auto; }
.irs-timeline-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.irs-timeline-step--done .irs-timeline-dot { background: #4ade80; color: #052e16; }
.irs-timeline-step--ok .irs-timeline-dot {
  background: #4ade80; color: #052e16;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}
.irs-timeline-step--ko .irs-timeline-dot {
  background: #f87171; color: #450a0a;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2);
}
.irs-timeline-step--pending .irs-timeline-dot {
  background: rgba(255, 255, 255, 0.06);
  border: 2px dashed rgba(255, 255, 255, 0.2);
}
.irs-timeline-dot-pulse {
  width: 6px; height: 6px;
  background: #d4a942;
  border-radius: 50%;
  animation: irs-pulse 1.4s ease-in-out infinite;
}
@keyframes irs-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}
.irs-timeline-content { margin-left: 12px; min-width: 0; flex: 1; }
.irs-timeline-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.irs-timeline-step--pending .irs-timeline-label { color: var(--text-muted); }
.irs-timeline-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.irs-timeline-link {
  flex: 1;
  height: 2px;
  margin: 0 12px;
  min-width: 24px;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.5), rgba(255, 255, 255, 0.06));
  border-radius: 1px;
  position: relative;
  z-index: 1;
}

/* === HISTORY === */
.irs-history-block { display: flex; flex-direction: column; gap: 10px; }
.irs-history-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.irs-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: rgba(212, 169, 66, 0.15);
  color: #d4a942;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.irs-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.irs-history-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  padding: 14px;
  text-align: center;
}
.irs-history-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  transition: border-color 0.15s ease;
}
.irs-history-item:hover { border-color: rgba(212, 169, 66, 0.2); }
.irs-history-icon {
  font-size: 1.05rem;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.irs-history-body { flex: 1; min-width: 0; }
.irs-history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.irs-history-action { font-size: 0.86rem; font-weight: 700; color: var(--text-white); }
.irs-history-meta { font-size: 0.7rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.irs-history-author { font-size: 0.76rem; color: var(--text-muted); }
.irs-history-reason { margin-top: 6px; font-size: 0.8rem; color: #fca5a5; font-style: italic; }
.irs-history-changes {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.irs-history-changes li { padding: 2px 0; }
.irs-history-changes strong { color: var(--text-white); margin-right: 4px; }

/* === ACTION BUTTONS === */
.irs-detail-footer { gap: 8px; }
.irs-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: 'Inter', sans-serif;
}
.irs-action-btn:hover { opacity: 0.9; }
.irs-action-btn:active { transform: translateY(1px); }
.irs-action-btn--validate { background: #16a34a; color: #fff; }
.irs-action-btn--contest { background: #dc2626; color: #fff; }

/* === MOBILE === */
@media (max-width: 768px) {
  .irs-banner-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .irs-banner-state { border-left: none; border-top: 1px solid rgba(212,169,66,0.2); padding: 14px 0 0; flex-direction: column; gap: 10px; }
  .irs-seal-img { width: 64px; height: 64px; }
  .irs-state-seal-img { width: 48px; height: 48px; }
  .irs-identity-card { grid-template-columns: 1fr; gap: 16px; }
  .irs-identity-right { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); padding: 16px 0 0; justify-content: space-around; }
  .irs-detail-grid { grid-template-columns: 1fr; }
  .irs-status-overview { flex-wrap: wrap; gap: 14px; }
}

/* === PRINT === */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .navbar, .fivem-bar, .footer, .toast-container, .panel-sidebar,
  .irs-section-actions, .irs-tabs, .irs-btn-mini, .irs-th-actions,
  .irs-td-actions, .modal-backdrop, .modal-close { display: none !important; }
  .irs-banner {
    background: #0a2540 !important;
    color: #fff !important;
    margin-top: 0 !important;
    padding: 24px 0 !important;
    page-break-after: avoid;
  }
  .irs-container { padding: 16px !important; max-width: 100% !important; }
  .irs-kpi, .irs-chart-card, .irs-table-wrapper, .irs-identity-card {
    break-inside: avoid;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
  }
  .irs-kpi-label, .irs-kpi-foot, .irs-chart-overline,
  .irs-section-title h2, .irs-identity-overline { color: #475569 !important; }
  .irs-kpi-value, .irs-table td, .irs-identity-name { color: #0f172a !important; }
  .irs-table thead { background: #e0e7ff !important; }
  .irs-table th { color: #1e3a8a !important; }
  .irs-pill { background: #f1f5f9 !important; color: #1e293b !important; border-color: #cbd5e1 !important; }
}

/* ============================================================
   ADMIN — FISCALITÉ
   ============================================================ */

.tax-admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.tax-admin-overline {
  font-size: 0.6rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.tax-admin-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.45rem;
  color: var(--text-white);
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.tax-admin-sub { font-size: 0.84rem; color: var(--text-muted); margin: 0; font-weight: 500; }
.btn-tax-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #d4a942 0%, #b88f2e 100%);
  color: #0a2540;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(212, 169, 66, 0.18);
}
.btn-tax-new:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(212, 169, 66, 0.28); }

.tax-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.tax-stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 18px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tax-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 66, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.tax-stat-card--positive { border-color: rgba(74, 222, 128, 0.18); }
.tax-stat-card--positive .tax-stat-value { color: #4ade80; }
.tax-stat-label {
  font-size: 0.62rem;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.tax-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.55rem;
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.tax-stat-value--small {
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-weight: 600;
  letter-spacing: 0;
}
.tax-stat-foot { font-size: 0.7rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.tax-mini-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}
.tax-mini-pill--draft { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }
.tax-mini-pill--ok { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.tax-mini-pill--ko { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.tax-toolbar { margin-bottom: 14px; }
.tax-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.tax-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}
.tax-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tax-tab:hover { color: var(--text-white); }
.tax-tab--active { color: #d4a942; }
.tax-tab--active span { background: rgba(212, 169, 66, 0.18); color: #d4a942; }
.tax-tab--active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: -1px;
  height: 2px;
  background: #d4a942;
  border-radius: 1px 1px 0 0;
  animation: irs-tab-slide 0.25s ease;
}

.tax-table-wrapper {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', sans-serif;
}
.tax-table thead {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tax-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  font-weight: 700;
}
.tax-th-num { text-align: right; }
.tax-th-actions { width: 90px; }
.tax-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-white);
}
.tax-table tbody tr { cursor: pointer; transition: background 0.15s ease; }
.tax-table tbody tr:hover { background: rgba(212, 169, 66, 0.04); }
.tax-table tbody tr:last-child td { border-bottom: none; }
.tax-td-num { text-align: right; }
.tax-td-meta { color: var(--text-muted); font-size: 0.78rem; }
.tax-td-benefit { font-weight: 700; font-size: 0.92rem; }
.tax-td-benefit--positive { color: #4ade80; }
.tax-td-benefit--negative { color: #f87171; }
.tax-td-actions { white-space: nowrap; text-align: center; }

.tax-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
}
.tax-pill--draft { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.25); }
.tax-pill--validated { background: rgba(74, 222, 128, 0.12); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.tax-pill--contested { background: rgba(248, 113, 113, 0.12); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.tax-pill--lg { padding: 6px 14px; font-size: 0.74rem; }

.tax-icon-btn {
  width: 28px; height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: var(--text-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-right: 4px;
}
.tax-icon-btn:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.tax-icon-btn--danger:hover { background: rgba(248, 113, 113, 0.15); border-color: rgba(248, 113, 113, 0.3); color: #f87171; }

.tax-empty { text-align: center; padding: 56px 24px; }
.tax-empty-icon {
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}
.tax-empty h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-white);
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.tax-empty p { color: var(--text-muted); font-size: 0.86rem; margin: 0; }

/* === FORM === */
.tax-form { display: flex; flex-direction: column; gap: 16px; }
.tax-form-banner {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.5), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(212, 169, 66, 0.2);
  border-radius: 6px;
  padding: 12px 16px;
  border-left: 3px solid #d4a942;
}
.tax-form-banner-overline {
  font-size: 0.64rem;
  letter-spacing: 1.8px;
  color: #d4a942;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.tax-form-banner-sub { font-size: 0.78rem; color: var(--text-muted); }

.tax-calc-card {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.06), rgba(212, 169, 66, 0.02));
  border: 1px solid rgba(212, 169, 66, 0.25);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.tax-calc-card[open] { border-color: rgba(212, 169, 66, 0.4); }
.tax-calc-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s ease;
}
.tax-calc-summary::-webkit-details-marker { display: none; }
.tax-calc-summary:hover { background: rgba(212, 169, 66, 0.04); }
.tax-calc-icon { font-size: 1.2rem; flex-shrink: 0; }
.tax-calc-title {
  font-weight: 700;
  color: #d4a942;
  font-size: 0.92rem;
  letter-spacing: -0.1px;
}
.tax-calc-hint { flex: 1; font-size: 0.76rem; color: var(--text-muted); }
.tax-calc-chevron {
  color: #d4a942;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.tax-calc-card[open] .tax-calc-chevron { transform: rotate(180deg); }
.tax-calc-body {
  padding: 18px;
  border-top: 1px solid rgba(212, 169, 66, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tax-calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tax-calc-field { display: flex; flex-direction: column; gap: 6px; }
.tax-calc-field label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.tax-calc-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: border-color 0.15s ease;
}
.tax-calc-input-group:focus-within { border-color: rgba(212, 169, 66, 0.5); }
.tax-calc-input-group input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.tax-calc-input-group input::placeholder { color: var(--text-muted); opacity: 0.6; font-weight: 400; }
.tax-calc-input-group span {
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 500;
}
.tax-calc-foot { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; }
.tax-calc-foot strong { color: #d4a942; font-weight: 700; }
.tax-calc-preview {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tax-calc-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.tax-calc-preview-row strong {
  color: var(--text-white);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}
.tax-calc-preview-row--featured {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
}
.tax-calc-preview-row--featured strong { font-size: 1.1rem; }
.tax-calc-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #d4a942, #b88f2e);
  color: #0a2540;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.1s, box-shadow 0.15s;
  align-self: flex-start;
}
.tax-calc-apply-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212, 169, 66, 0.3); }

.tax-form-section { display: flex; flex-direction: column; gap: 12px; }
.tax-form-section-title {
  font-size: 0.7rem;
  color: var(--text-white);
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.tax-form-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.85;
}

.tax-net-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.06), rgba(74, 222, 128, 0.02));
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 6px;
}
.tax-net-display-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-white);
  font-weight: 600;
}
.tax-net-display-icon { font-size: 1.1rem; }
.tax-net-display strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  color: #4ade80;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* === DETAIL MODAL ADMIN === */
.tax-detail-header { align-items: flex-start; }
.tax-detail-overline {
  font-size: 0.6rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.tax-detail-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.tax-detail-body { display: flex; flex-direction: column; gap: 16px; }
.tax-detail-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tax-detail-meta-inline { font-size: 0.8rem; color: var(--text-muted); }

.tax-contest-banner {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-left: 3px solid #f87171;
  border-radius: 6px;
}
.tax-contest-banner-icon { font-size: 1.3rem; flex-shrink: 0; }
.tax-contest-banner-title { font-weight: 700; color: #fca5a5; font-size: 0.9rem; margin-bottom: 4px; }
.tax-contest-banner-reason { color: #fecaca; font-style: italic; font-size: 0.84rem; }

.tax-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.tax-detail-cell {
  padding: 16px 20px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tax-detail-cell span {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.tax-detail-cell strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}
.tax-detail-cell--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.5), rgba(15, 23, 42, 0.6));
  padding: 22px 26px;
}
.tax-detail-cell--featured strong { font-size: 1.6rem; }
.tax-detail-cell--positive strong { color: #4ade80; }
.tax-detail-cell--negative strong { color: #f87171; }

.tax-detail-notes {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 14px 18px;
}
.tax-detail-notes-label {
  font-size: 0.6rem;
  color: #d4a942;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tax-detail-notes-text { color: var(--text-white); font-size: 0.88rem; line-height: 1.55; }

.tax-history-block { display: flex; flex-direction: column; gap: 10px; }
.tax-history-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.tax-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: rgba(212, 169, 66, 0.15);
  color: #d4a942;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tax-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.tax-history-empty { color: var(--text-muted); font-size: 0.85rem; font-style: italic; padding: 14px; text-align: center; }
.tax-history-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  transition: border-color 0.15s ease;
}
.tax-history-item:hover { border-color: rgba(212, 169, 66, 0.2); }
.tax-history-icon {
  font-size: 1.05rem;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tax-history-body { flex: 1; min-width: 0; }
.tax-history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.tax-history-action { font-size: 0.86rem; font-weight: 700; color: var(--text-white); }
.tax-history-meta { font-size: 0.7rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tax-history-author { font-size: 0.76rem; color: var(--text-muted); }
.tax-history-reason { margin-top: 6px; font-size: 0.8rem; color: #fca5a5; font-style: italic; }
.tax-history-changes {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.tax-history-changes li { padding: 2px 0; }
.tax-history-changes strong { color: var(--text-white); margin-right: 4px; }

@media (max-width: 768px) {
  .tax-detail-grid { grid-template-columns: 1fr; }
  .tax-admin-header { align-items: flex-start; }
  .tax-calc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   IRS — INNOVATIONS WOW (sparklines, heatmap, glow)
   ============================================================ */

/* — KPI head with sparkline — */
.irs-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.irs-kpi-head .irs-kpi-label { margin-bottom: 0; }
.irs-spark {
  display: block;
  flex-shrink: 0;
  opacity: 0;
  animation: spark-in 0.6s ease 0.4s forwards;
}
@keyframes spark-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.irs-spark path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: irs-draw-line 1.2s ease-out 0.5s forwards;
}
.irs-spark circle {
  opacity: 0;
  animation: irs-fade-in 0.3s ease 1.4s forwards;
}

/* — Glow effect on KPI hover (subtle gold aura) — */
.irs-kpi {
  isolation: isolate;
}
.irs-kpi::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 169, 66, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.irs-kpi:hover::after { opacity: 1; }

/* === HEATMAP CALENDAR === */
.irs-heatmap-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 22px 24px 18px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.irs-heatmap-card:hover { border-color: rgba(212, 169, 66, 0.2); }
.irs-heatmap-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #4ade80, #d4a942 50%, #f87171);
}
.irs-heatmap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.irs-heatmap-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.irs-hm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.irs-hm-legend-item .irs-hm-cell {
  width: 11px;
  height: 11px;
  cursor: default;
}

.irs-hm-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}
.irs-hm-months {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  height: 14px;
  min-width: 700px;
}
.irs-hm-month-label {
  white-space: nowrap;
}
.irs-hm-grid {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: 3px;
  min-width: 700px;
}
.irs-hm-cell {
  width: 100%;
  aspect-ratio: 1;
  max-width: 16px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.irs-hm-cell--empty { background: rgba(255, 255, 255, 0.03); cursor: default; }
.irs-hm-cell--draft {
  background: rgba(148, 163, 184, 0.35);
  border-color: rgba(148, 163, 184, 0.45);
}
.irs-hm-cell--validated {
  background: rgba(74, 222, 128, 0.55);
  border-color: rgba(74, 222, 128, 0.7);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.3);
}
.irs-hm-cell--contested {
  background: rgba(248, 113, 113, 0.55);
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.35);
}
.irs-hm-cell:not(.irs-hm-cell--empty):hover {
  transform: scale(1.4);
  z-index: 5;
  border-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.irs-hm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}
.irs-hm-year {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #d4a942;
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}

/* — Number shimmer on count-up — */
.irs-kpi-value, .irs-bento-value, .irs-sub-value {
  background: linear-gradient(90deg, #fff 0%, #fff 40%, rgba(255,255,255,0.85) 50%, #fff 60%, #fff 100%);
  background-size: 200% 100%;
  background-position: -200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: irs-shimmer 2.4s ease 0.5s 1;
}
.irs-kpi--positive .irs-kpi-value {
  background: linear-gradient(90deg, #4ade80 0%, #4ade80 40%, rgba(255,255,255,0.95) 50%, #4ade80 60%, #4ade80 100%);
  background-size: 200% 100%;
  background-position: -200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: irs-shimmer 2.4s ease 0.5s 1;
}
.irs-kpi--tax .irs-kpi-value {
  background: linear-gradient(90deg, #d4a942 0%, #d4a942 40%, rgba(255,255,255,0.95) 50%, #d4a942 60%, #d4a942 100%);
  background-size: 200% 100%;
  background-position: -200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: irs-shimmer 2.4s ease 0.5s 1;
}
@keyframes irs-shimmer {
  to { background-position: 200% 0; }
}

@media (max-width: 768px) {
  .irs-hm-cell { max-width: 12px; }
  .irs-hm-grid, .irs-hm-months { min-width: 600px; }
  .irs-banner-meta-value { font-size: 0.92rem !important; }
}

/* ============================================================
   IRS — NEW LAYOUT (Hero + Bento Grid)
   ============================================================ */

/* ============================================================
   IRS — TABBED DASHBOARD (final design)
   ============================================================ */

/* === DOC HEADER (sticky-ish) === */
.irs-doc-header {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}
.irs-doc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.irs-doc-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.irs-doc-name strong {
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: -0.2px;
}
.irs-doc-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.irs-doc-status-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  position: relative;
}
.irs-doc-status-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #4ade80;
  opacity: 0.4;
  animation: irs-live-pulse 2s ease-in-out infinite;
}
.irs-doc-actions { display: flex; gap: 6px; }
.irs-doc-btn {
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.irs-doc-btn:hover { color: var(--text-white); border-color: rgba(212, 169, 66, 0.4); background: rgba(212, 169, 66, 0.08); }

/* Navigation tabs */
.irs-nav {
  display: flex;
  gap: 0;
  padding: 0 8px;
  position: relative;
  overflow-x: auto;
}
.irs-nav-tab {
  background: transparent;
  border: none;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.irs-nav-tab:hover { color: var(--text-white); }
.irs-nav-tab--active { color: #d4a942; }
.irs-nav-tab--active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: 0;
  height: 2px;
  background: #d4a942;
  border-radius: 1px 1px 0 0;
  animation: irs-tab-slide 0.25s ease;
}
.irs-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.irs-nav-tab--active .irs-nav-badge {
  background: rgba(212, 169, 66, 0.18);
  color: #d4a942;
}

/* Tab content (with enter animation) */
.irs-tab-content { animation: irs-tab-enter 0.35s ease; }
@keyframes irs-tab-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TAB: OVERVIEW ===== */
.irs-overview { display: flex; flex-direction: column; gap: 18px; }

.irs-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.irs-stat {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.irs-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 66, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.irs-stat--highlight {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.08) 0%, rgba(74, 222, 128, 0.02) 100%);
  border-color: rgba(74, 222, 128, 0.25);
}
.irs-stat--highlight .irs-stat-value { color: #4ade80; }
.irs-stat--tax {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.08), rgba(212, 169, 66, 0.02));
  border-color: rgba(212, 169, 66, 0.3);
}
.irs-stat--tax .irs-stat-value { color: #d4a942; }
.irs-stat-label {
  font-size: 0.6rem;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.irs-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.irs-stat-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* Last declaration spotlight */
.irs-last-decl {
  background: var(--bg-card);
  border: 1px solid rgba(212, 169, 66, 0.25);
  border-left: 3px solid #d4a942;
  border-radius: 10px;
  padding: 18px 22px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.irs-last-decl:hover {
  border-color: rgba(212, 169, 66, 0.4);
  box-shadow: 0 8px 24px rgba(212, 169, 66, 0.12);
  transform: translateY(-1px);
}
.irs-last-decl-overline {
  font-size: 0.6rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.irs-last-decl-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.irs-last-decl-period {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.irs-last-decl-week {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.2px;
}
.irs-last-decl-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.irs-last-decl-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.irs-last-decl-stats span {
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.irs-last-decl-stats strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.irs-last-decl-arrow {
  color: var(--text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}
.irs-last-decl:hover .irs-last-decl-arrow {
  color: #d4a942;
  transform: translateX(4px);
}

/* Overview chart card */
.irs-overview-chart, .irs-big-chart {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 22px 26px 16px;
  position: relative;
  overflow: hidden;
}
.irs-overview-chart::before, .irs-big-chart::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #d4a942 0%, #4ade80 100%);
}
.irs-overview-chart-head, .irs-big-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

/* ===== TAB: DECLARATIONS ===== */
.irs-decl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.irs-decl-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(148, 163, 184, 0.5);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  flex-wrap: wrap;
}
.irs-decl-card:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 169, 66, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.irs-decl-card--validated { border-left-color: #4ade80; }
.irs-decl-card--contested { border-left-color: #f87171; }
.irs-decl-card-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}
.irs-decl-card-period {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.2px;
}
.irs-decl-card-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.irs-decl-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.irs-decl-stat span {
  font-size: 0.6rem;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.irs-decl-stat strong {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  color: var(--text-white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.irs-decl-pos { color: #4ade80; }
.irs-decl-neg { color: #f87171; }
.irs-decl-card-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ===== TAB: EVOLUTION ===== */
.irs-evo-tab { display: flex; flex-direction: column; gap: 18px; }
.irs-insight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.irs-insight {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 22px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.irs-insight:hover { transform: translateY(-2px); border-color: rgba(212, 169, 66, 0.25); }
.irs-insight-label {
  font-size: 0.6rem;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.irs-insight-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.irs-insight-foot {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ===== TAB: ACTIVITY (feed) ===== */
.irs-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.irs-feed::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(212,169,66,0.3), rgba(255,255,255,0.04));
}
.irs-feed-item {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  position: relative;
  opacity: 0;
  animation: irs-fade-in-up 0.4s ease forwards;
}
@keyframes irs-fade-in-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.irs-feed-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 18px;
  flex-shrink: 0;
  margin-left: 7px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--bg-page, #0a0a12);
}
.irs-feed-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.irs-feed-card:hover {
  border-color: rgba(212, 169, 66, 0.25);
  transform: translateX(4px);
}
.irs-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.irs-feed-icon { margin-right: 4px; }
.irs-feed-head strong { color: var(--text-white); font-weight: 700; font-size: 0.9rem; }
.irs-feed-period {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.irs-feed-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.irs-feed-author {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.irs-feed-reason {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(248, 113, 113, 0.06);
  border-left: 2px solid rgba(248, 113, 113, 0.4);
  border-radius: 4px;
  font-size: 0.82rem;
  color: #fca5a5;
  font-style: italic;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .irs-stat-row, .irs-insight-row { grid-template-columns: 1fr; }
  .irs-decl-card-stats, .irs-last-decl-stats { grid-template-columns: repeat(2, 1fr); }
  .irs-doc-header-top { flex-direction: column; align-items: flex-start; }
}

/* === MINIMAL LAYOUT (clean & focused) === */

/* Identity strip — single horizontal bar */
.irs-id-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid #d4a942;
  border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.irs-id-strip-main {
  flex: 1;
  min-width: 200px;
}
.irs-id-strip-name {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.irs-id-status {
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.irs-id-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
  animation: irs-live-pulse 2s ease-in-out infinite;
}
.irs-id-strip-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 4px;
}
.irs-id-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.irs-id-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.irs-id-pill--ok { background: rgba(74, 222, 128, 0.1); color: #4ade80; border-color: rgba(74, 222, 128, 0.25); }
.irs-id-pill--draft { background: rgba(148, 163, 184, 0.1); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.25); }
.irs-id-pill--ko { background: rgba(248, 113, 113, 0.1); color: #f87171; border-color: rgba(248, 113, 113, 0.25); }

.irs-id-strip-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* === ASYMMETRIC KPI STACK === */
.irs-kpi-stack {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

/* Hero KPI (Bénéfice net) */
.irs-hero-kpi {
  background: linear-gradient(135deg, #0a2540 0%, #0d1f3d 60%, #0f172a 100%);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 12px;
  padding: 24px 28px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.irs-hero-kpi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% -20%, rgba(74, 222, 128, 0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.irs-hero-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.irs-hero-kpi-label {
  font-size: 0.62rem;
  letter-spacing: 2.4px;
  color: #4ade80;
  text-transform: uppercase;
  font-weight: 700;
}
.irs-hero-kpi-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.irs-hero-kpi-margin {
  text-align: right;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 8px;
  padding: 8px 14px;
}
.irs-hero-kpi-margin span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}
.irs-hero-kpi-margin strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.irs-hero-kpi-value {
  font-family: 'Inter', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.6px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, #4ade80 60%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-shimmer 5s ease infinite;
}
.irs-hero-kpi-bottom {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.irs-hero-trend-inline {
  display: inline-flex;
  align-items: center;
}
.irs-hero-trend-inline .irs-trend {
  margin-left: 0;
  margin-right: 6px;
  padding: 2px 7px;
  font-size: 0.7rem;
}
.irs-hero-spark {
  margin: 12px -28px 0;
  height: 56px;
}
.irs-hero-spark-svg {
  width: 100%;
  height: 56px;
  display: block;
}

/* Sub stack (CA + Impôt) */
.irs-sub-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}
.irs-sub-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.irs-sub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 66, 0.25);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.irs-sub-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 169, 66, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.irs-sub-card:hover::after { opacity: 1; }
.irs-sub-card--tax {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.06), rgba(212, 169, 66, 0.02));
  border-color: rgba(212, 169, 66, 0.25);
}
.irs-sub-card--tax .irs-sub-value { color: #d4a942; }
.irs-sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.irs-sub-label {
  font-size: 0.62rem;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.irs-sub-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.6px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.irs-sub-foot {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: auto;
}

@media (max-width: 900px) {
  .irs-kpi-stack { grid-template-columns: 1fr; }
  .irs-hero-kpi-value { font-size: 2.4rem; letter-spacing: -1px; }
  .irs-hero-kpi { min-height: 0; padding: 22px 24px 0; }
  .irs-hero-spark { margin: 12px -24px 0; }
}
@media (max-width: 768px) {
  .irs-id-strip { flex-direction: column; align-items: flex-start; }
}

/* 3 KPIs row — clean & spacious */
.irs-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.irs-kpi-clean {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.irs-kpi-clean:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 66, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.irs-kpi-clean::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 169, 66, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.irs-kpi-clean:hover::after { opacity: 1; }
.irs-kpi-clean--positive { border-color: rgba(74, 222, 128, 0.18); }
.irs-kpi-clean--positive .irs-kpi-value { color: #4ade80; }
.irs-kpi-clean--tax {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.06), rgba(212, 169, 66, 0.02));
  border-color: rgba(212, 169, 66, 0.25);
}
.irs-kpi-clean--tax .irs-kpi-value { color: #d4a942; }
.irs-kpi-clean .irs-kpi-label {
  font-size: 0.62rem;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.irs-kpi-clean .irs-kpi-value {
  font-family: 'Inter', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.irs-kpi-trend {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
  min-height: 1em;
}
.irs-kpi-trend .irs-trend {
  margin-left: 0;
  margin-right: 6px;
}

@media (max-width: 768px) {
  .irs-kpi-row { grid-template-columns: 1fr; }
  .irs-id-strip { flex-direction: column; align-items: flex-start; }
}

/* === HERO STRIP === */
.irs-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.irs-hero-main {
  background: linear-gradient(135deg, #0a2540 0%, #0d1f3d 60%, #0f172a 100%);
  border: 1px solid rgba(212, 169, 66, 0.25);
  border-radius: 12px;
  padding: 32px 36px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.irs-hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(212, 169, 66, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.irs-hero-overline {
  font-size: 0.62rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.irs-hero-number {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 0%, #d4a942 50%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-shimmer 4s ease infinite;
}
@keyframes hero-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.irs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  margin-bottom: 16px;
}
.irs-hero-trend { color: #4ade80; font-weight: 700; }
.irs-hero-trend .irs-trend { margin-left: 0; padding: 2px 8px; font-size: 0.72rem; }
.irs-hero-divider {
  width: 1px; height: 12px;
  background: rgba(255, 255, 255, 0.15);
}
.irs-hero-meta-item { display: inline-block; }
.irs-hero-spark {
  height: 60px;
  margin: 0 -36px;
  position: relative;
}
.irs-hero-spark-svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* — Hero Side (Identity) — */
.irs-hero-side {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.irs-hero-side:hover { border-color: rgba(212, 169, 66, 0.2); }
.irs-hero-side .irs-identity-overline {
  margin-bottom: 4px;
}
.irs-hero-side .irs-identity-name {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.irs-identity-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.irs-identity-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}
.irs-identity-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.irs-identity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.irs-identity-row svg { color: #d4a942; flex-shrink: 0; }

/* — Streak — */
.irs-streak {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(212, 169, 66, 0.05));
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 8px;
  margin-top: 4px;
}
.irs-streak-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.4));
  animation: streak-flicker 2.4s ease-in-out infinite;
}
@keyframes streak-flicker {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.08) rotate(3deg); }
}
.irs-streak-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.irs-streak-text strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: #fb923c;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.irs-streak-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* — Hero actions — */
.irs-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}
.irs-btn-ghost--full, .irs-btn-export--full {
  justify-content: center;
  padding: 9px 12px;
  font-size: 0.76rem;
}

/* === BENTO GRID === */
.irs-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.irs-bento-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.irs-bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 66, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.irs-bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212, 169, 66, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.irs-bento-card:hover::after { opacity: 1; }
.irs-bento-card--wide { grid-column: span 2; }
.irs-bento-card--full { grid-column: 1 / -1; }
.irs-bento-card--benefit { border-color: rgba(74, 222, 128, 0.2); }
.irs-bento-card--benefit .irs-bento-value { color: #4ade80; }
.irs-bento-card--tax {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.06), rgba(212, 169, 66, 0.02));
  border-color: rgba(212, 169, 66, 0.25);
}
.irs-bento-card--tax .irs-bento-value { color: #d4a942; }
.irs-bento-card--gauge {
  align-items: center;
  text-align: center;
  justify-content: space-between;
}
.irs-bento-card--gauge .irs-bento-label { margin-bottom: 4px; }
.irs-bento-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.irs-bento-label {
  font-size: 0.62rem;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.irs-bento-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.irs-bento-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.6px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.irs-bento-foot {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: auto;
}

/* — Chart in bento — */
.irs-bento-card--chart .irs-chart-svg { margin-top: 8px; }

/* — Gauge donut — */
.irs-gauge {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 4px auto;
}
.irs-gauge-svg {
  width: 100%;
  height: 100%;
}
.irs-gauge-progress {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.irs-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.irs-gauge-text strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.irs-gauge-text strong span {
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 1px;
  letter-spacing: 0;
}

/* — Status bars — */
.irs-status-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}
.irs-status-bar-row { display: flex; flex-direction: column; gap: 5px; }
.irs-status-bar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}
.irs-status-bar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.irs-status-bar-label { color: var(--text-white); font-weight: 600; flex: 1; }
.irs-status-bar-count {
  color: var(--text-white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.irs-status-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}
.irs-status-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease;
}
.irs-status-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

/* — Mobile — */
@media (max-width: 1100px) {
  .irs-bento { grid-template-columns: repeat(2, 1fr); }
  .irs-bento-card--wide { grid-column: span 2; }
}
@media (max-width: 768px) {
  .irs-hero { grid-template-columns: 1fr; }
  .irs-hero-number { font-size: 2.6rem; letter-spacing: -1px; }
  .irs-hero-spark { height: 40px; margin: 0 -24px; }
  .irs-hero-main { padding: 24px 24px 0; }
  .irs-bento { grid-template-columns: 1fr; }
  .irs-bento-card--wide, .irs-bento-card--full { grid-column: 1; }
}

/* ============================================================
   DASHBOARD — IRS ACCESS CARD (espace client)
   ============================================================ */
.dash-irs-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #061224 0%, #0a2540 60%, #102d4a 100%);
  border: 1px solid rgba(212, 169, 66, 0.3);
  border-left: 3px solid #d4a942;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.dash-irs-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 66, 0.5);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.4);
}
.dash-irs-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% -10%, rgba(212, 169, 66, 0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.dash-irs-card-seal {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}
.dash-irs-card:hover .dash-irs-card-seal {
  transform: scale(1.05) rotate(-2deg);
}
.dash-irs-card-body { flex: 1; min-width: 0; }
.dash-irs-card-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: #d4a942;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dash-irs-card-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 6px #4ade80;
}
.dash-irs-card-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #4ade80;
  opacity: 0.4;
  animation: irs-live-pulse 1.6s ease-in-out infinite;
}
.dash-irs-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  line-height: 1.1;
}
.dash-irs-card-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-weight: 400;
  max-width: 600px;
}
.dash-irs-card-arrow {
  color: #d4a942;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.dash-irs-card:hover .dash-irs-card-arrow {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .dash-irs-card { flex-direction: column; text-align: center; padding: 22px; }
  .dash-irs-card-arrow { display: none; }
  .dash-irs-card-sub { max-width: none; }
}

/* ============================================================
   GOV PORTAL — Style data.gouv.fr / IRS.gov officiel
   ============================================================ */

.gov-portal {
  background: #0a0e18;
  color: #e6e9ee;
  font-family: 'Inter', sans-serif;
  min-height: calc(100vh - var(--nav-height));
}
.gov-loading-screen {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

/* === Top bar === */
.gov-topbar {
  background: linear-gradient(180deg, #0a2540 0%, #061a30 100%);
  border-bottom: 3px solid #d4a942;
  padding: 12px 0;
}
.gov-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.gov-topbar-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.gov-topbar-mark-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #d4a942, #b88f2e);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a2540;
  flex-shrink: 0;
}
.gov-topbar-mark-text strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #fff;
  text-transform: uppercase;
}
.gov-topbar-mark-text span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}
.gov-topbar-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
.gov-topbar-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.gov-topbar-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
}

/* === Service header === */
.gov-service {
  background: linear-gradient(180deg, #0d1424 0%, #0a0f1c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 0;
}
.gov-service-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.gov-service-seal {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.gov-service-overline {
  font-size: 0.62rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.gov-service-title h1 {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.4px;
}
.gov-service-title p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.gov-service-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* === Breadcrumb === */
.gov-breadcrumb {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 0;
}
.gov-breadcrumb ol {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
}
.gov-breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
}
.gov-breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.3);
}
.gov-breadcrumb a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.15s;
}
.gov-breadcrumb a:hover { color: #93c5fd; text-decoration: underline; }
.gov-breadcrumb strong {
  color: #fff;
  font-weight: 600;
}

/* === Two-column body === */
.gov-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

/* === Sidebar === */
.gov-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gov-sidebar-section {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 18px 18px 16px;
}
.gov-sidebar-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #d4a942;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 169, 66, 0.15);
}

.gov-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.gov-filter-label {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  margin-bottom: 4px;
}
.gov-filter-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.gov-filter-radio:hover { background: rgba(255, 255, 255, 0.03); }
.gov-filter-radio input[type="radio"] {
  appearance: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: border-color 0.15s;
  position: relative;
}
.gov-filter-radio input[type="radio"]:checked {
  border-color: #d4a942;
}
.gov-filter-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #d4a942;
  border-radius: 50%;
}
.gov-filter-radio em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.gov-info-list {
  margin: 0;
  font-size: 0.82rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
}
.gov-info-list dt {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  white-space: nowrap;
}
.gov-info-list dd {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.gov-help {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gov-help a {
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gov-help a::before { content: '›'; color: rgba(255, 255, 255, 0.4); }
.gov-help a:hover { color: #93c5fd; text-decoration: underline; }

/* === Main content === */
.gov-main { display: flex; flex-direction: column; gap: 24px; }

.gov-intro {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.06), rgba(10, 37, 64, 0.3));
  border: 1px solid rgba(212, 169, 66, 0.2);
  border-left: 3px solid #d4a942;
  border-radius: 6px;
  padding: 22px 26px;
}
.gov-intro-overline {
  font-size: 0.62rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gov-intro-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.gov-intro p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

/* === Stats cards === */
.gov-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gov-stat {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.gov-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 66, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.gov-stat-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gov-stat-info { flex: 1; min-width: 0; }
.gov-stat-label {
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.gov-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.gov-stat-foot {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === Panels (chart + table) === */
.gov-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}
.gov-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
  gap: 12px;
}
.gov-panel-head h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #fff;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.gov-panel-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.gov-chart {
  padding: 18px 22px;
}
.gov-chart svg { width: 100%; height: auto; }
.gov-chart-legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-muted); }
.gov-chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.gov-chart-legend-dot { width: 8px; height: 8px; border-radius: 2px; }

/* === Table === */
.gov-table-wrap { overflow-x: auto; }
.gov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.gov-table thead {
  background: rgba(10, 37, 64, 0.3);
  border-bottom: 1px solid rgba(212, 169, 66, 0.2);
}
.gov-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #d4a942;
  font-weight: 700;
}
.gov-th-num { text-align: right; }
.gov-th-actions { width: 200px; text-align: center; }
.gov-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
}
.gov-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}
.gov-table tbody tr:hover { background: rgba(212, 169, 66, 0.04); }
.gov-table tbody tr:last-child td { border-bottom: none; }
.gov-td-num { text-align: right; }
.gov-td-pos { color: #4ade80; font-weight: 700; }
.gov-td-neg { color: #f87171; font-weight: 700; }
.gov-td-tax { color: #60a5fa; font-weight: 700; }
.gov-td-actions { text-align: center; white-space: nowrap; }

.gov-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid transparent;
}
.gov-pill--draft { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }
.gov-pill--validated { background: rgba(74, 222, 128, 0.12); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.gov-pill--contested { background: rgba(248, 113, 113, 0.12); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }

.gov-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* === Buttons === */
.gov-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s ease;
  background: transparent;
}
.gov-btn--primary {
  background: linear-gradient(135deg, #d4a942, #b88f2e);
  color: #0a2540;
  border-color: transparent;
}
.gov-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 169, 66, 0.3);
}
.gov-btn--ghost {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
}
.gov-btn--ghost:hover {
  color: #fff;
  border-color: rgba(212, 169, 66, 0.4);
  background: rgba(212, 169, 66, 0.06);
}
.gov-btn--sm { padding: 5px 10px; font-size: 0.74rem; }
.gov-btn--xs { padding: 4px 10px; font-size: 0.7rem; font-weight: 700; }
.gov-btn--ok { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.gov-btn--ok:hover { background: rgba(74, 222, 128, 0.15); border-color: #4ade80; }
.gov-btn--ko { color: #f87171; border-color: rgba(248, 113, 113, 0.4); }
.gov-btn--ko:hover { background: rgba(248, 113, 113, 0.15); border-color: #f87171; }

/* === Alert === */
.gov-alert {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-left: 4px solid #f87171;
  border-radius: 4px;
  color: #fca5a5;
  font-size: 0.88rem;
  align-items: flex-start;
}
.gov-alert svg { color: #f87171; flex-shrink: 0; margin-top: 1px; }

/* === Footer === */
.gov-footer {
  background: linear-gradient(180deg, #0a1424 0%, #061018 100%);
  border-top: 3px solid #d4a942;
  margin-top: 40px;
}
.gov-footer-top {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.gov-footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #d4a942;
  margin: 0 0 12px;
}
.gov-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}
.gov-footer-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.gov-footer-col a:hover { color: #d4a942; }
.gov-footer-col p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 12px 0 0;
}
.gov-footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.gov-footer-seal { width: 56px; height: 56px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
.gov-footer-logo strong { display: block; font-size: 1rem; color: #fff; font-weight: 700; }
.gov-footer-logo span { font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); font-style: italic; }

.gov-footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 900px) {
  .gov-body { grid-template-columns: 1fr; }
  .gov-stats { grid-template-columns: 1fr; }
  .gov-service-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .gov-footer-top { grid-template-columns: 1fr; }
  .gov-topbar-inner { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ============================================================
   IRS — VIEW MODE TOGGLE (Document ↔ Terminal)
   ============================================================ */
.irs-mode-toggle {
  display: inline-flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 10;
}
.irs-mode-toggle {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.irs-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s ease;
}
.irs-mode-btn:hover { color: var(--text-white); }
.irs-mode-btn--active {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.2), rgba(212, 169, 66, 0.08));
  color: #d4a942;
  box-shadow: 0 0 12px rgba(212, 169, 66, 0.15);
}

/* ============================================================
   IRS — TERMINAL / CLI MODE
   ============================================================ */
.irs-term {
  max-width: 1100px;
  margin: 0 auto 60px;
  background: #0a0e0a;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(74, 222, 128, 0.08);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  position: relative;
  isolation: isolate;
  animation: irs-term-boot 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
@keyframes irs-term-boot {
  from { opacity: 0; transform: translateY(20px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* CRT scanlines effect (very subtle) */
.irs-term::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(74, 222, 128, 0.015) 2px, rgba(74, 222, 128, 0.015) 4px);
  pointer-events: none;
  z-index: 2;
}
.irs-term::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

/* === Terminal title bar === */
.irs-term-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #1a1f1a 0%, #131713 100%);
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
  position: relative;
  z-index: 3;
}
.irs-term-dots { display: flex; gap: 6px; }
.irs-term-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.irs-term-dot--r { background: #ff5f57; }
.irs-term-dot--y { background: #febc2e; }
.irs-term-dot--g { background: #28c840; }
.irs-term-title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.4px;
}

/* === Terminal screen === */
.irs-term-screen {
  background: #0a0e0a;
  color: #4ade80;
  padding: 24px 28px;
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
  position: relative;
  z-index: 1;
  min-height: 400px;
}
.irs-term-prompt { color: #4ade80; font-weight: 700; }
.irs-term-sep { color: rgba(255, 255, 255, 0.3); }
.irs-term-path { color: #60a5fa; }
.irs-term-cmd { color: #f1f5f9; }
.irs-term-dim { color: rgba(74, 222, 128, 0.35); text-shadow: none; }
.irs-term-key { color: #d4a942; text-shadow: 0 0 6px rgba(212, 169, 66, 0.3); }
.irs-term-val { color: #f1f5f9; text-shadow: none; }
.irs-term-amber { color: #d4a942; text-shadow: 0 0 6px rgba(212, 169, 66, 0.3); }
.irs-term-warn { color: #f87171; text-shadow: 0 0 6px rgba(248, 113, 113, 0.3); }
.irs-term-ok { color: #4ade80; font-weight: 700; }

/* Blinking cursor */
.irs-term-blink {
  background: #4ade80;
  color: transparent;
  animation: irs-term-blink 1s steps(1) infinite;
  display: inline-block;
  width: 0.6em;
  height: 1em;
  vertical-align: middle;
  box-shadow: 0 0 8px #4ade80;
}
@keyframes irs-term-blink {
  50% { background: transparent; box-shadow: none; }
}

/* === Status bar === */
.irs-term-statusbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 16px;
  background: linear-gradient(180deg, #131713 0%, #0e120e 100%);
  border-top: 1px solid rgba(74, 222, 128, 0.15);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 3;
}
.irs-term-status-item { white-space: nowrap; }
.irs-term-status-spacer { flex: 1; }
.irs-term-statusbar .irs-term-ok { font-size: 0.6rem; }

/* === Quick action buttons === */
.irs-term-actions {
  padding: 14px 16px;
  background: #0e120e;
  border-top: 1px solid rgba(74, 222, 128, 0.1);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  z-index: 3;
}
.irs-term-actions-label {
  font-size: 0.72rem;
  color: rgba(74, 222, 128, 0.6);
  margin-right: 8px;
}
.irs-term-action {
  background: rgba(74, 222, 128, 0.05);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.irs-term-action:hover {
  background: rgba(74, 222, 128, 0.15);
  border-color: #4ade80;
  text-shadow: 0 0 6px #4ade80;
  transform: translateY(-1px);
}
.irs-term-action--ok { background: rgba(74, 222, 128, 0.08); }
.irs-term-action--ko {
  background: rgba(248, 113, 113, 0.06);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}
.irs-term-action--ko:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: #f87171;
  text-shadow: 0 0 6px #f87171;
}

/* Mobile */
@media (max-width: 768px) {
  .irs-term-screen { font-size: 0.7rem; padding: 14px; }
  .irs-term-statusbar { flex-wrap: wrap; gap: 8px; font-size: 0.62rem; }
  .irs-term-actions { padding: 10px; }
  .irs-term-action { font-size: 0.65rem; padding: 5px 8px; }
}

/* ============================================================
   IRS — HUB (calendar of all weekly declarations)
   ============================================================ */
.irs-hub-bar {
  background: linear-gradient(180deg, #0a2540 0%, #061a30 100%);
  border-bottom: 2px solid #d4a942;
  padding: 14px 0;
  margin-top: var(--nav-height);
}
.irs-hub-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.irs-hub-bar-gov {
  display: flex;
  align-items: center;
  gap: 14px;
}
.irs-hub-bar-seal {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  flex-shrink: 0;
}
.irs-hub-bar-seal--state {
  width: 44px;
  height: 44px;
  margin-left: -10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px;
}
.irs-hub-bar-gov-text {
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(212, 169, 66, 0.3);
}
.irs-hub-bar-overline {
  font-size: 0.6rem;
  letter-spacing: 1.8px;
  color: rgba(212, 169, 66, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.irs-hub-bar-name {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1.1;
}
.irs-hub-bar-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin-top: 2px;
}
.irs-hub-bar-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.irs-hub-bar-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.irs-hub-bar-meta-label {
  font-size: 0.6rem;
  letter-spacing: 1.4px;
  color: rgba(212, 169, 66, 0.65);
  text-transform: uppercase;
  font-weight: 700;
}
.irs-hub-bar-meta-item strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.irs-hub-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  color: #4ade80;
  font-weight: 600;
}

.irs-hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* Hub intro */
.irs-hub-intro {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.irs-hub-intro-overline {
  font-size: 0.62rem;
  letter-spacing: 2.4px;
  color: #d4a942;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.irs-hub-intro-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.irs-hub-intro-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

/* Hub stats */
.irs-hub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.irs-hub-stat {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 18px 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.irs-hub-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 169, 66, 0.25);
}
.irs-hub-stat--positive { border-color: rgba(74, 222, 128, 0.18); }
.irs-hub-stat--positive .irs-hub-stat-value { color: #4ade80; }
.irs-hub-stat--tax {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.06), rgba(212, 169, 66, 0.02));
  border-color: rgba(212, 169, 66, 0.25);
}
.irs-hub-stat--tax .irs-hub-stat-value { color: #d4a942; }
.irs-hub-stat-label {
  font-size: 0.62rem;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.irs-hub-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.irs-hub-stat-foot {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}
.irs-hub-stat-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

/* Months sections */
.irs-hub-month {
  margin-bottom: 30px;
}
.irs-hub-month-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(212, 169, 66, 0.25);
}
.irs-hub-month-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.irs-hub-month-title span {
  color: rgba(212, 169, 66, 0.75);
  font-weight: 500;
  margin-left: 8px;
  font-style: italic;
}
.irs-hub-month-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Weeks list */
.irs-hub-weeks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.irs-hub-week {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.irs-hub-week:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 169, 66, 0.3);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.irs-hub-week--validated { border-left-color: #4ade80; }
.irs-hub-week--contested { border-left-color: #f87171; }
.irs-hub-week--draft { border-left-color: rgba(148, 163, 184, 0.5); }

/* Date column (calendar style) */
.irs-hub-week-date {
  text-align: center;
  background: rgba(212, 169, 66, 0.04);
  border: 1px solid rgba(212, 169, 66, 0.2);
  border-radius: 6px;
  padding: 8px 4px;
}
.irs-hub-week-day {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.irs-hub-week-day span {
  font-weight: 400;
  color: rgba(212, 169, 66, 0.6);
  margin: 0 2px;
  font-size: 0.85rem;
}
.irs-hub-week-month {
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  color: #d4a942;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 4px;
}
.irs-hub-week-num {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.5px;
}

/* Body */
.irs-hub-week-body {
  flex: 1;
  min-width: 0;
}
.irs-hub-week-period {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}
.irs-hub-week-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}
.irs-hub-week-stats span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.irs-hub-week-stats em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.irs-hub-week-stats strong {
  color: #fff;
  font-weight: 700;
}

/* Right (status + button) */
.irs-hub-week-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.irs-hub-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #d4a942, #b88f2e);
  color: #0a2540;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(212, 169, 66, 0.18);
}
.irs-hub-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 169, 66, 0.32);
}
.irs-hub-view-btn svg:last-child {
  transition: transform 0.15s ease;
}
.irs-hub-view-btn:hover svg:last-child { transform: translateX(3px); }

/* Empty */
.irs-hub-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.irs-hub-empty-icon { font-size: 2.4rem; opacity: 0.4; margin-bottom: 14px; }
.irs-hub-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 6px;
}
.irs-hub-empty p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* Mobile */
@media (max-width: 768px) {
  .irs-hub-week { grid-template-columns: 80px 1fr; gap: 14px; padding: 14px; }
  .irs-hub-week-right { grid-column: 1 / -1; justify-content: space-between; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.06); }
  .irs-hub-stats { grid-template-columns: 1fr 1fr; }
  .irs-hub-bar-inner { flex-direction: column; align-items: flex-start; }
  .irs-hub-bar-seal { width: 40px; height: 40px; }
  .irs-hub-bar-seal--state { width: 36px; height: 36px; }
  .irs-hub-bar-gov-text { padding-left: 10px; }
  .irs-hub-bar-name { font-size: 0.95rem; }
}

/* ============================================================
   IRS — DOCUMENT BACK BAR (sticky bar above document)
   ============================================================ */
.irs-back-bar {
  background: linear-gradient(180deg, #0a2540 0%, #061a30 100%);
  border-bottom: 2px solid #d4a942;
  padding: 12px 0;
  margin-top: var(--nav-height);
}
.irs-back-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.irs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(212, 169, 66, 0.08);
  color: #d4a942;
  border: 1px solid rgba(212, 169, 66, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s ease;
}
.irs-back-btn:hover {
  background: rgba(212, 169, 66, 0.18);
  border-color: rgba(212, 169, 66, 0.5);
  transform: translateX(-2px);
}
.irs-back-btn svg { transition: transform 0.15s ease; }
.irs-back-btn:hover svg { transform: translateX(-2px); }
.irs-back-bar-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.irs-back-bar-meta strong { color: #d4a942; font-weight: 700; }
.irs-back-bar-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid;
}
.irs-back-bar-status--draft { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }
.irs-back-bar-status--validated { background: rgba(74, 222, 128, 0.12); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
.irs-back-bar-status--contested { background: rgba(248, 113, 113, 0.12); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.irs-back-bar-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
.irs-back-bar-clock strong { color: #fff; font-weight: 700; }

/* ============================================================
   IRS — DOC NUMBERS GRID (per-week breakdown table)
   ============================================================ */
.irs-doc-numbers-grid {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 169, 66, 0.18);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.irs-doc-num-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  transition: background 0.15s;
}
.irs-doc-num-row:last-child { border-bottom: none; }
.irs-doc-num-row:hover { background: rgba(212, 169, 66, 0.03); }
.irs-doc-num-row-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.irs-doc-num-row-value {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.irs-doc-num-row--neg .irs-doc-num-row-value { color: #f87171; }
.irs-doc-num-row--info { opacity: 0.75; }
.irs-doc-num-row--info .irs-doc-num-row-label { font-style: italic; }
.irs-doc-num-row--start {
  background: rgba(212, 169, 66, 0.05);
  border-bottom: 2px solid rgba(212, 169, 66, 0.2);
}
.irs-doc-num-row--start .irs-doc-num-row-label {
  font-weight: 700;
  color: #fff;
}
.irs-doc-num-row--total {
  background: rgba(212, 169, 66, 0.04);
  border-top: 2px solid rgba(212, 169, 66, 0.3);
  border-bottom: 2px solid rgba(212, 169, 66, 0.3);
  padding: 16px 20px;
}
.irs-doc-num-row--total .irs-doc-num-row-label {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.78rem;
}
.irs-doc-num-row--total .irs-doc-num-row-value {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.irs-doc-num-row--tax {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.1), rgba(212, 169, 66, 0.04));
}
.irs-doc-num-row--tax .irs-doc-num-row-label {
  color: #d4a942;
  font-weight: 700;
}
.irs-doc-num-row--tax .irs-doc-num-row-value {
  color: #d4a942;
  font-size: 1.1rem;
  font-weight: 800;
}

/* ============================================================
   IRS — METADATA BAR (above document, between navbar)
   ============================================================ */
.irs-meta-bar {
  background: linear-gradient(180deg, #0a2540 0%, #061a30 100%);
  border-bottom: 2px solid #d4a942;
  padding: 12px 0;
  margin-top: var(--nav-height);
  position: relative;
}
.irs-meta-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #d4a942 50%, transparent 100%);
}
.irs-meta-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.irs-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}
.irs-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  background: rgba(212, 169, 66, 0.12);
  color: #d4a942;
  font-weight: 700;
  font-size: 0.78rem;
}
.irs-meta-label {
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(212, 169, 66, 0.7);
  font-weight: 700;
}
.irs-meta-item strong {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.irs-meta-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
}
.irs-meta-spacer { flex: 1; }
.irs-meta-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 999px;
  font-size: 0.74rem;
  color: #4ade80;
  font-weight: 600;
}
.irs-meta-status-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 6px #4ade80;
}
.irs-meta-status-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #4ade80;
  opacity: 0.4;
  animation: irs-live-pulse 1.6s ease-in-out infinite;
}

/* ============================================================
   IRS — OFFICIAL DOCUMENT LAYOUT (narrative, letter-style)
   ============================================================ */

.irs-doc {
  max-width: 920px;
  margin: 32px auto 60px;
  background:
    linear-gradient(180deg, #0e1828 0%, #0a1220 100%);
  border: 1px solid rgba(212, 169, 66, 0.25);
  border-radius: 4px;
  padding: 56px 80px 48px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.4),
    -2px 0 0 rgba(212, 169, 66, 0.15) inset;
  font-family: 'Inter', sans-serif;
  color: #e6e9ee;
  line-height: 1.65;
  isolation: isolate;
  animation: irs-doc-in 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Paper texture (subtle noise) */
.irs-doc-paper-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 169, 66, 0.012) 0, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.015) 0, transparent 50%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.005) 0, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 0;
}

/* Binder holes (3 perforations on the left edge) */
.irs-doc-binder {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  z-index: 5;
  pointer-events: none;
}
.irs-doc-binder span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #050810 0%, #1a1f2c 70%, #050810 100%);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Page corner fold effect (top-right) */
.irs-doc-corner-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(225deg, #050810 0%, #050810 50%, transparent 50%);
  z-index: 4;
  pointer-events: none;
}
.irs-doc-corner-fold::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(225deg, transparent 50%, rgba(212, 169, 66, 0.12) 50%, rgba(212, 169, 66, 0.04) 100%);
}
@keyframes irs-doc-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Watermark diagonal */
.irs-doc-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  letter-spacing: 14px;
  font-weight: 700;
  color: rgba(212, 169, 66, 0.025);
  transform: rotate(-30deg) scale(2.5);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}

/* === LETTERHEAD === */
.irs-doc-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 2px double rgba(212, 169, 66, 0.4);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.irs-doc-letterhead-left {
  display: flex;
  gap: 18px;
  align-items: center;
}
.irs-doc-letterhead-seal {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4));
}
.irs-doc-letterhead-org {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.irs-doc-letterhead-sub {
  font-size: 0.78rem;
  color: rgba(212, 169, 66, 0.8);
  font-style: italic;
  margin-top: 2px;
}
.irs-doc-letterhead-addr {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Corner stamp */
.irs-doc-stamp-corner {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.irs-doc-stamp-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px double rgba(220, 38, 38, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-15deg);
  position: relative;
  background: rgba(220, 38, 38, 0.05);
}
.irs-doc-stamp-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(220, 38, 38, 0.3);
}
.irs-doc-stamp-ring span {
  font-size: 0.74rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: rgba(220, 38, 38, 0.85);
  text-transform: uppercase;
}

/* === REFERENCE BLOCK === */
.irs-doc-ref {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid #d4a942;
  padding: 14px 18px;
  border-radius: 3px;
  margin-bottom: 28px;
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
}
.irs-doc-ref > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.irs-doc-ref span {
  font-size: 0.6rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.irs-doc-ref strong {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.irs-doc-ref-status { color: #4ade80 !important; }

/* === RECIPIENT (with seals) === */
.irs-doc-recipient {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: rgba(212, 169, 66, 0.04);
  border: 1px solid rgba(212, 169, 66, 0.18);
  border-radius: 6px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.irs-doc-recipient-seals {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.irs-doc-recipient-seal {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.irs-doc-recipient-seal--state {
  width: 42px;
  height: 42px;
  margin-left: -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px;
}
.irs-doc-recipient-text {
  flex: 1;
  min-width: 0;
  border-left: 1px solid rgba(212, 169, 66, 0.25);
  padding-left: 18px;
}
.irs-doc-recipient-label {
  font-size: 0.7rem;
  color: rgba(212, 169, 66, 0.75);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 700;
  margin-bottom: 4px;
}
.irs-doc-recipient-name {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
  line-height: 1.15;
}
.irs-doc-recipient-addr {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* === SUBJECT === */
.irs-doc-subject {
  padding: 12px 16px;
  background: rgba(212, 169, 66, 0.06);
  border: 1px solid rgba(212, 169, 66, 0.2);
  border-radius: 3px;
  margin-bottom: 32px;
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}
.irs-doc-subject-label {
  font-weight: 700;
  color: #d4a942;
  margin-right: 8px;
}
.irs-doc-subject-value { color: #fff; font-weight: 500; }

/* === GREETING & BODY === */
.irs-doc-greeting {
  font-size: 1rem;
  font-style: italic;
  color: #fff;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}
.irs-doc-body {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
  position: relative;
  z-index: 1;
  text-align: justify;
  hyphens: auto;
}
.irs-doc-body p { margin: 0 0 18px; }
.irs-doc-body p:last-child { margin-bottom: 0; }
.irs-doc-body strong { color: #fff; font-weight: 700; }
.irs-doc-body em { color: #d4a942; font-style: normal; font-weight: 500; }

/* Drop cap removed — kept stub for any legacy refs */
.irs-doc-first-p { text-indent: 0; }
.irs-doc-dropcap { display: none; }

/* Numbers in narrative — highlighted */
.irs-doc-num {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0 2px;
  color: #fff;
  font-size: 1.05em;
  letter-spacing: -0.2px;
}
.irs-doc-num--ca {
  background: linear-gradient(135deg, rgba(212, 169, 66, 0.15), rgba(212, 169, 66, 0.05));
  border-color: rgba(212, 169, 66, 0.4);
  color: #d4a942;
  box-shadow: 0 0 0 0 rgba(212, 169, 66, 0.4);
  animation: irs-num-pulse 3s ease-out 0.5s 1;
}
.irs-doc-num--benefit {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(74, 222, 128, 0.05));
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
  animation: irs-num-pulse 3s ease-out 0.9s 1;
}
.irs-doc-num--tax {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(248, 113, 113, 0.05));
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
  animation: irs-num-pulse 3s ease-out 1.3s 1;
}
@keyframes irs-num-pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  20% { box-shadow: 0 0 24px 0 currentColor; opacity: 0.7; }
}

/* === FIGURE === */
.irs-doc-figure {
  margin: 32px -20px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  position: relative;
  z-index: 1;
}
.irs-doc-figcaption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  margin-bottom: 14px;
  text-align: center;
}
.irs-doc-figcaption-num {
  font-style: normal;
  font-weight: 700;
  color: #d4a942;
  letter-spacing: 1.4px;
  margin-right: 8px;
  font-size: 0.72rem;
}
.irs-doc-chart svg { width: 100%; height: auto; }

/* === H3 SECTION TITLE === */
.irs-doc-h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #fff;
  margin: 36px 0 4px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  padding-left: 14px;
  border-left: 3px solid #d4a942;
}
.irs-doc-h3-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin: 0 0 18px 14px;
  position: relative;
  z-index: 1;
}

/* === DECLARATIONS LIST === */
.irs-doc-decls {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}
.irs-doc-empty {
  padding: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.02);
  font-style: italic;
}
.irs-doc-decl {
  display: grid;
  grid-template-columns: 50px 220px 1fr auto;
  gap: 18px;
  padding: 14px 18px;
  background: #0e1726;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.irs-doc-decl:hover { background: #131c2e; }
.irs-doc-decl--validated { box-shadow: inset 3px 0 0 #4ade80; }
.irs-doc-decl--contested { box-shadow: inset 3px 0 0 #f87171; }
.irs-doc-decl--draft { box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.5); }
.irs-doc-decl-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(212, 169, 66, 0.7);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.irs-doc-decl-period { display: flex; flex-direction: column; gap: 5px; }
.irs-doc-decl-week {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}
.irs-doc-decl-numbers {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.irs-doc-decl-numbers > div { display: flex; flex-direction: column; gap: 2px; }
.irs-doc-decl-numbers span {
  font-size: 0.6rem;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  font-weight: 600;
}
.irs-doc-decl-numbers strong {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.irs-doc-pos { color: #4ade80 !important; }
.irs-doc-neg { color: #f87171 !important; }
.irs-doc-decl-actions { display: flex; gap: 6px; }
.irs-doc-action {
  padding: 5px 12px;
  border: 1px solid;
  background: transparent;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.4px;
  transition: all 0.15s ease;
}
.irs-doc-action--ok { color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.irs-doc-action--ok:hover { background: rgba(74, 222, 128, 0.15); border-color: #4ade80; }
.irs-doc-action--ko { color: #f87171; border-color: rgba(248, 113, 113, 0.4); }
.irs-doc-action--ko:hover { background: rgba(248, 113, 113, 0.15); border-color: #f87171; }

/* === WARNING === */
.irs-doc-warning {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-left: 3px solid #f87171;
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 0.88rem;
  color: #fca5a5;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* === CLOSING === */
.irs-doc-closing { margin-top: 24px; font-style: italic; color: rgba(255, 255, 255, 0.75); }

/* === SIGNATURES (compact side-by-side) === */
.irs-doc-sigs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 169, 66, 0.25);
  position: relative;
  z-index: 1;
}
.irs-doc-sig {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  position: relative;
}
.irs-doc-sig--receiver {
  background: rgba(212, 169, 66, 0.04);
  border-color: rgba(212, 169, 66, 0.2);
}
.irs-doc-sig-label {
  font-size: 0.58rem;
  letter-spacing: 1.4px;
  color: #d4a942;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}
.irs-doc-sig-place {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-bottom: 4px;
}
.irs-doc-sig-img {
  margin: 4px 0 2px;
  min-height: 42px;
  max-height: 48px;
  overflow: hidden;
}
.irs-doc-sig-img svg {
  display: block;
  max-width: 100%;
  height: 44px;
}
.irs-doc-sig-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-top: 4px;
}
.irs-doc-sig-title {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  line-height: 1.4;
}

/* IRS reception stamp (round, compact) */
.irs-doc-receipt-stamp {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0;
  min-height: 72px;
}
.irs-doc-receipt-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px double;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  position: relative;
  animation: stamp-drop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.irs-doc-receipt-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.3;
}
@keyframes stamp-drop {
  from { transform: rotate(-12deg) scale(1.8); opacity: 0; }
  to { transform: rotate(-12deg) scale(1); opacity: 1; }
}
.irs-doc-receipt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
  padding: 0 4px;
}
.irs-doc-receipt-top {
  font-size: 0.54rem;
  letter-spacing: 1px;
  line-height: 1.1;
}
.irs-doc-receipt-mid {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.irs-doc-receipt-bot {
  font-size: 0.48rem;
  letter-spacing: 1px;
  opacity: 0.8;
  line-height: 1.1;
}
.irs-doc-receipt-pending-icon { font-size: 1.1rem; }
.irs-doc-receipt-pending-label {
  font-size: 0.54rem !important;
  letter-spacing: 1px;
}
.irs-doc-receipt-pending-sub {
  font-size: 0.46rem !important;
  letter-spacing: 0.8px;
}

/* VALIDATED (green) */
.irs-doc-receipt-stamp--ok .irs-doc-receipt-ring {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(74, 222, 128, 0.06);
  box-shadow: 0 2px 10px rgba(74, 222, 128, 0.2);
  color: #4ade80;
}
.irs-doc-receipt-stamp--ok .irs-doc-receipt-top,
.irs-doc-receipt-stamp--ok .irs-doc-receipt-mid,
.irs-doc-receipt-stamp--ok .irs-doc-receipt-bot { color: rgba(74, 222, 128, 0.95); }

/* CONTESTED (red) */
.irs-doc-receipt-stamp--ko .irs-doc-receipt-ring {
  border-color: rgba(220, 38, 38, 0.7);
  background: rgba(220, 38, 38, 0.06);
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.2);
  color: #f87171;
}
.irs-doc-receipt-stamp--ko .irs-doc-receipt-top,
.irs-doc-receipt-stamp--ko .irs-doc-receipt-mid,
.irs-doc-receipt-stamp--ko .irs-doc-receipt-bot { color: rgba(248, 113, 113, 0.95); }

/* PENDING (grey dashed) */
.irs-doc-receipt-stamp--pending .irs-doc-receipt-ring {
  border: 2px dashed rgba(212, 169, 66, 0.5);
  background: rgba(212, 169, 66, 0.03);
  color: rgba(212, 169, 66, 0.65);
  animation: stamp-drop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), stamp-pending-pulse 2.4s ease-in-out infinite;
}
.irs-doc-receipt-ring--empty::before { display: none; }
@keyframes stamp-pending-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; box-shadow: 0 0 14px rgba(212, 169, 66, 0.2); }
}
.irs-doc-receipt-pending-icon { font-size: 1.4rem; filter: grayscale(0.2); }
.irs-doc-receipt-pending-label {
  font-size: 0.66rem;
  letter-spacing: 1.4px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(212, 169, 66, 0.85);
}
.irs-doc-receipt-pending-sub {
  font-size: 0.56rem;
  letter-spacing: 1.2px;
  color: rgba(212, 169, 66, 0.6);
  text-transform: uppercase;
}

/* Contest reason callout */
.irs-doc-receipt-reason {
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(248, 113, 113, 0.08);
  border-left: 2px solid #f87171;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #fca5a5;
  font-style: italic;
  text-align: left;
}

/* Gov action buttons block (compact) */
.irs-doc-gov-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(212, 169, 66, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.irs-doc-gov-actions--pending {
  background: rgba(212, 169, 66, 0.04);
  border: 1px solid rgba(212, 169, 66, 0.2);
  border-radius: 4px;
  padding: 8px 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(212, 169, 66, 0.2);
}
.irs-doc-gov-actions-label {
  font-size: 0.58rem;
  color: #d4a942;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 700;
}
.irs-doc-gov-actions-row {
  display: flex;
  gap: 6px;
}
.irs-doc-gov-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s ease;
  background: transparent;
  white-space: nowrap;
}
.irs-doc-gov-btn svg { width: 12px; height: 12px; }
.irs-doc-gov-btn--ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.06);
}
.irs-doc-gov-btn--ok:hover {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  color: #052e16;
  border-color: #4ade80;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.25);
}
.irs-doc-gov-btn--ko {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.04);
}
.irs-doc-gov-btn--ko:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: #f87171;
  transform: translateY(-1px);
}

/* Receiver block status variants (border color) */
.irs-doc-sig--validated { border-color: rgba(74, 222, 128, 0.35) !important; background: rgba(74, 222, 128, 0.04) !important; }
.irs-doc-sig--contested { border-color: rgba(248, 113, 113, 0.35) !important; background: rgba(248, 113, 113, 0.04) !important; }
.irs-doc-sig--pending { border-style: dashed !important; border-color: rgba(212, 169, 66, 0.25) !important; }

/* Old single-signature kept for backward compat (unused) */
.irs-doc-signature {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}
.irs-doc-signature-block { flex: 1; max-width: 280px; }
.irs-doc-signature-img {
  margin-bottom: 6px;
  opacity: 0.9;
}
.irs-doc-signature-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}
.irs-doc-signature-title {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin-top: 2px;
}
.irs-doc-signature-stamp {
  position: relative;
}
.irs-doc-signature-seal {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
  transform: rotate(-8deg);
  opacity: 0.9;
}

/* === FOOTER (simple & clean) === */
.irs-doc-footer {
  margin-top: 32px;
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

/* Decorative divider with diamond */
.irs-doc-footer-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.irs-doc-footer-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 169, 66, 0.4) 50%, transparent 100%);
}
.irs-doc-footer-divider-mark {
  color: rgba(212, 169, 66, 0.6);
  font-size: 0.7rem;
  text-shadow: 0 0 6px rgba(212, 169, 66, 0.3);
}

.irs-doc-footer-line {
  margin: 4px 0;
  line-height: 1.5;
}
.irs-doc-footer-line--main {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}
.irs-doc-footer-line--main strong {
  color: rgba(212, 169, 66, 0.9);
  font-weight: 700;
}
.irs-doc-footer-line--mention {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  margin-top: 6px;
}
.irs-doc-footer-line--copy {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 10px;
  letter-spacing: 0.3px;
}

/* Cert block (barcode + QR) */
.irs-doc-footer-cert {
  display: flex;
  gap: 14px;
  align-items: center;
}
.irs-doc-barcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.irs-doc-barcode svg {
  display: block;
}
.irs-doc-barcode-num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  color: #0a0a12;
  font-weight: 700;
}
.irs-doc-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.irs-doc-qr-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
}
.irs-doc-footer-mention {
  font-size: 0.65rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  line-height: 1.5;
  max-width: 480px;
}
.irs-doc-footer-left { line-height: 1.6; font-variant-numeric: tabular-nums; }
.irs-doc-footer-actions { display: flex; gap: 6px; }
.irs-doc-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s ease;
}
.irs-doc-footer-btn:hover {
  color: #d4a942;
  border-color: rgba(212, 169, 66, 0.4);
  background: rgba(212, 169, 66, 0.06);
}

/* Mobile */
@media (max-width: 768px) {
  .irs-doc { padding: 32px 24px 28px; margin: 16px 12px 40px; }
  .irs-doc-letterhead { flex-direction: column; gap: 16px; }
  .irs-doc-ref { grid-template-columns: 1fr 1fr; }
  .irs-doc-decl { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .irs-doc-decl-num { text-align: left; }
  .irs-doc-decl-numbers { gap: 14px; }
  .irs-doc-signature { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
  .irs-doc-watermark { display: none; }
  .irs-doc-figure { margin: 24px 0; padding: 16px; }
  .irs-doc-binder { display: none; }
  .irs-doc-corner-fold { display: none; }
  .irs-doc-sigs { grid-template-columns: 1fr; gap: 16px; }
  .irs-meta-bar-inner { gap: 8px; }
  .irs-meta-sep { display: none; }
}

/* Print */
@media print {
  .irs-doc { box-shadow: none; border: 1px solid #000; background: #fff; color: #000; padding: 40px; }
  .irs-doc * { color: #000 !important; }
  .irs-doc-num { background: #f1f5f9 !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
}

/* ============================================================
   IRS — WOW Effects (particles, 3D tilt, stamp, animated borders)
   ============================================================ */

/* — Floating gold particles in banner — */
.irs-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.irs-particle {
  position: absolute;
  bottom: -10px;
  background: radial-gradient(circle, #fbbf24 0%, rgba(251, 191, 36, 0.4) 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0;
  animation: irs-float-up linear infinite;
  filter: blur(0.5px);
}
@keyframes irs-float-up {
  0% { transform: translateY(0) translateX(0) scale(0.5); opacity: 0; }
  10% { opacity: 0.8; }
  50% { transform: translateY(-90px) translateX(10px) scale(1); opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-180px) translateX(-10px) scale(0.3); opacity: 0; }
}

/* — 3D tilt on cards (perspective) — */
.irs-kpi, .irs-bento-card, .irs-kpi-clean, .irs-sub-card, .irs-stat, .irs-insight, .irs-decl-card {
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, box-shadow 0.2s;
  will-change: transform;
}

/* — Animated gradient border (rotating conic) on Last Declaration — */
.irs-last-decl {
  position: relative;
  isolation: isolate;
}
.irs-last-decl::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent 0deg, #d4a942 30deg, transparent 90deg, transparent 180deg, #4ade80 210deg, transparent 270deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: irs-border-rotate 6s linear infinite;
  z-index: -1;
  opacity: 0.6;
}
@keyframes irs-border-rotate {
  to { transform: rotate(360deg); }
}

/* — Stamp animation overlay — */
.irs-stamp-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  animation: irs-stamp-bg-in 0.3s ease;
}
.irs-stamp-overlay--out {
  animation: irs-stamp-bg-out 0.6s ease forwards;
}
@keyframes irs-stamp-bg-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes irs-stamp-bg-out {
  to { opacity: 0; }
}
.irs-stamp {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--stamp-color, #16a34a);
  text-transform: uppercase;
  border: 6px solid var(--stamp-color, #16a34a);
  padding: 18px 48px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.85);
  text-shadow: 0 0 20px var(--stamp-color);
  box-shadow: 0 0 40px var(--stamp-color), inset 0 0 20px rgba(0, 0, 0, 0.5);
  transform: rotate(-12deg) scale(0);
  animation: irs-stamp-drop 0.6s cubic-bezier(0.5, -0.5, 0.5, 1.5) forwards, irs-stamp-shake 0.3s ease 0.6s;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}
.irs-stamp::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px solid var(--stamp-color, #16a34a);
  border-radius: 4px;
  opacity: 0.5;
}
@keyframes irs-stamp-drop {
  0% { transform: rotate(-12deg) scale(3); opacity: 0; }
  60% { transform: rotate(-12deg) scale(0.85); opacity: 1; }
  80% { transform: rotate(-9deg) scale(1.05); }
  100% { transform: rotate(-12deg) scale(1); opacity: 1; }
}
@keyframes irs-stamp-shake {
  0%, 100% { transform: rotate(-12deg); }
  25% { transform: rotate(-13deg); }
  75% { transform: rotate(-11deg); }
}
.irs-stamp-overlay--out .irs-stamp {
  animation: irs-stamp-fadeout 0.6s ease forwards;
}
@keyframes irs-stamp-fadeout {
  to { opacity: 0; transform: rotate(-12deg) scale(1.3); }
}

/* — Tab content transition (slide horizontal) — */
.irs-tab-content { animation: irs-tab-slide-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes irs-tab-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* — Pulse glow on Last Declaration on first load — */
.irs-last-decl {
  animation: irs-pulse-glow 3s ease-out 0.5s 1;
}
@keyframes irs-pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(212, 169, 66, 0); }
  30% { box-shadow: 0 0 30px 4px rgba(212, 169, 66, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(212, 169, 66, 0); }
}

/* — Status dot enhanced glow — */
.irs-doc-status-dot {
  box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74, 222, 128, 0.4);
}

/* — Smooth entrance for nav tabs underline — */
.irs-nav-tab {
  transition: color 0.25s ease;
}

/* — Subtle shine on KPI hover — */
.irs-stat::before, .irs-kpi-clean::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.irs-stat:hover::before, .irs-kpi-clean:hover::before {
  left: 150%;
}

