/* =====================================================================
   Design system — site public + admin
   Mobile-first · carduri albe · colțuri rotunjite · verde #16a34a
   Font: Manrope (Google Fonts) cu fallback la fonturile de sistem
   ===================================================================== */

:root {
  --primary:       #16a34a;
  --primary-600:   #15803d;
  --primary-700:   #166534;
  --primary-900:   #14532d;
  --primary-50:    #f0fdf4;
  --primary-100:   #dcfce7;
  --accent:        #f59e0b;

  --ink:           #0f172a;
  --text:          #1e293b;
  --muted:         #64748b;
  --border:        #e2e8f0;
  --bg:            #f4f6f5;
  --card:          #ffffff;

  --danger:        #dc2626;
  --danger-bg:     #fee2e2;
  --warn-bg:       #fef9c3;
  --warn-border:   #eab308;

  --radius:        16px;
  --radius-lg:     22px;
  --radius-pill:   999px;

  --shadow-sm:     0 1px 2px rgba(15, 23, 42, .05);
  --shadow:        0 1px 3px rgba(15, 23, 42, .05), 0 10px 30px -12px rgba(15, 23, 42, .12);
  --shadow-lg:     0 4px 10px rgba(15, 23, 42, .05), 0 24px 50px -16px rgba(15, 23, 42, .22);
  --ring:          0 0 0 3px rgba(22, 163, 74, .25);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Atributul HTML `hidden` trebuie să câștige mereu, chiar și pe elemente
   cu display propriu (ex. .btn cu inline-flex). */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* conținutul nu poate forța scroll orizontal */
}

img { max-width: 100%; }

a { color: var(--primary-600); }
a:hover { color: var(--primary-700); }

h1, h2, h3 { color: var(--ink); line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(1.55rem, 3.4vw, 2rem); margin: 0 0 .5rem; letter-spacing: -.02em; }
h2 { font-size: 1.22rem; margin: 0 0 .8rem; letter-spacing: -.01em; }
h3 { font-size: 1.02rem; margin: 1rem 0 .5rem; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.page { flex: 1; padding-top: 24px; padding-bottom: 56px; }
.page-full { flex: 1; padding: 0 0 0; }

.narrow { max-width: 600px; margin-left: auto; margin-right: auto; }

.muted   { color: var(--muted); }
.small   { font-size: .85rem; }
.lead    { font-size: 1.08rem; }
.preline { white-space: pre-line; overflow-wrap: anywhere; }
.hint    { color: var(--muted); font-size: .85rem; margin: .4rem 0 0; }
.req     { color: var(--danger); }
.sep     { border: 0; border-top: 1px solid var(--border); margin: 1.4rem 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(.6); }
  70%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------
   Bară de sus
   ------------------------------------------------------------------ */
.topbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.01em;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 14px -6px rgba(22, 163, 74, .55);
  flex: none;
}
.topbar-cta { display: none; }
@media (min-width: 560px) { .topbar-cta { display: inline-flex; } }

.topbar-admin { border-bottom: 3px solid var(--primary); }
.topbar-nav { display: flex; gap: 18px; }
.topbar-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.topbar-nav a:hover { color: var(--primary-700); }

/* --------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 34px 0 26px;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-tagline { font-size: .9rem; color: #94a3b8; max-width: 420px; }
.footer-links { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: .84rem; color: #64748b; border-top: 1px solid rgba(148, 163, 184, .2); padding-top: 16px; width: 100%; }

/* --------------------------------------------------------------------
   Butoane
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .15s, box-shadow .15s, transform .15s, border-color .15s;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #1cb457, var(--primary) 55%, var(--primary-600));
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(22, 163, 74, .7);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--primary), var(--primary-600)); box-shadow: 0 12px 22px -10px rgba(21, 128, 61, .8); }

.btn-secondary { background: #fff; color: var(--primary-700); border-color: #bbe7cb; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--primary-50); border-color: var(--primary); }

.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { background: #fff; color: var(--text); }

.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: #fecaca; }

.btn-light { background: #fff; color: var(--primary-700); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--primary-50); }

.btn-block { display: flex; width: 100%; }
.btn-lg    { padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm    { padding: 7px 13px; font-size: .84rem; border-radius: 10px; font-weight: 700; }
.btn-row   { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }

/* --------------------------------------------------------------------
   Carduri
   ------------------------------------------------------------------ */
.card {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, .7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.card-center { text-align: center; }

.big-icon {
  font-size: 2.2rem;
  width: 76px;
  height: 76px;
  margin: 6px auto 16px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.big-icon.success {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  font-weight: 800;
  font-size: 2.4rem;
  box-shadow: 0 14px 30px -12px rgba(22, 163, 74, .65);
  animation: popIn .45s ease-out both;
}

/* --------------------------------------------------------------------
   Formulare
   ------------------------------------------------------------------ */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .93rem; color: var(--ink); }

input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="search"], input[type="file"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: .97rem;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
textarea { resize: vertical; min-height: 110px; }

.field-error { color: var(--danger); font-size: .85rem; margin: .35rem 0 0; font-weight: 600; }
.field-error:empty { display: none; }

.field-check .check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  font-size: .9rem;
  color: var(--muted);
}
.field-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--primary); }

.field-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 480px) { .field-grid { grid-template-columns: 2fr 1fr; } }

/* --------------------------------------------------------------------
   Alerte + badge-uri + pastile
   ------------------------------------------------------------------ */
.alert { border-radius: 12px; padding: 13px 16px; margin-bottom: 16px; font-size: .94rem; font-weight: 600; }
.alert-error   { background: var(--danger-bg); color: var(--danger); border: 1px solid #fca5a5; }
.alert-success { background: var(--primary-100); color: var(--primary-700); border: 1px solid #86efac; }
.alert-warn    { background: var(--warn-bg); color: #854d0e; border: 1px solid var(--warn-border); }

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: middle;
}
.badge-new      { background: #e2e8f0; color: #334155; }
.badge-sent     { background: #dbeafe; color: #1d4ed8; }
.badge-accepted { background: #fef3c7; color: #b45309; }
.badge-booked   { background: #ede9fe; color: #6d28d9; }
.badge-paid     { background: var(--primary-100); color: var(--primary-700); }
.badge-direct   { background: var(--warn-bg); color: #854d0e; }
.badge-complete { background: #ccfbf1; color: #0f766e; }
.badge-failed   { background: var(--danger-bg); color: #b91c1c; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: .76rem;
  font-weight: 800;
}
.pill-verified { background: var(--primary-100); color: var(--primary-700); }
.pill-selected { background: #dbeafe; color: #1d4ed8; }
.pill-recommended {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  position: absolute;
  top: -12px;
  left: 22px;
  box-shadow: 0 6px 14px -6px rgba(22, 163, 74, .6);
}

/* --------------------------------------------------------------------
   Stepper — progresul clientului (Oferte → Data → Plata → Confirmare)
   ------------------------------------------------------------------ */
.stepper {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 4px auto 26px;
  max-width: 620px;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
.step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--border);
  z-index: 0;
}
.step:first-child::before { display: none; }
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  position: relative;
  z-index: 1;
}
.step-done::before { background: var(--primary); }
.step-done .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.step-current::before { background: var(--primary); }
.step-current { color: var(--primary-700); }
.step-current .step-dot {
  border-color: var(--primary);
  color: var(--primary-700);
  box-shadow: var(--ring);
}
@media (max-width: 419px) { .step-label { font-size: .68rem; } }

/* --------------------------------------------------------------------
   LANDING — hero „blueprint" (plan de construcție)
   ------------------------------------------------------------------ */
:root { --font-display: 'Space Grotesk', var(--font); }
::selection { background: #bbf7d0; color: #14532d; }

.hero2 {
  position: relative;
  background:
    radial-gradient(900px 480px at 78% -20%, rgba(74, 222, 128, .16), transparent 60%),
    radial-gradient(700px 420px at -12% 115%, rgba(163, 230, 53, .10), transparent 60%),
    linear-gradient(160deg, #04120b 0%, #0a2416 48%, #0f3320 100%);
  color: #fff;
  padding: 58px 0 96px;
  overflow: hidden;
}
/* caroiaj tip plan tehnic */
.hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 239, 172, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 239, 172, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(85% 95% at 50% 5%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(85% 95% at 50% 5%, #000 35%, transparent 100%);
  pointer-events: none;
}
.hero2-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero2 { padding: 88px 0 122px; }
  .hero2-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
}

.hero2-copy { animation: fadeUp .6s ease-out both; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(163, 230, 53, .12);
  border: 1px solid rgba(163, 230, 53, .3);
  color: #d9f99d;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero2 h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  font-weight: 700;
}
.grad-text {
  background: linear-gradient(92deg, #4ade80 10%, #a3e635 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: rgba(226, 232, 240, .82);
  font-size: 1.08rem;
  max-width: 500px;
  margin: 0 0 28px;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero-trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-row { display: flex; padding-left: 8px; }
.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #0a2416;
  margin-left: -9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  color: #14532d;
  flex: none;
}
.av-1 { background: #bbf7d0; }
.av-2 { background: #fde68a; }
.av-3 { background: #bae6fd; }
.av-4 { background: #fecdd3; }
.hero-trust-text { font-size: .88rem; font-weight: 700; color: rgba(226, 232, 240, .9); }
.hero-trust-text .stars-bg { color: rgba(255, 255, 255, .22); }

/* ---- Mockup produs: cardul de oferte plutitor ---- */
.hero2-visual { position: relative; padding: 30px 12px 34px; max-width: 440px; margin: 0 auto; width: 100%; }
.mock-stack { position: relative; }
.mock-ghost {
  position: absolute;
  inset: -18px -14px auto 22px;
  height: 100%;
  border-radius: 22px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  transform: rotate(4deg);
}
.mock-card {
  position: relative;
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  box-shadow: 0 34px 90px -24px rgba(0, 0, 0, .6);
  padding: 20px;
  animation: floaty 7s ease-in-out infinite;
  z-index: 1;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mock-title { font-weight: 800; color: var(--ink); font-family: var(--font-display); }
.mock-count {
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 10px;
}
.mock-offer {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.mock-offer-hot { border-color: var(--primary); background: var(--primary-50); }
.mock-offer .offer-avatar { width: 42px; height: 42px; font-size: .9rem; border-radius: 12px; }
.mock-offer-info { flex: 1; min-width: 0; }
.mock-offer-name { font-weight: 800; font-size: .92rem; color: var(--ink); }
.mock-offer-meta { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mock-offer-meta .pill { font-size: .64rem; padding: 2px 8px; }
.mock-offer-price { font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 1.02rem; }
.mock-btn {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, #1cb457, var(--primary) 55%, var(--primary-600));
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  border-radius: 12px;
  padding: 12px;
  margin-top: 4px;
  letter-spacing: .02em;
}

.float-chip {
  position: absolute;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: .8rem;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .5);
  animation: floaty 6s ease-in-out infinite;
  white-space: nowrap;
  z-index: 2;
}
.chip-1 { top: 8px; left: -4px; animation-delay: .9s; color: var(--primary-700); }
.chip-2 { bottom: 64px; right: -6px; animation-delay: 1.8s; }
.chip-3 { bottom: 2px; left: 10%; animation-delay: 2.6s; }
@keyframes floaty { 50% { transform: translateY(-9px); } }

/* Butoane specifice hero-ului întunecat */
.btn-lime {
  background: linear-gradient(135deg, #d9f99d, #a3e635 55%, #84cc16);
  color: #1a2e05;
  box-shadow: 0 14px 30px -10px rgba(132, 204, 22, .55);
}
.btn-lime:hover { filter: brightness(1.06); box-shadow: 0 16px 34px -10px rgba(132, 204, 22, .75); }
.btn-outline-light {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .6); color: #fff; }

/* Navbar întunecat + protecție overflow doar pe landing */
body.landing { overflow-x: hidden; }
body.landing .topbar {
  background: rgba(4, 18, 11, .82);
  border-bottom-color: rgba(255, 255, 255, .08);
}
body.landing .brand { color: #fff; }
body.landing .topbar-cta {
  background: linear-gradient(135deg, #d9f99d, #a3e635 55%, #84cc16);
  color: #1a2e05;
  box-shadow: none;
}

/* ---- Banda „ticker" cu meserii ---- */
.ticker-wrap {
  overflow: hidden;
  transform: rotate(-1.3deg);
  margin: -40px 0 40px;
  position: relative;
  z-index: 5;
}
.ticker {
  background: linear-gradient(90deg, #bef264, #a3e635);
  color: #1a2e05;
  padding: 13px 0;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 14px 34px -16px rgba(101, 163, 13, .6);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}
.ticker-half {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .86rem;
}
.ticker-half span { display: inline-flex; align-items: center; gap: 2.6rem; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---- Statistici ---- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 18px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  color: var(--primary-600);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat-label { color: var(--muted); font-weight: 600; font-size: .88rem; margin-top: 5px; }

/* ---- Panoul cererii (formular split) ---- */
.request-panel {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, .7);
}
@media (min-width: 900px) { .request-panel { grid-template-columns: .85fr 1.15fr; } }
.request-side {
  position: relative;
  background:
    radial-gradient(420px 280px at 85% 0%, rgba(74, 222, 128, .2), transparent 60%),
    linear-gradient(165deg, #0a2416, #14532d 68%, #166534);
  color: #fff;
  padding: 36px 30px;
  overflow: hidden;
}
.request-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 239, 172, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 239, 172, .08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.request-side > * { position: relative; }
.request-side h2 { color: #fff; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.01em; }
.request-side > p { color: rgba(226, 232, 240, .8); font-size: .95rem; }
.side-ticks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.side-ticks li { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; font-size: .93rem; }
.tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(163, 230, 53, .18);
  color: #d9f99d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  flex: none;
  margin-top: 2px;
}
.request-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(163, 230, 53, .14);
  border: 1px solid rgba(163, 230, 53, .32);
  color: #d9f99d;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 800;
  font-size: .84rem;
}
.request-form { padding: 30px 22px; }
@media (min-width: 640px) { .request-form { padding: 38px 36px; } }
.request-form h2 { font-size: 1.3rem; margin-bottom: 4px; }
.request-form > .muted { margin: 0 0 20px; font-size: .92rem; }

/* --------------------------------------------------------------------
   LANDING — secțiuni
   ------------------------------------------------------------------ */
.section { padding: 54px 0 10px; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 8px 0 0; }

/* ---- Procesul în 4 pași (numere conturate) ---- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 20px;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-item {
  position: relative;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 26px 22px 24px;
  transition: transform .2s, box-shadow .2s;
}
.process-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--primary);
  margin-bottom: 12px;
}
.process-item h3 { margin: 0 0 6px; font-size: 1.04rem; }
.process-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---- Bento — beneficii ---- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 780px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-feature { grid-column: span 2; }
}
.bento-card {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  transition: transform .2s, box-shadow .2s;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-card h3 { margin: 0 0 6px; }
.bento-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.bento-icon svg { width: 23px; height: 23px; }

.bento-feature {
  position: relative;
  background:
    radial-gradient(420px 240px at 88% 0%, rgba(163, 230, 53, .18), transparent 60%),
    linear-gradient(160deg, #0a2416, #14532d 65%, #166534);
  color: #cbd5e1;
  border: 0;
  overflow: hidden;
}
.bento-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 239, 172, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 239, 172, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.bento-feature > * { position: relative; }
.bento-feature h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -.01em;
}
.bento-feature p { color: rgba(203, 213, 225, .9); }
.mini-offer {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  padding: 13px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  max-width: 380px;
}
.mini-offer .offer-avatar {
  width: 40px;
  height: 40px;
  font-size: .85rem;
  border-radius: 11px;
  background: rgba(163, 230, 53, .18);
  color: #d9f99d;
}
.mini-offer-name { font-weight: 800; font-size: .92rem; color: #fff; }
.mini-offer-meta { font-size: .78rem; color: rgba(203, 213, 225, .8); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mini-offer-meta .pill { font-size: .64rem; padding: 2px 8px; background: rgba(163, 230, 53, .16); color: #d9f99d; }
.mini-offer-meta .stars-bg { color: rgba(255, 255, 255, .22); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary-600);
  transition: transform .2s;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }

/* ---- CTA final (panou „blueprint") ---- */
.cta-final {
  position: relative;
  margin: 60px 0 72px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(560px 280px at 85% 5%, rgba(163, 230, 53, .22), transparent 60%),
    linear-gradient(160deg, #04120b, #0f3320);
  color: #fff;
  padding: 58px 26px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 239, 172, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 239, 172, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.8vw, 2.3rem);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.cta-final p { color: rgba(226, 232, 240, .75); margin: 0 0 28px; }

/* ---- Dezvăluire la scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Titluri de secțiune cu fontul display */
.section-head h2 { font-family: var(--font-display); }

/* --------------------------------------------------------------------
   Oferte (client)
   ------------------------------------------------------------------ */
.offers-head { text-align: center; margin-bottom: 20px; }
.offers-head .muted { max-width: 440px; margin: 4px auto 10px; }
.offers-count {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}
.offers-list { max-width: 640px; margin: 0 auto; }

.offer-card { padding: 20px; transition: transform .2s, box-shadow .2s; }
.offer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.offer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.offer-id { display: flex; gap: 14px; min-width: 0; }
.offer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary-700);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.offer-info { min-width: 0; overflow-wrap: anywhere; }
.offer-name { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.offer-desc { color: var(--muted); font-size: .92rem; margin-top: 3px; white-space: pre-line; overflow-wrap: anywhere; }
.offer-price {
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--ink);
  letter-spacing: -.02em;
}
.offer-price .small { display: block; text-align: right; font-weight: 600; }

/* Stele portocalii cu jumătăți */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; }
.stars-bg { color: #d8dee7; }
.stars-fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent);
}

/* --------------------------------------------------------------------
   Rezumat / rezervare / plată
   ------------------------------------------------------------------ */
.summary { margin: 0; }
.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.summary > div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.summary dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.summary-price { font-size: 1.18rem; font-weight: 800; }

.worker-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.pay-options { display: grid; gap: 24px; }
@media (min-width: 860px) {
  .pay-options { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
/* În layoutul cu sidebar, coloana principală e îngustă între 960–1199px */
@media (min-width: 960px) and (max-width: 1199px) {
  body.wide-page .pay-options { grid-template-columns: 1fr; }
}
.pay-card {
  position: relative;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.pay-card form { margin-top: auto; }

/* Listă cu bife pe fundal deschis (sidebar) */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; font-size: .92rem; color: var(--muted); }
.tick-light {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 800;
  flex: none;
  margin-top: 2px;
}
.pay-card h2 { display: flex; align-items: center; gap: 10px; }
.pay-card > p { color: var(--muted); font-size: .95rem; }
.pay-card-recommended { border: 2px solid var(--primary); }
.pay-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pay-icon svg { width: 21px; height: 21px; }
.pay-breakdown {
  list-style: none;
  padding: 14px 18px;
  margin: 14px 0;
  background: var(--bg);
  border-radius: 12px;
  font-size: .95rem;
}
.pay-breakdown li { padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; }
.pay-breakdown strong { color: var(--ink); }

/* --------------------------------------------------------------------
   Calendar rezervare
   ------------------------------------------------------------------ */
.calendar { margin: 14px 0 20px; user-select: none; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-title { font-weight: 800; text-transform: capitalize; color: var(--ink); }
.cal-nav {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-50); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-dow {
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  color: var(--muted);
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cal-day {
  aspect-ratio: 1;
  border: 1.5px solid transparent;
  background: var(--bg);
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: border-color .12s, background .12s;
}
.cal-day:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-50); }
.cal-day:disabled { background: transparent; color: #c2cad4; cursor: default; }
.cal-day.cal-empty { background: transparent; border: 0; cursor: default; }
.cal-day.cal-today { border-color: var(--primary); font-weight: 800; }
.cal-day.cal-unavailable {
  color: #c2cad4;
  text-decoration: line-through;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 4px,
    rgba(148, 163, 184, .18) 4px, rgba(148, 163, 184, .18) 6px);
}
.cal-day.cal-selected {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 16px -8px rgba(22, 163, 74, .7);
}
.selected-date {
  margin: 14px 0 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--primary-50);
  border: 1.5px dashed var(--primary);
  border-radius: 12px;
  padding: 11px 16px;
  text-align: center;
}

/* Pagina de rezervare pe lățime completă: calendar mare, centrat */
.booking-card .calendar,
.booking-card form { max-width: 640px; margin-left: auto; margin-right: auto; }
.booking-card .calendar { margin-top: 18px; margin-bottom: 8px; }
.booking-card h2, .booking-card > .muted { text-align: center; }
.booking-card .cal-day { font-size: 1rem; border-radius: 12px; }
.booking-card .cal-dow { font-size: .78rem; }
.chosen-worker { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }

/* --------------------------------------------------------------------
   Pagina de mulțumire — "ce urmează"
   ------------------------------------------------------------------ */
.timeline { list-style: none; padding: 0; margin: 6px 0 0; }
.timeline li {
  display: flex;
  gap: 14px;
  padding: 0 0 22px;
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.timeline li:last-child::before { display: none; }
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
  z-index: 1;
}
.timeline-body strong { display: block; color: var(--ink); }
.timeline-body span { color: var(--muted); font-size: .92rem; }

.order-ref {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------
   Upload imagini — previzualizare
   ------------------------------------------------------------------ */
.preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.preview-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  background: var(--bg);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
}
.preview-size {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, .62);
  color: #fff;
  font-size: .66rem;
  text-align: center;
  padding: 2px 0;
}

/* --------------------------------------------------------------------
   Admin — layout cu sidebar, lățime completă
   ------------------------------------------------------------------ */
.admin-body { background: var(--bg); }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  flex: none;
  background: linear-gradient(180deg, #071811, #0e2c1c);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-brand {
  color: #fff;
  font-weight: 800;
  font-size: .98rem;
  line-height: 1.2;
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  padding: 4px 10px 20px;
}
.admin-brand small {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: #86a396;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  color: #9fb3a8;
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem;
  padding: 11px 12px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: background .15s, color .15s;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.active { background: rgba(22, 163, 74, .3); color: #fff; }

.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}
.admin-user { display: block; font-size: .78rem; color: #86a396; padding: 0 12px 8px; }
.admin-user strong { color: #cbd5e1; }
.admin-sidebar-foot a {
  color: #9fb3a8;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
}
.admin-sidebar-foot a:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 56px;
}

.admin-guest-brand {
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 26px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .admin-brand { padding: 0 10px 0 0; white-space: nowrap; }
  .admin-brand small { display: none; }
  .admin-nav { flex-direction: row; }
  .admin-nav a { white-space: nowrap; padding: 8px 10px; }
  .admin-nav a span { display: inline; }
  .admin-sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; align-items: center; }
  .admin-user { display: none; }
  .admin-main { padding: 20px 16px 40px; }
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 18px;
}
.page-head h1 { margin: 0; }

/* Bara de căutare/filtrare a listelor — deasupra tabelului, pe un rând */
.list-toolbar { padding: 14px 16px; margin-bottom: 16px; }
.search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.search-form input[type="search"] { flex: 1 1 260px; width: auto; min-width: 200px; }
.search-form select { width: auto; flex: none; min-width: 180px; }
.search-form .btn { flex: none; }

.table-card { padding: 8px; }
.table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.orders-table th, .orders-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.orders-table th { font-size: .76rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.orders-table tbody tr:hover { background: #fafcfb; }
.orders-table tbody tr:last-child td { border-bottom: 0; }

.admin-grid { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.thumb:hover img { transform: scale(1.05); }

.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-size: .86rem; color: var(--muted); }

.code-break {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .78rem;
  word-break: break-all;
  background: var(--bg);
  border-radius: 6px;
  padding: 2px 6px;
}

.admin-offer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
}
.admin-offer-selected { border-color: var(--primary); background: var(--primary-50); }
.admin-offer-side { text-align: right; flex: none; }
.admin-offer-side .btn-row { justify-content: flex-end; }

.login-card { margin-top: 8vh; }

.nowrap { white-space: nowrap; }
.orders-table .row-selected { background: var(--primary-50); }
.orders-table .row-selected td:first-child { border-left: 3px solid var(--primary); }

/* Paginare clasică (liste admin) */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}
.page-btn {
  min-width: 40px;
  padding: 9px 13px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary-700); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: .45; }

/* Panou (dashboard) — tile-uri clicabile */
.dash-grid { margin-bottom: 20px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: repeat(6, 1fr); } }
a.dash-stat { text-decoration: none; transition: transform .15s, box-shadow .15s; display: block; }
a.dash-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Banner comandă cu plată directă (admin) — imposibil de ratat */
.direct-banner {
  background: linear-gradient(135deg, #fefce8, #fef3c7);
  border: 1.5px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 980px) {
  .direct-banner { grid-template-columns: 1.25fr .75fr; align-items: center; }
}
.direct-banner-head { display: flex; gap: 14px; align-items: flex-start; }
.direct-banner-icon {
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.direct-banner-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #854d0e;
  margin-bottom: 4px;
}
.direct-banner-head p { margin: 0; color: #854d0e; font-size: .92rem; line-height: 1.55; }
.direct-banner-figures {
  margin: 0;
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
}
.direct-banner-figures > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed #fde68a;
}
.direct-banner-figures > div:last-child { border-bottom: 0; }
.direct-banner-figures dt { color: #a16207; font-size: .86rem; font-weight: 700; }
.direct-banner-figures dd { margin: 0; font-weight: 800; color: #713f12; white-space: nowrap; }
.direct-banner-figures .figure-big { font-size: 1.2rem; }

/* --------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* --------------------------------------------------------------------
   Trimitere AJAX — buton cu spinner + mesaj de succes inline
   ------------------------------------------------------------------ */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
/* Spinner vizibil și pe butoanele albe (secondary) */
.btn-secondary.btn-loading::after {
  border-color: rgba(22, 163, 74, .25);
  border-top-color: var(--primary-600);
}

/* Popup succes (modal) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 11, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeUp .25s ease-out both;
}
.modal-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 34px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: popIn .4s ease-out both;
}
.modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.modal-card p { color: var(--muted); margin: 0 0 22px; }

/* Dialog de confirmare */
.modal-confirm-icon {
  font-size: 1.8rem;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-confirm-icon:empty { display: none; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* --------------------------------------------------------------------
   Antet „blueprint" — paginile fluxului client (oferte/rezervare/plată)
   ------------------------------------------------------------------ */
.page-hero {
  position: relative;
  background:
    radial-gradient(700px 360px at 80% -30%, rgba(74, 222, 128, .15), transparent 60%),
    linear-gradient(160deg, #04120b 0%, #0a2416 55%, #0f3320 100%);
  color: #fff;
  padding: 44px 0 46px;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 239, 172, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 239, 172, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 100% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(90% 100% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.page-hero-inner { position: relative; }
.page-hero-ref {
  display: inline-block;
  background: rgba(163, 230, 53, .12);
  border: 1px solid rgba(163, 230, 53, .3);
  color: #d9f99d;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.page-hero-sub { color: rgba(226, 232, 240, .78); max-width: 540px; margin: 0 auto; }

/* Stepper pe fundal întunecat */
.page-hero .stepper { margin: 28px auto 0; }
.page-hero .step { color: rgba(203, 213, 225, .75); }
.page-hero .step::before { background: rgba(255, 255, 255, .16); }
.page-hero .step-dot {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .25);
  color: #cbd5e1;
}
.page-hero .step-done::before,
.page-hero .step-current::before { background: var(--primary); }
.page-hero .step-done .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-hero .step-current { color: #d9f99d; }
.page-hero .step-current .step-dot {
  border-color: #a3e635;
  color: #d9f99d;
  background: rgba(163, 230, 53, .1);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, .22);
}

.flow-body { padding-top: 36px; padding-bottom: 60px; }

/* Pagina de oferte: listă + detaliile cererii, pe lățime completă */
.offers-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
@media (min-width: 960px) { .offers-layout { grid-template-columns: 1.55fr .95fr; } }
.offers-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.offers-topline h2 { margin: 0; font-family: var(--font-display); }
.aside-sticky { position: sticky; top: 84px; display: grid; gap: 20px; }
@media (max-width: 959px) { .aside-sticky { position: static; } }
.thumbs-sm { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
.request-summary h3 { margin-top: 1.2rem; }
.offers-meta { margin: 4px 0 0; }

/* Lățime completă pentru pagina de oferte (body.wide-page) */
body.wide-page .container {
  max-width: none;
  padding-left: clamp(18px, 3vw, 52px);
  padding-right: clamp(18px, 3vw, 52px);
}
@media (min-width: 960px) {
  body.wide-page .offers-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 28px;
  }
}
/* Ofertele curg pe o singură coloană (1fr) */
@media (min-width: 1440px) {
  body.wide-page #offers-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  body.wide-page .offers-main .offer-card { margin-bottom: 0; }
}

/* Bara de căutare / sortare / filtrare a ofertelor */
.offers-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.offers-toolbar input[type="search"] { flex: 1 1 200px; }
.offers-toolbar select { flex: 0 1 auto; width: auto; }
.toolbar-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.toolbar-check input { width: 17px; height: 17px; accent-color: var(--primary); }

/* Insigne pe oferte — pastile plutitoare pe marginea cardului, ca
   interiorul cardurilor să rămână identic aliniat cu/fără insigne */
.offer-flags {
  position: absolute;
  top: -12px;
  left: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
  margin: 0;
}
.offer-flag {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 23, 42, .06);
  white-space: nowrap;
}
.flag-price  { background: #ecfccb; color: #3f6212; }
.flag-rating { background: #fef3c7; color: #b45309; }

/* Card compact: preț + buton în coloana din dreapta, înălțimi egale */
.offers-main .offer-card {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.offers-main .offer-main { flex: 1; margin-bottom: 0; }
.offer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  gap: 10px;
  flex: none;
}
.offer-side .btn { padding: 10px 18px; font-size: .88rem; }
.rating-num { font-size: .82rem; font-weight: 800; color: var(--muted); margin-left: 5px; vertical-align: 1px; }
.rating-count { font-size: .82rem; font-weight: 600; color: var(--muted); margin-left: 6px; vertical-align: 1px; }
#offers-more { margin-top: 6px; }

@media (max-width: 600px) {
  .offers-main .offer-main { flex-wrap: wrap; margin-bottom: 0; }
  .offer-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
  }
}

/* --------------------------------------------------------------------
   Pagini de conținut (termeni, confidențialitate)
   ------------------------------------------------------------------ */
.content-page h2 { margin-top: 1.5rem; font-size: 1.08rem; }

@media (min-width: 640px) {
  .card { padding: 28px; }
}
