:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-soft:#f8fbff;
  --line:#e4eaf3;
  --text:#0f172a;
  --muted:#667085;
  --brand:#101828;
  --brand-2:#1d4ed8;
  --accent:#2f6df6;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#dc2626;
  --shadow:0 18px 40px rgba(15,23,42,.06);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%;overflow-x:hidden}
body{font-family:Inter,system-ui,Arial,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;display:flex;flex-direction:column}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.container{max-width:1320px;margin:0 auto;padding:0 18px}
.main{padding:24px 18px 48px;flex:1;width:100%}
.topbar{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.topbar-shell{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-top:max(12px, env(safe-area-inset-top));padding-bottom:12px}
.row{display:flex}.between{justify-content:space-between}.center{align-items:center}.wrap{flex-wrap:wrap}.gap{gap:12px}.gap-sm{gap:10px}
.brand-modern{display:flex;flex-direction:column;padding:10px 0 6px;font-weight:800;font-size:20px;line-height:1.05;flex:1;min-width:0}
.brand-modern small{font-size:11px;letter-spacing:.16em;color:var(--muted);margin-top:6px}
.nav-modern{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-shrink:0;flex-wrap:nowrap}.nav-chip{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:700;white-space:nowrap}
.lang-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:42px;padding:10px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:800}
.topbar-logout{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 10px;color:#8f1d14;font-weight:600;white-space:nowrap}
.link-btn{background:none;border:none;padding:0;cursor:pointer;color:inherit}
.inline-form{display:inline}
.flash{padding:14px 16px;border-radius:16px;margin-bottom:14px;border:1px solid transparent}.flash.success{background:#ecfdf3;color:#166534;border-color:#ccefd9}.flash.error{background:#fef2f2;color:#991b1b;border-color:#ffd3d3}
.footer{border-top:1px solid var(--line);padding:24px 0 36px;background:#fff;margin-top:auto;width:100%}.footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:24px}
.card,.content-card,.metric-card,.brand-card,.side-card{background:var(--surface);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow)}
.narrow{max-width:640px;margin:0 auto}
.wide-form{max-width:920px;margin:0 auto}
.content-card,.brand-card,.side-card{padding:24px}.brand-card.dark{background:linear-gradient(135deg,#0b1220,#18202f);color:#fff;border-color:#1b2738}.brand-card.dark p{color:#d0d7e4}
.eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);font-weight:800}.brand-card .eyebrow{color:#9fb0ca}
.value-lg{font-size:34px;font-weight:800;margin-top:6px}
.dash-layout{display:grid;grid-template-columns:280px 1fr;gap:18px;align-items:start}
.dashboard-sidebar{display:grid;gap:16px;position:sticky;top:92px}
.side-nav{display:grid;gap:8px}.side-nav a{display:flex;align-items:center;min-height:50px;padding:12px 16px;border-radius:16px;background:#fff;border:1px solid var(--line);font-weight:700}.side-nav a.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.side-card.compact{padding:18px 20px}
.dashboard-content{display:grid;gap:18px}
.panel-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:4px 2px 6px}.panel-header h1{margin:4px 0 8px;font-size:36px;line-height:1.05}.panel-header p{margin:0;color:var(--muted);max-width:760px}.panel-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border-radius:16px;border:none;background:var(--brand);color:#fff;font-weight:700;cursor:pointer}.btn.secondary{background:#fff;color:var(--brand);border:1px solid var(--line)}.btn.full{width:100%}.small-btn{min-height:40px;padding:8px 14px;border-radius:14px}.btn:disabled{opacity:.6;cursor:not-allowed}
.stats-grid{display:grid;gap:16px}.stats-grid.four{grid-template-columns:repeat(4,1fr)}
.metric-card{padding:22px;display:grid;gap:8px}.metric-card.interactive{background:linear-gradient(180deg,#fff,#fbfdff)}.metric-card.primary-metric{border-color:#d5e4ff;background:linear-gradient(180deg,#ffffff,#f4f8ff)}.metric-card span{font-size:14px;color:var(--muted)}.metric-card strong{font-size:34px;line-height:1.05}.metric-card small{font-size:13px;color:var(--muted)}
.compact-top{margin-top:-2px}.mt{margin-top:14px}.mt-lg{margin-top:18px}
.content-grid{display:grid;gap:16px}.content-grid.two{grid-template-columns:repeat(2,1fr)}
.section-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px}.section-head h3{margin:0;font-size:24px}.stacked-mobile{align-items:flex-start}
.pill{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#e9f1ff;color:#1d4ed8;font-size:12px;font-weight:700}.pill.soft{background:#eef3f8;color:#475467}
.mini-chart-list{display:grid;gap:12px}.chart-row{display:grid;grid-template-columns:90px 1fr 180px;gap:12px;align-items:center}.compact-chart-row{grid-template-columns:120px 1fr 120px}.chart-label{font-weight:700}.chart-bar-wrap{height:14px;border-radius:999px;background:#edf2f7;overflow:hidden}.chart-bar{height:100%;border-radius:999px;background:linear-gradient(90deg,#2f6df6,#7aa2ff)}.chart-meta{font-size:13px;color:var(--muted);text-align:right}
.stack-list{display:grid;gap:12px}.list-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:#fff}.right-metrics{text-align:right}.empty-box,.empty-cell{color:var(--muted);text-align:center;padding:22px}.empty-cell{background:#fff}
.shortcut-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.shortcut-grid.single-column{grid-template-columns:1fr}.shortcut-card{display:grid;gap:8px;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--surface-soft)}.shortcut-card strong{font-size:16px}.shortcut-card span{font-size:13px;color:var(--muted);word-break:break-all}
.mini-kpi-list,.payout-summary{display:grid;gap:12px}.mini-kpi{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;border-radius:18px;background:var(--surface-soft);border:1px solid var(--line)}.mini-kpi span{color:var(--muted)}.mini-kpi strong{font-size:22px}
.tool-box{padding:16px;border-radius:20px;border:1px solid var(--line);background:var(--surface-soft);margin-bottom:14px}.tool-box label{display:block;font-weight:700;margin-bottom:10px}.copy-row{display:grid;grid-template-columns:1fr auto;gap:10px}.copy-row input{width:100%;padding:13px 14px;border-radius:14px;border:1px solid var(--line);background:#fff}
.check-list{display:grid;gap:10px}.check-list div{padding:14px 16px;border-radius:16px;background:var(--surface-soft);border:1px solid var(--line)}
.form{display:grid;gap:14px}.form input,.form textarea,.form select{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:15px;background:#fff}.form input:disabled{background:#f8fafc;color:#98a2b3}.form textarea{min-height:100px;resize:vertical}.compact{gap:12px}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.settings-grid .wide{grid-column:1/-1}.checkbox-row{display:flex;align-items:center;gap:10px;padding:6px 0}.action-right{display:flex;justify-content:flex-end}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:22px;background:#fff}.table-wrap table{width:100%;border-collapse:collapse;min-width:860px}.table-wrap th,.table-wrap td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.table-wrap th{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.status-badge{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.status-badge.success{background:#eaf8ef;color:#166534}.status-badge.pending{background:#fff4dc;color:#a16207}.status-badge.danger{background:#fdecec;color:#b42318}
.small{font-size:13px;color:var(--muted)}.uppercase{text-transform:uppercase;letter-spacing:.08em}
.application-card{padding:14px 0;border-top:1px solid var(--line)}.application-card:first-of-type{padding-top:0;border-top:none}.application-card.better{padding:18px 0}.qa-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}.qa-block{padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft)}.action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.wide-actions .inline{flex:1}.inline{display:inline-flex;gap:8px;align-items:center}.stack-sm input{min-width:180px}
.auth-card{padding-top:18px}.auth-card-strong{padding:24px 24px 26px}.auth-segmented{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}.auth-pill{display:flex;align-items:center;justify-content:center;min-height:58px;padding:16px 18px;border-radius:18px;border:1px solid var(--line);background:#fff;font-weight:800;letter-spacing:.04em;text-transform:uppercase;font-size:16px;transition:.15s ease}.auth-pill.active{background:#111;color:#fff;border-color:#111;box-shadow:0 10px 24px rgba(17,17,17,.14)}.auth-title{margin:0 0 18px;font-size:34px;line-height:1;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.auth-title-compact{text-transform:none;letter-spacing:0;font-size:38px}.auth-intro{display:grid;gap:10px;margin-bottom:18px}.auth-subtitle{margin:0;color:var(--muted);max-width:680px}.auth-form{gap:16px}.auth-form label{font-weight:600}.auth-submit{margin-top:4px;min-height:52px;font-weight:800;font-size:16px}.auth-shell{margin-top:8px}
.launcher-card{text-align:center;padding:28px}.hub-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.big-tile{display:flex;align-items:center;justify-content:center;min-height:120px;border-radius:22px;border:1px solid var(--line);background:#fff;font-size:28px;font-weight:800;text-align:center;padding:16px;box-shadow:var(--shadow)}.big-tile.dark{background:#111;color:#fff;border-color:#111}.profile-list{display:grid;gap:10px}.status-panel{margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:#f8fafc;text-align:left}
.code-box{padding:14px;border-radius:18px;background:var(--surface-soft);border:1px dashed #cbd5e1;overflow:auto}
.level-rules-list{display:grid;gap:8px;margin:10px 0 12px}.level-rule{display:grid;gap:3px;padding:10px 12px;border-radius:16px;border:1px solid var(--line);background:var(--surface-soft)}.level-rule strong{font-size:14px}.level-rule span{font-size:12px;color:var(--muted)}.level-rule.active{border-color:#d5e4ff;background:#f4f8ff}
.rates-table-wrap table{min-width:760px}.discount-notes{display:grid;gap:10px;margin-top:14px}.discount-note{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px 14px;border-radius:16px;background:var(--surface-soft);border:1px solid var(--line)}.discount-note span{color:var(--muted);font-size:13px}
.vertical-mobile{align-items:center}
@media (max-width:1200px){.stats-grid.four,.content-grid.two,.shortcut-grid,.qa-grid,.settings-grid,.footer-grid,.application-grid,.settings-action-grid{grid-template-columns:1fr 1fr}.dash-layout{grid-template-columns:250px 1fr}}

.hub-grid-three{grid-template-columns:repeat(3,1fr)}.hub-preview-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.hub-mini-card{padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:#fff;text-align:left}
.catalog-hero{display:grid;grid-template-columns:2fr 1fr;gap:18px;align-items:start}.catalog-hero h1{margin:8px 0 10px}.catalog-hero p{margin:0;color:var(--muted)}.catalog-hero-side{display:grid;gap:12px}.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.product-card{display:flex;flex-direction:column;gap:18px}.product-card h3{margin:8px 0 0}.product-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.price-box{display:grid;gap:8px}.price-main{font-size:34px;font-weight:900;line-height:1}.price-old{text-decoration:line-through;color:var(--muted);font-weight:700}.price-discount{font-weight:600;color:var(--success)}.price-discount.muted{color:var(--muted)}.mt-auto{margin-top:auto}
.qr-tool-box .qr-card{display:grid;grid-template-columns:180px 1fr;gap:16px;align-items:center}.qr-image{display:block;width:180px;height:180px;padding:12px;border-radius:18px;background:#fff;border:1px solid var(--line)}.qr-actions{display:grid;gap:10px}
@media (max-width:980px){.dash-layout,.content-grid.two,.stats-grid.four,.settings-grid,.qa-grid,.footer-grid,.shortcut-grid,.hub-grid,.application-grid,.settings-action-grid,.catalog-grid,.catalog-hero,.hub-preview-grid{grid-template-columns:1fr}.dashboard-sidebar{position:static}.panel-header{flex-direction:column}.chart-row,.compact-chart-row,.qr-tool-box .qr-card{grid-template-columns:1fr}.chart-meta{text-align:left}.table-wrap table{min-width:720px}.topbar-shell{align-items:center}.discount-note{flex-direction:column;align-items:flex-start}}
@media (max-width:680px){.container{padding:0 14px}.main{padding:18px 14px 40px}.panel-header h1{font-size:30px}.metric-card strong,.price-main{font-size:28px}.copy-row{grid-template-columns:1fr}.action-right{justify-content:stretch}.action-right .btn{width:100%}.full-mobile{width:100%}.inline{display:flex;flex-wrap:wrap}.big-tile{font-size:22px;min-height:96px}.auth-title{font-size:28px}.auth-title-compact{font-size:30px}.footer{padding-bottom:28px}.topbar-shell{padding-top:max(10px, env(safe-area-inset-top));padding-bottom:10px;gap:10px}.brand-modern{font-size:17px;padding:4px 0}.brand-modern small{font-size:10px;margin-top:4px}.nav-modern{gap:8px}.lang-toggle,.nav-chip{min-height:38px;padding:8px 12px}.topbar-logout{min-height:38px;padding:8px 6px;font-size:14px}.dashboard-sidebar .brand-card{display:none}.side-nav a{min-height:48px}.auth-card-strong{padding:22px 18px 24px}.narrow{max-width:560px}.qr-image{width:100%;height:auto;max-width:220px}}

.segmented-inline{display:flex;gap:10px;flex-wrap:wrap}.segment-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--muted);font-weight:700;cursor:pointer}.segment-btn.active{background:#eef4ff;border-color:#cfe0ff;color:#1d4ed8}
.hidden{display:none !important}.mb0{margin-bottom:0}.application-form-card textarea{min-height:120px}.application-grid .wide{grid-column:1/-1}.application-grid{grid-template-columns:repeat(2,1fr)}.badge{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#eef4ff;color:#1d4ed8;font-weight:700;margin-bottom:16px}.settings-segments{margin-bottom:16px}.settings-panel{display:block}.settings-action-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.settings-toggle-card,.settings-action-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border-radius:20px;border:1px solid var(--line);background:var(--surface-soft)}.settings-toggle-card strong,.settings-action-card strong{display:block;font-size:16px;margin-bottom:4px}.settings-toggle-card small,.settings-action-card small{display:block;color:var(--muted)}.settings-toggle-card input{width:20px;height:20px}.action-card-button{cursor:pointer;text-align:left;color:inherit}.stats-priority-grid{margin-bottom:2px}


.reg-bar{background:linear-gradient(90deg,#4f7cff 0%,#6f96ff 100%);} 
.purchase-bar{background:linear-gradient(90deg,#ff5b6e 0%,#ff7f8d 100%);} 

.bottom-controls-head{margin-bottom:12px}.chart-periods-bottom{margin-top:16px;justify-content:flex-start}


/* V16 profile + topbar polish */
.profile-page{display:grid;gap:18px}
.profile-hero{display:grid;grid-template-columns:1.8fr 1fr;gap:18px;padding:28px}
.profile-hero h1{margin:10px 0 10px;font-size:36px;line-height:1.05}
.profile-hero p{margin:0;color:var(--muted);max-width:760px}
.profile-meta-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.profile-meta-pill{padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft);display:grid;gap:6px}
.profile-meta-pill span{font-size:13px;color:var(--muted)}
.profile-meta-pill strong{font-size:18px;line-height:1.15}
.profile-hero-side{display:grid;gap:14px}
.profile-balance-card{padding:20px;border-radius:22px;background:linear-gradient(180deg,#ffffff,#f4f8ff);border:1px solid #d5e4ff;display:grid;gap:8px}
.profile-balance-card strong{font-size:34px;line-height:1}
.profile-balance-card small{color:var(--muted)}
.profile-quick-actions{display:grid;gap:10px}
.profile-tabs{margin-bottom:18px}
.profile-info-list{display:grid;gap:12px}
.profile-info-list div{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}
.profile-info-list div:last-child{border-bottom:none;padding-bottom:0}
.profile-info-list span{color:var(--muted)}
.profile-info-list strong{text-align:right}
.topbar{position:sticky;top:0;z-index:80}
@media (max-width:980px){
  .profile-hero,.profile-meta-row{grid-template-columns:1fr}
}

/* product refresh v20260403 */
body.menu-open{overflow:hidden}
.product-topbar{background:rgba(255,255,255,.98)}
.topbar-product-shell{align-items:center}
.topbar-left-group{display:flex;align-items:center;gap:14px;min-width:0}
.product-brand{color:#0e5f86}
.product-brand span{font-size:24px}
.product-brand small{font-size:12px;color:#6b7280}
.desktop-nav{gap:12px}
.soft-chip{background:#fff;color:#0f172a;transition:.18s ease;box-shadow:none}
.soft-chip:hover{transform:translateY(-2px);background:#111;color:#fff;border-color:#111}
.mobile-actions{display:none;align-items:center;gap:10px}
.burger-btn{display:none;width:46px;height:46px;border-radius:999px;border:1px solid var(--line);background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer;box-shadow:var(--shadow)}
.burger-btn span{display:block;width:18px;height:2px;background:#111;border-radius:999px}
.mobile-drawer{position:fixed;inset:0;background:rgba(15,23,42,.35);opacity:0;pointer-events:none;transition:.18s ease;z-index:95}
.mobile-menu{position:fixed;top:0;left:0;bottom:0;width:min(82vw,360px);background:#fff;transform:translateX(-100%);transition:.2s ease;z-index:96;border-right:1px solid var(--line);padding:18px 18px calc(18px + env(safe-area-inset-bottom));display:grid;align-content:start;gap:10px;overflow:auto}
body.menu-open .mobile-drawer{opacity:1;pointer-events:auto}
body.menu-open .mobile-menu{transform:translateX(0)}
.mobile-menu-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.mobile-close{border:none;background:#fff;font-size:32px;line-height:1;cursor:pointer}
.mobile-menu-link{display:flex;align-items:center;min-height:46px;padding:12px 14px;border-radius:16px;background:#f8fafc;border:1px solid var(--line);font-weight:700}
.mobile-menu-button{width:100%;cursor:pointer;color:#8f1d14;background:#fff}
.landing-hero{display:grid;grid-template-columns:1.6fr .9fr;gap:20px;padding:32px}
.landing-hero h1{margin:10px 0 12px;font-size:44px;line-height:1.02}
.landing-hero p{margin:0;color:var(--muted);font-size:16px;max-width:760px}
.hero-action-grid{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.elevated-light{background:#fff;color:#111;border:1px solid var(--line);box-shadow:var(--shadow);transition:.18s ease}
.elevated-light:hover{transform:translateY(-2px);background:#111;color:#fff;border-color:#111}
.product-showcase-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product-showcase-card{display:grid;gap:12px;padding:18px;border-radius:24px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);transition:.18s ease}
.product-showcase-card:hover{transform:translateY(-4px)}
.product-showcase-card img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:18px;background:#f3f4f6}
.product-showcase-body{display:grid;gap:6px}
.product-showcase-body strong{font-size:20px}
.product-showcase-body span{font-size:14px;color:var(--muted)}
.product-showcase-price{font-weight:800;color:#0e5f86}
.catalog-main-hero h1{margin:8px 0 10px;font-size:42px}
.catalog-main-hero p{margin:0;color:var(--muted);max-width:760px}
.catalog-product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.catalog-product-card{display:flex;flex-direction:column;border:1px solid var(--line);background:#fff;border-radius:26px;box-shadow:var(--shadow);overflow:hidden}
.catalog-card-link{display:flex;flex-direction:column;gap:0;height:100%}
.catalog-card-image-wrap{position:relative;padding:18px 18px 0}
.catalog-card-image{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:20px;background:#f3f4f6;transition:opacity .22s ease, transform .22s ease}
.catalog-card-image-hover{position:absolute;inset:18px 18px 0 18px;opacity:0}
.catalog-product-card:hover .catalog-card-image-primary{opacity:0}
.catalog-product-card:hover .catalog-card-image-hover{opacity:1}
.catalog-card-body{padding:16px 18px 12px;display:grid;gap:8px}
.catalog-card-title{font-size:24px;font-weight:800;line-height:1.1;color:#0e5f86}
.catalog-card-subtitle{font-size:14px;color:var(--muted);min-height:38px}
.catalog-card-price-row{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.catalog-card-price-row strong{font-size:32px;line-height:1}
.catalog-old-price{text-decoration:line-through;color:#98a2b3;font-weight:700}
.catalog-discount-badge{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border-radius:999px;background:#ecfdf3;color:#166534;font-size:12px;font-weight:800;width:max-content}
.catalog-discount-badge.large{margin-top:8px}
.catalog-card-actions{padding:0 18px 18px}
.catalog-footnote{margin:22px auto 0;max-width:880px;text-align:center;color:#667085;font-size:14px}
.product-detail-card{padding:28px}
.product-detail-grid{display:grid;grid-template-columns:1.15fr .9fr;gap:28px;align-items:start}
.product-gallery-main img{width:100%;max-height:620px;object-fit:contain;border-radius:24px;background:#f5f6fa;border:1px solid var(--line)}
.product-gallery-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.gallery-thumb{width:74px;height:74px;padding:0;border:none;background:transparent;border-radius:16px;overflow:hidden;cursor:pointer;opacity:.72}
.gallery-thumb.active{opacity:1;box-shadow:0 0 0 2px #d5e4ff}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:16px;border:1px solid var(--line)}
.product-detail-body h1{margin:0 0 8px;font-size:46px;line-height:1.04;color:#0e5f86}
.product-detail-subtitle{font-size:20px;color:#27556f;margin-bottom:18px}
.product-detail-description{font-size:16px;color:var(--muted);line-height:1.6;margin:16px 0 20px}
.product-detail-price-row{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}
.product-detail-price-row strong{font-size:44px;line-height:1}
.product-buy-form{display:grid;gap:14px;margin-top:12px}
.product-buy-form label{display:grid;gap:8px;font-weight:700}
.product-buy-form select,.inline-update-form input{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:15px;background:#fff}
.product-buy-btn{width:max-content;min-width:180px;background:linear-gradient(90deg,#ff6d7b,#f0069c)}
.product-detail-specs{display:grid;gap:14px;margin-top:24px}
.product-spec-block strong{display:block;font-size:18px;margin-bottom:6px}
.product-spec-block p{margin:0;color:#27556f;line-height:1.55}
.product-note-list{margin:18px 0 0;padding-left:20px;display:grid;gap:8px;color:#0e5f86}
.product-note-list .accent-note{color:#e11d48}
.product-dyn-link{display:inline-block;margin-top:18px;color:#0e5f86;font-weight:700;text-decoration:underline}
.cart-list{display:grid;gap:14px}
.cart-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:18px;border-radius:20px;border:1px solid var(--line);background:#fff}
.cart-row-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.inline-update-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.inline-update-form input{width:90px}
.cart-line-total{font-size:22px;font-weight:800}
.cart-total-box{display:flex;justify-content:space-between;align-items:center;padding:18px 4px 0;font-size:18px}
.cart-total-box strong{font-size:34px}

@media (max-width:1100px){
  .landing-hero,.product-detail-grid,.catalog-product-grid,.product-showcase-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:780px){
  .desktop-nav{display:none}
  .burger-btn,.mobile-actions{display:flex}
  .topbar-product-shell{align-items:center;justify-content:space-between}
  .product-brand span{font-size:20px}
  .product-brand small{font-size:11px}
  .landing-hero,.product-detail-grid,.catalog-product-grid,.product-showcase-grid{grid-template-columns:1fr}
  .landing-hero{padding:24px}
  .landing-hero h1,.catalog-main-hero h1,.product-detail-body h1{font-size:32px}
  .main{padding-top:18px}
  .topbar-left-group{flex:1;min-width:0}
  .product-brand{min-width:0}
  .product-brand span,.product-brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-site-chip{padding:8px 12px;min-height:40px}
  .catalog-card-title{font-size:22px}
  .catalog-card-price-row strong,.product-detail-price-row strong{font-size:34px}
  .product-gallery-main img{max-height:none;aspect-ratio:1/1;object-fit:contain}
  .cart-row{flex-direction:column;align-items:flex-start}
  .cart-row-actions{width:100%;justify-content:flex-start}
  .footer-grid{grid-template-columns:1fr}
}

/* polish patch 2026-04-06 */
.landing-hero-rich{align-items:stretch}
.hero-badge-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.hero-badge{padding:14px 16px;border-radius:18px;border:1px solid var(--line);background:#fff;display:grid;gap:6px;box-shadow:var(--shadow)}
.hero-badge span{font-size:12px;color:var(--muted)}
.hero-badge strong{font-size:18px;line-height:1.15}
.hero-side-stack{align-content:start}
.quick-panel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.feature-shortcut-card{min-height:170px;display:grid;align-content:start;gap:10px}
.feature-shortcut-card strong{font-size:20px;color:#0e5f86}
.feature-shortcut-card span{color:var(--muted);line-height:1.55}
.section-slab{display:grid;gap:18px}
.catalog-main-hero-rich{display:grid;grid-template-columns:1.4fr .8fr;gap:18px;align-items:end}
.catalog-hero-side{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.catalog-card-actions-split{display:flex;gap:10px;align-items:center;justify-content:space-between}
.catalog-inline-form{margin:0}
.cart-head-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
@media (max-width:980px){
  .hero-badge-row,.quick-panel-grid,.catalog-main-hero-rich,.catalog-hero-side{grid-template-columns:1fr}
}

/* patch 2026-04-06 referral balance + mobile header + rectangular cards */
.hero-badge-row-four{grid-template-columns:1.25fr .8fr 1.15fr .8fr}
.hero-badge-compact{min-width:0}
.product-showcase-image-wrap{position:relative;border-radius:18px;background:#fff;overflow:hidden}
.product-showcase-image{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:18px;background:#fff;transition:opacity .22s ease}
.product-showcase-image-hover{position:absolute;inset:0;opacity:0}
.product-showcase-card:hover .product-showcase-image-primary{opacity:0}
.product-showcase-card:hover .product-showcase-image-hover{opacity:1}
.product-showcase-card{align-content:start}
.product-showcase-card img{background:#fff}
.catalog-card-image-wrap{position:relative;padding:18px 18px 0}
.catalog-card-image{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:20px;background:#fff;transition:opacity .22s ease}
.catalog-card-image-hover{position:absolute;inset:18px 18px 0 18px;opacity:0}
.catalog-product-card:hover .catalog-card-image-primary{opacity:0}
.catalog-product-card:hover .catalog-card-image-hover{opacity:1}
.catalog-card-body{position:relative;z-index:2;background:#fff}
.product-gallery-main{display:flex;align-items:center;justify-content:center;border-radius:24px;background:#fff;border:1px solid var(--line);padding:18px}
.product-gallery-main img{width:100%;height:auto;max-height:620px;object-fit:contain;border-radius:20px;background:#fff;border:none;aspect-ratio:auto}
.gallery-thumb img{object-fit:contain;background:#fff}
.cart-balance-box{display:grid;gap:16px;padding:20px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow)}
.cart-balance-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.cart-balance-amount{font-size:28px;font-weight:800;color:#0e5f86;white-space:nowrap}
.toggle-line{display:flex;align-items:center;gap:10px;font-weight:700}
.balance-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.balance-mode-card{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#f8fafc}
.balance-mode-card input[type="number"]{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.cart-checkout-row{display:flex;justify-content:flex-end}
.mobile-burger-btn{display:none}
.mobile-logout-form{display:flex}
.mobile-logout-btn{padding:8px 0;min-height:auto;color:#0f172a}
.burger-btn{display:none;width:28px;height:28px;border:none;background:transparent;align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer;box-shadow:none;border-radius:0;padding:0}
.burger-btn span{display:block;width:22px;height:2px;background:#111;border-radius:999px}
@media (max-width:980px){
  .hero-badge-row-four{grid-template-columns:1fr 1fr}
}
@media (max-width:780px){
  .mobile-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex:0 0 auto}
  .mobile-burger-btn{display:flex}
  .topbar-product-shell{gap:10px}
  .topbar-left-group{min-width:0;flex:1 1 auto}
  .product-brand span{font-size:19px}
  .product-brand small{font-size:10px}
  .lang-toggle{min-width:54px;height:40px}
  .mobile-site-chip{padding:8px 12px;min-height:40px}
  .mobile-logout-btn{font-size:14px}
  .product-showcase-image,.catalog-card-image{aspect-ratio:4/3;object-fit:contain;background:#fff}
  .product-gallery-main{padding:12px;background:#fff}
  .product-gallery-main img{max-height:none;aspect-ratio:auto;object-fit:contain;background:#fff}
  .balance-mode-grid,.hero-badge-row-four{grid-template-columns:1fr}
  .cart-checkout-row{justify-content:stretch}
  .cart-checkout-row .btn{width:100%}
}


/* patch 2026-04-06 safe modal checkout + rectangular featured cards */
.product-showcase-card .product-showcase-image{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:18px;background:#fff;display:block}
.product-showcase-card .product-showcase-image-hover{position:absolute;inset:0;opacity:0}
.product-showcase-card:hover .product-showcase-image-primary{opacity:0}
.product-showcase-card:hover .product-showcase-image-hover{opacity:1}
.product-showcase-image-wrap{position:relative;display:block;border-radius:18px;background:#fff;overflow:hidden;padding:14px;min-height:0}
.product-showcase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.product-showcase-card{display:flex;flex-direction:column;gap:14px;align-content:start;padding:14px;border:1px solid var(--line);background:#fff;border-radius:24px;box-shadow:var(--shadow);overflow:hidden}
.product-showcase-card img{background:#fff}
.product-showcase-body{display:grid;gap:6px;padding:0 2px 4px}
.product-showcase-body strong{font-size:22px;line-height:1.1;color:#0e5f86}
.product-showcase-body span{font-size:14px;color:var(--muted);min-height:38px}
.product-showcase-price{font-size:26px;font-weight:800;color:#0e5f86}

.checkout-launch-row{display:flex;justify-content:flex-end;margin-top:18px}
.checkout-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:24px;z-index:1200}
.checkout-modal.is-open{display:flex}
.checkout-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.42)}
.checkout-modal-card{position:relative;z-index:1;width:min(680px,100%);max-height:min(90vh,900px);overflow:auto;padding:24px;border-radius:28px;background:#fff;box-shadow:0 25px 80px rgba(15,23,42,.18);display:grid;gap:18px}
.checkout-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.checkout-modal-head h3{margin:4px 0 0;font-size:30px;line-height:1.05;color:#0e5f86}
.checkout-modal-close{border:none;background:transparent;font-size:34px;line-height:1;cursor:pointer;padding:0 4px;color:#64748b}
.checkout-customer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}
.checkout-customer-grid label{display:grid;gap:8px;font-weight:700;color:#0f172a}
.checkout-customer-grid label span{font-size:14px;color:var(--muted)}
.checkout-customer-grid input,.checkout-customer-grid textarea{width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;font:inherit;color:#0f172a;outline:none}
.checkout-customer-grid textarea{height:110px;min-height:110px;max-height:110px;resize:none}
.checkout-customer-grid input:focus,.checkout-customer-grid textarea:focus{border-color:#0e5f86;box-shadow:0 0 0 3px rgba(14,95,134,.12)}
.checkout-customer-grid-full{grid-column:1 / -1}

.checkout-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.checkout-price-box{padding:16px;border:1px solid var(--line);border-radius:18px;background:#f8fafc;display:grid;gap:6px}
.checkout-price-box span{font-size:13px;color:var(--muted)}
.checkout-price-box strong{font-size:26px;line-height:1.1;color:#0e5f86}
.checkout-option-toggle{display:flex;align-items:center;gap:10px;font-weight:700;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:#f8fafc}
.checkout-slider-wrap{display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}
.checkout-slider-wrap input[type=range]{width:100%}
.checkout-slider-caption{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:14px;color:var(--muted)}
.checkout-confirm-row{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.checkout-ghost-btn{background:#fff;color:#0f172a;border:1px solid var(--line)}
body.modal-open{overflow:hidden}

@media (max-width:980px){.product-showcase-grid{grid-template-columns:1fr 1fr}}
@media (max-width:720px){.product-showcase-grid{grid-template-columns:1fr}.product-showcase-card .product-showcase-image{aspect-ratio:5/4}.checkout-modal{padding:14px}.checkout-modal-card{padding:18px;border-radius:24px}.checkout-modal-head h3{font-size:24px}.checkout-customer-grid{grid-template-columns:1fr}.checkout-price-grid{grid-template-columns:1fr}.checkout-launch-row{justify-content:stretch}.checkout-launch-row .btn{width:100%}}


/* patch 2026-04-06 stable hover rectangles */
.catalog-card-image-wrap,.product-showcase-image-wrap{display:grid;place-items:center;align-items:center}
.catalog-card-image-wrap{padding:18px;min-height:300px}
.catalog-card-image,.catalog-card-image-hover,.product-showcase-image,.product-showcase-image-hover{grid-area:1 / 1}
.catalog-card-image,.catalog-card-image-hover{position:static;inset:auto;width:100%;height:264px;max-width:100%;aspect-ratio:auto;object-fit:contain;border-radius:20px;background:#fff;transition:opacity .22s ease}
.catalog-card-image-hover{opacity:0}
.catalog-product-card:hover .catalog-card-image-primary{opacity:0}
.catalog-product-card:hover .catalog-card-image-hover{opacity:1}
.catalog-card-link{height:auto}
.catalog-card-body{padding-top:14px}
.product-showcase-image-wrap{padding:14px;min-height:250px}
.product-showcase-image,.product-showcase-image-hover{position:static;inset:auto;width:100%;height:220px;max-width:100%;aspect-ratio:auto;object-fit:contain;border-radius:18px;background:#fff;transition:opacity .22s ease}
.product-showcase-image-hover{opacity:0}
.product-showcase-card:hover .product-showcase-image-primary{opacity:0}
.product-showcase-card:hover .product-showcase-image-hover{opacity:1}
.checkout-slider-wrap{display:none}
.checkout-slider-caption strong{white-space:nowrap}
@media (max-width:780px){.catalog-card-image-wrap{min-height:260px}.catalog-card-image,.catalog-card-image-hover{height:220px}.product-showcase-image-wrap{min-height:220px}.product-showcase-image,.product-showcase-image-hover{height:190px}}


/* mobile stability patch 2026-04-06 */
.btn{max-width:100%;text-align:center;white-space:normal;word-break:break-word}
.content-card,.side-card,.profile-hero,.profile-hero-main,.profile-hero-side,.profile-quick-actions,.profile-tabs,.segmented-inline,.profile-meta-row,.profile-meta-pill,.profile-info-list,.profile-info-list div,.table-wrap{min-width:0}
.profile-meta-pill strong,.profile-info-list strong{overflow-wrap:anywhere;word-break:break-word}
.table-wrap{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
@media (max-width:780px){
  .mobile-logout-form,.mobile-logout-btn{display:none!important}
  .profile-hero{padding:22px 16px}
  .profile-meta-row{grid-template-columns:1fr;gap:10px}
  .profile-quick-actions .btn,.profile-tabs .segment-btn{width:100%}
  .segmented-inline{display:grid;grid-template-columns:1fr;gap:10px}
  .segment-btn{width:100%;max-width:100%}
  .profile-info-list div{display:grid;grid-template-columns:1fr;gap:6px}
  .profile-info-list strong{text-align:left}
  .table-wrap{overflow-x:auto;overflow-y:hidden}
}


/* desktop inline burger fix */
.topbar,.topbar-shell,.topbar-product-shell,.desktop-header-actions,.desktop-static-actions,.desktop-inline-menu{overflow:visible}
.topbar-shell{align-items:center}
.desktop-nav{display:none}
.desktop-header-actions{display:flex;align-items:center;gap:12px;margin-left:auto;min-width:0}
.desktop-static-actions{display:flex;align-items:center;gap:12px;position:relative;z-index:2}
.desktop-inline-menu{display:flex;align-items:center;gap:12px;max-width:0;opacity:0;overflow:hidden;transform:translateX(24px);transition:max-width .26s ease, opacity .2s ease, transform .2s ease, margin-right .2s ease;white-space:nowrap}
.desktop-burger-btn{display:inline-flex;transition:none}
.desktop-burger-btn:hover,.desktop-burger-btn:focus-visible{transform:none;background:transparent;border-color:var(--line)}
.desktop-burger-btn:hover span,.desktop-burger-btn:focus-visible span{background:#111}
body.desktop-menu-open .desktop-inline-menu{max-width:980px;opacity:1;transform:translateX(0);margin-right:4px}
body.desktop-menu-open .desktop-burger-btn span:nth-child(1){transform:translateY(6px) rotate(45deg)}
body.desktop-menu-open .desktop-burger-btn span:nth-child(2){opacity:0}
body.desktop-menu-open .desktop-burger-btn span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.desktop-inline-logout{color:#b42318;font-weight:800;padding:10px 16px;border-radius:999px;transition:background .18s ease,color .18s ease}
.desktop-inline-logout:hover,.desktop-inline-logout:focus-visible{color:#fff;background:#b42318;padding:10px 16px}
.soft-chip{position:relative}
.soft-chip:hover,.soft-chip:focus-visible{transform:translateY(-2px);background:#111;color:#fff;border-color:#111;box-shadow:none}
.nav-chip,.lang-toggle,.burger-btn{position:relative;top:0}
.panel-actions-row{display:flex;gap:12px;flex-wrap:wrap}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);display:flex;align-items:center;justify-content:center;padding:24px;z-index:120}
.modal-backdrop.hidden{display:none}
.modal-card{width:min(760px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 30px 70px rgba(15,23,42,.18);padding:28px}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.modal-head h3{margin:6px 0 0;font-size:34px;line-height:1}
.modal-close{border:none;background:transparent;font-size:40px;line-height:1;cursor:pointer;color:#111827}
.payout-modal-card .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.payout-modal-card input,.payout-modal-card select{width:100%}
@media (max-width:1100px){
  .desktop-nav{display:none}
}
@media (max-width:900px){
  .desktop-header-actions{display:none}
  .mobile-actions{display:flex}
}


.panel-actions-break{
  flex-basis:100%;
  height:0;
}


body.modal-open{overflow:hidden}
.panel-actions-break{flex-basis:100%;height:0}

.payout-modal{position:fixed;inset:0;z-index:2000}
.payout-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.38)}
.payout-modal__dialog{position:relative;width:min(560px,calc(100vw - 32px));margin:80px auto 0;background:#fff;border-radius:24px;padding:28px;box-shadow:0 20px 80px rgba(15,23,42,.18)}
.payout-modal__close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:32px;line-height:1;cursor:pointer}
.payout-form{display:grid;gap:14px}
.payout-form__row{display:grid;gap:8px}
.payout-form__row input{width:100%;min-height:52px;border:1px solid #d9dfeb;border-radius:16px;padding:0 16px;font-size:16px}
.payout-form__hint{color:#667085;font-size:14px;margin-top:4px}
.payout-form__actions{margin-top:8px}
.payout-choice--chips{display:flex;gap:10px;flex-wrap:wrap}
.payout-chip{position:relative;display:inline-flex;align-items:center;cursor:pointer}
.payout-chip input{position:absolute;opacity:0;pointer-events:none}
.payout-chip span{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:999px;border:1px solid #d9dfeb;background:#f8fafc;color:#111827;font-size:14px;font-weight:600;transition:all .18s ease}
.payout-chip input:checked + span{background:#111827;color:#fff;border-color:#111827;box-shadow:0 6px 18px rgba(17,24,39,.16)}
.payout-chip:hover span{transform:none}
