:root {
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #64748b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --line: #e2e8f0;
  --accent: #5b5ce6;
  --accent-ink: #ffffff;
  --accent-soft: rgba(91, 92, 230, .11);
  --ok: #10b981;
  --warn-bg: #fef3c7;
  --err-bg: #fee2e2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px -6px rgba(15, 23, 42, .08);
  --sidebar-w: 252px;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --bg: #0b0c14;
  --surface: #141726;
  --surface-hover: #1d2136;
  --line: #23273d;
  --accent: #6d6ef2;
  --accent-ink: #ffffff;
  --accent-soft: rgba(109, 110, 242, .16);
  --ok: #34d399;
  --warn-bg: rgba(245, 158, 11, .16);
  --err-bg: rgba(239, 68, 68, .16);
  --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 10px 28px -8px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
code { background: rgba(20, 33, 61, .07); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline; margin: 0; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 999px; padding: .75rem 1.3rem;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(.95); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-small { padding: .45rem .95rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-danger { background: #b42318; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line); background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-size: .95rem; }
.topbar nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.topbar nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 550; }
.pill { background: var(--accent-soft); color: var(--accent) !important; padding: .25rem .7rem; border-radius: 999px; font-size: .875rem; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.narrow { max-width: 560px; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; }
.stack { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
input, textarea, select {
  font: inherit; color: inherit; width: 100%;
  padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
.flash { padding: .8rem 1rem; border-radius: 10px; background: #e7eefc; }
.flash-error { background: var(--err-bg); }
.flash-warn { background: var(--warn-bg); }

/* Landing */
.hero { max-width: 860px; margin: 0 auto; padding: clamp(3rem, 9vw, 6rem) 1rem 2rem; text-align: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin: 0 0 1rem; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 600px; margin: 0 auto 2rem; }
.prompt-box { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 1rem; text-align: left; border: 1.5px solid var(--line); }
.prompt-box textarea { border: 0; resize: vertical; padding: .4rem; font-size: 1.05rem; }
.prompt-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; margin: 1.2rem 0 0; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .875rem; color: var(--ink-2); }
.steps, .features, .pricing, .faq { max-width: 1100px; margin: 0 auto; padding: 3.5rem clamp(1rem, 4vw, 2.5rem); }
.steps h2, .features h2, .pricing h2, .faq h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); text-align: center; margin-top: 0; }
.steps ol { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; padding: 0; }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.steps li::before { content: "0" counter(s); display: block; color: var(--accent); font-weight: 800; margin-bottom: .4rem; }
.steps p { margin: .3rem 0 0; color: var(--ink-2); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.grid3 article { padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.grid3 h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.grid3 p { margin: 0; color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; }
.plan-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan h3 { margin: 0; }
.price { font-size: 2.1rem; font-weight: 800; margin: .5rem 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 1.1rem; color: var(--ink-2); flex: 1; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin: 0 auto .7rem; max-width: 760px; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq p { color: var(--ink-2); margin-bottom: 0; }
.site-footer { text-align: center; color: var(--muted); padding: 2rem; border-top: 1px solid var(--line); }

/* Dashboard */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; }
.project-card { color: inherit; text-decoration: none; display: block; transition: transform .12s; }
.project-card:hover { transform: translateY(-2px); }
.project-card h2 { font-size: 1.2rem; margin: .6rem 0 .2rem; }
.project-card p { margin: .2rem 0; }
.badge { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: #eef0f4; color: var(--ink-2); }
.badge-ready { background: #dcf3e5; color: var(--ok); }
.badge-working { background: var(--warn-bg); color: #8a5a00; }
.badge-error { background: var(--err-bg); color: #b42318; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--surface); border-radius: var(--radius); border: 1.5px dashed var(--line); }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.account-grid h2 { margin-top: 0; font-size: 1.15rem; }
.big { font-size: 2.4rem; font-weight: 800; margin: .3rem 0; }
.big small { font-size: 1rem; color: var(--muted); font-weight: 500; }

/* Editor */
body.wide .topbar { position: static; }
.editor { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; height: calc(100dvh - 58px); }
.chat { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); min-height: 0; }
.chat-head { padding: 1rem 1.1rem .5rem; }
.chat-head h1 { font-size: 1.2rem; margin: .2rem 0 0; }
.tabs { display: flex; gap: .2rem; padding: 0 .8rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; row-gap: 0; }
.tabs button { background: none; border: 0; padding: .6rem .6rem; font: inherit; font-size: .875rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { flex: 1; overflow: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; min-height: 0; }
#tab-biseda { padding: 0; }
.messages { list-style: none; margin: 0; padding: 1rem 1.1rem; flex: 1; overflow: auto; display: flex; flex-direction: column; gap: .7rem; }
.msg { padding: .65rem .85rem; border-radius: 12px; max-width: 92%; white-space: pre-wrap; font-size: .93rem; }
.msg-user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-assistant { background: #f2efe9; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-system { background: var(--warn-bg); align-self: stretch; font-size: .85rem; }
.msg .cost { display: block; font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.progress { margin: 0 1.1rem .5rem; font-size: .875rem; color: var(--ink-2); }
.edit-form { border-top: 1px solid var(--line); padding: .8rem 1.1rem 1rem; display: grid; gap: .5rem; }
.edit-form textarea { resize: none; font-size: .93rem; }
.edit-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.versions { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.versions li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; font-size: .875rem; }
.versions li.current { border-color: var(--accent); background: var(--accent-soft); }
.subs { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.subs li { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; font-size: .9rem; }
.subs time { color: var(--muted); font-size: .8rem; }
.subs dl, .meta { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .4rem 0 0; }
.subs dt, .meta dt { font-weight: 650; }
.subs dd, .meta dd { margin: 0; overflow-wrap: anywhere; }
.danger-zone { margin-top: 2rem; padding: 1rem; border: 1.5px solid #f3c3bf; border-radius: 12px; display: grid; gap: .6rem; }
.danger-zone h2 { font-size: 1rem; margin: 0; color: #b42318; }
.danger-zone p { margin: 0; }
.preview { display: flex; flex-direction: column; min-width: 0; background: #ece7df; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .55rem .9rem; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; background: #f0ece5; border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.preview-actions { display: flex; gap: .5rem; align-items: center; }
.status-dot { font-size: .85rem; color: var(--muted); }
.frame-wrap { position: relative; flex: 1; display: flex; justify-content: center; padding: 1rem; min-height: 0; }
#frame { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; box-shadow: var(--shadow); transition: width .2s; }
.frame-wrap.mobile #frame { width: 390px; max-width: 100%; }
.frame-overlay { position: absolute; inset: 1rem; display: grid; place-content: center; justify-items: center; gap: .8rem; background: rgba(251, 248, 243, .92); border-radius: 10px; text-align: center; padding: 1rem; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .project-card { transition: none; } }

@media (max-width: 820px) {
  .editor { grid-template-columns: 1fr; height: auto; }
  .chat { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; }
  .messages { max-height: 45vh; }
  .preview { height: 80vh; }
}

/* ---------------------------------------------------------------- Wizard */
.wizard-page { max-width: 680px; }
.wiz-step { border: 0; padding: 0; margin: 0; display: grid; gap: .9rem; min-width: 0; }
.wiz-step legend { font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .3rem; padding: 0; }
.wiz-step > p { margin: 0; }
.wiz-num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .85rem; flex: none; }
.wizard:not(.is-wizard) .wiz-step { padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.wizard:not(.is-wizard) [data-wiz="submit"] { justify-self: start; }
.is-wizard .wiz-step legend { font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.2; }
.is-wizard .wiz-num { display: none; }
.wiz-progress { margin: 1.2rem 0 1.6rem; }
.wiz-bar { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wiz-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.wiz-count { margin: .5rem 0 0; }
.wiz-nav { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: .6rem; }
.wiz-nav [data-wiz="back"] { margin-right: auto; }
.wiz-error { margin: 0; padding: .7rem .9rem; border-radius: 10px; background: var(--err-bg); }
.input-big { font-size: 1.25rem; font-weight: 700; padding: .9rem 1rem; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.choice { position: relative; display: grid; gap: .3rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 400; }
.choice:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { font-size: 1.02rem; }
.choice span:not(.swatch) { color: var(--muted); font-size: .9rem; }
.swatch { height: 38px; border-radius: 8px; margin-bottom: .3rem; border: 1px solid var(--line); }
.style-auto .swatch { background: conic-gradient(from 90deg, #e4572e, #f4b740, #2ee59d, #1d5fd1, #e4572e); }
.style-obsidian .swatch { background: linear-gradient(90deg, #0b0f0e 70%, #2ee59d 70%); }
.style-editorial .swatch { background: linear-gradient(90deg, #f6f3ec 70%, #0d6e52 70%); }
.style-amber .swatch { background: linear-gradient(90deg, #fff8ee 70%, #c2410c 70%); }
.style-ocean .swatch { background: linear-gradient(90deg, #f3f7fb 70%, #1d5fd1 70%); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .4rem .85rem; font: inherit; font-size: .9rem; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .55rem; }
.check { display: flex; align-items: center; gap: .55rem; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 550; cursor: pointer; }
.check input { width: auto; accent-color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }

.list-add { display: flex; flex-wrap: wrap; gap: .5rem; }
.list-add input { flex: 1 1 160px; }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.svc-list:empty { display: none; }
.svc-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.svc-list button { border: 0; background: none; font-size: 1.15rem; color: var(--muted); cursor: pointer; }
.wizard .chips { justify-content: flex-start; margin: 0; }
.wizard [hidden], .wiz-progress[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Domeni */
.domain-box { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.2rem; display: grid; gap: .7rem; }
.domain-box h2 { font-size: 1.05rem; margin: 0; }
.domain-box p { margin: 0; }
.domain-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.domain-form input { flex: 1 1 160px; }
.domain-ok a { font-weight: 700; }
.domain-actions { display: flex; align-items: center; gap: 1rem; }
.dns-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.dns-table table { border-collapse: collapse; width: 100%; font-size: .82rem; }
.dns-table th, .dns-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dns-table code { word-break: break-all; }

/* ------------------------------------------------- Planet dhe cilësia e AI-së */
.plan-badge { display: inline-block; margin: 0 0 .5rem; padding: .2rem .7rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 700; }
.plan-buttons { display: grid; gap: .5rem; }
.plan-buttons small { text-align: center; }
.quality { display: flex; gap: .3rem; border: 0; padding: 0; margin: 0 0 .5rem; flex-wrap: wrap; }
.quality label { cursor: pointer; }
.quality input { position: absolute; opacity: 0; pointer-events: none; }
.quality span { display: inline-block; padding: .3rem .7rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.quality input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.quality input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------- Redaktimi i tekstit */
.text-edit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .55rem .9rem; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.text-edit-bar span { margin-right: auto; }
#text-edit-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* ------------------------------------------------------------- Analitika */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.kpi { display: grid; gap: .1rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.kpi-v { font-size: 1.35rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-l { font-size: .78rem; color: var(--muted); }
.small-h { font-size: .9rem; margin: 1rem 0 .4rem; }
.chart { margin: .6rem 0; }
.chart figcaption { font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.chart-plot { position: relative; padding-top: 1.1rem; }
.chart-max { position: absolute; top: 0; left: 0; }
.bars { height: 110px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); }
.bar { position: relative; flex: 1 1 0; max-width: 24px; height: var(--h); min-height: 0; background: var(--accent); border-radius: 4px 4px 0 0; outline: none; }
.bar::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 0; height: 110px; } /* zona e hover-it më e madhe se shtylla */
.bar:hover, .bar:focus-visible { filter: brightness(.85); }
.bar[data-tip]:hover::after, .bar[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: var(--ink); color: #fff; font-size: .75rem; padding: .3rem .5rem; border-radius: 6px; z-index: 5; pointer-events: none;
}
.bars .bar:nth-child(-n+4)[data-tip]:hover::after, .bars .bar:nth-child(-n+4)[data-tip]:focus-visible::after { left: 0; transform: none; }
.bars .bar:nth-last-child(-n+4)[data-tip]:hover::after, .bars .bar:nth-last-child(-n+4)[data-tip]:focus-visible::after { left: auto; right: 0; transform: none; }
.chart-x { display: flex; justify-content: space-between; margin-top: .3rem; }
.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.sources li { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: .3rem; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ------------------------------------------------------------------ Fotot */
.upload { display: grid; gap: .5rem; }
.upload-drop { position: relative; display: grid; gap: .2rem; place-items: center; text-align: center; padding: 1.2rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.upload-drop:hover { border-color: var(--accent); }
.upload-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-drop:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.check-inline { display: flex; align-items: center; gap: .45rem; font-weight: 550; }
.check-inline input { width: auto; }
.media-grid { list-style: none; padding: 0; margin: .8rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.media-grid li { display: grid; gap: .25rem; min-width: 0; }
.media-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.media-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-actions { display: flex; gap: .7rem; }

/* --------------------------------------------------------- Faqet dhe blogu */
.page-select { width: auto; padding: .35rem .6rem; font-size: .85rem; border-radius: 999px; }
.page-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .2rem; }
.page-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.page-actions { display: flex; align-items: center; gap: .8rem; }
.confirm-form { display: inline-flex; align-items: center; gap: .4rem; }
.confirm-form label { display: inline-flex; align-items: center; gap: .25rem; font-weight: 400; color: var(--muted); }
.confirm-form input { width: auto; }
.page-form, .post-form { border-top: 1px solid var(--line); padding-top: .4rem; }
.post-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.draft-box { display: grid; gap: .4rem; margin-bottom: 1rem; }

/* Dyqani */
.shop-part{border:1px solid var(--line, rgba(127,127,127,.3));border-radius:12px;padding:.6rem .9rem;margin:0 0 .8rem}
.shop-part > summary{cursor:pointer;font-weight:700;padding:.2rem 0}
.shop-part[open] > summary{margin-bottom:.6rem}
.count-badge{display:inline-block;background:var(--accent);color:#fff;border-radius:999px;font-size:.75rem;padding:.1rem .5rem;margin-left:.3rem}
.order-list{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.order details{border-bottom:1px solid var(--line, rgba(127,127,127,.25));padding:.3rem 0 .5rem}
.order summary{cursor:pointer;font-size:.92rem}
.order-body{padding:.4rem 0 0 .9rem}
.order-items{margin:.3rem 0;padding-left:1.1rem}
.order-status{font-weight:600}
.st-e-re{color:#F4B740}
.st-anuluar{opacity:.6;text-decoration:line-through}
.status-form{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.8rem}
.check{display:flex!important;gap:.5rem;align-items:center;flex-direction:row!important}
.check input{width:auto}
fieldset.checks{border:0;padding:0;margin:0;display:grid;gap:.3rem}
fieldset.checks legend{font-weight:600;margin-bottom:.3rem}

/* Ekipi */
.team-list li{align-items:flex-start}
.invite-link{width:min(100%,26rem);font-family:var(--mono, monospace);font-size:.78rem;margin-top:.35rem;padding:.3rem .45rem}
.section-h{margin:2.5rem 0 1rem}

/* Gjuhët */
.lang-list{list-style:none;padding:0;margin:0 0 1rem;display:grid;gap:.8rem}
.lang-list > li{border:1px solid var(--line, rgba(127,127,127,.3));border-radius:12px;padding:.7rem .9rem}
.lang-head{display:flex;gap:.5rem;align-items:baseline;flex-wrap:wrap}
.lang-pages{margin:.4rem 0;padding-left:1.1rem}
.lang-actions{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap}
.ok{color:#16a34a}
.warn{color:#b45309}

/* Ndërruesi i gjuhës së panelit (SQ · EN · MK) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line, rgba(0,0,0,.14)); border-radius: 999px; padding: 2px; margin-left: 6px; }
.lang-switch button { background: transparent; border: 0; border-radius: 999px; padding: 3px 7px; font: 600 11px/1.2 inherit; color: inherit; cursor: pointer; opacity: .72; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-current="true"] { background: var(--ink, #111); color: var(--bg, #fff); opacity: 1; }

/* AI Studio: të dhënat */
.data-table table{font-size:.85rem}
.data-table td{max-width:14rem;overflow-wrap:anywhere;vertical-align:top}

.rec-cancelled td{opacity:.55}
.data-table .status-form{display:grid;gap:.25rem;min-width:9rem}

.edit-record{margin:.8rem 0;border:2px solid var(--accent)}

.review-form{margin:.8rem 0 1rem}

.pay-settings{border-left:3px solid var(--accent);padding-left:.8rem;margin:.6rem 0 1rem}

/* Butoni Google OAuth dhe ndarësi në /hyr dhe /regjistrohu */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #111; border: 1px solid var(--line, #d1d5db); margin-bottom: 14px; }
.btn-google:hover { background: #f8fafc; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted, #64748b); font-size: .85rem; margin: 14px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line, #e2e8f0); }

/* ================= Mjegulla-style SaaS App Shell ================= */
.app-shell { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; transition: width .18s ease; z-index: 30;
}
.sidebar.collapsed { width: 66px; }
.sidebar.collapsed .sb-text, .sidebar.collapsed .sb-group, .sidebar.collapsed .sb-footer-detail { display: none; }
.sb-head { height: 58px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.sb-body { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.sb-cta { width: 100%; border-radius: 10px; padding: .55rem .9rem; margin-bottom: 8px; background: var(--ink); color: var(--bg); }
.sb-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 10px 4px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 550; }
.sb-link:hover { background: var(--surface-hover); color: var(--ink); }
.sb-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.sb-ic { width: 18px; text-align: center; flex-shrink: 0; }
.sb-footer { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.sb-credits { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.sb-credits-top { display: flex; justify-content: space-between; align-items: center; font-weight: 650; }
.theme-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.theme-pills button { border: 0; background: transparent; color: var(--muted); padding: 4px 2px; border-radius: 6px; font: 600 11px/1.2 inherit; cursor: pointer; }
.theme-pills button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  height: 58px; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 25;
}
.app-topbar-left, .app-topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font: inherit; }
.icon-btn:hover { background: var(--surface-hover); color: var(--ink); }
.cmd-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-width: 240px; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); cursor: pointer; font: 500 13.5px/1.2 inherit;
}
.cmd-btn:hover { border-color: var(--accent); color: var(--ink); }
.kbd { padding: 2px 6px; border-radius: 5px; font: 600 11px/1.1 ui-monospace, monospace; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.dd-wrap { position: relative; }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.25); padding: 6px; z-index: 60;
}
.dd-item { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 13.5px; }
.dd-item:hover { background: var(--surface-hover); }
.dd-item small { color: var(--muted); font-size: 12px; }
.avatar-btn { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); font: 700 12.5px/1 inherit; cursor: pointer; }

/* Command Palette Modal */
.cmd-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); display: grid; place-items: start center; padding: 84px 16px 24px; z-index: 100; }
.cmd-modal { width: 100%; max-width: 540px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.45); overflow: hidden; }
.cmd-modal input { width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: 15px/1.4 inherit; outline: none; }
.cmd-list { max-height: 340px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.cmd-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
.cmd-list a:hover { background: var(--surface-hover); color: var(--accent); }

.mobile-only { display: none; }
@media (max-width: 900px) {
  .mobile-only { display: grid; }
  .cmd-btn { min-width: auto; }
  .cmd-btn .cmd-label { display: none; }
  .sidebar { position: fixed; left: -270px; transition: left .18s ease; }
  .sidebar.mobile-open { left: 0; }
}
