@font-face {
  font-family: "AC Interface";
  src: local("Segoe UI");
  unicode-range: U+0000-0DFF, U+0E80-10FFFF;
}
@font-face {
  font-family: "AC Interface";
  src: local("Leelawadee UI");
  unicode-range: U+0E00-0E7F;
}

:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --surface-3: #2c2c2c;
  --border: rgba(255,255,255,.12);
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --accent: #1473e6;
  --accent-deep: #0d66d0;
  --green: #31c979;
  --yellow: #f3b84b;
  --red: #f05b62;
  --shadow: 0 18px 55px rgba(0,0,0,.34);
  --radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bg); overflow-x: hidden; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(20,115,230,.10), transparent 30rem),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,.035), transparent 34rem),
    var(--bg);
  font-family: "AC Interface", "Segoe UI", "Leelawadee UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

/* Login */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.login-shell::before, .login-shell::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.login-shell::before { left: -210px; top: -210px; background: rgba(20,115,230,.12); }
.login-shell::after { right: -240px; bottom: -250px; background: rgba(255,255,255,.035); }
.login-artboard {
  width: min(100%, 500px);
  min-height: 610px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(31,31,31,.99), rgba(22,22,22,.99));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.login-artboard::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(20,115,230,.13), transparent 66%);
  pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.login-brand img { width: 44px; height: 44px; object-fit: contain; }
.login-brand div { display: flex; flex-direction: column; line-height: 1.12; letter-spacing: .08em; }
.login-brand strong { font-size: 1.05rem; }
.login-brand span { color: var(--muted); font-size: .68rem; letter-spacing: .24em; margin-top: 5px; }
.login-copy { margin: auto 0; position: relative; z-index: 1; }
.eyebrow, .request-kicker { color: #5ea4ff; font-weight: 700; font-size: .72rem; letter-spacing: .14em; margin: 0 0 10px; }
.login-copy h1 { margin: 0; font-size: clamp(2.25rem, 7vw, 3.25rem); line-height: 1.22; letter-spacing: -.04em; }
.login-copy p { max-width: 390px; margin: 22px 0 0; color: var(--muted); font-size: .98rem; }
.login-primary, .art-enter {
  min-height: 56px;
  border: 0;
  border-radius: 15px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 24px rgba(20,115,230,.26);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  position: relative;
  z-index: 1;
}
.login-primary:hover, .art-enter:hover, .request-submit:hover, .payment-order-link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.login-primary span, .art-enter span { font-size: 1.35rem; font-weight: 400; }
.login-help, .login-privacy { color: #8f8f8f; font-size: .76rem; text-align: center; margin: 14px 0 0; position: relative; z-index: 1; }
.login-key-screen { justify-content: flex-start; }
.login-back {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  color: var(--text); background: rgba(255,255,255,.04); font-size: 1.2rem;
}
.login-back:hover { background: rgba(255,255,255,.09); }
.login-step { position: absolute; top: 52px; right: 44px; color: var(--muted); font-size: .75rem; }
.login-form-heading { text-align: center; margin: 42px 0 24px; }
.login-icon {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  color: #7db6ff; background: rgba(20,115,230,.13); border: 1px solid rgba(20,115,230,.28); font-size: 1.25rem; font-weight: 700;
}
.login-form-heading h1 { font-size: 1.8rem; margin: 16px 0 4px; }
.login-form-heading p { margin: 0; color: var(--muted); font-size: .87rem; }
.login-field-label { color: #d6d6d6; font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.art-license-input {
  width: 100%; height: 54px; border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); background: rgba(6,3,12,.48); outline: none; padding: 0 16px;
  transition: border .18s, box-shadow .18s;
}
.art-license-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20,115,230,.17); }
.art-license-input::placeholder { color: #707070; }
.otp-input { text-align: center; font-size: 1.45rem; letter-spacing: .35em; font-weight: 700; padding-left: calc(16px + .35em); }
.license-placeholder { display: none; }
.art-enter { width: 100%; margin-top: 16px; }
.notice {
  display: none; width: min(100% - 32px, 1080px); margin: 12px auto; padding: 11px 14px;
  border: 1px solid rgba(255,200,92,.24); border-radius: 12px; background: rgba(255,200,92,.08); color: #ffe1a4; font-size: .84rem;
}
.login-key-screen .notice { width: 100%; margin: -4px 0 14px; text-align: center; }

/* Main navigation */
.member-portal { min-height: 100vh; padding-left: 224px; }
.topbar {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: 224px; padding: 22px 14px 18px;
  display: flex; flex-direction: column; align-items: stretch; gap: 22px; border-right: 1px solid var(--border);
  background: rgba(25,25,25,.96); backdrop-filter: blur(24px);
}
.brand { min-width: 0; min-height: 48px; padding: 0 10px; display: flex; align-items: center; gap: 11px; }
.member-logo-img { width: 34px; height: 34px; object-fit: contain; }
.member-logo-text { font-weight: 700; letter-spacing: .035em; white-space: nowrap; }
.member-logo-text small { color: var(--muted); font-size: .58rem; margin-left: 4px; letter-spacing: .16em; }
.nav { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 5px; }
.nav button, .member-logout {
  min-height: 44px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; padding: 0 12px; font-weight: 600; font-size: .82rem; text-align: left; white-space: nowrap;
}
.nav button { position: relative; display: flex; align-items: center; }
.nav button::after { display: none; }
.nav button:hover { color: var(--text); background: rgba(255,255,255,.055); }
.nav button.active { color: #fff; background: #303030; box-shadow: inset 3px 0 0 var(--accent); }
.nav-icon { width: 27px; display: inline-grid; place-items: center; margin-right: 7px; color: #b8b8b8; font-size: .82rem; }
.nav button.active .nav-icon { color: #72adf7; }
.member-logout { margin-top: auto; padding: 0 12px; border: 1px solid var(--border); text-align: center; }
.member-logout:hover { color: #fff; background: rgba(255,255,255,.06); }
.notification-badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: auto; border-radius: 10px; color: #171717; background: var(--yellow); font-size: .65rem; }
.cart-nav-count { margin-left: 2px; color: #8fc2ff; font-size: .72rem; font-weight: 800; }
.member-portal > .notice { width: min(1180px, calc(100% - 48px)); margin: 18px auto 0; }
.view { display: none; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 70px; }
.view.active { display: block; }

/* Dashboard */
.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 26px; }
.dashboard-heading h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.035em; }
.dashboard-heading p { margin: 4px 0 0; color: var(--muted); }
.member-account-summary { width: min(100%, 360px); padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #1d1d1d; }
.member-account-summary label { display: block; color: var(--muted); font-size: .68rem; margin-bottom: 5px; }
.member-account-summary select { width: 100%; border: 0; outline: none; color: var(--text); background: transparent; font-weight: 600; }
.member-account-summary select option { color: #202020; }
.member-account-summary span { display: block; margin-top: 3px; color: #8f8f8f; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; }
.member-dashboard-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 20px; }
.status-block, .member-dashboard-bottom, .request-card, .request-history, .notification-shell, .payment-order-panel, .member-update-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, #242424, #1c1c1c); box-shadow: 0 15px 45px rgba(0,0,0,.18);
}
.status-block, .member-dashboard-bottom { min-height: 330px; padding: 28px; }
.status-heading, .quick-heading { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.status-heading small, .quick-heading small { color: var(--muted); font-size: .68rem; font-weight: 400; }
.status-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 54px; }
.status-pill { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--border); border-radius: 17px; background: rgba(255,255,255,.025); }
.status-pill > span:last-child { display: flex; flex-direction: column; }
.status-pill small { color: var(--muted); font-size: .7rem; }
.status-pill strong { margin-top: 1px; font-size: .95rem; }
.status-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(240,91,98,.12); }
.status-dot.is-online, .status-dot.is-active { background: var(--green); box-shadow: 0 0 0 4px rgba(49,201,121,.12); }
.status-expire { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: rgba(20,115,230,.10); }
.status-expire-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid rgba(128,184,255,.15); }
.status-expire-heading small { color: #b9cce4; font-size: .72rem; font-weight: 700; }
.status-expire-heading span { color: var(--muted); font-size: .66rem; }
.status-expire-list { display: grid; gap: 0; }
.status-expire-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(128,184,255,.11); }
.status-expire-row:last-child { padding-bottom: 2px; border-bottom: 0; }
.status-expire-product { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.status-expire-product strong { overflow: hidden; color: #f4f7fb; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.status-expire-product small { color: var(--muted); font-size: .62rem; }
.status-expire-date { color: #80b8ff; font-size: .74rem; text-align: right; white-space: nowrap; }
.status-expire-date.is-perpetual { color: #62d9a2; }
.status-expire-date.is-expired, .status-expire-date.is-suspended { color: #ff8d93; }
.status-expire-empty { padding-top: 12px; color: var(--muted); font-size: .72rem; text-align: center; }
.member-actions { display: grid; gap: 10px; margin-top: 22px; }
.member-action { min-height: 72px; display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 13px; padding: 12px 14px; text-align: left; color: var(--text); border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.025); transition: border .18s, background .18s, transform .18s; }
.member-action:hover { transform: translateX(3px); border-color: rgba(20,115,230,.48); background: rgba(20,115,230,.08); }
.action-icon { width: 43px; height: 43px; display: grid; place-items: center; color: #7db6ff; border-radius: 10px; background: rgba(20,115,230,.14); font-size: 1.15rem; }
.member-action > span:nth-child(2) { display: flex; flex-direction: column; }
.member-action small { color: var(--muted); font-size: .69rem; margin-top: 1px; }
.member-action b { color: #777; font-size: 1.1rem; }
.member-data-cache { display: none; }
.member-update-card { margin-top: 20px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-color: rgba(255,200,92,.2); }
.member-update-card p { color: var(--muted); margin: 5px 0; }

/* Shared pages and forms */
.request-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); gap: 22px; align-items: start; }
.request-card, .request-history { padding: 30px; }
.request-card h1, .notification-heading h1 { margin: 0 0 8px; font-size: 2rem; }
.request-lead { color: var(--muted); margin: 0 0 24px; }
.request-card label { display: block; color: #d0d0d0; font-size: .78rem; font-weight: 600; margin: 14px 0 7px; }
.request-card input, .request-card select, .request-card textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; outline: none; color: var(--text); background: #151515; padding: 12px 14px;
}
.request-card select option { color: #202020; }
.request-card textarea { resize: vertical; }
.request-card input:focus, .request-card select:focus, .request-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,115,230,.17); }
.request-submit, .payment-order-link { border: 0; border-radius: 12px; padding: 12px 18px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); font-weight: 700; text-decoration: none; transition: transform .18s, filter .18s; }
.request-card .request-submit { width: 100%; margin-top: 20px; }
.request-history h2 { margin: 0 0 18px; font-size: 1.18rem; }
.history-list, .notification-list { display: grid; gap: 10px; }
.history-item, .notification-item { padding: 17px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025); }
.history-item p, .notification-item p { color: var(--muted); margin: 6px 0 0; font-size: .82rem; }
.history-meta, .notification-meta { color: #858585; font-size: .7rem; }
.status-badge { display: inline-block; padding: 4px 9px; border-radius: 20px; color: #83baff; background: rgba(20,115,230,.14); font-size: .68rem; font-weight: 700; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 14px; }
.notification-shell { padding: 30px; }
.notification-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.notification-read-all { flex: 0 0 auto; }
.notification-item.unread { border-color: rgba(20,115,230,.38); background: rgba(20,115,230,.07); }
.notification-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); }

/* Renewal */
.renew-page { width: min(100%, 1120px); margin: 0 auto; display: grid; gap: 18px; }
.store-page { width: min(100%, 1120px); margin: 0 auto; display: grid; gap: 22px; }
.store-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 30px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(135deg, rgba(20,115,230,.12), rgba(255,255,255,.025) 55%); }
.store-heading h1 { margin: 7px 0 8px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; }
.store-heading p { margin: 0; max-width: 680px; color: var(--muted); }
.store-owned-summary { min-width: 128px; padding: 17px 20px; text-align: center; border: 1px solid var(--border); border-radius: 17px; background: rgba(0,0,0,.22); }
.store-owned-summary small { display: block; color: var(--muted); }
.store-owned-summary strong { display: block; margin-top: 4px; font-size: 2rem; }
.owned-products-section { display: grid; gap: 16px; }
.store-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.store-section-heading h2 { margin: 3px 0 0; font-size: 1.45rem; }
.store-section-heading p { margin: 0; color: var(--muted); font-size: .78rem; text-align: right; }
.store-market-heading { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--border); }
.owned-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.owned-product-card { min-width: 0; padding: 22px; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 17px; border: 1px solid rgba(44,214,149,.5); border-radius: 20px; background: linear-gradient(145deg, rgba(20,115,230,.18), rgba(44,214,149,.08)); box-shadow: inset 4px 0 0 rgba(44,214,149,.9), 0 18px 45px rgba(0,0,0,.2); }
.owned-product-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; color: #dbeaff; background: linear-gradient(145deg, #247fe9, #0c58ad); box-shadow: 0 12px 28px rgba(20,115,230,.23); font-size: .88rem; font-weight: 900; letter-spacing: .05em; }
.owned-product-icon:is(img) { object-fit: cover; }
.product-visual-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.owned-product-content { min-width: 0; }
.owned-product-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.owned-product-title span { color: #79b5ff; font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.owned-product-title h3 { margin: 2px 0 0; font-size: 1.18rem; }
.owned-product-title b { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #ffb2b5; background: rgba(240,91,98,.12); font-size: .62rem; }
.owned-product-title b.is-active { color: #77efb9; background: rgba(49,201,121,.13); }
.owned-product-title b.is-update { color: #ffd67a; background: rgba(255,176,32,.16); border: 1px solid rgba(255,196,84,.28); }
.owned-product-content p { margin: 10px 0 3px; color: #c4c4c4; font-size: .76rem; }
.owned-product-content .owned-product-description { color: #f1f1f1; font-size: .82rem; line-height: 1.55; }
.owned-product-content small { display: block; min-height: 20px; overflow: hidden; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.owned-download-button { min-height: 42px; margin-top: 15px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-radius: 11px; color: #fff; background: #1473e6; text-decoration: none; font-size: .78rem; font-weight: 800; transition: transform .18s, background .18s; }
.owned-download-button:hover { transform: translateY(-1px); background: #2684ff; }
.owned-download-button.is-disabled { cursor: not-allowed; color: #858585; background: rgba(255,255,255,.055); }
.owned-card-actions { margin-top: 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.owned-card-actions .owned-download-button { margin-top: 0; }
.machine-add-control { min-width: 132px; display: grid; grid-template-columns: 34px 34px 34px; gap: 4px; }
.machine-add-control button, .machine-add-control span { min-height: 34px; display: grid; place-items: center; border: 1px solid var(--border); color: #fff; background: rgba(255,255,255,.05); font-size: .76rem; }
.machine-add-control button { cursor: pointer; }
.machine-add-control button:first-child { border-radius: 9px 0 0 9px; }
.machine-add-control button:last-child { border-radius: 0 9px 9px 0; color: #8fc2ff; background: rgba(20,115,230,.15); }
.machine-add-control button:hover { background: rgba(20,115,230,.25); }
.machine-add-control .add-machine-cart { grid-column: 1/-1; min-height: 32px; border-radius: 9px; color: #fff; background: #1473e6; font-weight: 800; }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.store-card { padding: 26px; border: 1px dashed rgba(255,255,255,.2); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); box-shadow: 0 20px 55px rgba(0,0,0,.18); opacity: .88; }
.store-product-image { width: 74px; height: 74px; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; object-fit: cover; background: #202020; }
.store-card-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.store-product-code { color: #6db2ff; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.store-owned-badge { padding: 5px 9px; border-radius: 999px; color: #b8c0cc; background: rgba(255,255,255,.07); font-size: .7rem; }
.store-card h2 { margin: 22px 0 7px; font-size: 1.55rem; }
.store-card p { min-height: 24px; margin: 0; color: var(--muted); }
.store-product-meta { display: block; margin-top: 8px; color: #b8b8b8; line-height: 1.45; }
.store-price { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 18px; }
.store-price strong { font-size: 2rem; }
.store-price span { color: var(--muted); font-size: .75rem; }
.store-buy-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: end; }
.store-buy-row label { color: var(--muted); font-size: .72rem; }
.store-quantity { width: 100%; margin-top: 5px; min-height: 45px; }
.store-buy-button { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 0; border-radius: 12px; color: #fff; background: #1473e6; font-weight: 800; }
.store-buy-button:hover { background: #2684ff; }
.store-empty { grid-column: 1/-1; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 18px; }
.store-cart-hint { padding: 16px 18px; color: var(--muted); text-align: center; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025); }
.store-cart-hint button { margin-left: 5px; padding: 6px 10px; border: 0; border-radius: 8px; color: #fff; background: #1473e6; cursor: pointer; font-weight: 700; }
.store-payment-panel { margin-top: 2px; }

/* Payment center and cart */
.payment-page { width: min(100%, 1120px); margin: 0 auto; display: grid; gap: 18px; }
.payment-page-heading { padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(135deg, rgba(20,115,230,.14), rgba(255,255,255,.025) 58%); }
.payment-page-heading h1 { margin: 7px 0 6px; font-size: clamp(2rem,4vw,3.15rem); letter-spacing: -.04em; }
.payment-page-heading p { margin: 0; color: var(--muted); }
.payment-mode-tabs { padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: 1px solid var(--border); border-radius: 14px; background: #171717; }
.payment-mode-tabs button { min-height: 46px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 750; }
.payment-mode-tabs button.active { color: #fff; background: #2b2b2b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.payment-mode-tabs span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 999px; color: #fff; background: #1473e6; font-size: .68rem; }
.payment-mode { display: none; }
.payment-mode.active { display: grid; gap: 18px; }
.cart-panel { padding: 26px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(145deg, #222, #191919); }
.cart-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.cart-panel-heading h2 { margin: 0 0 5px; }
.cart-panel-heading p { margin: 0; color: var(--muted); font-size: .79rem; }
.cart-clear { padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; color: #ff9ea2; background: transparent; cursor: pointer; }
.cart-items { margin-top: 20px; display: grid; gap: 10px; }
.cart-item { padding: 14px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto auto; gap: 13px; align-items: center; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025); }
.cart-item-image { width: 48px; height: 48px; border-radius: 11px; object-fit: cover; background: #252525; }
.cart-item-copy { min-width: 0; }
.cart-item-copy strong, .cart-item-copy small { display: block; }
.cart-item-copy small { margin-top: 3px; color: var(--muted); }
.cart-stepper { display: grid; grid-template-columns: 32px 36px 32px; }
.cart-stepper button, .cart-stepper span { min-height: 32px; display: grid; place-items: center; border: 1px solid var(--border); color: #fff; background: rgba(255,255,255,.04); }
.cart-stepper button { cursor: pointer; }
.cart-stepper button:first-child { border-radius: 8px 0 0 8px; }
.cart-stepper button:last-child { border-radius: 0 8px 8px 0; }
.cart-item-total { min-width: 92px; text-align: right; font-weight: 800; }
.cart-remove { border: 0; color: #ff969b; background: transparent; cursor: pointer; font-size: 1rem; }
.cart-summary { margin-top: 18px; padding-top: 18px; display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; border-top: 1px solid var(--border); }
.cart-summary span { color: var(--muted); }
.cart-summary strong { font-size: 1.45rem; }
.cart-summary button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 11px; color: #fff; background: #1473e6; cursor: pointer; font-weight: 800; }
.cart-summary button:disabled { cursor: not-allowed; opacity: .45; }
.renew-stage {
  position: relative; min-height: 570px; padding: clamp(30px, 5vw, 72px); display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr); align-items: center; gap: clamp(34px, 6vw, 86px);
  border: 1px solid rgba(255,255,255,.13); border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 78% 28%, rgba(20,115,230,.19), transparent 31%), linear-gradient(145deg, #202020, #151515 70%);
  box-shadow: 0 34px 90px rgba(0,0,0,.30);
}
.renew-stage::before { content: ""; position: absolute; width: 260px; height: 260px; left: -130px; bottom: -160px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.018), 0 0 0 86px rgba(255,255,255,.012); }
.renew-intro { position: relative; z-index: 1; }
.renew-eyebrow { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(128,184,255,.28); border-radius: 999px; color: #8fc2ff; background: rgba(20,115,230,.10); font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.renew-intro h1 { max-width: 560px; margin: 22px 0 18px; font-size: clamp(2.35rem, 5vw, 4.9rem); line-height: 1.02; letter-spacing: -.055em; }
.renew-intro > p { max-width: 550px; margin: 0; color: #b8b8b8; font-size: clamp(.9rem, 1.3vw, 1.03rem); }
.renew-trust-row { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 30px; color: #d5d5d5; font-size: .77rem; }
.renew-trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.renew-trust-row i { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; color: #081a12; background: #5ee8ae; font-style: normal; font-size: .65rem; font-weight: 900; }
.renew-offer { position: relative; z-index: 1; padding: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: 21px; background: linear-gradient(160deg, rgba(48,48,48,.96), rgba(25,25,25,.98)); box-shadow: 0 28px 55px rgba(0,0,0,.36); }
.renew-offer::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: linear-gradient(140deg, rgba(106,174,255,.45), transparent 35%, transparent 75%, rgba(90,234,177,.15)); opacity: .4; pointer-events: none; }
.renew-offer-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.renew-offer-badge { padding: 6px 10px; border-radius: 999px; color: #dcecff; background: rgba(20,115,230,.24); font-size: .7rem; font-weight: 700; }
.renew-offer-caption { color: #949494; font-size: .69rem; }
.renew-duration { display: flex; align-items: baseline; gap: 9px; margin-top: 26px; }
.renew-duration strong { font-size: clamp(3.8rem, 6vw, 5.8rem); line-height: .9; letter-spacing: -.06em; }
.renew-duration span { color: #f4f4f4; font-size: 1.22rem; font-weight: 700; }
.renew-offer-copy { min-height: 44px; margin: 18px 0 24px; color: #aaa; font-size: .79rem; }
.renew-price { display: flex; align-items: baseline; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.11); }
.renew-price strong { font-size: 1.65rem; letter-spacing: -.03em; }
.renew-price span { color: #8f8f8f; font-size: .72rem; }
.renew-total-row { display: flex; justify-content: space-between; gap: 16px; margin: 17px 0; padding: 13px 14px; border-radius: 11px; color: #bdbdbd; background: rgba(255,255,255,.045); font-size: .76rem; }
.renew-total-row strong { color: #fff; font-size: .9rem; }
.renew-plan-hit { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #1473e6, #0b5ec1); box-shadow: 0 11px 24px rgba(20,115,230,.24); font-weight: 750; cursor: pointer; transition: transform .18s, filter .18s, box-shadow .18s; }
.renew-plan-hit:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 15px 32px rgba(20,115,230,.32); }
.renew-plan-hit:focus-visible { outline: 3px solid rgba(128,184,255,.45); outline-offset: 3px; }
.renew-plan-hit:disabled { cursor: wait; opacity: .55; transform: none; pointer-events: none; }
.renew-offer small { display: block; margin-top: 11px; color: #858585; text-align: center; font-size: .66rem; }
.renewal-billing-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid rgba(20,115,230,.32); border-radius: 13px; background: rgba(20,115,230,.075); }
.renewal-billing-note strong { color: #88beff; }
.renewal-billing-note span { color: var(--muted); font-size: .8rem; text-align: right; }
.payment-order-panel { padding: 22px; display: flex; align-items: center; gap: 20px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.025); }
.payment-order-title { font-weight: 700; font-size: 1.05rem; }
.payment-order-detail { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.payment-qr-open { min-height: 46px; margin-left: auto; padding: 0 18px; border: 1px solid #338af2; border-radius: 12px; color: #fff; background: #1473e6; cursor: pointer; font: inherit; font-weight: 800; transition: transform .18s, filter .18s; }
.payment-qr-open:hover { transform: translateY(-2px); filter: brightness(1.08); }
.payment-qr-modal[hidden] { display: none; }
.payment-qr-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.payment-qr-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); backdrop-filter: blur(12px); }
.payment-qr-dialog { position: relative; z-index: 1; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: #181818; box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.payment-qr-heading { padding-right: 50px; }
.payment-qr-heading h2 { margin: 5px 0 6px; font-size: clamp(1.35rem, 4vw, 2rem); }
.payment-qr-heading p:last-child { margin: 0; color: var(--muted); }
.payment-qr-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: #292929; cursor: pointer; font-size: 1.8rem; line-height: 1; }
.payment-qr-full { display: block; width: min(440px, 100%); max-height: 64vh; object-fit: contain; margin: 24px auto; border-radius: 18px; background: #fff; }
.payment-qr-done { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 12px; color: #fff; background: #1473e6; cursor: pointer; font: inherit; font-weight: 800; }
body.payment-qr-opened { overflow: hidden; }
.payment-order-link { margin-left: auto; }
.slip-upload-form { width: min(420px, 100%); margin-left: auto; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.slip-upload-form[hidden] { display: none; }
.slip-upload-copy { grid-column: 1/-1; }
.slip-upload-copy strong, .slip-upload-copy small { display: block; }
.slip-upload-copy small { margin-top: 3px; color: var(--muted); }
.slip-file-label { min-height: 44px; padding: 10px 13px; display: grid; align-content: center; border: 1px dashed #4a79aa; border-radius: 11px; color: #9dccff; background: rgba(20,115,230,.08); cursor: pointer; font-weight: 750; }
.slip-file-label input { width: 100%; margin-top: 7px; color: var(--muted); font-size: .74rem; }
.slip-upload-form button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 11px; color: #fff; background: #1473e6; cursor: pointer; font-weight: 800; }
.slip-upload-form button:disabled { cursor: wait; opacity: .55; }
.slip-upload-status { grid-column: 1/-1; min-height: 1em; color: #ffbc54; }

@media (max-width: 980px) {
  .member-portal { padding-left: 82px; }
  .topbar { width: 82px; padding: 20px 10px 16px; }
  .brand { justify-content: center; padding: 0; }
  .member-logo-text { display: none; }
  .nav button { justify-content: center; padding: 0; font-size: 0; }
  .nav-icon { width: auto; margin: 0; font-size: 1rem; }
  .member-logout { padding: 0; font-size: 0; }
  .member-logout::before { content: "↪"; font-size: 1rem; }
  .member-dashboard-top, .request-shell { grid-template-columns: 1fr; }
  .status-block, .member-dashboard-bottom { min-height: auto; }
  .renew-stage { min-height: auto; grid-template-columns: 1fr; }
  .renew-intro { text-align: center; }
  .renew-intro > p { margin-inline: auto; }
  .renew-trust-row { justify-content: center; }
  .renew-offer { width: min(100%, 430px); justify-self: center; }
  .cart-item { grid-template-columns: 48px minmax(0,1fr) auto; }
  .cart-item-total { grid-column: 2; text-align: left; }
  .cart-remove { grid-column: 3; grid-row: 1; }
}

@media (max-width: 680px) {
  .store-heading { align-items: stretch; flex-direction: column; padding: 22px; }
  .store-grid, .owned-products-grid { grid-template-columns: 1fr; }
  .store-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .store-section-heading p { text-align: left; }
  .owned-product-card { grid-template-columns: 48px minmax(0,1fr); padding: 18px; }
  .owned-product-icon { width: 48px; height: 48px; }
  .owned-product-title { flex-direction: column; }
  .owned-card-actions { grid-template-columns: 1fr; }
  .machine-add-control { min-width: 0; width: 110px; }
  .login-shell { padding: 0; place-items: stretch; }
  .login-artboard { width: 100%; min-height: 100vh; border: 0; border-radius: 0; padding: 32px 24px; }
  .login-step { right: 24px; top: 42px; }
  .member-portal { padding-left: 0; }
  .topbar { position: sticky; inset: 0 0 auto; width: 100%; padding: 10px 14px 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { min-width: 0; min-height: 42px; flex: 1; justify-content: flex-start; }
  .member-logo-img { width: 30px; height: 30px; }
  .member-logo-text { display: inline; font-size: .84rem; }
  .member-logo-text small { display: none; }
  .member-logout { min-height: 36px; margin: 0; padding: 0 10px; font-size: .72rem; }
  .member-logout::before { display: none; }
  .nav { order: 3; flex: 0 0 calc(100% + 28px); min-width: 0; min-height: 48px; margin: 0 -14px; padding: 0 8px; flex-direction: row; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { min-height: 42px; flex: 0 0 auto; justify-content: center; padding: 0 12px; font-size: .76rem; }
  .nav button.active { box-shadow: inset 0 -3px 0 var(--accent); }
  .nav-icon { width: auto; margin-right: 5px; font-size: .82rem; }
  .view { width: min(100% - 28px, 1180px); padding-top: 28px; }
  .member-portal > .notice { width: calc(100% - 28px); }
  .dashboard-heading { align-items: stretch; flex-direction: column; gap: 18px; }
  .member-account-summary { width: 100%; }
  .status-block, .member-dashboard-bottom, .request-card, .request-history, .notification-shell { padding: 20px; border-radius: 18px; }
  .status-summary { grid-template-columns: 1fr; margin-top: 28px; }
  .status-expire-row { grid-template-columns: 1fr; gap: 5px; }
  .status-expire-date { text-align: left; white-space: normal; }
  .member-update-card, .notification-heading, .payment-order-panel { align-items: stretch; flex-direction: column; }
  .renewal-billing-note { align-items: flex-start; flex-direction: column; }
  .renewal-billing-note span { text-align: left; }
  .payment-qr-open, .payment-order-link { margin-left: 0; }
  .payment-mode-tabs { grid-template-columns: 1fr; }
  .payment-page-heading, .cart-panel { padding: 20px; }
  .cart-panel-heading { flex-direction: column; }
  .cart-item { grid-template-columns: 42px minmax(0,1fr); }
  .cart-item-image { width: 42px; height: 42px; }
  .cart-stepper, .cart-item-total, .cart-remove { grid-column: 2; }
  .cart-remove { grid-row: auto; justify-self: start; }
  .cart-summary { grid-template-columns: 1fr auto; }
  .cart-summary button { grid-column: 1/-1; }
  .renew-stage { min-height: 0; padding: 20px; }
  .store-buy-row { grid-template-columns: 1fr; }
  .store-buy-button { min-height: 48px; }
  .slip-upload-form { width: 100%; margin-left: 0; grid-template-columns: 1fr; }
  .slip-file-label, .slip-upload-form button { width: 100%; min-height: 48px; }
  .payment-qr-modal { padding: 14px; }
  .payment-qr-dialog { padding: 20px; border-radius: 18px; }
  .payment-qr-close { top: 12px; right: 12px; }
  .cart-stepper { grid-template-columns: 38px 42px 38px; }
  .cart-stepper button, .cart-stepper span { min-height: 38px; }
  .cart-summary { row-gap: 12px; }
}

@media (max-width: 380px) {
  .payment-page-heading, .cart-panel, .status-block, .member-dashboard-bottom, .request-card, .request-history, .notification-shell { padding: 16px; }
  .payment-order-panel { padding: 16px; }
  .payment-qr-full { margin: 16px auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
