/* ============================================================
   LUCELLO — admin console styles
   ============================================================ */

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 50% -10%, rgba(167,139,255,.12), transparent 60%), var(--bg-0); }
.login-card { width: min(430px, 100%); padding: 40px 38px 34px; animation: bkIn .45s var(--ease-spring); }
.login-logo { width: 130px; margin: 0 auto 26px; display: block; }
.login-card h1 { font-size: 24px; text-align: center; }
.login-sub { text-align: center; font-size: 13.5px; color: var(--text-low); margin: 8px 0 26px; }
.login-card form { display: grid; gap: 15px; }
.login-card .btn { width: 100%; margin-top: 6px; }
.login-err { color: var(--acc-bad); font-size: 13px; min-height: 18px; text-align: center; }
.login-hint { margin-top: 22px; font-size: 12px; color: var(--text-low); text-align: center; line-height: 1.6; }
.login-hint code { font-family: var(--font-mono); color: var(--acc-1); font-size: 11px; }
.login-alt { margin-top: 18px; font-size: 13.5px; text-align: center; }
.login-alt a { color: var(--acc-1); font-weight: 600; }
.login-alt a:hover { text-decoration: underline; }
.login-foot { margin-top: 14px; text-align: right; font-size: 12.5px; }
.login-foot a { color: var(--text-low); border-bottom: 1px dotted var(--line-strong); }
.login-foot a:hover { color: var(--acc-1); }
.login-ok { color: var(--acc-ok); font-size: 13.5px; text-align: center; }
.login-ok a { color: var(--acc-1); font-weight: 600; }
.login-card .bk-field input { background: rgba(9,11,20,.8); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 14.5px; color: var(--text-hi); }
.login-card .bk-field input:focus { outline: none; border-color: var(--acc-1); box-shadow: 0 0 0 3px rgba(110,231,255,.12); }
.login-card .bk-field label { font-size: 12.5px; font-weight: 600; color: var(--text-mid); display: block; margin-bottom: 7px; }
.login-card .bk-field label i { color: var(--text-low); font-style: normal; font-weight: 400; }

/* ---------- shell (fixed frame, content scrolls inside) ---------- */
.adm-app { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.adm-side { height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(255,255,255,.012); padding: 22px 16px; overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 13px; padding: 4px 10px 22px; }
.adm-brand img { height: 30px; }
.adm-brand span { font-family: var(--font-display); letter-spacing: .3em; font-weight: 700; font-size: 14px; color: var(--text-hi); }
.adm-nav { display: grid; gap: 4px; }
.adm-nav a { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--text-mid); transition: all var(--t-fast); }
.adm-nav a svg { width: 19px; height: 19px; }
.adm-nav a:hover { color: var(--text-hi); background: var(--glass); }
.adm-nav a.on { color: var(--text-hi); background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.adm-nav a.on::before { content: ""; position: absolute; }
.adm-side-bottom { margin-top: auto; display: grid; gap: 12px; }
.adm-visit { font-size: 12.5px; color: var(--text-low); padding: 0 10px; }
.adm-visit:hover { color: var(--acc-1); }
.adm-user { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); }
.adm-ava { width: 34px; height: 34px; border-radius: 99px; background: var(--grad-brand); color: #06070d; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.adm-user b { display: block; font-size: 13px; color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.adm-user span { font-size: 11px; color: var(--text-low); }
.adm-out { margin-left: auto; color: var(--text-low); padding: 7px; border-radius: 9px; transition: all var(--t-fast); }
.adm-out:hover { color: var(--acc-bad); background: rgba(248,113,113,.08); }

.adm-main { min-width: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.adm-top { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(20px, 3.4vw, 40px); border-bottom: 1px solid var(--line); background: rgba(9, 11, 19, .9); flex: none; }
.adm-top h2 { font-size: 19px; }
.adm-content { padding: clamp(18px, 3vw, 34px); flex: 1; overflow-y: auto; }

/* ---------- bell ---------- */
.adm-bell { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text-mid); cursor: pointer; }
.adm-bell:hover { color: var(--text-hi); border-color: var(--line-strong); }
.adm-bell svg { width: 19px; height: 19px; }
.adm-bell-dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 99px; background: var(--acc-3); box-shadow: 0 0 8px var(--acc-3); }
.adm-notif { position: absolute; top: 48px; right: 0; width: min(360px, 86vw); max-height: 420px; overflow-y: auto; border-radius: 16px; border: 1px solid var(--line-strong); background: #0c0e18; box-shadow: 0 30px 80px -20px #000; padding: 8px; }
.adm-notif h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-low); padding: 10px 12px; }
.notif-item { padding: 11px 12px; border-radius: 12px; font-size: 13px; color: var(--text-mid); line-height: 1.5; }
.notif-item.unread { background: var(--glass); color: var(--text-hi); }
.notif-item .nw { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--text-low); font-family: var(--font-mono); margin-bottom: 4px; }
.notif-item a { color: var(--acc-1); word-break: break-all; }
.notif-empty { padding: 26px 12px; text-align: center; color: var(--text-low); font-size: 13px; }

/* ---------- dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { padding: 22px 22px 18px; position: relative; overflow: hidden; }
.stat-card .sl { font-size: 12.5px; color: var(--text-low); letter-spacing: .04em; }
.stat-card .sv { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--text-hi); margin-top: 6px; letter-spacing: -.02em; }
.stat-card .sx { font-size: 12px; color: var(--text-low); margin-top: 4px; }
.stat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--grad-soft); filter: blur(6px); opacity: .7; }
.stat-card.money .sv { color: var(--acc-ok); }

.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.panel { padding: 22px; }
.panel h4 { font-size: 14.5px; margin-bottom: 4px; }
.panel .ph { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.panel .ph span { font-size: 11.5px; color: var(--text-low); font-family: var(--font-mono); }

/* bar chart (pure CSS) */
.bchart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.bcol { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; position: relative; }
.bcol .bar { border-radius: 4px 4px 2px 2px; min-height: 2px; transition: height .6s var(--ease-out); position: relative; }
.bcol .bar.deals { background: linear-gradient(180deg, var(--acc-2), rgba(167,139,255,.25)); }
.bcol .bar.bookings { background: linear-gradient(180deg, var(--acc-1), rgba(110,231,255,.2)); }
.bcol .bl { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--text-low); font-family: var(--font-mono); white-space: nowrap; }
.bcol .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #12141f; border: 1px solid var(--line-strong); padding: 4px 8px; border-radius: 7px; font-size: 10.5px; font-family: var(--font-mono); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast); z-index: 5; }
.bcol:hover .tip { opacity: 1; }
.bchart-legend { display: flex; gap: 18px; margin-top: 26px; font-size: 11.5px; color: var(--text-low); }
.bchart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* pipeline bars */
.pipe-row { display: grid; grid-template-columns: 92px 1fr 40px; gap: 12px; align-items: center; padding: 9px 0; }
.pipe-row .pn { font-size: 12.5px; color: var(--text-mid); }
.pipe-row .ptrack { height: 9px; border-radius: 99px; background: rgba(148,163,216,.1); overflow: hidden; }
.pipe-row .pfill { height: 100%; border-radius: 99px; background: var(--grad-brand); transition: width .8s var(--ease-out); }
.pipe-row.won .pfill { background: linear-gradient(90deg, #4ade80, #22d3a7); }
.pipe-row.lost .pfill { background: linear-gradient(90deg, #f87171, #fb923c); }
.pipe-row .pv { font-size: 12.5px; color: var(--text-hi); font-weight: 600; text-align: right; }

/* team table */
.ttable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ttable th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-low); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ttable td { padding: 12px; border-bottom: 1px solid rgba(148,163,216,.08); color: var(--text-mid); }
.ttable tr:last-child td { border-bottom: 0; }
.ttable td b { color: var(--text-hi); font-weight: 600; }

/* empty state */
.empty { padding: 56px 30px; text-align: center; }
.empty .e-ic { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px; display: grid; place-items: center; border: 1px dashed var(--line-strong); color: var(--text-low); }
.empty h4 { font-size: 16px; color: var(--text-hi); margin-bottom: 8px; }
.empty p { font-size: 13.5px; color: var(--text-low); max-width: 46ch; margin: 0 auto; line-height: 1.65; }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(215px, 1fr)); gap: 13px; align-items: start; overflow-x: auto; padding-bottom: 20px; }
.kcol { border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.014); min-height: 300px; transition: border-color var(--t-fast), background var(--t-fast); }
.kcol.over { border-color: var(--acc-1); background: rgba(110,231,255,.05); }
.kcol-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px 11px; }
.kcol-head b { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-mono); color: var(--text-mid); }
.kcol-head .cnt { font-size: 11px; background: var(--glass-strong); border: 1px solid var(--line); padding: 2px 8px; border-radius: 99px; color: var(--text-hi); font-family: var(--font-mono); }
.kcol-sum { font-size: 11px; color: var(--text-low); padding: 0 14px 10px; font-family: var(--font-mono); }
.kcol-body { display: grid; gap: 10px; padding: 4px 10px 12px; min-height: 60px; }
.kcard { border-radius: 13px; border: 1px solid var(--line); background: #0d1019; padding: 13px 14px; cursor: grab; transition: border-color var(--t-fast), transform var(--t-fast); }
.kcard:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.kcard.dragging { opacity: .45; cursor: grabbing; }
.kcard .kt { font-size: 13.5px; color: var(--text-hi); font-weight: 600; line-height: 1.4; }
.kcard .kv { font-family: var(--font-display); font-size: 16px; color: var(--acc-1); margin-top: 6px; font-weight: 700; }
.kcard .km { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.kchip { font-size: 10px; font-family: var(--font-mono); letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text-mid); text-transform: uppercase; }
.kava { width: 20px; height: 20px; border-radius: 99px; font-size: 9px; font-weight: 800; color: #06070d; display: grid; place-items: center; margin-left: auto; }

/* ---------- tables page (bookings) ---------- */
.tbl-wrap { border-radius: 16px; border: 1px solid var(--line); overflow-x: auto; }
.tbl-page table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.tbl-page th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-low); padding: 13px 14px; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--line); }
.tbl-page td { padding: 13px 14px; border-bottom: 1px solid rgba(148,163,216,.08); color: var(--text-mid); vertical-align: middle; }
.tbl-page tr:last-child td { border-bottom: 0; }
.tbl-page td b { color: var(--text-hi); }
.status-pill { display: inline-block; font-size: 11px; font-family: var(--font-mono); padding: 4px 10px; border-radius: 99px; border: 1px solid; }
.st-upcoming { color: var(--acc-1); border-color: rgba(110,231,255,.35); background: rgba(110,231,255,.06); }
.st-completed { color: var(--acc-ok); border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.06); }
.st-cancelled { color: var(--text-low); border-color: var(--line); }
.st-no-show { color: var(--acc-bad); border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.06); }
.zoom-link { color: var(--acc-1); font-size: 12px; border-bottom: 1px dotted rgba(110,231,255,.4); white-space: nowrap; }
select.mini { background: #0d1019; border: 1px solid var(--line); color: var(--text-mid); border-radius: 9px; padding: 6px 9px; font-size: 12px; }

/* ---------- team page ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.member { padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.member .m-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.member .adm-ava { width: 42px; height: 42px; font-size: 16px; }
.member b { font-size: 15px; color: var(--text-hi); display: block; }
.member .role-chip { font-size: 10.5px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc-3); }
.member .m-stats { display: flex; gap: 20px; margin: 10px 0 16px; font-size: 12px; color: var(--text-low); }
.member .m-stats b { font-size: 16px; color: var(--text-hi); display: block; font-family: var(--font-display); }
.member .m-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.temp-pw { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(74,222,128,.07); border: 1px dashed rgba(74,222,128,.4); font-size: 13px; }
.temp-pw code { font-family: var(--font-mono); color: var(--acc-ok); font-weight: 700; font-size: 15px; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.int-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(148,163,216,.08); font-size: 13.5px; }
.int-line:last-child { border-bottom: 0; }
.int-ok { color: var(--acc-ok); } .int-off { color: var(--text-low); }
.settings-note { font-size: 12.5px; color: var(--text-low); line-height: 1.7; margin-top: 10px; }
.settings-note code { font-family: var(--font-mono); color: var(--acc-1); font-size: 11.5px; }

/* ---------- drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(4,5,9,.6); backdrop-filter: blur(4px); animation: fadeIn .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(460px, 94vw); background: #0b0d15; border-left: 1px solid var(--line-strong); box-shadow: -40px 0 100px -30px #000; padding: 26px; overflow-y: auto; animation: slideIn .3s var(--ease-out); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer h3 { font-size: 18px; line-height: 1.4; padding-right: 30px; }
.drawer .d-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text-mid); }
.drawer .d-close:hover { border-color: var(--acc-bad); color: var(--text-hi); }
.drawer .d-meta { display: flex; gap: 10px; align-items: center; margin: 14px 0 20px; flex-wrap: wrap; }
.d-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.drawer label.f { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-low); margin-bottom: 6px; letter-spacing: .04em; }
.drawer input, .drawer select, .drawer textarea { width: 100%; background: rgba(9,11,20,.8); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 14px; color: var(--text-hi); }
.drawer input:focus, .drawer select:focus, .drawer textarea:focus { outline: none; border-color: var(--acc-1); }
.d-notes { margin-top: 22px; }
.d-note { padding: 12px 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; color: var(--text-mid); line-height: 1.55; }
.d-note .dn { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-low); font-family: var(--font-mono); margin-bottom: 5px; }

/* ---------- quick actions & meeting ---------- */
.dash-quick { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.d-meeting { margin-top: 20px; }
.d-meet-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-meet-row .zoom-link { font-size: 12.5px; word-break: break-all; }
.d-meet-sub { font-size: 11.5px; color: var(--text-low); margin-top: 7px; line-height: 1.5; }
.d-del-row { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.d-del { color: var(--acc-bad); border: 1px solid rgba(248,113,113,.35); background: transparent; padding: 9px 18px; border-radius: 11px; font-size: 13px; font-weight: 600; transition: all var(--t-fast); }
.d-del:hover { background: rgba(248,113,113,.07); border-color: rgba(248,113,113,.55); }
.d-del.armed { background: rgba(248,113,113,.14); border-color: var(--acc-bad); color: #fecaca; }
.d-del-note { font-size: 11.5px; color: var(--text-low); }

/* ---------- client (customer) view ---------- */
.cust-app { min-height: 100vh; display: flex; flex-direction: column; }
.cust-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
  padding: 14px clamp(20px, 4vw, 44px); border-bottom: 1px solid var(--line);
  background: rgba(6,7,13,.82); backdrop-filter: blur(14px); }
.cust-visit { margin-left: auto; font-size: 12.5px; color: var(--text-low); }
.cust-visit:hover { color: var(--acc-1); }
.cust-user { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); }
.cust-user b { display: block; font-size: 13px; color: var(--text-hi); white-space: nowrap; }
.cust-user span { font-size: 11px; color: var(--text-low); }
.cust-main { width: min(880px, 100% - 48px); margin: 0 auto; padding: 42px 0 90px; flex: 1; }
.cust-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.cust-head h2 { font-size: 26px; }
.cust-head p { color: var(--text-low); font-size: 14px; margin-top: 6px; max-width: 56ch; }

@media (max-width: 960px) {
  .adm-app { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; }
  .adm-brand { padding: 0; } .adm-brand span { display: none; }
  .adm-nav { display: flex; overflow-x: auto; } .adm-nav a span { display: none; }
  .adm-side-bottom { margin: 0 0 0 auto; display: flex; align-items: center; }
  .adm-visit { display: none; }
  .adm-user b, .adm-user span { display: none; }
  .stat-grid, .dash-grid, .settings-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) { .stat-grid, .dash-grid, .settings-grid { grid-template-columns: 1fr; } }
