/* Shared storefront presentation. Business states and permissions stay in their modules. */
:root {
  --bg:#0b1524; --panel:#102239; --panel-2:#12283f;
  --line:#294158; --text:#edf4fc; --muted:#afbed0;
  --gold:#edc77b; --gold-2:#f7dfaa; --cyan:#79d8ed;
  --shadow:0 10px 28px #020b1624;
  color-scheme:dark;
}
html { scroll-padding-top:104px; }
body { background:var(--bg); color:var(--text); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:15px; line-height:1.6; letter-spacing:0; }
body::before,.sidebar::before,.hero-copy::after,.product-card::after,.showcase-card::after { display:none; }
button,input,textarea,select { font-family:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:#edc77b20; }
:is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid var(--cyan); outline-offset:4px; }
input,select,textarea { accent-color:var(--gold); }
input::placeholder,textarea::placeholder { color:#8eabc1; opacity:1; }
h1,h2,h3,h4 { text-shadow:none; letter-spacing:-.025em; text-wrap:balance; }
.muted,.lead { color:var(--muted); }
.eyebrow { color:var(--cyan); font-size:.69rem; font-weight:700; letter-spacing:.13em; }
.page-shell { display:flex; flex-direction:column; min-height:100dvh; margin-left:248px; }
.page-shell > main { flex:1; width:100%; }
.wrap { width:min(1260px,100%); padding:0 32px; }
html:not([data-r3y-page]) main > [data-r3y-page] { display:none; }
main > [data-r3y-page] { min-width:0; content-visibility:visible; contain-intrinsic-size:none; }
main > .section { padding:40px 0 16px; scroll-margin-top:104px; }
main > .project-brief { margin:40px 0 16px; }
.section-head { align-items:flex-start; gap:20px; margin-bottom:28px; }
.section-head h2 { margin:8px 0 0; color:var(--text); font-size:clamp(1.7rem,2.7vw,2.6rem); line-height:1.2; background:none; -webkit-text-fill-color:currentColor; }
.section-head .muted { max-width:400px; font-size:.94rem; line-height:1.7; margin:8px 0 0; }
.sidebar { z-index:90; width:248px; gap:12px; padding:20px 16px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#36516a transparent; background:#0d1b2c; border-color:#22384c; box-shadow:none; }
.sidebar-brand { min-height:70px; padding:0 4px 16px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:none; box-shadow:none; }
.sidebar-brand img { width:44px; height:44px; filter:none; }
.sidebar-title strong { color:var(--gold-2); font-size:.81rem; line-height:1.5; letter-spacing:.06em; }
.sidebar-title span { color:var(--muted); font-size:.73rem; }
.sidebar-user { margin:4px 0; padding:14px; border-radius:16px; background:var(--panel); box-shadow:none; border-color:var(--line); }
.sidebar-avatar { box-shadow:none; }
.sidebar-user .btn { min-height:44px; margin-top:10px; font-size:.82rem; }
.side-menu { gap:4px; }
.side-menu-label { padding:10px 12px 6px; color:#90a8c1; font-size:.65rem; letter-spacing:.12em; }
.side-link { min-height:44px; padding:9px 12px; color:#bdcddd; background:transparent; border-color:transparent; border-radius:10px; box-shadow:none; }
.side-link:hover,.side-link.is-active { transform:none; border-color:#36516a; color:#f5f9ff; background:#17314a; box-shadow:none; }
.side-link.is-active { box-shadow:inset 3px 0 0 var(--gold); }
.side-link span:last-child { font-size:.84rem; font-weight:600; }
.side-icon { width:26px; height:26px; border:0; background:#19334c; box-shadow:none; color:var(--cyan); font-weight:600; }
.sidebar-footer { padding:14px 6px 0; border:0; border-top:1px solid var(--line); border-radius:0; color:#9eb4ca; background:none; line-height:1.8; font-size:.74rem; }
.sidebar-footer a { display:inline-block; padding:6px 0; color:var(--cyan); }
.sidebar-backdrop { z-index:89; background:#020a17b8; backdrop-filter:blur(3px); }
.nav { top:12px; width:calc(100% - 48px); margin:16px 24px 0; padding:12px 16px; gap:14px; border-color:var(--line); border-radius:16px; background:#102137f5; box-shadow:0 6px 22px #020b161a; backdrop-filter:blur(16px); }
.menu-toggle { flex:0 0 44px; width:44px; height:44px; padding:0; border-radius:11px; border-color:#36516a; background:#122c44; box-shadow:none; }
.menu-toggle span { width:18px; height:2px; margin:4px auto; background:var(--gold-2); }
.brand { min-width:0; flex:0 1 auto; gap:10px; color:var(--text); text-shadow:none; }
.brand img { width:38px; height:38px; flex:0 0 38px; filter:none; }
.brand span { max-width:175px; color:#f1f6fc; font-size:.79rem; font-weight:700; line-height:1.35; letter-spacing:.055em; }
.nav-links { flex:1 1 auto; justify-content:flex-end; gap:6px; flex-wrap:nowrap; min-width:0; }
.nav-links > a,.nav-action { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:8px 11px; font-size:.8rem; white-space:nowrap; border:1px solid var(--line); border-radius:10px; background:transparent; }
.nav-links > a:hover,.nav-action:hover { transform:none; background:#1b354e; border-color:#426078; }
.nav-links > a.is-active { background:#21384a; color:var(--gold-2); border-color:#8a754e; }
.cart-button span { min-width:21px; height:21px; background:var(--gold); font-size:.7rem; }
.notification-trigger { width:44px; height:44px; flex:0 0 44px; border-radius:11px; background:#152d45; }
.user-pill { min-height:44px; border-color:var(--line); background:#152d45; padding:5px 8px; border-radius:11px; }
.user-pill img { width:28px; height:28px; }
.user-pill span { display:none; }
.hero { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(250px,.8fr); gap:28px; min-height:520px; margin:32px 0 16px; padding:40px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(125deg,#132b43,#102136); box-shadow:none; }
.hero::before { display:none; }
.hero-copy { padding:8px 0; min-width:0; background:none; }
.hero-signal { max-width:100%; margin:0 0 24px; padding:6px 10px; border:1px solid #34536a; background:#173449; border-radius:8px; color:#c0dbe6; font-size:.68rem; letter-spacing:.08em; white-space:normal; }
.hero-signal span { width:6px; height:6px; background:#72d8b0; box-shadow:none; animation:none; }
.hero h1 { max-width:660px; margin:12px 0 20px; padding:0; font-size:clamp(2.5rem,4.5vw,4.3rem); line-height:1.1; letter-spacing:-.045em; color:var(--text); background:none; -webkit-text-fill-color:currentColor; text-wrap:balance; }
.hero h1 span { color:var(--gold-2); }
.hero .lead { max-width:500px; margin:0; font-size:1rem; line-height:1.8; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:26px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:11px 17px; border:1px solid #edc77b; border-radius:11px; background:var(--gold); color:#172334; box-shadow:none; font-size:.86rem; font-weight:700; line-height:1.4; text-align:center; text-shadow:none; }
.btn::after { display:none; }
.btn:hover { transform:none; background:#f4d79c; box-shadow:none; }
.btn.ghost { color:#dbe8f5; border-color:#3c566d; background:#142c43; }
.btn.ghost:hover { color:#fff; border-color:#658199; background:#1b3851; }
.hero-logo { display:flex; align-items:center; justify-content:center; min-width:0; min-height:0; padding:16px; border:0; background:radial-gradient(ellipse,#27607a35,transparent 70%); box-shadow:none; }
.hero-logo img { width:min(100%,340px); max-width:100%; max-height:390px; object-fit:contain; filter:none; animation:none; }
.hero-badges { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:20px 0 0; margin:30px 0 0; overflow:visible; border-top:1px solid #345068; }
.hero-badge,.hero-badge:last-child { min-width:0; min-height:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
.hero-badge strong { color:#e7d2a4; font-size:.84rem; font-weight:650; }
.hero-badge span { margin-top:6px; color:var(--muted); font-size:.73rem; line-height:1.6; }
.ecosystem-card,.product-card,.about-card,.contact-card,.process-step,.catalog-card,.testimonial-card,.community-rating,.support-form,.support-status-card { border-color:var(--line); border-radius:18px; background:var(--panel); box-shadow:none; }
.ecosystem-card,.product-card,.about-card,.contact-card,.process-step { padding:24px; }
.ecosystem-card:hover,.product-card:hover,.process-step:hover,.catalog-card:hover { transform:none; box-shadow:none; border-color:#4a677e; }
.ecosystem-card.featured { background:#142c43; border-color:#4a5660; }
.ecosystem-card h3,.about-card h3,.product-card h3 { color:var(--text); line-height:1.4; }
.ecosystem-card p,.product-card p,.about-card p,.contact-card p { color:var(--muted); line-height:1.8; }
.ecosystem-card .btn,.product-card .btn { margin-top:12px; }
.grid,.ecosystem-grid { gap:18px; }
.grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.price { color:var(--gold-2); font-size:1.1rem; }
.process-step span,.process-step strong { color:var(--gold-2); }
.process-grid { gap:16px; }
.market-tools { grid-template-columns:minmax(0,1fr) auto; gap:12px; margin-bottom:16px; }
.market-search,.market-sort { min-height:48px; padding:0 14px; border-color:var(--line); border-radius:12px; background:var(--panel); }
.market-search input { min-height:46px; }
.market-sort select { min-height:44px; min-width:145px; }
.store-toolbar { display:flex; flex-wrap:wrap; gap:6px; width:100%; padding:6px; margin-bottom:16px; border-color:var(--line); border-radius:13px; background:#0e1f32; }
.filter-button { min-height:44px; padding:10px 15px; color:var(--muted); border-radius:9px; background:transparent; font-size:.83rem; }
.filter-button.is-active { background:#edc77b; color:#172334; box-shadow:none; }
.catalog-results { margin:8px 0 18px; color:var(--muted); font-size:.8rem; }
.catalog-results button,.catalog-empty button { min-height:44px; padding:8px 12px; border-color:#3c566d; border-radius:10px; }
.catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.catalog-card::before { display:none; }
.catalog-image { aspect-ratio:4/3; }
.catalog-body { padding:18px; }
.catalog-title { min-height:2.8em; color:var(--text); font-size:1rem; font-weight:650; line-height:1.45; }
.catalog-card p { margin:10px 0 14px; min-height:3.2em; font-size:.83rem; line-height:1.6; }
.catalog-meta { font-size:.72rem; color:#a6c5d8; }
.catalog-bottom { margin-top:16px; gap:8px; }
.catalog-price { font-size:1rem; color:var(--gold-2); white-space:normal; line-height:1.5; overflow-wrap:anywhere; }
.catalog-add { width:44px; height:44px; border-radius:11px; background:var(--gold); color:#172334; }
.catalog-add.free-asset-download { min-height:44px; padding:10px; }
.favorite-button,.share-button { width:44px; height:44px; background:#0b182de8; box-shadow:none; }
.favorite-button { right:10px; top:10px; }
.share-button { right:62px; top:10px; }
.catalog-badge { left:12px; bottom:12px; max-width:calc(100% - 24px); font-size:.64rem; line-height:1.5; }
.catalog-empty,.member-gate { border-color:#375069; border-radius:18px; background:var(--panel); color:var(--muted); box-shadow:none; }
.member-gate { gap:14px; padding:44px 24px; }
.member-gate p { max-width:480px; }
.testimonials-grid { gap:18px; }
.testimonial-card { padding:24px; }
.testimonial-card h3 { font-weight:600; }
.testimonial-mark { border-color:#635b48; background:#edc77b0d; color:var(--gold); }
.community-rating { padding:28px; gap:32px; scroll-margin-top:110px; }
.community-rating h3,.support-form h3,.support-status-card h3 { color:var(--text); }
.community-score strong { color:var(--gold-2); }
.rating-options label { background:#142c43; border-color:#3b536b; box-shadow:none; }
.rating-options label.is-selected { background:#edc77b16; border-color:#c7a765; }
.support-form,.support-status-card { padding:28px; }
.support-form input,.support-form select,.support-form textarea,.project-request-form input,.project-request-form select,.project-request-form textarea,.auth-form input { min-height:48px; padding:12px 14px; border:1px solid #3a566d; border-radius:10px; background:#0c1c2f; color:var(--text); font-size:.94rem; }
.support-form label,.project-request-form label,.auth-form label { color:#cfdeec; font-weight:500; }
.support-actions button { min-height:48px; }
.support-history-item { border-color:var(--line); background:#142a40; }
.project-brief { gap:28px; padding:28px; border-color:var(--line); border-radius:20px; background:var(--panel); box-shadow:none; }
.brief-intro h2 { color:var(--text); font-size:clamp(1.7rem,2.8vw,2.5rem); line-height:1.2; }
.project-request-form { padding:24px; gap:16px; background:#0e2034; border-color:var(--line); border-radius:16px; }
.brief-submit { flex-wrap:wrap; }
.brief-flow span { padding:10px 12px; border-color:var(--line); background:#142c43; color:#bdd7e7; }
.about-stats { gap:12px; }
.about-stats div,.contact-card > div { border-color:var(--line); background:#142a40; border-radius:12px; }
.about-stats strong { color:var(--gold-2); }
#about .stats { gap:12px; }
#about .stat { padding:16px; border:1px solid var(--line); border-radius:12px; background:#142a40; }
#about .stat strong { color:var(--gold-2); font-size:1.35rem; }
.contact-card { gap:14px; }
.store-drawer { padding:24px; border-color:var(--line); background:#0d1d31; box-shadow:-16px 0 48px #020a174d; }
.drawer-head { align-items:flex-start; border-color:var(--line); padding-bottom:20px; }
.drawer-head h2 { font-size:1.5rem; color:var(--text); line-height:1.3; }
.drawer-content { gap:16px; margin:20px 0; }
.drawer-head > button,.payment-close,.auth-close { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; min-height:44px; padding:0; border:1px solid #3d556b; border-radius:11px; background:#182f46; color:#edf4fc; font-size:1.6rem; line-height:1; }
.drawer-head > button { flex:0 0 auto; width:auto; min-width:64px; padding:8px 12px; font-size:.8rem; }
.cart-row,.order-card,.dashboard-order,.user-project-card,.policy-card,.voucher-box,.notification-card,.delivery-file,.vip-plan { padding:16px; border-color:var(--line); border-radius:14px; background:#13293f; box-shadow:none; }
.cart-row strong,.dashboard-order strong { overflow-wrap:anywhere; }
.payment-options { gap:10px; }
.payment-choice { min-height:60px; border-radius:11px; background:var(--gold); border-color:var(--gold); }
.payment-choice.is-automatic { background:#19354f; border-color:#405c74; }
.checkout-consent { color:#c4d2e3; background:#132b42; border-color:var(--line); line-height:1.7; }
.checkout-assurance { background:#14372f; border-color:#31574a; }
.checkout-assurance small { color:#accabf; }
.payment-modal { overflow-y:auto; overscroll-behavior:contain; }
.payment-card { width:min(460px,100%); max-height:calc(100dvh - 32px); margin:auto; padding:28px; overflow-y:auto; border:1px solid #526077; border-radius:20px; background:#11263d; box-shadow:0 24px 70px #020a1766; }
#paymentModal .payment-close { width:44px; height:44px; min-height:44px; }
.payment-card h2 { font-size:1.7rem; line-height:1.3; }
.payment-proof-form { padding:16px; border-color:var(--line); background:#0e2035; }
.proof-file-picker { border-color:#3a566d; background:#142d44; min-height:48px; }
.auth-modal { overflow-y:auto; overscroll-behavior:contain; }
.auth-card { max-height:calc(100dvh - 32px); overflow-y:auto; padding:30px; border:1px solid #3d5870; border-radius:22px; background:#11283f; box-shadow:0 22px 70px #020a1759; }
.auth-card h2 { color:var(--text); font-size:1.65rem; line-height:1.3; }
.auth-tabs { border-color:var(--line); background:#0d1f33; }
.auth-tabs button { min-height:44px; }
.auth-tabs button.is-active { background:var(--gold); color:#172334; }
.auth-form .btn { min-height:48px; }
.discord-login { min-height:48px; border-color:#6877ed; background:#5260d5; color:#fff; }
.discord-login:hover { background:#616fe3; }
.dashboard-tabs button { min-height:46px; border-radius:11px; font-size:.84rem; background:#12283f; }
.dashboard-tabs button.is-active { background:#213c52; border-color:#94b2c9; }
.dashboard-section-head h3 { font-size:1.4rem; line-height:1.35; color:var(--text); }
.dashboard-order a,.delivery-download,.notification-card a { min-height:44px; align-content:center; }
.dashboard-language select,.vip-plan button { min-height:44px; }
.product-detail-copy h3 { font-size:1.5rem; line-height:1.4; color:var(--text); }
.product-detail-price { color:var(--gold-2); }
.product-detail-actions .btn { min-height:48px; }
.product-trust-grid strong { font-size:.78rem; }
.product-trust-grid small { font-size:.71rem; color:var(--muted); }
.mobile-dock { border-color:#344e66; background:#10273ded; box-shadow:0 5px 25px #020a173d; }
.mobile-dock :is(a,button) { min-height:48px; color:#c4d4e5; }
.mobile-dock a.is-active { color:var(--gold-2); background:#1e3a50; }
.mobile-dock span { color:var(--cyan); }
footer { width:100%; margin-top:48px; padding:24px 32px; border-color:var(--line); background:transparent; color:#9fb4ca; font-size:.77rem; line-height:1.8; }
.footer-links { gap:4px 18px; }
.footer-links a { min-height:44px; display:inline-flex; align-items:center; }
@media(min-width:981px) and (max-width:1280px) {
  .nav { gap:10px; padding:10px 12px; }
  .brand span { max-width:110px; font-size:.72rem; }
  .nav-links > a,.nav-action { padding:8px; font-size:.75rem; }
}
@media(max-width:1100px) { .hero { grid-template-columns:1fr; min-height:0; } .hero-logo { display:none; } .hero-copy { max-width:800px; } .hero h1 { font-size:3.7rem; } }
@media(max-width:980px) {
  .page-shell { margin-left:0; width:100%; }
  .sidebar { width:min(88vw,320px); }
  .nav { width:calc(100% - 32px); margin:16px 16px 0; }
  .wrap { padding:0 24px; }
  .nav-links { display:none; }
  .brand { margin-left:auto; }
  .brand span { max-width:none; font-size:.81rem; }
  .hero { margin-top:24px; padding:32px; }
  .support-layout { grid-template-columns:1fr; }
  .support-status-card { display:grid; grid-template-columns:1fr 1fr; gap:8px 24px; }
  .support-status-card > :is(span,h3,a,details) { grid-column:1/-1; }
  .support-status-card p { margin:6px 0; }
}
@media(max-width:700px) {
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .grid,.ecosystem-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-body { padding:14px; }
  .catalog-title { font-size:.9rem; }
  .catalog-card p { font-size:.78rem; }
  .catalog-price { font-size:.88rem; }
  .store-drawer { padding:20px 16px; }
  .account-drawer { border-radius:0; }
  .checkout-footer { bottom:-20px; margin:14px -16px -20px; padding:4px 16px calc(14px + env(safe-area-inset-bottom)); background:#0d1d31; }
  .product-detail-actions { margin:18px -16px -90px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:#0d1d31; }
  .community-rating { grid-template-columns:1fr; gap:24px; }
}
@media(max-width:640px) {
  body { padding-bottom:82px; background:var(--bg); }
  .wrap { padding:0 16px; }
  .nav { top:8px; width:calc(100% - 24px); margin:12px 12px 0; padding:10px 12px; border-radius:14px; gap:12px; background:#10273d; }
  .menu-toggle { width:44px; height:44px; }
  .brand { gap:8px; }
  .brand img { width:36px; height:36px; flex-basis:36px; }
  .brand span { max-width:190px; font-size:.72rem; }
  .hero { padding:28px 22px; margin-top:20px; border-radius:20px; }
  .hero h1 { font-size:clamp(2.4rem,9.4vw,3.3rem); line-height:1.13; letter-spacing:-.035em; margin:12px 0 20px; }
  .hero .lead { font-size:.94rem; line-height:1.8; }
  .hero-signal { padding:6px 8px; font-size:.62rem; margin-bottom:20px; }
  .hero-badges { gap:16px; margin-top:26px; padding-top:20px; grid-template-columns:1fr; }
  .hero-badge,.hero-badge:last-child { flex:auto; padding:0; min-height:0; }
  .hero-badge strong { font-size:.86rem; }
  .hero-badge span { display:block; margin-top:3px; font-size:.76rem; }
  .actions { display:grid; grid-template-columns:1fr; margin-top:24px; }
  .actions .btn { min-height:48px; font-size:.87rem; padding:12px; }
  main > .section { padding-top:28px; }
  .section-head { flex-direction:column; gap:12px; margin-bottom:22px; }
  .section-head h2 { font-size:1.85rem; line-height:1.25; }
  .section-head .muted { font-size:.9rem; margin:0; }
  .section-head > .btn { min-height:44px; }
  .grid,.ecosystem-grid { grid-template-columns:1fr; gap:14px; }
  .product-card,.ecosystem-card,.about-card,.contact-card,.process-step { padding:22px; }
  .product-card h3 { font-size:1.2rem; }
  .market-tools { grid-template-columns:1fr; gap:10px; }
  .market-search { min-height:48px; }
  .market-sort { min-height:44px; justify-content:space-between; }
  .market-sort select { width:auto; min-width:160px; font-size:.88rem; }
  .store-toolbar { flex-wrap:nowrap; overflow-x:auto; padding:5px; scrollbar-width:thin; scrollbar-color:#4a637a transparent; }
  .filter-button { flex:0 0 auto; padding:10px 13px; font-size:.8rem; }
  .catalog-grid { gap:12px; }
  .catalog-card { border-radius:15px; }
  .catalog-body { padding:12px; }
  .catalog-title { font-size:.85rem; }
  .catalog-card p { font-size:.76rem; line-height:1.55; }
  .catalog-meta { font-size:.66rem; flex-wrap:wrap; gap:4px 8px; }
  .catalog-price { font-size:.86rem; }
  .catalog-bottom { gap:6px; }
  .catalog-badge { left:8px; bottom:8px; padding:4px 6px; font-size:.55rem; }
  .testimonials-grid { grid-template-columns:1fr; gap:14px; }
  .testimonial-card { padding:22px; }
  .community-rating { padding:24px 18px; border-radius:18px; }
  .community-rating h3 { font-size:1.35rem; }
  .community-score strong { font-size:2rem; }
  .support-form,.support-status-card { padding:24px 20px; border-radius:18px; }
  .support-status-card { display:block; }
  .support-status-card p { margin:16px 0; }
  .support-layout { gap:18px; }
  .support-form-grid { grid-template-columns:1fr; gap:0; }
  .support-actions { grid-template-columns:1fr; gap:10px; }
  .support-form input,.support-form select,.support-form textarea,.project-request-form input,.project-request-form select,.project-request-form textarea,.auth-form input { font-size:16px; }
  main > .project-brief { grid-template-columns:1fr; gap:24px; margin:28px 0 16px; padding:22px 16px; border-radius:18px; }
  .project-request-form { grid-template-columns:1fr; gap:16px; padding:18px 14px; }
  .project-request-form .wide { grid-column:auto; }
  .brief-flow { display:grid; grid-template-columns:1fr; overflow:visible; }
  .brief-submit { display:grid; }
  .auth-card { padding:26px 20px; border-radius:22px; }
  .pwa-login-first .auth-card { padding:28px 22px; background:#11283f; border-color:#3d5870; }
  .pwa-login-first #authModal { background:#0b1524; }
  .pwa-login-first .auth-card h2 { color:var(--text); }
  #paymentModal .payment-card { width:min(430px,100%); margin:auto 0; padding:20px 16px; max-height:none; border-radius:18px; }
  #paymentModal h2 { font-size:1.6rem; line-height:1.3; }
  #paymentModal .payment-close { top:0; }
  #paymentModal .payment-proof-form .btn,#paymentModal .payment-card > .btn { min-height:46px; font-size:.84rem; }
  .mobile-dock { bottom:max(8px,env(safe-area-inset-bottom)); left:10px; right:10px; padding:5px; border-radius:15px; }
  .mobile-dock :is(a,button) { min-height:48px; font-size:.7rem; }
  .mobile-dock span { font-size:1rem; }
  .pwa-update,.pwa-status { bottom:calc(84px + env(safe-area-inset-bottom)); width:calc(100% - 32px); border-color:#496178; border-radius:13px; background:#18334b; }
  footer { gap:12px; margin-top:32px; padding:24px 20px 18px; }
}
@media(max-width:380px) {
  .brand span { max-width:145px; font-size:.65rem; }
  .catalog-grid { grid-template-columns:1fr; }
  .catalog-image { aspect-ratio:4/3; }
  .catalog-body { padding:18px; }
  .catalog-title { font-size:1rem; min-height:0; }
  .catalog-card p { font-size:.83rem; }
  .catalog-price { font-size:1rem; }
  .hero { padding:24px 18px; }
  .support-form,.support-status-card { padding:22px 16px; }
  .payment-options { grid-template-columns:1fr; }
}
.progress-intro { max-width:760px; margin:0 0 26px; line-height:1.75; }
.progress-grid > .catalog-empty,.progress-grid > .member-gate { grid-column:1 / -1; }
.progress-grid .showcase-card { min-width:0; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:none; }
.progress-grid .showcase-card:hover { transform:none; border-color:var(--gold); box-shadow:none; }
.progress-grid .card-body { padding:22px; gap:14px; }
.progress-grid .card-title { color:var(--text); font-size:1.08rem; overflow-wrap:anywhere; }
.progress-grid .project-card-top { align-items:flex-start; flex-wrap:wrap; }
.progress-grid .project-summary-text { font-size:.86rem; line-height:1.65; color:var(--muted); }
.progress-grid .project-status { font-size:.65rem; padding:7px 10px; border-color:var(--line); color:var(--cyan); background:#18334b; }
.progress-grid .project-card-meta { color:var(--muted); font-size:.8rem; flex-wrap:wrap; }
.progress-grid .project-card-price { color:var(--gold); font-size:.93rem; }
.progress-grid .project-latest { color:var(--cyan); font-size:.78rem; }
.progress-grid .public-progress i { box-shadow:none; }
@media(max-width:640px) { .progress-grid .card-body { padding:20px; } .progress-grid .showcase-card { border-radius:16px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
