/* Lotus Concierge — navy + auriu din identitatea Lotus Therm. Fără fonturi externe (GDPR: fără Google Fonts). */
:root {
  --navy: #14213d;
  --navy-2: #1d2d52;
  --navy-3: #2a3c66;
  --gold: #b8945a;
  --gold-2: #d4b67f;
  --gold-soft: #f4ecdd;
  --bg: #f6f3ed;
  --panel: #ffffff;
  --line: #e6e0d4;
  --line-2: #efeae0;
  --ink: #1b2440;
  --muted: #6b7286;
  --soft: #8b90a0;
  --ok: #2f7d5b;
  --ok-soft: #e3f2ea;
  --warn: #b26a12;
  --warn-soft: #fbefdc;
  --bad: #b23a3a;
  --bad-soft: #f8e4e2;
  --info-soft: #e7ecf7;
  --bubble-in: #ffffff;
  --bubble-out: #e9eef9;
  --bubble-bot: #f4ecdd;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-3); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
.side { background: var(--navy); color: #d9deea; display: flex; flex-direction: column; min-height: 0; }
.brand { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { height: 34px; display: block; }
.brand .app-name { margin-top: 10px; font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.nav { padding: 10px 8px; overflow-y: auto; flex: 1; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #c9cfdd; text-decoration: none; font-weight: 500; margin-bottom: 1px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(212,182,127,.14); color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.nav svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav .badge { margin-left: auto; }
.nav .sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 8px; }
.nav .group { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8590ab; padding: 10px 12px 4px; }
.side-foot { padding: 12px 14px 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot .mode { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.07); font-size: 11.5px; }
.side-foot .mode i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); }
.side-foot .mode.live i { background: #4cc38a; }
.side-foot .links { margin-top: 8px; display: flex; gap: 12px; }
.side-foot .links button { background: none; border: 0; color: #aab3c8; padding: 0; cursor: pointer; font-size: 12.5px; }
.side-foot .links button:hover { color: #fff; }
.main { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.page { padding: 26px 30px 40px; overflow-y: auto; height: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------- Controale ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #cfc6b4; background: #fbfaf7; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: #a7834b; }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(20,33,61,.05); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
label.f { display: block; font-weight: 600; font-size: 12.5px; color: #3b4462; margin-bottom: 5px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=tel], input[type=date], input[type=time], input[type=password], input[type=search], input[type=url], input[type=number], select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 11px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,148,90,.15); }
textarea { resize: vertical; min-height: 70px; line-height: 1.45; }
.row { display: grid; gap: 14px; }
.row.c2 { grid-template-columns: 1fr 1fr; }
.row.c3 { grid-template-columns: repeat(3, 1fr); }
.field { margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: #fff; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--navy); color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: #d5d0c4; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { transform: translateX(16px); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.badge.red { background: var(--bad); color: #fff; }
.badge.gold { background: var(--gold-soft); color: #7d5f2c; }
.badge.navy { background: var(--info-soft); color: var(--navy-3); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.grey { background: #eeece7; color: var(--muted); }
.nav .badge.red { min-width: 20px; justify-content: center; }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-family: var(--serif); font-size: 16px; margin-bottom: 4px; font-weight: 600; }

/* ---------- Inbox ---------- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px; height: 100vh; }
.inbox.no-profile { grid-template-columns: 320px minmax(0, 1fr); }
.col { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel); }
.col:last-child { border-right: 0; }
.list-head { padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 9px; padding: 3px; margin: 12px 0 10px; }
.tabs button { border: 0; background: transparent; padding: 7px 8px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20,33,61,.08); }
.tabs .n { font-weight: 500; color: var(--soft); margin-left: 3px; }
.list { overflow-y: auto; flex: 1; }
.conv { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; position: relative; }
.conv:hover { background: #fbf9f5; }
.conv.on { background: var(--gold-soft); }
.conv.att::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bad); }
.conv .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv .rm { font-family: var(--serif); font-weight: 600; color: var(--navy-3); font-size: 15px; text-align: right; }
.conv .pv { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; grid-column: 1; }
.conv .tm { color: var(--soft); font-size: 11.5px; text-align: right; }
.conv .tags { grid-column: 1 / -1; display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.chat { background: #f3efe7; }
.chat-head { padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.chat-head .who { min-width: 0; flex: 1; }
.chat-head .who h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .who .sub { color: var(--muted); font-size: 12.5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.day { align-self: center; font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,.75); padding: 2px 10px; border-radius: 99px; margin: 10px 0 4px; }
.visit { align-self: stretch; text-align: center; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #8a6c3a; margin: 14px 0 6px; display: flex; align-items: center; gap: 10px; }
.visit::before, .visit::after { content: ""; flex: 1; height: 1px; background: #dccdb1; }
.b { max-width: min(72%, 560px); padding: 8px 12px 6px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 1px rgba(20,33,61,.06); }
.b.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.b.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.b.out.bot, .b.out.system { background: var(--bubble-bot); }
.b.out.campaign { background: #efe7f6; }
.b .meta { display: flex; gap: 8px; justify-content: flex-end; font-size: 11px; color: var(--soft); margin-top: 3px; white-space: nowrap; }
.b .meta .by { margin-right: auto; font-weight: 600; color: #8a6c3a; }
.b.out.staff .meta .by { color: var(--navy-3); }
.b.failed { outline: 1px solid var(--bad); }
.b .err { color: var(--bad); font-size: 12px; margin-top: 3px; white-space: normal; }
.b .btns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.b .btns span { font-size: 12px; border: 1px solid rgba(20,33,61,.15); padding: 2px 8px; border-radius: 99px; color: var(--navy-3); background: rgba(255,255,255,.6); }
.b.in .pay { font-size: 11px; color: var(--soft); }
.composer { background: var(--panel); border-top: 1px solid var(--line); padding: 10px 14px 12px; }
.composer .warn-line { font-size: 12px; color: var(--warn); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.composer form { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 42px; max-height: 160px; resize: none; }
.att-bar { background: var(--bad-soft); color: var(--bad); padding: 8px 20px; font-size: 13px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #efcfcb; }
.att-bar .btn { margin-left: auto; }
.prof { overflow-y: auto; padding: 18px; }
.prof section { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.prof section:last-child { border-bottom: 0; }
.prof h3 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.note { background: #fffaf0; border: 1px solid #f0e3c6; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.note .nm { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; }
.note .nm button { background: none; border: 0; padding: 0; color: var(--soft); cursor: pointer; font-size: 11.5px; }
.note.pinned { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.visit-row { font-size: 13px; padding: 6px 0; display: flex; justify-content: space-between; gap: 10px; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.chat-empty svg { width: 56px; height: 56px; color: var(--gold); opacity: .7; }

/* ---------- Check-in ---------- */
.checkin { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 22px; align-items: start; }
.lookup { border-radius: var(--radius); padding: 16px 18px; border: 1px dashed var(--line); color: var(--muted); }
.lookup.returning { border: 1px solid var(--gold); background: linear-gradient(135deg, #fbf5ea, #fff); color: var(--ink); }
.lookup.new { border-style: solid; background: #fff; color: var(--ink); }
.lookup .big { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 4px 0; }
.lookup .past { margin-top: 10px; font-size: 13px; }

/* ---------- Statistici ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi .v { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-top: 2px; line-height: 1.2; }
.kpi .s { font-size: 12px; color: var(--muted); }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 110px 1fr 38px; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--gold); border-radius: 99px; }
.bar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cereri ---------- */
.req { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.req:last-child { border-bottom: 0; }
.req .what { font-size: 15px; white-space: pre-wrap; }
.req .act { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.req .act textarea { flex: 1; min-width: 240px; min-height: 42px; }

/* ---------- Simulator ---------- */
.sim { display: grid; grid-template-columns: 300px 380px 1fr; gap: 22px; align-items: start; }
.phone { background: #111; border-radius: 34px; padding: 12px; box-shadow: 0 20px 40px rgba(20,33,61,.18); }
.phone .scr { background: #ece5dd; border-radius: 24px; height: 640px; display: flex; flex-direction: column; overflow: hidden; }
.phone .top { background: #075e54; color: #fff; padding: 14px 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.phone .top img { width: 30px; height: 30px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; }
.phone .ms { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.phone .m { max-width: 85%; padding: 6px 9px; border-radius: 8px; white-space: pre-wrap; font-size: 13.5px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.phone .m.h { align-self: flex-start; background: #fff; }
.phone .m.g { align-self: flex-end; background: #dcf8c6; }
.phone .m .opts { display: grid; gap: 4px; margin-top: 6px; }
.phone .m .opts button { border: 0; border-top: 1px solid #e3e3e3; background: transparent; color: #0a7cff; padding: 7px 4px 3px; cursor: pointer; font-weight: 600; font-size: 13px; }
.phone form { display: flex; gap: 6px; padding: 8px; background: #f0f0f0; }
.phone form input { border-radius: 99px; border: 0; }
.phone form button { border-radius: 50%; width: 40px; height: 40px; border: 0; background: #075e54; color: #fff; cursor: pointer; flex: none; }

/* ---------- Modal / Toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20,33,61,.38); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 24px; box-shadow: 0 24px 60px rgba(20,33,61,.25); }
.modal h2 { margin-bottom: 14px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(20,33,61,.25); max-width: 380px; animation: tin .2s ease-out; }
.toast.err { background: var(--bad); }
.toast.ok { background: var(--ok); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--navy); color: #e8ebf3; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(212,182,127,.25); box-shadow: 0 0 0 40px rgba(212,182,127,.05), 0 0 0 90px rgba(212,182,127,.035); }
.login .art img { height: 52px; align-self: flex-start; }
.login .art h1 { font-size: 40px; font-weight: 500; color: #fff; line-height: 1.15; max-width: 440px; }
.login .art h1 em { color: var(--gold-2); font-style: italic; }
.login .art p { color: #aeb6ca; max-width: 420px; }
.login .form { display: grid; place-items: center; padding: 32px; }
.login form { width: min(360px, 100%); }
.login form h2 { font-size: 26px; margin-bottom: 4px; }
.login .err { color: var(--bad); min-height: 20px; font-size: 13px; margin: 8px 0; }

@media (max-width: 1250px) {
  .inbox { grid-template-columns: 290px minmax(0, 1fr); }
  .inbox .col.profile-col { display: none; }
  .inbox.show-profile .col.profile-col { display: flex; position: fixed; right: 0; top: 0; bottom: 0; width: 340px; z-index: 30; box-shadow: -10px 0 30px rgba(20,33,61,.15); }
  .checkin, .sim { grid-template-columns: 1fr; }
}
@media (min-width: 1251px) { .only-narrow { display: none !important; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 100vh; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand { border: 0; padding: 12px 16px; }
  .brand .app-name { display: none; }
  .nav { display: flex; overflow-x: auto; padding: 6px 8px; flex-basis: 100%; order: 3; }
  .nav a { white-space: nowrap; }
  .nav .group, .nav .sep { display: none; }
  .side-foot { border: 0; margin-left: auto; padding: 8px 16px; }
  .side-foot .mode { display: none; }
  .main { overflow: visible; }
  .page { padding: 18px 16px 32px; height: auto; }
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 110px); }
  .inbox.open .list-col { display: none; }
  .inbox:not(.open) .chat { display: none; }
  .row.c2, .row.c3, .grid2 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .art { padding: 28px 22px; min-height: 220px; }
  .login .art h1 { font-size: 28px; }
}

/* mesaje necitite */
.badge.new { background: #25a366; color: #fff; min-width: 20px; justify-content: center; }
.conv.unread .nm { font-weight: 800; }
.conv.unread .pv { color: var(--ink); font-weight: 600; }
.conv .dot { display: inline-flex; align-items: center; gap: 3px; background: #25a366; color: #fff; border-radius: 99px; padding: 1px 7px 1px 5px; font-size: 11.5px; font-weight: 700; }
.conv .dot svg { width: 12px; height: 12px; }

/* licență, 2FA */
.lic-banner { position: relative; z-index: 40; }
.lic-banner > * { margin: 0 !important; }
.qr svg { width: 180px; height: 180px; display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.codes code { font-size: 15px; letter-spacing: .08em; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-align: center; }
