/* client cabinet additions on top of ui.css */
.my-auth { max-width: 440px; }
.my-auth form { display: flex; flex-direction: column; gap: 14px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #eef4f4; border-radius: 12px; padding: 4px; margin-bottom: 6px; }
.auth-tabs button { font: inherit; font-weight: 600; height: 40px; border: 0; border-radius: 9px; background: transparent; color: #5a6e6d; cursor: pointer; }
.auth-tabs button.on { background: #fff; color: #0f1d1c; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.bal-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent2); font-weight: 700; cursor: pointer; white-space: nowrap; }
.bal-chip.neg { background: var(--crit-soft); color: var(--crit); }
.welcome { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 26px; border-radius: var(--r); color: #fff; margin-bottom: 16px;
  background: radial-gradient(500px 250px at 90% 0%, rgba(225,29,46,.35), transparent 60%), linear-gradient(135deg, #15171c, #24272f); }
.welcome h1 { font-size: 24px; margin: 0 0 4px; } .welcome p { margin: 0; color: #a1a1aa; }
.welcome .btn { margin-left: auto; }
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: .15s; box-shadow: var(--shadow); }
.svc-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.svc-row .grow { flex: 1; min-width: 0; } .svc-row .grow b { display: block; } .svc-row small { color: var(--muted); }
.detail-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px; }
.cred { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 14px; align-items: center; font-size: 14px; }
.cred dt { color: var(--muted); } .cred dd { margin: 0; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.cred .cp { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-size: 13px; }
.fm-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.fm-path { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; flex: 1; }
.fm-path a { cursor: pointer; color: var(--accent2); padding: 2px 4px; border-radius: 5px; } .fm-path a:hover { background: var(--hover); }
.fm tr td:first-child { width: 28px; text-align: center; }
.fm .nm { cursor: pointer; font-weight: 500; } .fm .nm:hover { color: var(--accent2); }
.fm-drop { border: 2px dashed var(--accent); background: var(--accent-soft); }
.order-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.op { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 6px; }
.op:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow), 0 10px 30px rgba(15,29,28,.08); }
.op.on { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.op b.pr { font-size: 26px; font-weight: 800; color: var(--accent2); }
.op ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 55vh; overflow: auto; padding: 4px; }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); white-space: pre-wrap; font-size: 14px; }
.msg.me { align-self: flex-end; background: var(--accent-soft); border-color: var(--accent-ring); }
.msg small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.power { display: flex; gap: 8px; flex-wrap: wrap; }
.qr-box { background: #fff; padding: 14px; border-radius: 14px; display: inline-block; }
@media (max-width: 700px) { .welcome .btn { margin-left: 0; width: 100%; } .cred { grid-template-columns: 1fr auto; } .cred dt { grid-column: 1 / -1; } }
.order-sum { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); font-weight: 600; }
.order-sum b { font-size: 22px; color: var(--accent2); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; cursor: pointer; display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border: 1px solid #d4dfde; border-radius: 12px; font-weight: 600; color: #4a5e5d; font-size: 14px; transition: .12s; }
.seg.sm span { height: 40px; font-size: 13.5px; }
.seg input:checked + span { border-color: #e11d2e; background: rgba(225,29,46,.08); color: #be123c; box-shadow: 0 0 0 3px rgba(225,29,46,.15); }
.my-auth { max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; }
.my-auth label { color: #3c5554; }
.my-auth label[for="rp"] { display: flex; justify-content: space-between; align-items: center; }
.gen { font-size: 12px; font-weight: 600; }
.pfx { display: grid; place-items: center; padding: 0 12px; border: 1px solid #d4dfde; border-radius: 10px; background: #f4f7f7; font-weight: 600; color: #4a5e5d; }
.pw-meter { height: 5px; border-radius: 9px; background: #eef3f3; margin-top: 8px; overflow: hidden; } .pw-meter i { display: block; height: 100%; width: 0; transition: .2s; border-radius: 9px; }
.hint.ok { color: #16a34a; } .hint.bad { color: #dc2626; }
.my-auth .check { align-items: flex-start; font-size: 13px; color: #4a5e5d; line-height: 1.5; } .my-auth .check span { display: block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 22px 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: .18s; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; color: var(--text); }
.tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.tile .ti { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--accent-soft), rgba(56,189,248,.12)); }
.steps { display: flex; align-items: center; margin: 0 0 22px; }
.step-i { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.step-i b { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; font-size: 13px; background: var(--panel); }
.step-i.on { color: var(--text); } .step-i.on b { border-color: var(--accent); color: var(--accent2); }
.step-i.done b { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-ln { flex: 1; height: 2px; background: var(--line2); margin: 0 12px; min-width: 20px; } .step-ln.done { background: var(--accent); }
.per { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.per button { font: inherit; font-size: 13.5px; font-weight: 600; height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.per button.on { background: var(--text); color: var(--panel); } .per small { color: var(--ok); font-weight: 700; margin-left: 4px; } .per button.on small { color: #86efac; }
.op .save { color: var(--ok); font-size: 12px; font-weight: 700; }
.op .old { text-decoration: line-through; color: var(--dim); font-size: 13px; margin-left: 6px; font-weight: 500; }
@media (max-width: 760px) { .steps .step-i span { display: none; } }

/* ---- brand: Georgian red + graphite ---- */
:root, :root[data-theme="light"] { --accent: #e11d2e; --accent2: #be123c; --accent-soft: rgba(225,29,46,.08); --accent-ring: rgba(225,29,46,.20);
  --side: #15171c; --side2: #23262e; --side-text: #b4b4bc; --side-dim: #6b6b75; --bg: #f6f6f7; --hover: #fbf1f2; }
:root[data-theme="dark"] { --accent: #f43f5e; --accent2: #fb7185; --accent-soft: rgba(244,63,94,.12); --accent-ring: rgba(244,63,94,.25);
  --side: #0c0d10; --side2: #1a1c22; --bg: #0f1013; --panel: #16181d; --panel2: #1c1f25; --line: #262931; --line2: #30343d; --hover: #1f2128; }
nav a.active { background: rgba(225,29,46,.16) !important; } nav a.active i { color: #fb7185 !important; } nav a.active::before { background: #e11d2e !important; }
.brand-logo { background: linear-gradient(135deg, #e11d2e, #9f1239) !important; }
.uav { background: linear-gradient(135deg, #e11d2e, #9f1239) !important; }
.btn.primary { box-shadow: 0 1px 2px rgba(225,29,46,.3), inset 0 1px 0 rgba(255,255,255,.15); }
.login-wrap { background: radial-gradient(800px 500px at 15% 0%, rgba(225,29,46,.28), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(140,20,32,.30), transparent 60%), linear-gradient(150deg, #0d0e11, #15171c 55%, #1c1f26) !important; }
.welcome { background: radial-gradient(500px 250px at 90% 0%, rgba(225,29,46,.40), transparent 60%), linear-gradient(135deg, #15171c, #24272f) !important; }
.welcome p { color: #a1a1aa !important; }
.tile .ti { background: linear-gradient(135deg, #fff1f2, #ffe4e6) !important; }
:root[data-theme="dark"] .tile .ti { background: rgba(244,63,94,.12) !important; }
.auth-tabs { background: #f3f3f5; }

.side .logo:has(img) { height: auto; padding: 18px 16px 14px; }
.side .logo:has(img) #comp { display: none; }
.side .logo .brand-logo:has(img) { background: #fff !important; width: 100%; max-width: 210px; height: 56px; padding: 8px 14px; border-radius: 14px; }
.side .logo .brand-logo:has(img) img { width: 100%; height: 100%; object-fit: contain; background: transparent !important; padding: 0 !important; }
.lc-logo { height: 70px; max-width: 280px; }

/* home: main + side column */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.home-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.side-card h3 { font-size: 14.5px !important; margin-bottom: 12px !important; }
.myip { font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: -.3px; word-break: break-all; }
.ns-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--panel2); }
.ns-row .ns-n { font-size: 11px; font-weight: 800; color: var(--accent2); background: var(--accent-soft); padding: 3px 7px; border-radius: 6px; }
.ns-row code { flex: 1; background: none; border: 0; padding: 0; font-size: 13px; }
.ns-row .cp, .cred .cp { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 13px; }
.st-sum { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok); margin-bottom: 8px; font-size: 13.5px; } .st-sum i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.st-sum.bad { color: var(--crit); } .st-sum.bad i { background: var(--crit); }
.st-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; color: var(--text); } .st-row .muted { margin-left: auto; font-size: 12px; }
.st-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); } .st-row .dot.off { background: var(--crit); }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } .home-side { position: static; } }

.paym { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pm { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pm .pi { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, #fff1f2, #ffe4e6); }
.pm b { font-size: 15.5px; } .pm p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; flex: 1; } .pm small { color: var(--ok); font-weight: 700; font-size: 12px; }
@media (max-width: 900px) { .paym { grid-template-columns: 1fr; } }

/* registration: three numbered blocks */
.my-auth:has(#fReg:not(.hidden)) { max-width: 560px; }
.reg3 { gap: 12px !important; }
.rs { border: 1px solid #ececef; border-radius: 16px; padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; background: #fcfcfd; }
.rs legend { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: #111318; padding: 0 6px; }
.rs legend b { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(135deg, #e11d2e, #9f1239); color: #fff; display: grid; place-items: center; font-size: 12px; }
.rs .form-grid { gap: 10px 12px; }
.pw-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: -4px; }
.code6 { text-align: center; letter-spacing: 10px; font-size: 20px !important; font-weight: 700; font-family: var(--mono); }
.my-auth label[for="rp"] { display: block; }
@media (max-width: 520px) { .rs .form-grid { grid-template-columns: 1fr; } }
.clip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 10px; background: var(--accent-soft); border: 1px dashed var(--accent); font-size: 12.5px; font-weight: 600; margin-right: 4px; }
.ssl-st { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; }
.ssl-st span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.ssl-st.ok { background: var(--ok-soft); } .ssl-st.ok span { background: var(--ok); color: #fff; }
.ssl-st.no { background: var(--warn-soft); } .ssl-st.no span { background: var(--warn); color: #fff; }
.ssl-st small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
