:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-2: #f8fafc;
    --text: #111827;
    --muted: #667085;
    --line: #d9e2ef;
    --brand: #0ea5b7;
    --brand-2: #2563eb;
    --brand-dark: #07111f;
    --ink: #111827;
    --good: #16a34a;
    --warn: #b45309;
    --danger: #dc2626;
    --amber: #f59e0b;
    --rose: #e11d48;
    --shadow-sm: 0 10px 28px rgba(15, 23, 42, .08);
    --shadow-md: 0 18px 48px rgba(15, 23, 42, .12);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: hidden; }
body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.soft { color: #8a95a6; }
.section-title { display: grid; gap: 6px; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-size: 42px; line-height: 1.05; letter-spacing: 0; }
.section-title p { max-width: 780px; margin: 0; color: var(--muted); font-size: 15px; }

.btn {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: #a7d8e5; box-shadow: 0 10px 22px rgba(15, 23, 42, .08); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #0b8fa0; border-color: #0b8fa0; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.good { color: var(--good); border-color: #bbf7d0; background: #f0fdf4; }
.btn.warn { color: var(--warn); border-color: #fde68a; background: #fffbeb; }
.btn.danger { color: var(--danger); border-color: #fecaca; background: #fff1f2; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.notice {
    display: none;
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: min(520px, calc(100vw - 32px));
    border-radius: 14px;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #075985;
    padding: 13px 15px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 700;
}
.notice.error { border-color: #fecaca; background: #fff1f2; color: #991b1b; }

.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.language-switch {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.language-orb {
    position: relative;
    width: auto;
    justify-content: center;
    z-index: 20;
}
.language-current,
.language-menu button {
    min-height: 40px;
    border: 1px solid rgba(217, 226, 239, .95);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .86));
    color: #475569;
    font-weight: 950;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, background .18s ease;
}
.language-current {
    min-width: 118px;
    height: 40px;
    padding: 0 12px 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}
.language-code {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    border-radius: 999px;
    padding: 0 8px;
    background: #07111f;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}
.language-name {
    min-width: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1;
}
.language-current::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease, border-color .18s ease;
}
.language-current:hover,
.language-menu button:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 183, .38);
    color: var(--ink);
}
.language-current[aria-expanded="true"] {
    transform: translateY(-1px) scale(.98);
    border-color: rgba(14, 165, 183, .45);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .13);
}
.language-current[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(225deg);
    border-color: var(--brand);
}
.language-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    display: grid;
    gap: 6px;
    min-width: 160px;
    padding: 8px;
    border: 1px solid rgba(217, 226, 239, .88);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(.96);
    transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.language-orb.open .language-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.language-menu button {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 13px;
    box-shadow: none;
    font-size: 13px;
}
.language-menu button strong {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 26px;
    border-radius: 999px;
    background: #edf6ff;
    color: #0f7585;
    font-size: 11px;
}
.language-select {
    position: relative;
    min-width: 104px;
    justify-content: space-between;
    padding: 0 12px;
    gap: 8px;
}
.language-select span {
    color: var(--ink);
    font-size: 12px;
    font-weight: 950;
}
.language-select select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.language-select::after {
    content: "⌄";
    color: var(--muted);
    font-weight: 950;
}

.field label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 7px; color: #293449; }
.field input, .field textarea, .field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(14, 165, 183, .14);
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
    background: #f8fafc;
    color: #475569;
    white-space: nowrap;
}
.pill.good { border-color: #bbf7d0; background: #ecfdf5; color: var(--good); }
.pill.warn { border-color: #fde68a; background: #fffbeb; color: var(--warn); }
.pill.bad { border-color: #fecaca; background: #fff1f2; color: var(--danger); }

.panel {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.panel-head {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}
.panel-head h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.panel-body { padding: 20px; }
.empty {
    border: 1px dashed #c9d7e8;
    border-radius: 16px;
    padding: 30px 18px;
    text-align: center;
    color: #617088;
    background: #f8fbff;
}
.card-list { display: grid; gap: 12px; }
.card-row {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.card-row:hover, button.card-row:hover, .card-row.interactive:hover {
    transform: translateY(-2px);
    border-color: #9ddce6;
    box-shadow: var(--shadow-sm);
}
.card-row h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: 0; }
.card-row p { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.mobile-card-list,
.admin-card-list {
    display: grid;
    gap: 12px;
}
.mobile-data-card,
.admin-mobile-card {
    display: grid;
    gap: 12px;
    border: 1px solid #d9e6f3;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.mobile-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.mobile-card-head strong {
    display: block;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.mobile-card-head span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.mobile-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.mobile-card-meta div,
.price-list div {
    border: 1px solid #e1eaf5;
    border-radius: 14px;
    padding: 10px;
    background: #f8fbff;
}
.mobile-card-meta span,
.price-list span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.mobile-card-meta strong,
.price-list strong {
    display: block;
    margin-top: 4px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.admin-plan-summary {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.price-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td { padding: 14px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { background: #f8fafc; color: #475569; font-weight: 900; }
tr:last-child td { border-bottom: 0; }
.tools {
    display: flex;
    gap: 12px;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 16px;
    border: 1px solid #e1eaf5;
    border-radius: 18px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.tools .field { min-width: 240px; flex: 1; max-width: 420px; }
.html-body {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 15px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 760px);
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(6px);
}
.drawer-panel {
    grid-column: 2;
    background: #fff;
    min-height: 100vh;
    max-height: 100vh;
    overflow: auto;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 56px rgba(15, 23, 42, .22);
}
.drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.drawer-body { padding: 20px; display: grid; gap: 16px; }
.drawer-close { width: 40px; height: 40px; padding: 0; font-size: 22px; }
.drawer.drawer-compact {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 20px;
}
.drawer.drawer-compact .drawer-panel {
    grid-column: 1;
    width: min(520px, calc(100vw - 32px));
    min-height: 0;
    max-height: min(90dvh, 620px);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.drawer.drawer-compact .drawer-head {
    position: static;
    padding: 18px;
}
.drawer.drawer-compact .drawer-body {
    padding: 18px;
}

.confirm-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid #d9e7f3;
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    box-shadow: var(--shadow-sm);
}
.confirm-card.danger {
    border-color: #fecaca;
    background: linear-gradient(145deg, #ffffff, #fff7f7);
}
.confirm-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #e6faff;
    color: #087789;
    font-weight: 950;
    font-size: 20px;
}
.confirm-card.danger .confirm-icon {
    background: #fff1f2;
    color: var(--danger);
}
.confirm-card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.confirm-card p { margin: 0; color: var(--muted); }
.confirm-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 6px;
}

/* Customer storefront */
.csa-client {
    background: #f7f8fb;
    color: #121826;
}
.client-app { min-height: 100vh; }
.public-view { min-height: 100vh; }
.public-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    width: min(1200px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 16px 0;
}
.nav-glass {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(217, 226, 239, .9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    backdrop-filter: blur(18px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.brand img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: #e0f2fe; }
.brand h1 { margin: 0; font-size: 20px; letter-spacing: 0; }
.brand p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }

.hero-stage {
    min-height: min(760px, calc(100vh - 78px));
    display: grid;
    align-items: end;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 17, 33, .94), rgba(8, 17, 33, .68) 50%, rgba(8, 17, 33, .18)),
        url('/csa/media/thumb-photo.jpg') center/cover no-repeat;
}
.hero-inner {
    width: min(1200px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 72px 0 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 38px;
    align-items: end;
}
.hero-copy { color: #fff; padding-bottom: 22px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    padding: 5px 12px;
    color: #c9f7ff;
    background: rgba(255, 255, 255, .08);
    font-weight: 900;
    font-size: 13px;
}
.hero-copy h2 {
    margin: 16px 0 14px;
    max-width: 780px;
    font-size: 78px;
    line-height: .95;
    letter-spacing: 0;
}
.hero-copy p { max-width: 650px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions .btn { min-height: 48px; padding-inline: 18px; }
.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 32px;
    max-width: 680px;
}
.proof-item {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
}
.proof-item strong { display: block; font-size: 21px; }
.proof-item span { display: block; color: rgba(255, 255, 255, .72); font-size: 12px; }
.showcase-card {
    position: relative;
    overflow: hidden;
    align-self: stretch;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 26px;
    min-height: 520px;
    padding: 0;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px);
}
.showcase-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}
.showcase-meta {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    padding: 14px;
    background: rgba(8, 17, 33, .54);
    backdrop-filter: blur(16px);
}
.showcase-meta h3 { margin: 0; font-size: 17px; }
.showcase-meta p { margin: 2px 0 0; color: rgba(255, 255, 255, .72); font-size: 13px; }
.public-band {
    width: min(1200px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 54px 0;
}
.product-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.product-card {
    display: grid;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: #9ddce6; box-shadow: var(--shadow-md); }
.product-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    background: #eef2f7;
}
.product-card h3 { margin: 0; font-size: 17px; }
.product-card p { margin: 0; color: var(--muted); font-size: 13px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.feature-tile {
    min-height: 178px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.feature-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #e6faff;
    color: #087789;
    font-weight: 950;
    margin-bottom: 14px;
}
.feature-tile h3 { margin: 0 0 8px; font-size: 18px; }
.feature-tile p { margin: 0; color: var(--muted); }
.client-shell {
    width: min(1280px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 18px 0 56px;
}
.client-topbar {
    position: sticky;
    top: 14px;
    z-index: 40;
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
    margin-bottom: 20px;
}
.topbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.topbar-actions { width: auto; justify-content: flex-end; }
.menu-toggle { display: none; }
.tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 18px;
    padding: 6px;
    margin-bottom: 16px;
}
.client-topbar .tabs {
    margin-bottom: 0;
    background: #f6f8fc;
}
.tab {
    border: 0;
    background: transparent;
    color: #64748b;
    border-radius: 13px;
    padding: 10px 14px;
    white-space: nowrap;
    font-weight: 900;
}
.tab.active { background: var(--ink); color: #fff; }
.panel-kicker {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.rental-dashboard {
    display: grid;
    gap: 18px;
    margin-bottom: 16px;
    border: 1px solid #c8e8ef;
    border-radius: 26px;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 183, .14), transparent 34%),
        linear-gradient(135deg, #ffffff, #f7fcff 70%);
    box-shadow: var(--shadow-md);
}
.rental-dashboard h2 {
    margin: 5px 0 6px;
    font-size: 36px;
    line-height: 1.04;
    letter-spacing: 0;
}
.rental-dashboard p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
}
.rental-dashboard-empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 190px;
}
.rental-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.rental-dashboard-head > div:first-child {
    min-width: 0;
}
.rental-dashboard-tools {
    display: grid;
    gap: 10px;
    min-width: 140px;
}
.rental-total {
    min-width: 120px;
    border: 1px solid #bfeaf1;
    border-radius: 18px;
    padding: 12px 14px;
    background: #ecfeff;
    text-align: center;
}
.rental-total strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}
.rental-total span {
    display: block;
    margin-top: 4px;
    color: #0f7585;
    font-size: 12px;
    font-weight: 900;
}
.rental-guide-button {
    width: 100%;
    min-height: 40px;
    border-color: #cde8f3;
    color: #075985;
    background: rgba(255, 255, 255, .86);
}
.rental-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 14px;
}
.rental-product-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-height: 180px;
    border: 1px solid #d6e5f2;
    border-radius: 22px;
    padding: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}
.rental-product-media {
    position: relative;
    align-self: start;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, #e8f1fb, #f8fbff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}
.rental-product-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}
.rental-product-media span { display: none; }
.rental-product-body {
    min-width: 0;
    display: grid;
    gap: 11px;
    align-content: start;
}
.rental-product-title {
    display: grid;
    gap: 7px;
    justify-items: start;
}
.rental-product-title h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: normal;
}
.rental-product-title .pill {
    width: max-content;
    max-width: 100%;
}
.rental-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.rental-metrics div {
    border: 1px solid #e1eaf5;
    border-radius: 14px;
    min-width: 0;
    padding: 9px;
    background: #f8fbff;
}
.rental-metrics span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.rental-metrics strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: break-word;
}
.rental-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf7;
}
.rental-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5b7, #22c55e);
}
.rental-card-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.rental-card-actions .btn {
    min-height: 40px;
    padding: 9px 14px;
}
.dashboard-utility-grid {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
    gap: 16px;
}
.account-summary .panel-body {
    display: grid;
    gap: 10px;
}
.account-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 1px solid #e3ebf5;
    border-radius: 14px;
    padding: 11px 12px;
    background: #f8fbff;
}
.account-line span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.account-line strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}
.account-actions {
    margin-top: 4px;
}
.checkout-form {
    display: grid;
    gap: 15px;
}
.checkout-plan {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid #cbe7ef;
    border-radius: 22px;
    padding: 12px;
    background: #f1fcff;
}
.checkout-plan img {
    width: 112px;
    height: 112px;
    border-radius: 18px;
    object-fit: cover;
}
.checkout-plan span,
.checkout-detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.checkout-plan h3 {
    margin: 5px 0 6px;
    font-size: 22px;
    line-height: 1.2;
}
.checkout-plan p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.checkout-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.checkout-detail-grid div {
    border: 1px solid #e1eaf5;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
}
.checkout-detail-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 16px;
}
.checkout-note,
.pending-order-notice {
    border: 1px solid #cbe7ef;
    border-radius: 18px;
    padding: 14px;
    background: #f1fcff;
    color: #36576b;
    font-size: 14px;
}
.pending-order-notice h3 {
    margin: 0 0 8px;
    font-size: 20px;
}
.pending-order-notice p {
    margin: 0 0 14px;
    color: #4f6477;
}
.payment-result {
    white-space: normal;
}
.wallet-balance-card {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
    border: 1px solid #bfeaf1;
    border-radius: 20px;
    padding: 16px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 183, .14), transparent 36%),
        linear-gradient(145deg, #f1fcff, #ffffff);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}
.wallet-balance-card span {
    color: #0f7585;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}
.wallet-balance-card strong {
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
}
.wallet-balance-card em {
    color: #0f7585;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}
.wallet-balance-card p {
    margin: 0;
    color: #52677a;
    font-size: 13px;
}
.topup-form {
    display: grid;
    gap: 14px;
}
.field-help {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.topup-layout {
    align-items: start;
}
.bank-invoice {
    display: grid;
    gap: 16px;
    border: 1px solid #d9e7f3;
    border-radius: 24px;
    padding: 16px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 183, .10), transparent 34%),
        linear-gradient(145deg, #ffffff, #f8fbff);
}
.bank-invoice h3 {
    margin: 0;
    font-size: 22px;
}
.bank-invoice-sub,
.bank-instructions {
    margin: 0;
    color: var(--muted);
}
.bank-invoice-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.bank-qr-block {
    display: grid;
    gap: 10px;
    align-self: start;
}
.bank-qr {
    border: 1px solid #d9e7f3;
    border-radius: 20px;
    padding: 12px;
    background: #f8fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}
.bank-qr img {
    display: block;
    width: 100%;
    border-radius: 14px;
}
.qr-download {
    width: 100%;
    min-height: 40px;
}
.usdt-invoice .bank-invoice-grid {
    grid-template-columns: 220px minmax(0, 1fr);
}
.usdt-network-card {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 220px;
    border: 1px solid #bfeaf1;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(243, 186, 47, .30), transparent 42%),
        linear-gradient(145deg, #fff8db, #f8fbff);
    color: #0f172a;
    text-align: center;
}
.usdt-network-card span {
    display: block;
    color: #5c4700;
    font-size: 13px;
    font-weight: 950;
}
.usdt-network-card strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: 0;
}
.usdt-network-card small {
    display: block;
    margin-top: 3px;
    color: #6b5a19;
    font-size: 13px;
    font-weight: 950;
}
.binance-mark {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: #f3ba2f;
    box-shadow: 0 14px 24px rgba(113, 83, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.binance-mark i,
.binance-mark b {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: #111827;
    transform: rotate(45deg);
}
.binance-mark b {
    top: 30px;
    left: 30px;
}
.binance-mark i:nth-child(1) { top: 11px; left: 30px; }
.binance-mark i:nth-child(2) { top: 30px; left: 11px; }
.binance-mark i:nth-child(3) { top: 30px; right: 11px; }
.binance-mark i:nth-child(4) { bottom: 11px; left: 30px; }
.segmented {
    display: grid;
    gap: 8px;
    border: 1px solid #d9e7f3;
    border-radius: 16px;
    padding: 6px;
    background: #f8fbff;
}
.segmented button {
    border: 0;
    border-radius: 12px;
    padding: 11px 12px;
    background: transparent;
    color: #52677a;
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}
.segmented button.active {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .14);
}
.topup-method-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bank-details {
    display: grid;
    gap: 10px;
}
.bank-copy-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #e1eaf5;
    border-radius: 15px;
    padding: 10px;
    background: #fff;
}
.bank-copy-row.no-copy {
    grid-template-columns: 150px minmax(0, 1fr);
    background: #f8fbff;
}
.bank-copy-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.bank-copy-row strong {
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 14px;
}
.bank-copy-row .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}
.bank-expire {
    border: 1px solid #fde68a;
    border-radius: 15px;
    padding: 11px 12px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
}
.bank-actions {
    gap: 10px;
    padding-top: 8px;
}
.bank-live-status {
    display: none;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    background: #f0f9ff;
    color: #075985;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
}
.bank-live-status.active { display: block; }
.bank-live-status.error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}
.review-note {
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 10px 12px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
}
.detail-stack {
    display: grid;
    gap: 14px;
}
.detail-card {
    border: 1px solid #d9e7f3;
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
}
.detail-card.warn {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}
.detail-card h3 {
    margin: 0 0 12px;
    font-size: 17px;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.detail-grid div {
    border: 1px solid #e1eaf5;
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, .78);
}
.detail-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.detail-grid strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}
.raw-detail summary {
    cursor: pointer;
    color: var(--muted);
    font-weight: 900;
}
.payment-template-box {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid #c7e7ef;
    border-radius: 18px;
    padding: 14px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 183, .12), transparent 36%),
        linear-gradient(145deg, #f1fcff, #ffffff);
}
.payment-template-box strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 16px;
}
.payment-template-box p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.bank-config-fields {
    display: grid;
    gap: 14px;
    border: 1px solid #d9e7f3;
    border-radius: 18px;
    padding: 14px;
    background: #f8fbff;
}
.compact-head {
    padding: 0;
}
.check-field {
    min-height: 44px;
    display: flex;
    gap: 9px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    font-weight: 800;
}
.check-field input {
    width: 18px;
    height: 18px;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
    min-height: 106px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.stat strong { display: block; margin-top: 8px; font-size: 24px; letter-spacing: 0; overflow-wrap: anywhere; }
.rental-card {
    display: grid;
    gap: 12px;
    border: 1px solid #bfeaf1;
    border-radius: 20px;
    padding: 16px;
    background: #f0fcff;
}
.rental-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.rental-head h3 { margin: 0; font-size: 17px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.price-button {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    background: #f8fafc;
}
.price-button span, .price-button strong { white-space: nowrap; }
.price-button em {
    font-style: normal;
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
}
.store-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}
.store-hero .eyebrow {
    border-color: #c8edf3;
    background: #effcff;
    color: #087789;
}
.store-hero h2 {
    margin: 12px 0 8px;
    max-width: 780px;
    font-size: 52px;
    line-height: 1;
    letter-spacing: 0;
}
.store-hero p { max-width: 780px; margin: 0; color: var(--muted); }
.store-search {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.store-search label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}
.store-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 13px;
    outline: none;
}
.store-search input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(14, 165, 183, .13);
}
.shop-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.shop-sidebar {
    position: sticky;
    top: 150px;
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.shop-sidebar h3 { margin: 0; font-size: 18px; }
.category-list { display: grid; gap: 8px; }
.category-pill {
    min-height: 42px;
    border: 1px solid #dbe7f4;
    border-radius: 14px;
    padding: 10px 12px;
    background: #f8fbff;
    color: #475569;
    text-align: left;
    font-weight: 900;
}
.category-pill.active {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
}
.shop-main { min-width: 0; }
.store-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.store-toolbar span { color: var(--muted); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.store-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.store-card:hover {
    transform: translateY(-4px);
    border-color: #99dce6;
    box-shadow: var(--shadow-md);
}
.store-card .media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #edf2f7;
    overflow: hidden;
}
.media-button {
    width: 100%;
    border: 0;
    padding: 0;
    cursor: zoom-in;
    display: block;
    text-align: left;
}
.store-card .media img { width: 100%; height: 100%; object-fit: cover; }
.media-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(7, 17, 31, .66);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}
.store-card .body { padding: 18px; display: grid; gap: 12px; }
.store-card h3 { margin: 0; font-size: 20px; }
.store-card p { margin: 0; color: var(--muted); font-size: 13px; }
.plan-content {
    max-height: 110px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
}
.plan-content p,
.plan-content ul,
.plan-content ol { margin: 0 0 8px; }
.plan-content ul,
.plan-content ol { padding-left: 18px; }
.plan-content a { color: var(--brand-2); font-weight: 800; }
.preview-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 18px;
    background: #f8fafc;
}
.store-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.meta-line { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.pagination span { color: var(--muted); font-weight: 800; }
.secret-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}
.secret-status.good {
    color: #047857;
    background: #dcfce7;
    border: 1px solid #86efac;
}
.secret-status.warn {
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.compact-field { max-width: 160px !important; min-width: 140px !important; }
.support-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px;
    margin-bottom: 16px;
}
.support-hero h2 { margin: 4px 0 6px; font-size: 28px; }
.support-hero p { margin: 0; color: var(--muted); }
.support-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.auth-view {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(90deg, rgba(7, 16, 31, .88), rgba(7, 16, 31, .56)),
        url('/csa/media/thumb-photo.jpg') center/cover no-repeat;
}
.auth-stage {
    width: min(1060px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: stretch;
}
.auth-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 500px;
    color: #fff;
    padding: 22px 0;
}
.auth-copy h1 {
    margin: 16px 0 14px;
    max-width: 660px;
    font-size: 64px;
    line-height: 1.04;
}
.auth-title {
    display: grid;
    gap: 8px;
}
.auth-title span { display: block; }
.auth-title-product {
    white-space: nowrap;
    font-size: .9em;
}
.auth-copy p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .76); font-size: 16px; }
.auth-proof {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.auth-proof span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}
.auth-card {
    align-self: center;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 30px;
    padding: 26px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
}
.auth-card h1 { margin: 0 0 6px; font-size: 26px; }
.auth-card p { margin: 0 0 20px; color: var(--muted); }
.auth-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.auth-card-top p { margin-bottom: 0; }
.auth-card-top > div { min-width: 0; }
.auth-back-link {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(217, 226, 239, .95);
    background: #fff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 850;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.auth-back-link:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 183, .36);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.auth-back-link span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 950;
}

/* Admin dashboard */
.csa-admin {
    background:
        linear-gradient(180deg, #f8fbff, #eef3f9);
}
.csa-admin.admin-login-mode {
    min-height: 100vh;
    background:
        linear-gradient(110deg, rgba(8, 17, 33, .92), rgba(14, 116, 144, .56)),
        url('/csa/media/thumb-banner.jpg') center/cover no-repeat;
}
.csa-admin .shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.csa-admin.admin-login-mode .shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.csa-admin #appView {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
}
.csa-admin .topbar {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 14px 24px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
}
.admin-menu-toggle { display: none; }
.csa-admin .tabs {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 104px 16px 18px;
    background:
        linear-gradient(180deg, #0f172a 0%, #111827 52%, #101826 100%);
    overflow-y: auto;
}
.csa-admin .tabs::before {
    content: "CSA Admin";
    position: absolute;
    top: 28px;
    left: 22px;
    color: #fff;
    font-weight: 950;
    font-size: 22px;
    letter-spacing: 0;
}
.csa-admin .tab {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    text-align: left;
    color: #cbd5e1;
    padding: 11px 14px;
    border-radius: 14px;
}
.csa-admin .tab:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.csa-admin .tab.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
}
.csa-admin #content {
    grid-column: 2;
    grid-row: 2;
    padding: 24px;
    min-width: 0;
}
.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(14, 165, 183, .12), transparent 40%),
        linear-gradient(145deg, #ffffff, #f8fbff);
}
.admin-hero h2 {
    margin: 6px 0 7px;
    font-size: 30px;
    line-height: 1.1;
}
.admin-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}
.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.csa-admin .panel,
.csa-admin .stat,
.csa-admin .table-wrap {
    border-color: #dbe6f3;
}
.csa-admin .panel {
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .07);
}
.csa-admin .admin-card-list {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    align-items: start;
}
.csa-admin .admin-mobile-card {
    box-shadow: none;
    border-radius: 18px;
}
.csa-admin th {
    background: #f5f8fc;
}
.csa-admin tr:hover td {
    background: #fbfdff;
}
.csa-admin .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.csa-admin .login-shell {
    width: min(440px, calc(100vw - 28px));
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 26px;
}

.store-card[data-plan-card] { cursor: pointer; }
.store-card[data-plan-card]:focus-visible {
    outline: 3px solid rgba(14, 165, 183, .28);
    outline-offset: 3px;
}
.limit-explain {
    margin: -2px 0 0;
    color: #51657a;
    font-size: 12px;
    line-height: 1.5;
}
.plan-card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 2px;
}
.plan-from-price {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.plan-from-price span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.plan-from-price strong {
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.2;
}
.plan-detail {
    display: grid;
    gap: 14px;
}
.plan-price-list {
    display: grid;
    gap: 9px;
}
.plan-price-list div,
.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border: 1px solid #dbe7f4;
    border-radius: 16px;
    padding: 12px 14px;
    background: #f8fbff;
}
.plan-price-list span,
.checkout-total span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.plan-price-list strong,
.checkout-total strong {
    color: var(--ink);
    font-size: 17px;
    overflow-wrap: anywhere;
}
.plan-rent-cta {
    width: 100%;
    min-height: 46px;
}

.admin-plan-tools {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 180px;
    align-items: end;
}
.plan-admin-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    background: #fff;
}
.plan-admin-table {
    min-width: 1220px;
    table-layout: fixed;
}
.plan-admin-table th:nth-child(1) { width: 330px; }
.plan-admin-table th:nth-child(2) { width: 190px; }
.plan-admin-table th:nth-child(3) { width: 170px; }
.plan-admin-table th:nth-child(4) { width: 190px; }
.plan-admin-table th:nth-child(5) { width: 180px; }
.plan-admin-table th:nth-child(6) { width: 145px; }
.plan-admin-table th:nth-child(7) { width: 210px; }
.plan-admin-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.plan-admin-product img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    background: #eef4fb;
    border: 1px solid #e1eaf5;
}
.plan-admin-product strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.25;
}
.plan-admin-product p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.admin-price-list {
    grid-template-columns: 1fr;
}
.admin-price-list div {
    padding: 8px 10px;
}
.plan-admin-meta {
    display: grid;
    gap: 5px;
}
.plan-admin-meta strong {
    font-size: 17px;
}
.plan-admin-meta span {
    color: #0f7585;
    font-weight: 900;
}
.plan-admin-meta small,
.plan-api-cell small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.plan-api-cell {
    display: grid;
    gap: 6px;
}
.staff-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.staff-chip-list span {
    max-width: 100%;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 5px 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.status-stack,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.table-actions .btn {
    min-height: 34px;
    border-radius: 11px;
    padding: 7px 10px;
    font-size: 12px;
}
.admin-plan-detail-head {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}
.admin-plan-detail-head img {
    width: 104px;
    height: 104px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid #e1eaf5;
    background: #f1f5f9;
}
.admin-plan-detail-head p {
    margin: 0;
    color: var(--muted);
}
.plan-form {
    gap: 18px;
}
.form-section {
    display: grid;
    gap: 12px;
    border: 1px solid #dbe6f3;
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
}
.form-section h3 {
    margin: 0;
    font-size: 17px;
}
.form-section > p {
    margin: -6px 0 2px;
    color: var(--muted);
    font-size: 13px;
}
.plan-form-preview {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid #e1eaf5;
    border-radius: 16px;
    padding: 10px;
    background: #fff;
}
.plan-form-preview img {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
}
.plan-form-preview strong,
.plan-form-preview span {
    display: block;
    overflow-wrap: anywhere;
}
.plan-form-preview span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.price-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.staff-picker-field {
    display: grid;
    gap: 9px;
}
.staff-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.staff-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-height: 34px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 900;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.staff-selected-chip span {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dbeafe;
}
.staff-empty {
    color: var(--muted);
    font-size: 13px;
}
.switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.switch-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
}
.switch-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.switch-card span {
    grid-row: span 2;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #d7e3ef;
    transition: background .18s ease;
    position: relative;
}
.switch-card span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .18);
    transition: transform .18s ease;
}
.switch-card input:checked + span {
    background: var(--brand);
}
.switch-card input:checked + span::after {
    transform: translateX(18px);
}
.switch-card strong {
    line-height: 1.2;
}
.switch-card em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    line-height: 1.4;
}
.csa-admin .login-shell h1 { margin: 0 0 8px; font-size: 28px; }
.csa-admin .login-shell p { margin: 0 0 20px; color: var(--muted); }

@media (max-width: 1180px) {
    .hero-inner, .auth-stage { grid-template-columns: 1fr; }
    .hero-copy h2 { font-size: 60px; }
    .store-hero h2 { font-size: 44px; }
    .rental-dashboard h2 { font-size: 32px; }
    .section-title h2 { font-size: 34px; }
    .showcase-card { max-width: 520px; }
    .product-strip, .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-hero, .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .dashboard-utility-grid { grid-template-columns: 1fr; }
    .stats, .csa-admin .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .grid.two, .grid.three, .feature-grid, .product-strip, .store-grid, .price-grid { grid-template-columns: 1fr; }
    .public-nav { align-items: flex-start; flex-direction: column; }
    .topbar-main { align-items: flex-start; flex-direction: column; }
    .topbar-actions { width: 100%; justify-content: flex-start; }
    .topbar-actions .language-switch { flex: 0 0 auto; }
    .menu-toggle { display: inline-flex; }
    .client-topbar .tabs {
        display: none;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }
    .menu-open .client-topbar .tabs { display: flex; }
    .client-topbar .tab {
        width: 100%;
        text-align: left;
    }
    .store-toolbar { align-items: flex-start; flex-direction: column; }
    .shop-sidebar {
        position: static;
        border: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    .shop-sidebar h3 {
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0;
    }
    .category-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }
    .category-pill {
        min-height: 38px;
        border-radius: 14px;
        padding: 8px 13px;
        text-align: center;
    }
    .support-hero { align-items: flex-start; flex-direction: column; }
    .support-links { justify-content: flex-start; width: 100%; }
    .rental-dashboard-empty { grid-template-columns: 1fr; }
    .rental-product-card { grid-template-columns: 100px minmax(0, 1fr); }
    .pagination { justify-content: center; flex-wrap: wrap; }
    .hero-stage { min-height: auto; }
    .hero-inner { padding: 58px 0 38px; }
    .hero-proof { grid-template-columns: 1fr; }
    .auth-copy { min-height: 260px; }
    .auth-card { padding: 20px; }
    .auth-card-top { flex-direction: column; }
    .drawer { grid-template-columns: 1fr; }
    .drawer-panel { grid-column: 1; }
    .tools .field { max-width: none; min-width: 100%; }
    .csa-admin #appView {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto 1fr;
    }
    .csa-admin .topbar { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; }
    .admin-hero { flex-direction: column; align-items: flex-start; }
    .admin-hero-actions { justify-content: flex-start; }
    .admin-menu-toggle {
        grid-column: 1;
        grid-row: 2;
        display: inline-flex;
        width: calc(100% - 32px);
        margin: 12px 16px 0;
        align-self: start;
    }
    .csa-admin .tabs {
        grid-column: 1;
        grid-row: 3;
        position: static;
        height: auto;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px 16px;
        overflow: visible;
        background: #0f172a;
    }
    .csa-admin.admin-menu-open .tabs { display: grid; }
    .csa-admin .tabs::before { display: none; }
    .csa-admin .tab { width: 100%; min-width: 0; justify-content: center; text-align: center; }
    .csa-admin #content { grid-column: 1; grid-row: 4; padding: 16px; }
}
@media (max-width: 560px) {
    .auth-view { align-items: start; place-items: start center; padding: 12px; min-height: 100dvh; }
    .auth-stage { width: 100%; }
    .client-shell, .public-band, .public-nav { width: min(calc(100vw - 24px), 1200px); }
    .hero-copy h2 { font-size: 38px; }
    .auth-copy h1 {
        font-size: 30px;
        line-height: 1.06;
    }
    .auth-title { gap: 6px; }
    .auth-copy { min-height: 190px; justify-content: flex-end; padding: 48px 0 4px; }
    .auth-copy p { font-size: 14px; line-height: 1.55; }
    .auth-proof { display: none; }
    .auth-card { border-radius: 24px; padding: 20px; }
    .auth-card h1 { font-size: 24px; }
    .auth-card p { font-size: 14px; }
    .store-hero { gap: 12px; margin-bottom: 14px; }
    .store-hero h2 { font-size: 30px; line-height: 1.08; }
    .store-hero p { font-size: 14px; }
    .store-search { padding: 11px; border-radius: 18px; }
    .store-search input { min-height: 44px; }
    .hero-inner { padding: 34px 0 24px; }
    .hero-copy { padding-bottom: 0; }
    .hero-copy p { font-size: 15px; }
    .hero-actions { margin-top: 20px; }
    .hero-proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 22px;
    }
    .proof-item { padding: 9px; border-radius: 14px; }
    .proof-item strong { font-size: 15px; }
    .proof-item span { font-size: 10px; }
    .showcase-card { display: none; }
    .stats, .csa-admin .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { min-height: 88px; padding: 14px; }
    .stat strong { font-size: 20px; }
    .rental-dashboard { padding: 16px; border-radius: 22px; }
    .rental-dashboard h2 { font-size: 28px; line-height: 1.08; }
    .rental-dashboard p { font-size: 14px; }
    .rental-dashboard-head { flex-direction: column; }
    .rental-dashboard-tools {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
    }
    .rental-total { width: auto; min-width: 0; text-align: left; }
    .rental-guide-button { min-height: 100%; }
    .checkout-plan,
    .checkout-detail-grid,
    .payment-template-box,
    .bank-invoice-grid,
    .bank-copy-row,
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .bank-copy-row.no-copy { grid-template-columns: 1fr; }
    .rental-product-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        min-height: auto;
        border-radius: 18px;
        padding: 10px;
    }
    .rental-product-title { gap: 6px; }
    .rental-product-title h3 { font-size: 16px; }
    .rental-grid-modern { grid-template-columns: 1fr; }
    .rental-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rental-metrics div { padding: 8px; }
    .rental-card-actions .btn { flex: 1 1 100%; min-height: 38px; }
    .bank-qr-block,
    .bank-qr,
    .usdt-network-card {
        width: 100%;
        max-width: 310px;
        justify-self: center;
    }
    .rental-product-media {
        justify-self: center;
        max-width: 82px;
        border-radius: 16px;
    }
    .brand h1 { font-size: 18px; }
    .actions { width: 100%; }
    .actions .btn { flex: 1; }
    .actions .language-switch { width: auto; justify-content: space-between; }
    .actions.topbar-actions .btn { flex: 1 1 calc(50% - 6px); }
    .compact-field { max-width: none !important; min-width: 100% !important; }
    .client-shell { width: min(calc(100vw - 20px), 1200px); padding-top: 10px; }
    .drawer-body { padding: 14px; }
    .bank-invoice { padding: 14px; border-radius: 22px; }
    .bank-invoice h3 { font-size: 20px; }
    .bank-actions { padding-top: 10px; }
    .bank-actions .btn { min-height: 44px; }
    .usdt-network-card { min-height: 190px; }
    .binance-mark { width: 68px; height: 68px; border-radius: 20px; }
    .binance-mark b { top: 26px; left: 26px; }
    .binance-mark i:nth-child(1) { top: 9px; left: 26px; }
    .binance-mark i:nth-child(2) { top: 26px; left: 9px; }
    .binance-mark i:nth-child(3) { top: 26px; right: 9px; }
    .binance-mark i:nth-child(4) { bottom: 9px; left: 26px; }
    .client-topbar { top: 8px; gap: 10px; border-radius: 22px; padding: 12px; margin-bottom: 14px; }
    .client-topbar .brand img { width: 42px; height: 42px; border-radius: 13px; }
    .client-topbar .brand h1 { font-size: 16px; line-height: 1.16; max-width: 260px; }
    .client-topbar .brand p { font-size: 12px; }
    .client-topbar .actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; }
    .client-topbar .language-switch { grid-column: auto; }
    .client-topbar .language-current {
        min-width: 96px;
        padding: 0 9px;
    }
    .client-topbar .language-name { display: inline; font-size: 12px; }
    .client-topbar .language-code { display: none; }
    .client-topbar .language-menu {
        left: 0;
        right: auto;
        transform-origin: top left;
    }
    .client-topbar .btn { min-height: 38px; border-radius: 12px; padding: 8px 10px; }
    .account-line strong {
        font-size: 14px;
        line-height: 1.3;
    }
    .panel-head { flex-direction: column; }
    .panel-head, .panel-body { padding-left: 16px; padding-right: 16px; }
    .tools { padding: 10px; border-radius: 16px; }
    .mobile-card-meta,
    .price-list { grid-template-columns: 1fr; }
    .csa-admin .topbar {
        min-height: auto;
        padding: 14px;
        gap: 12px;
    }
    .csa-admin .topbar .brand img { width: 44px; height: 44px; }
    .csa-admin .topbar .brand h1 { font-size: 20px; }
    .csa-admin .topbar .brand p { font-size: 12px; line-height: 1.45; }
    .csa-admin .topbar .actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .csa-admin .topbar .actions .btn {
        min-height: 38px;
        border-radius: 12px;
        padding: 8px 7px;
        font-size: 12px;
    }
    .csa-admin .topbar .actions .btn:nth-last-child(-n+2) { grid-column: span 1; }
    .csa-admin .tabs {
        padding: 12px;
        gap: 8px;
    }
    .csa-admin .admin-card-list {
        grid-template-columns: 1fr;
    }
    .csa-admin .tab {
        min-height: 38px;
        border-radius: 13px;
        padding: 8px 11px;
        font-size: 13px;
    }
    .csa-admin #content { padding: 12px; }
    .admin-hero {
        padding: 16px;
        border-radius: 20px;
    }
    .admin-hero h2 { font-size: 26px; line-height: 1.12; }
    .admin-hero p { font-size: 14px; }
    .admin-hero-actions .btn { flex: 1 1 100%; }
    .csa-admin .panel { border-radius: 20px; }
    .csa-admin .panel-head .btn { width: 100%; }
    .system-detail .html-body,
    .raw-detail .html-body {
        max-height: 360px;
        overflow: auto;
        font-size: 12px;
    }
}
@media (max-width: 360px) {
    .client-topbar .language-current {
        min-width: 58px;
        padding: 0 9px 0 7px;
    }
    .client-topbar .language-name { display: none; }
    .client-topbar .language-code {
        display: inline-grid;
        min-width: 30px;
        height: 26px;
        padding: 0 7px;
    }
}

@media (max-width: 700px) {
    .plan-card-footer,
    .admin-plan-tools,
    .price-input-grid,
    .switch-grid {
        grid-template-columns: 1fr;
    }
    .plan-card-footer .btn {
        width: 100%;
    }
    .drawer.drawer-compact {
        align-items: start;
        padding: 14px;
    }
    .drawer.drawer-compact .drawer-panel {
        width: min(520px, calc(100vw - 28px));
        max-height: min(92dvh, 760px);
        border-radius: 22px;
    }
    .admin-plan-detail-head,
    .plan-form-preview {
        grid-template-columns: 1fr;
    }
    .admin-plan-detail-head img,
    .plan-form-preview img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}
