:root {
  --accent: #007aff;
  --accent-light: rgba(0, 122, 255, 0.08);
  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #000000;
  --text2: #8e8e93;
  --text3: #aeaeb2;
  --separator: rgba(60, 60, 67, 0.08);
  --green: #34c759;
  --red: #ff3b30;
  --radius: 14px;
  --nav-h: 52px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; overflow: hidden; }
body {
  height: 100%; overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; color: var(--text); background: var(--bg);
  -webkit-text-size-adjust: 100%; overscroll-behavior: none;
  text-rendering: geometricPrecision;
}
button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
.app-shell { width: min(100%,430px); height: 100%; margin: 0 auto; background: var(--bg); position: relative; display: flex; flex-direction: column; overflow: hidden; }
.intro-shell { align-items: center; justify-content: center; background: var(--surface); }
.intro-content { text-align: center; padding: 0 32px; }
.logo-badge { width: 88px; height: 88px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 22px; background: var(--bg); }
.logo-badge img { width: 52px; height: 52px; }
.intro-content h1 { font-size: 28px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
.intro-content p { font-size: 15px; color: var(--text2); line-height: 1.5; }
.primary-action { position: absolute; left: 16px; right: 16px; bottom: calc(16px + var(--safe-bottom)); height: 50px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.primary-action:active { opacity: .7; }
.menu-shell { display: flex; flex-direction: column; }
.page { display: none; flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.page.active { display: flex; flex-direction: column; }
.app-content { padding: 16px 16px calc(20px + var(--nav-h) + var(--safe-bottom)); flex: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.topbar-title { font-size: 17px; font-weight: 600; text-align: center; flex: 1; }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--bg); display: grid; place-items: center; position: relative; }
.avatar-btn .avatar-placeholder { width: 22px; height: 22px; color: var(--text3); }
.avatar-btn .avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: absolute; inset: 0; }
.top-actions { display: flex; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: background .15s; flex-shrink: 0; }
.icon-btn:active { background: var(--separator); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.greeting { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 16px; }
.info-card { display: flex; align-items: center; gap: 12px; padding: 14px 12px; background: var(--surface); border-radius: var(--radius); margin-bottom: 24px; cursor: pointer; transition: transform .15s; }
.info-card:active { transform: scale(.98); }
.info-card h2 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.info-card p { font-size: 12px; color: var(--text2); line-height: 1.4; }
.card-arrow { margin-left: auto; flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); }
.card-arrow svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-title { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.projects-section { margin-bottom: 24px; }
.projects-section .section-title { margin-bottom: 12px; }
.projects-list { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 0; color: var(--text3); }
.empty-icon { width: 32px; height: 32px; fill: none; stroke: var(--text3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-state p { font-size: 14px; color: var(--text2); }
.project-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.project-item + .project-item { border-top: 1px solid var(--separator); }
.project-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-light); display: grid; place-items: center; flex-shrink: 0; }
.project-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-info { flex: 1; min-width: 0; }
.project-name { font-size: 15px; font-weight: 600; }
.project-date { font-size: 12px; color: var(--text2); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.see-all { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; color: var(--accent); }
.see-all svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: transform .15s; cursor: pointer; }
.cat-card:active { transform: scale(.97); }
.cat-card img { width: 100%; height: 120px; object-fit: cover; background: var(--bg); }
.cat-info { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.cat-name { font-size: 14px; font-weight: 600; }
.cat-count { font-size: 12px; color: var(--text2); background: var(--bg); padding: 2px 8px; border-radius: 20px; }
.cat-wide { grid-column: 1 / -1; }
.cat-wide img { height: 100px; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .15s; }
.prod-card:active { transform: scale(.97); }
.prod-card img { width: 100%; height: 130px; object-fit: cover; background: var(--bg); }
.prod-card .prod-body { padding: 10px; }
.prod-card .prod-name { font-size: 14px; font-weight: 600; line-height: 1.25; margin-bottom: 4px; white-space: normal; overflow-wrap: anywhere; }
.prod-card .prod-price { font-size: 14px; font-weight: 700; color: var(--accent); }
.prod-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 0; }
.prod-old-price { font-size: 12px; font-weight: 600; color: var(--text2); text-decoration: line-through; }
.prod-card .prod-badges, .prod-card .prod-old-price { display: none; }
.btn-details { display: none; width: 100%; height: 34px; border-radius: 10px; background: var(--bg); color: var(--accent); font-size: 14px; font-weight: 700; transition: opacity .15s; }
.btn-details:active { opacity: .7; }

.product-detail-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); background: var(--bg); margin-bottom: 16px; }
.product-detail-name { font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; overflow-wrap: anywhere; }
.product-detail-price { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.product-price-box { display: grid; gap: 6px; padding: 12px; background: var(--surface); border-radius: 12px; margin-bottom: 12px; }
.product-competitor-price { font-size: 14px; color: var(--text2); font-weight: 600; overflow-wrap: anywhere; }
.product-our-price { font-size: 18px; color: var(--accent); font-weight: 800; overflow-wrap: anywhere; }
.product-detail-desc { font-size: 15px; color: var(--text2); line-height: 1.5; margin-bottom: 20px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.btn-buy { width: 100%; height: 50px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; transition: opacity .15s; }
.btn-buy:active { opacity: .7; }
.btn-buy:disabled { opacity: .4; pointer-events: none; }
.btn-review { width: 100%; height: 46px; border-radius: 12px; margin-top: 8px; background: var(--bg); color: var(--accent); font-size: 16px; font-weight: 700; transition: opacity .15s; }
.btn-review:active { opacity: .7; }
.btn-help-chat { width: 100%; min-height: 46px; border-radius: 12px; margin-top: 8px; background: rgba(0,122,255,.1); color: var(--accent); font-size: 16px; font-weight: 700; transition: transform .15s, opacity .15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-help-chat:active { transform: scale(.98); opacity: .82; }
.btn-help-chat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-card { min-width: 0; overflow: hidden; background: rgba(255,255,255,.86); border: 1px solid rgba(60,60,67,.08); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(0,0,0,.045); }
.service-card img { width: 100%; height: 132px; object-fit: cover; background: var(--bg); }
.service-card-body { padding: 10px; }
.service-card h3 { min-height: 36px; margin-bottom: 10px; font-size: 15px; line-height: 1.18; font-weight: 700; overflow-wrap: anywhere; }
.service-card-desc { margin: -4px 0 10px; color: var(--text2); font-size: 13px; line-height: 1.28; }
.service-card-link { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 10px; }
.service-card-link .service-card-icon { width: 58px; height: 58px; border-radius: 16px; padding: 10px; object-fit: contain; flex-shrink: 0; }
.service-card-link .service-card-body { flex: 1; padding: 0; min-width: 0; }
.service-card-link h3 { min-height: 0; margin-bottom: 6px; }
.service-open-btn { width: 100%; height: 34px; border-radius: 999px; background: rgba(0,0,0,.055); color: #111; font-size: 14px; font-weight: 650; transition: opacity .15s, transform .15s; }
.service-open-btn:active { transform: scale(.97); opacity: .7; }
.service-channel-link { width: 58px; height: 34px; border-radius: 999px; background: rgba(0,122,255,.1); color: var(--accent); font-size: 13px; font-weight: 700; }
.service-feed-list { display: grid; gap: 12px; }
.service-post { overflow: hidden; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--separator); }
.service-post-media { width: 100%; max-height: 360px; object-fit: cover; background: var(--bg); }
.service-post-sticker { width: min(220px,72%); max-height: 220px; margin: 12px auto 0; object-fit: contain; background: transparent; border-radius: 0; }
.service-post-media-pending { min-height: 180px; }
.service-post-media-pending.service-post-sticker { min-height: 180px; }
.service-post-body { padding: 11px 12px 12px; }
.service-post-text { font-size: 15px; line-height: 1.45; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.service-post-date { display: block; margin-top: 8px; font-size: 12px; color: var(--text2); }
.service-post-empty { padding: 28px 14px; text-align: center; color: var(--text2); background: var(--surface); border-radius: var(--radius); font-size: 14px; line-height: 1.45; }
.service-load-more { margin-top: 12px; }

.profile-header { display: flex; flex-direction: column; align-items: center; padding: 20px 0 24px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.profile-avatar svg { width: 36px; height: 36px; color: var(--text3); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.profile-username { font-size: 15px; color: var(--text2); }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 24px; }
.stats-profile { grid-template-columns: repeat(2,1fr); }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 16px 12px; text-align: center; }
.stat-value { display: block; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text2); }
.transactions-section .section-title { margin-bottom: 12px; }
.transactions-list { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.tx-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.tx-item + .tx-item { border-top: 1px solid var(--separator); }
.tx-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.tx-icon.deposit { background: rgba(52,199,89,.12); color: var(--green); }
.tx-icon.purchase { background: rgba(255,59,48,.12); color: var(--red); }
.tx-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tx-info { flex: 1; min-width: 0; }
.tx-title { font-size: 15px; font-weight: 500; }
.tx-date { font-size: 12px; color: var(--text2); }
.tx-amount { font-size: 15px; font-weight: 600; white-space: nowrap; }
.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: var(--red); }

.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0); visibility: hidden; pointer-events: none; transition: background .3s, visibility 0s .3s; }
.modal-overlay.open { visibility: visible; pointer-events: auto; background: rgba(0,0,0,.4); transition: background .3s; }
.modal-sheet { width: min(100%,430px); max-height: 85dvh; background: var(--surface); border-radius: 16px 16px 0 0; padding: 10px 16px calc(16px + var(--safe-bottom)); transform: translateY(100%); transition: transform .35s cubic-bezier(.32,.72,0,1); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle { width: 36px; height: 5px; border-radius: 3px; background: var(--text3); opacity: .35; margin: 0 auto 12px; }
.modal-title { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 16px; }
.wallet-balance { text-align: center; padding: 16px 0; margin-bottom: 16px; background: var(--bg); border-radius: var(--radius); }
.balance-label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.balance-value { font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.wallet-form { margin-bottom: 8px; }
.input-label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.input-field { width: 100%; height: 44px; border: 1px solid var(--separator); border-radius: 12px; padding: 0 14px; font-size: 16px; background: var(--bg); outline: none; transition: border-color .15s; -webkit-appearance: none; margin-bottom: 8px; }
.input-field:focus { border-color: var(--accent); }
.input-field.ta { height: 80px; padding: 10px 14px; resize: none; font-family: inherit; }
.btn-primary { width: 100%; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; transition: opacity .15s; display: grid; place-items: center; }
.btn-primary:active { opacity: .7; }
.btn-check { background: var(--bg); color: var(--text); margin-top: 8px; }
.btn-close-modal { width: 100%; height: 40px; margin-top: 6px; border-radius: 12px; font-size: 17px; font-weight: 500; color: var(--accent); background: var(--bg); transition: opacity .15s; }
.btn-close-modal:active { opacity: .7; }
.pay-link { text-decoration: none; margin-bottom: 0; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.payment-method { border: 1px solid rgba(60,60,67,.12); background: rgba(255,255,255,.86); border-radius: 16px; padding: 10px; display: flex; align-items: center; gap: 8px; text-align: left; color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.035); transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.payment-method:active { transform: scale(.98); }
.payment-method.active { border-color: rgba(0,122,255,.58); background: rgba(0,122,255,.08); box-shadow: 0 8px 22px rgba(0,122,255,.10); }
.payment-method-logo { width: 34px; height: 34px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #111827; box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.payment-method b { display: block; font-size: 13px; line-height: 1.1; }
.payment-method small { display: block; margin-top: 2px; color: var(--text2); font-size: 11px; line-height: 1.1; }
.pay-status.pay-waiting .spinner { display: block; }

.pay-status { text-align: center; padding: 20px 0; }
.pay-status p { font-size: 15px; color: var(--text2); margin-top: 12px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--separator); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-success .spinner { display: none; }
.pay-success::before { content: "\2713"; display: block; width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: var(--green); color: #fff; font-size: 24px; line-height: 48px; text-align: center; }
.purchase-sheet { padding-bottom: calc(18px + var(--safe-bottom)); }
.chat-action-sheet { padding-bottom: calc(18px + var(--safe-bottom)); }
.chat-action-modal { text-align: center; padding-bottom: 4px; }
.chat-action-icon { width: 54px; height: 54px; margin: 2px auto 12px; border-radius: 50%; display: grid; place-items: center; animation: success-pop .35s cubic-bezier(.2,1.2,.35,1) both; }
.chat-action-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-action-icon.info { background: var(--accent-light); color: var(--accent); }
.chat-action-icon.danger { background: rgba(255,59,48,.12); color: var(--red); }
.purchase-modal { text-align: center; padding-bottom: 4px; }
.purchase-summary { display: grid; gap: 8px; margin-bottom: 12px; padding: 12px; background: var(--bg); border-radius: 12px; text-align: left; }
.purchase-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.purchase-summary strong { font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.purchase-label { font-size: 13px; color: var(--text2); flex-shrink: 0; }
.purchase-note { font-size: 14px; color: var(--text2); line-height: 1.45; margin: 0 0 14px; }
.purchase-message { font-size: 15px; color: var(--text2); line-height: 1.45; margin: 0 0 14px; }
.purchase-loading { padding: 10px 0 18px; }
.purchase-loading p { margin-top: 12px; color: var(--text2); font-size: 15px; overflow-wrap: anywhere; }
.purchase-alert-icon { width: 52px; height: 52px; margin: 2px auto 12px; border-radius: 50%; background: rgba(255,59,48,.12); color: var(--red); display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.purchase-success-animation { position: relative; width: 82px; height: 82px; margin: 2px auto 12px; display: grid; place-items: center; }
.success-burst { position: absolute; inset: 6px; border-radius: 50%; background: rgba(52,199,89,.14); animation: success-burst .75s ease-out both; }
.success-circle { width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; animation: success-pop .45s cubic-bezier(.2,1.3,.35,1) both; }
.success-circle svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 28; stroke-dashoffset: 28; animation: success-check .45s ease-out .22s forwards; }
@keyframes success-pop { from { transform: scale(.65); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes success-burst { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.28); opacity: 0; } }
@keyframes success-check { to { stroke-dashoffset: 0; } }

.settings-list { margin-bottom: 12px; }
.settings-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg); border-radius: 12px; transition: opacity .15s; width: 100%; text-align: left; }
.settings-item:active { opacity: .7; }
.settings-item svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.settings-item span { flex: 1; font-size: 16px; font-weight: 500; }
.settings-item .chevron { width: 18px; height: 18px; stroke: var(--text3); }

.page-admin .app-content { padding: 14px 12px calc(18px + var(--nav-h) + var(--safe-bottom)); }
.page-admin .topbar { margin-bottom: 12px; }
.admin-section { margin-bottom: 12px; padding: 12px; background: var(--surface); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.035); }
.admin-section .section-title { margin-bottom: 8px; font-size: 15px; }
.admin-row { display: flex; gap: 8px; align-items: center; }
.admin-row .input-field { flex: 1; margin-bottom: 0; }
.admin-balance-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.page-admin .input-field { height: 40px; margin-bottom: 6px; border-radius: 10px; font-size: 14px; }
.page-admin .input-field.ta { height: 68px; padding: 9px 12px; }
.page-admin .btn-primary { height: 40px; border-radius: 10px; font-size: 14px; }
.btn-danger { background: var(--red); color: #fff; }
.admin-user-info { margin-top: 8px; }
.admin-user-card { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; background: var(--bg); border-radius: 10px; }
.admin-user-card div { min-width: 0; }
.admin-user-card span { display: block; font-size: 12px; color: var(--text2); margin-bottom: 2px; }
.admin-user-card b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.admin-user-subtitle { font-size: 12px; font-weight: 700; color: var(--text2); margin: 10px 0 5px; }
.admin-user-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 9px; background: var(--bg); margin-bottom: 5px; }
.admin-user-row span { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.admin-user-row b { font-size: 13px; white-space: nowrap; }
.admin-user-muted { font-size: 13px; color: var(--text2); }
.btn-sm { height: 40px; padding: 0 14px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-muted { background: rgba(0,0,0,.07); color: var(--text); }
.file-label { display: block; height: 40px; line-height: 40px; text-align: center; border-radius: 10px; background: var(--bg); color: var(--text2); font-size: 14px; cursor: pointer; margin-bottom: 6px; }
.admin-prod { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--bg); border-radius: 10px; margin-bottom: 6px; }
.admin-prod img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.admin-prod .ap-info { flex: 1; min-width: 0; }
.admin-prod .ap-name { font-size: 14px; font-weight: 600; }
.admin-prod .ap-meta { font-size: 12px; color: var(--text2); }
.btn-del { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,59,48,.1); display: grid; place-items: center; flex-shrink: 0; }
.btn-del svg { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-edit { min-width: 42px; height: 30px; padding: 0 8px; border-radius: 8px; background: rgba(0,122,255,.1); color: var(--accent); font-size: 12px; font-weight: 700; flex-shrink: 0; }

.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%,430px); height: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); display: grid; grid-template-columns: repeat(4,1fr); background: var(--surface); border-top: .5px solid var(--separator); z-index: 50; }
.nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text3); transition: color .15s; }
.nav-btn:active { opacity: .7; }
.nav-btn.active { color: var(--accent); }
.nav-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn span { font-size: 10px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.nav-chat, .nav-chat.active { background: transparent; color: var(--text3); }
.nav-chat.active { color: var(--accent); }
.nav-chat-icon { display: grid; place-items: center; color: currentColor; }
.nav-chat-icon svg { width: 24px; height: 24px; stroke: currentColor; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.green { background: var(--green); }
.dot.red { background: var(--red); }
.project-arrow { width: 18px; height: 18px; fill: none; stroke: var(--text3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.project-item { cursor: pointer; transition: opacity .15s; }
.project-item:active { opacity: .7; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; margin-right: 4px; margin-bottom: 4px; }
.badge-green { background: rgba(52,199,89,.15); color: var(--green); }
.badge-blue { background: var(--accent-light); color: var(--accent); }
.badge-orange { background: rgba(255,149,0,.15); color: #ff9500; }
.badge-red { background: rgba(255,59,48,.12); color: var(--red); }
.prod-badges { margin-bottom: 6px; }
.prod-badges-detail { margin-bottom: 12px; }
.mp-header { text-align: center; padding: 20px 0; }
.mp-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-light); display: grid; place-items: center; margin: 0 auto 12px; }
.mp-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mp-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.mp-status { font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 20px; display: inline-block; }
.mp-status.active { background: rgba(52,199,89,.12); color: var(--green); }
.mp-status.inactive { background: rgba(255,59,48,.12); color: var(--red); }
.mp-until { font-size: 13px; color: var(--text2); margin-top: 4px; }
.mp-desc { font-size: 15px; color: var(--text2); line-height: 1.5; padding: 12px 0; border-top: 1px solid var(--separator); margin-bottom: 12px; }
.mp-manual { text-align: center; padding: 20px 0; }
.mp-manual p { font-size: 15px; color: var(--text2); margin-bottom: 16px; }
.mp-contact { text-decoration: none; }
.mp-download { text-decoration: none; margin-top: 8px; }
.mp-panel { margin-top: 12px; }
.mp-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mp-start { background: var(--green); }
.mp-stop { background: var(--bg); color: var(--text); }
.mp-renew { background: var(--accent); }
.cfg-row { margin-bottom: 8px; }
.cfg-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.cfg-label { display: block; font-size: 13px; color: var(--text2); font-family: monospace; overflow-wrap: anywhere; }
.cfg-help { height: 28px; padding: 0 10px; border-radius: 999px; background: var(--accent-light); color: var(--accent); font-size: 12px; font-weight: 800; flex-shrink: 0; }
.cfg-input { font-family: monospace; font-size: 14px; }
.check-group { margin-bottom: 8px; }
.check-item { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.check-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.page-welcome { align-items: center; justify-content: center; }
.welcome-wrap { text-align: center; padding: 0 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; }
.welcome-wrap h1 { font-size: 28px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 8px; }
.welcome-wrap p { font-size: 15px; color: var(--text2); line-height: 1.5; margin-bottom: 32px; }
.welcome-btn { max-width: 280px; }
.page-subscription { align-items: center; justify-content: center; background: radial-gradient(circle at 50% 12%, rgba(0,122,255,.14), transparent 34%), var(--bg); }
.subscription-wrap { width: 100%; max-width: 350px; padding: 28px 24px; margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.subscription-orb { width: 82px; height: 82px; border-radius: 28px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(145deg, #38bdf8, #2563eb 58%, #111827); color: #fff; box-shadow: 0 18px 42px rgba(37,99,235,.28); }
.subscription-orb svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.subscription-wrap h1 { font-size: 27px; line-height: 1.08; font-weight: 780; letter-spacing: -.6px; margin-bottom: 10px; color: var(--text); }
.subscription-wrap p { font-size: 15px; line-height: 1.48; color: var(--text2); margin-bottom: 18px; }
.subscription-link, .subscription-check { max-width: 292px; text-decoration: none; margin-top: 8px; }
.subscription-check {
  background: rgba(0,122,255,.10);
  color: var(--accent);
  border: 1px solid rgba(0,122,255,.26);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.subscription-check:active { background: rgba(0,122,255,.16); opacity: .86; }
.subscription-check:disabled {
  background: rgba(142,142,147,.14);
  color: var(--text3);
  border-color: rgba(142,142,147,.22);
  opacity: 1;
}
.subscription-status { min-height: 38px; margin-top: 14px; font-size: 13px !important; color: var(--text3) !important; }
.stats-admin { grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 0; }
.stats-admin .stat-card { padding: 10px 6px; border-radius: 10px; background: var(--bg); }
.stats-admin .stat-value { font-size: 16px; margin-bottom: 2px; }
.stats-admin .stat-label { font-size: 11px; }
.admin-result { font-size: 14px; color: var(--green); margin-top: 8px; min-height: 20px; }
.page-chat { background: linear-gradient(180deg, #fbfbfc 0%, #f6f7f9 52%, #fff 100%); }
.chat-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 14px calc(14px + var(--nav-h) + var(--safe-bottom)); }
.chat-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-shrink: 0; }
.chat-title-block { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-title-block strong { display: block; color: #111318; font-size: 20px; line-height: 1.06; font-weight: 760; letter-spacing: -.45px; }
.chat-kicker { color: #8b909a; font-size: 11px; line-height: 1; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.chat-info-pill { min-width: 0; height: 36px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.8); color: #292b31; box-shadow: 0 8px 24px rgba(15,23,42,.08), inset 0 0 0 1px rgba(209,213,219,.72); font-size: 13px; font-weight: 680; text-align: center; backdrop-filter: blur(14px); }
.chat-top-actions { display: flex; align-items: center; gap: 8px; }
.chat-icon-btn { width: 36px; height: 36px; background: rgba(255,255,255,.8); color: #6b7280; box-shadow: 0 8px 24px rgba(15,23,42,.08), inset 0 0 0 1px rgba(209,213,219,.72); backdrop-filter: blur(14px); }
.chat-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.chat-messages { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 16px; padding: 4px 0 16px; scroll-behavior: smooth; }
.chat-is-empty .chat-messages { display: none; }
.chat-msg { display: flex; width: 100%; animation: msg-in .22s ease-out both; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.assistant { justify-content: flex-start; }
.chat-bubble { max-width: 100%; border-radius: 0; padding: 0; overflow: visible; box-shadow: none; }
.chat-msg.user .chat-bubble { max-width: 78%; padding: 11px 14px; border-radius: 20px 20px 5px 20px; background: #111318; color: #fff; box-shadow: 0 9px 24px rgba(17,19,24,.12); }
.chat-msg.assistant .chat-bubble { width: 100%; position: relative; padding-left: 38px; background: transparent; color: #17181c; border: 0; }
.chat-msg.assistant .chat-bubble::before { content: "B"; position: absolute; left: 0; top: 1px; width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: radial-gradient(circle at 28% 22%, #7dd3fc 0%, #2563eb 45%, #111827 100%); color: #fff; font-size: 12px; font-weight: 850; box-shadow: 0 8px 18px rgba(37,99,235,.22); }
.chat-text { font-size: 16px; line-height: 1.52; overflow-wrap: anywhere; font-weight: 430; letter-spacing: -.01em; color: #17181c; }
.chat-msg.assistant .chat-text + .chat-text { margin-top: 10px; }
.chat-msg.user .chat-text { color: #fff; font-size: 14px; line-height: 1.42; font-weight: 520; letter-spacing: -.005em; }
.chat-text:empty { display: none; }
.chat-text code { padding: 2px 6px; border-radius: 7px; background: rgba(17,24,39,.07); color: #0f172a; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.chat-msg.user .chat-text code { background: rgba(255,255,255,.16); color: #fff; }
.chat-tools { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 12px; }
.chat-msg-tool { min-height: 24px; padding: 0; border-radius: 0; background: transparent; color: #7a818d; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 640; }
.chat-msg-tool:active { opacity: .6; }
.chat-msg-tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-action-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chat-link-btn { min-height: 36px; padding: 8px 13px; border-radius: 999px; background: #fff; color: #1e293b; box-shadow: 0 7px 20px rgba(15,23,42,.06), inset 0 0 0 1px rgba(203,213,225,.72); font-size: 13px; font-weight: 700; text-align: left; transition: transform .14s, opacity .14s, background .14s; }
.chat-link-btn:active { transform: scale(.98); opacity: .78; }
.chat-runtime-btn { background: #111827; color: #fff; box-shadow: 0 9px 22px rgba(17,24,39,.16); }
.chat-project-choice-btn { background: #eef2ff; color: #28327a; box-shadow: inset 0 0 0 1px rgba(99,102,241,.18); }
.chat-link-btn:disabled { opacity: .5; cursor: not-allowed; }
.code-card { margin-top: 9px; border-radius: 14px; background: #101116; color: #f5f5f7; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.code-head { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 9px 0 12px; background: rgba(255,255,255,.08); }
.code-head span { font-size: 12px; color: rgba(255,255,255,.72); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-code { height: 24px; padding: 0 9px; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-size: 12px; font-weight: 700; }
.code-card pre { max-height: 260px; overflow: auto; padding: 12px; font-size: 13px; line-height: 1.45; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.chat-empty { flex: 1; min-height: 0; flex-direction: column; justify-content: center; margin: 0; padding: 12px 0 22px; }
.chat-empty h3 { max-width: 330px; margin: 0 auto 16px; text-align: center; font-size: 28px; line-height: 1.08; font-weight: 720; letter-spacing: -.72px; color: #111318; }
.chat-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chat-suggestions button { min-height: 42px; padding: 9px 11px; border-radius: 15px; background: rgba(255,255,255,.78); color: #4b5563; box-shadow: 0 8px 20px rgba(15,23,42,.055), inset 0 0 0 1px rgba(203,213,225,.7); font-size: 12px; line-height: 1.2; font-weight: 700; text-align: left; backdrop-filter: blur(12px); }
.chat-composer { flex-shrink: 0; min-height: 62px; display: flex; align-items: flex-end; gap: 9px; padding: 10px; border-radius: 25px; background: rgba(255,255,255,.88); border: 1px solid rgba(209,213,219,.88); box-shadow: 0 12px 34px rgba(15,23,42,.12); backdrop-filter: blur(18px); }
.chat-composer textarea { flex: 1; min-height: 40px; max-height: 120px; resize: none; border: 0; outline: 0; background: transparent; padding: 8px 4px 6px 4px; font: inherit; font-size: 15px; line-height: 1.34; color: #111318; }
.chat-composer textarea::placeholder { color: #9298a3; }
.chat-send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #d4d7de; color: #fff; box-shadow: none; transition: transform .15s, opacity .15s, background .15s, box-shadow .15s; }
.chat-send.has-text { background: #111318; box-shadow: 0 9px 22px rgba(17,19,24,.2); }
.chat-send:active { transform: scale(.92); }
.chat-send:disabled { opacity: .45; }
.chat-send svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.typing-bubble { display: flex; align-items: center; gap: 5px; min-width: 58px; min-height: 28px; padding-left: 38px; }
.typing-bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--text3); animation: typing-dot 1s infinite ease-in-out; }
.typing-bubble span:nth-child(2) { animation-delay: .16s; }
.typing-bubble span:nth-child(3) { animation-delay: .32s; }
.chat-limit-box { flex-shrink: 0; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 10px 28px rgba(0,0,0,.08); text-align: center; }
.chat-limit-box p { font-size: 14px; color: var(--text2); line-height: 1.4; margin-bottom: 10px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes typing-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (max-width:360px) {
  .app-content { padding-left: 12px; padding-right: 12px; }
  .category-grid, .product-grid { gap: 8px; }
  .chat-suggestions { grid-template-columns: 1fr; }
  .chat-msg.user .chat-bubble { max-width: 84%; }
  .chat-msg.assistant .chat-bubble { max-width: 100%; }
}
.wallet-promo-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.promo-project-list {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 12px 0;
}
.promo-admin-row .promo-toggle {
  min-width: 64px;
  width: auto;
  padding: 0 10px;
}
.promo-admin-row .promo-toggle {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}
.chat-action-icon.success { background: rgba(52,199,89,.14); color: var(--green); }

.pay-error .spinner { display: none; }
.pay-error p { color: var(--red); }

.chat-md-heading { margin: 16px 0 7px; color: #111318; font-weight: 760; letter-spacing: -.02em; line-height: 1.18; }
.chat-md-heading:first-child { margin-top: 0; }
h3.chat-md-heading { font-size: 18px; }
h4.chat-md-heading { font-size: 16px; }
.chat-md-list { margin: 8px 0 10px 20px; padding: 0; color: #17181c; font-size: 16px; line-height: 1.52; }
.chat-md-list li { margin: 4px 0; padding-left: 2px; }
.chat-md-quote { margin: 10px 0; padding: 9px 12px; border-left: 3px solid rgba(37,99,235,.55); border-radius: 0 12px 12px 0; background: rgba(37,99,235,.07); color: #374151; font-size: 15px; line-height: 1.48; }
.chat-md-link { color: #2563eb; text-decoration: none; font-weight: 680; border-bottom: 1px solid rgba(37,99,235,.22); }
.chat-md-link:active { opacity: .65; }
.md-table-wrap { width: 100%; overflow-x: auto; margin: 10px 0 12px; border-radius: 14px; border: 1px solid rgba(203,213,225,.85); background: rgba(255,255,255,.78); box-shadow: 0 8px 22px rgba(15,23,42,.055); }
.md-table { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 13px; line-height: 1.35; color: #172033; }
.md-table th { padding: 9px 10px; background: rgba(15,23,42,.045); font-weight: 800; color: #111827; white-space: nowrap; }
.md-table td { padding: 9px 10px; border-top: 1px solid rgba(203,213,225,.72); vertical-align: top; }
.md-table tr:nth-child(even) td { background: rgba(248,250,252,.72); }
.chat-msg.user .chat-md-list, .chat-msg.user .chat-md-heading, .chat-msg.user .chat-md-quote { color: #fff; }
.chat-msg.user .chat-md-link { color: #bfdbfe; border-bottom-color: rgba(191,219,254,.4); }
.analytics-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.analytics-list { display: grid; gap: 7px; }
.analytics-row { padding: 10px 11px; border-radius: 13px; background: rgba(255,255,255,.74); border: 1px solid rgba(60,60,67,.08); display: grid; gap: 4px; }
.analytics-row div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.analytics-row b { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-row span { font-size: 12px; color: var(--text2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-row em { font-style: normal; font-size: 11px; color: var(--text3); }
@media (min-width: 720px) { .analytics-grid { grid-template-columns: 1fr 1fr; } }
.analytics-products-full { max-height: 430px; overflow-y: auto; padding-right: 2px; }
.analytics-user-card { margin-top: 8px; }
.referral-links { display: grid; gap: 4px; margin-top: 6px; }
.referral-links code { padding: 2px 6px; border-radius: 8px; background: rgba(37,99,235,.08); color: #1d4ed8; font-weight: 700; }
.chat-runtime-btn.high-risk { border-color: rgba(255,59,48,.35); background: rgba(255,59,48,.08); color: var(--red); }
.chat-runtime-btn.is-disabled-action { background: rgba(52,199,89,.10); color: var(--green); box-shadow: inset 0 0 0 1px rgba(52,199,89,.18); opacity: .72; }
.chat-runtime-btn.high-risk.is-disabled-action { background: rgba(255,59,48,.08); color: #b42318; box-shadow: inset 0 0 0 1px rgba(255,59,48,.18); }
.page-analytics .app-content { padding: 14px 12px calc(18px + var(--nav-h) + var(--safe-bottom)); }
.analytics-hero .admin-row, .broadcast-builder .admin-row { align-items: stretch; }
.analytics-product-title { display: flex; align-items: center; gap: 12px; }
.analytics-product-title img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; flex-shrink: 0; box-shadow: 0 10px 24px rgba(15,23,42,.10); }
.analytics-chart-card { min-width: 0; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.78); border: 1px solid rgba(60,60,67,.08); box-shadow: 0 8px 22px rgba(15,23,42,.04); }
.analytics-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.analytics-chart-head b { font-size: 13px; color: var(--text); }
.analytics-chart-head span { font-size: 11px; color: var(--text3); }
.analytics-chart { width: 100%; height: 132px; display: block; overflow: visible; }
.analytics-grid-line { fill: none; stroke: rgba(148,163,184,.35); stroke-width: 1; stroke-dasharray: 4 5; }
.analytics-bars { display: grid; gap: 9px; }
.analytics-bar-row { display: grid; gap: 5px; }
.analytics-bar-row div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.analytics-bar-row b { font-size: 12px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-bar-row span { font-size: 12px; color: var(--text2); }
.analytics-bar-row i { display: block; height: 9px; border-radius: 999px; background: rgba(15,23,42,.06); overflow: hidden; }
.analytics-bar-row i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #7c3aed); }
.broadcast-textarea { min-height: 132px !important; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.broadcast-emoji-row { display: grid; grid-template-columns: 1fr 72px auto; gap: 8px; align-items: center; }
.broadcast-builder code { padding: 1px 5px; border-radius: 7px; background: rgba(15,23,42,.07); color: #0f172a; }
@media (max-width: 430px) {
  .analytics-hero .admin-row, .broadcast-builder .admin-row, .broadcast-emoji-row { grid-template-columns: 1fr; display: grid; }
}

/* Public web / SEO / bot-login pages */
.landing-page {
  min-height: 100vh;
  margin: 0;
  color: #eef4ff;
  background:
    radial-gradient(circle at 16% 12%, rgba(71, 118, 255, .28), transparent 34rem),
    radial-gradient(circle at 82% 4%, rgba(125, 78, 255, .22), transparent 30rem),
    linear-gradient(135deg, #090d16 0%, #111827 48%, #080a10 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.landing-page * { box-sizing: border-box; }
.landing-nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.landing-brand, .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.03em;
}
.landing-brand img, .auth-brand img { width: 34px; height: 34px; border-radius: 12px; }
.landing-nav nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.landing-nav nav a {
  color: rgba(238, 244, 255, .76);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
}
.landing-nav nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.landing-login-link { background: rgba(255,255,255,.1); color: #fff !important; }
.landing-hero {
  width: min(1120px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
  gap: 54px;
  padding: 54px 0 34px;
}
.landing-kicker, .seo-kicker {
  margin: 0 0 12px;
  color: #82a7ff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.landing-hero h1, .catalog-head h1, .auth-card h1, .seo-product-card h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: .94;
  letter-spacing: -.075em;
}
.landing-lead, .auth-lead, .catalog-head p, .seo-product-card p {
  color: rgba(238,244,255,.72);
  font-size: 18px;
  line-height: 1.65;
}
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.landing-primary, .landing-secondary, .auth-bot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
  font-size: 15px;
}
.landing-primary {
  color: #06101f;
  background: linear-gradient(135deg, #ffffff, #b9cdff 45%, #7fb0ff);
  box-shadow: 0 20px 60px rgba(87, 126, 255, .34);
}
.landing-primary:disabled { opacity: .72; cursor: default; }
.landing-secondary, .auth-bot-link {
  color: #eef4ff;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
}
.landing-note { color: rgba(238,244,255,.52); font-size: 13px; margin-top: 18px; }
.landing-hero-card { position: relative; min-height: 430px; display: grid; place-items: center; }
.landing-card-glow {
  position: absolute;
  inset: 12%;
  background: linear-gradient(135deg, #4171ff, #9c6bff, #38d5ff);
  filter: blur(72px);
  opacity: .32;
}
.landing-dashboard-card {
  position: relative;
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  box-shadow: 0 30px 100px rgba(0,0,0,.36);
  backdrop-filter: blur(22px);
}
.landing-dots { display: flex; gap: 7px; margin-bottom: 56px; }
.landing-dots span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.4); }
.landing-dashboard-card h2 { margin: 0 0 18px; font-size: 34px; letter-spacing: -.05em; }
.landing-dashboard-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.landing-dashboard-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}
.landing-dashboard-card li span { color: rgba(238,244,255,.62); text-align: right; }
.landing-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing-grid article, .auth-card, .catalog-public-card, .seo-product-card {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}
.landing-grid article { padding: 24px; border-radius: 28px; }
.landing-grid article span { color: #82a7ff; font-weight: 900; }
.landing-grid article h2 { margin: 18px 0 8px; letter-spacing: -.04em; }
.landing-grid article p { margin: 0; color: rgba(238,244,255,.64); line-height: 1.55; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-card { width: min(520px, 100%); padding: 34px; border-radius: 34px; }
.auth-card h1 { font-size: clamp(34px, 9vw, 58px); margin-top: 16px; }
.auth-main-btn { width: 100%; margin-top: 12px; }
.auth-bot-link { width: 100%; margin-top: 10px; }
.auth-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  color: rgba(238,244,255,.75);
  background: rgba(255,255,255,.08);
}
.auth-status[data-kind="ok"] { color: #c8ffdd; background: rgba(34,197,94,.14); }
.auth-status[data-kind="error"] { color: #ffd1d1; background: rgba(239,68,68,.16); }
.auth-status[data-kind="warn"] { color: #ffe8ae; background: rgba(245,158,11,.16); }
.auth-steps { display: grid; gap: 10px; margin-top: 18px; }
.auth-steps div { display: flex; align-items: center; gap: 12px; color: rgba(238,244,255,.68); }
.auth-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: rgba(130,167,255,.2); color: #cfe0ff; }
.catalog-shell, .seo-product { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 70px; }
.catalog-head { max-width: 760px; margin-bottom: 24px; }
.catalog-head h1 { font-size: clamp(40px, 8vw, 72px); }
.catalog-search {
  width: min(560px, 100%);
  min-height: 52px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.1);
  color: #fff;
  outline: none;
  font: inherit;
}
.catalog-search::placeholder { color: rgba(238,244,255,.46); }
.catalog-grid-public { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catalog-public-card { overflow: hidden; border-radius: 28px; }
.catalog-public-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: rgba(255,255,255,.08); }
.catalog-public-card > div { padding: 18px; }
.catalog-public-card h2 { margin: 0 0 8px; letter-spacing: -.04em; }
.catalog-public-card h2 a { color: #fff; text-decoration: none; }
.catalog-public-card p { color: rgba(238,244,255,.64); line-height: 1.5; min-height: 3em; }
.catalog-public-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.catalog-public-footer b { font-size: 22px; }
.catalog-public-footer a { color: #07101f; background: #fff; border-radius: 999px; padding: 10px 14px; text-decoration: none; font-weight: 850; }
.catalog-loading { grid-column: 1/-1; padding: 24px; border-radius: 24px; background: rgba(255,255,255,.08); color: rgba(238,244,255,.7); }
.seo-back { display: inline-flex; color: rgba(238,244,255,.74); text-decoration: none; margin-bottom: 18px; }
.seo-product-card { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: 26px; padding: 24px; border-radius: 34px; }
.seo-product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 26px; background: rgba(255,255,255,.08); }
.seo-product-card h1 { font-size: clamp(36px, 6vw, 64px); }
.seo-price { font-size: 34px; font-weight: 950; margin: 20px 0; }
.seo-product-card .landing-secondary { margin-left: 8px; }
@media (max-width: 860px) {
  .landing-hero, .seo-product-card { grid-template-columns: 1fr; }
  .landing-hero { min-height: 0; gap: 28px; padding-top: 38px; }
  .landing-grid, .catalog-grid-public { grid-template-columns: 1fr; }
  .landing-nav { align-items: flex-start; }
  .landing-nav nav { justify-content: flex-end; }
  .landing-dashboard-card li { flex-direction: column; }
  .landing-dashboard-card li span { text-align: left; }
  .auth-card { padding: 24px; }
}

/* Public website: separated from Telegram Mini App shell */
html.public-web {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: #090d16;
}
html.public-web body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
  overscroll-behavior-y: auto;
}
html.public-web body.landing-page {
  isolation: isolate;
}
html.public-web body.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 10%, rgba(88, 121, 255, .34), transparent 34rem),
    radial-gradient(circle at 82% 0%, rgba(131, 87, 255, .24), transparent 31rem),
    radial-gradient(circle at 50% 100%, rgba(56, 213, 255, .10), transparent 32rem),
    linear-gradient(135deg, #090d16 0%, #101728 48%, #070a12 100%);
}
html.public-web .landing-page {
  overflow: visible;
}
html.public-web .landing-brand img,
html.public-web .auth-brand img {
  box-shadow: 0 14px 32px rgba(57, 86, 214, .25);
}
html.public-web .landing-nav {
  position: relative;
  z-index: 5;
}
html.public-web .landing-hero-copy,
html.public-web .catalog-head,
html.public-web .auth-card,
html.public-web .seo-product-card {
  position: relative;
  z-index: 1;
}
html.public-web .landing-hero-copy h1,
html.public-web .catalog-head h1,
html.public-web .auth-card h1,
html.public-web .seo-product-card h1 {
  text-wrap: balance;
}
html.public-web .landing-lead,
html.public-web .catalog-head p,
html.public-web .auth-lead,
html.public-web .seo-product-card p {
  max-width: 68ch;
}
html.public-web .landing-hero,
html.public-web .catalog-shell,
html.public-web .seo-product,
html.public-web .landing-grid,
html.public-web .landing-nav {
  width: min(1120px, calc(100% - 32px));
}
html.public-web .catalog-grid-public {
  align-items: stretch;
}
html.public-web .catalog-public-card {
  min-width: 0;
}
html.public-web .catalog-public-card p {
  overflow-wrap: anywhere;
}

/* Real desktop only: pointer/hover based class is set in page head, not width-only. */
html.public-web.real-desktop body.landing-page {
  background: transparent;
}
html.public-web.real-desktop .landing-nav {
  width: min(1480px, calc(100% - 96px));
  padding: 28px 0 12px;
}
html.public-web.real-desktop .landing-brand {
  font-size: 21px;
}
html.public-web.real-desktop .landing-brand img {
  width: 42px;
  height: 42px;
  border-radius: 15px;
}
html.public-web.real-desktop .landing-nav nav {
  gap: 18px;
}
html.public-web.real-desktop .landing-nav nav a {
  font-size: 16px;
  padding: 12px 18px;
}
html.public-web.real-desktop .landing-login-link {
  padding-inline: 24px !important;
  background: rgba(255,255,255,.14);
}
html.public-web.real-desktop .landing-hero {
  width: min(1480px, calc(100% - 96px));
  min-height: min(820px, calc(100svh - 82px));
  grid-template-columns: minmax(520px, .98fr) minmax(520px, 1.02fr);
  gap: clamp(64px, 7vw, 132px);
  padding: clamp(58px, 7vh, 90px) 0 92px;
}
html.public-web.real-desktop .landing-kicker {
  margin-bottom: 20px;
  font-size: 13px;
  letter-spacing: .22em;
}
html.public-web.real-desktop .landing-hero h1 {
  max-width: 920px;
  font-size: clamp(68px, 5.15vw, 96px);
  line-height: .92;
  letter-spacing: -.085em;
}
html.public-web.real-desktop .landing-lead {
  max-width: 760px;
  margin-top: 24px;
  font-size: 21px;
  line-height: 1.58;
}
html.public-web.real-desktop .landing-actions {
  margin-top: 34px;
  gap: 14px;
}
html.public-web.real-desktop .landing-primary,
html.public-web.real-desktop .landing-secondary,
html.public-web.real-desktop .auth-bot-link {
  min-height: 54px;
  padding-inline: 24px;
  font-size: 16px;
}
html.public-web.real-desktop .landing-note {
  margin-top: 18px;
  font-size: 14px;
}
html.public-web.real-desktop .landing-hero-card {
  min-height: 560px;
  justify-items: end;
}
html.public-web.real-desktop .landing-card-glow {
  inset: 3% 0 0 5%;
  filter: blur(92px);
  opacity: .38;
}
html.public-web.real-desktop .landing-dashboard-card {
  width: min(620px, 100%);
  min-height: 470px;
  padding: 42px;
  border-radius: 42px;
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
}
html.public-web.real-desktop .landing-dashboard-card h2 {
  margin-bottom: 28px;
  font-size: 43px;
}
html.public-web.real-desktop .landing-dashboard-card li {
  padding: 20px 22px;
  border-radius: 22px;
  font-size: 18px;
}
html.public-web.real-desktop .landing-dashboard-card li span {
  font-size: 18px;
}
html.public-web.real-desktop .landing-grid {
  width: min(1480px, calc(100% - 96px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 96px;
}
html.public-web.real-desktop .landing-grid article {
  min-height: 220px;
  padding: 32px;
  border-radius: 34px;
}
html.public-web.real-desktop .landing-grid article h2 {
  font-size: 28px;
}
html.public-web.real-desktop .landing-grid article p {
  font-size: 16px;
}
html.public-web.real-desktop .catalog-shell {
  width: min(1480px, calc(100% - 96px));
  padding: 74px 0 110px;
}
html.public-web.real-desktop .catalog-head {
  max-width: 900px;
  margin-bottom: 34px;
}
html.public-web.real-desktop .catalog-head h1 {
  font-size: clamp(64px, 5.4vw, 98px);
  line-height: .92;
  letter-spacing: -.075em;
}
html.public-web.real-desktop .catalog-head p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 21px;
}
html.public-web.real-desktop .catalog-search {
  width: min(660px, 100%);
  min-height: 58px;
  margin-top: 26px;
  padding-inline: 22px;
  font-size: 17px;
}
html.public-web.real-desktop .catalog-grid-public {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
html.public-web.real-desktop .catalog-public-card {
  border-radius: 32px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
html.public-web.real-desktop .catalog-public-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184,205,255,.34);
  background: rgba(255,255,255,.105);
}
html.public-web.real-desktop .catalog-public-card img {
  aspect-ratio: 16 / 11;
}
html.public-web.real-desktop .catalog-public-card > div {
  padding: 22px;
}
html.public-web.real-desktop .catalog-public-card h2 {
  font-size: 22px;
}
html.public-web.real-desktop .catalog-public-card p {
  min-height: 4.6em;
}
html.public-web.real-desktop .seo-product {
  width: min(1320px, calc(100% - 96px));
  padding: 74px 0 110px;
}
html.public-web.real-desktop .seo-product-card {
  grid-template-columns: minmax(380px, .78fr) minmax(0, 1.22fr);
  gap: 42px;
  padding: 34px;
  border-radius: 44px;
}
html.public-web.real-desktop .seo-product-card img {
  border-radius: 34px;
}
html.public-web.real-desktop .seo-product-card h1 {
  font-size: clamp(52px, 4.2vw, 82px);
  line-height: .94;
}
html.public-web.real-desktop .seo-price {
  font-size: 42px;
}
html.public-web.real-desktop .auth-shell {
  min-height: 100svh;
  padding: 70px 24px;
}
html.public-web.real-desktop .auth-card {
  width: min(620px, 100%);
  padding: 44px;
  border-radius: 42px;
}
html.public-web.real-desktop .auth-card h1 {
  font-size: 58px;
  line-height: .95;
}
html.public-web.real-desktop .auth-lead {
  font-size: 18px;
}

@media (max-width: 1180px) {
  html.public-web.real-desktop .catalog-grid-public {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  html.public-web .landing-hero,
  html.public-web.real-desktop .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  html.public-web.real-desktop .landing-hero-card {
    justify-items: stretch;
  }
  html.public-web.real-desktop .catalog-grid-public {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  html.public-web .landing-nav,
  html.public-web .landing-hero,
  html.public-web .catalog-shell,
  html.public-web .seo-product,
  html.public-web .landing-grid {
    width: min(100% - 28px, 1120px);
  }
  html.public-web .landing-hero h1,
  html.public-web .catalog-head h1 {
    font-size: clamp(39px, 14vw, 62px);
    line-height: .98;
  }
  html.public-web .landing-lead,
  html.public-web .catalog-head p {
    font-size: 16px;
    line-height: 1.56;
  }
  html.public-web .landing-nav {
    padding-top: 16px;
  }
  html.public-web .landing-nav nav a:not(.landing-login-link) {
    display: none;
  }
  html.public-web .landing-actions {
    align-items: stretch;
  }
  html.public-web .landing-primary,
  html.public-web .landing-secondary {
    width: 100%;
  }
  html.public-web .catalog-grid-public {
    grid-template-columns: 1fr;
  }
  html.public-web .seo-product-card .landing-secondary {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* Bincore public premium skin — Claude frontend-design inspired */
html.public-web {
  --pw-bg: #070806;
  --pw-bg-2: #0d0e0b;
  --pw-panel: rgba(20, 20, 16, .82);
  --pw-panel-2: rgba(34, 32, 25, .74);
  --pw-ink: #fff7e8;
  --pw-soft: rgba(255, 247, 232, .72);
  --pw-muted: rgba(255, 247, 232, .52);
  --pw-line: rgba(230, 190, 112, .18);
  --pw-line-strong: rgba(246, 213, 138, .36);
  --pw-gold: #d7a94f;
  --pw-gold-2: #f6d58a;
  --pw-copper: #a66a37;
  --pw-green: #9ee6ad;
  --pw-danger: #ff8f7d;
  --pw-shadow: 0 34px 110px rgba(0,0,0,.52);
  --pw-display: "Unbounded", "Commissioner", ui-sans-serif, system-ui, sans-serif;
  --pw-body: "Commissioner", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
  background: var(--pw-bg);
}
html.public-web ::selection {
  background: var(--pw-gold-2);
  color: #141006;
  text-shadow: none;
}
html.public-web body {
  font-family: var(--pw-body);
  color: var(--pw-ink);
  background: var(--pw-bg);
}
html.public-web body.landing-page::before {
  background:
    linear-gradient(90deg, rgba(246,213,138,.055) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(0deg, rgba(246,213,138,.038) 1px, transparent 1px) 0 0 / 88px 88px,
    radial-gradient(circle at 14% 18%, rgba(215,169,79,.25), transparent 29rem),
    radial-gradient(circle at 88% 8%, rgba(166,106,55,.18), transparent 27rem),
    radial-gradient(circle at 58% 98%, rgba(89,76,47,.38), transparent 34rem),
    linear-gradient(135deg, #090907 0%, #11120e 46%, #050604 100%);
}
html.public-web body.landing-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, rgba(255,255,255,.7) 0 1px, transparent 1px 6px),
    linear-gradient(115deg, transparent 0 44%, rgba(246,213,138,.07) 45%, transparent 46% 100%);
  background-size: 180px 180px, 100% 100%;
}
html.public-web .landing-brand,
html.public-web .auth-brand {
  font-family: var(--pw-display);
  font-weight: 800;
  letter-spacing: -.045em;
}
html.public-web .landing-brand img,
html.public-web .auth-brand img {
  background: #11110d;
  border: 1px solid var(--pw-line-strong);
  box-shadow: 0 18px 42px rgba(215,169,79,.18), inset 0 0 0 1px rgba(255,255,255,.06);
}
html.public-web .landing-nav {
  align-items: center;
  padding-top: 24px;
}
html.public-web.real-desktop .landing-nav {
  padding: 24px 0 12px;
}
html.public-web .landing-nav nav {
  padding: 7px;
  border: 1px solid rgba(246,213,138,.14);
  border-radius: 999px;
  background: rgba(8, 8, 6, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}
html.public-web .landing-nav nav a {
  color: rgba(255,247,232,.68);
  font-weight: 700;
  letter-spacing: -.015em;
}
html.public-web .landing-nav nav a:hover {
  color: var(--pw-ink);
  background: rgba(246,213,138,.10);
}
html.public-web .landing-login-link {
  color: #171107 !important;
  background: linear-gradient(135deg, var(--pw-gold-2), var(--pw-gold) 58%, #9a632f) !important;
  box-shadow: 0 15px 38px rgba(215,169,79,.25), inset 0 1px 0 rgba(255,255,255,.46);
}
html.public-web .landing-kicker,
html.public-web .seo-kicker {
  color: var(--pw-gold-2);
  font-family: var(--pw-body);
  font-weight: 900;
  letter-spacing: .24em;
}
html.public-web .landing-hero h1,
html.public-web .catalog-head h1,
html.public-web .auth-card h1,
html.public-web .seo-product-card h1 {
  font-family: var(--pw-display);
  font-weight: 800;
  letter-spacing: -.075em;
  color: var(--pw-ink);
  text-shadow: 0 16px 80px rgba(0,0,0,.48);
}
html.public-web.real-desktop .landing-hero h1 {
  max-width: 980px;
  font-size: clamp(58px, 4.85vw, 88px);
  line-height: .98;
}
html.public-web.real-desktop .catalog-head h1 {
  font-size: clamp(58px, 4.75vw, 86px);
  line-height: .98;
}
html.public-web .landing-lead,
html.public-web .catalog-head p,
html.public-web .auth-lead,
html.public-web .seo-product-card p {
  color: var(--pw-soft);
  font-weight: 500;
}
html.public-web.real-desktop .landing-hero {
  grid-template-columns: minmax(570px, .95fr) minmax(520px, 1.05fr);
  align-items: center;
  min-height: min(790px, calc(100svh - 78px));
}
html.public-web .landing-hero-copy {
  animation: bincore-rise .7s cubic-bezier(.2,.8,.2,1) both;
}
html.public-web .landing-hero-card {
  animation: bincore-rise .78s cubic-bezier(.2,.8,.2,1) .08s both;
}
html.public-web .landing-primary,
html.public-web .landing-secondary,
html.public-web .auth-bot-link {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  font-family: var(--pw-body);
  letter-spacing: -.02em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
html.public-web .landing-primary {
  color: #151005;
  background: linear-gradient(135deg, #fff3bf 0%, var(--pw-gold-2) 28%, var(--pw-gold) 68%, #9b6631 100%);
  box-shadow: 0 22px 70px rgba(215,169,79,.32), inset 0 1px 0 rgba(255,255,255,.58), inset 0 -1px 0 rgba(69,43,15,.38);
}
html.public-web .landing-primary::after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -40%;
  width: 34%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  opacity: .72;
  transition: left .6s ease;
}
html.public-web.real-desktop .landing-primary:hover::after { left: 115%; }
html.public-web.real-desktop .landing-primary:hover,
html.public-web.real-desktop .landing-secondary:hover,
html.public-web.real-desktop .auth-bot-link:hover {
  transform: translateY(-2px);
}
html.public-web .landing-secondary,
html.public-web .auth-bot-link {
  color: var(--pw-ink);
  background: rgba(255,247,232,.055);
  border: 1px solid var(--pw-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
html.public-web.real-desktop .landing-secondary:hover,
html.public-web.real-desktop .auth-bot-link:hover {
  border-color: var(--pw-line-strong);
  background: rgba(246,213,138,.09);
  box-shadow: 0 18px 50px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.09);
}
html.public-web .landing-note {
  color: var(--pw-muted);
}
html.public-web .landing-trust-strip {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
html.public-web .landing-trust-strip span {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 11px 14px;
  border: 1px solid rgba(246,213,138,.13);
  border-radius: 16px;
  color: rgba(255,247,232,.57);
  background: rgba(255,247,232,.045);
}
html.public-web .landing-trust-strip b {
  color: var(--pw-gold-2);
  font-family: var(--pw-display);
  font-size: 12px;
  letter-spacing: -.04em;
}
html.public-web .landing-dashboard-card,
html.public-web .auth-card,
html.public-web .catalog-public-card,
html.public-web .seo-product-card,
html.public-web .landing-grid article {
  border: 1px solid var(--pw-line);
  background:
    linear-gradient(145deg, rgba(255,247,232,.105), rgba(255,247,232,.035) 42%, rgba(0,0,0,.16)),
    rgba(11, 11, 8, .72);
  box-shadow: var(--pw-shadow), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(20px) saturate(1.08);
}
html.public-web .landing-dashboard-card {
  overflow: hidden;
}
html.public-web .landing-dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(246,213,138,.18), transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(246,213,138,.045) 39px 40px);
  opacity: .72;
}
html.public-web .landing-dashboard-card > * {
  position: relative;
  z-index: 1;
}
html.public-web .landing-terminal-value {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 26px;
  font-family: var(--pw-display);
  color: var(--pw-gold-2);
  font-size: clamp(42px, 4vw, 68px);
  line-height: .85;
  letter-spacing: -.08em;
}
html.public-web .landing-terminal-value span {
  font-family: var(--pw-body);
  color: var(--pw-muted);
  font-size: 15px;
  letter-spacing: -.02em;
}
html.public-web .landing-dashboard-card h2 {
  font-family: var(--pw-display);
  letter-spacing: -.07em;
  color: var(--pw-ink);
}
html.public-web .landing-dashboard-card li {
  border: 1px solid rgba(246,213,138,.10);
  background: linear-gradient(90deg, rgba(246,213,138,.12), rgba(255,255,255,.035));
}
html.public-web .landing-dashboard-card li b {
  color: var(--pw-ink);
}
html.public-web .landing-dashboard-card li span {
  color: var(--pw-muted);
}
html.public-web .landing-dots span:first-child { background: var(--pw-gold-2); }
html.public-web .landing-dots span:nth-child(2) { background: rgba(246,213,138,.52); }
html.public-web .landing-dots span:nth-child(3) { background: rgba(255,247,232,.35); }
html.public-web .landing-grid article {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
html.public-web.real-desktop .landing-grid article:hover {
  transform: translateY(-5px);
  border-color: var(--pw-line-strong);
  background:
    linear-gradient(145deg, rgba(246,213,138,.13), rgba(255,247,232,.04) 48%, rgba(0,0,0,.13)),
    rgba(15, 14, 10, .78);
}
html.public-web .landing-grid article span {
  color: var(--pw-gold-2);
  font-family: var(--pw-display);
}
html.public-web .landing-grid article h2 {
  font-family: var(--pw-display);
  color: var(--pw-ink);
  letter-spacing: -.06em;
}
html.public-web .landing-grid article p {
  color: var(--pw-muted);
}
html.public-web .catalog-search {
  color: var(--pw-ink);
  border-color: var(--pw-line);
  background: rgba(6,6,4,.64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 54px rgba(0,0,0,.22);
}
html.public-web .catalog-search:focus {
  border-color: var(--pw-line-strong);
  box-shadow: 0 0 0 4px rgba(215,169,79,.12), inset 0 1px 0 rgba(255,255,255,.07);
}
html.public-web .catalog-search::placeholder {
  color: rgba(255,247,232,.42);
}
html.public-web .catalog-public-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,247,232,.082), rgba(255,247,232,.03)), rgba(8,8,6,.72);
}
html.public-web.real-desktop .catalog-public-card:hover {
  transform: translateY(-7px);
  border-color: rgba(246,213,138,.42);
  background: linear-gradient(180deg, rgba(246,213,138,.105), rgba(255,247,232,.036)), rgba(12,12,9,.82);
  box-shadow: 0 34px 110px rgba(0,0,0,.58), 0 0 0 1px rgba(246,213,138,.05) inset;
}
html.public-web .catalog-product-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(246,213,138,.12);
}
html.public-web .catalog-product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.58));
}
html.public-web .catalog-product-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: saturate(.93) contrast(1.05);
  transition: transform .35s ease, filter .35s ease;
}
html.public-web.real-desktop .catalog-public-card:hover .catalog-product-media img {
  transform: scale(1.045);
  filter: saturate(1.02) contrast(1.08);
}
html.public-web .catalog-product-media span {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(246,213,138,.28);
  border-radius: 999px;
  color: var(--pw-gold-2);
  background: rgba(5,5,3,.72);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html.public-web .catalog-public-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}
html.public-web .catalog-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
html.public-web .catalog-card-topline .seo-kicker {
  margin: 0;
  font-size: 10px;
}
html.public-web .catalog-card-topline em {
  flex-shrink: 0;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,247,232,.52);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
html.public-web .catalog-public-card h2 {
  font-family: var(--pw-display);
  line-height: 1.12;
  letter-spacing: -.062em;
}
html.public-web .catalog-public-card h2 a {
  color: var(--pw-ink);
}
html.public-web .catalog-public-card p:not(.seo-kicker) {
  color: var(--pw-muted);
  font-weight: 500;
}
html.public-web .catalog-public-footer {
  margin-top: auto;
  padding-top: 18px;
}
html.public-web .catalog-public-footer b,
html.public-web .seo-price {
  color: var(--pw-gold-2);
  font-family: var(--pw-display);
  letter-spacing: -.06em;
}
html.public-web .catalog-public-footer a {
  color: #151005;
  background: linear-gradient(135deg, #fff3bf, var(--pw-gold) 70%, #9b6631);
  box-shadow: 0 14px 34px rgba(215,169,79,.20), inset 0 1px 0 rgba(255,255,255,.42);
  transition: transform .18s ease, box-shadow .18s ease;
}
html.public-web.real-desktop .catalog-public-footer a:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(215,169,79,.28), inset 0 1px 0 rgba(255,255,255,.48);
}
html.public-web .catalog-loading {
  border: 1px solid var(--pw-line);
  background: rgba(255,247,232,.045);
  color: var(--pw-muted);
}
html.public-web .seo-product-card img {
  border: 1px solid rgba(246,213,138,.16);
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
}
html.public-web .seo-back {
  color: var(--pw-gold-2);
  font-weight: 800;
}
html.public-web .auth-card {
  background: linear-gradient(145deg, rgba(246,213,138,.12), rgba(255,247,232,.04)), rgba(8,8,6,.82);
}
html.public-web .auth-status {
  border: 1px solid rgba(246,213,138,.13);
  background: rgba(255,247,232,.05);
  color: var(--pw-muted);
}
html.public-web .auth-status[data-kind="ok"] {
  color: var(--pw-green);
  background: rgba(158,230,173,.10);
  border-color: rgba(158,230,173,.24);
}
html.public-web .auth-status[data-kind="error"] {
  color: var(--pw-danger);
  background: rgba(255,143,125,.10);
  border-color: rgba(255,143,125,.24);
}
html.public-web .auth-status[data-kind="warn"] {
  color: var(--pw-gold-2);
  background: rgba(215,169,79,.10);
  border-color: rgba(215,169,79,.24);
}
html.public-web .auth-steps b {
  color: #151005;
  background: linear-gradient(135deg, var(--pw-gold-2), var(--pw-gold));
}
html.public-web .auth-steps div {
  color: var(--pw-muted);
}
@keyframes bincore-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  html.public-web *, html.public-web *::before, html.public-web *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 620px) {
  html.public-web .landing-trust-strip {
    grid-template-columns: 1fr;
  }
  html.public-web .landing-nav nav {
    padding: 5px;
  }
  html.public-web .landing-hero h1,
  html.public-web .catalog-head h1,
  html.public-web .auth-card h1 {
    font-family: var(--pw-display);
    letter-spacing: -.07em;
  }
  html.public-web .catalog-card-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  html.public-web .catalog-card-topline em {
    max-width: 100%;
  }
}

/* SEO content blocks */
html.public-web .seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  color: rgba(255,247,232,.52);
  font-size: 13px;
  font-weight: 800;
}
html.public-web .seo-breadcrumbs a {
  color: rgba(246,213,138,.86);
  text-decoration: none;
}
html.public-web .seo-breadcrumbs a:hover { color: var(--pw-gold-2); }
html.public-web .seo-breadcrumbs i {
  color: rgba(255,247,232,.28);
  font-style: normal;
}
html.public-web .seo-category-links,
html.public-web .seo-link-hub nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
html.public-web .seo-category-links a,
html.public-web .seo-link-hub nav a {
  padding: 11px 14px;
  border: 1px solid rgba(246,213,138,.16);
  border-radius: 999px;
  color: rgba(255,247,232,.82);
  background: rgba(255,247,232,.045);
  font-weight: 850;
  font-size: 14px;
  text-decoration: none;
}
html.public-web .seo-category-links a[aria-current="page"],
html.public-web .seo-category-links a:hover,
html.public-web .seo-link-hub nav a:hover {
  color: #161006;
  background: linear-gradient(135deg, var(--pw-gold-2), var(--pw-gold));
  border-color: transparent;
}
html.public-web .seo-link-hub {
  width: min(1480px, calc(100% - 96px));
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: 28px;
  margin: 0 auto 100px;
  padding: 34px;
  border: 1px solid var(--pw-line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(246,213,138,.10), rgba(255,247,232,.035)), rgba(8,8,6,.70);
  box-shadow: var(--pw-shadow), inset 0 1px 0 rgba(255,255,255,.06);
}
html.public-web .seo-link-hub h2,
html.public-web .seo-faq h2,
html.public-web .seo-related h2,
html.public-web .seo-trust-grid h2 {
  font-family: var(--pw-display);
  letter-spacing: -.06em;
  color: var(--pw-ink);
}
html.public-web .seo-link-hub p {
  color: var(--pw-muted);
  line-height: 1.55;
  margin-top: 10px;
}
html.public-web .seo-faq,
html.public-web .seo-related {
  margin-top: 36px;
}
html.public-web .seo-faq h2,
html.public-web .seo-related h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 42px);
}
html.public-web .seo-faq details {
  border: 1px solid var(--pw-line);
  border-radius: 20px;
  background: rgba(255,247,232,.045);
  margin-bottom: 10px;
  overflow: hidden;
}
html.public-web .seo-faq summary {
  cursor: pointer;
  padding: 17px 18px;
  color: var(--pw-ink);
  font-weight: 900;
}
html.public-web .seo-faq details p {
  padding: 0 18px 18px;
  color: var(--pw-muted);
  line-height: 1.55;
}
html.public-web .seo-product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
html.public-web .seo-product-flags li {
  padding: 9px 11px;
  border: 1px solid rgba(246,213,138,.16);
  border-radius: 999px;
  color: rgba(255,247,232,.72);
  background: rgba(255,247,232,.045);
  font-size: 12px;
  font-weight: 850;
}
html.public-web .seo-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
html.public-web .seo-trust-grid article {
  padding: 24px;
  border: 1px solid var(--pw-line);
  border-radius: 26px;
  background: rgba(255,247,232,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
html.public-web .seo-trust-grid h2 {
  margin-bottom: 10px;
  font-size: 22px;
}
html.public-web .seo-trust-grid p {
  color: var(--pw-muted);
  line-height: 1.6;
}
@media (max-width: 860px) {
  html.public-web .seo-link-hub {
    width: min(100% - 28px, 1120px);
    grid-template-columns: 1fr;
    padding: 22px;
  }
  html.public-web .seo-trust-grid {
    grid-template-columns: 1fr;
  }
}
