/* Aplicația clienților Todos & Company — „light luxury”: hârtie caldă, bleumarin adânc, auriu folosit doar pentru ce contează. */
@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap; src: url(/fonts/Lato-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap; src: url(/fonts/Lato-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lato'; font-weight: 700; font-display: swap; src: url(/fonts/Lato-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-weight: 700; font-display: swap; src: url(/fonts/Lato-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-weight: 500; font-display: swap; src: url(/fonts/PlayfairDisplay-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Playfair Display'; font-weight: 500; font-display: swap; src: url(/fonts/PlayfairDisplay-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF; }

:root {
  --bleumarin: #000034;
  --bleumarin-2: #0b0b4a;
  --auriu: #C9AF66;
  --auriu-clar: #E7DD81;
  --auriu-text: #806A2D;
  --hartie: #F7F5F0;
  --suprafata: #FFFFFF;
  --linie: #E6E1D6;
  --text: #15152B;
  --text-slab: #6B6A7A;
  --verde: #2F7A55;
  --verde-fond: #E7F3EC;
  --rosu: #A63A32;
  --rosu-fond: #F8E9E7;
  --galben-fond: #FBF4DC;
  --r: 14px;
  --r-mic: 10px;
  --umbra: 0 1px 2px rgba(0, 0, 52, .06), 0 8px 24px -12px rgba(0, 0, 52, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Lato', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-titlu: 'Playfair Display', Georgia, serif;
  --sus: env(safe-area-inset-top, 0px);
  --jos: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--text); background: var(--hartie); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--bleumarin); }
:focus-visible { outline: 2px solid var(--auriu); outline-offset: 2px; border-radius: 6px; }
.noscript { padding: 24px; }
.vizual-ascuns { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* încărcare */
.incarcare { min-height: 100vh; display: grid; place-items: center; background: var(--bleumarin); }
.punct { width: 10px; height: 10px; border-radius: 50%; background: var(--auriu); animation: puls 1s var(--ease) infinite alternate; }
@keyframes puls { from { opacity: .3; transform: scale(.8); } to { opacity: 1; transform: scale(1.2); } }

/* ── intrare ───────────────────────────────────────────── */
.intrare { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background:
  radial-gradient(120% 60% at 100% 0%, rgba(201, 175, 102, .22), transparent 60%),
  radial-gradient(90% 50% at 0% 100%, rgba(231, 221, 129, .10), transparent 60%), var(--bleumarin); color: #EDEBF5; padding: calc(var(--sus) + 28px) 20px calc(var(--jos) + 24px); }
.intrare__marca { display: flex; align-items: center; gap: 12px; }
.intrare__marca img { width: 44px; height: 44px; border-radius: 10px; }
.intrare__marca span { font-weight: 700; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; color: var(--auriu-clar); }
.intrare__sus { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 440px; width: 100%; margin: 0 auto; }
.intrare h1 { font: 500 clamp(2rem, 8vw, 2.6rem)/1.08 var(--font-titlu); margin: 40px 0 12px; color: #fff; letter-spacing: -.01em; }
.intrare h1 em { font-style: normal; color: var(--auriu); }
.intrare p { color: #B9B7CC; margin: 0 0 28px; }
.camp { display: block; margin-bottom: 14px; }
.camp span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; color: #D9D6E8; }
.intrare input { width: 100%; height: 54px; padding: 0 16px; border-radius: var(--r-mic); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; font-size: 17px; transition: border-color .2s, background .2s; }
.intrare input:focus { outline: none; border-color: var(--auriu); background: rgba(255, 255, 255, .1); }
.intrare input.cod { letter-spacing: .5em; font-size: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.intrare .nota { font-size: 13px; color: #9E9CB5; margin: 16px 0 0; }
.intrare .legatura { background: none; border: 0; color: var(--auriu-clar); padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.intrare__beneficii { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; font-size: 14px; color: #C9C6DA; }
.intrare__beneficii li { display: flex; gap: 10px; align-items: flex-start; }
.intrare__beneficii svg { flex: none; width: 18px; height: 18px; color: var(--auriu); margin-top: 2px; }

.buton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: var(--r-mic); border: 0; font-weight: 700; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.buton:active { transform: scale(.98); }
.buton[disabled] { opacity: .55; cursor: default; }
.buton--auriu { background: linear-gradient(135deg, var(--auriu-clar), var(--auriu)); color: var(--bleumarin); box-shadow: 0 10px 30px -12px rgba(201, 175, 102, .7); }
.buton--plin { width: 100%; }
.buton--contur { background: var(--suprafata); color: var(--bleumarin); border: 1px solid var(--linie); height: 44px; font-size: 15px; white-space: nowrap; padding: 0 14px; }
.buton--bleumarin { background: var(--bleumarin); color: #fff; height: 44px; font-size: 15px; white-space: nowrap; padding: 0 14px; }
.buton svg { width: 18px; height: 18px; }
.eroare { background: rgba(166, 58, 50, .16); color: #FFD9D4; border-radius: var(--r-mic); padding: 10px 14px; font-size: 14px; margin: 0 0 14px; }
.ecran .eroare { background: var(--rosu-fond); color: var(--rosu); }

/* ── aplicația ─────────────────────────────────────────── */
.antet { position: sticky; top: 0; z-index: 5; background: var(--bleumarin); color: #fff; padding: calc(var(--sus) + 14px) 18px 16px; }
.antet__rand { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 720px; margin: 0 auto; }
.antet__firma { min-width: 0; }
.antet__eticheta { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--auriu); font-weight: 700; }
.antet__nume { display: block; font: 500 20px/1.25 var(--font-titlu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.antet select { max-width: 100%; background: transparent; color: #fff; border: 0; font: 500 20px/1.25 var(--font-titlu); padding: 0; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.antet select option { color: var(--text); }
.antet__iesi { flex: none; background: rgba(255, 255, 255, .08); border: 0; color: #DCD9EA; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.antet__iesi svg { width: 18px; height: 18px; }

.ecran { max-width: 720px; margin: 0 auto; padding: 20px 16px calc(var(--jos) + 100px); }
.ecran h2 { font: 500 26px/1.15 var(--font-titlu); margin: 8px 0 4px; letter-spacing: -.01em; }
.ecran .sub { color: var(--text-slab); margin: 0 0 20px; font-size: 15px; }
.sectiune-titlu { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--auriu-text); margin: 28px 0 10px; }

.card { background: var(--suprafata); border-radius: var(--r); box-shadow: var(--umbra); padding: 18px; margin-bottom: 14px; border: 1px solid rgba(0, 0, 52, .04); }
.card--erou { background: linear-gradient(160deg, var(--bleumarin) 0%, var(--bleumarin-2) 100%); color: #fff; position: relative; overflow: hidden; border: 0; }
.card--erou::after { content: ''; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 175, 102, .35), transparent 70%); }
.card--erou .eticheta { color: var(--auriu-clar); }

.eticheta { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--auriu-text); }
.card h3 { font: 500 21px/1.25 var(--font-titlu); margin: 6px 0 6px; }
.card p { margin: 0; color: var(--text-slab); font-size: 15px; }
.card.card--erou p { color: #CFCCE0; }
.alerta { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; border-left: 4px solid var(--auriu); }
.alerta__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--galben-fond); color: var(--auriu-text); }
.alerta__ico svg, .alerta__sageata svg { width: 20px; height: 20px; }
.alerta__txt { flex: 1; min-width: 0; }
.alerta__txt b { display: block; }
.alerta__txt small { color: var(--text-slab); font-size: 14px; }
.alerta__sageata { flex: none; color: var(--auriu-text); }

/* etapele dosarului */
.etape { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 4px; position: relative; z-index: 1; }
.etapa { font-size: 11px; color: #9C9AB4; }
.etapa i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-bottom: 8px; }
.etapa.facuta i { background: var(--auriu); }
.etapa.curenta i { background: linear-gradient(90deg, var(--auriu), var(--auriu-clar)); box-shadow: 0 0 12px rgba(231, 221, 129, .6); }
.etapa.facuta, .etapa.curenta { color: #EDEBF5; }

.date { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 14px 0 0; }
.date div { min-width: 0; }
.date dt { font-size: 12px; color: var(--text-slab); }
.date dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.date .lat { grid-column: 1 / -1; }

.rand-fisier { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linie); text-decoration: none; color: var(--text); }
.rand-fisier:first-of-type { border-top: 0; }
.rand-fisier .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--galben-fond); color: var(--auriu-text); }
.rand-fisier .ico svg { width: 18px; height: 18px; }
.rand-fisier .txt { min-width: 0; flex: 1; }
.rand-fisier .txt b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.rand-fisier .txt small { color: var(--text-slab); }

/* cereri de documente */
.cerere { position: relative; }
.cerere__cap { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cerere h3 { font: 700 17px/1.3 var(--font); margin: 0; }
.cerere .desc { margin-top: 6px; white-space: pre-line; }
.cerere .meta { font-size: 13px; color: var(--text-slab); margin-top: 8px; }
.cerere .nota-echipa { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-mic); background: var(--rosu-fond); color: var(--rosu); font-size: 14px; }
.cerere .actiuni { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cerere .actiuni label { flex: 1 1 140px; }
.cerere input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cerere .fisiere-trimise { margin-top: 10px; font-size: 14px; color: var(--text-slab); }
.cip { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cip--deschisa, .cip--respinsa { background: var(--galben-fond); color: var(--auriu-text); }
.cip--respinsa { background: var(--rosu-fond); color: var(--rosu); }
.cip--incarcata { background: #EAEAF6; color: #3D3D8F; }
.cip--acceptata { background: var(--verde-fond); color: var(--verde); }
.progres { height: 4px; background: var(--linie); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.progres i { display: block; height: 100%; width: 0; background: var(--auriu); transition: width .2s; }

/* programe */
.program { display: block; text-decoration: none; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
.program:active { transform: scale(.99); }
.program h3 { font: 700 16px/1.35 var(--font); margin: 8px 0 6px; }
.program .rand { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.program .termen { font-size: 13px; color: var(--text-slab); }
.program p { font-size: 14px; }
.cip--da { background: var(--verde-fond); color: var(--verde); }
.cip--poate { background: var(--galben-fond); color: var(--auriu-text); }
.cip--tintit { background: var(--bleumarin); color: var(--auriu-clar); }

/* iconițele din butoane și din stările goale */
.gol svg, .buton svg, .bara a svg { flex: none; }

/* mesaje */
.fir { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.balon { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--umbra); }
.balon small { display: block; font-size: 11px; margin-top: 4px; opacity: .7; }
.balon--echipa { background: var(--suprafata); align-self: flex-start; border-bottom-left-radius: 4px; }
.balon--echipa b { display: block; font-size: 12px; color: var(--auriu-text); margin-bottom: 2px; }
.balon--client { background: var(--bleumarin); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.compune { position: fixed; left: 0; right: 0; bottom: calc(var(--jos) + 64px); background: linear-gradient(transparent, var(--hartie) 30%); padding: 18px 12px 10px; z-index: 4; }
.compune form { max-width: 720px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.compune textarea { flex: 1; resize: none; min-height: 48px; max-height: 140px; padding: 12px 14px; border-radius: 24px; border: 1px solid var(--linie); background: var(--suprafata); box-shadow: var(--umbra); }
.compune textarea:focus { outline: none; border-color: var(--auriu); }
.compune button { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bleumarin); color: var(--auriu-clar); display: grid; place-items: center; cursor: pointer; }
.compune button svg { width: 20px; height: 20px; }
.ecran--mesaje { padding-bottom: calc(var(--jos) + 170px); }

.gol { text-align: center; padding: 36px 16px; color: var(--text-slab); }
.gol svg { width: 40px; height: 40px; color: var(--auriu); margin-bottom: 10px; }
.gol b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* bara de jos */
.bara { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--linie); padding-bottom: var(--jos); }
.bara nav { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 720px; margin: 0 auto; }
.bara a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; font-weight: 700; color: #8A889C; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.bara a svg { width: 22px; height: 22px; }
.bara a[aria-current=page] { color: var(--bleumarin); }
.bara a[aria-current=page]::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--auriu); }
.insigna { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rosu); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

.instaleaza { display: flex; gap: 12px; align-items: center; }
.instaleaza img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.instaleaza p { font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--jos) + 84px); transform: translate(-50%, 20px); opacity: 0; background: var(--bleumarin); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 9;
  transition: opacity .25s, transform .3s var(--ease); pointer-events: none; max-width: calc(100% - 32px); box-shadow: var(--umbra); }
.toast.vizibil { opacity: 1; transform: translate(-50%, 0); }

.apare { animation: apare .45s var(--ease) both; }
@keyframes apare { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 760px) { .ecran { padding-top: 32px; } .date { grid-template-columns: repeat(3, 1fr); } }

/* administrator */
.banda-admin { background: var(--galben-fond); color: var(--auriu-text); font-size: 13px; font-weight: 700; text-align: center; padding: 8px 16px; }
.antet__rand .antet__iesi + .antet__iesi { margin-left: -4px; }
.cauta { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-mic); border: 1px solid var(--linie); background: var(--suprafata); font-size: 17px; box-shadow: var(--umbra); margin-bottom: 16px; }
.cauta:focus { outline: none; border-color: var(--auriu); }
.rezultat { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.rezultat b { display: block; font-size: 16px; }
.rezultat small { color: var(--text-slab); }
