:root {
    color-scheme: light;
    --bg: #f5efff;
    --panel: #ffffff;
    --text: #161827;
    --muted: #8b91a6;
    --line: #eef0f8;
    --primary: #5b35f5;
    --primary-strong: #4725d4;
    --mint: #23d7a0;
    --mint-soft: #e9fff6;
    --success: #10a56f;
    --warning: #df8b18;
    --danger: #ff5a6e;
    --shadow: 0 28px 70px rgba(50, 18, 132, .26);
    --soft-shadow: 0 18px 36px rgba(74, 68, 122, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #fafbff;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.app-frame {
    background: #fafbff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    margin: 0;
    max-width: none;
    min-height: 100vh;
    overflow: visible;
    width: 100%;
}

.topbar {
    background: rgba(255, 255, 255, .98);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 22px 18px;
}

.brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 16px;
    font-weight: 900;
    gap: 9px;
    letter-spacing: 0;
}

.brand-logo {
    display: block;
    height: auto;
    object-fit: contain;
}

.sidebar-logo {
    max-height: 42px;
    max-width: 158px;
}

.brand-mark {
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--primary), var(--mint)) border-box;
    border: 2px solid transparent;
    border-radius: 50%;
    height: 18px;
    position: relative;
    width: 18px;
}

.brand-mark::after {
    background: var(--primary);
    border-radius: 50%;
    content: "";
    height: 6px;
    left: 4px;
    position: absolute;
    top: 4px;
    width: 6px;
}

.nav {
    display: grid;
    gap: 9px;
}

.nav a,
.link-button {
    align-items: center;
    border-radius: 9px;
    color: #9aa0b6;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 11px;
    justify-content: flex-start;
    min-height: 40px;
    padding: 10px 12px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    width: 100%;
}

.nav a:hover,
.link-button:hover {
    background: #f4f1ff;
    color: var(--primary);
}

.nav a.active {
    background: #f4f1ff;
    box-shadow: none;
    color: var(--primary);
}

.nav-icon {
    fill: none;
    flex: 0 0 auto;
    height: 19px;
    opacity: .76;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 19px;
}

.nav a.active .nav-icon,
.link-button:hover .nav-icon {
    opacity: 1;
}

.nav-logout {
    margin-top: 16px;
}

.inline-form {
    display: block;
}

button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.link-button {
    background: transparent;
}

.shell {
    background: #fafbff;
    min-height: 100vh;
    min-width: 0;
    padding: 28px 32px 42px;
}

.workspace-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hello {
    color: #24263a;
    font-size: 16px;
    font-weight: 900;
    margin: 0;
}

.workspace-sub {
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0 0;
}

.search-pill {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #b4b8c8;
    min-width: 190px;
    padding: 10px 14px;
    text-align: left;
}

.auth-panel {
    align-items: start;
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    padding-top: 34px;
}

h1,
h2 {
    letter-spacing: 0;
    margin: 0;
}

h1 {
    color: #1b1d2c;
    font-size: 32px;
    line-height: 1.12;
}

h2 {
    color: #1c2034;
    font-size: 20px;
}

.eyebrow {
    color: var(--mint);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 13px;
}

.page-head,
.section-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-head {
    margin-top: 30px;
}

.form-card,
.stat,
.product-card,
.detail-grid > div,
.detail-grid > form,
.table-wrap {
    background: var(--panel);
    border: 1px solid rgba(238, 240, 248, .95);
    border-radius: 13px;
    box-shadow: var(--soft-shadow);
}

.form-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    width: 100%;
}

.form-card.wide {
    max-width: none;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-span-full {
    grid-column: 1 / -1;
}

label {
    align-content: start;
    color: #4c5066;
    display: grid;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
}

input,
textarea,
select {
    background: #fbfcff;
    border: 1px solid #e4e7f1;
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #aa9bfd;
    box-shadow: 0 0 0 4px rgba(91, 53, 245, .1);
    outline: none;
}

.password-field {
    display: block;
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #e6e9f4;
    border-radius: 8px;
    color: #7a8198;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    transition: border-color .18s ease, color .18s ease, background .18s ease;
    width: 34px;
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible {
    background: #f7f4ff;
    border-color: #c9bfff;
    color: var(--primary);
    outline: none;
}

.password-toggle svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 19px;
}

textarea {
    resize: vertical;
}

.check {
    align-items: center;
    display: flex;
    font-weight: 700;
}

.check input {
    min-height: auto;
    width: auto;
}

.btn {
    align-items: center;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 11px 16px;
}

.primary {
    background: linear-gradient(135deg, #6347ff, #4b27dc);
    box-shadow: 0 12px 24px rgba(91, 53, 245, .24);
    color: white;
}

.primary:hover {
    background: linear-gradient(135deg, #745cff, #4c2bd2);
}

.danger {
    background: var(--danger);
    color: white;
}

.secondary {
    background: #f3f0ff;
    color: var(--primary);
}

.alert {
    border-radius: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.alert.success {
    background: #eafff7;
    border: 1px solid #b8f5df;
    color: #08704d;
}

.alert.error {
    background: #fff1f3;
    border: 1px solid #ffc0ca;
    color: #a31631;
}

.swal2-popup {
    border-radius: 18px;
    color: var(--text);
    font-family: inherit;
}

.swal2-title {
    color: var(--text);
    font-weight: 950;
}

.swal-confirm-button,
.swal2-confirm.swal-confirm-button {
    background: linear-gradient(135deg, #6347ff, #4b27dc);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(91, 53, 245, .24);
    font-weight: 900;
    min-width: 102px;
}

.swal-cancel-button,
.swal2-cancel.swal-cancel-button {
    background: #f3f0ff;
    border-radius: 10px;
    color: var(--primary);
    font-weight: 900;
    min-width: 86px;
}

.stats-grid,
.product-grid,
.split-grid,
.detail-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 8px;
}

.split-grid {
    grid-template-columns: 1fr;
}

.detail-grid {
    grid-template-columns: 1fr;
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
    align-items: center;
    display: flex;
    gap: 14px;
    min-height: 106px;
    padding: 20px;
}

.stat-link {
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.stat-link:hover {
    border-color: #d8d1ff;
    box-shadow: 0 22px 45px rgba(91, 53, 245, .12);
    transform: translateY(-1px);
}

.stat-icon,
.product-icon {
    background:
        radial-gradient(circle at 50% 50%, #fff 0 23%, transparent 24%),
        linear-gradient(135deg, #c8fff0, #eafff7);
    border: 1px solid #c2f7e6;
    border-radius: 50%;
    box-shadow: inset 0 0 0 7px rgba(35, 215, 160, .14);
    display: inline-flex;
    flex: 0 0 auto;
    height: 48px;
    width: 48px;
}

.server-icon {
    background: linear-gradient(135deg, #f0f3ff, #ddfff6);
    border: 1px solid #c7f4e9;
    border-radius: 14px;
    box-shadow: inset 0 0 0 6px rgba(35, 215, 160, .11);
    display: inline-flex;
    flex: 0 0 auto;
    height: 48px;
    position: relative;
    width: 48px;
}

.server-icon::before {
    background: #ffffff;
    border: 1px solid #dce1ef;
    border-radius: 5px;
    box-shadow: 0 10px 0 #ffffff, 0 20px 0 #ffffff, 0 10px 0 1px #dce1ef, 0 20px 0 1px #dce1ef;
    content: "";
    height: 6px;
    left: 11px;
    position: absolute;
    right: 11px;
    top: 10px;
}

.server-icon::after {
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 10px 0 var(--mint), 0 20px 0 var(--mint);
    content: "";
    height: 4px;
    left: 16px;
    position: absolute;
    top: 12px;
    width: 4px;
}

.stat-icon.warning {
    background:
        radial-gradient(circle at 50% 50%, #fff 0 23%, transparent 24%),
        linear-gradient(135deg, #fff1cc, #fff9ed);
    border-color: #ffe0a3;
    box-shadow: inset 0 0 0 7px rgba(223, 139, 24, .12);
}

.stat-icon.success {
    background:
        radial-gradient(circle at 50% 50%, #fff 0 23%, transparent 24%),
        linear-gradient(135deg, #c8fff0, #edfff9);
    border-color: #b6f2dc;
}

.stat span:not(.stat-icon) {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.stat strong {
    color: #171a2c;
    display: block;
    font-size: 30px;
    line-height: 1;
    margin-top: 6px;
}

.stat small {
    color: var(--mint);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-top: 7px;
}

.product-card {
    display: grid;
    gap: 18px;
    min-height: 310px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.product-card::before {
    background: linear-gradient(135deg, rgba(91, 53, 245, .12), rgba(35, 215, 160, .16));
    content: "";
    height: 88px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.product-top,
.product-body,
.product-bottom,
.product-card .btn {
    position: relative;
    z-index: 1;
}

.product-top,
.product-bottom {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.product-duration {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px;
}

.variant-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.variant-chip-list span {
    background: #f3f0ff;
    border-radius: 999px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    padding: 6px 9px;
}

.product-body {
    padding-top: 8px;
}

.product-body h2 {
    margin-bottom: 10px;
}

.product-bottom {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.admin-product-card {
    min-height: 350px;
}

.product-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.product-actions form {
    display: contents;
}

.server-actions {
    align-items: center;
    grid-template-columns: minmax(90px, .9fr) minmax(118px, 1fr) 46px;
}

.admin-product-actions {
    align-items: center;
    grid-template-columns: minmax(90px, 1fr) minmax(118px, 1fr) 46px;
}

.icon-btn {
    min-height: 42px;
    padding: 0;
    width: 42px;
}

.icon-btn svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.icon-btn.danger {
    background: #fff1f3;
    border: 1px solid #ffc5cf;
    box-shadow: none;
    color: var(--danger);
}

.icon-btn.danger:hover,
.icon-btn.danger:focus-visible {
    background: var(--danger);
    color: #fff;
    outline: none;
}

.variant-manager {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 16px;
    margin-top: 6px;
    padding-top: 20px;
}

.variant-manager-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.variant-manager-head h2 {
    margin-top: 4px;
}

.variant-list {
    display: grid;
    gap: 16px;
}

.variant-card {
    background: #fbfcff;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 16px;
    padding: 18px;
}

.variant-card-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.variant-card-head h3 {
    margin: 0;
}

.danger-link {
    color: var(--danger);
    min-height: auto;
    width: auto;
}

.variant-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-variant-grid {
    margin-bottom: 22px;
}

.checkout-variant-grid {
    margin-bottom: 28px;
    padding-bottom: 6px;
}

.variant-option {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    gap: 12px;
    padding: 18px;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.variant-option input[type="radio"] {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.variant-option:hover,
.variant-option.selected,
.variant-option:has(input[type="radio"]:checked) {
    border-color: #c9bfff;
    box-shadow: 0 20px 42px rgba(91, 53, 245, .12);
    transform: translateY(-1px);
}

.variant-option.selected,
.variant-option:has(input[type="radio"]:checked) {
    background: linear-gradient(180deg, #fff, #fbfaff);
}

.variant-option.readonly {
    cursor: default;
}

.selected-indicator {
    background: #eafff7;
    border: 1px solid #b8f5df;
    border-radius: 999px;
    color: var(--success);
    display: none;
    font-size: 11px;
    font-weight: 950;
    padding: 5px 8px;
    position: absolute;
    right: 16px;
    top: 16px;
    text-transform: uppercase;
}

.variant-option.selected .selected-indicator,
.variant-option:has(input[type="radio"]:checked) .selected-indicator {
    display: inline-flex;
}

.variant-option-head {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    min-height: 28px;
    padding-right: 94px;
}

.variant-option h2 {
    font-size: 22px;
    margin: 0;
}

.benefit-list {
    color: var(--muted);
    display: grid;
    gap: 8px;
    line-height: 1.45;
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefit-list li {
    padding-left: 20px;
    position: relative;
}

.benefit-list li::before {
    background: var(--mint);
    border-radius: 50%;
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    top: .55em;
    width: 7px;
}

.package-select-button {
    margin-top: auto;
    width: 100%;
}

.variant-option.selected .package-select-button,
.variant-option:has(input[type="radio"]:checked) .package-select-button {
    background: linear-gradient(135deg, #6347ff, #4b27dc);
    box-shadow: 0 12px 24px rgba(91, 53, 245, .2);
    color: #fff;
}

.checkout-server-select {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.server-info-link {
    color: var(--primary);
    font-weight: 850;
    justify-self: start;
}

.checkout-total-panel {
    background: linear-gradient(135deg, #f7f4ff, #effff9);
    border: 1px solid #ded8ff;
    border-radius: 13px;
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 18px;
}

.checkout-total-panel div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.checkout-total-panel span {
    color: var(--muted);
    font-weight: 850;
}

.checkout-total-panel strong {
    color: var(--text);
    font-size: 17px;
}

.checkout-total-main {
    border-top: 1px solid rgba(91, 53, 245, .15);
    padding-top: 12px;
}

.checkout-total-main strong {
    color: var(--primary);
    font-size: 24px;
}

.order-hero {
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f5f2ff 54%, #f0fffa);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--soft-shadow);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 24px;
}

.order-hero h1 {
    font-size: 30px;
}

.order-hero .muted {
    margin: 8px 0 0;
}

.order-hero-total {
    background: #fff;
    border: 1px solid rgba(222, 216, 255, .9);
    border-radius: 14px;
    display: grid;
    gap: 8px;
    min-width: 210px;
    padding: 16px;
}

.order-hero-total span,
.order-info-row span,
.payment-total span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.order-hero-total strong {
    color: var(--primary);
    font-size: 26px;
    line-height: 1;
}

.order-hero-total em {
    font-style: normal;
    justify-self: start;
}

.order-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.order-card {
    background: var(--panel);
    border: 1px solid rgba(238, 240, 248, .95);
    border-radius: 14px;
    box-shadow: var(--soft-shadow);
    display: grid;
    gap: 18px;
    padding: 24px;
}

.order-card-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.order-info-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-info-row {
    background: #fbfcff;
    border: 1px solid #edf0f8;
    border-radius: 11px;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 13px 14px;
}

.order-info-row.wide {
    grid-column: 1 / -1;
}

.order-info-row strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.order-section-title {
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 14px;
    font-weight: 950;
    padding-top: 18px;
}

.payment-card {
    position: sticky;
    top: 24px;
}

.payment-card p {
    line-height: 1.55;
    margin: 0;
}

.payment-card .btn {
    width: 100%;
}

.payment-total {
    background: linear-gradient(135deg, #f7f4ff, #effff9);
    border: 1px solid #ded8ff;
    border-radius: 13px;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.payment-total strong {
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
}

.payment-option-list {
    display: grid;
    gap: 10px;
}

.payment-option {
    align-items: center;
    background: #fbfcff;
    border: 1px solid #edf0f8;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 12px;
}

.payment-option input {
    min-height: auto;
    width: auto;
}

.payment-option span:last-child {
    display: grid;
    gap: 3px;
}

.payment-option strong {
    color: var(--text);
}

.payment-option em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.payment-option.disabled {
    cursor: not-allowed;
    opacity: .55;
}

.bank-logo {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe4f0;
    border-radius: 13px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 52px;
    justify-content: center;
    overflow: hidden;
    width: 52px;
}

.bank-logo.small {
    border-radius: 10px;
    height: 42px;
    width: 42px;
}

.bank-logo img {
    display: block;
    max-height: 82%;
    max-width: 82%;
    object-fit: contain;
}

.bank-logo-fallback {
    background: linear-gradient(135deg, #f3f0ff, #eafff7);
    color: var(--primary);
    font-weight: 950;
}

.payment-method-meta {
    background: #fbfcff;
    border: 1px solid #edf0f8;
    border-radius: 10px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.payment-method-meta span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.payment-method-meta strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.payment-config-section {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 16px;
    padding-top: 18px;
}

.payment-config-section[hidden] {
    display: none;
}

.payment-countdown {
    background: #fff8ed;
    border: 1px solid #ffe0a3;
    border-radius: 13px;
    display: grid;
    gap: 6px;
    padding: 14px 16px;
}

.payment-countdown span {
    color: var(--warning);
    font-size: 13px;
    font-weight: 900;
}

.payment-countdown strong {
    color: #9a5a00;
    font-size: 26px;
}

.payment-countdown strong.is-expired {
    color: var(--danger);
    font-size: 16px;
}

.bank-account-card {
    align-items: center;
    background: #fbfcff;
    border: 1px solid #edf0f8;
    border-radius: 13px;
    display: flex;
    gap: 13px;
    padding: 14px;
}

.bank-account-card div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.bank-account-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.bank-account-card strong {
    color: var(--text);
    font-size: 22px;
    overflow-wrap: anywhere;
}

.bank-account-card em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.payment-instructions,
.proof-status {
    background: #fbfcff;
    border: 1px solid #edf0f8;
    border-radius: 12px;
    color: var(--muted);
    line-height: 1.55;
    padding: 14px;
}

.proof-status {
    display: grid;
    gap: 6px;
}

.proof-status strong {
    color: var(--success);
}

.proof-upload-form {
    display: grid;
    gap: 14px;
}

.admin-payment-summary {
    display: grid;
    gap: 10px;
}

.admin-payment-summary div {
    background: #fbfcff;
    border: 1px solid #edf0f8;
    border-radius: 11px;
    display: grid;
    gap: 5px;
    padding: 12px;
}

.admin-payment-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.admin-payment-summary strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.admin-proof-status .btn {
    margin-top: 6px;
}

.muted-proof strong {
    color: var(--muted);
}

.license-success-box {
    background: linear-gradient(135deg, #f7f4ff, #effff9);
    border: 1px solid #ded8ff;
    border-radius: 13px;
    display: grid;
    gap: 10px;
    padding: 18px;
}

.license-success-box span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.price {
    color: #191b2d;
    font-size: 25px;
    font-weight: 950;
}

.table-wrap {
    overflow-x: hidden;
}

table {
    border-collapse: collapse;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

th {
    overflow-wrap: anywhere;
}

th {
    background: #fbfcff;
    color: #a1a6b8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.table-action-button {
    min-height: 34px;
    padding: 7px 12px;
}

code,
.license-key {
    background: #f1efff;
    border: 1px solid #dfd9ff;
    border-radius: 7px;
    color: #4b27dc;
    display: inline-block;
    font-family: "SFMono-Regular", Consolas, monospace;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 4px 7px;
    white-space: normal;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.badge-success {
    background: #dbfff2;
    color: var(--success);
}

.badge-warning {
    background: #fff2da;
    color: var(--warning);
}

.badge-danger {
    background: #ffe6ea;
    color: #d62d47;
}

.badge-muted {
    background: #f0f2f7;
    color: #7d8498;
}

.actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.stack {
    margin-bottom: 12px;
}

.stack-form {
    display: grid;
    gap: 16px;
}

.empty {
    color: var(--muted);
    padding: 24px;
    text-align: center;
}

dl {
    display: grid;
    gap: 10px;
    grid-template-columns: 120px minmax(0, 1fr);
}

dt {
    color: var(--muted);
    font-weight: 800;
}

dd {
    margin: 0;
}

@media (max-width: 980px) {
    body {
        padding: 0;
    }

    .app-frame {
        grid-template-columns: 1fr;
    }

    .topbar {
        border-bottom: 1px solid var(--line);
        border-right: 0;
    }

    .nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auth-panel,
    .split-grid,
    .detail-grid,
    .form-grid,
    .order-layout {
        grid-template-columns: 1fr;
    }

    .payment-card {
        position: static;
    }

    .stats-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    body {
        padding: 0;
    }

    .app-frame {
        border-radius: 0;
        min-height: 100vh;
    }

    .shell {
        padding: 22px 16px 34px;
    }

    .workspace-top,
    .page-head,
    .order-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-pill {
        min-width: 100%;
    }

    .nav,
    .stats-grid,
    .customer-stats,
    .product-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 27px;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-hero-total {
        min-width: 100%;
    }

    .stat {
        min-height: 92px;
    }
}

.public-body {
    background: #f7f8fc;
}

.public-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    min-height: 74px;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.public-header-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1150px;
    min-height: 74px;
    padding: 0 24px;
    width: 100%;
}

.public-brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    font-size: 18px;
    font-weight: 950;
    gap: 10px;
}

.public-logo {
    max-height: 44px;
    max-width: 230px;
}

.public-nav {
    align-items: center;
    display: flex;
    gap: 22px;
}

.public-nav a,
.public-link-button {
    background: transparent;
    border-radius: 10px;
    color: #596075;
    font-size: 14px;
    font-weight: 850;
    padding: 9px 11px;
    transition: background .18s ease, color .18s ease;
}

.public-nav a.active {
    background: #f3f0ff;
    box-shadow: none;
    color: var(--primary);
}

.public-nav-cta {
    background: transparent;
    box-shadow: none;
    color: #596075;
    min-height: auto;
}

.public-nav-cta.active {
    background: #f3f0ff;
    color: var(--primary);
}

.public-nav a:hover,
.public-link-button:hover {
    background: #f8f6ff;
    color: var(--primary);
}

.public-resend-button {
    margin-top: 16px;
    width: auto;
}

.public-shell {
    margin: 0 auto;
    max-width: 1150px;
    padding: 54px 24px 72px;
}

.public-hero {
    align-items: center;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    margin-bottom: 52px;
}

.public-copy h1 {
    font-size: 46px;
    max-width: 760px;
}

.public-copy .muted {
    font-size: 18px;
    line-height: 1.65;
    max-width: 760px;
}

.public-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.public-hero-panel,
.public-checkout-gate {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
    padding: 28px;
}

.public-hero-panel {
    display: grid;
    gap: 14px;
}

.public-section {
    margin-bottom: 12px;
}

.public-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-auth {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, .85fr) minmax(380px, 1.15fr);
}

.public-form-card {
    align-self: start;
}

.public-detail-head {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
    margin-bottom: 22px;
    padding: 30px;
}

.public-checkout-gate {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 900px) {
    .public-header {
        padding: 18px 22px;
    }

    .public-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        min-height: auto;
    }

    .public-nav {
        flex-wrap: wrap;
    }

    .public-hero,
    .public-auth {
        grid-template-columns: 1fr;
    }

    .public-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .variant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-checkout-gate {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .public-shell {
        padding: 34px 16px 52px;
    }

    .public-copy h1 {
        font-size: 32px;
    }

    .public-product-grid {
        grid-template-columns: 1fr;
    }

    .variant-grid {
        grid-template-columns: 1fr;
    }
}
