:root {
  color-scheme: light;
  --bg: #f6f3ef;
  --surface: #ffffff;
  --surface-soft: #fbf9f6;
  --ink: #1d2228;
  --muted: #737b86;
  --faint: #9aa1aa;
  --line: #e8e2dc;
  --accent: #ff8b4a;
  --accent-deep: #b85829;
  --accent-soft: #fff0e7;
  --success: #16845f;
  --success-soft: #edf8f2;
  --danger: #d65a64;
  --danger-soft: #fff0f2;
  --shadow: 0 18px 48px -26px rgba(39, 27, 20, 0.28);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 181, 136, 0.26), transparent 34rem),
    radial-gradient(circle at 8% 92%, rgba(239, 201, 177, 0.18), transparent 30rem),
    var(--bg);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(880px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(225, 217, 209, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 40px; height: 40px; display: block;
  border-radius: 12px; object-fit: cover;
  box-shadow: 0 7px 18px -10px rgba(24, 28, 34, .65);
}
.brand-title { font-size: 17px; font-weight: 700; line-height: 1.2; }
.brand-sub { margin-top: 3px; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.link-button, .button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  color: #37404b;
  text-decoration: none;
  font-weight: 650;
  transition: .18s ease;
}
.link-button:hover, .button:hover { border-color: #efbaa0; background: #fff8f3; }
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(255, 111, 35, .8);
}
.button.primary:hover { border-color: #f57a32; background: #f57a32; }
.button.danger { border-color: #efc9cd; background: var(--danger-soft); color: var(--danger); }
.button.soft { border-color: #f0d4c2; background: var(--accent-soft); color: var(--accent-deep); }
.button.small { min-height: 31px; padding: 0 11px; border-radius: 9px; font-size: 12px; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.icon { width: 16px; height: 16px; display: inline-block; }

main { padding: 34px 0 58px; }
.hero-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 26px; }
.eyebrow { color: var(--accent-deep); font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 43px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin-bottom: 4px; font-size: 20px; letter-spacing: -.02em; }
h3 { margin-bottom: 4px; font-size: 15px; }
.lead { max-width: 720px; margin-bottom: 0; color: var(--muted); line-height: 1.75; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.mono { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card, .panel, .card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.stat-card { padding: 18px 19px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { margin-top: 9px; font-size: 27px; font-weight: 750; letter-spacing: -.04em; }
.stat-note { margin-top: 5px; color: var(--faint); font-size: 11px; }
.panel { padding: 22px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.share-box {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 1px solid #ecd9cb; border-radius: 13px;
  background: #fff9f5;
}
.share-box code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #66554a; }
.payment-mode { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.payment-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #59636f; font-size: 12px; font-weight: 650; }
.field input, .field textarea {
  width: 100%; min-height: 43px;
  border: 1px solid #e2dbd4; border-radius: 11px;
  background: #fbfaf8; color: var(--ink);
  padding: 10px 12px; outline: none; transition: .18s ease;
}
.field input:focus, .field textarea:focus { border-color: #f0a77c; background: #fff; box-shadow: 0 0 0 3px rgba(255,139,74,.10); }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.65; }
.field .hint { color: var(--faint); font-size: 11px; line-height: 1.55; }
.form-actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 9px; }
.form-actions.center { justify-content: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-12 { margin-top: 12px !important; }
.order-foot { margin-top: 18px; text-align: center; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.checkbox-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }

.alert { margin-bottom: 16px; padding: 11px 13px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.alert.success { border: 1px solid #cce8dc; background: var(--success-soft); color: #12684c; }
.alert.error { border: 1px solid #efc9cd; background: var(--danger-soft); color: #a73e47; }
.alert.info { border: 1px solid #ead8ca; background: #fff8f2; color: #76513b; }

.created-license { border-color: #f0cfba; background: linear-gradient(135deg, #fffaf6, #fff4ec); }
.license-code-box {
  display: flex; align-items: center; gap: 10px;
  padding: 11px; border: 1px solid #ead8ca; border-radius: 11px; background: rgba(255,255,255,.76);
}
.license-code-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #4c3d33; font-size: 11px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 12px; text-align: left; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; border-top: 1px solid #eee9e4; vertical-align: middle; }
tr:hover td { background: #fffaf6; }
.table-primary { font-weight: 650; }
.table-sub { margin-top: 3px; color: var(--faint); font-size: 11px; }
.status { display: inline-flex; align-items: center; min-height: 24px; border-radius: 99px; padding: 0 9px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.status.pending { background: #fff3e9; color: #a85a2a; }
.status.success { background: var(--success-soft); color: var(--success); }
.status.muted { background: #f1f1f0; color: #7b8188; }
.row-actions { display: flex; align-items: center; gap: 6px; }
.empty { padding: 34px 20px; text-align: center; color: var(--faint); }
.details summary { cursor: pointer; color: var(--accent-deep); font-size: 12px; font-weight: 650; }
.details pre { max-width: 560px; white-space: pre-wrap; word-break: break-all; margin: 9px 0 0; padding: 10px; border-radius: 10px; background: #f8f6f3; color: #554b43; font-size: 10px; line-height: 1.55; }

.buy-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 22px; align-items: start; }
.product-card { overflow: hidden; border-radius: 24px; background: #20262c; color: #fff; box-shadow: 0 24px 60px -32px rgba(28, 24, 20, .6); }
.product-main { padding: 34px; }
.product-card h1 { max-width: 520px; }
.product-card .lead { color: #b8c0ca; }
.price { margin: 28px 0 8px; font-size: 52px; line-height: 1; font-weight: 780; letter-spacing: -.06em; }
.price-note { color: #aeb6c2; font-size: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 28px; }
.feature { padding: 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.055); color: #e9edf2; font-size: 12px; }
.feature::before { content: "✓"; margin-right: 8px; color: #ffad7e; font-weight: 800; }
.product-foot { padding: 18px 34px; border-top: 1px solid rgba(255,255,255,.10); color: #98a1ac; font-size: 11px; }
.buy-form { padding: 25px; }
.buy-form h2 { font-size: 23px; }
.buy-form .lead { margin-bottom: 20px; font-size: 13px; }
.notice-card { margin-top: 15px; padding: 14px; border: 1px solid #ead8ca; border-radius: 13px; background: #fff9f5; color: #76513b; font-size: 12px; line-height: 1.65; }
.plan-options { display: grid; gap: 9px; margin-bottom: 16px; }
.plan-choice { position: relative; display: block; cursor: pointer; }
.plan-choice > input { position: absolute; opacity: 0; pointer-events: none; }
.plan-choice-body { display: block; padding: 13px 14px; border: 1px solid #e3ddd7; border-radius: 12px; background: #fbfaf8; transition: .18s ease; }
.plan-choice > input:checked + .plan-choice-body { border-color: #ff9a5d; background: #fff6f0; box-shadow: 0 0 0 3px rgba(255,139,74,.09); }
.plan-choice-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-choice-top strong { font-size: 13px; }
.plan-choice-top b { color: #b85829; font-size: 16px; }
.plan-choice-desc { display: block; margin-top: 5px; color: #858d97; font-size: 11px; }
.plan-choice-validity { display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 6px; background: #fff0e7; color: #a9582e; font-size: 10px; font-weight: 650; }

.order-card { padding: 26px; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.order-id { margin-top: 7px; color: var(--faint); font-size: 12px; }
.order-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 22px 0; }
.order-item .label { color: var(--faint); font-size: 11px; }
.order-item .value { margin-top: 5px; font-weight: 650; word-break: break-word; }
.order-actions { display: flex; justify-content: flex-end; gap: 9px; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; }
.login-card { width: min(430px, 100%); padding: 28px; }
.login-card .brand { margin-bottom: 28px; }
.login-card h1 { font-size: 28px; }
.login-card form { margin-top: 22px; display: grid; gap: 15px; }
.login-card .button { width: 100%; margin-top: 4px; }
.login-foot { margin-top: 20px; text-align: center; color: var(--faint); font-size: 11px; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; }
.error-card { max-width: 520px; padding: 34px; text-align: center; }
.error-code { color: var(--accent); font-size: 58px; font-weight: 800; letter-spacing: -.06em; }
.error-card h1 { font-size: 26px; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; padding: 11px 15px; border-radius: 12px; background: #20262c; color: #fff; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); font-size: 12px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .buy-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shell, .narrow { width: min(100% - 24px, 1240px); }
  main { padding-top: 24px; }
  .topbar-inner { min-height: 62px; }
  .brand-sub { display: none; }
  .hero-head { flex-direction: column; }
  .stats-grid, .form-grid, .form-grid.three, .order-grid { grid-template-columns: 1fr; }
  .panel, .order-card, .buy-form { padding: 18px; border-radius: 16px; }
  .product-main { padding: 26px 22px; }
  .product-foot { padding: 16px 22px; }
  .price { font-size: 44px; }
  .share-box { flex-wrap: wrap; }
  .share-box code { flex-basis: 100%; }
}

/* Professional admin console */
.admin-body { min-height: 100vh; background: #f5f6f7; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px 14px; border-right: 1px solid #e6e8eb; background: #fff; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 22px; text-decoration: none; }
.admin-brand-logo { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.admin-brand-copy { min-width: 0; display: flex; flex-direction: column; }
.admin-brand-copy strong { font-size: 15px; letter-spacing: -.02em; white-space: nowrap; }
.admin-brand-copy small { margin-top: 3px; color: #9aa1aa; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav-section { padding: 16px 10px 7px; color: #a1a7af; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.admin-nav-item { position: relative; min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border-radius: 10px; color: #606976; text-decoration: none; font-size: 14px; font-weight: 600; transition: .16s ease; }
.admin-nav-item:hover { background: #f7f7f7; color: #22282f; }
.admin-nav-item.active { background: #fff1e8; color: #b65324; }
.admin-nav-item.active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 20px; border-radius: 0 4px 4px 0; background: #ff8b4a; }
.admin-nav-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.admin-nav-item:first-of-type .admin-nav-icon { fill: currentColor; stroke: none; }
.admin-nav-badge { min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; background: #ff8b4a; color: #fff; font-size: 10px; font-style: normal; }
.admin-sidebar-footer { margin-top: auto; display: grid; gap: 10px; }
.admin-store-link { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid #ebe7e2; border-radius: 11px; background: #fcfbf9; text-decoration: none; }
.admin-store-link > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.admin-store-link strong { font-size: 12px; }
.admin-store-link small { margin-top: 2px; color: #9aa1aa; font-size: 10px; }
.admin-store-dot { width: 7px; height: 7px; border-radius: 99px; background: #25a977; box-shadow: 0 0 0 3px #e9f7f1; }
.admin-external { margin-left: auto; color: #9aa1aa; }
.admin-user-card { display: flex; align-items: center; gap: 9px; padding: 10px; border-top: 1px solid #efedea; }
.admin-avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #20262c; color: #fff; font-size: 12px; font-weight: 700; }
.admin-user-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.admin-user-info strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.admin-user-info small { margin-top: 2px; color: #9aa1aa; font-size: 10px; }
.admin-logout { border: 0; background: transparent; color: #9aa1aa; font-size: 11px; }
.admin-logout:hover { color: var(--danger); }
.admin-workspace { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 15; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-bottom: 1px solid #e8eaed; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.admin-breadcrumb { display: flex; align-items: center; gap: 9px; color: #939aa3; font-size: 12px; }
.admin-breadcrumb i { color: #c4c8cd; font-style: normal; }
.admin-breadcrumb strong { color: #4f5863; font-weight: 600; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; }
.mobile-logout { display: none; margin: 0; }
.service-chip { height: 29px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; background: #f6f7f8; color: #747d88; font-size: 11px; font-weight: 600; }
.service-chip > span { width: 6px; height: 6px; border-radius: 99px; background: #25a977; }
.service-chip.payment { background: #fff6ef; color: #a45b31; }
.admin-content { max-width: 1440px; margin: 0 auto; padding: 28px 30px 50px; }
.page-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-kicker { margin-bottom: 7px; color: #a45b31; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.page-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.page-heading p { margin: 7px 0 0; color: #7b838d; font-size: 14px; }
.page-heading-actions { display: flex; gap: 8px; align-items: center; }
.admin-notice { margin-bottom: 16px; padding: 11px 14px; border: 1px solid #ead9cb; border-radius: 10px; display: flex; align-items: center; gap: 9px; background: #fff9f4; color: #7c5b46; font-size: 13px; }
.admin-notice strong { font-size: 13px; }
.admin-notice span { color: #917a69; }
.admin-notice.danger-note { border-color: #efc9cd; background: #fff5f6; color: #a74b53; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.kpi-card { min-height: 113px; display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid #e8eaed; border-radius: 14px; background: #fff; }
.kpi-card.featured { border-color: #efd6c7; background: linear-gradient(135deg,#fffaf6,#fff4ec); }
.kpi-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: #f6f7f8; color: #727b86; font-size: 12px; font-weight: 750; }
.kpi-card.featured .kpi-icon { background: #ff8b4a; color: #fff; }
.kpi-card > div:last-child { display: flex; flex-direction: column; }
.kpi-card span { color: #8b939d; font-size: 12.5px; }
.kpi-card strong { margin-top: 6px; font-size: 28px; line-height: 1.05; letter-spacing: -.04em; }
.kpi-card small { margin-top: 8px; color: #a0a7af; font-size: 11.5px; }
.admin-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 292px; gap: 16px; align-items: start; }
.admin-side-stack { display: grid; gap: 13px; }
.data-card { border: 1px solid #e6e9ec; border-radius: 14px; background: #fff; overflow: hidden; }
.data-card-header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #eff1f3; }
.data-card-header h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.data-card-header p { margin: 4px 0 0; color: #969da6; font-size: 12px; }
.text-link { color: #a9582e; text-decoration: none; font-size: 12.5px; font-weight: 650; }
.text-link:hover { text-decoration: underline; }
.admin-table { min-width: 920px; font-size: 13px; }
.admin-table th { padding: 11px 16px; background: #fafbfb; color: #969da5; font-size: 11px; letter-spacing: .05em; }
.admin-table td { padding: 14px 16px; border-top: 1px solid #f0f2f3; }
.admin-table th, .admin-table td { white-space: nowrap; }
.admin-table tr:hover td { background: #fffbf8; }
.table-link { color: #37414c; text-decoration: none; }
.table-link:hover { color: #b65324; text-decoration: underline; }
.table-primary { font-size: 13px; font-weight: 650; }
.table-sub { margin-top: 4px; color: #a0a7af; font-size: 11px; }
.status { min-height: 24px; padding: 0 9px; font-size: 10.5px; }
.mini-stats { margin-bottom: 14px; padding: 11px 15px; border: 1px solid #e8eaed; border-radius: 11px; background: #fff; display: flex; gap: 25px; color: #858d97; font-size: 12px; }
.mini-stats b { margin-right: 4px; color: #303943; font-size: 14px; }
.filter-bar { display: flex; align-items: center; gap: 7px; }
.filter-search { width: 240px; height: 35px; border: 1px solid #e1e4e7; border-radius: 8px; padding: 0 11px; background: #fff; color: #303943; font-size: 12px; outline: none; }
.filter-search:focus { border-color: #e5a881; box-shadow: 0 0 0 3px rgba(255,139,74,.09); }
.filter-select { height: 35px; border: 1px solid #e1e4e7; border-radius: 8px; padding: 0 9px; background: #fff; color: #545d67; font-size: 12px; }
.filter-bar .button { min-height: 35px; font-size: 11px; }
.empty-state { padding: 38px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #a0a7af; font-size: 12px; }
.empty-state strong { color: #5f6872; font-size: 14px; }
.quick-card { padding: 16px; border: 1px solid #e5e8eb; border-radius: 13px; background: #fff; }
.quick-card.purchase-card { border-color: #efd8ca; background: linear-gradient(145deg,#fffaf6,#fff5ee); }
.quick-card-head { display: flex; align-items: center; gap: 8px; color: #626b75; font-size: 12px; font-weight: 650; }
.quick-icon { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; background: #fff0e7; color: #b65324; font-size: 11px; }
.quick-card > strong { display: block; margin: 16px 0 3px; font-size: 27px; letter-spacing: -.04em; }
.quick-card > p { margin: 7px 0 13px; color: #8b939d; font-size: 12px; line-height: 1.55; }
.compact-link { display: flex; align-items: center; gap: 6px; padding: 7px; border: 1px solid #ead8ca; border-radius: 8px; background: rgba(255,255,255,.7); }
.compact-link code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #80695a; font-size: 10.5px; }
.quick-action { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #f0f1f2; color: #59636e; text-decoration: none; font-size: 12px; }
.quick-action:hover { color: #b65324; }
.quick-action b { font-size: 13px; font-weight: 500; color: #adb3ba; }
.issued-banner { margin-bottom: 14px; padding: 18px; border: 1px solid #efd6c7; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg,#fffaf6,#fff4ec); }
.issued-label { color: #b65324; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.issued-banner h2 { margin: 5px 0; font-size: 18px; }
.issued-banner p { margin: 0; color: #8b7a6e; font-size: 12px; }
.issued-code { max-width: 640px; flex: 1; display: flex; align-items: center; gap: 8px; }
.issued-code code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px; border-radius: 8px; background: rgba(255,255,255,.75); color: #796555; font-size: 10.5px; }
.form-card .data-card-header { padding: 20px; }
.admin-form { padding: 20px; }
.admin-form .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.admin-form .field.full { grid-column: 1 / -1; }
.admin-form .field label { font-size: 12px; }
.admin-form .field input { min-height: 41px; border-radius: 9px; font-size: 13px; }
.form-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eff1f3; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #9aa1aa; font-size: 11px; }
.info-list { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.info-list li { position: relative; padding-left: 13px; color: #7e8791; font-size: 12px; line-height: 1.55; }
.info-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 4px; height: 4px; border-radius: 99px; background: #e5a881; }
.issue-grid { grid-template-columns: minmax(0,1fr) 270px; }
.settings-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.plan-admin-list { display: grid; gap: 14px; margin-bottom: 16px; }
.plan-admin-card { padding: 0; }
.plan-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #eff1f3; }
.plan-admin-head h2 { margin: 0; font-size: 15px; }
.plan-admin-head p { margin: 4px 0 0; color: #9aa1aa; font-size: 10px; }
.plan-edit-form { padding: 16px 18px 8px; }
.plan-edit-form .form-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.plan-edit-form .field.full { grid-column: 1 / -1; }
.plan-edit-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.plan-card-footer { padding: 10px 18px 14px; display: flex; justify-content: flex-end; gap: 7px; border-top: 1px solid #f5f2ef; }
.plan-create-card { margin-top: 16px; }
.settings-card .data-card-header { padding: 18px; }
.settings-card-wide { grid-column: 1 / -1; }
.payment-settings-form { padding-bottom: 8px; }
.manual-qr-settings { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 24px; padding: 4px 20px 22px; border-top: 1px solid #eff1f3; margin-top: 6px; }
.manual-qr-preview { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 1px dashed #e4d8cf; border-radius: 14px; background: #fffaf6; color: #9aa1aa; font-size: 11px; text-align: center; }
.manual-qr-preview img { width: 156px; height: 156px; object-fit: contain; border-radius: 10px; background: #fff; }
.manual-qr-empty { width: 156px; height: 156px; display: grid; place-items: center; border-radius: 10px; background: #f8f4f0; color: #a6a0a0; }
.manual-qr-actions { min-width: 0; padding-top: 2px; }
.manual-qr-actions h3 { margin: 0; font-size: 15px; }
.manual-qr-actions p { margin: 6px 0 14px; color: #8c939b; font-size: 12px; line-height: 1.65; }
.manual-qr-actions > form + form { margin-top: 8px; }
.manual-pay-panel { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0; padding: 20px; border: 1px solid #ead8ca; border-radius: 16px; background: #fffaf6; }
.manual-pay-panel img { width: 220px; max-width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }
.manual-pay-panel span { color: #76513b; font-size: 12px; text-align: center; }
.setting-list { padding: 2px 18px 12px; }
.setting-row { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #f1f2f3; }
.setting-row:last-child { border-bottom: 0; }
.setting-row > span { display: flex; flex-direction: column; }
.setting-row strong { font-size: 13px; }
.setting-row small { margin-top: 3px; color: #9aa1aa; font-size: 11px; }
.setting-row > b, .setting-row > code, .setting-row > a { max-width: 48%; text-align: right; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.setting-row > code { color: #6d7781; white-space: nowrap; }
.text-success { color: var(--success) !important; }
.row-actions .details summary { font-size: 10.5px; }
.row-actions { flex-wrap: nowrap; }
.row-actions form { display: flex; margin: 0; }
.row-actions .button { white-space: nowrap; }

@media (max-width: 1060px) {
  .admin-layout { grid-template-columns: 78px minmax(0,1fr); }
  .admin-sidebar { padding-left: 9px; padding-right: 9px; }
  .admin-brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .admin-brand-copy, .admin-nav-section, .admin-nav-item > span, .admin-nav-badge, .admin-store-link > span:nth-child(2), .admin-external, .admin-user-info, .admin-logout { display: none; }
  .admin-nav-item { justify-content: center; padding: 0; }
  .admin-nav-item.active::before { left: -9px; }
  .admin-store-link { justify-content: center; padding: 10px 0; }
  .admin-user-card { justify-content: center; padding-left: 0; padding-right: 0; }
  .admin-content-grid { grid-template-columns: minmax(0,1fr) 260px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .admin-layout { display: block; }
  .admin-sidebar { position: static; width: 100%; height: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid #e6e8eb; }
  .admin-brand { display: none; }
  .admin-nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .admin-nav-item { min-width: max-content; min-height: 38px; padding: 0 11px; }
  .admin-nav-item > span, .admin-nav-badge { display: inline-flex; }
  .admin-nav-item.active::before { left: 50%; top: auto; bottom: -10px; width: 18px; height: 2px; transform: translateX(-50%); border-radius: 3px; }
  .admin-sidebar-footer { display: none; }
  .admin-topbar { position: static; padding: 0 16px; }
  .admin-breadcrumb span, .admin-breadcrumb i, .service-chip { display: none; }
  .mobile-logout { display: block; }
  .admin-content { padding: 20px 14px 36px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .kpi-grid, .admin-content-grid, .settings-layout, .issued-banner { grid-template-columns: 1fr; }
  .settings-card-wide { grid-column: auto; }
  .manual-qr-settings { grid-template-columns: 1fr; }
  .issued-banner { flex-direction: column; align-items: stretch; }
  .data-card-header { align-items: flex-start; flex-direction: column; }
  .filter-bar { width: 100%; flex-wrap: wrap; }
  .filter-search { width: 100%; }
  .mini-stats { flex-wrap: wrap; gap: 10px 18px; }
  .admin-form .form-grid { grid-template-columns: 1fr; }
  .form-footer { align-items: flex-start; flex-direction: column; }
}
