:root {
  --bg:#0a0b0d;
  --bg-soft:#121317;
  --bg-panel:#1b1d22;
  --bg-panel-2:#23262d;
  --text:#f5f2ea;
  --muted:#b8b4ab;
  --gold:#c89224;
  --gold-2:#f0bf59;
  --gold-3:#7f5710;
  --line:rgba(200,146,36,.38);
  --ok:#1ea45d;
  --bad:#c64141;
  --info:#2c8ad6;
  --radius:18px;
  --shadow:0 24px 60px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Inter",sans-serif;color:var(--text)}
body.public-body{background:#090b10;overflow-x:hidden}
body.app-body{background:radial-gradient(circle at top,#2d2e34 0%,#1a1b20 34%,#0c0d10 100%);min-height:100vh}
a{color:inherit;text-decoration:none}
img{max-width:100%}
main{display:block}
body.public-body main{padding-bottom:0}
body.app-body main{padding-bottom:42px}
.flash{max-width:1200px;margin:18px auto 0;padding:14px 18px;border-radius:14px;border:1px solid var(--line);background:#232428}.flash-success{border-color:#2a9b5a66}.flash-error{border-color:#b43a3a66}
.public-topbar,.app-header,.premium-navbar{position:sticky;top:0;z-index:30}.public-topbar{background:#090a0c;border-bottom:1px solid rgba(255,255,255,.06);font-size:14px}.premium-topbar-inner{display:flex;justify-content:space-between;align-items:center;padding:8px 20px;gap:16px}.topbar-left,.topbar-right{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.mini-cta{background:linear-gradient(135deg,var(--gold),#8a6214);padding:10px 14px;border-radius:10px;font-weight:700;box-shadow:0 12px 24px rgba(0,0,0,.25)}.mini-ghost{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.premium-navbar{top:0;margin-top:0;background:rgba(8,10,14,.98);backdrop-filter:blur(14px);border-bottom:2px solid var(--gold)}
.nav-shell{padding:10px 24px}.premium-brand{display:flex;align-items:center;padding:0;margin-right:28px}.premium-brand img{height:112px;width:auto;object-fit:contain;filter:drop-shadow(0 14px 24px rgba(0,0,0,.55))}.premium-nav-links .nav-link{color:#f5f3ee;font-weight:700;padding:12px 14px !important;opacity:.96}.premium-nav-links .nav-link i{color:var(--gold);margin-right:6px}.premium-nav-links .nav-link:hover{color:#fff;text-shadow:0 0 12px rgba(200,146,36,.3)}
.premium-toggler{border-color:rgba(255,255,255,.18)}.premium-toggler .navbar-toggler-icon{filter:invert(1)}
.btn-gold,.btn-primary{background:linear-gradient(135deg,var(--gold),#a87417);color:#fff;border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 36px rgba(0,0,0,.25)}.btn-gold:hover,.btn-primary:hover{background:linear-gradient(135deg,#d19f35,#b67f18);color:#fff}.nav-cta{padding:.8rem 1.2rem;border-radius:12px;font-weight:800}
.app-header{background:linear-gradient(180deg,#2f3137 0%,#24262c 100%);border-bottom:2px solid var(--gold);box-shadow:0 14px 30px rgba(0,0,0,.28)}.header-wrapper{max-width:1380px;margin:0 auto;padding:16px 18px;display:flex;align-items:center;gap:18px}.logo-mark{display:flex;align-items:center;gap:12px;min-width:250px}.logo-mark img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.35))}.logo-mark strong{display:block;font-family:"Roboto Slab",serif;font-size:30px;line-height:1;color:#e7e2d7}.logo-mark span{display:block;letter-spacing:3px;font-size:13px;color:var(--gold);font-weight:700}.main-nav{display:flex;gap:18px;flex:1;flex-wrap:wrap}.main-nav a{font-weight:700;font-size:15px;opacity:.94}.main-nav a.active,.main-nav a:hover{color:#fff;text-shadow:0 0 10px rgba(199,144,33,.35)}.user-pill{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);padding:10px 14px;border-radius:12px;position:relative}.user-pill a{color:var(--gold)}.user-pill-toggle{display:flex;align-items:center;gap:12px;background:none;border:0;color:inherit;padding:0;cursor:pointer;font:inherit}.user-pill-chevron{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.06);color:var(--gold);transition:transform .2s ease,background .2s ease}.user-dropdown.is-open .user-pill-chevron{transform:rotate(180deg);background:rgba(200,146,36,.14)}.user-pill-menu{position:absolute;top:calc(100% + 10px);right:0;min-width:240px;padding:10px;background:linear-gradient(180deg,rgba(28,30,36,.98) 0%,rgba(14,16,21,.98) 100%);border:1px solid rgba(200,146,36,.28);border-radius:16px;box-shadow:0 26px 54px rgba(0,0,0,.45);display:none;z-index:80}.user-dropdown.is-open .user-pill-menu{display:block}.user-pill-menu a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;color:#f6f2e9;font-weight:700;transition:background .2s ease,color .2s ease}.user-pill-menu a i{color:var(--gold);width:18px;text-align:center}.user-pill-menu a:hover{background:rgba(200,146,36,.12);color:#fff}.user-pill-menu a.danger{color:#ffcdc7}.user-pill-menu a.danger i{color:#f19a8f}.user-pill-menu a.danger:hover{background:rgba(198,65,65,.14)}.user-pill-divider{height:1px;background:rgba(255,255,255,.08);margin:8px 0}.hamburger{display:none;background:none;border:0}.hamburger span{display:block;width:28px;height:3px;background:#fff;border-radius:2px;margin:5px 0}
.container{max-width:1200px;margin:0 auto;padding-left:18px;padding-right:18px}
.premium-hero{position:relative;min-height:calc(100vh - 120px);overflow:hidden;display:flex;align-items:center}.hero-slides,.hero-slide,.hero-overlay{position:absolute;inset:0}.hero-slide{background-position:center;background-size:cover;opacity:0;transition:opacity .8s ease}.hero-slide.active{opacity:1}.hero-overlay{background:linear-gradient(90deg,rgba(5,7,10,.85) 0%,rgba(8,10,14,.56) 48%,rgba(11,12,16,.82) 100%)}
.premium-hero-inner{position:relative;z-index:2;padding-top:10rem;padding-bottom:8rem}.section-tag{font-size:.72rem;letter-spacing:.28em;text-transform:uppercase;color:var(--gold);font-weight:700;margin-bottom:18px}
.premium-title,.section-title,.page-title{font-family:"Roboto Slab",serif;font-weight:800;line-height:.98}.premium-title{font-size:clamp(3rem,6vw,5.5rem);max-width:760px;margin:0 0 20px}.premium-title span{color:var(--gold)}.premium-subtitle,.section-copy,.lead,.muted{color:#d2cec4;max-width:640px;font-size:1.05rem;line-height:1.8}
.hero-buttons{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px}.hero-outline{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.25)}.hero-stats-panel{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;width:min(100%,370px)}.hero-stat,.panel,.card,.metric,.table-card,.notice-card,.calendar-card,.premium-card{background:linear-gradient(180deg,rgba(46,47,52,.92) 0%,rgba(24,25,29,.95) 100%);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.hero-stat{padding:22px}.hero-stat strong{display:block;color:var(--gold);font-size:2.05rem;font-weight:800}.hero-stat span{color:#e4dfd4;font-size:.95rem}.hero-dots-wrap{position:absolute;left:50%;transform:translateX(-50%);bottom:22px;z-index:3;display:flex;gap:10px}.hero-dot{width:10px;height:10px;border-radius:999px;border:0;background:rgba(255,255,255,.35)}.hero-dot.active{width:28px;background:var(--gold)}
.premium-section{padding:88px 0}.section-dark{background:#0c0d10}.section-soft{background:linear-gradient(180deg,#121317 0%,#0d0e11 100%)}.section-title{font-size:clamp(2.3rem,4vw,3.5rem);margin:0 0 14px}.premium-card{padding:28px}
.offer-section-shell{max-width:1420px;margin:0 auto;padding-left:24px;padding-right:24px}.offer-grid{row-gap:28px;justify-content:center}.offer-col{display:flex}.offer-card{width:100%;min-height:100%;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}.offer-card:hover{transform:translateY(-6px);border-color:rgba(240,191,89,.7);box-shadow:0 32px 60px rgba(0,0,0,.42)}.offer-icon{font-size:2rem;color:var(--gold);margin-bottom:18px}.offer-card h3,.grant-card h3,.setup-card h3,.quote-form h3{font-family:"Roboto Slab",serif;font-size:1.55rem;margin:0 0 12px}.offer-card p,.setup-card p{color:#c7c2b7;line-height:1.7;min-height:108px}.offer-link{display:inline-flex;margin-top:auto;color:var(--gold-2);font-weight:700}.offer-card{display:flex;flex-direction:column;padding:34px 28px}.section-dark#oferta .section-tag,.section-dark#oferta .section-title,.section-dark#oferta .section-copy{text-align:center}.section-dark#oferta .section-copy{margin-left:auto;margin-right:auto}
.photo-card{border-radius:24px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line)}.photo-card img{display:block;width:100%;height:100%;min-height:360px;object-fit:cover}.feature-list{display:grid;gap:16px;margin-top:28px}.feature-item{display:flex;gap:14px;align-items:flex-start;padding:18px 20px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05)}.feature-item span{display:flex;align-items:center;justify-content:center;min-width:34px;height:34px;border-radius:999px;background:rgba(200,146,36,.15);color:var(--gold);font-weight:800}.feature-item strong{display:block;margin-bottom:4px}.feature-item small{display:block;color:#c6c1b7;line-height:1.65}
.grant-card{position:relative;overflow:hidden}.grant-number{position:absolute;right:22px;top:18px;font-size:3rem;font-weight:800;color:rgba(200,146,36,.14)}.grant-tag{display:inline-flex;padding:7px 12px;border-radius:999px;background:#241c0d;color:#f4d08c;font-size:.78rem;font-weight:700;margin-bottom:16px}.grant-card ul{padding-left:18px;margin:10px 0 0;color:#d4cfc5;line-height:1.9}
.setup-icon{font-size:2rem;color:var(--gold);margin-bottom:18px}.setup-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.setup-tags span{padding:8px 12px;border-radius:999px;background:#2c2413;color:#f4d08c;font-size:.82rem;font-weight:700}
.quote-section{background:radial-gradient(circle at center,#2c210a 0%,#17120a 35%,#0d0d0f 100%)}.quote-grid{min-height:100%;align-items:center}.contact-stack{display:grid;gap:14px;margin-top:28px}.contact-chip{padding:18px 20px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}.contact-chip strong{display:block;margin-bottom:6px}.contact-chip span{color:#cbc6bb}.quote-form{padding:30px;max-width:780px;margin:0 auto}.premium-input{background:#181a1f !important;border:1px solid rgba(255,255,255,.1)!important;color:#fff!important;padding:15px 16px;border-radius:12px}.premium-input::placeholder{color:#87857e}.premium-input:focus{box-shadow:0 0 0 .2rem rgba(200,146,36,.15)!important;border-color:rgba(240,191,89,.55)!important}.select-tile{width:100%;padding:14px 12px;border-radius:12px;background:#191b20;border:1px solid rgba(255,255,255,.1);color:#f7f5ef;font-weight:700}
.partners-section{padding-top:72px;padding-bottom:72px;position:relative;background:#0b0c10;border-bottom:1px solid rgba(255,255,255,.06)}.partners-row{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin-top:26px}.partners-row span{display:flex;align-items:center;justify-content:center;min-height:92px;border:1px solid rgba(255,255,255,.07);border-radius:18px;background:rgba(255,255,255,.02);font-size:1.4rem;font-weight:800;color:#e8dcc0;letter-spacing:.04em}
.premium-footer{padding:56px 0 26px;background:#090a0d;border-top:0;position:relative;z-index:1;margin-top:0}.footer-brand img{height:132px;width:auto;object-fit:contain;filter:drop-shadow(0 10px 24px rgba(0,0,0,.45))}.premium-footer p{color:#bcb7ac;line-height:1.8}.premium-footer h4{font-family:"Roboto Slab",serif;margin-bottom:16px}.footer-links{list-style:none;padding:0;margin:0;display:grid;gap:10px;color:#cac5bb}.footer-bottom{margin-top:32px;padding-top:20px;border-top:1px solid rgba(255,255,255,.06);color:#9e998f}

/* app / panel */
body.app-body{background:radial-gradient(circle at top,#35353a 0%,#1d1f24 34%,#0b0c10 100%);min-height:100vh;color:#f5f2ea}
.app-header{background:linear-gradient(180deg,#2d2e33 0%,#24262b 100%);border-bottom:2px solid var(--gold);box-shadow:0 14px 28px rgba(0,0,0,.28)}
.header-wrapper{max-width:1500px;margin:0 auto;padding:14px 22px;display:flex;align-items:center;gap:24px}
.logo-mark{display:flex;align-items:center;gap:14px;min-width:270px}.logo-mark img{height:88px;width:auto;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(0,0,0,.45))}.brand-copy strong{display:block;font-family:"Roboto Slab",serif;font-size:28px;line-height:1;color:#e7e2d7}.brand-copy span{display:block;letter-spacing:3px;font-size:12px;color:var(--gold);font-weight:800;margin-top:4px}
.main-nav{display:flex;gap:22px;flex:1;align-items:center;flex-wrap:wrap}.main-nav a{font-weight:800;font-size:14px;color:#f2eee5;opacity:.96}.main-nav a i{color:var(--gold);margin-right:5px}.main-nav a.active,.main-nav a:hover{color:#fff;text-shadow:0 0 12px rgba(200,146,36,.28)}
.user-pill{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);padding:8px 12px 8px 0;border-radius:12px}.user-pill-line{width:2px;height:28px;background:var(--gold);margin:0 8px 0 14px}.user-pill span{padding-right:6px}.user-pill a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.04);color:var(--gold)}.hamburger{display:none;background:none;border:0}.hamburger span{display:block;width:28px;height:3px;background:#fff;border-radius:2px;margin:5px 0}

.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at center,#34322d 0%,#23252a 34%,#121317 100%)}
.login-shell{width:min(1320px,100% - 40px);display:grid;grid-template-columns:1fr .95fr;gap:72px;align-items:center}.login-logo{text-align:center}.login-logo img{width:min(520px,88%);max-width:100%;filter:drop-shadow(0 26px 50px rgba(0,0,0,.46))}.form-panel{padding:42px 44px;max-width:560px;justify-self:end;background:linear-gradient(180deg,rgba(45,46,51,.95) 0%,rgba(31,33,38,.97) 100%);border:1px solid rgba(200,146,36,.78);border-radius:18px;box-shadow:0 28px 80px rgba(0,0,0,.36)}.form-panel h1{font-family:"Roboto Slab",serif;font-size:64px;margin:0 0 10px}.subtitle{color:#cfcfcf;margin-bottom:28px}.login-form{display:grid;gap:18px}.form-group{margin-bottom:2px}.form-group label{display:block;font-weight:700;margin-bottom:10px}.input-shell{position:relative}.input-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#c8c5be;opacity:.9}.field,.select,textarea{width:100%;padding:16px 18px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:#38393e;color:#fff;font-size:16px}.input-shell .field{padding-left:48px}.field:focus,.select:focus,textarea:focus{outline:none;border-color:#fff;box-shadow:0 0 0 3px rgba(199,144,33,.18)}textarea{min-height:120px;resize:vertical}.btn-login{width:100%;padding:16px 20px;border-radius:12px;font-size:18px;font-weight:800;border:none;margin-top:8px}

.app-dashboard{padding-top:24px;padding-bottom:42px}.hero-dashboard{display:grid;grid-template-columns:minmax(0,1.15fr) 320px;gap:36px;align-items:start;padding:28px 0 12px}.page-header{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.page-title{font-size:clamp(2.8rem,4vw,4rem);margin:0 0 8px;font-family:"Roboto Slab",serif;line-height:1}.quick-links{display:flex;gap:14px;flex-wrap:wrap;margin:26px 0 18px}.quick-links .btn-primary,.chat-send,.btn-card,.btn-primary{padding:12px 18px;border-radius:12px;font-weight:800;border:none}.stats-panel{padding:28px 26px;background:radial-gradient(circle at right,#53310f 0%,#3a2510 26%,rgba(38,28,16,.96) 52%,rgba(30,31,37,.96) 100%);min-height:168px;border:1px solid rgba(207,150,38,.74);border-radius:18px;box-shadow:0 24px 50px rgba(0,0,0,.35)}.stats-panel h3{font-family:"Roboto Slab",serif;font-size:48px;margin:0 0 14px;color:var(--gold)}.stats-copy{font-size:1.1rem;color:#efe7d2}.lucky-card{padding:20px 22px;text-align:center;background:linear-gradient(180deg,rgba(61,62,68,.96) 0%,rgba(39,40,46,.95) 100%);border:1px solid rgba(207,150,38,.76);border-radius:18px;box-shadow:0 22px 60px rgba(0,0,0,.35)}.lucky-card img{width:132px;height:132px;object-fit:cover;border-radius:999px;border:3px solid var(--gold);box-shadow:0 12px 24px rgba(0,0,0,.34);margin:8px auto 18px;display:block}.lucky-card h3{font-family:"Roboto Slab",serif;margin:0 0 10px;font-size:28px}

.team-chat{padding:16px 16px 12px;border-radius:16px;background:linear-gradient(180deg,rgba(28,29,33,.98) 0%,rgba(23,24,28,.98) 100%);border:1px solid rgba(255,255,255,.06);box-shadow:0 20px 40px rgba(0,0,0,.26)}.chat-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px}.chat-title{font-weight:800;color:#f4f1ea}.chat-dot{display:inline-block;width:9px;height:9px;border-radius:999px;background:#e5d6fb;box-shadow:0 0 0 4px rgba(214,188,255,.12);margin-right:10px}.chat-messages{max-height:190px;overflow:auto;padding:4px 4px 6px}.chat-row{display:grid;grid-template-columns:48px 1fr;gap:10px;font-size:14px;padding:5px 0}.chat-time{color:#62656d;font-size:12px;padding-top:2px}.chat-body{color:#dfdad0;line-height:1.5}.chat-author{font-weight:800;margin-right:10px}.chat-author.gold{color:#d79b22}.chat-author.green{color:#56b867}.chat-form{display:grid;grid-template-columns:1fr 96px;gap:10px;margin-top:10px}.chat-input{background:#32333a;border:1px solid rgba(255,255,255,.1);padding:13px 15px}.chat-send{min-width:auto}

.section-mini-title{font-weight:800;color:var(--gold);margin:18px 0 10px}.stack{display:grid;gap:16px}.notice-card{padding:18px 20px}.notice-card h4{margin:0 0 8px;font-size:24px;font-family:"Roboto Slab",serif}.notice-card p{margin:0;color:#cec7bc;line-height:1.75}.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);font-weight:800;margin-bottom:10px}.notice-bottom{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:16px;flex-wrap:wrap}.notice-meta{color:var(--muted);font-size:13px}.btn-outline-soft{background:rgba(255,255,255,.04);color:#e9ddbf;border:1px solid rgba(200,146,36,.45)}
.map-panel{margin-top:18px;padding:28px;border-radius:18px;background:linear-gradient(180deg,rgba(35,36,41,.98) 0%,rgba(27,28,33,.98) 100%);border:1px solid rgba(255,255,255,.06)}.map-panel-head{margin-bottom:16px}.panel-title{font-family:"Roboto Slab",serif;font-size:52px;margin:0 0 8px}.map-panel p{margin:0;color:#c6c0b5}#regionsMap{height:430px;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.08)}

.metric{padding:18px 20px}.metric small{color:var(--muted);display:block}.metric strong{display:block;font-size:36px;color:var(--gold);margin-top:8px}.notice-list,.table-card,.calendar-card,.card,.metric,.notice-card,.panel,.premium-card{background:linear-gradient(180deg,rgba(46,47,52,.92) 0%,rgba(24,25,29,.95) 100%);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.small{font-size:.92rem;color:var(--muted)}.tag{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#40331a;color:#f4d08c;border:1px solid rgba(199,144,33,.35)}.tag.green{background:#12371f;color:#8ee2ae;border-color:#2b8a52}.tag.red{background:#481d1d;color:#ff9d9d;border-color:#9e3b3b}.tag.blue{background:#17324a;color:#9fd0ff;border-color:#3d8eda}.two-col{display:grid;grid-template-columns:minmax(0,1.1fr) 360px;gap:22px;align-items:start}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid-4{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full{grid-column:1/-1}.btn-card{display:inline-flex;align-items:center;justify-content:center}.forum-categories{display:grid;gap:18px}.forum-item{padding:24px}.calendar-card{padding:20px}.calendar-card .grid-4 .tag{justify-content:center;padding:10px}.table-card{overflow:hidden}.toolbar{display:flex;gap:14px;justify-content:space-between;align-items:center;padding:18px;flex-wrap:wrap}.toolbar .field,.toolbar .select{min-width:280px}.filter-bar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;width:100%}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:16px 14px;border-bottom:1px solid rgba(255,255,255,.06)}th{background:#ba861d;color:#fff;text-align:left}tr:nth-child(even) td{background:rgba(255,255,255,.02)}

@media (max-width:1199px){.premium-navbar{top:0}.nav-shell{padding:10px 18px}.premium-brand img{height:96px}.premium-nav-links{padding-top:12px}.premium-nav-links .nav-link{padding:12px 0 !important}.nav-cta{display:inline-flex}.hero-stats-panel{margin-top:20px}.login-shell{grid-template-columns:1fr}.form-panel{justify-self:stretch;max-width:none}.login-logo img{width:320px}.header-wrapper{flex-wrap:wrap}.main-nav{display:none;width:100%;padding-top:6px}.main-nav.open{display:flex}.hamburger{display:block;margin-left:auto}.hero-dashboard,.two-col{grid-template-columns:1fr}.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-title{font-size:42px}}
@media (max-width:991px){.premium-title{font-size:3.3rem}.premium-hero-inner{padding-top:8rem;padding-bottom:6rem}.partners-row{grid-template-columns:repeat(2,1fr)}.offer-section-shell{padding-left:20px;padding-right:20px}.grid-3{grid-template-columns:1fr}.hero-dashboard{gap:24px}.map-panel{padding:20px}.logo-mark img{height:72px}.brand-copy strong{font-size:24px}.chat-form{grid-template-columns:1fr}.user-pill{margin-left:auto}}
@media (max-width:767px){body.public-body{background:#0d0e11}.premium-brand img{height:78px}.premium-title{font-size:2.6rem}.hero-buttons .btn{width:100%}.hero-stats-panel{grid-template-columns:1fr 1fr;width:100%}.partners-row{grid-template-columns:1fr}.offer-section-shell{padding-left:14px;padding-right:14px}.offer-grid{row-gap:16px}.offer-card{padding:24px 20px;min-height:auto}.offer-card p{min-height:0}.quote-grid{row-gap:28px}.quote-section .col-lg-5,.quote-section .col-lg-7{display:flex;align-items:center}.quote-form{padding:24px}.toolbar{align-items:stretch}.toolbar .field,.toolbar .select{min-width:0;width:100%}.page-header{align-items:flex-start}.login-logo img{width:240px}.form-panel{padding:28px}.form-panel h1{font-size:48px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.header-wrapper{padding:12px 14px;gap:14px}.logo-mark{min-width:0}.logo-mark img{height:64px}.brand-copy strong{font-size:20px}.brand-copy span{font-size:11px}.chat-messages{max-height:220px}.panel-title{font-size:36px}#regionsMap{height:320px}}


/* ===== V8 premium overrides ===== */
body.public-body,
body.app-body,
.login-page {
  overflow-x: hidden;
}

body.app-body{
  background:
    radial-gradient(circle at top, rgba(62,54,32,.22) 0%, rgba(24,25,30,.92) 22%, #0b0d12 62%, #090b10 100%);
  color: var(--text);
}

main{
  position: relative;
  z-index: 1;
}

.premium-navbar{
  background: rgba(5,7,11,.98);
  border-bottom: 1px solid rgba(240,191,89,.75);
  box-shadow: 0 18px 40px rgba(0,0,0,.34);
}

.nav-shell{
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 28px;
}

.premium-brand img{
  height: 124px !important;
  width: auto !important;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.55));
}

.app-header{
  background:
    linear-gradient(180deg, rgba(35,37,43,.98) 0%, rgba(22,24,29,.98) 100%);
  border-bottom: 1px solid rgba(240,191,89,.72);
  box-shadow: 0 16px 44px rgba(0,0,0,.30);
}

.header-wrapper{
  max-width: 1480px;
  padding: 14px 22px;
  gap: 22px;
}

.logo-mark{
  min-width: 290px;
  gap: 14px;
}

.logo-mark img{
  width: auto !important;
  height: 98px !important;
  max-width: 150px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.48));
}

.brand-copy strong{
  font-size: 33px;
  line-height: 1;
  letter-spacing: .02em;
}

.brand-copy span{
  margin-top: 5px;
  letter-spacing: .34em;
  font-size: 12px;
}

.main-nav{
  align-items: center;
  gap: 16px;
}

.main-nav > a,
.nav-more summary{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  color: rgba(245,242,234,.96);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.main-nav > a i{ color: var(--gold); }

.nav-more{
  position: relative;
}

.nav-more summary{
  list-style: none;
}

.nav-more summary::-webkit-details-marker{
  display:none;
}

.nav-more-menu{
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 230px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24,25,31,.99) 0%, rgba(16,18,23,.99) 100%);
  border: 1px solid rgba(240,191,89,.32);
  box-shadow: 0 26px 50px rgba(0,0,0,.42);
  display: none;
  z-index: 40;
}

.nav-more[open] .nav-more-menu,
.nav-more:hover .nav-more-menu{
  display: grid;
  gap: 6px;
}

.nav-more-menu a{
  padding: 10px 12px;
  border-radius: 10px;
  color: #f5f2ea;
  font-weight: 700;
}

.nav-more-menu a:hover,
.nav-more-menu a.active{
  background: rgba(240,191,89,.12);
  color: #fff;
}

.main-nav > a.active,
.main-nav > a:hover,
.nav-more summary.active,
.nav-more summary:hover{
  color: #fff;
  text-shadow: 0 0 16px rgba(240,191,89,.34);
}

.user-pill{
  padding-right: 10px;
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.09);
}

.user-pill span{
  white-space: nowrap;
}

.login-page{
  background:
    radial-gradient(circle at 30% 15%, rgba(240,191,89,.12) 0%, rgba(240,191,89,0) 28%),
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #22242a 0%, #15171c 46%, #0d0f14 100%);
}

.login-shell{
  width: min(1380px, calc(100% - 48px));
  gap: 68px;
}

.login-logo{
  text-align: center;
  position: relative;
}

.login-logo img{
  width: min(680px, 100%);
  max-width: 100%;
  filter: drop-shadow(0 34px 60px rgba(0,0,0,.52));
}

.form-panel{
  max-width: 590px;
  padding: 42px 44px;
  border-radius: 24px;
  border: 1px solid rgba(240,191,89,.68);
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
}

.login-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(240,191,89,.12);
  border: 1px solid rgba(240,191,89,.24);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.form-panel h1{
  font-size: 58px;
}

.subtitle{
  color: #cbc7bc;
  max-width: 420px;
}

.field,
.select,
textarea{
  background: rgba(54,56,62,.96);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}

.field::placeholder,
textarea::placeholder{
  color: rgba(235,232,224,.58);
}

.btn-primary,
.btn-gold,
.btn-login,
.btn-card,
.select-tile{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before,
.btn-gold::before,
.btn-login::before,
.module-card::before,
.offer-card::before,
.premium-card::before,
.notice-card::before,
.select-tile::before{
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 22%, rgba(255,255,255,.08) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform .8s ease;
  pointer-events: none;
  z-index: -1;
}

.btn-primary:hover::before,
.btn-gold:hover::before,
.btn-login:hover::before,
.module-card:hover::before,
.offer-card:hover::before,
.premium-card:hover::before,
.notice-card:hover::before,
.select-tile:hover::before{
  transform: translateX(120%);
}

.btn-primary:hover,
.btn-gold:hover,
.btn-login:hover,
.module-card:hover,
.notice-card:hover,
.offer-card:hover,
.select-tile:hover{
  box-shadow: 0 24px 42px rgba(0,0,0,.38), 0 0 0 1px rgba(240,191,89,.36), 0 0 24px rgba(240,191,89,.18);
}

.form-panel .btn-login{
  margin-top: 10px;
  min-height: 58px;
  font-size: 17px;
}

.app-dashboard{
  padding-top: 26px;
}

.team-chat{
  border-radius: 18px;
  border: 1px solid rgba(240,191,89,.16);
  background: linear-gradient(180deg, rgba(24,25,30,.98) 0%, rgba(15,17,22,.98) 100%);
}

.hero-dashboard{
  grid-template-columns: minmax(0,1.22fr) 330px;
  gap: 34px;
  align-items: stretch;
}

.dashboard-main-col{
  display: grid;
  gap: 18px;
}

.quick-links{
  margin: 8px 0 0;
}

.quick-links .btn-primary{
  min-width: 152px;
}

.stats-panel{
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 176px;
}

.stats-panel h3{
  font-size: 40px;
}

.stats-copy{
  display: grid;
  gap: 8px;
}

.lucky-card{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-modules{
  margin-top: 14px;
  margin-bottom: 26px;
}

.modules-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.module-card{
  display: grid;
  gap: 10px;
  padding: 20px 18px;
  min-height: 168px;
  background: linear-gradient(180deg, rgba(39,41,47,.96) 0%, rgba(19,21,26,.96) 100%);
  border: 1px solid rgba(240,191,89,.16);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.module-card:hover{
  transform: translateY(-6px);
  border-color: rgba(240,191,89,.6);
}

.module-icon{
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,191,89,.12);
  color: var(--gold-2);
  font-size: 20px;
}

.module-title{
  font-family: "Roboto Slab", serif;
  font-size: 22px;
  line-height: 1.15;
}

.module-card p{
  margin: 0;
  color: #c8c2b6;
  line-height: 1.65;
  font-size: 14px;
}

.notice-card,
.map-panel,
.panel,
.table-card,
.metric{
  background: linear-gradient(180deg, rgba(41,43,48,.94) 0%, rgba(18,20,25,.96) 100%);
}

.map-panel{
  margin-top: 28px;
}

#regionsMap{
  height: 470px;
}

.pricing-page{
  padding-top: 26px;
  padding-bottom: 48px;
}

.pricing-toolbar{
  padding: 20px;
  margin-bottom: 22px;
  display: grid;
  gap: 18px;
}

.pricing-search{
  display: grid;
  grid-template-columns: minmax(0,1fr) 160px;
  gap: 12px;
}

.pricing-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-chip{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(240,191,89,.24);
  background: rgba(240,191,89,.08);
  color: #f4efe1;
  font-weight: 700;
  transition: transform .24s ease, background .24s ease, border-color .24s ease;
}

.pricing-chip:hover{
  transform: translateY(-2px);
  background: rgba(240,191,89,.14);
  border-color: rgba(240,191,89,.42);
}

.pricing-stack{
  display: grid;
  gap: 22px;
}

.pricing-category{
  padding: 24px;
}

.pricing-category-head{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pricing-category-head h2{
  margin: 0 0 6px;
  font-family: "Roboto Slab", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.pricing-category-head p{
  margin: 0;
  color: #ccc6b9;
  line-height: 1.75;
  max-width: 880px;
}

.pricing-section-card{
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(240,191,89,.08);
}

.pricing-section-head{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.pricing-section-head h3{
  margin: 0;
  font-family: "Roboto Slab", serif;
  font-size: 26px;
}

.pricing-note{
  color: #d9d0ba;
  line-height: 1.65;
}

.premium-table-wrap{
  border-radius: 14px;
  border: 1px solid rgba(240,191,89,.12);
  overflow: auto;
}

.pricing-table{
  width: 100%;
  border-collapse: collapse;
}

.pricing-table thead th{
  background: linear-gradient(180deg, #d49a27 0%, #b57c18 100%);
  color: #fff;
  white-space: nowrap;
  font-size: 14px;
}

.pricing-table td,
.pricing-table th{
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.pricing-table tbody td{
  color: #f0ede4;
  background: rgba(255,255,255,.01);
}

.pricing-table tbody tr:nth-child(even) td{
  background: rgba(255,255,255,.03);
}

.pricing-table .row-label{
  font-weight: 800;
  color: #fff;
}

.pricing-bullets-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pricing-bullet-card,
.pricing-group-card,
.pricing-subtable-card{
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(240,191,89,.09);
}

.pricing-bullet-card h4,
.pricing-group-title{
  margin: 0 0 12px;
  font-family: "Roboto Slab", serif;
  font-size: 20px;
}

.pricing-bullet-card ul{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.pricing-grouped-stack{
  display: grid;
  gap: 16px;
}

.pricing-subtables-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pricing-admin-form{
  margin-top: 24px;
  padding: 24px;
}

.premium-footer{
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.footer-brand img{
  width: auto;
  height: 84px;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.44));
}

@media (max-width: 1399px){
  .modules-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1199px){
  .premium-brand img{
    height: 110px !important;
  }
  .logo-mark img{
    height: 86px !important;
    max-width: 134px;
  }
  .brand-copy strong{
    font-size: 28px;
  }
  .modules-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pricing-bullets-grid,
  .pricing-subtables-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px){
  .main-nav{
    display: none;
    width: 100%;
    padding: 6px 0 2px;
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav.open{
    display: flex;
  }
  .nav-more{
    width: 100%;
  }
  .nav-more-menu{
    position: static;
    display: grid !important;
    margin-top: 8px;
  }
  .hamburger{
    display: block;
    margin-left: auto;
  }
  .logo-mark{
    min-width: 0;
  }
  .user-pill{
    margin-left: auto;
  }
  .hero-dashboard{
    grid-template-columns: 1fr;
  }
  .modules-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-search{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px){
  .nav-shell{
    padding: 12px 16px;
  }
  .premium-brand img{
    height: 92px !important;
  }
  .logo-mark img{
    height: 76px !important;
    max-width: 118px;
  }
  .brand-copy strong{
    font-size: 22px;
  }
  .login-shell{
    width: min(100% - 24px, 1380px);
    gap: 24px;
  }
  .login-logo img{
    width: min(360px, 88%);
  }
  .form-panel{
    padding: 30px 24px;
  }
  .form-panel h1{
    font-size: 42px;
  }
  .modules-grid{
    grid-template-columns: 1fr;
  }
  .module-card{
    min-height: 0;
  }
  .pricing-category{
    padding: 18px;
  }
  .pricing-section-card{
    padding: 14px;
  }
  .pricing-table td,
  .pricing-table th{
    padding: 12px 10px;
  }
  .footer-brand img{
    height: 72px;
  }
}


/* ===== V9 navigation + pricing refinements ===== */
.nav-dropdown{position:relative;display:flex;align-items:center}
.nav-dropdown-toggle{display:inline-flex;align-items:center;gap:8px;padding:10px 2px;border:0;background:transparent;color:rgba(245,242,234,.96);font-weight:700;font-size:14px;cursor:pointer}
.nav-dropdown-toggle i{font-size:12px;color:var(--gold);transition:transform .24s ease}
.nav-dropdown-menu{position:absolute;top:calc(100% + 12px);left:0;min-width:240px;padding:12px;border-radius:16px;background:linear-gradient(180deg,rgba(24,25,31,.99) 0%,rgba(16,18,23,.99) 100%);border:1px solid rgba(240,191,89,.32);box-shadow:0 26px 50px rgba(0,0,0,.42);display:none;z-index:50;grid-template-columns:1fr;gap:6px}
.nav-dropdown:hover .nav-dropdown-menu,.nav-dropdown.is-open .nav-dropdown-menu{display:grid}
.nav-dropdown:hover .nav-dropdown-toggle i,.nav-dropdown.is-open .nav-dropdown-toggle i{transform:rotate(180deg)}
.nav-dropdown-menu a{padding:8px 10px;border-radius:10px;color:#f5f2ea;font-weight:700}
.nav-dropdown-menu a:hover,.nav-dropdown-menu a.active{background:rgba(240,191,89,.12);color:#fff}
.nav-dropdown-toggle.active,.nav-dropdown-toggle:hover{color:#fff;text-shadow:0 0 16px rgba(240,191,89,.34)}

.pricing-page{max-width:1480px}
.pricing-hero{padding:34px 34px 28px;display:grid;gap:22px;text-align:center}
.pricing-title{margin-bottom:0}
.pricing-hero-copy{max-width:940px;margin:0 auto;color:#d1cabd;line-height:1.8;font-size:17px}
.pricing-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:980px;margin:0 auto;width:100%}
.pricing-stat-card{padding:18px 20px;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.035) 0%,rgba(255,255,255,.015) 100%);border:1px solid rgba(240,191,89,.12);display:grid;gap:6px;justify-items:center}
.pricing-stat-card strong{font-family:"Roboto Slab",serif;font-size:28px;color:#fff}
.pricing-stat-card span{color:#d1cabd}
.pricing-search-centered{max-width:900px;margin:0 auto;width:100%}
.pricing-selector{padding:28px 30px;display:grid;gap:20px;margin:24px 0}
.pricing-selector-head{display:flex;justify-content:space-between;align-items:end;gap:18px;flex-wrap:wrap}
.pricing-selector-head h2{margin:0 0 8px;font-family:"Roboto Slab",serif;font-size:42px}
.pricing-selector-head p{margin:0;color:#cdc7ba;line-height:1.75;max-width:760px}
.pricing-selector-actions{display:flex;gap:10px;flex-wrap:wrap}
.pricing-action{padding:12px 18px;border-radius:999px;text-decoration:none}
.pricing-action.is-active{background:rgba(240,191,89,.14);border-color:rgba(240,191,89,.48);color:#fff}
.pricing-selector-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pricing-select-card{padding:22px;border-radius:20px;background:linear-gradient(180deg,rgba(39,41,47,.96) 0%,rgba(19,21,26,.96) 100%);border:1px solid rgba(240,191,89,.16);display:grid;gap:14px;min-height:170px;box-shadow:0 18px 34px rgba(0,0,0,.22);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;text-align:center;justify-items:center}
.pricing-select-card:hover,.pricing-select-card.is-active{transform:translateY(-5px);border-color:rgba(240,191,89,.62);box-shadow:0 24px 42px rgba(0,0,0,.34),0 0 0 1px rgba(240,191,89,.26),0 0 24px rgba(240,191,89,.18)}
.pricing-select-icon{width:62px;height:62px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;background:rgba(240,191,89,.12);color:var(--gold-2);font-size:24px}
.pricing-select-title{font-family:"Roboto Slab",serif;font-size:28px;line-height:1.1;color:#fff}
.pricing-select-meta{display:flex;flex-direction:column;gap:4px;color:#cec7ba;font-size:14px}
.pricing-accordion-stack{gap:18px}
.pricing-accordion{overflow:hidden}
.pricing-accordion summary{list-style:none}
.pricing-accordion summary::-webkit-details-marker{display:none}
.pricing-accordion-summary{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:26px 28px;cursor:pointer;transition:background .25s ease}
.pricing-accordion-summary:hover{background:rgba(255,255,255,.025)}
.pricing-accordion-copy{display:grid;gap:8px;max-width:980px}
.pricing-accordion-copy h2{margin:0;font-family:"Roboto Slab",serif;font-size:clamp(2rem,3vw,2.8rem);text-align:left}
.pricing-accordion-copy p{margin:0;color:#ccc6b9;line-height:1.75;text-align:left}
.pricing-accordion-side{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.pricing-accordion-chevron{width:44px;height:44px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(240,191,89,.10);color:var(--gold-2);transition:transform .24s ease}
.pricing-accordion[open] .pricing-accordion-chevron{transform:rotate(180deg)}
.pricing-accordion-body{padding:0 24px 24px;display:grid;gap:18px}
.pricing-category-head,.pricing-section-head{text-align:center;justify-items:center}
.pricing-section-head h3{width:100%}
.pricing-note{max-width:980px;margin:0 auto;text-align:center}
.pricing-bullet-card h4,.pricing-group-title{text-align:center}
.pricing-bullet-card ul{max-width:620px;margin:0 auto;padding-left:22px;text-align:left}
.pricing-table thead th,.pricing-table tbody td{text-align:center;vertical-align:middle}
.pricing-table .row-label{text-align:left}
.pricing-empty-state{padding:44px 28px;text-align:center}
.pricing-empty-state h2{font-family:"Roboto Slab",serif;font-size:40px;margin:0 0 10px}
.pricing-empty-state p{margin:0;color:#cbc4b8}

@media (max-width: 1199px){
  .pricing-selector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pricing-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 991px){
  .nav-dropdown{width:100%;display:block}
  .nav-dropdown-toggle{width:100%;justify-content:space-between;padding:12px 0}
  .nav-dropdown-menu{position:static;min-width:0;margin-top:8px;box-shadow:none;background:rgba(255,255,255,.03)}
  .nav-dropdown:hover .nav-dropdown-menu{display:none}
  .nav-dropdown.is-open .nav-dropdown-menu{display:grid}
  .pricing-selector-head{align-items:flex-start}
  .pricing-accordion-summary{padding:22px 20px;align-items:flex-start}
  .pricing-accordion-side{justify-content:flex-start}
  .pricing-accordion-copy h2,.pricing-accordion-copy p{text-align:left}
}
@media (max-width: 767px){
  .pricing-hero{padding:24px 18px}
  .pricing-hero-stats{grid-template-columns:1fr;max-width:100%}
  .pricing-selector{padding:20px 18px}
  .pricing-selector-grid{grid-template-columns:1fr}
  .pricing-select-title{font-size:24px}
  .pricing-selector-head h2{font-size:34px}
  .pricing-accordion-summary{flex-direction:column;align-items:flex-start}
  .pricing-accordion-side{width:100%}
  .pricing-accordion-body{padding:0 14px 18px}
}

@media (max-width:767px){.user-pill-menu{right:auto;left:0;min-width:220px}}


/* ===== V12 user menu + login fixes ===== */
.app-header,
.header-wrapper,
.user-dropdown,
.user-pill{
  overflow: visible;
}

.user-dropdown{
  position: relative;
  z-index: 160;
}

.user-pill{
  min-width: 0;
}

.user-pill-toggle{
  min-width: 0;
  position: relative;
  z-index: 2;
}

.user-pill-toggle > span:first-child{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.user-pill-menu{
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  min-width: 280px;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16,18,23,.99) 0%, rgba(9,11,16,.99) 100%);
  border: 1px solid rgba(240,191,89,.42);
  box-shadow: 0 24px 55px rgba(0,0,0,.48);
}

.user-dropdown.is-open .user-pill-menu{
  display: block;
}

.user-pill-menu a{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.user-pill-menu a i{
  flex: 0 0 18px;
}

.user-pill-divider{
  margin: 10px 0;
}

.login-actions{
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.btn-ghost-home{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(240,191,89,.36);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 700;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.btn-ghost-home:hover{
  color: #fff;
  background: rgba(240,191,89,.08);
  border-color: rgba(240,191,89,.56);
  box-shadow: 0 16px 35px rgba(0,0,0,.26);
  transform: translateY(-2px);
}

@media (max-width: 991px){
  .user-pill-menu{
    right: 0;
    left: auto;
    min-width: 260px;
  }
}

@media (max-width: 767px){
  .user-pill-menu{
    right: 0;
    left: auto;
    min-width: min(280px, calc(100vw - 22px));
    max-width: min(300px, calc(100vw - 22px));
  }
}

/* ===== Calculator v13 ===== */
.calculator-page{
  max-width: 1440px;
}

.calculator-page-header{
  margin-bottom: 18px;
}

.calc-banner{
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 28px;
  padding: 28px 30px;
  margin-bottom: 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(240,191,89,.13), transparent 34%),
    linear-gradient(135deg, rgba(24,26,31,.98) 0%, rgba(14,16,20,.98) 100%);
  border: 1px solid rgba(240,191,89,.25);
  box-shadow: 0 26px 60px rgba(0,0,0,.28);
}

.calc-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(240,191,89,.22);
  background: rgba(240,191,89,.10);
  color: var(--gold-2);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.calc-banner h2{
  margin: 0 0 14px;
  font-family: "Roboto Slab", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.calc-banner p{
  margin: 0;
  max-width: 760px;
  color: #d4d0c6;
  font-size: 16px;
  line-height: 1.8;
}

.calc-banner-stats{
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.calc-stat-box{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(240,191,89,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.calc-stat-box small{
  color: #b9b39f;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.calc-stat-box strong{
  margin-top: 8px;
  font-size: 28px;
  color: #fff;
}

.calculator-shell{
  display: grid;
  grid-template-columns: .92fr 1.18fr;
  gap: 24px;
  align-items: start;
}

.calc-panel{
  padding: 26px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(32,34,40,.96) 0%, rgba(16,18,23,.98) 100%);
  border: 1px solid rgba(240,191,89,.24);
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
}

.calc-panel-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.calc-panel-head h3{
  margin: 4px 0 0;
  font-family: "Roboto Slab", serif;
  font-size: 28px;
  line-height: 1.15;
}

.calc-panel-icon{
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--gold-2);
  background: rgba(240,191,89,.10);
  border: 1px solid rgba(240,191,89,.22);
  font-size: 22px;
}

.calc-reset-btn{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(240,191,89,.28);
  background: rgba(255,255,255,.03);
  color: #f5f2ea;
  font-weight: 700;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.calc-reset-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(240,191,89,.56);
  background: rgba(240,191,89,.08);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
}

.calc-grants-table-wrap{
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(129, 236, 175, .34);
  box-shadow: inset 0 0 0 1px rgba(129, 236, 175, .06);
}

.calc-grants-table{
  width: 100%;
  border-collapse: collapse;
}

.calc-grants-table thead th{
  padding: 16px 18px;
  background: linear-gradient(90deg, #2ac776 0%, #38df89 100%);
  color: #09110c;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.calc-grants-table tbody td{
  padding: 16px 18px;
  color: #f7f4ec;
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}

.calc-grants-table tbody tr:nth-child(even) td{
  background: rgba(255,255,255,.05);
}

.calc-grants-table tbody td:last-child{
  text-align: right;
  color: #69f0b1;
}

.calc-tax-info{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.calc-info-pill{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #dfdbd0;
}

.calc-info-pill strong{ color: var(--gold-2); }

.calc-input-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.calc-field{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-field.full{
  grid-column: 1 / -1;
}

.calc-field label{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
}

.calc-field label span{
  color: #73edb3;
}

.calc-chip-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calc-chip{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  color: #f7f4ec;
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.calc-chip-title{
  font-weight: 800;
  line-height: 1.25;
}

.calc-chip-value{
  color: #d1ad5e;
  font-size: 14px;
  font-weight: 700;
}

.calc-chip:hover,
.calc-chip.is-active{
  transform: translateY(-3px);
  border-color: rgba(240,191,89,.54);
  background: linear-gradient(180deg, rgba(240,191,89,.12) 0%, rgba(255,255,255,.03) 100%);
  box-shadow: 0 18px 34px rgba(0,0,0,.22), 0 0 0 1px rgba(240,191,89,.18) inset;
}

.calc-chip.is-active .calc-chip-value{
  color: #fff;
}

.calc-selected-line{
  min-height: 24px;
  color: #cbc7ba;
  font-size: 14px;
}

.calc-input-shell{
  position: relative;
}

.calc-money-input{
  padding-right: 56px;
}

.calc-input-end{
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #d2cebf;
  font-weight: 700;
}

.calc-term-switch{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calc-term-btn{
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.03);
  color: #f5f2ea;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.calc-term-btn span{
  color: #d6bb7a;
  font-size: 13px;
}

.calc-term-btn:hover,
.calc-term-btn.is-active{
  transform: translateY(-2px);
  border-color: rgba(240,191,89,.56);
  background: linear-gradient(180deg, rgba(240,191,89,.16), rgba(255,255,255,.03));
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.calc-results-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.calc-result-card{
  min-height: 144px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.calc-result-card small{
  display: block;
  margin-bottom: 14px;
  color: #c3bdac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calc-result-card strong{
  display: block;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
}

.calc-result-card.accent-gold{ border-color: rgba(240,191,89,.42); }
.calc-result-card.accent-gold strong,
.calc-result-card.accent-gold-soft strong{ color: #f2c35f; }
.calc-result-card.accent-emerald{ border-color: rgba(98, 245, 179, .34); }
.calc-result-card.accent-emerald strong,
.calc-result-card.accent-emerald-soft strong{ color: #63f0b1; }
.calc-result-card.accent-lime{
  border-color: rgba(103, 245, 138, .28);
  background: linear-gradient(180deg, rgba(76,178,103,.24) 0%, rgba(28,48,35,.8) 100%);
}
.calc-result-card.accent-lime strong{ color: #8effb5; }
.calc-result-card.accent-emerald-soft{
  background: linear-gradient(180deg, rgba(41,118,87,.16) 0%, rgba(255,255,255,.02) 100%);
}
.calc-result-card.accent-gold-soft{
  background: linear-gradient(180deg, rgba(129,97,28,.18) 0%, rgba(255,255,255,.02) 100%);
}

.calc-note{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #d0cbbe;
}

.calc-note i{
  color: var(--gold-2);
  margin-top: 2px;
}

@media (max-width: 1240px){
  .calculator-shell,
  .calc-banner{
    grid-template-columns: 1fr;
  }

  .calc-results-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px){
  .calc-input-grid,
  .calc-chip-grid,
  .calc-term-switch,
  .calc-results-grid{
    grid-template-columns: 1fr;
  }

  .calc-panel,
  .calc-banner{
    padding: 22px;
  }

  .calc-panel-head{
    flex-direction: column;
    align-items: stretch;
  }

  .calc-reset-btn{
    width: 100%;
    justify-content: center;
  }
}


/* ===== V14 calculator + navigation refinements ===== */
.header-wrapper,
.main-nav,
.nav-dropdown,
.user-pill{overflow:visible}

.nav-dropdown-menu{
  top: calc(100% + 4px);
  min-width: 258px;
  padding: 14px;
  z-index: 120;
}

.nav-dropdown::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-dropdown-menu a{
  display:flex;
  align-items:center;
  min-height:46px;
  white-space:nowrap;
}

.calculator-page-header .muted{
  max-width: 880px;
  line-height: 1.8;
}

.calc-banner{
  align-items: center;
}

.calc-banner h2{
  max-width: 780px;
}

.calc-banner p{
  max-width: 760px;
}

.calc-selected-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.calc-summary-meta{
  color:#cfc9bc;
  font-size:13px;
}

.calc-results-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.calc-result-card{
  min-width: 0;
  min-height: 138px;
  padding: 18px 16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.calc-result-card small{
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .06em;
}

.calc-result-card strong{
  display:block;
  max-width:100%;
  font-size: clamp(1.15rem, 1.5vw, 1.95rem);
  line-height: 1.14;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.calc-result-card.accent-lime-soft{
  border-color: rgba(103, 245, 138, .24);
  background: linear-gradient(180deg, rgba(44,116,73,.18) 0%, rgba(255,255,255,.02) 100%);
}

.calc-result-card.accent-lime-soft strong{
  color:#89efab;
}

.calc-note{
  line-height: 1.75;
}

@media (max-width: 1199px){
  .calc-results-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px){
  .nav-dropdown{
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.015) 100%);
    border: 1px solid rgba(240,191,89,.16);
  }

  .nav-dropdown::after{display:none}

  .nav-dropdown-toggle{
    width: 100%;
    justify-content: space-between;
    padding: 0;
    font-size: 15px;
  }

  .nav-dropdown-menu{
    position: static;
    min-width: 0;
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }

  .nav-dropdown-menu a{
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
  }

  .calc-results-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px){
  .calc-results-grid{
    grid-template-columns: 1fr;
  }

  .calc-result-card{
    min-height: 120px;
  }

  .calc-summary-meta{
    display:block;
    width:100%;
  }
}

/* ===== V15 mobile navigation + sales/provision ===== */
@media (max-width: 991px){
  .header-wrapper{
    position:relative;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:14px;
  }
  .logo-mark{
    min-width:0;
    flex:1;
  }
  .logo-mark img{width:68px;height:68px}
  .brand-copy strong{font-size:19px;line-height:1.05}
  .brand-copy span{font-size:11px;letter-spacing:2px}
  .hamburger{
    display:block;
    width:54px;
    height:54px;
    border-radius:16px;
    background:linear-gradient(180deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,.02) 100%);
    border:1px solid rgba(240,191,89,.18);
    margin-left:auto;
    box-shadow:0 12px 26px rgba(0,0,0,.24);
  }
  .main-nav{
    display:none;
    width:100%;
    order:3;
    padding:18px;
    border-radius:24px;
    background:linear-gradient(180deg,rgba(20,22,28,.98) 0%,rgba(11,13,18,.98) 100%);
    border:1px solid rgba(240,191,89,.18);
    box-shadow:0 24px 60px rgba(0,0,0,.34);
    gap:12px;
  }
  .main-nav.open{display:grid}
  .main-nav > a,
  .main-nav .nav-dropdown-toggle,
  .main-nav .nav-dropdown-menu a{
    display:flex;
    align-items:center;
    min-height:52px;
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.05);
    font-size:16px;
  }
  .main-nav > a:hover,
  .main-nav .nav-dropdown-menu a:hover,
  .main-nav .nav-dropdown-menu a.active,
  .main-nav .nav-dropdown-toggle:hover,
  .main-nav > a.active{
    background:linear-gradient(135deg,rgba(240,191,89,.16) 0%,rgba(255,255,255,.03) 100%);
    border-color:rgba(240,191,89,.28);
  }
  .nav-dropdown{
    width:100%;
    padding:0;
    margin-top:0;
    background:none;
    border:0;
  }
  .nav-dropdown-menu{
    margin-top:10px;
    padding:0;
    background:none;
    border:0;
    box-shadow:none;
    gap:10px;
  }
  .user-pill{
    margin-left:0;
    width:auto;
    margin-left:auto;
    padding:8px 10px 8px 0;
    border-radius:14px;
  }
  .user-pill-menu{
    top:calc(100% + 10px);
    right:0;
    min-width:240px;
    max-width:min(280px,calc(100vw - 24px));
  }
}

@media (max-width: 575px){
  .header-wrapper{padding:14px}
  .logo-mark{gap:10px}
  .logo-mark img{width:58px;height:58px}
  .brand-copy strong{font-size:17px}
  .brand-copy span{font-size:10px}
  .user-pill{max-width:180px}
  .user-pill-toggle > span:first-child{font-size:14px;overflow:hidden;text-overflow:ellipsis}
  .user-pill-chevron{width:32px;height:32px}
}

.sales-layout-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(320px,.7fr);
  gap:24px;
  align-items:start;
}

.commission-shell .calc-panel-right,
.commission-side-panel,
.submitted-orders-panel{
  border-radius:26px;
}

.commission-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.commission-form-grid .full{grid-column:1 / -1}
.commission-results-grid{margin-top:6px}
.commission-note strong{color:#fff}
.commission-side-panel{padding:24px;background:linear-gradient(180deg,rgba(21,24,30,.98) 0%,rgba(11,14,19,.98) 100%)}
.commission-progress-shell{display:grid;gap:12px;margin:14px 0 22px}
.commission-progress-meta{display:flex;justify-content:space-between;gap:16px;align-items:center;color:#e7e0d0;font-weight:700}
.commission-progress-bar{height:14px;border-radius:999px;background:rgba(255,255,255,.05);overflow:hidden;border:1px solid rgba(255,255,255,.05)}
.commission-progress-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--gold) 0%,#59e39a 100%);box-shadow:0 0 22px rgba(89,227,154,.35)}
.commission-side-cards{display:grid;gap:14px}
.sales-banner-stats .calc-stat-box.is-success,
.commission-side-cards .calc-stat-box.is-success{border-color:rgba(89,227,154,.3);background:linear-gradient(180deg,rgba(33,87,59,.28) 0%,rgba(255,255,255,.02) 100%)}
.review-order-form{display:grid;gap:10px;min-width:220px}
.review-order-form textarea{min-height:74px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:12px;color:#fff;padding:10px 12px}
.review-order-actions{display:flex;gap:8px;flex-wrap:wrap}
.btn-danger-soft{background:rgba(199,87,87,.12);border:1px solid rgba(229,119,119,.25);color:#ffd7d7}
.btn-danger-soft:hover{background:rgba(199,87,87,.18);color:#fff}

@media (max-width: 1199px){
  .sales-layout-grid{grid-template-columns:1fr}
}
@media (max-width: 767px){
  .commission-form-grid{grid-template-columns:1fr}
  .commission-results-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 575px){
  .commission-results-grid{grid-template-columns:1fr}
}

/* ===== V16 commission + mobile nav refinements ===== */
.compact-commission-page{max-width:1240px;margin:0 auto;padding-bottom:48px}
.compact-commission-header{margin-bottom:24px}
.compact-commission-header .page-title{max-width:980px;font-size:64px;line-height:.95}
.compact-commission-top{display:grid;grid-template-columns:minmax(0,1.2fr) 360px;gap:18px;padding:24px 26px;margin-bottom:22px;background:radial-gradient(circle at top right, rgba(240,191,89,.10), transparent 28%),linear-gradient(180deg,rgba(20,23,30,.98) 0%,rgba(11,14,19,.98) 100%)}
.compact-commission-copy h2{font-family:"Roboto Slab",serif;font-size:42px;line-height:1.02;margin:10px 0 10px;max-width:760px}.compact-commission-copy p{max-width:760px;color:#d1cabf;line-height:1.75;margin:0}
.compact-commission-kpis{display:grid;gap:14px}.compact-commission-kpis .calc-stat-box{padding:18px;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(240,191,89,.18)}
.compact-commission-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start;margin-bottom:22px}.compact-commission-form-card,.compact-commission-side{padding:24px}.compact-head-row{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}.compact-head-row h3{margin:0;font-family:"Roboto Slab",serif;font-size:38px}
.compact-type-switch{display:inline-flex;gap:8px;padding:6px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}.compact-type-switch button{border:0;background:transparent;color:#ddd6ca;padding:11px 16px;border-radius:12px;font-weight:800}.compact-type-switch button.is-active{background:linear-gradient(180deg,rgba(240,191,89,.22) 0%,rgba(240,191,89,.10) 100%);color:#fff;box-shadow:inset 0 0 0 1px rgba(240,191,89,.26)}
.compact-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.compact-form-grid .full{grid-column:1/-1}.compact-commission-form-card .field,.compact-commission-form-card textarea{min-height:52px}.compact-commission-form-card textarea{padding:14px 16px}
.compact-commission-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.compact-commission-results .calc-result-card{min-width:0;padding:18px 16px}.compact-commission-results .calc-result-card small{display:block;min-height:34px}.compact-commission-results .calc-result-card strong{display:block;font-size:clamp(24px,2vw,38px);line-height:1.08;word-break:break-word;overflow-wrap:anywhere}
.compact-commission-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(240,191,89,.12);margin-bottom:16px;color:#d7d0c5}.compact-commission-note i{color:var(--gold);margin-top:2px}
.compact-commission-side h3{font-family:"Roboto Slab",serif;font-size:36px;margin:0 0 14px}.compact-side-list{display:grid;gap:12px}.compact-side-item{display:flex;justify-content:space-between;gap:12px;padding:15px 16px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}.compact-side-item span{color:#cfc8bc}.compact-side-item strong{font-size:20px;color:#fff}
.compact-orders-table{max-width:100%;margin:0 auto}.compact-orders-head{padding:18px 22px}.compact-orders-head h3{margin:0;font-family:"Roboto Slab",serif;font-size:34px}
.compact-commission-form-card.meeting-mode .sale-only{display:none}

/* cleaner mobile app nav */
@media (max-width: 991px){
  .header-wrapper{position:relative;align-items:flex-start}
  .main-nav{display:none;position:absolute;top:100%;left:12px;right:12px;z-index:90;padding:18px;border-radius:18px;background:linear-gradient(180deg,rgba(17,20,27,.99) 0%,rgba(9,11,16,.99) 100%);border:1px solid rgba(240,191,89,.22);box-shadow:0 30px 60px rgba(0,0,0,.44)}
  .main-nav.open{display:grid;gap:8px}
  .main-nav > a{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.025)}
  .nav-dropdown{width:100%}
  .nav-dropdown-toggle{width:100%;justify-content:space-between;padding:14px 14px;border-radius:14px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.05)}
  .nav-dropdown-menu{position:static;display:none;margin-top:8px;padding:10px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);box-shadow:none}
  .nav-dropdown.is-open .nav-dropdown-menu{display:grid}
  .nav-dropdown-menu a{padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.02)}
  .nav-dropdown:hover .nav-dropdown-menu{display:none}
  .user-pill{margin-left:0;min-width:auto;max-width:none;padding:10px 12px}
  .user-pill-line{height:22px;margin-left:8px;margin-right:8px}
  .user-pill-toggle{gap:8px}
  .user-pill-toggle > span:first-child{font-size:15px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .user-pill-menu{right:0;left:auto;min-width:210px;padding:8px;border-radius:16px;background:linear-gradient(180deg,rgba(18,20,27,.99) 0%,rgba(10,12,18,.99) 100%);border:1px solid rgba(240,191,89,.24);box-shadow:0 24px 44px rgba(0,0,0,.45)}
}
@media (max-width: 767px){
  .compact-commission-page{padding-left:12px;padding-right:12px}.compact-commission-header .page-title{font-size:40px}
  .compact-commission-top{grid-template-columns:1fr;padding:20px}.compact-commission-copy h2{font-size:30px}.compact-commission-grid{grid-template-columns:1fr}.compact-head-row{flex-direction:column;align-items:stretch}.compact-type-switch{width:100%;justify-content:space-between}.compact-type-switch button{flex:1}.compact-form-grid{grid-template-columns:1fr}.compact-commission-results{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-orders-head h3{font-size:26px}
}
@media (max-width: 480px){
  .compact-commission-results{grid-template-columns:1fr}.compact-commission-results .calc-result-card strong{font-size:32px}.compact-commission-copy h2{font-size:26px}.compact-commission-side h3,.compact-head-row h3{font-size:28px}
}


/* ===== V17 sales performance + premium green actions ===== */
.gold-sales-page{
  max-width:1160px;
  padding-top:8px;
}
.gold-sales-page .premium-card,
.gold-sales-page .table-card,
.gold-sales-page .calc-stat-box,
.gold-sales-page .calc-result-card,
.gold-sales-page .compact-side-item{
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.gold-sales-page .compact-commission-top{
  background:linear-gradient(135deg, rgba(13,13,15,.98) 0%, rgba(24,18,8,.98) 55%, rgba(8,8,10,.98) 100%);
  border:1px solid rgba(240,191,89,.24);
}
.gold-sales-page .compact-commission-form-card,
.gold-sales-page .compact-commission-side,
.gold-sales-page .compact-orders-table{
  background:linear-gradient(135deg, rgba(10,10,12,.98) 0%, rgba(20,16,8,.98) 45%, rgba(10,10,12,.98) 100%);
  border:1px solid rgba(240,191,89,.18);
}
.gold-sales-page .compact-commission-grid{
  grid-template-columns:minmax(0,760px) minmax(280px,320px);
  justify-content:center;
}
.gold-sales-page .compact-orders-table{
  max-width:1100px;
  margin:0 auto;
}
.btn-money,
.menu-money-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}
.btn-money{
  justify-content:center;
  min-height:54px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid rgba(97,245,176,.34);
  background:linear-gradient(135deg,#0fa958 0%, #0a7c41 100%);
  color:#fff;
  box-shadow:0 14px 28px rgba(9,75,41,.34);
}
.btn-money:hover{
  color:#fff;
  background:linear-gradient(135deg,#16bd64 0%, #0d8f4c 100%);
  box-shadow:0 18px 34px rgba(9,75,41,.42);
  transform:translateY(-2px);
}
.nav-dropdown-menu .menu-money-link{
  background:linear-gradient(135deg, rgba(15,169,88,.18) 0%, rgba(8,124,65,.22) 100%);
  border:1px solid rgba(97,245,176,.24);
  color:#d8ffe9;
}
.nav-dropdown-menu .menu-money-link i,
.btn-money i{color:#8ff2ba}
.nav-dropdown-menu .menu-money-link:hover,
.nav-dropdown-menu .menu-money-link.active{
  background:linear-gradient(135deg, rgba(15,169,88,.26) 0%, rgba(8,124,65,.30) 100%);
  color:#fff;
}
.quick-links .btn-money{
  display:inline-flex;
}
@media (max-width: 991px){
  .main-nav{
    background:linear-gradient(180deg, rgba(11,11,13,.99) 0%, rgba(17,13,7,.99) 100%);
  }
  .main-nav > a{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.04);
  }
  .nav-dropdown-toggle{
    background:linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
  }
  .nav-dropdown-menu{
    gap:8px;
    padding:12px;
    background:linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.025) 100%);
  }
  .nav-dropdown-menu a{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:46px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.05);
    color:#f7f3eb;
  }
  .nav-dropdown-menu .menu-money-link{
    background:linear-gradient(135deg, rgba(15,169,88,.24) 0%, rgba(8,124,65,.28) 100%);
    border-color:rgba(97,245,176,.34);
  }
  .gold-sales-page .compact-commission-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 767px){
  .gold-sales-page{padding-left:12px;padding-right:12px}
  .gold-sales-page .compact-commission-top,
  .gold-sales-page .compact-commission-form-card,
  .gold-sales-page .compact-commission-side,
  .gold-sales-page .compact-orders-table{
    border-radius:20px;
  }
}


/* ===== V18 actual package fix: gold sales background + performance ===== */
body.app-body.page-commission{
  background:
    radial-gradient(circle at top center, rgba(240,191,89,.10) 0%, rgba(240,191,89,.04) 18%, rgba(11,11,13,0) 46%),
    linear-gradient(180deg,#0b0b0d 0%, #15120d 22%, #0d0d10 100%);
  background-attachment:scroll;
}
.gold-sales-page{
  max-width:1160px;
  margin:0 auto;
  padding:10px 12px 48px;
  background:linear-gradient(180deg, rgba(240,191,89,.035) 0%, rgba(240,191,89,.015) 28%, rgba(0,0,0,0) 62%);
}
.gold-sales-page::before,
.gold-sales-page::after{
  content:none !important;
}
.gold-sales-page .page-header,
.gold-sales-page .compact-commission-top,
.gold-sales-page .compact-commission-form-card,
.gold-sales-page .compact-commission-side,
.gold-sales-page .compact-orders-table,
.gold-sales-page .compact-bottom-grid > .premium-card,
.gold-sales-page .calc-stat-box,
.gold-sales-page .calc-result-card,
.gold-sales-page .compact-side-item{
  background: linear-gradient(180deg, rgba(24,20,13,.96) 0%, rgba(13,13,14,.98) 100%);
  border:1px solid rgba(226,171,45,.18);
  box-shadow:0 8px 18px rgba(0,0,0,.14);
}
.gold-sales-page .compact-commission-top,
.gold-sales-page .sales-hero{
  background: linear-gradient(135deg, rgba(40,30,14,.94) 0%, rgba(22,18,11,.96) 52%, rgba(13,13,14,.98) 100%);
}
.gold-sales-page .compact-commission-grid{
  grid-template-columns:minmax(0,760px) minmax(280px,320px);
  justify-content:center;
}
.gold-sales-page *{
  backdrop-filter:none !important;
}
.gold-sales-page .premium-card,
.gold-sales-page .calc-result-card,
.gold-sales-page .calc-stat-box,
.gold-sales-page .compact-side-item,
.gold-sales-page .btn,
.gold-sales-page .btn-money,
.gold-sales-page .field,
.gold-sales-page textarea,
.gold-sales-page select{
  transition:none !important;
}
.gold-sales-page .calc-result-card strong,
.gold-sales-page .calc-stat-box strong{
  word-break:break-word;
  overflow-wrap:anywhere;
}
.gold-sales-page .compact-orders-table{max-width:1100px;margin:0 auto;}
@media (max-width: 991px){
  .gold-sales-page .compact-commission-grid{grid-template-columns:1fr;}
}

/* ===== V19 unified logo + email code login + sales hero fixes ===== */
.premium-brand,
.logo-mark,
.footer-brand,
.login-logo{
  display:flex;
  align-items:center;
}

.premium-brand img,
.logo-mark img,
.footer-brand img,
.login-logo img{
  width:auto !important;
  height:auto !important;
  object-fit:contain;
}

.premium-brand img{
  max-width:min(411px, 33vw);
  max-height:104px;
}

.logo-mark{
  min-width:0;
  flex:0 0 auto;
}

.logo-mark img{
  max-width:332px;
  max-height:87px;
}

.footer-brand img{
  max-width:332px;
  max-height:95px;
}

.login-logo{
  display:grid;
  gap:22px;
  justify-items:center;
}

.login-logo img{
  width:min(442px, 100%);
  max-width:100%;
  max-height:174px;
  filter:drop-shadow(0 26px 50px rgba(0,0,0,.46));
}

.brand-copy{
  display:none !important;
}

.login-shell-enhanced{
  width:min(1360px,100% - 40px);
  gap:56px;
}

.login-logo-enhanced{
  text-align:center;
}

.login-logo-copy{
  max-width:560px;
  display:grid;
  gap:12px;
}

.login-logo-copy h2{
  margin:0;
  font-family:"Roboto Slab",serif;
  font-size:42px;
}

.login-logo-copy p{
  margin:0;
  color:#d2cbbe;
  line-height:1.8;
  font-size:17px;
}

.login-badge-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 16px;
  margin:0 auto;
  border-radius:999px;
  border:1px solid rgba(240,191,89,.26);
  background:rgba(240,191,89,.10);
  color:#f0bf59;
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.form-panel-enhanced{
  max-width:600px;
  position:relative;
  overflow:hidden;
}

.form-panel-enhanced::before{
  content:"";
  position:absolute;
  inset:-30% auto auto 58%;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(240,191,89,.20) 0%, rgba(240,191,89,0) 68%);
  pointer-events:none;
}

.form-panel-enhanced > *{
  position:relative;
  z-index:1;
}

.otp-summary{
  display:grid;
  grid-template-columns:54px 1fr;
  gap:14px;
  align-items:center;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(240,191,89,.18);
  background:rgba(255,255,255,.03);
  margin-bottom:18px;
}

.otp-summary-icon{
  width:54px;
  height:54px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,rgba(240,191,89,.18) 0%, rgba(240,191,89,.08) 100%);
  color:#f0bf59;
  font-size:24px;
}

.otp-code-input{
  letter-spacing:.42em;
  font-size:32px;
  font-weight:800;
  text-align:center;
  padding-left:56px !important;
}

.login-secondary-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

.btn-secondary-soft{
  width:100%;
  min-height:48px;
  border-radius:12px;
  border:1px solid rgba(240,191,89,.20);
  background:rgba(255,255,255,.04);
  color:#f5f2ea;
  font-weight:700;
}

.btn-secondary-soft.alt{
  border-color:rgba(255,255,255,.10);
}

.btn-secondary-soft:hover{
  color:#fff;
  background:rgba(255,255,255,.08);
}

.sales-hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) 360px;
  gap:24px;
  align-items:stretch;
  padding:28px 30px;
  margin-bottom:24px;
}

.sales-hero-title{
  margin:0;
  font-family:"Roboto Slab",serif;
  font-size:clamp(34px, 4.4vw, 60px);
  line-height:.96;
  max-width:780px;
}

.sales-hero-text{
  margin:16px 0 0;
  color:#d3cbbe;
  line-height:1.8;
  max-width:760px;
  font-size:16px;
}

.sales-hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.sales-hero-tags span{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid rgba(240,191,89,.16);
  background:rgba(255,255,255,.03);
  color:#f4efe5;
  font-size:13px;
  font-weight:700;
}

.sales-hero-tags i{
  color:#f0bf59;
}

.sales-hero-stats{
  display:grid;
  gap:14px;
}

.sales-hero-stat-card{
  padding:18px 18px 16px;
  border-radius:18px;
  border:1px solid rgba(240,191,89,.18);
  background:rgba(255,255,255,.03);
}

.sales-hero-stat-card small{
  display:block;
  color:#d0c7b7;
  margin-bottom:8px;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.sales-hero-stat-card strong{
  display:block;
  font-size:34px;
  line-height:1.04;
  color:#fff;
}

.sales-hero-stat-card span{
  display:block;
  margin-top:10px;
  color:#bfb6a7;
  line-height:1.55;
  font-size:14px;
}

.sales-hero-stat-card.is-success{
  border-color:rgba(89,227,154,.28);
  background:linear-gradient(180deg,rgba(33,87,59,.24) 0%, rgba(255,255,255,.03) 100%);
}

.gold-sales-page .sales-hero{
  background:linear-gradient(135deg, rgba(34,26,12,.98) 0%, rgba(16,13,8,.98) 58%, rgba(8,8,8,.98) 100%);
  border:1px solid rgba(226,171,45,.24);
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}

@media (max-width: 1199px){
  .premium-brand img{max-width:300px;max-height:88px;}
  .logo-mark img{max-width:253px;max-height:73px;}
  .login-logo img{max-height:142px;}
}

@media (max-width: 991px){
  .sales-hero{grid-template-columns:1fr;padding:24px 22px;}
  .login-shell-enhanced{grid-template-columns:1fr;gap:34px;}
}

@media (max-width: 767px){
  .premium-brand img{max-width:205px;max-height:63px;}
  .logo-mark img{max-width:190px;max-height:57px;}
  .footer-brand img{max-width:205px;max-height:66px;}
  .login-logo img{max-height:104px;}
  .login-logo-copy h2{font-size:32px;}
  .login-logo-copy p{font-size:15px;}
  .sales-hero-title{font-size:34px;}
  .sales-hero-tags{display:grid;grid-template-columns:1fr;}
  .login-secondary-actions{grid-template-columns:1fr;}
  .otp-code-input{font-size:26px;letter-spacing:.3em;}
}


/* ===== V21 logo contrast glow + mail compatibility ===== */
.premium-brand img,
.logo-mark img,
.footer-brand img,
.login-logo img{
  background:radial-gradient(circle at center, rgba(255,255,255,.16) 0%, rgba(240,191,89,.14) 34%, rgba(240,191,89,.06) 58%, rgba(240,191,89,0) 82%);
  padding:9px 13px;
  border-radius:24px;
  box-shadow:0 0 0 1px rgba(240,191,89,.12), 0 0 15px rgba(255,255,255,.08), 0 0 28px rgba(240,191,89,.18);
}

.premium-brand img,
.logo-mark img{
  filter:drop-shadow(0 16px 26px rgba(0,0,0,.36));
}

.footer-brand img{
  filter:drop-shadow(0 14px 24px rgba(0,0,0,.34));
}

.login-logo img{
  filter:drop-shadow(0 26px 50px rgba(0,0,0,.42));
}

@media (max-width: 767px){
  .premium-brand img,
  .logo-mark img,
  .footer-brand img,
  .login-logo img{
    padding:8px 10px;
    border-radius:18px;
  }
}


/* ===== V22 forum topics + replies + logo scale tuning ===== */
.forum-layout{align-items:start}
.forum-topic-list{gap:18px}
.forum-topic-card{display:grid;gap:16px;padding:22px;color:inherit;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.forum-topic-card:hover{transform:translateY(-2px);border-color:rgba(240,191,89,.28);box-shadow:0 18px 32px rgba(0,0,0,.22)}
.forum-topic-card-top{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:20px;align-items:start}
.forum-topic-main h3{margin:10px 0 10px;font-size:24px;line-height:1.2}
.forum-topic-main p{margin:0;color:#d7cfc0;line-height:1.75}
.forum-topic-meta-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.forum-topic-stats{display:grid;gap:12px}
.forum-topic-stats div{padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(240,191,89,.14);text-align:center}
.forum-topic-stats strong{display:block;font-size:28px;color:#fff;line-height:1}
.forum-topic-stats span{display:block;margin-top:6px;color:#cabfae;font-size:13px;text-transform:uppercase;letter-spacing:.06em}
.forum-topic-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;padding-top:4px}
.forum-topic-author{display:flex;align-items:center;gap:14px}
.topic-avatar{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(240,191,89,.26) 0%, rgba(240,191,89,.10) 100%);border:1px solid rgba(240,191,89,.20);color:#f0bf59;font-weight:900;box-shadow:0 10px 18px rgba(0,0,0,.16)}
.forum-topic-author strong,.forum-topic-last strong{display:block;color:#fff}
.forum-topic-author span,.forum-topic-last span{display:block;color:#c9bead;font-size:14px;line-height:1.55}
.forum-topic-last{text-align:right}
.forum-sidebar-card,.forum-compose-panel{padding:22px}
.forum-category-list{display:grid;gap:14px}
.forum-category-row{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:16px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(240,191,89,.10)}
.forum-category-row p{margin:6px 0 0;color:#cec3b3;line-height:1.6}
.forum-empty{padding:26px}
.forum-empty h3{margin:0 0 8px}
.forum-compose-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:4px}
.forum-breadcrumb{display:flex;gap:10px;align-items:center;color:#cfc5b6;margin-bottom:16px;font-size:14px}
.forum-breadcrumb a{color:#f0bf59}
.forum-thread-hero{padding:28px 30px;display:grid;gap:18px}
.forum-thread-hero h1{margin:0;font-family:"Roboto Slab",serif;font-size:clamp(34px,4vw,54px);line-height:1.02}
.forum-thread-meta{padding-top:0}
.thread-inline-stats{grid-template-columns:repeat(2,minmax(110px,1fr));display:grid}
.forum-thread-content{color:#e8e1d6;line-height:1.9;font-size:16px}
.page-header-compact{margin:24px 0 0}
.section-title{margin:0;font-size:32px;font-family:"Roboto Slab",serif}
.forum-replies-section{margin-top:26px}
.forum-reply-card{padding:22px;display:grid;gap:16px}
.forum-reply-form{display:grid;gap:14px}
@media (max-width: 991px){
  .forum-topic-card-top{grid-template-columns:1fr}
  .forum-topic-footer,.forum-topic-last{text-align:left}
}
@media (max-width: 767px){
  .forum-thread-hero{padding:22px}
  .forum-topic-main h3{font-size:22px}
  .forum-topic-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .thread-inline-stats{width:100%}
}



.forum-topic-link{color:inherit;text-decoration:none}
.forum-topic-link:hover{color:#fff;text-decoration:none}
.forum-card-actions{display:flex;justify-content:flex-end;gap:12px}
.forum-open-btn{min-width:160px;text-align:center}

/* ===== V24 mobile UX fixes: login, menu, calculator ===== */
body.login-page{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:24px 0;
  overflow-x:hidden;
}

body.login-page .flash{
  width:min(760px, calc(100% - 24px));
  margin:0 auto 16px;
}

body.login-page .login-shell{
  width:min(1380px, calc(100% - 24px));
}

@media (max-width: 991px){
  .main-nav{
    max-height:calc(100vh - 112px);
    overflow:auto;
    overscroll-behavior:contain;
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu{
    display:grid !important;
  }

  .nav-dropdown-toggle{
    min-height:52px;
  }

  .calculator-shell,
  .compact-commission-grid,
  .sales-hero{
    grid-template-columns:1fr !important;
  }

  .calc-banner,
  .calc-panel,
  .compact-commission-top,
  .compact-commission-form-card,
  .compact-commission-side,
  .compact-orders-table,
  .sales-hero{
    padding:22px 18px;
  }

  .calc-chip-grid,
  .calc-input-grid,
  .calc-results-grid,
  .calc-term-switch,
  .compact-form-grid,
  .compact-commission-results,
  .sales-hero-stats{
    grid-template-columns:1fr !important;
  }

  .compact-head-row{
    flex-direction:column;
    align-items:stretch;
  }

  .compact-type-switch{
    width:100%;
    justify-content:space-between;
  }

  .compact-type-switch button{
    flex:1 1 0;
  }

  .table-wrap,
  .calc-grants-table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .compact-orders-table table,
  .calc-grants-table{
    min-width:640px;
  }

  .review-order-form,
  .review-order-actions,
  .login-secondary-actions{
    grid-template-columns:1fr;
  }
}

@media (max-width: 767px){
  body.login-page{
    padding:16px 0 24px;
    justify-content:flex-start;
  }

  body.login-page .login-shell,
  .login-shell-enhanced{
    width:min(100%, calc(100% - 16px));
    gap:20px;
  }

  .login-logo{
    gap:16px;
  }

  .login-logo img{
    width:min(280px, 100%);
    max-height:96px !important;
    padding:6px 8px;
    border-radius:16px;
  }

  .login-logo-copy{
    max-width:none;
    gap:10px;
  }

  .login-logo-copy h2{
    font-size:28px;
    line-height:1.08;
  }

  .login-logo-copy p,
  .subtitle{
    max-width:none;
    font-size:14px;
    line-height:1.7;
  }

  .form-panel,
  .form-panel-enhanced{
    width:100%;
    max-width:none;
    padding:24px 18px;
    border-radius:20px;
  }

  .form-panel h1{
    font-size:34px;
    line-height:1.04;
  }

  .otp-summary{
    grid-template-columns:1fr;
    padding:14px;
  }

  .otp-summary-icon{
    width:48px;
    height:48px;
  }

  .otp-code-input{
    font-size:24px;
    letter-spacing:.18em;
    text-align:center;
  }

  .btn-login,
  .login-secondary-actions .btn,
  .login-actions .btn-ghost-home{
    width:100%;
    justify-content:center;
  }

  .calculator-page,
  .compact-commission-page,
  .gold-sales-page{
    padding-left:12px;
    padding-right:12px;
  }

  .page-title,
  .compact-commission-header .page-title,
  .sales-hero-title{
    font-size:32px !important;
    line-height:1.02;
  }

  .calc-banner h2,
  .compact-commission-copy h2{
    font-size:26px;
    line-height:1.08;
  }

  .calc-panel-head h3,
  .compact-head-row h3,
  .compact-commission-side h3,
  .compact-orders-head h3{
    font-size:24px;
    line-height:1.14;
  }

  .calc-field.full,
  .compact-form-grid .full{
    grid-column:auto;
  }

  .calc-chip{
    min-height:72px;
    padding:12px 14px;
  }

  .calc-result-card,
  .sales-hero-stat-card,
  .compact-side-item{
    min-height:0;
    padding:16px 14px;
  }

  .calc-result-card strong,
  .sales-hero-stat-card strong,
  .compact-side-item strong{
    font-size:26px !important;
    line-height:1.08;
  }

  .compact-orders-table table,
  .calc-grants-table{
    min-width:560px;
  }
}

@media (max-width: 480px){
  body.login-page .flash,
  body.login-page .login-shell{
    width:calc(100% - 12px);
  }

  .login-logo img{
    width:min(230px, 100%);
    max-height:82px !important;
  }

  .login-logo-copy h2{
    font-size:24px;
  }

  .form-panel,
  .form-panel-enhanced{
    padding:20px 14px;
  }

  .form-panel h1{
    font-size:30px;
  }

  .field,
  .select,
  textarea{
    font-size:15px;
    padding:14px 16px;
  }

  .input-shell .field{
    padding-left:44px;
  }

  .otp-code-input{
    font-size:21px;
    letter-spacing:.12em;
  }

  .calc-banner,
  .calc-panel,
  .compact-commission-form-card,
  .compact-commission-side,
  .compact-orders-table,
  .sales-hero{
    padding:18px 14px;
  }

  .calc-result-card strong,
  .sales-hero-stat-card strong,
  .compact-side-item strong{
    font-size:23px !important;
  }
}

/* ===== V25 commission calculator mobile hardening ===== */
@media (max-width: 767px){
  .sales-commission-page,
  .sales-commission-page *{
    min-width:0;
  }

  .sales-commission-page .sales-hero,
  .sales-commission-page .compact-commission-form-card,
  .sales-commission-page .compact-commission-side,
  .sales-commission-page .compact-orders-table{
    padding:16px 12px !important;
    border-radius:18px;
  }

  .sales-commission-page .sales-hero{
    gap:14px;
  }

  .sales-commission-page .sales-hero-stats,
  .sales-commission-page .compact-form-grid,
  .sales-commission-page .compact-commission-results,
  .sales-commission-page .compact-side-list{
    grid-template-columns:1fr !important;
    gap:10px;
  }

  .sales-commission-page .compact-head-row{
    gap:12px;
    margin-bottom:14px;
  }

  .sales-commission-page .compact-type-switch{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    gap:6px;
    padding:5px;
    border-radius:14px;
  }

  .sales-commission-page .compact-type-switch button{
    min-height:46px;
    padding:10px 8px;
    font-size:13px;
    line-height:1.15;
    text-align:center;
    white-space:normal;
  }

  .sales-commission-page .compact-commission-form,
  .sales-commission-page .compact-commission-form .calc-field,
  .sales-commission-page .compact-commission-form .field,
  .sales-commission-page .compact-commission-form textarea,
  .sales-commission-page .compact-commission-form input,
  .sales-commission-page .compact-commission-form select,
  .sales-commission-page .compact-commission-form button{
    width:100%;
    max-width:100%;
  }

  .sales-commission-page .compact-commission-form .field,
  .sales-commission-page .compact-commission-form textarea{
    padding:13px 14px;
    font-size:15px;
  }

  .sales-commission-page .compact-commission-form input[type="file"]{
    padding:10px 12px;
    font-size:14px;
    overflow:hidden;
  }

  .sales-commission-page .compact-commission-form input[type="file"]::file-selector-button{
    margin-right:10px;
    border:0;
    border-radius:10px;
    padding:10px 12px;
    font-weight:700;
    color:#fff;
    background:rgba(240,191,89,.16);
  }

  .sales-commission-page .compact-commission-results .calc-result-card,
  .sales-commission-page .sales-hero-stat-card,
  .sales-commission-page .compact-side-item{
    padding:14px 12px !important;
  }

  .sales-commission-page .compact-commission-results .calc-result-card small,
  .sales-commission-page .sales-hero-stat-card small{
    margin-bottom:8px;
    min-height:0;
    font-size:11px;
    letter-spacing:.04em;
  }

  .sales-commission-page .compact-commission-results .calc-result-card strong,
  .sales-commission-page .sales-hero-stat-card strong,
  .sales-commission-page .compact-side-item strong{
    font-size:22px !important;
  }

  .sales-commission-page .compact-commission-note{
    flex-direction:column;
    gap:8px;
    padding:12px;
    font-size:14px;
    line-height:1.6;
  }

  .sales-commission-page .commission-progress-meta,
  .sales-commission-page .compact-side-item,
  .sales-commission-page .compact-orders-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .sales-commission-page .commission-progress-meta strong,
  .sales-commission-page .compact-side-item strong{
    margin-top:2px;
  }

  .sales-commission-page .btn-money{
    min-height:50px;
    padding:0 14px;
    font-size:15px;
  }
}

@media (max-width: 520px){
  .sales-commission-page,
  .sales-commission-page.compact-commission-page,
  .sales-commission-page.gold-sales-page{
    padding-left:8px !important;
    padding-right:8px !important;
  }

  .sales-commission-page .sales-hero-title,
  .sales-commission-page .compact-head-row h3,
  .sales-commission-page .compact-commission-side h3,
  .sales-commission-page .compact-orders-head h3{
    font-size:22px !important;
    line-height:1.12;
  }

  .sales-commission-page .sales-hero-text,
  .sales-commission-page .compact-commission-note{
    font-size:13px;
  }

  .sales-commission-page .sales-hero-tags{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .sales-commission-page .compact-type-switch{
    grid-template-columns:1fr;
  }

  .sales-commission-page .compact-type-switch button{
    min-height:44px;
  }

  .sales-commission-page .compact-commission-results .calc-result-card strong,
  .sales-commission-page .sales-hero-stat-card strong,
  .sales-commission-page .compact-side-item strong{
    font-size:20px !important;
  }

  .sales-commission-page .compact-orders-table table{
    min-width:520px;
  }
}

/* ===== V26 mobile overflow + tools toggle + orders segment fix ===== */
@media (max-width: 991px){
  html,
  body,
  body.app-body,
  body.app-body main{
    max-width:100%;
    overflow-x:hidden;
  }

  .app-header,
  .header-wrapper,
  .main-nav,
  .nav-dropdown,
  .nav-dropdown-menu,
  .nav-dropdown-menu a{
    max-width:100%;
  }

  .main-nav{
    overflow-x:hidden;
  }

  .nav-dropdown:hover .nav-dropdown-menu{
    display:none !important;
  }

  .nav-dropdown.is-open .nav-dropdown-menu{
    display:grid !important;
  }
}

@media (max-width: 640px){
  .sales-commission-page,
  .sales-commission-page .compact-orders-table,
  .sales-commission-page .compact-orders-table .table-wrap{
    overflow-x:hidden !important;
  }

  .sales-commission-page .compact-orders-table table{
    min-width:0 !important;
    width:100%;
    table-layout:fixed;
  }

  .sales-commission-page .compact-orders-table thead{
    display:none;
  }

  .sales-commission-page .compact-orders-table tbody,
  .sales-commission-page .compact-orders-table tr,
  .sales-commission-page .compact-orders-table td{
    display:block;
    width:100%;
  }

  .sales-commission-page .compact-orders-table tbody{
    padding:0;
  }

  .sales-commission-page .compact-orders-table tr{
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .sales-commission-page .compact-orders-table tr:last-child{
    border-bottom:0;
  }

  .sales-commission-page .compact-orders-table td{
    border-bottom:0;
    padding:10px 0;
    background:transparent !important;
  }

  .sales-commission-page .compact-orders-table td[data-label]::before{
    content:attr(data-label);
    display:block;
    margin-bottom:6px;
    color:var(--gold-2);
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .sales-commission-page .compact-orders-table .small{
    display:block;
    margin-top:8px !important;
  }

  .sales-commission-page .compact-orders-table .review-order-form{
    display:grid;
    gap:10px;
  }

  .sales-commission-page .compact-orders-table .review-order-form textarea{
    min-height:92px;
    width:100%;
    max-width:100%;
  }

  .sales-commission-page .compact-orders-table .review-order-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .sales-commission-page .compact-orders-table .btn-card{
    width:100%;
  }
}


/* ===== V28 forum title rule + regions map upgrade ===== */
.region-map-layout{display:grid;grid-template-columns:minmax(0,1.2fr) 380px;gap:22px;align-items:start;margin-top:22px}
.region-map-panel{padding:24px}
.region-panel-title{font-size:clamp(34px,4vw,54px)}
.region-live-map{height:430px;border-radius:18px;overflow:hidden;border:1px solid rgba(240,191,89,.15);box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}
.region-map-empty{min-height:430px;border-radius:18px;border:1px dashed rgba(240,191,89,.3);background:rgba(255,255,255,.02);display:flex;align-items:center;justify-content:center;text-align:center;color:#d5c9b5;padding:28px}
.region-google-panel,.region-add-panel{padding:22px}
.region-google-title{margin:0;font-family:"Roboto Slab",serif;font-size:30px;line-height:1.15}
.region-google-meta{line-height:1.7}
.region-google-frame-wrap{border-radius:18px;overflow:hidden;border:1px solid rgba(240,191,89,.16);background:#0f1116;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}
.region-google-frame{display:block;width:100%;height:250px;border:0;background:#111}
.region-google-frame-empty{display:flex;align-items:center;justify-content:center;color:#d4c8b4;text-align:center;padding:20px}
.region-marker-list{display:grid;gap:12px;max-height:340px;overflow:auto;padding-right:4px}
.region-marker-item{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 16px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(240,191,89,.10);transition:border-color .18s ease,background .18s ease,transform .18s ease}
.region-marker-item strong{display:block;color:#fff;margin-bottom:4px}
.region-marker-item p{margin:0;color:#cdc2b2;line-height:1.6}
.region-marker-item.is-active{border-color:rgba(240,191,89,.4);background:linear-gradient(180deg,rgba(240,191,89,.10) 0%,rgba(255,255,255,.03) 100%);transform:translateY(-1px)}
.region-marker-actions,.region-table-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.region-focus-btn.is-active{border-color:rgba(240,191,89,.55);background:rgba(240,191,89,.12)}
.region-google-link{white-space:nowrap}
.region-add-panel{margin-top:22px}
.region-add-help{padding:14px 16px;border-radius:14px;background:rgba(240,191,89,.08);border:1px solid rgba(240,191,89,.16);color:#e4d8bf;line-height:1.75}
@media (max-width: 1199px){
  .region-map-layout{grid-template-columns:1fr}
}
@media (max-width: 767px){
  .region-live-map,.region-map-empty{height:320px;min-height:320px}
  .region-google-frame{height:220px}
  .region-marker-item{flex-direction:column;align-items:flex-start}
  .region-marker-actions,.region-table-actions{width:100%}
  .region-marker-actions > *,.region-table-actions > *{flex:1 1 auto;text-align:center;justify-content:center}
}


/* ===== Forum premium refresh ===== */
.page-forum .container.forum-shell{display:grid;gap:22px;padding-bottom:40px}
.page-forum .forum-hero{display:grid;grid-template-columns:minmax(0,1.3fr) 320px;gap:24px;align-items:stretch;padding:30px 32px;background:radial-gradient(circle at 18% 10%,rgba(255,255,255,.14) 0%,rgba(255,255,255,.05) 18%,rgba(18,22,30,.02) 34%),linear-gradient(135deg,rgba(43,47,58,.96) 0%,rgba(21,24,33,.98) 54%,rgba(12,15,21,.99) 100%);border-color:rgba(214,156,33,.42);box-shadow:0 28px 70px rgba(0,0,0,.34)}
.page-forum .forum-hero-copy{display:grid;gap:14px;align-content:start}
.page-forum .forum-hero-eyebrow,.page-forum .forum-sidebar-kicker{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#f0bf59;font-weight:800}
.page-forum .forum-hero-title{margin:0;font-family:"Roboto Slab",serif;font-size:clamp(2.5rem,4vw,3.7rem);line-height:.98;color:#fff;text-shadow:0 10px 38px rgba(240,191,89,.12)}
.page-forum .forum-hero-text{margin:0;max-width:760px;color:#ded5c7;font-size:1.03rem;line-height:1.85}
.page-forum .forum-hero-highlights{display:flex;flex-wrap:wrap;gap:10px 14px;margin-top:2px}
.page-forum .forum-hero-highlights span{display:inline-flex;gap:8px;align-items:center;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(240,191,89,.12);color:#efe6d7;font-size:13px}
.page-forum .forum-hero-highlights i{color:#f0bf59}
.page-forum .forum-hero-aside{display:grid;gap:14px;align-content:start;padding:22px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.06) 0%,rgba(255,255,255,.025) 100%);border:1px solid rgba(240,191,89,.16)}
.page-forum .forum-hero-badge{display:inline-flex;align-items:center;justify-content:center;width:max-content;padding:7px 12px;border-radius:999px;background:rgba(240,191,89,.12);border:1px solid rgba(240,191,89,.24);color:#f0bf59;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.page-forum .forum-hero-aside strong{font-size:28px;line-height:1.1;color:#fff;font-family:"Roboto Slab",serif}
.page-forum .forum-hero-aside span{color:#d7cebf;line-height:1.7}
.page-forum .forum-hero-btn{width:100%;justify-content:center;gap:10px}
.page-forum .forum-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.page-forum .forum-summary-card{padding:20px 22px;border-radius:20px;background:linear-gradient(180deg,rgba(43,46,54,.94) 0%,rgba(23,26,34,.98) 100%);border:1px solid rgba(240,191,89,.16);box-shadow:0 18px 48px rgba(0,0,0,.22);display:grid;gap:8px}
.page-forum .forum-summary-label{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#a89b86;font-weight:700}
.page-forum .forum-summary-card strong{font-size:38px;line-height:1;color:#fff;font-family:"Roboto Slab",serif}
.page-forum .forum-summary-card small{color:#cabfae;line-height:1.55;font-size:13px}
.page-forum .forum-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.page-forum .forum-main-column{min-width:0}
.page-forum .forum-sidebar{position:sticky;top:100px}
.page-forum .forum-topic-list{display:grid;gap:16px}
.page-forum .forum-topic-card-premium{padding:22px 24px;display:grid;gap:18px;background:linear-gradient(180deg,rgba(38,41,49,.96) 0%,rgba(18,22,30,.98) 100%);border-color:rgba(240,191,89,.20);box-shadow:0 18px 44px rgba(0,0,0,.24)}
.page-forum .forum-topic-card-premium:hover{transform:translateY(-2px);border-color:rgba(240,191,89,.30);box-shadow:0 24px 56px rgba(0,0,0,.30)}
.page-forum .forum-topic-head{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}
.page-forum .forum-topic-main{display:grid;gap:10px;min-width:0}
.page-forum .forum-topic-meta-top{margin-bottom:2px}
.page-forum .forum-topic-title{margin:0;font-size:30px;line-height:1.15;font-family:"Roboto Slab",serif}
.page-forum .forum-topic-link{color:#fff;text-decoration:none}
.page-forum .forum-topic-link:hover{color:#ffe0a3}
.page-forum .forum-topic-excerpt{margin:0;color:#d9d0c2;line-height:1.8;font-size:15px;max-width:88ch}
.page-forum .forum-topic-aside{display:grid;gap:14px;align-content:start;min-width:0}
.page-forum .forum-topic-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.page-forum .forum-topic-kpi{padding:12px 8px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(240,191,89,.14);display:grid;gap:6px;text-align:center;min-width:0;overflow:hidden}
.page-forum .forum-topic-kpi span{font-size:10px;letter-spacing:.10em;text-transform:uppercase;color:#b9ab95;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-forum .forum-topic-kpi strong{font-size:26px;line-height:1;color:#fff;font-family:"Roboto Slab",serif}
.page-forum .forum-open-btn{min-width:0;width:100%;text-align:center;justify-content:center}
.page-forum .forum-topic-foot{display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;padding-top:2px;border-top:1px solid rgba(255,255,255,.05);padding-top:18px}
.page-forum .forum-member{display:flex;align-items:center;gap:14px;min-width:0}
.page-forum .forum-topic-author strong,.page-forum .forum-last-activity strong{display:block;color:#fff}
.page-forum .forum-topic-author span{display:block;color:#c5b9a9;font-size:14px;line-height:1.55}
.page-forum .forum-last-activity{text-align:right;display:grid;gap:4px;justify-items:end}
.page-forum .forum-last-activity span{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#b8aa93;font-weight:700}
.page-forum .forum-last-activity small{color:#d0c5b6;font-size:14px}
.page-forum .forum-sidebar-card,.page-forum .forum-compose-panel-premium{padding:24px 24px 26px;background:linear-gradient(180deg,rgba(37,40,48,.95) 0%,rgba(17,21,29,.98) 100%);border-color:rgba(240,191,89,.20)}
.page-forum .forum-sidebar-card h3,.forum-thread-page .forum-compose-panel h3{margin:6px 0 8px;font-family:"Roboto Slab",serif;font-size:32px;line-height:1.08}
.page-forum .forum-sidebar-note{margin:0;color:#d8cfc1;line-height:1.75}
.page-forum .forum-tag-cloud{margin-top:16px}
.page-forum .forum-category-row.compact{padding:14px 16px;background:rgba(255,255,255,.025)}
.page-forum .forum-category-row.compact strong{display:block;font-size:15px;color:#fff}
.page-forum .forum-category-row.compact p{font-size:13px;line-height:1.6}
.page-forum .forum-announcement-list{display:grid;gap:12px;margin-top:14px}
.page-forum .forum-announcement-item{padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(240,191,89,.10);display:grid;gap:6px}
.page-forum .forum-announcement-item strong{color:#fff;font-size:16px}
.page-forum .forum-announcement-item span{color:#c8bda9;font-size:13px}
.page-forum .forum-compose-header{margin-bottom:16px}
.page-forum .forum-compose-header h3{margin:8px 0 8px;font-family:"Roboto Slab",serif;font-size:34px}
.page-forum .forum-compose-grid textarea{min-height:170px}
.page-forum .forum-inline-actions{justify-content:space-between}
.page-forum .forum-inline-actions .small{max-width:520px}
.page-forum .forum-empty-polished{padding:28px;display:grid;gap:10px;justify-items:start}
.page-forum .forum-empty-polished h3{margin:0;font-family:"Roboto Slab",serif}
.forum-thread-page{display:grid;gap:20px;padding-bottom:36px}
.forum-thread-page .forum-breadcrumb{margin-bottom:0;padding-left:2px}
.forum-thread-page .forum-thread-hero{padding:30px 32px;background:radial-gradient(circle at 16% 10%,rgba(255,255,255,.14) 0%,rgba(255,255,255,.04) 18%,rgba(18,22,30,.02) 34%),linear-gradient(135deg,rgba(43,47,58,.96) 0%,rgba(21,24,33,.98) 54%,rgba(12,15,21,.99) 100%);border-color:rgba(214,156,33,.42);box-shadow:0 26px 64px rgba(0,0,0,.32)}
.forum-thread-page .forum-thread-hero h1{margin:0;font-family:"Roboto Slab",serif;font-size:clamp(2.1rem,4vw,3.5rem);line-height:1.05}
.forum-thread-page .forum-thread-meta{padding-top:2px}
.forum-thread-page .thread-inline-stats{grid-template-columns:repeat(2,minmax(120px,1fr));max-width:320px}
.forum-thread-page .forum-thread-content{font-size:16px;line-height:1.9;color:#e7dfd3}
.forum-thread-page .forum-replies-section{display:grid;gap:16px;margin-top:4px}
.forum-thread-page .forum-reply-card{padding:22px 24px;background:linear-gradient(180deg,rgba(37,40,48,.95) 0%,rgba(17,21,29,.98) 100%);border-color:rgba(240,191,89,.16)}
.forum-thread-page .forum-compose-panel{padding:24px 24px 26px;background:linear-gradient(180deg,rgba(37,40,48,.95) 0%,rgba(17,21,29,.98) 100%);border-color:rgba(240,191,89,.20)}
.forum-thread-page .forum-reply-form textarea{min-height:150px}
@media (max-width:1180px){
  .page-forum .forum-hero{grid-template-columns:1fr}
  .page-forum .forum-workspace{grid-template-columns:1fr}
  .page-forum .forum-sidebar{position:static}
}
@media (max-width:900px){
  .page-forum .forum-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-forum .forum-topic-head{grid-template-columns:1fr}
}
@media (max-width:640px){
  .page-forum .container.forum-shell{gap:18px}
  .page-forum .forum-hero,.forum-thread-page .forum-thread-hero{padding:22px 20px}
  .page-forum .forum-summary-grid{grid-template-columns:1fr 1fr;gap:12px}
  .page-forum .forum-summary-card{padding:16px 16px 18px}
  .page-forum .forum-summary-card strong{font-size:30px}
  .page-forum .forum-topic-card-premium,.page-forum .forum-sidebar-card,.page-forum .forum-compose-panel-premium,.forum-thread-page .forum-compose-panel,.forum-thread-page .forum-reply-card{padding:18px}
  .page-forum .forum-topic-title{font-size:24px}
  .page-forum .forum-topic-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-forum .forum-topic-foot{align-items:flex-start}
  .page-forum .forum-last-activity{text-align:left;justify-items:start}
  .page-forum .forum-inline-actions{align-items:flex-start}
  .page-forum .forum-inline-actions .small{max-width:none}
  .forum-thread-page .thread-inline-stats{max-width:none}
}
@media (max-width:480px){
  .page-forum .forum-summary-grid{grid-template-columns:1fr}
  .page-forum .forum-hero-highlights{flex-direction:column}
  .page-forum .forum-topic-kpis{grid-template-columns:1fr 1fr}
}


/* ===== V30 mobile polish: homepage quote section + calculator ===== */
html,body{max-width:100%;overflow-x:hidden}
img,svg,iframe{max-width:100%;height:auto}

.quote-form{overflow:hidden}
.quote-form .row{--bs-gutter-x:14px;--bs-gutter-y:14px}
.quote-form .btn-lg{min-height:56px}

@media (max-width: 767px){
  .quote-section{padding-top:64px;padding-bottom:64px}
  .quote-grid{row-gap:20px}
  .quote-section .col-lg-5,
  .quote-section .col-lg-7{display:block}
  .quote-section .section-title{font-size:clamp(2rem,8vw,2.5rem);line-height:1.04}
  .quote-section .section-copy{max-width:none;font-size:.98rem;line-height:1.7}
  .contact-stack{gap:12px;margin-top:18px}
  .contact-chip{padding:14px 16px;border-radius:14px}
  .contact-chip strong{font-size:.98rem}
  .contact-chip span{display:block;font-size:.92rem;line-height:1.55}
  .quote-form{padding:20px 16px;border-radius:20px}
  .quote-form h3{font-size:1.45rem;line-height:1.15}
  .quote-form .premium-input{padding:14px 15px}
  .quote-form .select-tile{min-height:50px;padding:12px 10px;font-size:13px;line-height:1.25}

  .calculator-page{padding-left:10px;padding-right:10px;overflow-x:hidden}
  .calculator-page-header{margin-bottom:14px}
  .calculator-page-header .muted{max-width:none;font-size:14px;line-height:1.65}
  .calc-banner{gap:16px;padding:18px 14px;border-radius:20px;margin-bottom:18px}
  .calc-banner-copy,.calc-banner-stats,.calc-panel{min-width:0}
  .calc-banner h2{font-size:clamp(1.55rem,7vw,2rem);line-height:1.08;margin-bottom:10px}
  .calc-banner p{font-size:14px;line-height:1.65;max-width:none}
  .calc-banner-stats{grid-template-columns:1fr;gap:10px}
  .calc-stat-box{min-height:0;padding:14px 14px;border-radius:16px}
  .calc-stat-box small{font-size:11px;letter-spacing:.12em}
  .calc-stat-box strong{font-size:20px;line-height:1.15;overflow-wrap:anywhere}
  .calc-panel{padding:18px 14px;border-radius:20px}
  .calc-panel-head{gap:14px;margin-bottom:16px}
  .calc-panel-head h3{font-size:1.35rem;line-height:1.18}
  .calc-panel-icon{width:46px;height:46px;border-radius:14px;font-size:18px}
  .calc-reset-btn{min-height:46px;padding:0 14px;font-size:14px}
  .calc-grants-table-wrap{overflow:visible;border:none;box-shadow:none}
  .calc-grants-table,.calc-grants-table thead,.calc-grants-table tbody,.calc-grants-table tr,.calc-grants-table th,.calc-grants-table td{display:block;width:100%}
  .calc-grants-table{min-width:0 !important;border-collapse:separate}
  .calc-grants-table thead{display:none}
  .calc-grants-table tbody{display:grid;gap:10px}
  .calc-grants-table tbody tr{border-radius:16px;border:1px solid rgba(129,236,175,.24);background:linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.015) 100%);overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
  .calc-grants-table tbody td{padding:12px 14px;border-top:0;background:none !important;font-size:14px;line-height:1.5}
  .calc-grants-table tbody td:first-child{padding-bottom:4px;color:#fff}
  .calc-grants-table tbody td:last-child{text-align:left;padding-top:0;font-size:18px;color:#69f0b1}
  .calc-tax-info{display:grid;grid-template-columns:1fr;gap:10px;margin-top:14px}
  .calc-info-pill{padding:12px 14px;border-radius:14px}
  .calc-input-grid{grid-template-columns:1fr !important;gap:14px}
  .calc-field{gap:8px}
  .calc-field.full{grid-column:1 / -1}
  .calc-chip-grid{grid-template-columns:1fr !important;gap:10px}
  .calc-chip{min-height:0;padding:14px;border-radius:16px}
  .calc-chip-title,.calc-chip-value,.calc-selected-line,.calc-note span{overflow-wrap:anywhere;word-break:break-word}
  .calc-input-shell .field{padding-right:54px}
  .calc-term-switch{grid-template-columns:1fr 1fr !important;gap:10px}
  .calc-term-btn{min-height:52px;padding:10px 12px;border-radius:14px}
  .calc-term-btn span{font-size:12px;line-height:1.2}
  .calc-results-grid{grid-template-columns:1fr !important;gap:12px;margin-top:18px}
  .calc-result-card{min-height:0;padding:16px 14px;border-radius:18px}
  .calc-result-card small{margin-bottom:10px;font-size:11px;line-height:1.35}
  .calc-result-card strong{font-size:22px !important;line-height:1.12;overflow-wrap:anywhere;word-break:break-word}
  .calc-note{gap:10px;margin-top:16px;padding:14px;border-radius:14px;font-size:14px;line-height:1.6}
}

@media (max-width: 575px){
  .quote-form .row{--bs-gutter-x:10px;--bs-gutter-y:10px}
  .quote-form .select-tile{font-size:12px;padding:11px 8px}
  .calc-term-switch{grid-template-columns:1fr !important}
}

/* ===== V31 attendance + pricing mobile fixes ===== */
.attendance-layout{
  align-items:start;
}
.attendance-add-panel .btn-primary{
  min-height:52px;
}

.premium-table-wrap{
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
}

.pricing-table{
  min-width:720px;
}

@media (max-width: 767px){
  .attendance-layout{
    grid-template-columns:1fr;
  }

  .attendance-add-panel{
    padding:18px 14px !important;
  }

  .attendance-add-panel .form-grid{
    grid-template-columns:1fr;
  }

  .pricing-page{
    padding-left:12px;
    padding-right:12px;
  }

  .pricing-accordion-body,
  .pricing-section-card,
  .pricing-group-card,
  .pricing-subtable-card{
    min-width:0;
  }

  .premium-table-wrap{
    overflow:visible;
    border:none;
    background:transparent;
  }

  .pricing-table,
  .pricing-table thead,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table th,
  .pricing-table td{
    display:block;
    width:100%;
  }

  .pricing-table{
    min-width:0;
    border-collapse:separate;
    border-spacing:0;
  }

  .pricing-table thead{
    display:none;
  }

  .pricing-table tbody{
    display:grid;
    gap:12px;
  }

  .pricing-table tr{
    border:1px solid rgba(240,191,89,.14);
    border-radius:16px;
    overflow:hidden;
    background:linear-gradient(180deg,rgba(255,255,255,.025) 0%,rgba(255,255,255,.015) 100%);
  }

  .pricing-table td{
    border-bottom:1px solid rgba(255,255,255,.06);
    padding:12px 14px 12px 126px;
    position:relative;
    text-align:left !important;
    min-height:48px;
    white-space:normal;
    word-break:break-word;
  }

  .pricing-table td:last-child{
    border-bottom:none;
  }

  .pricing-table td::before{
    content:attr(data-label);
    position:absolute;
    left:14px;
    top:12px;
    width:98px;
    font-size:11px;
    line-height:1.35;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--gold-2);
    font-weight:800;
  }

  .pricing-table .row-label{
    background:rgba(240,191,89,.08);
    color:#fff;
    font-weight:800;
  }
}

@media (max-width: 480px){
  .pricing-table td{
    padding-left:112px;
  }

  .pricing-table td::before{
    width:86px;
    left:12px;
  }
}

.admin-users-layout{align-items:start}
.admin-user-form-panel{padding:22px}
.admin-user-form-panel h3{margin-top:0;margin-bottom:16px;font-family:"Roboto Slab",serif;font-size:28px}
.admin-inline-form{margin:0;display:inline-flex}
.admin-checkbox-row{margin-top:4px}
.admin-setting-check{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.03)}
.admin-setting-check input{margin-top:4px;accent-color:var(--gold);transform:scale(1.1)}
.admin-setting-check strong{display:block;color:#fff;font-size:15px}
.admin-setting-check small{display:block;margin-top:6px;color:#b9b2a4;line-height:1.5}

@media (max-width: 1199px){
  .admin-users-layout{grid-template-columns:1fr}
}

@media (max-width: 767px){
  .admin-inline-form{width:100%}
  .admin-inline-form button{width:100%}
}


/* --- Premium admin panel --- */
.admin-shell{display:grid;gap:24px;min-width:0;overflow-x:hidden}
.admin-hero{display:grid;grid-template-columns:minmax(0,1.3fr) 340px;gap:24px;padding:30px;border:1px solid rgba(199,144,33,.35);background:
radial-gradient(circle at top right, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 34%),
linear-gradient(135deg, rgba(58,45,20,.88) 0%, rgba(23,26,34,.97) 44%, rgba(10,12,18,.98) 100%)}
.admin-hero .page-title{margin-bottom:10px}
.admin-hero-text{max-width:900px;color:#d0c8b9;line-height:1.7;margin:0}
.admin-hero-pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.admin-hero-pills .tag{gap:8px}
.admin-hero-side{display:grid;gap:14px}
.admin-highlight-card{padding:20px;border-radius:18px;border:1px solid rgba(199,144,33,.28);background:linear-gradient(180deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.03) 100%);box-shadow:0 16px 34px rgba(0,0,0,.2)}
.admin-highlight-card.subtle{border-color:rgba(255,255,255,.08)}
.admin-highlight-card small{display:block;color:#d6cfbf;text-transform:uppercase;letter-spacing:.12em;font-size:11px}
.admin-highlight-card strong{display:block;margin-top:10px;font-size:30px;color:#fff;font-family:"Roboto Slab",serif}
.admin-highlight-card span{display:block;margin-top:8px;color:#beb6a6;line-height:1.5}
.admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;min-width:0}
.admin-metric-card{padding:22px;position:relative;overflow:hidden}
.admin-metric-card::after{content:"";position:absolute;right:-22px;top:-22px;width:92px;height:92px;border-radius:999px;background:radial-gradient(circle, rgba(199,144,33,.22), rgba(199,144,33,0))}
.admin-metric-card span{display:block;margin-top:10px;color:#c6bfaf;line-height:1.5;font-size:.95rem}
.admin-main-grid{display:grid;grid-template-columns:1fr;gap:22px;align-items:start;min-width:0}
.admin-premium-table-card{overflow:hidden;min-width:0}
.admin-section-toolbar{padding:22px 24px;background:linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.015) 100%)}
.admin-section-toolbar strong{font-size:20px;color:#fff}
.admin-user-table th{background:linear-gradient(180deg,#d09b2b 0%, #b57d11 100%);font-size:13px;letter-spacing:.04em;text-transform:uppercase}
.admin-user-table td{vertical-align:middle}
.admin-user-id-cell{display:flex;align-items:center;gap:14px;min-width:0}
.admin-user-avatar{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(22,86,142,.9) 0%, rgba(18,49,76,.85) 100%);border:1px solid rgba(120,187,255,.28);font-weight:800;color:#d8ecff;text-transform:uppercase;box-shadow:0 14px 24px rgba(0,0,0,.18)}
.admin-status-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.04em;border:1px solid rgba(255,255,255,.12)}
.admin-status-badge.is-on{background:rgba(28,89,55,.34);color:#a7efc4;border-color:rgba(63,172,106,.38)}
.admin-status-badge.is-off{background:rgba(91,38,38,.28);color:#ffc3c3;border-color:rgba(195,96,96,.32)}
.admin-side-stack{padding:0;background:transparent;border:0;box-shadow:none;display:grid;gap:22px;min-width:0}
.admin-form-card,.admin-backup-card{padding:24px;border-radius:22px;border:1px solid rgba(199,144,33,.25);background:linear-gradient(180deg,rgba(40,42,48,.95) 0%,rgba(16,18,24,.98) 100%);box-shadow:var(--shadow);min-width:0}
.admin-card-head h3{margin:8px 0 10px;font-family:"Roboto Slab",serif;font-size:38px;color:#fff}
.admin-card-head p{margin:0;color:#c8c1b3;line-height:1.7}
.admin-form-grid{margin-top:18px}
.admin-setting-check--highlight{background:linear-gradient(180deg,rgba(199,144,33,.14) 0%,rgba(255,255,255,.03) 100%);border-color:rgba(199,144,33,.32)}
.admin-submit-btn,.admin-backup-btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:10px}
.admin-backup-section{display:grid;gap:22px;min-width:0}
.admin-backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;min-width:0}
.admin-backup-form,.admin-restore-form{margin-top:18px;display:grid;gap:14px}
.admin-backup-note{margin-top:14px;color:#bfb7a9;line-height:1.6;font-size:.95rem}
.admin-file-input{display:grid;gap:10px;padding:18px;border-radius:16px;border:1px dashed rgba(199,144,33,.35);background:rgba(255,255,255,.03);color:#fff}
.admin-file-input span{font-weight:700}
.admin-file-input input[type=file]{width:100%}
.admin-backup-list-card{overflow:hidden}
.admin-backup-table th{background:linear-gradient(180deg,#1f3550 0%, #162639 100%);font-size:13px;letter-spacing:.04em;text-transform:uppercase}
.admin-download-link{display:inline-flex;align-items:center;gap:8px}

.admin-users-wrap{overflow:visible;min-width:0}
.admin-user-table{width:100%;table-layout:fixed}
.admin-user-table th:nth-child(1){width:28%}
.admin-user-table th:nth-child(2){width:24%}
.admin-user-table th:nth-child(3){width:12%}
.admin-user-table th:nth-child(4){width:10%}
.admin-user-table th:nth-child(5){width:14%}
.admin-user-table th:nth-child(6){width:12%}
.admin-user-table td{word-break:break-word}
.admin-user-table th:nth-child(5),.admin-user-table th:nth-child(6),.admin-user-table td:nth-child(5),.admin-user-table td:nth-child(6){text-align:center}
.admin-email-cell{overflow-wrap:anywhere;word-break:break-word}
.admin-inline-form{width:auto;display:flex;justify-content:center}
.admin-user-table td .admin-status-badge,.admin-user-table td .admin-toggle-btn{word-break:normal;overflow-wrap:normal}
.admin-toggle-btn{width:auto;min-width:118px;max-width:100%;justify-content:center;white-space:nowrap;line-height:1.35;padding:11px 14px;word-break:normal;overflow-wrap:normal;writing-mode:horizontal-tb;text-orientation:mixed}
.admin-status-badge{white-space:nowrap;word-break:normal;overflow-wrap:normal;writing-mode:horizontal-tb;text-orientation:mixed;min-width:124px;max-width:100%;justify-content:center;padding:12px 16px;font-size:13px;line-height:1.2}

@media (max-width:1439px){
  .admin-hero{grid-template-columns:1fr}
  .admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-backup-grid{grid-template-columns:1fr}
}
@media (max-width:1100px){
  .admin-users-wrap{overflow:visible;min-width:0}
  .admin-user-table,
  .admin-user-table thead,
  .admin-user-table tbody,
  .admin-user-table tr,
  .admin-user-table th,
  .admin-user-table td{display:block;width:100%}
  .admin-user-table thead{display:none}
  .admin-user-table tbody{display:grid;gap:14px;padding:16px}
  .admin-user-table tr{border:1px solid rgba(199,144,33,.18);border-radius:18px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.03) 0%,rgba(255,255,255,.01) 100%)}
  .admin-user-table td{border-bottom:1px solid rgba(255,255,255,.06);padding:14px 16px 14px 150px;position:relative;min-height:58px;background:transparent !important}
  .admin-user-table td:last-child{border-bottom:0}
  .admin-user-table td::before{content:attr(data-label);position:absolute;left:16px;top:14px;width:118px;font-size:12px;line-height:1.35;text-transform:uppercase;letter-spacing:.08em;color:var(--gold-2);font-weight:800}
  .admin-user-id-cell{min-width:0;align-items:flex-start}
  .admin-inline-form,.admin-toggle-btn{width:100%}
}
@media (max-width:1100px){
  .admin-user-table td[data-label="Logowanie przez kod"],
  .admin-user-table td[data-label="Zmiana"]{padding-top:16px;padding-bottom:16px}
  .admin-user-table td[data-label="Logowanie przez kod"] .admin-status-badge,
  .admin-user-table td[data-label="Zmiana"] .admin-toggle-btn{min-height:48px}
  .admin-user-table td[data-label="Zmiana"] .admin-inline-form{display:flex;align-items:center}
}
@media (max-width:767px){
  .admin-shell{gap:18px}
  .admin-form-grid{grid-template-columns:1fr}
  .admin-user-table tbody{padding:12px}
  .admin-backup-grid{grid-template-columns:1fr}
  .admin-hero{padding:22px;border-radius:18px}
  .admin-card-head h3{font-size:30px}
  .admin-stat-grid{grid-template-columns:1fr}
  .admin-user-avatar{width:40px;height:40px;border-radius:12px}
  .admin-premium-table-card,.admin-form-card,.admin-backup-card,.admin-backup-list-card{border-radius:18px}
  .admin-section-toolbar{padding:18px}
  .admin-form-card,.admin-backup-card{padding:20px}
  .admin-card-head h3{font-size:26px}
  .admin-user-table td{padding:13px 14px 13px 132px}
  .admin-user-table td::before{left:14px;top:13px;width:104px;font-size:11px}
  .admin-status-badge,.admin-toggle-btn{min-width:160px;max-width:100%}
  .admin-backup-table th,.admin-backup-table td{padding:12px 10px}
}
@media (max-width:480px){
  .admin-hero-pills{gap:8px}
  .admin-user-table tbody{padding:12px}
  .admin-user-table td{padding:64px 14px 14px}
  .admin-user-table td::before{position:static;display:block;width:auto;margin-bottom:8px}
  .admin-user-id-cell{gap:10px}
  .admin-user-avatar{width:36px;height:36px}
  .admin-status-badge,.admin-toggle-btn{width:100%;min-width:0}
}

@media (max-width:1680px){
  .admin-status-badge{min-width:124px;padding:11px 14px;font-size:12px}
  .admin-toggle-btn{min-width:124px;padding:10px 12px;font-size:14px}
}

/* --- Admin mobile stability overrides v38 --- */
body.page-admin{overflow-x:hidden}
.page-admin .container.admin-shell{overflow-x:clip}
.page-admin .admin-hero .page-title,
.page-admin .admin-card-head h3,
.page-admin .admin-section-toolbar strong{overflow-wrap:anywhere}
.page-admin .admin-hero-pills .tag{max-width:100%}
.page-admin .admin-users-mobile-list{display:none}
.page-admin .admin-user-mobile-card{min-width:0}
.page-admin .admin-user-mobile-head{display:flex;align-items:center;gap:14px;padding:18px;border-bottom:1px solid rgba(255,255,255,.06)}
.page-admin .admin-user-mobile-title{min-width:0}
.page-admin .admin-user-mobile-title strong{display:block;font-size:1.15rem;color:#fff;line-height:1.2}
.page-admin .admin-user-mobile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}
.page-admin .admin-user-mobile-field{min-width:0;display:grid;gap:8px}
.page-admin .admin-user-mobile-field span{font-size:12px;line-height:1.35;text-transform:uppercase;letter-spacing:.08em;color:var(--gold-2);font-weight:800}
.page-admin .admin-user-mobile-field strong{display:block;color:#fff;font-size:1rem;line-height:1.45;overflow-wrap:anywhere;word-break:break-word}
.page-admin .admin-user-mobile-actions{padding:0 18px 18px;margin:0}
.page-admin .admin-user-mobile-actions .admin-toggle-btn{width:100%;justify-content:center;min-height:48px}
.page-admin .admin-backup-list-card .table-wrap{overflow:visible}

@media (max-width: 991px){
  .page-admin .container.admin-shell{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));gap:16px}
  .page-admin .admin-hero{padding:20px 18px;gap:16px;border-radius:18px}
  .page-admin .admin-hero .page-title{font-size:clamp(2.5rem, 12vw, 3.9rem);line-height:.92;margin-bottom:12px}
  .page-admin .admin-hero-text{font-size:1rem;line-height:1.55}
  .page-admin .admin-hero-pills{display:grid;grid-template-columns:1fr;gap:10px}
  .page-admin .admin-hero-pills .tag{width:100%;justify-content:center;padding:12px 16px}
  .page-admin .admin-hero-side{grid-template-columns:1fr;gap:12px}
  .page-admin .admin-highlight-card{padding:18px}
  .page-admin .admin-highlight-card strong{font-size:clamp(2rem, 10vw, 2.8rem);line-height:1.02}
  .page-admin .admin-stat-grid{grid-template-columns:1fr;gap:14px}
  .page-admin .admin-metric-card{padding:18px}
  .page-admin .admin-section-toolbar{padding:18px 16px}
  .page-admin .admin-users-desktop{display:none}
  .page-admin .admin-users-mobile-list{display:grid;gap:14px;padding:14px}
  .page-admin .admin-user-mobile-card{border:1px solid rgba(199,144,33,.18);border-radius:18px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.03) 0%,rgba(255,255,255,.01) 100%)}
  .page-admin .admin-user-mobile-grid{grid-template-columns:1fr}
  .page-admin .admin-status-badge{width:100%;max-width:none;min-width:0;justify-content:center}
  .page-admin .admin-form-grid{grid-template-columns:1fr}
  .page-admin .admin-form-card,.page-admin .admin-backup-card{padding:20px 16px}
  .page-admin .admin-card-head h3{font-size:clamp(2rem, 9vw, 2.6rem);line-height:1}
  .page-admin .admin-backup-grid{grid-template-columns:1fr;gap:16px}
  .page-admin .admin-backup-table,
  .page-admin .admin-backup-table thead,
  .page-admin .admin-backup-table tbody,
  .page-admin .admin-backup-table tr,
  .page-admin .admin-backup-table th,
  .page-admin .admin-backup-table td{display:block;width:100%}
  .page-admin .admin-backup-table thead{display:none}
  .page-admin .admin-backup-table tbody{display:grid;gap:14px;padding:14px}
  .page-admin .admin-backup-table tr{border:1px solid rgba(199,144,33,.18);border-radius:18px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.03) 0%,rgba(255,255,255,.01) 100%)}
  .page-admin .admin-backup-table td{border-bottom:1px solid rgba(255,255,255,.06);padding:14px 16px 14px 146px;position:relative;background:transparent !important;min-height:56px}
  .page-admin .admin-backup-table td:last-child{border-bottom:0}
  .page-admin .admin-backup-table td::before{content:attr(data-label);position:absolute;left:16px;top:14px;width:118px;font-size:12px;line-height:1.35;text-transform:uppercase;letter-spacing:.08em;color:var(--gold-2);font-weight:800}
  .page-admin .admin-backup-table td[data-label="Pobierz"] .admin-download-link{width:100%;justify-content:center}
}

@media (max-width: 575px){
  .page-admin .admin-hero{padding:18px 14px}
  .page-admin .admin-hero-text{font-size:.97rem}
  .page-admin .admin-users-mobile-list{padding:12px}
  .page-admin .admin-user-mobile-head{padding:16px}
  .page-admin .admin-user-mobile-grid{padding:16px;gap:12px}
  .page-admin .admin-user-mobile-actions{padding:0 16px 16px}
  .page-admin .admin-backup-table tbody{padding:12px}
  .page-admin .admin-backup-table td{padding:62px 14px 14px}
  .page-admin .admin-backup-table td::before{position:static;display:block;width:auto;margin-bottom:8px}
}


/* --- Admin mobile overflow hard-fix v39 --- */
html,body.page-admin{width:100%;max-width:100%;overflow-x:hidden!important}
body.page-admin main,
body.page-admin .app-header,
body.page-admin .header-wrapper,
body.page-admin .container,
body.page-admin .container.admin-shell,
body.page-admin .admin-shell,
body.page-admin .admin-hero,
body.page-admin .admin-stat-grid,
body.page-admin .admin-main-grid,
body.page-admin .admin-backup-section,
body.page-admin .admin-backup-grid,
body.page-admin .admin-premium-table-card,
body.page-admin .admin-form-card,
body.page-admin .admin-backup-card,
body.page-admin .admin-backup-list-card,
body.page-admin .admin-users-mobile-list,
body.page-admin .admin-user-mobile-card,
body.page-admin .admin-user-mobile-head,
body.page-admin .admin-user-mobile-title,
body.page-admin .admin-user-mobile-grid,
body.page-admin .admin-user-mobile-field,
body.page-admin .admin-user-mobile-actions{min-width:0!important;max-width:100%!important}
body.page-admin .admin-premium-table-card,
body.page-admin .admin-form-card,
body.page-admin .admin-backup-card,
body.page-admin .admin-backup-list-card,
body.page-admin .admin-highlight-card,
body.page-admin .admin-metric-card{overflow:hidden}
body.page-admin .user-pill,
body.page-admin .user-pill-toggle,
body.page-admin .user-pill-menu{max-width:100%;min-width:0}
body.page-admin .user-pill-toggle span,
body.page-admin .admin-hero-text,
body.page-admin .admin-section-toolbar strong,
body.page-admin .admin-card-head h3,
body.page-admin .admin-user-mobile-title strong,
body.page-admin .admin-user-mobile-field strong,
body.page-admin .admin-email-cell{overflow-wrap:anywhere;word-break:break-word}

@media (max-width: 1200px){
  body.page-admin .admin-hero{grid-template-columns:1fr!important;padding:20px 16px!important;gap:16px!important}
  body.page-admin .admin-hero-pills{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  body.page-admin .admin-hero-pills .tag{width:100%!important;justify-content:center!important;text-align:center!important;white-space:normal!important}
  body.page-admin .admin-hero-side,
  body.page-admin .admin-stat-grid,
  body.page-admin .admin-main-grid,
  body.page-admin .admin-backup-grid{grid-template-columns:1fr!important}
  body.page-admin .admin-users-desktop{display:none!important}
  body.page-admin .admin-users-mobile-list{display:grid!important;padding:14px!important;gap:14px!important}
}

@media (max-width: 768px){
  body.page-admin .container.admin-shell{padding-left:12px!important;padding-right:12px!important}
  body.page-admin .admin-hero .page-title{font-size:clamp(2.2rem,12vw,3.2rem)!important;line-height:.96!important}
  body.page-admin .admin-hero-text{font-size:.98rem!important;line-height:1.5!important}
  body.page-admin .admin-highlight-card{padding:16px!important}
  body.page-admin .admin-highlight-card strong{font-size:clamp(1.8rem,10vw,2.5rem)!important;line-height:1.02!important}
  body.page-admin .admin-section-toolbar{padding:16px 14px!important}
  body.page-admin .admin-section-toolbar strong{display:block!important;font-size:clamp(1.5rem,7vw,2rem)!important;line-height:1.08!important}
  body.page-admin .admin-user-mobile-card{border-radius:18px!important}
  body.page-admin .admin-user-mobile-head{padding:14px!important;align-items:flex-start!important}
  body.page-admin .admin-user-mobile-title strong{font-size:1.05rem!important;line-height:1.2!important}
  body.page-admin .admin-user-mobile-grid{padding:14px!important;gap:12px!important}
  body.page-admin .admin-user-mobile-field strong{font-size:.98rem!important;line-height:1.4!important}
  body.page-admin .admin-status-badge,
  body.page-admin .admin-toggle-btn{width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important}
  body.page-admin .admin-form-card,
  body.page-admin .admin-backup-card{padding:18px 14px!important}
  body.page-admin .admin-card-head h3{font-size:clamp(1.9rem,9vw,2.4rem)!important;line-height:1.02!important}
}

@media (max-width: 480px){
  body.page-admin .header-wrapper{padding-left:12px!important;padding-right:12px!important;gap:12px!important}
  body.page-admin .admin-users-mobile-list{padding:10px!important}
  body.page-admin .admin-user-mobile-head,
  body.page-admin .admin-user-mobile-grid,
  body.page-admin .admin-user-mobile-actions{padding-left:12px!important;padding-right:12px!important}
  body.page-admin .admin-user-mobile-actions{padding-bottom:12px!important}
  body.page-admin .admin-backup-table tbody{padding:10px!important}
  body.page-admin .admin-backup-table td{padding:58px 12px 12px!important}
  body.page-admin .admin-hero-pills .tag{font-size:13px!important;padding:11px 14px!important}
}


/* --- V40 admin mobile header + pricing scroll fixes --- */
body.page-admin .app-header,
body.page-admin .header-wrapper,
body.page-admin .main-nav,
body.page-admin .user-pill,
body.page-admin .user-pill-toggle,
body.page-admin .user-pill-menu{
  width:auto;
  max-width:none;
}
body.page-admin .app-header{
  overflow:visible !important;
  z-index:320 !important;
}
body.page-admin .header-wrapper{
  max-width:1500px !important;
  margin:0 auto !important;
  overflow:visible !important;
}
body.page-admin .admin-section-toolbar,
body.page-admin .admin-section-toolbar > div,
body.page-admin .admin-section-toolbar strong,
body.page-admin .admin-section-toolbar .small{
  min-width:0;
  max-width:100%;
}
body.page-admin .admin-section-toolbar strong,
body.page-admin .admin-section-toolbar .small{
  display:block;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.premium-table-wrap{
  touch-action:auto;
}

@media (max-width: 991px){
  body.page-admin .header-wrapper{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    padding:12px !important;
    flex-wrap:nowrap !important;
    position:relative !important;
  }
  body.page-admin .logo-mark{
    min-width:0 !important;
    flex:0 1 auto !important;
  }
  body.page-admin .logo-mark img{
    width:56px !important;
    height:56px !important;
  }
  body.page-admin .hamburger{
    display:block !important;
    margin-left:auto !important;
    flex:0 0 auto !important;
    position:relative;
    z-index:2;
  }
  body.page-admin .user-pill{
    order:2;
    min-width:0 !important;
    max-width:calc(100vw - 170px) !important;
    margin-left:0 !important;
    padding:8px 10px 8px 0 !important;
  }
  body.page-admin .user-pill-toggle > span:first-child{
    max-width:92px !important;
  }
  body.page-admin .main-nav{
    display:none !important;
    position:absolute !important;
    top:calc(100% + 8px) !important;
    left:12px !important;
    right:12px !important;
    width:auto !important;
    max-width:calc(100vw - 24px) !important;
    z-index:500 !important;
    overflow:auto !important;
    overscroll-behavior:contain;
  }
  body.page-admin .main-nav.open{
    display:grid !important;
    gap:8px !important;
  }
  body.page-admin .admin-premium-table-card,
  body.page-admin .admin-form-card,
  body.page-admin .admin-backup-card,
  body.page-admin .admin-backup-list-card,
  body.page-admin .admin-highlight-card,
  body.page-admin .admin-metric-card{
    width:100% !important;
    max-width:100% !important;
  }
  body.page-admin .admin-users-mobile-list,
  body.page-admin .admin-backup-table tbody{
    padding:12px !important;
  }
}

@media (max-width: 575px){
  body.page-admin .header-wrapper{
    gap:10px !important;
    padding:10px 12px !important;
  }
  body.page-admin .logo-mark img{
    width:50px !important;
    height:50px !important;
  }
  body.page-admin .user-pill{
    display:none !important;
  }
  body.page-admin .main-nav{
    left:10px !important;
    right:10px !important;
    max-width:calc(100vw - 20px) !important;
  }
  body.page-admin .admin-users-mobile-list,
  body.page-admin .admin-backup-table tbody{
    padding:10px !important;
  }
  body.page-admin .admin-user-mobile-head,
  body.page-admin .admin-user-mobile-grid,
  body.page-admin .admin-user-mobile-actions{
    padding-left:12px !important;
    padding-right:12px !important;
  }
}

@media (max-width: 767px){
  .pricing-accordion,
  .pricing-accordion-summary,
  .pricing-accordion-body,
  .pricing-section-card,
  .pricing-group-card,
  .pricing-subtable-card,
  .premium-table-wrap,
  .pricing-table,
  .pricing-table *{
    touch-action:auto !important;
    overscroll-behavior:auto;
  }

  .pricing-accordion{
    overflow:visible;
  }

  .premium-table-wrap{
    overflow:visible !important;
    -webkit-overflow-scrolling:auto;
  }
}

/* --- V41 mobile header interaction + pricing scroll hard-fix --- */
@media (max-width: 767px){
  .app-header{
    overflow: visible !important;
  }
  .header-wrapper{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "logo burger"
      "user user" !important;
    align-items:center !important;
    gap:10px 12px !important;
    padding:12px !important;
    overflow:visible !important;
  }
  .logo-mark{
    grid-area:logo;
    min-width:0 !important;
    max-width:100% !important;
  }
  .hamburger{
    grid-area:burger;
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:52px;
    height:52px;
    margin-left:0 !important;
    z-index:700 !important;
    pointer-events:auto !important;
    touch-action:manipulation;
  }
  .user-pill{
    grid-area:user;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:8px 10px 8px 0 !important;
    justify-self:stretch;
    z-index:650 !important;
    pointer-events:auto !important;
  }
  .user-pill-toggle{
    width:100%;
    justify-content:space-between;
    pointer-events:auto !important;
    touch-action:manipulation;
  }
  .user-pill-toggle > span:first-child{
    max-width:none !important;
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .main-nav{
    position:fixed !important;
    top:calc(env(safe-area-inset-top, 0px) + 132px) !important;
    left:12px !important;
    right:12px !important;
    width:auto !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - 148px) !important;
    overflow:auto !important;
    z-index:820 !important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .main-nav.open{display:grid !important}
  .user-pill-menu{
    position:fixed !important;
    top:calc(env(safe-area-inset-top, 0px) + 132px) !important;
    right:12px !important;
    left:auto !important;
    width:min(280px, calc(100vw - 24px)) !important;
    min-width:0 !important;
    max-width:calc(100vw - 24px) !important;
    z-index:830 !important;
  }
}

@media (max-width: 420px){
  .header-wrapper{
    padding:10px !important;
  }
  .logo-mark img{
    width:52px !important;
    height:52px !important;
  }
  .hamburger{
    width:48px;
    height:48px;
  }
  .main-nav,
  .user-pill-menu{
    left:10px !important;
    right:10px !important;
    max-width:calc(100vw - 20px) !important;
  }
}

@media (max-width: 767px){
  .pricing-accordion,
  .pricing-accordion * ,
  .pricing-accordion-body,
  .pricing-accordion-content,
  .premium-table-wrap,
  .pricing-table-wrap,
  .pricing-subtable-card,
  .pricing-table,
  .pricing-table *{
    touch-action:pan-y pinch-zoom !important;
    overscroll-behavior:auto !important;
  }
  .premium-table-wrap,
  .pricing-table-wrap{
    overflow-x:auto !important;
    overflow-y:visible !important;
    -webkit-overflow-scrolling:touch !important;
  }
}

/* --- V42 mobile header/menu restore + admin overflow hard fix --- */
@media (max-width: 767px){
  .app-header{
    overflow:visible !important;
  }
  .header-wrapper{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:flex-start !important;
    gap:14px !important;
    grid-template-columns:none !important;
    grid-template-areas:none !important;
    overflow:visible !important;
  }
  .logo-mark{
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:100% !important;
    grid-area:auto !important;
  }
  .hamburger{
    grid-area:auto !important;
    display:block !important;
    margin-left:auto !important;
    width:54px !important;
    height:54px !important;
    z-index:320 !important;
    pointer-events:auto !important;
  }
  .user-pill{
    grid-area:auto !important;
    order:2 !important;
    margin-left:auto !important;
    width:auto !important;
    max-width:100% !important;
    justify-self:auto !important;
    z-index:300 !important;
  }
  .user-pill-toggle{
    width:auto !important;
    justify-content:flex-start !important;
    pointer-events:auto !important;
  }
  .user-pill-toggle > span:first-child{
    max-width:120px !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  .main-nav{
    position:absolute !important;
    top:calc(100% + 8px) !important;
    left:12px !important;
    right:12px !important;
    width:auto !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - 120px) !important;
    overflow:auto !important;
    z-index:310 !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .main-nav.open{
    display:grid !important;
    gap:8px !important;
  }
  .nav-dropdown-menu{
    position:static !important;
  }
  .user-pill-menu{
    position:absolute !important;
    top:calc(100% + 10px) !important;
    right:0 !important;
    left:auto !important;
    width:min(280px, calc(100vw - 24px)) !important;
    max-width:calc(100vw - 24px) !important;
    z-index:330 !important;
  }

  body.page-admin,
  body.page-admin .container,
  body.page-admin .container.admin-shell,
  body.page-admin .admin-shell,
  body.page-admin .admin-layout,
  body.page-admin .admin-main-stack,
  body.page-admin .admin-side-stack,
  body.page-admin .panel,
  body.page-admin .admin-premium-table-card,
  body.page-admin .admin-form-card,
  body.page-admin .admin-backup-card,
  body.page-admin .admin-backup-list-card,
  body.page-admin .admin-highlight-card,
  body.page-admin .admin-metric-card,
  body.page-admin .admin-users-mobile-list,
  body.page-admin .admin-user-mobile-card,
  body.page-admin .admin-user-mobile-head,
  body.page-admin .admin-user-mobile-title,
  body.page-admin .admin-user-mobile-grid,
  body.page-admin .admin-user-mobile-field,
  body.page-admin .admin-user-mobile-actions,
  body.page-admin .admin-hero,
  body.page-admin .admin-section-toolbar{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  body.page-admin .container.admin-shell{
    padding-left:12px !important;
    padding-right:12px !important;
    overflow-x:hidden !important;
  }

  body.page-admin .admin-hero-copy h1,
  body.page-admin .admin-premium-table-card h2,
  body.page-admin .admin-premium-table-card h3,
  body.page-admin .admin-card-head h3,
  body.page-admin .admin-card-head p,
  body.page-admin .admin-email-cell,
  body.page-admin .small,
  body.page-admin strong,
  body.page-admin span{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}

@media (max-width: 575px){
  .header-wrapper{
    padding:10px 12px !important;
    gap:12px !important;
  }
  .hamburger{
    width:50px !important;
    height:50px !important;
  }
  .main-nav{
    left:10px !important;
    right:10px !important;
    max-width:calc(100vw - 20px) !important;
  }
  .user-pill-menu{
    width:min(260px, calc(100vw - 20px)) !important;
    max-width:calc(100vw - 20px) !important;
  }

  body.page-admin .header-wrapper{
    align-items:flex-start !important;
  }
  body.page-admin .user-pill{
    order:3 !important;
    width:100% !important;
    margin:0 !important;
    padding:8px 10px 8px 0 !important;
  }
  body.page-admin .user-pill-toggle{
    width:100% !important;
    justify-content:space-between !important;
  }
  body.page-admin .user-pill-toggle > span:first-child{
    max-width:none !important;
  }
}


.enhanced-sales-page{padding-bottom:28px}
.compact-commission-grid--single{grid-template-columns:minmax(0,1fr)}
.sales-activity-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:18px;margin:18px 0 22px}
.sales-activity-box{padding:18px;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.sales-activity-box small{display:block;color:var(--muted);margin-bottom:8px}
.sales-activity-box strong{display:block;font-size:1.65rem;color:var(--gold)}
.sales-activity-box span{display:block;margin-top:6px;color:#d9d2c6}
.sales-filter-form{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(180px,.9fr)) auto;gap:12px;align-items:end;width:100%}
.sales-filter-actions{display:flex;gap:10px;align-items:center}
.compact-orders-head--stacked{align-items:stretch}
.sales-order-cards{display:grid;gap:18px;padding:18px}
.sales-order-card{padding:20px}
.sales-order-card-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.sales-order-title-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.sales-order-title-row h4{margin:0;font-size:1.35rem}
.sales-order-premium{font-size:1.2rem;font-weight:800;color:var(--gold);padding:10px 14px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(240,191,89,.22)}
.sales-order-details-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.sales-detail-item{padding:14px;border-radius:14px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06)}
.sales-detail-item span{display:block;color:var(--muted);font-size:.82rem;margin-bottom:6px}
.sales-detail-item strong{display:block;color:#f7f2e7;line-height:1.45}
.sales-order-note{margin-top:14px;padding:13px 14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);display:flex;gap:10px;align-items:flex-start}
.sales-order-note--admin{background:rgba(240,191,89,.08);border-color:rgba(240,191,89,.2)}
.review-order-form--cards{margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.06)}
.compact-commission-form-card.survey-mode .compact-commission-note{background:rgba(110, 190, 120, .08);border-color:rgba(110,190,120,.18)}
@media (max-width: 1199px){.sales-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-order-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-activity-summary{grid-template-columns:1fr}}
@media (max-width: 767px){.sales-filter-form{grid-template-columns:1fr}.sales-order-details-grid{grid-template-columns:1fr}.sales-order-card-head{flex-direction:column}.sales-activity-summary{grid-template-columns:1fr}}

.compact-commission-grid--full,.compact-commission-grid--full .compact-commission-form-card{width:100%;max-width:none}
.sales-order-cards{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.sales-order-details-grid--preview .sales-detail-item:nth-child(n+5){display:none}
.sales-order-card-actions{margin-top:14px;display:flex;justify-content:flex-end}
.sales-order-modal{position:fixed;inset:0;background:rgba(5,8,18,.72);display:none;align-items:center;justify-content:center;padding:24px;z-index:2000}
.sales-order-modal.is-visible{display:flex}
.sales-order-modal-dialog{width:min(1100px,100%);max-height:90vh;overflow:auto;background:#0f1420;border:1px solid rgba(255,255,255,.08);border-radius:24px;box-shadow:0 30px 80px rgba(0,0,0,.4);position:relative}
.sales-order-modal-content{padding:24px}
.sales-order-modal-close{position:absolute;top:14px;right:16px;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#fff;font-size:1.5rem}
.calculator-title-only{display:flex;align-items:center;justify-content:center;padding:18px 0 26px}
.calculator-title-only-text{width:100%;text-align:center;letter-spacing:.18em;color:var(--gold);font-size:clamp(2rem,4vw,3.3rem)}
.rich-forum-content{line-height:1.75}
.rich-forum-content iframe,.forum-embed-frame{width:100%;min-height:340px;border:0;border-radius:18px;background:#0b1018}
.forum-embed-card{margin:18px 0;padding:16px;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.forum-inline-image{max-width:100%;display:block;border-radius:18px}
.premium-editor-form .forum-editor{border:1px solid rgba(255,255,255,.09);border-radius:22px;overflow:hidden;background:rgba(10,14,24,.72)}
.forum-editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.02)}
.forum-editor-toolbar button{width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#fff}
.forum-editor-canvas{min-height:260px;padding:18px;color:#f3efe6;outline:none}
.forum-attachments-block{margin-top:18px}
.forum-attachments-head{font-weight:700;margin-bottom:10px;color:var(--gold)}
.forum-attachments-list{display:flex;flex-wrap:wrap;gap:10px}
.forum-attachment-chip{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);text-decoration:none;color:#fff}
.forum-attachment-chip small{color:var(--muted)}
.premium-thread-hero-card,.premium-reply-card,.forum-compose-panel-premium,.premium-forum-hero{border-radius:28px;box-shadow:0 24px 60px rgba(0,0,0,.18)}
@media (max-width: 1199px){.sales-order-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 767px){.sales-order-cards{grid-template-columns:1fr}.sales-order-modal{padding:12px}.forum-editor-canvas{min-height:200px}.rich-forum-content iframe,.forum-embed-frame{min-height:220px}}

.site-creator-footer{margin-top:0;padding:18px 0 24px;background:#0b1017;border-top:1px solid rgba(255,255,255,.08)}
.site-creator-footer-inner{display:flex;flex-direction:column;gap:12px}
.site-creator-brand{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.site-creator-brand img{width:64px;height:auto;border-radius:14px;background:#fff;padding:6px}
.site-creator-brand strong,.site-creator-brand a{color:#fff;text-decoration:none}
.site-creator-brand span{display:block;color:#b9c0ca}
.site-creator-seo{position:absolute;left:-9999px;opacity:0;pointer-events:none;height:1px;width:1px;overflow:hidden}
.premium-nav-links .nav-link{white-space:nowrap}
.forum-inline-video{width:100%;max-width:100%;display:block;border-radius:18px;background:#000}

.forum-pdf-link{display:inline-flex;align-items:center;gap:10px;font-weight:700;color:var(--gold);text-decoration:none}

/* ===== V24 backup UX + styled admin buttons ===== */
.btn-secondary,
.admin-action-btn,
.backup-popup-ok{
  appearance:none;
  border:0;
  cursor:pointer;
  text-decoration:none;
}

.btn-secondary{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:13px 18px;
  border-radius:15px;
  color:#fff;
  font-weight:900;
  letter-spacing:.01em;
  background:linear-gradient(135deg,rgba(31,53,80,.98),rgba(18,34,52,.98));
  border:1px solid rgba(110,174,255,.28);
  box-shadow:0 16px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.10);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn-secondary:hover{
  transform:translateY(-1px);
  color:#fff;
  border-color:rgba(240,191,89,.42);
  background:linear-gradient(135deg,rgba(43,70,104,.98),rgba(20,42,65,.98));
  box-shadow:0 22px 42px rgba(0,0,0,.36), 0 0 0 1px rgba(240,191,89,.18), 0 0 22px rgba(62,143,255,.16);
}

.admin-action-btn{
  min-height:58px;
  border-radius:18px!important;
  font-size:15px;
  text-transform:none;
}

.admin-mail-btn{
  background:linear-gradient(135deg,#1d5f68,#143a4f);
  border-color:rgba(88,221,206,.30);
}
.admin-mail-btn:hover{
  background:linear-gradient(135deg,#247885,#194a63);
  border-color:rgba(240,191,89,.42);
}

.admin-backup-status-box{
  margin-top:16px;
  display:grid;
  gap:8px;
  padding:16px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  border:1px solid rgba(240,191,89,.18);
  color:#d8d1c3;
  line-height:1.55;
  font-size:.95rem;
}
.admin-backup-status-box strong{color:#f0bf59}
.admin-backup-warning{
  margin-top:4px;
  display:flex;
  gap:9px;
  align-items:flex-start;
  padding:12px;
  border-radius:14px;
  background:rgba(255,185,72,.09);
  border:1px solid rgba(255,185,72,.20);
  color:#ffe0a3;
}

.backup-popup-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(5,7,11,.72);
  backdrop-filter:blur(9px);
  animation:backupFadeIn .18s ease-out;
}
.backup-popup-overlay.is-hidden{display:none}
.backup-popup-card{
  width:min(560px,100%);
  position:relative;
  overflow:hidden;
  border-radius:26px;
  padding:34px 30px 28px;
  text-align:center;
  background:radial-gradient(circle at top,rgba(240,191,89,.18),transparent 38%), linear-gradient(180deg,#171a22,#0d0f15);
  border:1px solid rgba(240,191,89,.32);
  box-shadow:0 34px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
.backup-popup-card.error{border-color:rgba(255,98,98,.38);background:radial-gradient(circle at top,rgba(255,98,98,.15),transparent 38%), linear-gradient(180deg,#171a22,#0d0f15)}
.backup-popup-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
}
.backup-popup-icon{
  width:76px;
  height:76px;
  margin:0 auto 18px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#f0bf59;
  background:rgba(240,191,89,.12);
  border:1px solid rgba(240,191,89,.25);
  font-size:34px;
}
.backup-popup-card.error .backup-popup-icon{color:#ff8d8d;background:rgba(255,98,98,.11);border-color:rgba(255,98,98,.25)}
.backup-popup-card h3{
  margin:0 0 12px;
  color:#fff;
  font-family:"Roboto Slab",serif;
  font-size:clamp(26px,4vw,34px);
}
.backup-popup-card p{
  margin:0 auto 22px;
  color:#d9d2c6;
  line-height:1.65;
  max-width:480px;
}
.backup-popup-ok{min-width:180px;min-height:52px;border-radius:16px!important}
@keyframes backupFadeIn{from{opacity:0}to{opacity:1}}

@media(max-width:640px){
  .backup-popup-card{padding:30px 20px 24px;border-radius:22px}
  .backup-popup-icon{width:66px;height:66px;font-size:30px}
}


/* Attendance advanced view */
.attendance-page-pro .attendance-hero{align-items:flex-end;gap:18px}
.attendance-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 18px}
.attendance-layout-modern{align-items:flex-start;grid-template-columns:minmax(0,1fr) 285px;gap:20px}
.attendance-table-card{overflow:hidden;border:1px solid rgba(240,191,89,.14);box-shadow:0 22px 50px rgba(0,0,0,.26)}
.attendance-toolbar-modern{padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.06)}
.attendance-filter-panel{display:grid;grid-template-columns:1.25fr repeat(3,minmax(145px,.8fr));gap:12px;padding:18px 20px;background:linear-gradient(180deg,rgba(240,191,89,.06),rgba(255,255,255,.02));border-bottom:1px solid rgba(255,255,255,.06)}
.attendance-filter-panel label{display:block;margin:0 0 6px;color:#cfc7b6;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.attendance-filter-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.attendance-table-modern th{background:linear-gradient(135deg,#d89b21,#b77a0d);color:#1a1208;font-weight:900;letter-spacing:.02em}
.attendance-table-modern td{vertical-align:middle}
.attendance-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-top:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.13)}
.attendance-page-numbers{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}
.attendance-page-link{min-width:34px;height:34px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#f5e5bf;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);font-weight:800}
.attendance-page-link.active{background:linear-gradient(135deg,#f0bf59,#c88413);color:#15100a;border-color:rgba(240,191,89,.75);box-shadow:0 8px 22px rgba(200,132,19,.25)}
.btn-secondary-soft.disabled{opacity:.45;pointer-events:none}
.attendance-calendar-card{padding:20px;position:sticky;top:82px;border:1px solid rgba(240,191,89,.15)}
.attendance-calendar-card h3{font-family:'Roboto Slab',serif;font-size:28px;margin:8px 0 14px;color:#fff}
.attendance-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin-bottom:14px}
.attendance-calendar-grid .tag{justify-content:center;padding:8px 0;border-radius:999px;font-size:11px}
.attendance-add-modern{margin-top:22px;padding:22px;border:1px solid rgba(240,191,89,.14);box-shadow:0 18px 42px rgba(0,0,0,.24)}
.tag.gold{background:rgba(240,191,89,.15);border-color:rgba(240,191,89,.42);color:#f7d98a}
@media (max-width:1100px){.attendance-layout-modern{grid-template-columns:1fr}.attendance-calendar-card{position:relative;top:auto}.attendance-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.attendance-stats-grid,.attendance-filter-panel{grid-template-columns:1fr}.attendance-pagination{flex-direction:column}.attendance-page-pro .attendance-hero{align-items:flex-start}}

/* ===== V33 attendance layout rescue: compact, aligned, premium ===== */
.attendance-page-pro{
  max-width:1180px;
  margin:0 auto;
  padding:0 18px 42px;
}
.attendance-page-pro .attendance-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.attendance-page-pro .page-title{
  margin-bottom:6px;
}
.attendance-page-pro .attendance-hero .btn-primary{
  width:auto;
  min-width:138px;
  white-space:nowrap;
  align-self:center;
}
.attendance-stats-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
  margin:18px 0 !important;
}
.attendance-stats-grid .metric{
  min-height:112px;
  padding:18px 20px;
}
.attendance-stats-grid .metric strong{
  font-size:34px;
  line-height:1.05;
}
.attendance-layout-modern{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 300px !important;
  gap:18px !important;
  align-items:start !important;
}
.attendance-table-card,
.attendance-calendar-card,
.attendance-add-modern{
  border-radius:18px;
  background:linear-gradient(180deg,rgba(37,39,45,.97),rgba(18,20,25,.98));
  border:1px solid rgba(240,191,89,.16);
  box-shadow:0 18px 42px rgba(0,0,0,.34);
}
.attendance-toolbar-modern{
  padding:18px 20px 14px !important;
}
.attendance-toolbar-modern strong{
  display:block;
  font-size:18px;
}
.attendance-filter-panel{
  display:grid !important;
  grid-template-columns:1.45fr 1fr 1fr 1fr !important;
  gap:12px !important;
  padding:16px 20px !important;
  align-items:end;
}
.attendance-filter-panel .field,
.attendance-filter-panel .select{
  min-height:48px;
  height:48px;
  padding:12px 14px;
  font-size:14px;
  border-radius:12px;
  background:#34363d;
}
.attendance-filter-actions{
  grid-column:3 / 5;
  display:flex !important;
  justify-content:flex-end;
  align-items:end !important;
  gap:10px !important;
  flex-wrap:nowrap !important;
}
.attendance-filter-actions .btn-primary,
.attendance-filter-actions .btn-secondary-soft{
  width:auto !important;
  min-width:118px;
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:0 18px;
  border-radius:12px;
  line-height:1;
}
.attendance-filter-actions .btn-secondary-soft{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
}
.attendance-table-card .table-wrap{
  overflow-x:auto;
}
.attendance-table-modern{
  min-width:720px;
  table-layout:fixed;
}
.attendance-table-modern th,
.attendance-table-modern td{
  padding:14px 18px;
  font-size:15px;
  line-height:1.35;
}
.attendance-table-modern th:nth-child(1),
.attendance-table-modern td:nth-child(1){width:160px;}
.attendance-table-modern th:nth-child(2),
.attendance-table-modern td:nth-child(2){width:170px;}
.attendance-table-modern th:nth-child(3),
.attendance-table-modern td:nth-child(3){width:auto;}
.attendance-table-modern th:nth-child(4),
.attendance-table-modern td:nth-child(4){width:180px;}
.attendance-table-modern tbody tr:hover td{
  background:rgba(240,191,89,.045);
}
.attendance-pagination{
  display:grid !important;
  grid-template-columns:150px 1fr 150px;
  align-items:center;
  padding:14px 20px 18px !important;
  gap:12px !important;
}
.attendance-pagination .btn-secondary-soft{
  width:auto !important;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:0 14px;
  border-radius:12px;
  white-space:nowrap;
}
.attendance-page-numbers{
  justify-content:center !important;
}
.attendance-page-link{
  width:38px;
  height:38px;
  min-width:38px;
}
.attendance-calendar-card{
  width:100%;
  padding:20px !important;
  position:sticky;
  top:92px;
}
.attendance-calendar-card h3{
  font-size:25px !important;
  margin:8px 0 16px !important;
}
.attendance-calendar-grid{
  gap:8px !important;
}
.attendance-calendar-grid .tag{
  width:32px;
  height:32px;
  padding:0 !important;
  justify-content:center;
  margin:0 auto;
}
.attendance-add-modern{
  margin-top:22px !important;
  padding:22px !important;
}
.attendance-add-modern .form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.attendance-add-modern .field,
.attendance-add-modern .select{
  min-height:54px;
}
.attendance-add-modern .btn-primary{
  width:auto;
  min-width:100px;
}
@media (max-width:1200px){
  .attendance-page-pro{max-width:100%;}
  .attendance-layout-modern{grid-template-columns:1fr !important;}
  .attendance-calendar-card{position:relative;top:auto;}
  .attendance-calendar-grid{grid-template-columns:repeat(10,32px);justify-content:flex-start;}
}
@media (max-width:900px){
  .attendance-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .attendance-filter-panel{grid-template-columns:1fr 1fr !important;}
  .attendance-filter-actions{grid-column:1 / -1;justify-content:flex-start;}
}
@media (max-width:640px){
  .attendance-page-pro .attendance-hero{align-items:flex-start;flex-direction:column;}
  .attendance-page-pro .attendance-hero .btn-primary{width:100%;}
  .attendance-stats-grid{grid-template-columns:1fr !important;}
  .attendance-filter-panel{grid-template-columns:1fr !important;}
  .attendance-filter-actions{flex-direction:column;align-items:stretch !important;}
  .attendance-filter-actions .btn-primary,
  .attendance-filter-actions .btn-secondary-soft{width:100% !important;}
  .attendance-pagination{grid-template-columns:1fr;}
  .attendance-calendar-grid{grid-template-columns:repeat(7,32px);}
  .attendance-add-modern .form-grid{grid-template-columns:1fr;}
}

/* ===== THE GOAL homepage ===== */
.tg-hero{position:relative;min-height:calc(100vh - 90px);display:flex;align-items:center;overflow:hidden;background:#08090c}.tg-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(1.05) contrast(1.05);transform:scale(1.02)}.tg-hero-overlay{position:absolute;inset:0;background:radial-gradient(circle at 72% 30%,rgba(240,191,89,.18),rgba(240,191,89,0) 28%),linear-gradient(90deg,rgba(5,7,10,.96) 0%,rgba(5,7,10,.82) 48%,rgba(5,7,10,.54) 100%)}.tg-hero-inner{position:relative;z-index:2;padding-top:7rem;padding-bottom:6rem}.tg-title span{color:var(--gold);text-shadow:0 0 28px rgba(240,191,89,.25)}.tg-subtitle{max-width:780px}.tg-hero-buttons{margin-top:30px}.tg-gold-btn{border:0;color:#15100a!important;font-weight:900;background:linear-gradient(135deg,#f8d77c,#c89224)!important;box-shadow:0 18px 38px rgba(200,146,36,.24)}.tg-gold-btn:hover{transform:translateY(-2px);box-shadow:0 22px 48px rgba(200,146,36,.32)}.tg-trust-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.tg-trust-row span{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(240,191,89,.22);color:#eee4cf;font-weight:800;font-size:13px}.tg-trust-row i{color:var(--gold)}.tg-hero-card{position:relative;padding:20px;border-radius:30px;background:linear-gradient(180deg,rgba(28,29,33,.86),rgba(14,15,18,.94));border:1px solid rgba(240,191,89,.38);box-shadow:0 36px 80px rgba(0,0,0,.48)}.tg-hero-logo{display:block;width:150px;height:150px;object-fit:contain;margin:-84px auto 14px;border-radius:999px;box-shadow:0 22px 52px rgba(0,0,0,.42),0 0 0 1px rgba(240,191,89,.24)}.tg-hero-card-photo{border-radius:24px;overflow:hidden;min-height:250px}.tg-hero-card-photo img{width:100%;height:100%;min-height:250px;object-fit:cover;display:block}.tg-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.tg-mini-stats div,.tg-number-card,.tg-role-card,.tg-partner-card,.tg-application-form{background:linear-gradient(180deg,rgba(46,47,52,.92),rgba(22,23,27,.96));border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 44px rgba(0,0,0,.24);border-radius:18px}.tg-mini-stats div{padding:14px 10px;text-align:center}.tg-mini-stats strong{display:block;color:var(--gold);font-size:18px}.tg-mini-stats span{font-size:12px;color:#cfc7b9}.tg-photo-card img{min-height:520px;object-fit:cover}.tg-feature-list .feature-item{backdrop-filter:blur(8px)}.tg-numbers{background:radial-gradient(circle at 50% 0,rgba(240,191,89,.16),rgba(240,191,89,0) 34%),#0b0d12}.tg-numbers-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}.tg-number-card{padding:26px;min-height:150px;display:flex;flex-direction:column;justify-content:space-between}.tg-number-card strong{display:block;font-size:34px;line-height:1.05;color:var(--gold);font-family:"Roboto Slab",serif}.tg-number-card span{display:block;margin-top:14px;color:#e8dfcb;font-weight:800}.tg-sticky-copy{position:sticky;top:120px}.tg-tiger{width:min(280px,80%);display:block;margin:26px auto 0;border-radius:24px;box-shadow:0 28px 60px rgba(0,0,0,.34);border:1px solid rgba(240,191,89,.18)}.tg-benefit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tg-benefit-card{position:relative;border-radius:22px;overflow:hidden;min-height:235px;border:1px solid rgba(240,191,89,.22);box-shadow:0 22px 52px rgba(0,0,0,.30)}.tg-benefit-card.wide{grid-column:1/-1;min-height:265px}.tg-benefit-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(1.03)}.tg-benefit-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.72))}.tg-benefit-card strong{position:absolute;left:20px;right:20px;bottom:18px;z-index:2;color:#fff;font-size:21px;line-height:1.2;text-shadow:0 10px 28px rgba(0,0,0,.55)}.tg-role-card{height:100%;padding:30px}.tg-role-icon{font-size:38px;margin-bottom:12px}.tg-role-card h3,.tg-partner-card h3,.tg-application-form h3{font-family:"Roboto Slab",serif;color:#fff;font-size:28px}.tg-role-card p,.tg-partner-card p,.tg-application-form p{color:#cfc7b9;line-height:1.75}.tg-role-card strong{display:block;color:var(--gold);margin-top:18px}.tg-partner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}.tg-partner-card{padding:32px;border-color:rgba(240,191,89,.26)}.tg-application{background:radial-gradient(circle at 18% 50%,rgba(240,191,89,.13),rgba(240,191,89,0) 32%),linear-gradient(180deg,#111318,#0b0d12)}.tg-contact-mini{display:grid;gap:12px;margin-top:24px}.tg-contact-mini div{display:flex;align-items:center;gap:12px;color:#efe7d5;font-weight:800}.tg-contact-mini i{width:24px;color:var(--gold)}.tg-application-form{padding:34px;border-color:rgba(240,191,89,.34)}.tg-application-form label{font-weight:800;color:#f2e6cf;margin-bottom:7px}.tg-submit{margin-top:18px;width:100%;justify-content:center}.tg-application-form small{display:block;margin-top:12px;color:#9f998f;line-height:1.55}.tg-hp{position:absolute!important;left:-9999px!important;opacity:0!important}.tg-footer .footer-brand img{max-width:210px;background:#fff;border-radius:18px;padding:10px}.premium-brand img{border-radius:999px;object-fit:contain!important;background:#06070a;padding:4px;max-height:112px!important}.tg-lead-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.tg-lead-badge.new{background:rgba(240,191,89,.14);color:#f5ce78;border:1px solid rgba(240,191,89,.28)}.tg-lead-badge.contacted{background:rgba(86,184,103,.14);color:#8ee2ae;border:1px solid rgba(86,184,103,.28)}.tg-lead-actions{display:flex;gap:8px;flex-wrap:wrap}.tg-lead-actions form{margin:0}.tg-admin-lead-phone{font-weight:900;color:#fff}.tg-admin-lead-note{color:var(--muted);font-size:13px;display:block;margin-top:3px}
@media (max-width:991px){.tg-hero{min-height:auto}.tg-hero-logo{margin-top:0}.tg-numbers-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tg-sticky-copy{position:static}.tg-benefit-grid{grid-template-columns:1fr}.tg-partner-grid{grid-template-columns:1fr}.tg-photo-card img{min-height:360px}}@media (max-width:767px){.tg-hero-inner{padding-top:4.5rem;padding-bottom:4rem}.tg-numbers-grid{grid-template-columns:1fr}.tg-number-card strong{font-size:28px}.tg-mini-stats{grid-template-columns:1fr}.tg-benefit-card,.tg-benefit-card.wide{min-height:210px}.tg-application-form{padding:24px}.tg-footer .footer-brand img{max-width:170px}.premium-brand img{height:76px!important}}


/* === THE GOAL: refined roles section === */
.tg-roles{
  background:
    radial-gradient(circle at 12% 0, rgba(240,191,89,.10), rgba(240,191,89,0) 28%),
    linear-gradient(180deg, #07090d 0%, #090d14 100%);
}
.tg-roles-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:28px;
  margin-bottom:34px;
}
.tg-roles-head .section-title{
  margin:8px 0 0;
  max-width:700px;
}
.tg-roles-copy{
  max-width:560px;
  margin:0;
}
.tg-role-row{
  align-items:stretch;
}
.tg-role-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:0;
  height:100%;
  padding:34px 30px 30px;
  border-radius:26px;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(240,191,89,.08), rgba(240,191,89,0) 30%),
    linear-gradient(180deg, rgba(34,36,42,.96), rgba(12,14,19,.98));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 24px 52px rgba(0,0,0,.30);
  transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tg-role-card:hover{
  transform:translateY(-6px);
  border-color:rgba(240,191,89,.42);
  box-shadow:0 32px 70px rgba(0,0,0,.36);
}
.tg-role-card:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 28%);
}
.tg-role-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:24px;
}
.tg-role-icon{
  width:60px;
  height:60px;
  min-width:60px;
  display:grid;
  place-items:center;
  font-size:28px;
  border-radius:18px;
  margin:0;
  background:linear-gradient(135deg, rgba(248,215,124,.18), rgba(200,146,36,.10));
  border:1px solid rgba(240,191,89,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.tg-role-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(240,191,89,.18);
  color:#f0dfb7;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:900;
  text-align:center;
}
.tg-role-card h3{
  margin:0;
  color:#fff;
  font-size:clamp(2rem, 2.3vw, 2.45rem);
  line-height:1.08;
  max-width:11ch;
}
.tg-role-lead{
  margin:18px 0 0;
  font-size:1.08rem;
  color:#f1eadb!important;
  font-weight:700;
  line-height:1.55;
}
.tg-role-points{
  list-style:none;
  margin:18px 0 0;
  padding:0;
  display:grid;
  gap:12px;
}
.tg-role-points li{
  position:relative;
  padding-left:26px;
  color:#d4ccbd;
  line-height:1.6;
}
.tg-role-points li:before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(135deg, #f8d77c, #c89224);
  box-shadow:0 0 0 5px rgba(240,191,89,.08);
}
.tg-role-footer{
  margin-top:auto;
  padding-top:24px;
  display:grid;
  gap:16px;
}
.tg-role-card strong{
  margin:0;
  color:var(--gold);
  font-size:1.02rem;
  line-height:1.5;
}
.tg-role-btn{
  width:100%;
  min-height:54px;
  justify-content:center;
  align-items:center;
  display:inline-flex;
  font-weight:900;
  border-radius:14px;
  letter-spacing:.02em;
}
.tg-role-btn.btn-outline-light{
  border-color:rgba(255,255,255,.24);
  color:#f8f2e8;
  background:rgba(255,255,255,.02);
}
.tg-role-btn.btn-outline-light:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(240,191,89,.35);
  color:#fff;
}
@media (max-width: 1199.98px){
  .tg-roles-head{
    flex-direction:column;
    align-items:flex-start;
    margin-bottom:28px;
  }
  .tg-roles-copy{
    max-width:720px;
  }
}
@media (max-width: 767.98px){
  .tg-role-card{
    padding:28px 22px 24px;
    border-radius:22px;
  }
  .tg-role-top{
    flex-direction:column;
    align-items:flex-start;
    margin-bottom:18px;
  }
  .tg-role-badge{
    font-size:11px;
    padding:9px 12px;
  }
  .tg-role-card h3{
    max-width:none;
    font-size:clamp(1.9rem, 8vw, 2.25rem);
  }
}


/* === THE GOAL footer contact icons === */
.tg-footer-contact{
  display:grid;
  gap:12px;
}
.tg-footer-contact li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  color:#efe7d5;
  line-height:1.6;
}
.tg-footer-contact li i{
  width:20px;
  min-width:20px;
  margin-top:3px;
  color:var(--gold);
  text-align:center;
}
.tg-footer-contact li a,
.tg-footer-contact li span{
  color:inherit;
  text-decoration:none;
}
.tg-footer-contact li a:hover{
  color:var(--gold);
}

/* Finalne dopracowanie tabel i paneli po zmianach klienta */
.compact-data-card{max-width:1120px;margin-left:auto;margin-right:auto}.region-compact-card .table-wrap,.attendance-table-card .table-wrap,.sales-summary-table-card .table-wrap{max-height:560px}.region-compact-card table,.attendance-table-modern,.compact-admin-table{font-size:13px}.region-compact-card th,.region-compact-card td,.attendance-table-modern th,.attendance-table-modern td,.compact-admin-table th,.compact-admin-table td{padding:9px 10px!important;line-height:1.25}.compact-toolbar{padding:12px 14px}.admin-narrow-section{max-width:1050px;margin:0 auto}.admin-user-table{font-size:13px}.admin-user-table th,.admin-user-table td{padding:10px 12px!important}.admin-icon-delete{width:34px;height:34px;border-radius:12px;border:1px solid rgba(255,75,75,.35);background:rgba(255,75,75,.12);color:#ff6b6b;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}.admin-icon-delete:hover{transform:translateY(-1px);background:rgba(255,75,75,.22)}.admin-users-pagination,.compact-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0;flex-wrap:wrap}.admin-users-pagination span{font-weight:700;color:var(--text)}.btn-secondary-soft.disabled{opacity:.45;pointer-events:none}.inline-edit-details summary{cursor:pointer;font-weight:800;color:var(--accent)}.pricing-inline-edit-form{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px;min-width:320px;margin-top:10px}.pricing-inline-edit-form button{grid-column:1/-1}.calc-hidden-result{display:none!important}.calculator-admin-panel{margin-top:24px}.calculator-admin-grid{grid-template-columns:repeat(3,minmax(180px,1fr))}.forum-list-delete{margin-top:8px}.forum-preview-actions .btn-secondary-soft.alt{display:none}.forum-preview-card{min-height:100%;}.forum-preview-frame{min-height:360px;background:#fff}.forum-preview-doc{border:1px dashed rgba(255,255,255,.18);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}.sales-summary-table-card{margin:22px 0}.compact-admin-table{width:100%;border-collapse:collapse}.compact-admin-table th{white-space:nowrap}.admin-shell{max-width:1180px}.forum-topic-aside form{display:flex;justify-content:flex-end}@media(max-width:760px){.calculator-admin-grid,.pricing-inline-edit-form{grid-template-columns:1fr}.admin-narrow-section{max-width:100%}.region-compact-card th,.region-compact-card td,.attendance-table-modern th,.attendance-table-modern td{padding:8px!important}.compact-data-card{max-width:100%}}

/* === FINAL ADMIN PANEL WIDTH + ACTIONS FIX === */
body.page-admin .container.admin-shell{
  width:min(100% - 48px, 1280px) !important;
  max-width:1280px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
body.page-admin .admin-hero,
body.page-admin .admin-stat-grid,
body.page-admin #zgloszenia,
body.page-admin .admin-main-grid,
body.page-admin .admin-backup-section{
  max-width:1280px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body.page-admin .admin-main-grid{
  grid-template-columns:minmax(0, 1fr) !important;
}
body.page-admin .admin-narrow-section{
  max-width:1180px !important;
  width:100% !important;
}
body.page-admin .admin-user-table{
  table-layout:fixed !important;
  width:100% !important;
}
body.page-admin .admin-user-table th:nth-child(1){width:29%}
body.page-admin .admin-user-table th:nth-child(2){width:23%}
body.page-admin .admin-user-table th:nth-child(3){width:12%}
body.page-admin .admin-user-table th:nth-child(4){width:12%}
body.page-admin .admin-user-table th:nth-child(5){width:12%}
body.page-admin .admin-user-table th:nth-child(6){width:12%}
body.page-admin .admin-user-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
}
body.page-admin .admin-inline-form{
  margin:0 !important;
  display:inline-flex !important;
}
body.page-admin .admin-toggle-btn,
body.page-admin .admin-action-btn,
body.page-admin .admin-submit-btn,
body.page-admin .admin-backup-btn,
body.page-admin .tg-lead-actions button,
body.page-admin .admin-users-pagination .btn-secondary-soft{
  border-radius:14px !important;
  min-height:42px !important;
  border:1px solid rgba(240,191,89,.28) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.18) !important;
  font-weight:900 !important;
  letter-spacing:.01em !important;
}
body.page-admin .admin-toggle-btn{
  min-width:96px !important;
  padding:0 14px !important;
}
body.page-admin .admin-icon-delete{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border-radius:14px !important;
  border:1px solid rgba(255,87,87,.45) !important;
  background:linear-gradient(180deg, rgba(96,28,28,.72), rgba(52,18,20,.88)) !important;
  color:#ff9a9a !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 24px rgba(0,0,0,.18) !important;
}
body.page-admin .admin-icon-delete:hover{
  transform:translateY(-1px) !important;
  color:#fff !important;
  background:linear-gradient(180deg, rgba(150,38,38,.86), rgba(84,22,24,.96)) !important;
}
body.page-admin .admin-icon-delete-disabled{
  opacity:.45 !important;
  cursor:not-allowed !important;
  background:rgba(255,255,255,.05) !important;
  border-color:rgba(255,255,255,.12) !important;
  color:#bdb7aa !important;
}
body.page-admin .admin-users-pagination{
  padding:12px 16px 18px !important;
  border-top:1px solid rgba(255,255,255,.06) !important;
}
body.page-admin .admin-users-pagination a{
  padding:0 18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
}
@media (max-width: 991px){
  body.page-admin .container.admin-shell{
    width:min(100% - 24px, 1280px) !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  body.page-admin .admin-user-mobile-actions-row{
    display:flex !important;
    gap:10px !important;
    align-items:stretch !important;
  }
  body.page-admin .admin-user-mobile-actions-row form:first-child{
    flex:1 1 auto !important;
  }
  body.page-admin .admin-user-mobile-actions-row .admin-toggle-btn{
    width:100% !important;
  }
}
@media (max-width: 560px){
  body.page-admin .container.admin-shell{width:calc(100% - 18px) !important;}
}

/* === Sales / commission V2 compact module === */
.sales-v2-page{
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.sales-v2-page .premium-card,
.sales-v2-page .table-card{
  border-radius:22px;
}
.sales-v2-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:22px;
}
.sales-v2-hero h2,
.sales-v2-form-card h3,
.sales-v2-table-card h3{
  margin:0 0 8px;
  font-family:"Roboto Slab",serif;
}
.sales-v2-progress{
  min-width:240px;
  padding:18px 20px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(31,35,43,.96),rgba(15,17,22,.98));
  border:1px solid rgba(240,191,89,.24);
}
.sales-v2-progress small,
.sales-v2-progress span{
  display:block;
  color:#cfc7b9;
}
.sales-v2-progress strong{
  display:block;
  margin:6px 0;
  color:var(--gold);
  font-size:32px;
  line-height:1;
  font-family:"Roboto Slab",serif;
}
.sales-v2-toolbar{
  align-items:flex-start;
  margin-bottom:18px;
}
.sales-v2-form{
  display:grid;
  gap:18px;
}
.sales-v2-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.sales-v2-grid .full{
  grid-column:1/-1;
}
.sales-v2-submit{
  width:100%;
  min-height:48px;
  justify-content:center;
}
.sales-v2-table-card{
  margin-top:22px;
  overflow:hidden;
}
.sales-v2-simple-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.sales-v2-simple-table th{
  background:linear-gradient(135deg,#173555,#10243a);
  color:#fff;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:11px;
  padding:10px 12px;
  white-space:nowrap;
}
.sales-v2-simple-table td{
  padding:9px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color:#eee7d8;
  vertical-align:middle;
}
.sales-v2-simple-table tbody tr:hover{
  background:rgba(255,255,255,.025);
}
.sales-v2-simple-table .small{
  font-size:11px;
  color:#a9a093;
}
.sales-v2-summary-table td,
.sales-v2-summary-table th{
  text-align:center;
}
.sales-v2-summary-table td:first-child,
.sales-v2-summary-table th:first-child{
  text-align:left;
}
.sales-base-buttons{
  display:flex;
  gap:6px;
  justify-content:center;
  flex-wrap:wrap;
  margin:0;
}
.sales-base-buttons button{
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(240,191,89,.25);
  background:rgba(240,191,89,.10);
  color:#f6dfad;
  font-weight:900;
  font-size:11px;
  cursor:pointer;
}
.sales-base-buttons button:hover{
  background:rgba(240,191,89,.20);
  color:#fff;
}
.inline-form{margin:0;display:inline-flex}
.btn-icon-danger{
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  border:1px solid rgba(255,95,95,.38);
  background:rgba(160,45,45,.18);
  color:#ffb8b8;
  font-size:20px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}
.btn-icon-danger:hover{
  background:rgba(210,55,55,.30);
  color:#fff;
}
@media (max-width: 991.98px){
  .sales-v2-hero{flex-direction:column;align-items:stretch}
  .sales-v2-grid{grid-template-columns:1fr}
}

/* === FIX: sales table pagination, docx preview, admin user buttons === */
.sales-v2-pagination{
  padding:14px 16px 18px;
  border-top:1px solid rgba(255,255,255,.07);
}
.sales-v2-pagination span{
  font-weight:800;
  color:#efe7d5;
  font-size:13px;
}
.forum-preview-docx-text{
  width:100%;
  padding:0!important;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
}
.forum-preview-doc-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:#f4d27f;
}
.forum-preview-docx-text pre{
  margin:0;
  max-height:520px;
  overflow:auto;
  padding:18px 20px;
  white-space:pre-wrap;
  word-break:break-word;
  font-family:inherit;
  font-size:15px;
  line-height:1.7;
  color:#f5efe2;
}
body.page-admin .admin-user-table th:nth-child(1){width:24%!important}
body.page-admin .admin-user-table th:nth-child(2){width:23%!important}
body.page-admin .admin-user-table th:nth-child(3){width:11%!important}
body.page-admin .admin-user-table th:nth-child(4){width:10%!important}
body.page-admin .admin-user-table th:nth-child(5){width:16%!important}
body.page-admin .admin-user-table th:nth-child(6){width:16%!important}
body.page-admin .admin-user-table td:nth-child(5),
body.page-admin .admin-user-table td:nth-child(6){
  overflow:visible!important;
}
body.page-admin .admin-user-actions{
  justify-content:center!important;
  gap:10px!important;
  min-width:170px!important;
}
body.page-admin .admin-status-badge{
  min-width:118px!important;
  padding:10px 12px!important;
  white-space:nowrap!important;
}
body.page-admin .admin-toggle-btn{
  min-width:112px!important;
  padding:0 12px!important;
  white-space:nowrap!important;
}
body.page-admin .admin-icon-delete{
  flex:0 0 42px!important;
}
@media (max-width: 991px){
  body.page-admin .admin-user-actions{min-width:0!important;justify-content:stretch!important;}
}


/* === Materials compact header and pagination === */
.materials-top-cta{
  padding:26px 0 10px;
  background:transparent!important;
  border:0!important;
}
.materials-top-cta .container{
  display:flex;
  justify-content:center;
}
.materials-add-btn{
  min-width:240px;
  min-height:52px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  border-radius:16px;
  font-weight:900;
  background:linear-gradient(135deg,#f8d77c,#c89224)!important;
  border:0!important;
  color:#15100a!important;
  box-shadow:0 18px 38px rgba(200,146,36,.22);
}
.materials-add-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 46px rgba(200,146,36,.30);
}
.materials-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin:24px 0 8px;
  color:#f4ead5;
  font-weight:900;
}
.forum-hero,
.materials-hero,
.page-hero:has(.materials-add-btn) {
  display:none!important;
}

/* === DOCX inline image preview === */
.forum-docx-images{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-top:18px;
}
.forum-docx-image{
  margin:0;
  padding:10px;
  border:1px solid rgba(240,191,89,.18);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.forum-docx-image img{
  display:block;
  width:100%;
  max-height:520px;
  object-fit:contain;
  border-radius:12px;
  background:#fff;
}


/* === DOCX inline preview: text and images in document order === */
.forum-docx-inline-preview{
  max-height:640px;
  overflow:auto;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px dashed rgba(255,255,255,.16);
}
.forum-docx-inline-preview .forum-docx-paragraph{
  margin:0 0 12px;
  color:#f4eadb;
  line-height:1.75;
  white-space:pre-wrap;
}
.forum-docx-inline-preview .forum-docx-image.inline{
  margin:14px 0 18px;
  padding:10px;
  border-radius:18px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(240,191,89,.18);
}
.forum-docx-inline-preview .forum-docx-image.inline img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.28);
}
.forum-docx-inline-preview .forum-docx-table-text{
  margin:12px 0;
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.025);
}


/* === DOCX robust preview fallback === */
.forum-docx-fallback-text{
  white-space:normal;
  line-height:1.65;
  color:#efe7d5;
}
.forum-docx-fallback-images{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
  margin-top:16px;
}
.forum-docx-image.fallback,
.forum-docx-image.inline{
  margin:14px 0;
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(240,191,89,.16);
}
.forum-docx-image.fallback img,
.forum-docx-image.inline img{
  display:block;
  width:100%;
  max-height:520px;
  object-fit:contain;
  background:#08090c;
}
.forum-docx-empty-preview{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:16px;
  border-radius:16px;
  background:rgba(240,191,89,.08);
  border:1px solid rgba(240,191,89,.18);
  color:#f0dfb7;
  line-height:1.6;
}
.forum-docx-empty-preview i{
  color:var(--gold);
  margin-top:4px;
}

/* ============================================================ */
/* FIX: Spójność stylów panelu po zalogowaniu                   */
/* Strony bez własnej klasy (meetings, regions, announcements)  */
/* dostają jednolity padding i marginesy zgodne z resztą.       */
/* ============================================================ */
.app-body main > .container {
  padding-top: 24px;
  padding-bottom: 42px;
}
.app-body main > .container.admin-shell {
  padding-top: 24px;
}
.app-body .pricing-page {
  max-width: 1200px;
}
.app-body main > .container > .page-header {
  margin-bottom: 22px;
}

/* ============================================================ */
/* Załączniki inline w Ogłoszeniach i Materiałach              */
/* ============================================================ */
.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.attachment-inline {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
}
.attachment-inline figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #cfc7b9;
  background: rgba(0,0,0,.18);
  border-top: 1px solid rgba(255,255,255,.06);
}
.attachment-inline figcaption a {
  color: var(--gold);
}
.attachment-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.attachment-video {
  width: 100%;
  max-height: 480px;
  display: block;
  background: #000;
}
.attachment-audio {
  width: 100%;
  display: block;
  padding: 14px;
  background: linear-gradient(180deg, rgba(46,47,52,.92), rgba(24,25,29,.95));
}
.attachment-pdf {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
  background: #fff;
}
.attachment-file {
  padding: 16px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.attachment-file i {
  color: var(--gold);
  font-size: 20px;
}
.attachment-file a {
  color: var(--gold);
  font-weight: 600;
}

/* Inline editor dla admina w pricing */
.admin-editable-cell,
.admin-editable-text {
  position: relative;
  cursor: pointer;
  transition: background .15s ease;
}
.admin-editable-cell:hover,
.admin-editable-text:hover {
  background: rgba(240, 191, 89, 0.10);
  outline: 1px dashed rgba(240, 191, 89, 0.45);
  outline-offset: -2px;
}
.admin-editable-cell.is-editing,
.admin-editable-text.is-editing {
  background: rgba(240, 191, 89, 0.15);
  outline: 2px solid var(--gold);
}
.admin-editable-cell::after,
.admin-editable-text::after {
  content: '✎';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 11px;
  color: var(--gold);
  opacity: 0;
  transition: opacity .15s ease;
}
.admin-editable-cell:hover::after,
.admin-editable-text:hover::after {
  opacity: 0.85;
}

/* Pływający pasek trybu edycji dla admina */
.admin-edit-mode-bar {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(40,32,12,.96), rgba(28,22,8,.98));
  border: 1px solid rgba(240,191,89,.5);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  color: #f5ce78;
  font-weight: 700;
  font-size: 14px;
}
.admin-edit-mode-bar button {
  background: linear-gradient(135deg, var(--gold), #a87417);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.admin-edit-mode-bar button.is-on {
  background: linear-gradient(135deg, #56b867, #2d7a3a);
}

/* ============================================================ */
/* Aktywny tryb edycji - widoczny obrys edytowalnych elementów  */
/* ============================================================ */
body.admin-edit-active .admin-editable-text,
body.admin-edit-active .admin-editable-cell {
  outline: 1px dashed rgba(240, 191, 89, 0.65);
  outline-offset: 2px;
  background: rgba(240, 191, 89, 0.06);
}
body.admin-edit-active .admin-editable-text::after,
body.admin-edit-active .admin-editable-cell::after {
  opacity: 0.95;
}
body.admin-edit-active .admin-editable-text:hover,
body.admin-edit-active .admin-editable-cell:hover {
  background: rgba(240, 191, 89, 0.18);
  outline-color: var(--gold);
}

/* Inline audio w postach / ogłoszeniach / forum */
.attachment-audio,
.forum-inline-audio,
.forum-preview-audio {
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
  display: block;
}
.attachment-inline {
  margin: 14px 0;
}
.attachment-inline figcaption {
  font-size: 13px;
  color: var(--muted, #9e998f);
  margin-top: 6px;
}
.attachment-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.attachment-video {
  max-width: 100%;
  width: 100%;
  border-radius: 12px;
  background: #000;
}
.attachment-pdf {
  width: 100%;
  height: 520px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: #fff;
}
.attachment-file {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f4f1ea;
}
.attachments-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

/* ============================================================ */
/* v3.2 — POPRAWKI ESTETYCZNE I SPÓJNOŚĆ                        */
/* ============================================================ */

/* === Buttony: spójny wygląd i kompaktowe rozmiary === */
.btn-primary,
.btn-secondary-soft,
.btn-outline-soft,
.btn-danger-soft,
.btn-card,
.btn-money,
.btn-gold,
.btn-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary:hover,
.btn-secondary-soft:hover,
.btn-outline-soft:hover,
.btn-card:hover,
.btn-money:hover,
.btn-gold:hover,
.btn-warning:hover {
  transform: translateY(-1px);
}

.btn-danger-soft:hover {
  transform: translateY(-1px);
}

/* Wymuszenie spójności na buttonach przesyłanych jako <button> bez class */
button.btn-primary,
input[type="submit"].btn-primary {
  border: 0;
}

/* === Spójne karty (panel, premium-card, notice-card) === */
.panel,
.premium-card,
.notice-card,
.metric,
.table-card,
.calendar-card,
.hero-stat {
  min-width: 0;
}

/* Zapobieganie obcinaniu zawartości kart */
.notice-card h4 {
  word-break: break-word;
}
.notice-card p {
  overflow-wrap: break-word;
}

/* === Naprawa metric (kafelki KPI w panelu) === */
.metric {
  padding: 18px 18px;
  min-height: 96px;
  display: grid;
  gap: 4px;
}
.metric small {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric strong {
  font-size: 30px;
  line-height: 1.05;
}
.metric span {
  display: block;
  font-size: 12px;
  color: var(--muted, #a89e8c);
  line-height: 1.45;
  overflow: hidden;
}

/* === Spójne tabele i ich kontenery === */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* === Form-grid: lepsze gapy i responsywność === */
.form-grid {
  gap: 14px 16px;
}
.form-grid label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #efe4cf;
  display: block;
}
.form-grid .field,
.form-grid .select,
.form-grid textarea {
  width: 100%;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
}

/* === Toolbar (filtry / nagłówki sekcji) === */
.toolbar {
  gap: 12px 16px;
  flex-wrap: wrap;
}
.toolbar strong {
  font-size: 17px;
  color: #f4eedf;
}
.toolbar .small,
.toolbar .muted {
  font-size: 13px;
  line-height: 1.5;
}

/* === Naprawa flash messages === */
.flash {
  margin: 12px auto;
  max-width: 1180px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
}
.flash-success {
  background: rgba(86, 184, 103, .14);
  border: 1px solid rgba(86, 184, 103, .4);
  color: #b9efc8;
}
.flash-error {
  background: rgba(220, 80, 80, .14);
  border: 1px solid rgba(220, 80, 80, .4);
  color: #ffcaca;
}

/* === Spójny page-header === */
.page-header {
  gap: 18px;
  padding: 6px 0 4px;
}
.page-title {
  margin: 0 0 6px;
}
.page-header .muted {
  font-size: 15px;
  line-height: 1.65;
  max-width: 760px;
}

/* === Forum: rozjeżdżające się ODPOWIEDZI/WYŚWIETLENIA === */
/* Patch globalny: gdy aside jest węższy niż 200px, wymuszamy 1 kolumnę */
@media (max-width: 1080px) {
  .page-forum .forum-topic-head {
    grid-template-columns: 1fr;
  }
  .page-forum .forum-topic-aside {
    max-width: 420px;
  }
}

/* === Inline details (Edytuj w cenniku / ogłoszeniach) === */
.inline-edit-details {
  display: inline-block;
}
.inline-edit-details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(240,191,89,.32);
  color: #f4ce85;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.inline-edit-details > summary::-webkit-details-marker {
  display: none;
}
.inline-edit-details[open] > summary {
  background: rgba(240,191,89,.14);
  border-color: rgba(240,191,89,.55);
}
.inline-edit-details > summary:hover {
  background: rgba(240,191,89,.10);
}

/* === Inline załączniki: spójne ramki === */
.attachment-inline {
  margin: 14px 0;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}
.attachment-inline figcaption {
  font-size: 13px;
  color: #b9ae9b;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.attachment-inline figcaption a {
  color: var(--gold, #c89224);
  text-decoration: underline;
}
.attachment-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}
.attachment-video,
.attachment-audio {
  width: 100%;
  display: block;
}
.attachment-pdf {
  width: 100%;
  height: 560px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  background: #1a1a1a;
}
.attachment-file {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0e6d1;
}
.attachment-file a {
  color: var(--gold, #c89224);
  font-weight: 600;
}
.attachments-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

/* === Notice card (ogłoszenie) — lepszy header z akcjami admina === */
.notice-card {
  padding: 22px 24px;
}
.notice-card .notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #a89e8c;
  font-size: 13px;
}
.notice-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notice-admin-actions form {
  margin: 0;
}

/* === Hamburger / mobile menu polish === */
@media (max-width: 991px) {
  .header-wrapper {
    padding: 12px 14px;
  }
  .logo-mark {
    min-width: 0;
    gap: 8px;
  }
  .logo-mark img {
    width: 56px;
    height: 56px;
  }
  .page-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }
}

/* === Mała poprawka: nie pozwalamy by tekstowi przycisków robić line-break === */
.btn-primary,
.btn-secondary-soft,
.btn-outline-soft,
.btn-card,
.btn-money,
.btn-warning,
.btn-danger-soft {
  text-wrap: nowrap;
}

/* === Spójność: niech wszystkie tabele mają złoty header === */
.attendance-table-modern thead th,
.admin-user-table thead th,
.compact-admin-table thead th,
.pricing-table thead th,
.sales-v2-simple-table thead th,
.admin-backup-table thead th {
  background: linear-gradient(180deg, #c89224, #a87417);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(0,0,0,.2);
}

/* === Materiały: lepszy nagłówek === */
.materials-top-cta {
  margin: 6px 0 18px;
}
.materials-add-btn {
  background: linear-gradient(135deg, #f8d77c, #c89224);
  color: #15100a;
  font-weight: 900;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(200, 146, 36, .25);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.materials-add-btn:hover {
  color: #0a0700;
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(200, 146, 36, .35);
}


/* Aktywny przycisk podstawy w podsumowaniu */
.sales-base-buttons button.is-active-base {
  background: rgba(240,191,89,.30);
  border-color: rgba(240,191,89,.70);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(240,191,89,.25);
}

/* ============================================================
   STREFA LIDERÓW — executive black & gold design system
   Signature: fine directional arcs derived from the logo mark.
   ============================================================ */
:root {
  --bg: #07090c;
  --bg-soft: #0e1116;
  --bg-panel: #14181f;
  --bg-panel-2: #1b2028;
  --text: #f7f3e9;
  --muted: #aaa79f;
  --gold: #c99b43;
  --gold-2: #f1d58a;
  --gold-3: #6e4a12;
  --line: rgba(213, 172, 88, .2);
  --focus: #f5d77f;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --scroll-track: #0a0d12;
  --scroll-thumb: #765a29;
  --scroll-thumb-hover: #b88a38;
}

html {
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}
html::-webkit-scrollbar { width: 11px; height: 11px; }
html::-webkit-scrollbar-track { background: var(--scroll-track); }
html::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid var(--scroll-track); border-radius: 999px; }
html::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

body,
button,
input,
select,
textarea { font-family: "DM Sans", sans-serif; }

.premium-title,
.section-title,
.page-title,
.panel-title,
.form-panel h1,
.notice-card h4,
.stats-panel h3,
.premium-footer h4,
.tg-role-card h3,
.tg-partner-card h3,
.tg-application-form h3 {
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.025em;
}

body.public-body,
body.app-body,
.login-page {
  background:
    radial-gradient(circle at 78% -5%, rgba(201, 155, 67, .12), transparent 31rem),
    linear-gradient(180deg, #0b0e13 0%, #07090c 58%, #05070a 100%);
}

body.app-body::before,
body.public-body::before,
.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a,
button,
summary,
select { cursor: pointer; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 3px;
  box-shadow: none !important;
}

.premium-navbar,
.app-header {
  background: rgba(7, 9, 12, .92) !important;
  border-bottom: 1px solid rgba(214, 173, 88, .25) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .28) !important;
}

.nav-shell,
.header-wrapper {
  max-width: 1440px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.premium-brand,
.logo-mark {
  min-width: 0 !important;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.premium-brand img,
.logo-mark img {
  display: block;
  width: auto !important;
  height: 70px !important;
  max-width: 108px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  filter: none !important;
}

.main-nav { justify-content: center; gap: 6px !important; }
.main-nav > a,
.nav-dropdown-toggle,
.premium-nav-links .nav-link {
  padding: 10px 12px !important;
  border-radius: 10px;
  color: rgba(247, 243, 233, .74) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.premium-nav-links .nav-link:hover {
  color: #fff !important;
  background: rgba(213, 172, 88, .09);
  text-shadow: none !important;
}

.user-pill {
  border-radius: 12px;
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.07) !important;
}

.panel,
.premium-card,
.notice-card,
.metric,
.table-card,
.calendar-card,
.hero-stat,
.tg-role-card,
.tg-partner-card,
.tg-application-form {
  background: linear-gradient(145deg, rgba(24, 28, 35, .94), rgba(12, 15, 20, .97)) !important;
  border-color: rgba(213, 172, 88, .16) !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.28) !important;
}

.btn-primary,
.btn-gold,
.tg-gold-btn,
.btn-warning {
  color: #161109 !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  background: linear-gradient(135deg, #f2da96 0%, #c79338 52%, #9b681e 100%) !important;
  box-shadow: 0 12px 30px rgba(154, 104, 30, .2) !important;
}
.btn-primary:hover,
.btn-gold:hover,
.tg-gold-btn:hover,
.btn-warning:hover {
  color: #0d0b07 !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(201, 155, 67, .28) !important;
}
.btn-secondary-soft,
.btn-outline-soft {
  background: rgba(255,255,255,.035) !important;
  color: #eee7d8 !important;
  border: 1px solid rgba(213,172,88,.25) !important;
}
.btn-secondary-soft:hover,
.btn-outline-soft:hover { background: rgba(213,172,88,.1) !important; border-color: rgba(241,213,138,.5) !important; }

.field,
.select,
textarea {
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.11) !important;
  color: #f7f3e9 !important;
  border-radius: 11px !important;
}
.field::placeholder,
textarea::placeholder { color: #777b82; }
.field:focus,
.select:focus,
textarea:focus { border-color: rgba(241,213,138,.68) !important; box-shadow: 0 0 0 3px rgba(201,155,67,.12) !important; }
.field[readonly] { color: #d7c9a7 !important; background: rgba(201,155,67,.055) !important; }

.tg-hero {
  min-height: min(820px, calc(100vh - 88px));
  border-bottom: 1px solid rgba(213,172,88,.14);
}
.tg-hero-overlay {
  background:
    linear-gradient(100deg, rgba(5,7,10,.98) 0%, rgba(5,7,10,.88) 48%, rgba(5,7,10,.46) 100%),
    radial-gradient(circle at 77% 22%, rgba(201,155,67,.2), transparent 30%) !important;
}
.tg-title { max-width: 900px; font-size: clamp(3.4rem, 7vw, 6.7rem); line-height: .94; }
.tg-title span { color: var(--gold-2); }
.tg-hero-logo {
  width: min(260px, 72%) !important;
  height: auto !important;
  aspect-ratio: 117 / 85;
  object-fit: cover !important;
  object-position: center !important;
  margin: -72px auto 18px !important;
  border-radius: 14px !important;
  background: #000;
  border: 1px solid rgba(213,172,88,.26);
}
.tg-hero-card { border-radius: 22px; }
.section-tag,
.eyebrow {
  color: var(--gold-2) !important;
  letter-spacing: .2em;
}
.tg-number-card strong { font-family: "Marcellus", Georgia, serif; font-weight: 400; }
.tg-footer .footer-brand img {
  width: 230px;
  height: auto;
  max-width: 100%;
  padding: 0;
  border-radius: 12px;
  background: #000;
}

.login-page { position: relative; }
.login-shell { position: relative; z-index: 1; max-width: 1180px; gap: 80px; }
.login-logo { padding: 20px; }
.login-logo img {
  width: min(560px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(213,172,88,.18);
  box-shadow: 0 34px 90px rgba(0,0,0,.46);
  filter: none;
}
.form-panel {
  max-width: 520px;
  background: rgba(15,18,23,.94) !important;
  border: 1px solid rgba(213,172,88,.26) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.44) !important;
}
.form-panel h1 { font-size: clamp(3rem, 5vw, 4.2rem); }

.app-dashboard { max-width: 1280px; padding-top: 34px; }
.dashboard-welcome {
  display: block !important;
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  margin-bottom: 28px;
  border: 1px solid rgba(213,172,88,.2);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(22,26,33,.98), rgba(10,13,18,.94));
  box-shadow: var(--shadow);
}
.dashboard-welcome::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -190px;
  top: -280px;
  border: 1px solid rgba(241,213,138,.25);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(201,155,67,.025), 0 0 0 76px rgba(201,155,67,.018);
  pointer-events: none;
}
.dashboard-welcome .dashboard-main-col { position: relative; z-index: 1; max-width: 820px; }
.dashboard-welcome .page-title { font-size: clamp(2.7rem, 6vw, 5.5rem); }
.dashboard-welcome-note { margin-top: 12px; }
.dashboard-primary-actions { margin-bottom: 0; }
.dashboard-modules { margin-bottom: 26px; }
.section-mini-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.modules-grid { gap: 14px; }
.module-card {
  min-height: 170px;
  border-radius: 16px !important;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.module-card:hover { transform: translateY(-4px); border-color: rgba(241,213,138,.44) !important; }
.module-icon { color: var(--gold-2) !important; }
.team-chat { margin: 26px 0; }
.chat-dot { background: #6ed896; box-shadow: 0 0 0 4px rgba(110,216,150,.12); }

.region-add-panel { scroll-margin-top: 120px; }
.region-add-panel h3 { font-family: "Marcellus", Georgia, serif; font-size: 2rem; }
.region-table-actions { flex-wrap: wrap; }

.forum-preview-video,
.forum-inline-video {
  display: block;
  width: 100%;
  max-height: 620px;
  background: #000;
  border-radius: 12px;
}
.forum-preview-audio,
.forum-inline-audio {
  display: block;
  width: 100%;
  min-height: 54px;
  color-scheme: dark;
}
.forum-embed-card audio,
.forum-embed-card video { margin-top: 10px; }

.forum-editor-canvas:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.forum-prompt-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  color: var(--ink-1);
  background: linear-gradient(180deg, #24211b, #12110f);
  border: 1px solid rgba(241, 213, 138, .38);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
}
.forum-prompt-dialog::backdrop { background: rgba(0, 0, 0, .76); backdrop-filter: blur(5px); }
.forum-prompt-dialog form { display: grid; gap: 20px; padding: 26px; }
.forum-prompt-dialog label { display: grid; gap: 10px; font-weight: 700; }
.forum-prompt-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 1199px) {
  .premium-brand img,
  .logo-mark img { height: 60px !important; max-width: 94px !important; }
  .main-nav { justify-content: flex-start; padding-bottom: 10px; }
}

@media (max-width: 767px) {
  .nav-shell,
  .header-wrapper { padding: 8px 14px; }
  .premium-brand img,
  .logo-mark img { height: 54px !important; max-width: 78px !important; }
  .user-pill { margin-left: 0; }
  .user-pill-line { display: none; }
  .tg-title { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .tg-hero-inner { padding-top: 5.5rem; }
  .tg-hero-logo { margin-top: 0 !important; }
  .dashboard-welcome { padding: 30px 22px; border-radius: 18px; }
  .dashboard-primary-actions { display: grid; }
  .dashboard-primary-actions a { width: 100%; }
  .modules-grid { grid-template-columns: 1fr !important; }
  .module-card { min-height: 0; }
  .chat-form { grid-template-columns: 1fr; }
  .region-add-panel { padding: 20px 16px; }
  .region-add-panel .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  html { scrollbar-color: CanvasText Canvas; }
  :where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid Highlight !important; }
}

/* Baza umów i ankiet — filtrowalny rejestr danych */
.sales-database-card { overflow: hidden; }
.sales-database-heading { padding: 22px 24px 0; gap: 18px; }
.sales-database-heading > div { max-width: 760px; }
.sales-density-toggle { flex: 0 0 auto; cursor: pointer; }
.sales-density-toggle[aria-pressed="true"] {
  color: #090805;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-1));
  border-color: var(--gold-2);
}
.sales-filter-panel {
  display: grid;
  gap: 16px;
  margin: 0 20px 18px;
  padding: 18px;
  border: 1px solid rgba(241, 213, 138, .2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 155, 67, .09), transparent 32%),
    rgba(7, 9, 12, .58);
}
.sales-filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.sales-filter-field { display: grid; gap: 7px; min-width: 0; }
.sales-filter-panel .select {
  color-scheme: dark;
  background-color: #15191f !important;
  color: #f7f3e9 !important;
}
.sales-filter-panel .select option,
.sales-filter-panel .select optgroup {
  background: #15191f;
  color: #f7f3e9;
}
.sales-filter-panel .select option:checked {
  background: #9b681e;
  color: #fff8e8;
}
.sales-filter-search { max-width: 760px; }
.sales-search-control { position: relative; }
.sales-search-control .field { padding-right: 48px; }
.sales-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-50%);
  border-radius: 50%;
}
.sales-search-clear:hover { color: var(--gold-2); background: rgba(241, 213, 138, .1); }
.sales-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; }
.sales-filter-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sales-filter-actions .btn { min-height: 44px; }
.sales-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 16px;
}
.sales-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px 7px 12px;
  color: var(--gold-2);
  background: rgba(201, 155, 67, .1);
  border: 1px solid rgba(241, 213, 138, .24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.sales-filter-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sales-filter-chip b { font-size: 16px; }
.sales-filter-chip:hover { color: #fff4ce; background: rgba(201, 155, 67, .18); }
.sales-results-meta {
  padding: 0 22px 14px;
  color: var(--ink-2);
  font-size: 13px;
}
.sales-results-meta strong { color: var(--gold-2); font-size: 18px; }
.sales-database-table-wrap {
  max-height: 720px;
  overflow: auto;
  scrollbar-gutter: stable;
  border-block: 1px solid rgba(255, 255, 255, .07);
}
.sales-database-table { min-width: 1480px; }
.sales-database-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #f8e9bf;
  background: #17140f;
  border-bottom: 1px solid rgba(241, 213, 138, .34);
}
.sales-database-table td { max-width: 260px; }
.sales-client-cell { min-width: 210px; }
.sales-client-cell strong,
.sales-client-cell a { display: block; }
.sales-client-cell a { margin-top: 5px; color: var(--ink-2); font-size: 11px; overflow-wrap: anywhere; }
.sales-client-cell a:hover { color: var(--gold-2); }
.sales-date-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sales-status-cell { min-width: 180px; white-space: normal; }
.sales-record-details { position: relative; min-width: 108px; }
.sales-record-details summary {
  color: var(--gold-2);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.sales-record-details[open] { width: min(560px, 70vw); padding: 10px 0; }
.sales-record-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}
.sales-record-details dl > div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
}
.sales-record-details dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sales-record-details dd { margin: 4px 0 0; color: var(--ink-1); overflow-wrap: anywhere; white-space: normal; }
.sales-no-results { padding: 38px !important; text-align: center; color: var(--ink-2) !important; }
.sales-no-results strong { color: var(--ink-1); font-size: 16px; }
.sales-no-results a { display: inline-block; margin-top: 8px; color: var(--gold-2); }
.sales-database-table-wrap[data-density="compact"] .sales-database-table td { padding-block: 5px; font-size: 12px; }
.sales-database-table-wrap[data-density="compact"] .sales-client-cell a,
.sales-database-table-wrap[data-density="compact"] .small { font-size: 10px; }

@media (max-width: 991px) {
  .sales-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .sales-database-heading { padding: 18px 16px 0; align-items: stretch; }
  .sales-density-toggle { width: 100%; justify-content: center; }
  .sales-filter-panel { margin-inline: 12px; padding: 14px; }
  .sales-filter-grid { grid-template-columns: 1fr; }
  .sales-filter-actions > * { width: 100%; justify-content: center; text-align: center; }
  .sales-active-filters { padding-inline: 14px; flex-wrap: nowrap; overflow-x: auto; }
  .sales-filter-chip { flex: 0 0 auto; }
  .sales-results-meta { padding-inline: 16px; }
  .sales-database-table-wrap { max-height: 68vh; }
}

/* ============================================================
   SKLEP — publiczny katalog energii + administracja produktów
   Signature: modularne wieże bateryjne i koncentryczny łuk marki.
   ============================================================ */
.shop-page { color: var(--text); background: #07090c; }
.shop-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(7, 9, 12, .98) 0%, rgba(12, 16, 22, .94) 52%, rgba(17, 21, 28, .9) 100%),
    radial-gradient(circle at 76% 46%, rgba(201, 155, 67, .22), transparent 28rem);
}
.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 42%, #000 100%);
}
.shop-hero-orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -190px;
  width: 720px;
  aspect-ratio: 1;
  border: 1px solid rgba(241, 213, 138, .28);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 90px rgba(201,155,67,.035), 0 0 0 180px rgba(201,155,67,.02);
}
.shop-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr); gap: 72px; align-items: center; padding-block: 112px 88px; }
.shop-hero-copy { max-width: 690px; }
.shop-hero-copy h1 { margin: 18px 0 24px; font-family: "Marcellus", Georgia, serif; font-size: clamp(3.5rem, 6.7vw, 6.7rem); line-height: .92; letter-spacing: -.055em; }
.shop-hero-copy h1 span { color: var(--gold-2); }
.shop-hero-copy > p { max-width: 670px; color: #c8c4bb; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.75; }
.shop-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.shop-price-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px !important; color: #99958e !important; font-size: 13px !important; }
.shop-price-note i { margin-top: 4px; color: var(--gold); }
.shop-energy-stage { position: relative; min-height: 490px; display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding: 58px 46px 42px; perspective: 1000px; }
.shop-energy-stage::before { content: ""; position: absolute; left: 10%; right: 2%; bottom: 18px; height: 78px; background: radial-gradient(ellipse, rgba(0,0,0,.78), transparent 68%); filter: blur(7px); }
.shop-stage-battery { position: relative; z-index: 2; width: 118px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 20px 14px; color: #15171a; background: linear-gradient(145deg, #f5f2e9, #bbb7ae 68%, #85837e); border: 1px solid rgba(255,255,255,.7); border-radius: 14px 14px 9px 9px; box-shadow: inset -9px 0 20px rgba(0,0,0,.12), 0 32px 58px rgba(0,0,0,.48); transform: rotateY(-7deg); }
.shop-stage-battery::before { content: ""; position: absolute; inset: 13px 12px auto; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #2aac71 0 67%, rgba(24,28,32,.18) 67%); box-shadow: 0 0 12px rgba(42,172,113,.55); }
.shop-stage-battery::after { content: ""; position: absolute; inset: 54px 0 auto; height: 1px; background: rgba(15,18,22,.12); box-shadow: 0 67px rgba(15,18,22,.12), 0 134px rgba(15,18,22,.12); }
.shop-stage-battery strong { font-family: "Marcellus", Georgia, serif; font-size: 44px; line-height: 1; }
.shop-stage-battery small { font-weight: 800; letter-spacing: .12em; }
.battery-tall { height: 390px; }
.battery-mid { height: 300px; }
.battery-small { height: 220px; }
.shop-stage-meter { position: absolute; z-index: 3; top: 24px; right: 0; width: 176px; padding: 18px; color: #e9e5db; background: rgba(20,24,31,.92); border: 1px solid rgba(241,213,138,.32); border-radius: 18px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.shop-stage-meter span,.shop-stage-meter small { display: block; }
.shop-stage-meter span { color: var(--gold-2); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.shop-stage-meter strong { display: block; margin: 5px 0; font-family: "Marcellus", Georgia, serif; font-size: 42px; font-weight: 400; }
.shop-stage-meter small { color: #a9a59d; line-height: 1.35; }

.shop-catalog { padding: 92px 0 110px; background: radial-gradient(circle at 10% 16%, rgba(201,155,67,.08), transparent 26rem); }
.shop-catalog-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 26px; }
.shop-catalog-head h2,.shop-help-band h2,.shop-admin-shell h2 { margin: 8px 0 10px; font-family: "Marcellus", Georgia, serif; font-weight: 400; letter-spacing: -.035em; }
.shop-catalog-head h2 { font-size: clamp(2.3rem, 4vw, 4.25rem); }
.shop-catalog-head p { margin: 0; color: var(--muted); }
.shop-filter-panel { display: grid; grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(150px, 1fr)) auto; gap: 12px; align-items: end; padding: 18px; margin-bottom: 18px; background: rgba(20,24,31,.82); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.shop-filter-panel label { display: grid; gap: 7px; margin: 0; color: #d8d2c6; font-size: 12px; font-weight: 800; }
.shop-filter-actions { display: flex; gap: 8px; }
.shop-filter-actions .btn,.shop-filter-actions .btn-secondary-soft { min-height: 51px; white-space: nowrap; }
.shop-results-meta { margin: 14px 2px 24px; color: var(--muted); }
.shop-results-meta strong { color: var(--gold-2); font-size: 21px; }
.shop-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shop-product-card { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(25,29,37,.96), rgba(14,17,22,.98)); border: 1px solid rgba(255,255,255,.085); border-radius: 24px; box-shadow: 0 22px 55px rgba(0,0,0,.26); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.shop-product-card:hover { transform: translateY(-5px); border-color: rgba(241,213,138,.38); box-shadow: 0 30px 70px rgba(0,0,0,.38); }
.shop-product-card.is-featured { border-color: rgba(201,155,67,.42); }
.shop-product-visual { --brand-accent: #c99b43; position: relative; min-height: 290px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 37%, color-mix(in srgb, var(--brand-accent) 28%, transparent), transparent 43%), linear-gradient(145deg, #191e26, #0b0e13); }
.shop-product-visual::before { content: ""; position: absolute; inset: auto -18% -48% 10%; height: 86%; border: 1px solid color-mix(in srgb, var(--brand-accent) 34%, transparent); border-radius: 50%; transform: rotate(-13deg); }
.shop-product-visual img { width: 100%; height: 290px; object-fit: contain; background: #f0f1f2; }
.brand-huawei { --brand-accent: #db3d38; }
.brand-byd { --brand-accent: #d92d36; }
.brand-goodwe { --brand-accent: #e47632; }
.brand-sungrow { --brand-accent: #3293db; }
.brand-tesla { --brand-accent: #b6bcc3; }
.shop-product-device { position: relative; z-index: 1; width: 132px; min-height: 205px; display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: 30px 18px 22px; color: #191b1e; background: linear-gradient(135deg, #f5f3ed, #b9b9b5 70%, #777b80); border: 1px solid rgba(255,255,255,.8); border-radius: 13px 13px 8px 8px; box-shadow: inset -13px 0 25px rgba(0,0,0,.12), 0 26px 46px rgba(0,0,0,.42); transform: perspective(600px) rotateY(-8deg); }
.shop-product-device::before { content: ""; position: absolute; top: 16px; left: 18px; width: 55px; height: 5px; border-radius: 99px; background: var(--brand-accent); box-shadow: 0 0 12px color-mix(in srgb, var(--brand-accent) 70%, transparent); }
.shop-product-device::after { content: ""; position: absolute; inset: auto 18px 16px; height: 3px; border-radius: 99px; background: rgba(20,22,24,.18); }
.device-brand { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.shop-product-device i { display: block; height: 1px; background: rgba(20,22,24,.16); }
.shop-product-badge { position: absolute; z-index: 2; top: 16px; left: 16px; max-width: calc(100% - 32px); padding: 7px 10px; color: #11100d; background: linear-gradient(135deg, #f4d98e, #c99b43); border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.shop-capacity-mark { position: absolute; z-index: 2; right: 16px; bottom: 14px; display: flex; align-items: baseline; gap: 4px; padding: 9px 12px; color: #f6f0e2; background: rgba(7,9,12,.78); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; backdrop-filter: blur(10px); }
.shop-capacity-mark strong { font-family: "Marcellus", Georgia, serif; font-size: 28px; font-weight: 400; }
.shop-capacity-mark span { color: var(--gold-2); font-size: 11px; font-weight: 900; }
.shop-product-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.shop-product-kicker { color: var(--gold-2); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.shop-product-body h3 { margin: 7px 0 10px; color: #fff; font-family: "Marcellus", Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1.15; }
.shop-product-body > p { min-height: 72px; margin: 0 0 18px; color: #aaa79f; line-height: 1.55; }
.shop-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0 0 18px; }
.shop-spec-grid > div { min-width: 0; padding: 10px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 11px; }
.shop-spec-grid dt { color: #8e8b84; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.shop-spec-grid dd { margin: 4px 0 0; color: #f0ece3; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.shop-feature-list { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.shop-feature-list li { display: flex; gap: 9px; align-items: flex-start; color: #d2cdc3; font-size: 13px; }
.shop-feature-list i { margin-top: 4px; color: #54c986; font-size: 10px; }
.shop-product-footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.shop-product-footer small,.shop-product-footer strong { display: block; }
.shop-product-footer small { margin-bottom: 3px; color: #89867f; font-size: 10px; }
.shop-product-footer strong { color: var(--gold-2); font-size: 21px; }
.shop-product-footer .btn { white-space: nowrap; }
.shop-source-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 14px; color: #8f8b84; font-size: 11px; text-decoration: none; }
.shop-source-link:hover { color: var(--gold-2); }
.shop-empty-state { padding: 70px 24px; text-align: center; background: rgba(20,24,31,.72); border: 1px dashed rgba(241,213,138,.25); border-radius: 24px; }
.shop-empty-state > i { color: var(--gold); font-size: 42px; }
.shop-empty-state h3 { margin: 18px 0 8px; font-family: "Marcellus", Georgia, serif; font-size: 28px; }
.shop-empty-state p { color: var(--muted); }
.shop-help-band { padding: 76px 0; background: linear-gradient(120deg, #1a1308, #0e1116 48%, #101820); border-block: 1px solid rgba(201,155,67,.2); }
.shop-help-grid { display: grid; grid-template-columns: 1.05fr 1fr auto; gap: 48px; align-items: center; }
.shop-help-band h2 { max-width: 620px; font-size: clamp(2rem, 3.5vw, 3.6rem); }
.shop-help-band p { margin: 0; color: #bdb8ae; line-height: 1.7; }
.shop-help-band .btn { white-space: nowrap; }

/* Administracja sklepu */
.shop-admin-shell { max-width: 1240px; padding-top: 34px; padding-bottom: 80px; }
.shop-admin-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 36px; align-items: center; margin-bottom: 24px; padding: 34px; background: radial-gradient(circle at 86% 18%, rgba(201,155,67,.17), transparent 18rem), linear-gradient(145deg, rgba(25,29,37,.98), rgba(13,16,21,.98)); }
.shop-admin-hero p { max-width: 760px; color: var(--muted); }
.shop-admin-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.admin-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.shop-admin-stats { display: grid; grid-template-columns: repeat(3, minmax(92px,1fr)); gap: 10px; }
.shop-admin-stats div { min-width: 100px; padding: 18px 14px; text-align: center; background: rgba(7,9,12,.62); border: 1px solid rgba(241,213,138,.18); border-radius: 15px; }
.shop-admin-stats strong,.shop-admin-stats span { display: block; }
.shop-admin-stats strong { color: var(--gold-2); font-family: "Marcellus", Georgia, serif; font-size: 30px; font-weight: 400; }
.shop-admin-stats span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.shop-product-editor { margin-bottom: 24px; padding: 30px; }
.shop-editor-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.shop-editor-heading h2,.shop-admin-table-head h2 { font-size: clamp(1.75rem,3vw,2.5rem); }
.shop-product-form { display: grid; gap: 22px; }
.shop-form-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.shop-form-wide { grid-column: span 2; }
.shop-form-full { grid-column: 1 / -1; }
.shop-product-form .form-group { display: grid; gap: 7px; margin: 0; }
.shop-product-form label { color: #e7e0d3; font-size: 13px; font-weight: 800; }
.shop-product-form label span[aria-hidden] { color: var(--gold-2); }
.shop-product-form small { min-height: 17px; color: #8e8a82; line-height: 1.35; }
.shop-product-form textarea { resize: none; min-height: 110px; }
.shop-form-toggles { display: flex; flex-wrap: wrap; gap: 12px; }
.shop-check { display: inline-flex !important; align-items: center; gap: 9px; min-height: 44px; padding: 10px 14px; cursor: pointer; color: #ded8cc; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; }
.shop-check:hover { border-color: rgba(241,213,138,.3); }
.shop-check input { width: 18px; height: 18px; accent-color: var(--gold); }
.shop-form-actions { position: sticky; z-index: 120; bottom: 12px; display: flex; justify-content: flex-end; gap: 10px; padding: 12px; background: rgba(14,17,22,.92); border: 1px solid rgba(241,213,138,.22); border-radius: 15px; box-shadow: 0 18px 46px rgba(0,0,0,.34); backdrop-filter: blur(14px); }
.shop-admin-catalog { overflow: hidden; }
.shop-admin-table-head { align-items: center; padding: 22px 24px; }
.shop-admin-table { min-width: 920px; }
.shop-admin-table th { white-space: nowrap; }
.shop-admin-table td:first-child strong,.shop-admin-table td:first-child span { display: block; }
.shop-admin-table td:first-child span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.shop-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.shop-status.is-active { color: #92e4b2; background: rgba(30,164,93,.12); border: 1px solid rgba(30,164,93,.28); }
.shop-status.is-hidden { color: #c5c0b8; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.11); }
.shop-row-actions { display: flex; align-items: center; gap: 8px; }
.shop-row-actions form { margin: 0; }
.shop-row-actions .btn-secondary-soft { min-height: 38px; padding: 8px 11px; white-space: nowrap; }
.shop-admin-empty { padding: 42px !important; text-align: center; color: var(--muted) !important; }

@media (max-width: 1199px) {
  .shop-hero-grid { grid-template-columns: minmax(0,1fr) 430px; gap: 38px; }
  .shop-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shop-filter-panel { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .shop-filter-search { grid-column: span 2; }
  .shop-filter-actions { grid-column: 1 / -1; }
  .shop-help-grid { grid-template-columns: 1fr 1fr; }
  .shop-help-grid .btn { width: fit-content; }
  .shop-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .shop-hero { min-height: auto; }
  .shop-hero-grid { grid-template-columns: 1fr; padding-block: 90px 70px; }
  .shop-energy-stage { min-height: 420px; max-width: 620px; width: 100%; margin-inline: auto; }
  .shop-admin-hero { grid-template-columns: 1fr; }
  .shop-admin-stats { max-width: 520px; }
}

@media (max-width: 680px) {
  .shop-hero-grid { padding-block: 68px 48px; }
  .shop-hero-copy h1 { font-size: clamp(3.1rem,16vw,4.6rem); }
  .shop-hero-actions > * { width: 100%; justify-content: center; }
  .shop-energy-stage { min-height: 330px; gap: 10px; padding-inline: 10px; }
  .shop-stage-battery { width: 82px; padding-inline: 8px; }
  .shop-stage-battery strong { font-size: 31px; }
  .battery-tall { height: 280px; }
  .battery-mid { height: 220px; }
  .battery-small { height: 168px; }
  .shop-stage-meter { top: 0; right: 6px; width: 145px; padding: 13px; }
  .shop-stage-meter strong { font-size: 32px; }
  .shop-catalog { padding-block: 66px 76px; }
  .shop-catalog-head { display: grid; align-items: start; }
  .shop-catalog-head > .btn-secondary-soft { width: 100%; justify-content: center; }
  .shop-filter-panel { grid-template-columns: 1fr; padding: 14px; }
  .shop-filter-search,.shop-filter-actions { grid-column: auto; }
  .shop-filter-actions { display: grid; }
  .shop-product-grid { grid-template-columns: 1fr; }
  .shop-product-body > p { min-height: 0; }
  .shop-product-footer { align-items: stretch; flex-direction: column; }
  .shop-product-footer .btn { width: 100%; justify-content: center; }
  .shop-help-grid { grid-template-columns: 1fr; gap: 20px; }
  .shop-help-grid .btn { width: 100%; justify-content: center; }
  .shop-admin-shell { padding-inline: 12px; }
  .shop-admin-hero,.shop-product-editor { padding: 22px 18px; }
  .shop-admin-stats { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .shop-admin-stats div { min-width: 0; padding: 12px 6px; }
  .shop-editor-heading { align-items: stretch; flex-direction: column; }
  .shop-form-grid { grid-template-columns: 1fr; }
  .shop-form-wide,.shop-form-full { grid-column: auto; }
  .shop-form-actions { position: static; display: grid; }
  .shop-form-actions > * { width: 100%; justify-content: center; }
}

/* ============================================================
   CLIENT EXPERIENCE V2 — private energy atelier
   Public routes only. Runtime tokens remain owned by :root above.
   ============================================================ */
body.public-body {
  --client-ink: #07090c;
  --client-ink-soft: #0e1217;
  --client-ivory: #f5f0e6;
  --client-muted: #aca79d;
  --client-gold: #d6ae64;
  --client-gold-deep: #9f722d;
  background: var(--client-ink);
  color: var(--client-ivory);
  font-family: "DM Sans", sans-serif;
}
body.public-body::before { opacity: .12; background-size: 72px 72px; }
body.public-body main { overflow: clip; }
body.public-body .container { max-width: 1320px; }

body.public-body .premium-navbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  min-height: 84px;
  padding: 0;
  background: rgba(6,8,11,.88) !important;
  border-bottom-color: rgba(214,174,100,.18) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.18) !important;
}
body.public-body .nav-shell { max-width: 1460px; min-height: 84px; padding: 8px 28px; }
.public-brand-lockup,
body.public-body .premium-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: auto !important;
  padding: 0;
  overflow: visible;
  color: var(--client-ivory);
  background: transparent !important;
  border-radius: 0;
  text-decoration: none;
}
.public-brand-lockup img,
body.public-body .premium-brand img {
  width: 54px !important;
  height: 54px !important;
  max-width: none !important;
  padding: 0 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: transparent !important;
  filter: drop-shadow(0 8px 18px rgba(204,156,62,.17)) !important;
  box-shadow: none !important;
}
.public-brand-lockup > span { display: flex; align-items: baseline; white-space: nowrap; }
.public-brand-lockup strong { font-family: "Marcellus", Georgia, serif; color: #f7f1e6; font-size: 21px; font-weight: 400; letter-spacing: .02em; }
.public-brand-lockup small { color: var(--client-gold); font-size: 14px; font-weight: 700; }
body.public-body .premium-nav-links { gap: 3px !important; }
body.public-body .premium-nav-links .nav-link {
  padding: 11px 13px !important;
  color: rgba(245,240,230,.72) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .015em;
}
body.public-body .premium-nav-links .nav-link:hover,
body.public-body .premium-nav-links .nav-link.active { color: #fff !important; background: rgba(214,174,100,.08); }
.public-panel-link { display: inline-flex !important; align-items: center; gap: 7px; }
.client-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(239,213,157,.7);
  color: #150f07;
  background: linear-gradient(135deg,#f0d89c,#bd8738);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.client-nav-cta:hover { color: #090705; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(176,124,42,.24); }
body.public-body .premium-toggler { border-color: rgba(214,174,100,.32); background: rgba(255,255,255,.03); }

.client-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--client-gold); font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.client-kicker span { width: 42px; height: 1px; background: currentColor; }
.client-hero {
  position: relative;
  min-height: min(860px, calc(100svh - 84px));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
  background: #080b10;
  border-bottom: 1px solid rgba(214,174,100,.16);
}
.client-hero-media { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.client-hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg,rgba(5,7,10,.97) 0%,rgba(5,7,10,.9) 37%,rgba(5,7,10,.53) 64%,rgba(5,7,10,.12) 100%),linear-gradient(180deg,rgba(5,7,10,.14),rgba(5,7,10,.5)); }
.client-orbit { position: absolute; z-index: -1; pointer-events: none; border: 1px solid rgba(214,174,100,.22); border-radius: 50%; }
.client-orbit-one { width: 720px; height: 720px; right: -340px; top: -260px; }
.client-orbit-two { width: 980px; height: 980px; right: -440px; top: -390px; opacity: .48; }
.client-hero-layout { position: relative; display: grid; grid-template-columns: minmax(0,760px) minmax(220px,1fr); gap: 80px; align-items: end; min-height: inherit; padding-top: 120px; padding-bottom: 76px; }
.client-hero-copy { align-self: center; }
.client-hero h1,
.client-section h2,
.client-contact-form h3,
.client-footer h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
.client-hero h1 { max-width: 800px; margin: 0; color: #f7f2e8; font-size: clamp(4.2rem,7.2vw,7.4rem); line-height: .84; }
.client-hero h1 em { display: block; color: #dfbd78; font-weight: 500; }
.client-hero-lead { max-width: 650px; margin: 30px 0 0; color: rgba(245,240,230,.76); font-size: clamp(1rem,1.4vw,1.18rem); line-height: 1.75; }
.client-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.client-btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 14px 22px; border-radius: 5px; font-size: 13px; font-weight: 800; text-decoration: none; letter-spacing: .025em; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.client-btn-primary { color: #151008; border: 1px solid rgba(255,255,255,.24); background: linear-gradient(135deg,#f0d999,#c28d3b 58%,#9d6e28); box-shadow: 0 18px 44px rgba(157,110,40,.22); }
.client-btn-primary:hover { color: #080705; transform: translateY(-2px); box-shadow: 0 22px 50px rgba(190,141,59,.3); }
.client-btn-ghost { color: #f2ebdf; border: 1px solid rgba(245,240,230,.42); background: rgba(8,10,14,.28); backdrop-filter: blur(10px); }
.client-btn-ghost:hover { color: #fff; border-color: rgba(214,174,100,.7); background: rgba(214,174,100,.08); transform: translateY(-2px); }
.client-proof-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: rgba(245,240,230,.66); font-size: 12px; font-weight: 700; }
.client-proof-row span { display: inline-flex; align-items: center; gap: 8px; }
.client-proof-row i { color: var(--client-gold); }
.client-hero-note { align-self: end; justify-self: end; width: 260px; padding: 25px; background: rgba(8,10,14,.64); border: 1px solid rgba(214,174,100,.32); backdrop-filter: blur(18px); }
.client-note-index { display: block; margin-bottom: 45px; color: var(--client-gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.client-hero-note strong { display: block; color: #f7f0e3; font-family: "Cormorant Garamond",Georgia,serif; font-size: 58px; font-weight: 500; line-height: 1; }
.client-hero-note p { margin: 10px 0 24px; color: rgba(245,240,230,.66); font-size: 13px; line-height: 1.65; }
.client-hero-note a { display: flex; align-items: center; justify-content: space-between; color: #f3e6ca; font-size: 12px; font-weight: 700; text-decoration: none; }

.client-service-rail { position: relative; z-index: 3; background: #0b0e12; border-bottom: 1px solid rgba(214,174,100,.13); }
.client-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.client-service-grid > div { min-height: 148px; display: grid; grid-template-columns: 38px 1fr; align-content: center; padding: 28px 36px; border-right: 1px solid rgba(214,174,100,.13); }
.client-service-grid > div:first-child { border-left: 1px solid rgba(214,174,100,.13); }
.client-service-grid span { grid-row: 1 / 3; color: var(--client-gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.client-service-grid strong { color: #f5eee2; font-family: "Cormorant Garamond",Georgia,serif; font-size: 26px; font-weight: 600; }
.client-service-grid small { margin-top: 6px; color: #8f8d88; font-size: 12px; line-height: 1.55; }

.client-section { position: relative; padding: 120px 0; }
.client-standard { background: linear-gradient(180deg,#0b0e12,#07090c); }
.client-split { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(400px,.96fr); gap: 92px; align-items: center; }
.client-photo-frame { position: relative; min-height: 620px; overflow: hidden; background: #16191e; border: 1px solid rgba(214,174,100,.18); }
.client-photo-frame::before { content: ""; position: absolute; z-index: 2; inset: 20px; pointer-events: none; border: 1px solid rgba(239,213,157,.28); }
.client-photo-frame img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; object-position: center; display: block; }
.client-photo-caption { position: absolute; z-index: 3; left: 20px; bottom: 20px; width: min(330px,calc(100% - 40px)); padding: 24px; background: rgba(7,9,12,.88); backdrop-filter: blur(14px); border-top: 1px solid rgba(214,174,100,.45); }
.client-photo-caption span,.client-photo-caption strong { display: block; }
.client-photo-caption span { color: var(--client-gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.client-photo-caption strong { margin-top: 7px; color: #f3ecdf; font-family: "Cormorant Garamond",Georgia,serif; font-size: 25px; font-weight: 500; line-height: 1.08; }
.client-editorial-copy h2 { margin: 0; max-width: 650px; color: #f3ecdf; font-size: clamp(3rem,5vw,5rem); line-height: .98; }
.client-editorial-copy > p:not(.client-kicker) { max-width: 620px; margin: 28px 0 36px; color: var(--client-muted); font-size: 16px; line-height: 1.8; }
.client-principles { border-top: 1px solid rgba(214,174,100,.2); }
.client-principles article { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(214,174,100,.13); }
.client-principles article > span { color: var(--client-gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.client-principles strong { display: block; color: #f1eadf; font-size: 15px; }
.client-principles p { margin: 5px 0 0; color: #888883; font-size: 13px; line-height: 1.55; }

.client-product-section { overflow: hidden; background: #10141a; border-top: 1px solid rgba(214,174,100,.12); border-bottom: 1px solid rgba(214,174,100,.12); }
.client-product-section::before { content: ""; position: absolute; width: 900px; height: 900px; right: -460px; top: -520px; border: 1px solid rgba(214,174,100,.16); border-radius: 50%; }
.client-section-head { display: grid; grid-template-columns: 1fr 360px; gap: 70px; align-items: end; margin-bottom: 52px; }
.client-section-head h2 { max-width: 720px; margin: 0; color: #f5eee3; font-size: clamp(3.2rem,5.7vw,5.6rem); line-height: .92; }
.client-section-head > div:last-child p { margin: 0 0 14px; color: #9c9a94; line-height: 1.7; }
.client-section-head a,.client-product-card > a { display: inline-flex; align-items: center; gap: 12px; color: var(--client-gold); font-size: 12px; font-weight: 800; text-decoration: none; }
.client-section-head a:hover,.client-product-card > a:hover { color: #f0d596; }
.client-product-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.client-product-card { display: flex; flex-direction: column; min-height: 610px; padding: 24px; background: linear-gradient(155deg,rgba(25,30,38,.98),rgba(11,14,19,.98)); border: 1px solid rgba(214,174,100,.17); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.client-product-card:hover { transform: translateY(-5px); border-color: rgba(214,174,100,.42); box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.client-product-topline { display: flex; justify-content: space-between; color: #777873; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.client-product-topline small { color: var(--client-gold); font-size: inherit; }
.client-product-visual { position: relative; min-height: 245px; display: grid; place-items: center; margin: 20px -6px 26px; overflow: hidden; background: radial-gradient(circle at 50% 55%,rgba(214,174,100,.14),transparent 44%); border-bottom: 1px solid rgba(214,174,100,.13); }
.client-product-visual::after { content: ""; position: absolute; width: 245px; height: 245px; border: 1px solid rgba(214,174,100,.14); border-radius: 50%; }
.client-product-visual > strong { position: absolute; z-index: 3; right: 10px; bottom: 18px; color: #f4ecdf; font-family: "Cormorant Garamond",Georgia,serif; font-size: 36px; font-weight: 500; }
.client-product-visual > strong small { color: var(--client-gold); font-family: "DM Sans",sans-serif; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.client-battery-stack { position: relative; z-index: 2; width: 92px; height: 180px; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 10px 14px; background: linear-gradient(145deg,#f0eee8,#aaa9a4); border: 1px solid #fff; border-radius: 14px; box-shadow: 0 20px 38px rgba(0,0,0,.4); }
.client-battery-stack::before { content: ""; position: absolute; top: 13px; left: 15px; right: 15px; height: 5px; background: #98a780; border-radius: 4px; box-shadow: 0 0 12px rgba(152,167,128,.35); }
.client-battery-stack i { height: 34px; border-top: 1px solid rgba(40,42,45,.16); }
.client-battery-1 { height: 165px; }
.client-battery-2 { height: 194px; width: 96px; }
.client-battery-3 { height: 178px; width: 112px; border-radius: 10px; }
.client-product-card h3 { margin: 0; color: #f6efe4; font-family: "Cormorant Garamond",Georgia,serif; font-size: 31px; font-weight: 600; line-height: 1.05; }
.client-product-card > p { min-height: 74px; margin: 14px 0 20px; color: #92918d; font-size: 13px; line-height: 1.65; }
.client-product-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.client-product-meta span { padding: 7px 9px; color: #c4beb2; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); font-size: 10px; font-weight: 700; }
.client-product-card > a { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(214,174,100,.13); }

.client-process { background: #07090c; }
.client-process-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 70px; align-items: end; margin-bottom: 58px; }
.client-process-intro .client-kicker { grid-column: 1/-1; }
.client-process-intro h2 { margin: 0; color: #f5eee2; font-size: clamp(3.2rem,5.8vw,5.7rem); line-height: .94; }
.client-process-intro > p:last-child { justify-self: end; max-width: 380px; margin: 0 0 8px; color: #92918b; font-size: 16px; line-height: 1.7; }
.client-process-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(214,174,100,.22); }
.client-process-list li { min-height: 260px; padding: 24px 24px 28px; border-right: 1px solid rgba(214,174,100,.15); }
.client-process-list li:first-child { border-left: 1px solid rgba(214,174,100,.15); }
.client-process-list li > span { color: var(--client-gold); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.client-process-list div { margin-top: 100px; }
.client-process-list strong { color: #f1eadf; font-family: "Cormorant Garamond",Georgia,serif; font-size: 24px; font-weight: 600; }
.client-process-list p { margin: 8px 0 0; color: #898984; font-size: 12px; line-height: 1.65; }

.client-contact { background: linear-gradient(135deg,#11151b,#080a0d 58%); border-top: 1px solid rgba(214,174,100,.15); }
.client-contact-shell { display: grid; grid-template-columns: minmax(0,.9fr) minmax(520px,1.1fr); gap: 72px; align-items: stretch; }
.client-contact-copy { position: relative; overflow: hidden; min-height: 600px; padding: 58px; background: linear-gradient(145deg,#171b21,#0d1015); border: 1px solid rgba(214,174,100,.18); }
.client-contact-copy h2 { max-width: 530px; margin: 0; color: #f5ede1; font-size: clamp(3.8rem,6vw,6.2rem); line-height: .88; }
.client-contact-copy > p:not(.client-kicker) { max-width: 530px; margin: 26px 0 36px; color: #9c9992; line-height: 1.75; }
.client-contact-details { position: relative; z-index: 2; display: grid; gap: 12px; }
.client-contact-details a,.client-contact-details > div { display: flex; align-items: center; gap: 14px; color: #eee7da; text-decoration: none; }
.client-contact-details i { width: 22px; color: var(--client-gold); }
.client-contact-details span,.client-contact-details small { display: block; }
.client-contact-details small { margin-bottom: 2px; color: #74756f; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.client-contact-mark { position: absolute; right: -90px; bottom: -100px; width: 370px; opacity: .07; transform: rotate(-8deg); }
.client-contact-mark img { width: 100%; height: auto; }
.client-contact-form { display: flex; flex-direction: column; justify-content: center; padding: 54px; background: #f0ebe1; color: #15171a; }
.client-form-heading { margin-bottom: 30px; }
.client-form-heading > span { color: #9f722d; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.client-contact-form h3 { margin: 8px 0 0; color: #17191c; font-size: 43px; line-height: 1; }
.client-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.client-field { display: grid; gap: 7px; }
.client-field-full { grid-column: 1/-1; }
.client-field label { color: #494a49; font-size: 11px; font-weight: 800; }
.client-field label span { color: #8d8d88; font-weight: 500; }
.client-contact-form .field,.client-contact-form .select { min-height: 51px; color: #15171a !important; background: rgba(255,255,255,.52) !important; border: 1px solid rgba(30,30,28,.17) !important; border-radius: 4px !important; }
.client-contact-form .field::placeholder { color: #96948f; }
.client-contact-form .field:focus,.client-contact-form .select:focus { border-color: #9f722d !important; box-shadow: 0 0 0 3px rgba(159,114,45,.12) !important; }
.client-submit { width: 100%; margin-top: 22px; border: 0; }
.client-form-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: #74736f; font-size: 10px; line-height: 1.5; }
.client-form-note i { color: #9f722d; }

.client-footer { padding: 72px 0 0; background: #050608; border-top: 1px solid rgba(214,174,100,.18); }
.client-footer-main { display: grid; grid-template-columns: minmax(300px,1.6fr) repeat(2,minmax(180px,.7fr)); gap: 70px; padding-bottom: 58px; }
.client-footer-brand p { max-width: 410px; margin: 22px 0 0; color: #7e7e79; font-size: 13px; line-height: 1.75; }
.client-footer h4 { margin: 0 0 18px; color: #eee6d8; font-size: 22px; }
.client-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.client-footer li,.client-footer a { color: #8f8f8a; font-size: 12px; text-decoration: none; }
.client-footer a:hover { color: var(--client-gold); }
.client-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 22px; color: #656661; border-top: 1px solid rgba(214,174,100,.11); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body.public-body .site-creator-footer { padding: 14px 0; background: #040507; border-top: 1px solid rgba(255,255,255,.04); }
body.public-body .site-creator-footer-inner { opacity: .55; }
body.public-body .site-creator-brand img { width: 34px; border-radius: 6px; }
body.public-body .site-creator-brand strong,body.public-body .site-creator-brand span { font-size: 10px; }

/* Shared logo repair: transparent mark + live wordmark, never crop the emblem. */
.app-header .logo-mark { display: inline-flex; align-items: center; gap: 10px; min-width: 205px !important; overflow: visible; background: transparent; }
.app-header .logo-mark img { width: 52px !important; height: 52px !important; max-width: none !important; object-fit: contain !important; background: transparent !important; box-shadow: none !important; filter: drop-shadow(0 8px 16px rgba(201,155,67,.18)) !important; }
.app-header .brand-copy strong { color: #f3ede1; font-family: "Marcellus",Georgia,serif; font-size: 17px; font-weight: 400; }
.app-header .brand-copy span { display: inline; margin: 0; color: var(--gold); font-size: 11px; letter-spacing: 0; }

@media (max-width: 1199px) {
  body.public-body .navbar-collapse { padding: 18px 0 12px; border-top: 1px solid rgba(214,174,100,.12); }
  body.public-body .premium-nav-links { align-items: stretch !important; }
  .client-nav-cta { margin: 8px 0 0; }
  .client-hero-layout { grid-template-columns: minmax(0,700px) 230px; gap: 38px; }
  .client-split { gap: 56px; }
  .client-contact-shell { grid-template-columns: minmax(0,.85fr) minmax(480px,1.15fr); gap: 30px; }
}

@media (max-width: 991px) {
  body.public-body .nav-shell { padding-inline: 18px; }
  .client-hero { min-height: 820px; }
  .client-hero-media { object-position: 62% center; }
  .client-hero-shade { background: linear-gradient(90deg,rgba(5,7,10,.98) 0%,rgba(5,7,10,.88) 62%,rgba(5,7,10,.44) 100%); }
  .client-hero-layout { grid-template-columns: 1fr; align-items: center; padding-top: 96px; }
  .client-hero-note { display: none; }
  .client-hero-copy { max-width: 710px; }
  .client-service-grid > div { padding-inline: 22px; }
  .client-split,.client-contact-shell { grid-template-columns: 1fr; }
  .client-photo-frame,.client-photo-frame img { min-height: 540px; }
  .client-section-head { grid-template-columns: 1fr; gap: 24px; }
  .client-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-product-card:last-child { grid-column: 1/-1; max-width: calc(50% - 9px); }
  .client-process-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-process-list li:nth-child(2) { border-right: 1px solid rgba(214,174,100,.15); }
  .client-process-list li:nth-child(n+3) { border-top: 1px solid rgba(214,174,100,.15); }
  .client-contact-copy { min-height: 500px; }
  .client-contact-form { padding: 48px; }
}

@media (max-width: 680px) {
  body.public-body .premium-navbar,body.public-body .nav-shell { min-height: 72px; }
  body.public-body .nav-shell { padding: 8px 14px; }
  .public-brand-lockup img,body.public-body .premium-brand img { width: 44px !important; height: 44px !important; }
  .public-brand-lockup strong { font-size: 17px; }
  .public-brand-lockup small { font-size: 11px; }
  .public-panel-link span { display: inline; }
  .client-section { padding: 78px 0; }
  .client-hero { min-height: 760px; }
  .client-hero-media { object-position: 68% center; }
  .client-hero-shade { background: linear-gradient(180deg,rgba(5,7,10,.45),rgba(5,7,10,.9) 48%,rgba(5,7,10,.99)); }
  .client-hero-layout { align-items: end; padding: 88px 16px 46px; }
  .client-hero h1 { font-size: clamp(3.55rem,18vw,5rem); line-height: .86; }
  .client-hero-lead { margin-top: 22px; font-size: 15px; line-height: 1.65; }
  .client-hero-actions { display: grid; margin-top: 26px; }
  .client-btn { width: 100%; min-height: 52px; }
  .client-proof-row { display: grid; gap: 9px; margin-top: 24px; }
  .client-orbit-one { width: 420px; height: 420px; right: -270px; top: -120px; }
  .client-orbit-two { display: none; }
  .client-service-grid { grid-template-columns: 1fr; }
  .client-service-grid > div,.client-service-grid > div:first-child { min-height: 116px; border-left: 1px solid rgba(214,174,100,.13); border-right: 1px solid rgba(214,174,100,.13); border-bottom: 1px solid rgba(214,174,100,.13); }
  .client-split { gap: 48px; }
  .client-photo-frame,.client-photo-frame img { min-height: 420px; }
  .client-photo-frame::before { inset: 12px; }
  .client-photo-caption { left: 12px; bottom: 12px; width: calc(100% - 24px); }
  .client-editorial-copy h2,.client-section-head h2,.client-process-intro h2 { font-size: clamp(3rem,14vw,4.4rem); }
  .client-product-grid { grid-template-columns: 1fr; }
  .client-product-card,.client-product-card:last-child { min-height: 570px; max-width: none; grid-column: auto; }
  .client-product-card > p { min-height: 0; }
  .client-process-intro { grid-template-columns: 1fr; gap: 20px; }
  .client-process-intro .client-kicker { grid-column: auto; }
  .client-process-intro > p:last-child { justify-self: start; }
  .client-process-list { grid-template-columns: 1fr; }
  .client-process-list li,.client-process-list li:first-child { min-height: 190px; border-left: 1px solid rgba(214,174,100,.15); border-right: 1px solid rgba(214,174,100,.15); border-top: 1px solid rgba(214,174,100,.15); }
  .client-process-list div { margin-top: 54px; }
  .client-contact-copy { min-height: 540px; padding: 34px 26px; }
  .client-contact-copy h2 { font-size: clamp(3.7rem,17vw,5rem); }
  .client-contact-mark { width: 280px; }
  .client-contact-form { padding: 34px 22px; }
  .client-form-grid { grid-template-columns: 1fr; }
  .client-field-full { grid-column: auto; }
  .client-contact-form h3 { font-size: 36px; }
  .client-footer-main { grid-template-columns: 1fr; gap: 38px; padding-inline: 16px; }
  .client-footer-bottom { align-items: flex-start; flex-direction: column; padding-inline: 16px; }
  body.public-body .site-creator-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .client-product-card,.client-btn,.client-nav-cta { transition: none !important; }
}
