/* Micro-Serenite — Shared Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

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

:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-soft: #5a5a5a;
  --accent: #1b6b5a;
  --accent-light: #e8f5f0;
  --accent-dark: #145a4a;
  --warm: #d4a853;
  --warm-light: #fdf6e3;
  --border: #e8e6e1;
  --radius: 16px;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --blue: #2563eb;
  --blue-light: #eff6ff;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ─── NAV ──────────────────────────────────────────────── */
nav { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--accent); text-decoration: none; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-price { font-size: 0.85rem; color: var(--text-soft); background: var(--surface); padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border); }
.nav-price strong { color: var(--accent); }
.nav-user { font-size: 0.85rem; color: var(--text-soft); display: flex; align-items: center; gap: 16px; }
.nav-user a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 1rem; font-family: inherit; cursor: pointer; text-decoration: none; border: none; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--accent); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-danger { background: var(--danger-light); color: var(--danger); border: 1px solid #fecaca; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; border-radius: 10px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── FORMS ────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }
.form-group label small { font-weight: 400; color: var(--text-soft); }
.form-group input, .form-group select { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: inherit; background: var(--bg); transition: border-color 0.2s; appearance: none; -webkit-appearance: none; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.checkbox-group label { font-weight: 500; cursor: pointer; margin-bottom: 0; }

/* ─── CARDS ────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.card-sm { padding: 24px; }

/* ─── ALERTS ───────────────────────────────────────────── */
.alert { padding: 14px 20px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 16px; display: none; }
.alert-error { background: var(--danger-light); color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: var(--accent-light); color: var(--accent); border: 1px solid #a7f3d0; }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #fde68a; }
.alert.show { display: block; }

/* ─── BADGES ───────────────────────────────────────────── */
.badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 6px; color: #fff; white-space: nowrap; display: inline-block; }
.badge-urssaf { background: #2563eb; }
.badge-cfe { background: #d97706; }
.badge-tva { background: #dc2626; }
.badge-active { background: var(--accent-light); color: var(--accent); }
.badge-free { background: var(--warning-light); color: var(--warning); }
.badge-cancelled { background: var(--danger-light); color: var(--danger); }

/* ─── SECTION TITLES ───────────────────────────────────── */
.section-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-title-sm { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-subtitle { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 36px; }

/* ─── LOADING ──────────────────────────────────────────── */
.loading { text-align: center; padding: 80px 0; }
.spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── DISCLAIMER ───────────────────────────────────────── */
.disclaimer { background: var(--warm-light); border: 1px solid #e8d5a0; border-radius: 10px; padding: 14px 20px; font-size: 0.82rem; color: var(--text-soft); margin: 24px 0; line-height: 1.5; }

/* ─── FOOTER ───────────────────────────────────────────── */
footer { padding: 32px 0; border-top: 1px solid var(--border); margin-top: 40px; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer p { font-size: 0.82rem; color: var(--text-soft); }
footer a { color: var(--accent); text-decoration: none; }
.footer-disclaimer { font-size: 0.75rem; color: #999; max-width: 600px; line-height: 1.5; }

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section-title { font-size: 1.5rem; }
  .card { padding: 24px 20px; }
  footer .container { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 20px; font-size: 0.95rem; }
}

/* ─── POLSIA ANALYTICS SNIPPET ──────────────────────────── */
