/* ───────────── Management preview (light, calm, practical) ───────────── */
body[data-page=admin] { background: #f3efe7; color: #17222f; }
body[data-page=admin] .hdr { display: none; }
.adm { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.adm__side { position: sticky; top: 0; height: 100vh; background: #fbf9f4; border-inline-end: 1px solid #e4ddcf; padding: 20px 14px; display: flex; flex-direction: column; gap: 14px; }
.adm__brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 14px; border-bottom: 1px solid #ece5d8; }
.adm__brand b { display: block; font-size: 16px; }
.adm__brand small { color: #7a8594; font-size: 12px; }
.adm__side nav { display: grid; gap: 2px; }
.adm__side nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: #3d4957; font-size: 14.5px; font-weight: 600; }
.adm__side nav a svg { width: 20px; height: 20px; flex: none; }
.adm__side nav a:hover { background: #f0ebe1; }
.adm__side nav a.on { background: #1d3461; color: #fff; }
.adm__side nav a em { margin-inline-start: auto; font-style: normal; background: #e2a64e; color: #2a1a06; font-size: 11.5px; font-weight: 800; min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; }
.adm__demo { margin-top: auto; font-size: 12px; color: #7a6a4c; background: #fbf1dc; border: 1px dashed #e2c48e; border-radius: 12px; padding: 10px; line-height: 1.6; }
.adm__demo button { display: block; margin-top: 8px; border: 0; background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 11.5px; cursor: pointer; color: #6b5a3a; }
.adm__back { font-size: 13px; color: #5a6676; text-decoration: none; padding: 4px 10px; }
.adm__main { padding: 30px clamp(16px, 3vw, 40px) 110px; min-width: 0; }
.adm__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.adm__head h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.02em; }
.adm__head p { margin: 4px 0 0; color: #6b7685; max-width: 640px; }
.muted { color: #7a8594; font-size: 13.5px; }
.atag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #eee7da; color: #5a5040; white-space: nowrap; vertical-align: middle; margin-inline-start: 4px; }
.atag--sample { background: repeating-linear-gradient(45deg, #fbe7c2 0 5px, #fdf1db 5px 10px); color: #8a5a10; }
.atag--dev { background: #d8efe9; color: #1f6e66; }
.atag--live { background: #1f6e66; color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: 18px; padding: 18px; border: 1px solid #ebe4d6; text-decoration: none; color: inherit; display: grid; gap: 2px; }
.kpi small { color: #7a8594; font-weight: 600; }
.kpi b { font-size: 34px; font-weight: 900; line-height: 1.2; }
.kpi span { font-size: 12.5px; color: #8a94a2; }
.kpi--hot { background: #1d3461; color: #fff; border-color: #1d3461; }
.kpi--hot small, .kpi--hot span { color: #b9c7de; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.agrid--2 { grid-template-columns: 1fr 1fr; margin-top: 16px; }
.apanel { background: #fff; border-radius: 20px; padding: 20px; border: 1px solid #ebe4d6; min-width: 0; }
.apanel h2 { font-size: 16.5px; margin: 0 0 12px; }
.apanel__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.apanel__h h2 { margin: 0; }
.apanel__h a { font-size: 13px; color: #2f7f86; text-decoration: none; font-weight: 700; }
.rrow, .crow { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .15s; }
.rrow:hover { background: #f7f3eb; }
.rrow.on { background: #eef6f4; box-shadow: inset 3px 0 0 #3fa59c; }
[dir=rtl] .rrow.on { box-shadow: inset -3px 0 0 #3fa59c; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #d8efe9, #c9d6ea); color: #1d3461; flex: none; }
.av--lg { width: 56px; height: 56px; font-size: 22px; }
.rrow__m { display: grid; min-width: 0; flex: 1; }
.rrow__m b { font-size: 14.5px; }
.rrow__m small { color: #7a8594; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-page=admin] .st--pending { background: #fbecd0; color: #8a5a10; }
body[data-page=admin] .st--approved { background: #d8efe9; color: #1f6e66; }
body[data-page=admin] .st--rejected { background: #fadcd0; color: #a2452a; }
body[data-page=admin] .st--waitlist, body[data-page=admin] .st--clarify { background: #e3e5fb; color: #3c43a0; }
.cap { display: grid; grid-template-columns: 1fr 120px auto; gap: 12px; align-items: center; padding: 8px 0; }
.cap__t b { display: block; font-size: 14px; }
.cap__t small { color: #7a8594; font-size: 12px; }
.cap__bar { height: 8px; border-radius: 8px; background: #efe9de; overflow: hidden; }
.cap__bar i { display: block; height: 100%; border-radius: 8px; }
.cap__n { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.alist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.alist li { padding: 9px 0; border-bottom: 1px dashed #ece5d8; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.alist small { color: #7a8594; }
.chans { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chans li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #ece5d8; font-size: 14px; }
.chans small { margin-inline-start: auto; color: #7a8594; font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot--demo { background: #3fa59c; box-shadow: 0 0 0 3px rgba(63,165,156,.2); }
.dot--off { background: #c5ccd5; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 1px solid #e4ddcf; background: #fff; padding: 8px 14px; border-radius: 99px; cursor: pointer; font-size: 13.5px; font-weight: 600; white-space: nowrap; color: #3d4957; }
.tabs button em { font-style: normal; color: #8a94a2; margin-inline-start: 4px; }
.tabs button.on { background: #1d3461; color: #fff; border-color: #1d3461; }
.tabs button.on em { color: #b9c7de; }
.rsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.rlist { background: #fff; border-radius: 20px; padding: 8px; border: 1px solid #ebe4d6; }
.rlist h3.sub { font-size: 13px; color: #7a8594; margin: 14px 10px 4px; }
.dcard { position: sticky; top: 20px; }
.dcard__top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.dcard__top h2 { margin: 0; font-size: 19px; }
.dcard__top small { color: #7a8594; }
.dcard__top .st { margin-inline-start: auto; }
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dgrid div { background: #f8f5ee; border-radius: 12px; padding: 10px 12px; }
.dgrid small { display: block; color: #7a8594; font-size: 11.5px; }
.dgrid b { font-size: 14px; }
.qnote { background: #fbf1dc; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; color: #5a4a2c; }
.qnote--err { background: #fadcd0; color: #8a3a22; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.abtn { border: 1px solid #e0d8c8; background: #fff; padding: 9px 16px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px; color: #2b3746; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: transform .15s, background .15s; }
.abtn:hover:not(:disabled) { background: #f7f3eb; transform: translateY(-1px); }
.abtn:disabled { opacity: .5; cursor: not-allowed; }
.abtn--ok { background: #1f6e66; color: #fff; border-color: #1f6e66; }
.abtn--ok:hover:not(:disabled) { background: #185a53; }
.abtn--no { color: #a2452a; }
.msgprev { border: 1px solid #d8efe9; background: #f2faf8; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.msgprev.flash { animation: flash 1.2s; }
@keyframes flash { 0% { background: #c9ebe3; } 100% { background: #f2faf8; } }
.msgprev small { color: #1f6e66; font-weight: 700; font-size: 12px; }
.msgprev p { margin: 6px 0 10px; font-size: 14px; white-space: pre-line; }
.msgprev__ch { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #5a6676; }
.msgprev__ch span { display: inline-flex; align-items: center; gap: 6px; }
.hist { display: grid; gap: 6px; font-size: 12.5px; color: #7a8594; }
.hist div { display: flex; gap: 8px; align-items: center; }
.ttable { background: #fff; border-radius: 20px; border: 1px solid #ebe4d6; padding: 6px; }
.trow { display: flex; align-items: center; gap: 14px; padding: 10px; border-bottom: 1px solid #f1ebe0; }
.trow:last-child { border: 0; }
.trow__th .rthumb { width: 64px; height: 40px; }
.mods { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 6px; }
.mods li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #f8f5ee; font-size: 14px; }
.mods .grip { color: #b5ab98; letter-spacing: -2px; }
.mods .up { margin-inline-start: auto; border: 0; background: #fff; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.sw { position: relative; width: 38px; height: 22px; flex: none; }
.sw input { opacity: 0; position: absolute; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: #d5cdbd; transition: background .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + i { background: #3fa59c; }
.sw input:checked + i::after { transform: translateX(16px); }
[dir=rtl] .sw input:checked + i::after { transform: translateX(-16px); }
.field2 { display: grid; gap: 6px; margin-bottom: 14px; }
.field2 label { font-size: 13px; font-weight: 700; color: #4a5664; }
.field2 input, .field2 select, .field2 textarea, .search { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid #e0d8c8; background: #fdfbf7; color: #17222f; outline: none; }
.field2 textarea { resize: vertical; }
.search { margin-bottom: 10px; }
.drop { display: grid; place-items: center; text-align: center; gap: 6px; padding: 34px 20px; border: 2px dashed #c9bfa9; border-radius: 16px; cursor: pointer; background: #fbf9f4; transition: all .2s; }
.drop.over, .drop:hover { border-color: #3fa59c; background: #f0f8f6; }
.drop small { color: #7a8594; max-width: 340px; }
.gpx { margin-top: 14px; display: grid; gap: 12px; }
.gpx__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.gpx__stats div { background: #f8f5ee; border-radius: 12px; padding: 8px 10px; min-width: 0; }
.gpx__stats small { display: block; color: #7a8594; font-size: 11px; }
.gpx__stats b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.gpx__map { width: 100%; background: #f4f1ea; border-radius: 14px; }
.gpx__prof { width: 100%; height: 90px; background: #f8f5ee; border-radius: 12px; }
.ctags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: end; }
.crow { border-bottom: 1px solid #f1ebe0; border-radius: 0; }
.steps2 { padding-inline-start: 20px; margin: 0 0 14px; display: grid; gap: 8px; font-size: 14px; }
.chips2 { display: flex; gap: 6px; flex-wrap: wrap; }
.chips2 button { border: 1px solid #e0d8c8; background: #fff; padding: 7px 13px; border-radius: 99px; cursor: pointer; font-size: 13px; color: #3d4957; }
.chips2 button.on { background: #1f6e66; color: #fff; border-color: #1f6e66; }
.chk { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 14px; }
.chk.off { color: #9aa3ae; }
.chk small { color: #a2452a; font-size: 12px; }
.phone { width: min(300px, 100%); margin: 0 auto; border-radius: 34px; border: 8px solid #17222f; background: #e9eef3; min-height: 380px; overflow: hidden; }
.phone__bar { background: #1d3461; color: #fff; padding: 14px; font-weight: 800; text-align: center; }
.bubble { margin: 14px; background: #fff; border-radius: 16px 16px 4px 16px; padding: 12px 14px; font-size: 14px; white-space: pre-line; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.fin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.fin div { background: #f8f5ee; border-radius: 12px; padding: 10px; }
.fin small { display: block; font-size: 11.5px; color: #7a8594; }
.fin b { font-size: 14px; }
.fin__p { background: #e3f3ef !important; }
.fin__p b { color: #1f6e66; }
.finbar { height: 8px; border-radius: 8px; background: #d8efe9; overflow: hidden; margin-bottom: 10px; }
.finbar i { display: block; height: 100%; background: #e2a64e; }
.rtable { display: grid; gap: 4px; font-size: 13px; overflow-x: auto; }
.rtable > div { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 6px; align-items: center; padding: 8px 6px; border-bottom: 1px solid #f1ebe0; min-width: 520px; }
.rtable__h span { font-size: 11.5px; color: #7a8594; font-weight: 700; text-align: center; }
.rtable .y { color: #1f6e66; font-weight: 900; text-align: center; }
.rtable .n { color: #c5ccd5; text-align: center; }

.plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.pnum { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1d3461; color: #fff; font-size: 14px; margin-inline-end: 10px; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.plist li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; padding: 10px 0; border-bottom: 1px dashed #ece5d8; font-size: 14.5px; }
.plist li span { color: #3fa59c; font-size: 16px; grid-row: span 2; }
.plist li small { color: #8a94a2; font-size: 12px; }
.plist li.demo small { color: #1f6e66; font-weight: 700; }
@media (max-width: 1000px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .rsplit, .agrid--2 { grid-template-columns: 1fr !important; }
  .dcard { position: static; }
}
@media (max-width: 820px) {
  .adm { grid-template-columns: 1fr; }
  .adm__side { position: fixed; bottom: 0; top: auto; inset-inline: 0; height: auto; z-index: 60; flex-direction: row; padding: 6px; border: 0; border-top: 1px solid #e4ddcf; background: rgba(251,249,244,.96); backdrop-filter: blur(10px); }
  .adm__brand, .adm__demo, .adm__back { display: none; }
  .adm__side nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; overflow-x: auto; }
  .adm__side nav a { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 6px 4px; text-align: center; position: relative; }
  .adm__side nav a em { position: absolute; top: 2px; inset-inline-end: 8px; min-width: 17px; height: 17px; font-size: 10px; }
  body[data-page=admin] .demobar { bottom: 62px; }
  .adm__main { padding-top: 20px; padding-bottom: 150px; }
  .dgrid { grid-template-columns: 1fr 1fr; }
  .cap { grid-template-columns: 1fr 80px auto; }
  .trow { flex-wrap: wrap; }
}
