:root {
    --bg1: #f8c471;
    --bg2: #f59e6b;
    --ink: #28364d;
    --text: #405a78;
    --muted: #7b8ca3;
    --panel: rgba(255, 248, 221, .88);
    --panel-strong: rgba(255, 252, 240, .94);
    --line: rgba(111, 127, 154, .16);
    --accent: #5b8eea;
    --accent2: #22c7d8;
    --purple: #9b6ee7;
    --danger: #ff5d63;
    --success: #25b981;
    --warn: #f59e0b;
    --shadow: 0 22px 60px rgba(101, 61, 17, .19);
    --shadow-soft: 0 12px 26px rgba(64, 56, 39, .1);
    --radius: 22px;
    --radius-sm: 14px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(255,255,255,.35), transparent 26%),
        radial-gradient(circle at 85% 0%, rgba(255,255,255,.26), transparent 22%),
        linear-gradient(135deg, var(--bg1), var(--bg2));
}
button, input, select { font: inherit; }
button { cursor: pointer; }

a { color: inherit; }
.glass {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.48);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.card { border-radius: var(--radius); }

.topbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 24px;
    margin: 16px 18px 8px;
    border-radius: 999px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #442238;
    font-weight: 900;
    font-size: clamp(22px, 2vw, 31px);
    text-decoration: none;
    letter-spacing: -.8px;
}
.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #502338, #9151d9 55%, #22c7d8);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.byline { color: #ff6c5e; font-size: 13px; font-weight: 800; }
.top-actions { margin-left: auto; display: flex; gap: 9px; }

.alert { margin: 10px 24px; padding: 14px 18px; border-radius: 16px; font-weight: 700; }
.danger-alert { color: #8f1d2b; background: rgba(255,235,238,.9); border: 1px solid rgba(255,93,99,.34); }

.layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    padding: 10px 24px 42px;
}
.sidebar { padding: 16px; align-self: start; position: sticky; top: 14px; }
.side-nav { display: grid; gap: 6px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fb685e;
    text-decoration: none;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 650;
    transition: .18s ease;
}
.nav-link:hover { background: rgba(255,255,255,.48); transform: translateX(2px); }
.nav-link.active {
    background: linear-gradient(135deg, var(--accent), #6c7ff2);
    color: #fff;
    box-shadow: 0 12px 26px rgba(42, 90, 174, .22);
}
.mini-card {
    margin-top: 16px;
    border-radius: 18px;
    padding: 16px;
    background: rgba(255,255,255,.48);
    border: 1px solid rgba(255,255,255,.45);
}
.mini-title { color: #ff6c5e; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    background: rgba(123,140,163,.14);
}
.status-pill.success { color: #08784e; background: rgba(37,185,129,.14); }
.status-pill.warn { color: #9a5a00; background: rgba(245,158,11,.16); }
.status-pill.muted { color: var(--muted); }
.user-summary { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.user-summary img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.live-box h3 { margin: 18px 0 12px; color: #ff6c5e; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; }
.stream-preview-frame {
    height: 195px;
    border-radius: 18px;
    overflow: hidden;
    background: #182337;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), var(--shadow-soft);
}
.stream-preview-frame iframe { width: 390px; height: 390px; border: 0; transform: scale(.5); transform-origin: 0 0; }
.copy-input {
    width: 100%;
    margin: 0 0 10px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 0 12px;
    background: rgba(255,255,255,.7);
    color: var(--text);
    font-size: 12px;
}
.full-btn { width: 100%; }

.main-panel { min-height: calc(100vh - 120px); padding: 24px; overflow: hidden; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    gap: 24px;
    margin-bottom: 22px;
}
.hero-copy, .hero-preview, .section-card {
    border-radius: var(--radius);
    background: var(--panel-strong);
    border: 1px solid rgba(255,255,255,.56);
    box-shadow: var(--shadow-soft);
}
.hero-copy { padding: clamp(22px, 3.6vw, 44px); position: relative; overflow: hidden; }
.hero-copy::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -85px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,199,216,.24), rgba(155,110,231,.1) 55%, transparent 70%);
}
.eyebrow { color: #ff6c5e; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 900; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 8px 0 10px; color: #2c3f5f; font-size: clamp(34px, 4vw, 58px); line-height: .95; letter-spacing: -2px; }
h2 { margin: 4px 0 0; color: #344b68; font-size: 23px; letter-spacing: -.3px; }
p { line-height: 1.58; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-preview { overflow: hidden; min-height: 260px; background: #d4fbf3; }
.hero-preview iframe { width: 100%; height: 100%; min-height: 260px; border: 0; }

.settings-form { display: grid; gap: 18px; }
.section-card { padding: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.grid.three { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { margin-top: 18px; }
.field label, .toggle-card span, .chute-grid small {
    color: #ff6c5e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
}
input[type="text"], input[type="number"], select {
    height: 46px;
    border: 1px solid rgba(72, 96, 128, .18);
    border-radius: 14px;
    background: rgba(255,255,255,.82);
    color: #435c7a;
    padding: 0 14px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91,142,234,.14); }
small { color: var(--muted); }
.toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 14px; }
.toggle-grid.compact { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
.toggle-card {
    min-height: 96px;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 6px 12px;
    align-items: start;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255,255,255,.52);
    border: 1px solid var(--line);
}
.toggle-card input { grid-row: span 2; margin-top: 2px; }
.toggle-card small { line-height: 1.35; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.control-grid { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 18px; }
.field.wide { grid-column: span 2; }
.stepper {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    grid-template-rows: auto 46px;
    gap: 8px 0;
}
.stepper label { grid-column: 1 / -1; }
.stepper button {
    border: 0;
    background: linear-gradient(135deg, var(--accent), #6c7ff2);
    color: #fff;
    font-weight: 900;
}
.stepper button:first-of-type { border-radius: 14px 0 0 14px; }
.stepper button:last-of-type { border-radius: 0 14px 14px 0; }
.stepper input { border-radius: 0; border-left: 0; border-right: 0; }
.chute-grid.modern { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.chute-grid label {
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 10px;
    min-height: 116px;
    border-radius: 18px;
    background: rgba(255,255,255,.52);
    border: 1px solid var(--line);
}
.chute-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 20px 20px 12px 12px; font-size: 30px; }
.chute-icon.cream { color: #fff; background: #7fc995; text-shadow: 0 1px 2px #5b5260; }
.chute-icon.purple { color: #fff; background: #5956d8; }
.chute-icon.choco { color: #fff; background: #70442e; }
.chute-icon.tiger { color: #24170e; background: #f0a843; }
.chute-icon.mint { color: #086552; background: #bfffe4; }
.chute-icon.cosmic { color: #fff; background: #2e2f68; }
.live-log {
    min-height: 120px;
    max-height: 240px;
    overflow: auto;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(28, 41, 62, .06);
}
.log-item { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.7); font-size: 13px; color: var(--muted); }
.log-item.success { color: #08784e; }
.log-item.warn { color: #9a5a00; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(255,255,255,.78);
    color: var(--text);
    text-decoration: none;
    font-weight: 850;
    box-shadow: 0 6px 14px rgba(40,54,77,.08);
}
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #6d7df2); color: #fff; }
.btn.secondary { background: linear-gradient(135deg, var(--accent2), #27d2a4); color: #fff; }
.btn.accent { background: linear-gradient(135deg, #fb923c, #f43f5e); color: #fff; }
.btn.ghost { border-color: rgba(72, 96, 128, .14); background: rgba(255,255,255,.58); }
.btn.danger { background: linear-gradient(135deg, var(--danger), #fb7185); color: #fff; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.01); }
.footer { color: rgba(69,82,103,.7); text-align: right; padding: 0 28px 18px; font-size: 12px; font-weight: 700; }
.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(40, 54, 77, .96);
    color: #fff;
    padding: 13px 18px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
    z-index: 50;
    box-shadow: 0 12px 34px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.install-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.install-card { width: min(760px, 100%); background: var(--panel-strong); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.ok { color: var(--success); }
.danger { color: var(--danger); }

.overlay-body { width: 100vw; height: 100vh; overflow: hidden; margin: 0; background: transparent; }
#dropCanvas { width: 100vw; height: 100vh; display: block; }
.overlay-hud {
    position: fixed;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    min-width: 260px;
    padding: 12px 18px;
    border-radius: 999px;
    text-align: center;
    color: #2c3f5f;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 12px 30px rgba(42,64,95,.16);
    backdrop-filter: blur(8px);
    pointer-events: none;
}
.overlay-hud.hidden { display: none; }
.drop-title { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; color: #ff6c5e; }
.drop-message { margin-top: 2px; font-size: 15px; font-weight: 900; }
.overlay-status {
    position: fixed;
    left: 14px;
    bottom: 14px;
    max-width: 520px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(17,24,39,.62);
    color: #fff;
    font: 12px/1.3 "Segoe UI", Arial, sans-serif;
    pointer-events: none;
}
.overlay-status:empty { display: none; }
.overlay-status[data-type="success"] { background: rgba(5, 122, 85, .72); }
.overlay-status[data-type="warn"] { background: rgba(154, 90, 0, .72); }

@media (max-width: 1320px) {
    .layout { grid-template-columns: 300px minmax(0, 1fr); }
    .grid.three, .toggle-grid, .control-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .toggle-grid.compact { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
    .chute-grid.modern { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
    .topbar { align-items: flex-start; border-radius: 24px; flex-wrap: wrap; }
    .top-actions { width: 100%; margin-left: 0; }
    .layout, .hero-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .grid.three, .toggle-grid, .control-grid, .toggle-grid.compact { grid-template-columns: 1fr; }
    .field.wide { grid-column: auto; }
}
@media (max-width: 560px) {
    .layout { padding: 8px 12px 28px; }
    .main-panel, .section-card { padding: 15px; }
    .chute-grid.modern { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 36px; }
}

/* v0.4 enhancements */
.v03-panel .brand small,
.v04-panel .brand small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 22px;
    margin-left: 8px;
    border-radius: 999px;
    color: #214669;
    background: rgba(255,255,255,.62);
    font-size: 12px;
}
.v03-hero,
.v04-hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 211, 102, .16), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(79, 140, 255, .18), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,244,208,.62));
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 30px;
    padding: 18px;
}
.metrics-mini {
    display: grid;
    gap: 12px;
}
.mini-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.54);
    border: 1px solid rgba(255,255,255,.64);
}
.mini-stat strong {
    font-size: 26px;
    color: #2c5fb8;
}
.mini-stat span {
    font-size: 12px;
    font-weight: 800;
    color: rgba(70,85,107,.72);
    text-transform: uppercase;
    letter-spacing: .6px;
}
.grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.leaderboard-section .hero-actions {
    flex-wrap: wrap;
}
.scoreboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
}
.score-card,
.leaderboard-box {
    min-height: 116px;
    border-radius: 22px;
    padding: 18px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.68);
    box-shadow: 0 14px 35px rgba(61, 83, 122, .08);
}
.score-card span,
.leaderboard-box h3 {
    display: block;
    margin: 0 0 8px;
    color: #ff735e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .7px;
    font-weight: 900;
}
.score-card strong {
    display: block;
    color: #315278;
    font-size: 46px;
    line-height: 1;
}
.score-card small {
    display: block;
    margin-top: 7px;
    color: rgba(49,82,120,.72);
    font-weight: 800;
}
.leaderboard-box {
    grid-column: span 1;
}
.score-list {
    display: grid;
    gap: 8px;
}
.score-row {
    display: grid;
    grid-template-columns: 48px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(246, 251, 255, .86);
    color: #405673;
    font-size: 13px;
}
.score-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-row b { color: #2d62c4; }
.score-row small { color: rgba(70,85,107,.66); }
.score-row .rank {
    color: #ff735e;
    font-weight: 900;
}
.muted-row {
    grid-template-columns: 1fr;
    color: rgba(70,85,107,.6);
    font-weight: 800;
}
.leaderboard-hud,
.recent-hud {
    position: fixed;
    transform: scale(var(--overlay-scale, 1));
    transform-origin: top right;
    width: 250px;
    padding: 12px;
    border-radius: 20px;
    color: #26415f;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 14px 34px rgba(35, 58, 92, .16);
    backdrop-filter: blur(10px);
    pointer-events: none;
    font-family: "Segoe UI", Arial, sans-serif;
}
.leaderboard-hud {
    right: 18px;
    top: 18px;
}
.recent-hud {
    right: 18px;
    top: 240px;
}
.leaderboard-hud.hidden,
.recent-hud.hidden { display: none; }
.leaderboard-hud strong,
.recent-hud strong {
    display: block;
    margin-bottom: 9px;
    color: #ff6c5e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .9px;
}
.leaderboard-hud div div,
.recent-hud div div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 9px;
    margin-top: 5px;
    border-radius: 12px;
    background: rgba(255,255,255,.54);
    font-size: 13px;
    font-weight: 800;
}
.leaderboard-hud b,
.recent-hud b { color: #2665ce; }
.overlay-hud {
    transform: translateX(-50%) scale(var(--overlay-scale, 1));
    transform-origin: top center;
}
@media (max-width: 920px) {
    .grid.two,
    .scoreboard-grid { grid-template-columns: 1fr; }
    .leaderboard-box { grid-column: auto; }
    .score-row { grid-template-columns: 44px 1fr auto; }
    .score-row small { display: none; }
}

/* v0.8 - Admin, sales and language switcher */
.v05-panel .language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.46);
    border: 1px solid rgba(255,255,255,.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #355778;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.lang-pill span { font-size: 18px; line-height: 1; }
.lang-pill.active,
.lang-pill:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    box-shadow: 0 8px 18px rgba(45,98,196,.16);
}
.admin-layout .main-panel { gap: 20px; }
.admin-hero { align-items: stretch; }
.sales-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.admin-form {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}
.form-actions { justify-content: flex-end; }
.table-shell {
    width: 100%;
    overflow: auto;
    border-radius: 22px;
    border: 1px solid rgba(78, 101, 130, .12);
    background: rgba(255,255,255,.48);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    color: #315278;
}
.admin-table th,
.admin-table td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(78, 101, 130, .12);
    vertical-align: middle;
}
.admin-table th {
    color: #ff735e;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .72px;
    background: rgba(255,255,255,.42);
}
.admin-table td strong { display: block; color: #2f5174; }
.admin-table td small { display: block; margin-top: 4px; color: rgba(49,82,120,.62); font-weight: 700; }
.admin-table select {
    width: 100%;
    min-width: 118px;
    border: 1px solid rgba(78, 101, 130, .2);
    border-radius: 12px;
    padding: 8px 10px;
    background: rgba(255,255,255,.9);
    color: #355778;
    font-weight: 800;
}
.badge-soft {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(67, 215, 157, .14);
    color: #0b8663;
    font-weight: 900;
    font-size: 12px;
}
.empty-table {
    padding: 26px;
    color: rgba(49,82,120,.62);
    font-weight: 900;
    text-align: center;
}
.language-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.language-card {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 150px;
    border: 1px solid rgba(78, 101, 130, .14);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,.36));
    color: #315278;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(35, 58, 92, .1);
}
.language-card.active {
    border-color: rgba(45,98,196,.45);
    box-shadow: 0 22px 50px rgba(45,98,196,.18);
}
.flag-big { font-size: 46px; line-height: 1; }
.admin-denied pre {
    overflow: auto;
    padding: 14px;
    border-radius: 16px;
    background: rgba(34, 45, 65, .08);
    color: #315278;
}
.market-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
    padding: 26px;
}
.market-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.market-card {
    display: grid;
    gap: 13px;
    min-height: 290px;
    padding: 22px;
    border: 1px solid rgba(78, 101, 130, .12);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.38));
    box-shadow: 0 18px 40px rgba(35,58,92,.10);
}
.market-card h2 { margin: 0; color: #315278; font-family: Outfit, Inter, sans-serif; }
.market-card p { color: rgba(49,82,120,.68); font-weight: 700; line-height: 1.6; }
.market-card .price { align-self: end; font-size: 28px; color: #2d62c4; }
.muted-copy { color: rgba(49,82,120,.68); font-size: 13px; line-height: 1.5; }

@media (max-width: 1199px) {
    .v05-panel .topbar { gap: 10px; }
    .sales-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .v05-panel .language-switcher { order: 5; width: 100%; justify-content: center; }
    .sales-kpi-grid,
    .language-card-grid,
    .market-grid { grid-template-columns: 1fr; }
    .market-shell { width: calc(100% - 20px); margin: 16px auto; padding: 16px; }
    .admin-table { min-width: 760px; }
}

/* v0.8 PayTR checkout */
.v06-panel .brand small::after { content: ""; }
.paytr-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto;
    padding: 24px;
}
.paytr-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 18px;
}
.paytr-header h1 {
    margin: 8px 0 8px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: .94;
}
.paytr-header p {
    max-width: 760px;
    color: var(--muted);
}
.paytr-frame-wrap {
    overflow: hidden;
    min-height: 720px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: rgba(255,255,255,.86);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 24px 80px rgba(17,11,42,.22);
}
.paytr-frame-wrap iframe {
    width: 100%;
    min-height: 720px;
    border: 0;
    display: block;
}
.paytr-actions {
    margin-top: 18px;
}
.alert.success-alert {
    border: 1px solid rgba(46, 204, 113, .35);
    background: rgba(46, 204, 113, .14);
    color: #d8ffe6;
}
.provider-card {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    padding: 16px;
    background: rgba(255,255,255,.07);
}
.provider-card code {
    display: block;
    white-space: normal;
    word-break: break-all;
    margin-top: 8px;
}
@media (max-width: 767px) {
    .paytr-shell { width: min(100% - 18px, 1120px); padding: 14px; margin: 10px auto; }
    .paytr-header { grid-template-columns: 1fr; }
    .paytr-frame-wrap, .paytr-frame-wrap iframe { min-height: 640px; }
}
.mini-link {
    display: inline-flex;
    margin-top: 6px;
    font-size: .78rem;
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 800;
}
.danger-text {
    display: block;
    margin-top: 6px;
    color: #ffb4b4;
    font-size: .76rem;
    max-width: 220px;
}
