:root { --forest: #0a1a4a; --gold: #f94208; --bg: #f3f6fb; --card: #fff; --line: #dbe2ee; --ink: #23272a; --muted: #6a716d; --red: #a5332a; --green: #1f7a45; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); display: flex; min-height: 100vh; }
a { color: var(--forest); }
h1 { font-size: 1.6rem; margin: 0 0 1rem; } h2 { font-size: 1.15rem; margin: 0 0 .8rem; } h3 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.side { width: 230px; flex: none; background: var(--forest); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: block; padding: 1.2rem; color: #fff; font-weight: 700; letter-spacing: .05em; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-brand small { display: block; font-weight: 400; letter-spacing: 0; opacity: .7; }
.side nav { padding: .6rem 0; flex: 1; overflow-y: auto; }
.side nav a { display: block; padding: .55rem 1.2rem; color: rgba(255,255,255,.85); text-decoration: none; }
.side nav a:hover, .side nav a.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 var(--gold); }
.side-foot { padding: 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: .4rem; font-size: .9rem; }
.side-foot a, .side-foot .linkbtn { color: rgba(255,255,255,.85); }
.main { flex: 1; padding: 1.8rem 2.2rem 4rem; min-width: 0; }
@media (max-width: 860px) { body { flex-direction: column; } .side { width: 100%; height: auto; position: static; } .side nav { display: flex; flex-wrap: wrap; } .main { padding: 1.2rem; } }
.head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; } .head h1 { margin: 0; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; margin: 0 0 1.2rem; }
fieldset.box { min-width: 0; } legend { font-weight: 600; padding: 0 .3rem; }
label, .field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; font-weight: 600; font-size: .9rem; }
.label { font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; font-weight: 400; padding: .55rem .65rem; border: 1px solid #c8ccc5; border-radius: 7px; background: #fff; width: 100%; color: var(--ink); }
input[type=color] { height: 44px; padding: .2rem; }
input:focus, select:focus, textarea:focus, .rte-area:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; } .check input { width: auto; }
.hint { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin: -.4rem 0 .8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border-radius: 7px; border: 1px solid #c8ccc5; background: #fff; color: var(--ink); text-decoration: none; font: 600 .92rem system-ui, sans-serif; cursor: pointer; }
.btn-primary { background: #0b3bd6; color: #fff; border-color: #0b3bd6; } .btn-primary:hover { background: #0a1a4a; }
.btn-wa { background: #1f8f4e; color: #fff; border-color: #1f8f4e; }
.btn-small { padding: .35rem .7rem; font-size: .85rem; } .btn-block { width: 100%; margin-top: .5rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--forest); cursor: pointer; font: inherit; text-decoration: underline; }
.danger { color: var(--red) !important; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .dim { opacity: .5; }
.flash { padding: .75rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.flash-success { background: #e1f1e6; color: #164d2b; } .flash-error { background: #f8e1dd; color: #7c2416; } .flash-warn { background: #fbf0d4; color: #5d4500; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; }
.table th, .table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #fafbf8; font-size: .82rem; color: var(--muted); }
.actions { white-space: nowrap; text-align: right; } .actions form { display: inline; margin-left: .8rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px; background: #eceee9; color: var(--ink); margin-left: .25rem; }
.tag-published, .tag-converted { background: #dff0e4; color: #1d5a33; } .tag-draft, .tag-closed { background: #eceee9; color: #555; }
.tag-new { background: #fde6c8; color: #7a4300; } .tag-warn { background: #fbf0d4; color: #6b4f00; }
.tag-contacted, .tag-follow_up, .tag-quoted { background: #e1ebf7; color: #22466e; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; text-decoration: none; color: var(--muted); }
.stat strong { display: block; font-size: 1.8rem; color: var(--forest); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: start; } @media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; } .checks li { padding: .35rem 0 .35rem 1.6rem; position: relative; border-bottom: 1px dashed var(--line); }
.checks li::before { position: absolute; left: 0; top: .35rem; font-weight: 700; } .checks .pass::before { content: "✓"; color: var(--green); } .checks .fail::before { content: "✗"; color: var(--red); }
.checks small { display: block; color: var(--muted); }
.two-col { columns: 2; column-gap: 2rem; } .two-col li { break-inside: avoid; } @media (max-width: 800px) { .two-col { columns: 1; } }
.score { display: inline-block; font-weight: 700; padding: .1rem .5rem; border-radius: 6px; font-size: .9rem; }
.score.good { background: #dff0e4; color: #1d5a33; } .score.ok { background: #fbf0d4; color: #6b4f00; } .score.bad { background: #f8e1dd; color: #7c2416; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.ed-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .ed-side { position: static; max-height: none; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; } .chip { flex-direction: row; align-items: center; gap: .35rem; font-weight: 400; border: 1px solid var(--line); border-radius: 99px; padding: .25rem .7rem; margin: 0; } .chip input { width: auto; }
.row-item { border: 1px solid var(--line); border-radius: 8px; padding: .7rem; margin-bottom: .7rem; display: grid; gap: .5rem; background: #fbfbf9; }
.row-item .linkbtn { justify-self: start; font-size: .85rem; }
.thumb { max-width: 100%; max-height: 160px; border-radius: 6px; margin-bottom: .5rem; object-fit: cover; }
.rte { border: 1px solid #c8ccc5; border-radius: 8px; background: #fff; }
.rte-bar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border-bottom: 1px solid var(--line); background: #f8f9f6; border-radius: 8px 8px 0 0; position: sticky; top: 0; z-index: 2; }
.rte-bar button { border: 1px solid transparent; background: none; border-radius: 5px; padding: .3rem .55rem; cursor: pointer; font: 500 .85rem system-ui; }
.rte-bar button:hover, .rte-bar button.on { background: #fff; border-color: var(--line); }
.rte-area { min-height: 260px; padding: .9rem 1rem; font-weight: 400; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.rte-area h2 { font-size: 1.35rem; margin: 1rem 0 .4rem; } .rte-area h3 { font-size: 1.12rem; margin: .8rem 0 .3rem; }
.rte-src:not([hidden]) { display: block; min-height: 260px; border: 0; border-radius: 0 0 8px 8px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.counter { font-weight: 400; font-size: .8rem; color: var(--muted); } .counter.over { color: var(--red); font-weight: 700; }
.serp { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; margin: 0 0 .9rem; background: #fff; font-family: arial, sans-serif; }
.serp span { display: block; overflow: hidden; text-overflow: ellipsis; }
.serp-url { font-size: .78rem; color: #4d5156; white-space: nowrap; } .serp-title { font-size: 1.1rem; color: #1a0dab; white-space: nowrap; } .serp-desc { font-size: .85rem; color: #4d5156; }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }
.tabs a { padding: .45rem .8rem; border-radius: 7px; text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.tabs a.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.settings .tab-panel { max-width: 860px; }
.js .settings .tab-panel { display: none; } .js .settings .tab-panel.active { display: block; }
.savebar { position: sticky; bottom: 0; background: var(--bg); padding: .8rem 0; border-top: 1px solid var(--line); max-width: 860px; }
.enq header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.enq-actions { display: flex; gap: .5rem; }
.enq-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4rem 1rem; margin: .8rem 0; }
.enq-meta dt { font-size: .78rem; color: var(--muted); } .enq-meta dd { margin: 0; overflow-wrap: anywhere; }
.enq-msg { background: #f8f9f6; border-radius: 7px; padding: .7rem .9rem; }
.enq-update, .inline-form { display: flex; gap: .8rem; align-items: flex-end; flex-wrap: wrap; } .enq-update label, .inline-form label { margin: 0; } .grow { flex: 1; min-width: 220px; }
.narrow-form { max-width: 520px; }
.login-body { align-items: center; justify-content: center; background: var(--forest); }
.login-card { background: #fff; padding: 2rem; border-radius: 14px; width: min(400px, 92vw); }
.login-card h1 { font-size: 1.35rem; }

/* ---------- Complete build additions ---------- */
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
form.inline select, form.inline input { width: auto; }
.tabs form.inline input { padding: .35rem .6rem; }
.picker { width: min(960px, 94vw); max-height: 86vh; border: 0; border-radius: 12px; padding: 0; }
.picker::backdrop { background: rgba(0,0,0,.5); }
.picker-head { display: flex; gap: .6rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.picker-head select { width: auto; margin-left: auto; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; padding: 1rem; }
.pick-item { border: 2px solid transparent; padding: 0; background: #f1f2ee; border-radius: 8px; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.pick-item:hover, .pick-item:focus { border-color: var(--gold); }
.pick-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-pick { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; align-items: center; }
.gal-pick figure { margin: 0; width: 110px; text-align: center; cursor: grab; }
.gal-pick img { width: 110px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.media-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--ink); font-size: .8rem; position: relative; }
.media-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.media-item span { display: block; padding: .35rem .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item em { position: absolute; top: .4rem; left: .2rem; font-style: normal; }
.focal { position: relative; cursor: crosshair; display: inline-block; max-width: 100%; }
.focal img { max-width: 100%; display: block; border-radius: 8px; }
.focal-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold), 0 2px 8px rgba(0,0,0,.5); pointer-events: none; }
.rev-list { padding-left: 1rem; } .rev-list li { margin-bottom: .3rem; }
.pay-row { border-bottom: 1px dashed var(--line); padding: .6rem 0; }
.builder-bar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.builder-bar select { width: auto; } .spacer-flex { flex: 1; }
.b-card { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; background: #fbfbf9; }
.b-card.is-hidden { opacity: .55; } .b-card.drop { box-shadow: 0 -3px 0 var(--gold); } .b-card.dragging { opacity: .4; }
.b-head { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; }
.b-grip { cursor: grab; font-size: 1.2rem; color: var(--muted); user-select: none; }
.b-title { flex: 1; text-align: left; background: none; border: 0; font: 600 .92rem system-ui; cursor: pointer; padding: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-tools { display: flex; gap: .2rem; flex: none; }
.b-tools button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: .2rem .5rem; font-size: .8rem; cursor: pointer; }
.b-tools .danger { color: var(--red); }
.b-body { padding: .4rem 1rem 1rem; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 10px 10px; }
.b-style { margin-top: .5rem; } .b-style summary { cursor: pointer; font-weight: 600; color: var(--forest); padding: .4rem 0; }
.b-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 1rem; }
.img-field { display: flex; gap: .4rem; align-items: center; }
.img-field img { width: 54px; height: 40px; object-fit: cover; border-radius: 4px; background: #eee; flex: none; }
.img-field input[type=color] { width: 54px; flex: none; }
.preview-wrap { background: #e9ebe6; border-radius: 8px; padding: .8rem; overflow: auto; }
.preview-wrap iframe { width: 100%; height: 720px; border: 0; background: #fff; display: block; margin: auto; border-radius: 6px; transition: width .2s; }

.grid-title { display: grid; grid-template-columns: 1fr 160px; gap: 0 1rem; } @media (max-width: 700px) { .grid-title { grid-template-columns: 1fr; } }
[data-rows="day"] { counter-reset: day; }
.day-row { counter-increment: day; position: relative; }
.day-badge { font-weight: 700; color: #0b3bd6; font-size: .85rem; }
.day-badge::after { content: " " counter(day); }
.tbl-scroll { overflow-x: auto; }
.price-table input.num { width: 7.5rem; } .price-table input.sm { width: 4.5rem; } .price-table td.c, td.c { text-align: center; }
.price-table input[type=checkbox] { width: 20px; height: 20px; }
.big-check { font-size: 1.05rem; padding: .6rem .8rem; background: #eef4ff; border-radius: 8px; }

/* ---------- Tour packages list (redesign) ---------- */
.pk-head { align-items: flex-start; }
.pk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: 0 0 1rem; }
.pk-stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; text-decoration: none; color: var(--muted); border-left: 4px solid var(--forest); }
.pk-stat strong { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--forest); }
.pk-stat span { font-size: .85rem; }
.pk-stat.ok { border-left-color: var(--green); } .pk-stat.warn { border-left-color: var(--gold); } .pk-stat.warn strong { color: var(--gold); }
.pk-import summary { cursor: pointer; }
.pk-import-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.pk-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; margin: 0 0 .8rem; position: sticky; top: 0; z-index: 3; }
.pk-toolbar input[type=search] { flex: 1 1 260px; width: auto; }
.pk-toolbar select { width: auto; flex: 0 0 auto; }
.pk-np { white-space: nowrap; }
.pk-list { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.pk-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 1rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .7rem; transition: box-shadow .15s, border-color .15s; }
.pk-row:hover { border-color: #b9c6dc; box-shadow: 0 4px 14px rgba(10, 26, 74, .08); }
.pk-thumb { display: block; width: 110px; height: 78px; border-radius: 8px; overflow: hidden; background: #e8edf5; }
.pk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-thumb span { display: grid; place-items: center; height: 100%; font-size: .75rem; color: var(--muted); }
.pk-main { min-width: 0; }
.pk-title { font-weight: 700; font-size: 1.02rem; text-decoration: none; color: var(--forest); }
.pk-title:hover { text-decoration: underline; }
.pk-meta { display: flex; flex-wrap: wrap; gap: .25rem .8rem; font-size: .85rem; margin: .2rem 0 .35rem; color: var(--ink); }
.pk-meta .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pk-code { font-family: ui-monospace, Consolas, monospace; background: #eef2f9; padding: 0 .4rem; border-radius: 4px; font-size: .8rem; }
.pk-tags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.pk-tags .tag { margin-left: 0; }
.tag-price { background: #e1ebf7; color: #22466e; }
.pk-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; max-width: 300px; }
.pk-actions form { margin: 0; }
.btn-sm { padding: .35rem .7rem; font-size: .84rem; }
.btn-del { color: var(--red); border-color: #e6c3bf; }
.btn-del:hover { background: #fbeceb; }
@media (max-width: 760px) {
  .pk-row { grid-template-columns: 80px 1fr; }
  .pk-thumb { width: 80px; height: 64px; }
  .pk-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .pk-toolbar { position: static; }
}
.pk-row[hidden], #pk-empty[hidden] { display: none; }

/* =====================================================================
   Professional admin & partner theme (overrides only — no markup change)
   ===================================================================== */
:root { --brand: #0b3bd6; --brand-2: #4f6bff; --ink: #1d2433; --muted: #667085; --line: #e4e9f2; --bg: #f4f6fb; --card: #fff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06); --shadow: 0 10px 30px -18px rgba(16, 24, 40, .35); --radius: 14px; }
body { font: 15px/1.55 "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.55rem; font-weight: 750; letter-spacing: -.01em; } h2 { font-weight: 700; letter-spacing: -.005em; }
.side { width: 250px; background: linear-gradient(180deg, #0a1a4a 0%, #0f2a78 60%, #13308a 100%); box-shadow: 4px 0 24px -12px rgba(10, 26, 74, .6); }
.side-brand { padding: 1.3rem 1.3rem 1.1rem; font-size: 1.05rem; }
.side-brand small { margin-top: .15rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; }
.side nav { padding: .7rem .6rem; }
.side nav a { border-radius: 10px; margin: 1px 0; padding: .55rem .8rem; font-size: .92rem; transition: background-color .15s, color .15s, transform .15s; }
.side nav a:hover { transform: translateX(2px); background: rgba(255, 255, 255, .08); box-shadow: none; }
.side nav a.active { background: rgba(255, 255, 255, .16); box-shadow: inset 3px 0 #ff8a3d; font-weight: 600; }
.side nav::-webkit-scrollbar { width: 6px; } .side nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 6px; }
.main { padding: 1.8rem 2.4rem 4rem; animation: admIn .35s ease both; }
@keyframes admIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.box { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.2rem 1.35rem; transition: box-shadow .2s; }
.box:hover { box-shadow: var(--shadow); }
fieldset.box legend { font-size: .95rem; color: var(--brand); }
input, select, textarea { border: 1.5px solid #d5dbe7; border-radius: 10px; padding: .6rem .75rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus, .rte-area:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 59, 214, .12); }
.btn { border-radius: 10px; border: 1.5px solid #d5dbe7; transition: transform .15s, box-shadow .2s, background-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(16, 24, 40, .45); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #0a1a4a, var(--brand)); color: #fff; }
.table { border-radius: var(--radius); box-shadow: var(--shadow-sm); border-color: var(--line); }
.table th { background: #f7f9fc; text-transform: uppercase; letter-spacing: .04em; font-size: .74rem; }
.table tbody tr { transition: background-color .12s; }
.table tbody tr:hover { background: #f8faff; }
.tag { background: #eef2f8; }
.flash { border-radius: 12px; border: 1px solid transparent; animation: admIn .3s ease both; }
.flash-success { border-color: #bfe3cb; } .flash-error { border-color: #f1c5bd; }
.stats { gap: 1rem !important; }
.stat { border-radius: var(--radius) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s; }
.stat::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--brand), #ff8a3d); opacity: .85; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tabs a { border-radius: 999px !important; transition: background-color .15s, color .15s; }
.login-body { background: radial-gradient(900px 500px at 10% -10%, rgba(79, 107, 255, .25), transparent 60%), radial-gradient(700px 400px at 110% 110%, rgba(255, 138, 61, .2), transparent 60%), #eef2fb; }
.login-card { border-radius: 18px !important; box-shadow: 0 30px 60px -30px rgba(10, 26, 74, .45) !important; border: 1px solid var(--line); animation: admIn .4s ease both; }
@media (max-width: 860px) { .main { padding: 1.2rem; } .side { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .main, .flash, .login-card { animation: none; } .btn:hover, .side nav a:hover, a.stat:hover { transform: none; } }

/* Media-library choice next to every image upload */
.lib-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .35rem 0 .2rem; }
.lib-prev { display: inline-flex; gap: .5rem; align-items: center; }
.lib-prev img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* OTP widget (admin & partner panel) */
.otp { border: 1.5px dashed var(--line); border-radius: 12px; padding: .75rem .9rem; margin: .3rem 0 .9rem; background: #f8fbff; }
.otp.is-verified { border-style: solid; border-color: #2e9e5b; background: #f0faf4; }
.otp-h { margin: 0 0 .5rem; font-weight: 700; font-size: .9rem; }
.otp-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .otp-row[hidden] { display: none; }
.otp-row input { max-width: 180px; letter-spacing: .3em; text-align: center; font-weight: 700; }
.otp-btn { padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font: 600 .88rem inherit; cursor: pointer; }
.otp-btn:hover, .otp-go { background: var(--brand); color: #fff; }
.otp-wa { border-color: #1f8f4e; color: #1f8f4e; } .otp-wa:hover { background: #1f8f4e; color: #fff; }
.otp-link { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; }
.otp-msg { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); } .otp-msg.ok { color: #1f7a45; font-weight: 600; } .otp-msg.err { color: #b3261e; }
.cap { margin: .5rem 0 .9rem; }
.cap-own { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 320px; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #f9fafc; }
.cap-own.is-err { border-color: #d93025; }
.cap-box { display: flex !important; flex-direction: row !important; align-items: center; gap: .7rem; cursor: pointer; margin: 0 !important; }
.cap-box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cap-tick { width: 26px; height: 26px; border: 2px solid #9aa3b2; border-radius: 4px; background: #fff; position: relative; flex: none; }
.cap-own.is-busy .cap-tick { border-color: transparent; border-top-color: var(--brand); border-radius: 50%; animation: capspin .6s linear infinite; }
.cap-own.is-ok .cap-tick { border-color: #1e8e3e; }
.cap-own.is-ok .cap-tick::after { content: ""; position: absolute; left: 7px; top: 1px; width: 8px; height: 15px; border: solid #1e8e3e; border-width: 0 3px 3px 0; transform: rotate(45deg); }
@keyframes capspin { to { transform: rotate(360deg); } }
.cap-logo { display: grid; justify-items: center; font-size: 1.2rem; color: var(--muted); } .cap-logo small { font-size: .62rem; }
