:root{--gm-bg:#070708;--gm-card:#111114;--gm-line:#2b2b31;--gm-text:#f6f6f7;--gm-muted:#9d9da5;--gm-red:#df1d25}.gm-portal-wrap{max-width:1050px;margin:30px auto;padding:18px;color:var(--gm-text);font-family:Arial,Helvetica,sans-serif}.gm-portal-wrap *{box-sizing:border-box}.gm-auth-shell,.gm-dashboard{background:radial-gradient(circle at top,rgba(255,255,255,.07),transparent 28%),var(--gm-bg);border-radius:28px;padding:28px;min-height:70vh;box-shadow:0 25px 80px rgba(0,0,0,.25)}.gm-brand-mark{width:96px;height:96px;border-radius:50%;margin:auto;display:grid;place-items:center;border:2px solid #bfc0c5;background:#0c0c0e;font-size:38px;font-weight:900;letter-spacing:-5px}.gm-auth-shell>h1,.gm-lead{text-align:center}.gm-auth-shell>h1{font-size:34px;margin:16px 0 8px}.gm-lead{color:var(--gm-muted);max-width:540px;margin:0 auto 26px}.gm-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:820px;margin:auto}.gm-card{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.01)),var(--gm-card);border:1px solid var(--gm-line);border-radius:20px;padding:20px;box-shadow:0 15px 40px rgba(0,0,0,.2)}.gm-card h2{margin:0 0 18px}.gm-card label{display:grid;gap:7px;color:#d7d7db;font-size:13px;font-weight:700;margin-bottom:13px}.gm-card input{width:100%;min-height:46px;border-radius:12px;border:1px solid #323239;background:#09090b;color:white;padding:11px 13px;outline:none}.gm-card input:focus{border-color:#777}.gm-primary,.gm-secondary,.gm-save,.gm-view{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:13px;border:0;text-decoration:none;font-weight:800;cursor:pointer}.gm-primary,.gm-save{background:linear-gradient(180deg,#ee2a33,#a70e14);color:white}.gm-secondary,.gm-view{background:#eeeeef;color:#111}.gm-dash-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.gm-dash-head h1{margin:4px 0 0}.gm-eyebrow{font-size:11px;letter-spacing:2px;color:#a9a9b0}.gm-url-box{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px 16px;background:#0d0d0f;border:1px solid var(--gm-line);border-radius:15px;margin-bottom:18px}.gm-url-box span{color:#bbb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gm-url-box button{border:0;border-radius:10px;padding:9px 13px;font-weight:800}.gm-profile-form{display:grid;gap:18px}.gm-section{padding:22px}.gm-help{color:var(--gm-muted);font-size:13px;line-height:1.5}.gm-logo-row{display:grid;grid-template-columns:90px 1fr;gap:16px;align-items:center}.gm-logo-row img{width:90px;height:90px;border-radius:50%;object-fit:contain;background:#050505;border:1px solid var(--gm-line);padding:6px}.gm-fields-2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.gm-templates{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.gm-template-choice{min-height:120px;border-radius:16px;border:1px solid #37373d;padding:12px!important;margin:0!important;cursor:pointer;position:relative;overflow:hidden;display:flex!important;align-items:end!important}.gm-template-choice input{position:absolute;opacity:0}.gm-template-choice span{display:grid;gap:3px}.gm-template-choice small{font-size:10px;opacity:.8}.gm-template-choice:has(input:checked){outline:3px solid var(--gm-red)}.gm-t-luxury-black{background:linear-gradient(145deg,#050505,#2c2c30)}.gm-t-executive-silver{background:linear-gradient(145deg,#191a1d,#777b82)}.gm-t-clean-white{background:linear-gradient(145deg,#fff,#d8d8da);color:#111!important}.gm-t-midnight-blue{background:linear-gradient(145deg,#061021,#19447c)}.gm-t-rose-luxe{background:linear-gradient(145deg,#190c12,#6b3747)}.gm-save{position:sticky;bottom:16px;min-height:58px;font-size:17px;box-shadow:0 15px 40px rgba(0,0,0,.4)}.gm-notice{max-width:1050px;margin:0 auto 12px;padding:13px 16px;border-radius:13px;font-weight:700}.gm-success{background:#e7f8ed;color:#145b2b}.gm-error{background:#ffe9e9;color:#791d1d}@media(max-width:760px){.gm-portal-wrap{padding:8px;margin:10px auto}.gm-auth-shell,.gm-dashboard{padding:17px;border-radius:20px}.gm-auth-grid,.gm-fields-2{grid-template-columns:1fr}.gm-templates{grid-template-columns:1fr 1fr}.gm-dash-head{display:grid;align-items:start}.gm-view{width:100%}.gm-url-box{grid-template-columns:1fr}.gm-url-box button{width:100%}.gm-logo-row{grid-template-columns:1fr}.gm-logo-row img{margin:auto}.gm-auth-shell>h1{font-size:28px}}

.gm-button-editor{display:grid;gap:10px;margin-top:16px}
.gm-button-row{display:grid;grid-template-columns:34px 48px 1fr 52px 40px;gap:10px;align-items:center;padding:12px;border:1px solid var(--gm-line);border-radius:16px;background:#0b0b0d;transition:.15s ease}
.gm-button-row.gm-dragging{opacity:.45;transform:scale(.99)}
.gm-drag{font-size:21px;color:#777;cursor:grab;text-align:center;user-select:none}
.gm-row-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#17171b;border:1px solid #34343b;font-weight:900}
.gm-row-fields{min-width:0}
.gm-row-fields label{margin:0}
.gm-public-name{font-weight:900;font-size:14px;margin-bottom:7px;color:#fff}
.gm-switch{display:block!important;margin:0!important;width:48px;height:28px;position:relative}
.gm-switch input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;min-height:0!important}
.gm-switch span{position:absolute;inset:0;border-radius:999px;background:#34343a;border:1px solid #47474e;transition:.2s}
.gm-switch span:before{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#b8b8bd;transition:.2s}
.gm-switch input:checked+span{background:#b5141b;border-color:#e52a32}
.gm-switch input:checked+span:before{transform:translateX(20px);background:#fff}
.gm-move-buttons{display:grid;gap:4px}
.gm-move-buttons button{width:34px;height:29px;padding:0;border:1px solid #34343a;border-radius:8px;background:#151518;color:#ddd;cursor:pointer}
@media(max-width:760px){
  .gm-button-row{grid-template-columns:30px 42px 1fr 48px;align-items:start}
  .gm-row-icon{width:40px;height:40px}
  .gm-move-buttons{grid-column:3/5;display:flex;justify-content:flex-end}
  .gm-move-buttons button{width:44px;height:34px}
}

.gm-founder-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px;padding:13px 16px;border:1px solid rgba(223,29,37,.5);border-radius:15px;background:linear-gradient(90deg,rgba(223,29,37,.16),rgba(255,255,255,.025));font-size:13px}.gm-founder-banner b{font-size:14px}.gm-founder-banner span{color:#c4c4ca}.gm-section-head{display:flex;justify-content:space-between;align-items:start;gap:16px}.gm-section-head h2{margin-bottom:7px}.gm-market-badge{white-space:nowrap;border:1px solid #404047;border-radius:999px;padding:7px 10px;font-size:9px;font-weight:900;letter-spacing:1.4px;color:#d5d5da}.gm-template-market{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:17px}.gm-template-card{overflow:hidden;border:1px solid #303037;border-radius:18px;background:#0b0b0d}.gm-template-card.is-active{outline:2px solid var(--gm-red)}.gm-template-visual{height:150px;padding:15px;display:grid;place-items:center}.gm-mini-phone{width:88px;height:126px;border-radius:19px;border:2px solid rgba(255,255,255,.48);padding:12px 8px;background:rgba(0,0,0,.24);box-shadow:0 13px 30px rgba(0,0,0,.25);display:grid;gap:7px;align-content:start;text-align:center}.gm-mini-phone i{display:block;width:31px;height:31px;border-radius:50%;margin:auto;background:rgba(255,255,255,.8)}.gm-mini-phone b{font-size:8px}.gm-mini-phone span{display:block;height:9px;border-radius:6px;background:rgba(255,255,255,.32)}.gm-template-info{padding:13px}.gm-template-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.gm-template-info small{display:block;color:#9d9da5;line-height:1.4;margin-top:5px}.gm-badge{font-style:normal;font-size:9px;font-weight:900;border-radius:999px;padding:5px 7px;white-space:nowrap}.gm-badge.active{background:#9e1117;color:white}.gm-badge.owned{background:#213e2d;color:#aee3c1}.gm-badge.premium{background:#3b3020;color:#efcf92}.gm-template-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin-top:12px}.gm-template-actions>a,.gm-use-style span,.gm-locked{min-height:40px;border-radius:10px;display:grid;place-items:center;text-align:center;text-decoration:none;font-size:11px;font-weight:900}.gm-template-actions>a{background:#1a1a1e;color:#e7e7ea;border:1px solid #36363c}.gm-use-style{margin:0!important;display:block!important;cursor:pointer}.gm-use-style input{position:absolute;opacity:0;pointer-events:none}.gm-use-style span{background:#eee;color:#111}.gm-use-style input:checked+span{background:linear-gradient(180deg,#ee2a33,#a70e14);color:white}.gm-locked{border:1px solid #35353a;background:#151518;color:#73737a}.gm-market-note{margin-top:14px}.gm-t-emerald-elite{background:linear-gradient(145deg,#06110d,#166142)}.gm-t-carbon-gold{background:linear-gradient(145deg,#050505,#8b6925)}.gm-t-neon-night{background:linear-gradient(145deg,#050611,#5034b3)}.gm-qr-grid{display:grid;grid-template-columns:220px 1fr;gap:22px;align-items:center;margin-top:16px}.gm-qr-frame{background:white;padding:12px;border-radius:20px}.gm-qr-frame img{display:block;width:100%;height:auto;border-radius:10px}.gm-qr-actions{display:grid;gap:10px}.gm-qr-actions .gm-primary,.gm-qr-actions .gm-secondary{width:100%;min-height:48px;border:0}.gm-qr-actions p{margin:2px 0 0;color:#929299;font-size:12px;line-height:1.5}
@media(max-width:760px){.gm-founder-banner,.gm-section-head{display:grid}.gm-template-market{grid-template-columns:1fr}.gm-market-badge{justify-self:start}.gm-qr-grid{grid-template-columns:1fr}.gm-qr-frame{max-width:240px;margin:auto}.gm-template-visual{height:135px}}

.gm-analytics-section{margin-top:16px}
.gm-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}
.gm-stat{min-height:92px;border:1px solid var(--gm-line);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01));display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px}
.gm-stat b{font-size:27px;line-height:1;color:#fff}
.gm-stat span{font-size:11px;color:#96969d;text-transform:uppercase;letter-spacing:.7px;margin-top:7px}
.gm-top-action{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px;padding:13px 15px;border-radius:14px;background:#0b0b0d;border:1px solid var(--gm-line)}
.gm-top-action span{color:#96969d;font-size:12px}
.gm-top-action strong{font-size:13px;text-align:right}
@media(max-width:680px){
  .gm-stat-grid{grid-template-columns:repeat(2,1fr)}
  .gm-top-action{align-items:flex-start;flex-direction:column}
  .gm-top-action strong{text-align:left}
}

.gm-owner-banner{border-color:#38404a!important;background:linear-gradient(135deg,rgba(80,95,110,.16),rgba(15,15,17,.96))!important}
.gm-plan-section{margin-top:16px}
.gm-plan-box{margin-top:16px;padding:16px;border:1px solid var(--gm-line);border-radius:16px;background:linear-gradient(135deg,#111114,#09090b);display:flex;justify-content:space-between;gap:18px;align-items:center}
.gm-plan-box>div:first-child{display:flex;flex-direction:column;gap:5px}
.gm-plan-kicker{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:#8e8e95}
.gm-plan-box strong{font-size:16px}
.gm-plan-note{max-width:430px;font-size:12px;line-height:1.5;color:#a1a1a7;text-align:right}
.gm-addon-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.gm-addon{border:1px solid var(--gm-line);border-radius:16px;padding:14px;background:#0b0b0d;display:flex;flex-direction:column;gap:7px;min-height:120px}
.gm-addon b{font-size:14px}
.gm-addon span{font-size:11px;line-height:1.45;color:#96969d;flex:1}
.gm-addon em{font-style:normal;font-weight:900;font-size:12px;color:#fff}
@media(max-width:700px){
  .gm-plan-box{align-items:flex-start;flex-direction:column}
  .gm-plan-note{text-align:left}
  .gm-addon-grid{grid-template-columns:1fr}
}

.gm-current-plan{margin-top:16px;padding:13px 15px;border:1px solid var(--gm-line);border-radius:14px;background:#0a0a0c;display:flex;justify-content:space-between;gap:12px;align-items:center}
.gm-current-plan span{font-size:11px;color:#929299;text-transform:uppercase;letter-spacing:.8px}
.gm-current-plan strong{text-align:right}
.gm-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.gm-plan-card{border:1px solid var(--gm-line);border-radius:18px;padding:18px;background:linear-gradient(160deg,#111114,#09090a);position:relative;overflow:hidden}
.gm-plan-card.active{border-color:#6e6e76;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.gm-plan-card.unlimited{background:linear-gradient(160deg,#161113,#09090a)}
.gm-plan-card.unlimited.active{border-color:#b5141b}
.gm-plan-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.gm-plan-top h3{margin:2px 0 0;font-size:21px}
.gm-plan-top b{font-size:14px;white-space:nowrap}
.gm-plan-card p{color:#aaaab0;font-size:12px;line-height:1.55}
.gm-plan-card ul{margin:14px 0 16px;padding-left:19px;color:#d0d0d4;font-size:12px;line-height:1.8}
.gm-plan-foot{display:flex;justify-content:space-between;gap:8px;padding-top:12px;border-top:1px solid var(--gm-line);font-size:11px;color:#96969d}
.gm-plan-foot strong{color:#fff;text-align:right}
.gm-founder-note,.gm-payment-note{margin-top:14px;padding:13px 15px;border-radius:14px;border:1px solid #393940;background:#0b0b0d;color:#aaaab0;font-size:12px;line-height:1.5}
.gm-founder-note{border-color:rgba(181,20,27,.55);background:rgba(181,20,27,.08)}
.gm-payment-note strong{color:#fff}
@media(max-width:700px){
  .gm-plan-grid{grid-template-columns:1fr}
  .gm-current-plan{align-items:flex-start;flex-direction:column}
  .gm-current-plan strong{text-align:left}
}

.gm-contacts-dashboard-card{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;margin-top:16px}
.gm-contacts-dashboard-card h2{margin:4px 0 7px}
.gm-contacts-dash-action{min-width:160px;text-align:center;border:1px solid var(--gm-line);border-radius:16px;background:#0b0b0d;padding:14px}
.gm-contacts-dash-action strong{display:block;font-size:28px;line-height:1}
.gm-contacts-dash-action span{display:block;color:#919198;font-size:10px;text-transform:uppercase;letter-spacing:.8px;margin:6px 0 10px}
.gm-contacts-dash-action a{display:block;text-decoration:none;background:#17171b;color:#fff;border:1px solid #38383e;border-radius:11px;padding:10px 8px;font-size:12px;font-weight:900}
@media(max-width:700px){
  .gm-contacts-dashboard-card{grid-template-columns:1fr}
  .gm-contacts-dash-action{min-width:0}
}

.gm-payment-alert{margin:14px 0;padding:13px 15px;border-radius:14px;border:1px solid #69464a;background:#1a1113;color:#ddd;font-size:12px;text-align:center}
.gm-payment-alert.ok{border-color:#28633f;background:#0d1b13}
.gm-intro-offer{margin:16px 0 0;padding:14px 16px;border-radius:16px;border:1px solid rgba(181,20,27,.65);background:linear-gradient(135deg,rgba(181,20,27,.17),rgba(255,255,255,.02));display:flex;flex-direction:column;gap:5px}
.gm-intro-offer b{font-size:14px}.gm-intro-offer span{font-size:11px;color:#b5b5ba;line-height:1.45}
.gm-pay-form{margin-top:14px}
.gm-pay-form button,.gm-billing-form button,.gm-buy-template{width:100%;min-height:44px;border:1px solid #9c1b21;border-radius:12px;background:linear-gradient(180deg,#c31b23,#7b0e13);color:#fff;font-size:12px;font-weight:900;cursor:pointer;padding:9px 12px}
.gm-billing-form{margin-top:14px}
.gm-billing-form button{background:#151518;border-color:#3a3a40}
.gm-template-buy-form{margin:0;flex:1}
.gm-template-actions .gm-template-buy-form button{height:100%}

.gm-template-pagination{display:flex;justify-content:center;align-items:center;gap:7px;margin:18px 0 4px}
.gm-template-pagination button{width:38px;height:38px;border-radius:11px;border:1px solid var(--gm-line);background:#101013;color:#d9d9de;font-weight:900;cursor:pointer}
.gm-template-pagination button.active{background:#d51920;border-color:#e4383e;color:#fff}
.gm-template-pagination button:disabled{opacity:.35;cursor:not-allowed}

/* New marketplace previews are intentionally different, not just recolors. */
.gm-t-glass-orbit{background:
 radial-gradient(circle at 20% 25%,rgba(90,210,255,.45),transparent 24%),
 radial-gradient(circle at 82% 70%,rgba(166,92,255,.5),transparent 25%),
 linear-gradient(145deg,#101421,#090b12)}
.gm-t-glass-orbit .gm-mini-phone{backdrop-filter:blur(10px);background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.28);transform:rotate(-3deg)}
.gm-t-editorial-split{background:linear-gradient(90deg,#eee8dd 0 42%,#181818 42% 100%)}
.gm-t-editorial-split .gm-mini-phone{background:transparent!important;border:0!important;box-shadow:none!important;transform:translateX(12px)}
.gm-t-editorial-split .gm-mini-phone i{border-radius:4px!important}
.gm-t-metro-stack{background:#101216}
.gm-t-metro-stack .gm-mini-phone{background:transparent!important;border:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important}
.gm-t-metro-stack .gm-mini-phone i{grid-column:1/3;width:42px!important;height:42px!important}
.gm-t-metro-stack .gm-mini-phone b{grid-column:1/3}
.gm-t-metro-stack .gm-mini-phone span{height:18px!important;border-radius:5px!important}
.gm-t-retro-terminal{background:repeating-linear-gradient(0deg,#020704 0 2px,#061109 2px 4px);color:#79ff9f}
.gm-t-retro-terminal .gm-mini-phone{border:1px solid #2ce36a!important;border-radius:5px!important;background:#020704!important;box-shadow:0 0 18px rgba(44,227,106,.22)!important;font-family:monospace}
.gm-t-aurora-motion{background:linear-gradient(125deg,#07122a,#2d0d47,#0a5060,#07122a);background-size:300% 300%;animation:gmAuroraPreview 6s ease infinite}
.gm-t-aurora-motion .gm-mini-phone{background:rgba(255,255,255,.11)!important;border:1px solid rgba(255,255,255,.28)!important;backdrop-filter:blur(9px)}
.gm-t-spotlight{background:radial-gradient(circle at 50% 18%,#f8f0e1 0 16%,#26201a 38%,#080808 78%)}
.gm-t-spotlight .gm-mini-phone{background:transparent!important;border:0!important}
.gm-t-spotlight .gm-mini-phone i{width:62px!important;height:62px!important;box-shadow:0 0 0 7px rgba(255,255,255,.10)}
@keyframes gmAuroraPreview{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}

@media(min-width:900px){
  .gm-template-market{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.gm-owner-banner{box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)}

.gm-gallery-editor{margin-top:16px}
.gm-gallery-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.gm-gallery-admin-item{position:relative;border:1px solid var(--gm-line);border-radius:14px;overflow:hidden;background:#0c0c0e;margin:0!important}
.gm-gallery-admin-item img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.gm-gallery-admin-item span{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px;background:#0d0d10;color:#bbb;font-size:11px}
.gm-gallery-admin-item input{min-height:0!important;width:auto!important;margin:0!important}
.gm-gallery-upload{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:120px;border:1px dashed #44444b!important;border-radius:16px;background:#0b0b0d;text-align:center;padding:18px!important;cursor:pointer}
.gm-gallery-upload strong{font-size:15px}.gm-gallery-upload span{font-size:11px;color:#96969d}
.gm-gallery-upload input{margin-top:8px}
@media(max-width:620px){.gm-gallery-admin-grid{grid-template-columns:repeat(2,1fr)}}

/* v1.5 — make the GM customer portal feel like a true mobile app. */
@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body .site,
  body .site-content,
  body .content-area,
  body .site-main,
  body .ast-container,
  body .entry-content,
  body .wp-site-blocks,
  body main,
  body article,
  body .entry-content > *{
    max-width:none!important;
  }

  .gm-portal-wrap{
    width:100vw!important;
    max-width:none!important;
    margin:0 calc(50% - 50vw)!important;
    padding:0!important;
  }

  .gm-auth-shell,
  .gm-dashboard{
    width:100%!important;
    max-width:none!important;
    min-height:100vh!important;
    border-radius:0!important;
    padding:18px 14px 30px!important;
    box-shadow:none!important;
  }

  .gm-card,
  .gm-url-box{
    width:100%!important;
  }

  .gm-dashboard{
    border-left:0!important;
    border-right:0!important;
  }

  .gm-dash-head{
    padding-top:4px;
  }
}

/* Prevent Astra/theme wrappers from adding side gutters around the GM portal. */
body:has(.gm-portal-wrap) .ast-container,
body:has(.gm-portal-wrap) .site-content .ast-container,
body:has(.gm-portal-wrap) .content-area,
body:has(.gm-portal-wrap) .site-main,
body:has(.gm-portal-wrap) article,
body:has(.gm-portal-wrap) .entry-content{
  max-width:none!important;
  width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* v1.6 — improve dashboard section heading contrast/readability */
.gm-dashboard h1,
.gm-dashboard h2,
.gm-dashboard h3,
.gm-card h2,
.gm-card h3,
.gm-section h2,
.gm-section h3,
.gm-contacts-dashboard-card h2,
.gm-plan-card h3{
  color:#f4f4f5!important;
  text-shadow:none!important;
  opacity:1!important;
}

.gm-dashboard .gm-section-head h2,
.gm-dashboard .gm-section-head h3{
  color:#ffffff!important;
}

.gm-dashboard .gm-plan-kicker,
.gm-dashboard .gm-help,
.gm-dashboard .gm-card p{
  opacity:1!important;
}

.gm-dashboard .gm-plan-kicker{
  color:#a9a9b0!important;
}

.gm-account-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;margin-bottom:14px;border:1px solid var(--gm-line);border-radius:14px;background:#0b0b0d}
.gm-account-bar>div:first-child{min-width:0}
.gm-account-bar span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#8f8f96;margin-bottom:3px}
.gm-account-bar strong{display:block;font-size:12px;color:#f4f4f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.gm-account-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border-radius:10px;border:1px solid #3a3a40;background:#151518;color:#fff;text-decoration:none;font-size:12px;font-weight:900}
@media(max-width:520px){.gm-account-bar{align-items:flex-start;flex-direction:column}.gm-account-actions{width:100%}.gm-account-actions a{width:100%}.gm-account-bar strong{max-width:100%}}

.gm-save-success{
  margin:0 0 14px;
  padding:13px 15px;
  border-radius:14px;
  border:1px solid #2e7d4a;
  background:#0d1c13;
  color:#dff7e8;
  font-size:13px;
  font-weight:800;
  text-align:center;
}
.gm-save:disabled{opacity:.7;cursor:wait}

/* v1.9 save/publish repair */
.gm-template-actions .gm-buy-template{flex:1}

.gm-auth-context{margin:12px 0 18px;padding:12px 14px;border-radius:14px;border:1px solid #3e3e45;background:#0c0c0f;color:#cfcfd5;font-size:12px;line-height:1.5;text-align:center}

.gm-contacts-top-actions{
  display:flex;
  justify-content:center;
  margin:10px 0 16px;
}
.gm-small-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:12px;
  border:1px solid #3b3b42;
  background:#111116;
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
}


/* v2.5 — fix My GM Contacts top button layout and improve text readability */
.gm-contacts-top-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  margin:12px 0 14px;
}

.gm-contacts-top-actions .gm-small-btn{
  width:100%;
  max-width:320px;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  white-space:nowrap;
  word-break:normal;
  overflow-wrap:normal;
  line-height:1;
  text-align:center;
}

.gm-contact-saved-toast{
  width:100%;
  max-width:100%;
  margin:0 0 14px;
  padding:13px 16px;
  line-height:1.35;
}

.gm-contacts-top-actions + .gm-contact-saved-toast{
  margin-top:0;
}

.gm-card p,
.gm-card li,
.gm-card .gm-help,
.gm-dashboard p,
.gm-dashboard li,
.gm-dashboard .gm-help,
.gm-dashboard .gm-plan-card p,
.gm-dashboard .gm-plan-card li,
.gm-dashboard .gm-market-card p,
.gm-dashboard .gm-market-card li,
.gm-dashboard .gm-contacts-dashboard-card p,
.gm-dashboard .gm-contacts-dashboard-card li{
  color:#d9d9de !important;
  opacity:1 !important;
}

.gm-card ul,
.gm-card ol,
.gm-dashboard ul,
.gm-dashboard ol{
  padding-left:20px;
}

.gm-card li,
.gm-dashboard li{
  margin:0 0 8px;
}

.gm-dashboard .gm-plan-card h2,
.gm-dashboard .gm-plan-card h3,
.gm-dashboard .gm-market-card h2,
.gm-dashboard .gm-market-card h3,
.gm-dashboard .gm-contacts-dashboard-card h2,
.gm-dashboard .gm-contacts-dashboard-card h3,
.gm-dashboard .gm-card h2,
.gm-dashboard .gm-card h3{
  color:#ffffff !important;
}

.gm-dashboard .gm-plan-card,
.gm-dashboard .gm-market-card,
.gm-dashboard .gm-contacts-dashboard-card{
  color:#ececf1;
}

.gm-dashboard .gm-plan-kicker,
.gm-dashboard .gm-market-badge,
.gm-dashboard .gm-plan-note,
.gm-dashboard .gm-muted{
  color:#b7b7bf !important;
  opacity:1 !important;
}

@media (max-width: 640px){
  .gm-contacts-top-actions .gm-small-btn{
    max-width:none;
    width:100%;
  }
}

.gm-t-blank-canvas{
  background:
    linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.01)),
    #101216;
}

/* v3.7 — keep template selector controls aligned on mobile */
.gm-template-actions{
  align-items:stretch;
}
.gm-use-style{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
.gm-use-style input[type="radio"]{
  position:absolute!important;
  left:-9999px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  opacity:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  pointer-events:none!important;
}
.gm-use-style span{
  width:100%!important;
  box-sizing:border-box!important;
}
@media(max-width:760px){
  .gm-template-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)!important;
    width:100%!important;
  }
  .gm-template-card{
    width:100%!important;
    max-width:100%!important;
  }
}

/* v3.8 — template marketplace readability */
.gm-use-style span{
  background:#f1f1f2!important;
  color:#111!important;
  opacity:1!important;
  text-shadow:none!important;
  font-weight:900!important;
  border:1px solid #d5d5d8!important;
}
.gm-use-style:hover span{
  background:#ffffff!important;
  color:#000!important;
}
.gm-use-style input:checked + span{
  background:linear-gradient(180deg,#ee2a33,#a70e14)!important;
  color:#fff!important;
  border-color:#a70e14!important;
}
.gm-template-actions>a{
  color:#f2f2f4!important;
  opacity:1!important;
}

/* v4.0 recovery — CSS only, no dashboard PHP changes */
.gm-template-actions .gm-use-style{
  position:relative!important;
  display:block!important;
  width:100%!important;
  margin:0!important;
  overflow:hidden!important;
}
.gm-template-actions .gm-use-style input[type="radio"]{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  pointer-events:none!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
.gm-template-actions .gm-use-style span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:44px!important;
  padding:8px 10px!important;
  border-radius:11px!important;
  background:#f4f4f5!important;
  color:#111111!important;
  border:1px solid #d4d4d8!important;
  opacity:1!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.2!important;
  text-shadow:none!important;
  -webkit-text-fill-color:#111111!important;
}
.gm-template-actions .gm-use-style input[type="radio"]:checked + span{
  background:linear-gradient(180deg,#ee2a33,#a70e14)!important;
  color:#ffffff!important;
  border-color:#a70e14!important;
  -webkit-text-fill-color:#ffffff!important;
}
.gm-template-actions>a{
  color:#ffffff!important;
  opacity:1!important;
  -webkit-text-fill-color:#ffffff!important;
}
@media(max-width:760px){
  .gm-template-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)!important;
    align-items:stretch!important;
    width:100%!important;
  }
  .gm-template-card{
    width:100%!important;
    max-width:100%!important;
  }
}

/* v4.1 Background Studio */
.gm-background-studio select{width:100%;min-height:46px;border-radius:12px;border:1px solid #323239;background:#09090b;color:#fff;padding:10px 12px}
.gm-bg-source-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.gm-bg-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.gm-bg-card{padding:0;overflow:hidden;border-radius:15px;border:1px solid #303037;background:#0b0b0d;color:#fff;text-align:left;cursor:pointer}
.gm-bg-card.active{outline:2px solid var(--gm-red)}
.gm-bg-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.gm-bg-card span{display:block;padding:10px}
.gm-bg-card strong{display:block;margin-bottom:4px}
.gm-bg-card small{display:block;color:#9d9da5;line-height:1.35}
.gm-bg-upload{display:grid!important;gap:7px!important;margin-top:14px!important}
.gm-bg-upload span{color:#999aa1;font-size:12px;font-weight:400}
.gm-bg-current{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center;margin-top:14px;padding:12px;border:1px solid #303037;border-radius:16px;background:#0b0b0d}
.gm-bg-current img{width:150px;height:100px;object-fit:cover;border-radius:10px}
.gm-bg-remove{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:8px!important}
.gm-bg-remove input{width:auto!important;min-height:0!important}
@media(max-width:760px){.gm-bg-source-row{grid-template-columns:1fr}.gm-bg-library{grid-template-columns:repeat(2,minmax(0,1fr))}.gm-bg-current{grid-template-columns:1fr}.gm-bg-current img{width:100%;height:auto;aspect-ratio:16/9}}

/* v4.2 Background Studio fixes */
.gm-bg-card img{
  background:#17191e;
}
.gm-bg-live-preview{
  margin-top:16px;
  padding:12px;
  border:1px solid #303037;
  border-radius:16px;
  background:#0b0b0d;
}
.gm-bg-live-preview>span{
  display:block;
  margin-bottom:9px;
  color:#d9d9de;
  font-size:12px;
  font-weight:800;
}
.gm-bg-live-preview-frame{
  overflow:hidden;
  border-radius:12px;
  background:#111318;
  aspect-ratio:9/16;
  max-height:340px;
}
.gm-bg-live-preview-frame img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* v4.3 Theme System 2.0 */
.gm-bg-category-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:4px 0 10px;
  margin-top:14px;
  scrollbar-width:thin;
}
.gm-bg-category{
  flex:0 0 auto;
  border:1px solid #34343a;
  border-radius:999px;
  background:#0b0b0d;
  color:#bfc0c6;
  padding:9px 12px;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.gm-bg-category.active{
  background:#f2f2f3;
  color:#111;
  border-color:#f2f2f3;
}
.gm-bg-card{
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.gm-bg-card:active{transform:scale(.985)}
.gm-bg-card.active{
  border-color:#ed2933!important;
  box-shadow:0 0 0 2px rgba(237,41,51,.28);
}
.gm-bg-card img{
  min-height:150px;
  object-position:center;
}
@media(max-width:760px){
  .gm-bg-card img{min-height:165px}
}

/* v4.4 dashboard/mobile recovery */
.gm-bg-category-tabs,
.gm-bg-category{
  display:none!important;
}
.gm-background-studio label,
.gm-background-studio select{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.gm-dashboard,
.gm-profile-form,
.gm-card,
.gm-section,
.gm-template-market,
.gm-template-card,
.gm-template-info,
.gm-template-actions,
.gm-use-style{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.gm-template-actions{
  overflow:hidden!important;
}
.gm-template-actions>a,
.gm-use-style,
.gm-use-style span{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
@media(max-width:760px){
  .gm-dashboard{
    width:100%!important;
    max-width:100%!important;
    padding-left:12px!important;
    padding-right:12px!important;
    overflow-x:hidden!important;
  }
  .gm-card,
  .gm-section{
    width:100%!important;
    max-width:100%!important;
  }
  .gm-template-market{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
  }
  .gm-template-card{
    width:100%!important;
  }
  .gm-template-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
  }
  .gm-template-actions>a,
  .gm-use-style span{
    width:100%!important;
    padding-left:8px!important;
    padding-right:8px!important;
    font-size:11px!important;
    white-space:normal!important;
  }
}

/* v4.5 custom graphic theme manager support */
.gm-bg-card-image{position:relative}
.gm-bg-access{position:absolute;top:8px;right:8px;padding:5px 8px;border-radius:999px;font-style:normal;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.5px;background:rgba(8,10,14,.8);color:#fff;backdrop-filter:blur(6px)}
.gm-bg-access.free{background:rgba(18,88,49,.86)}
.gm-bg-access.premium{background:rgba(112,76,0,.9);color:#fff1bd}
.gm-bg-card.locked{opacity:.55;cursor:not-allowed}
.gm-bg-phone-preview{position:relative;width:min(220px,72vw);aspect-ratio:9/16;margin:auto;border-radius:25px;overflow:hidden;border:6px solid #24262c;background:#0b0b0d;box-shadow:0 16px 40px rgba(0,0,0,.28)}
.gm-bg-phone-preview>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gm-bg-phone-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.46))}
.gm-bg-phone-content{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;gap:10px;padding:44px 14px 14px;color:#fff}
.gm-bg-phone-content i{display:block;width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.33);border:1px solid rgba(255,255,255,.28)}
.gm-bg-phone-content b{font-size:15px;text-shadow:0 2px 8px rgba(0,0,0,.75)}
.gm-bg-phone-content u{width:100%;height:40px;border-radius:12px;background:rgba(8,10,14,.63);border:1px solid rgba(255,255,255,.18);text-decoration:none}


/* v4.7 — actual mobile sticky Save & Publish fix */
@media(max-width:760px){
  .gm-profile-form{
    padding-bottom:96px!important;
  }

  #gmSavePublishBtn{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(10px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    min-height:54px!important;
    margin:0!important;
    z-index:99999!important;
    border-radius:14px!important;
    box-shadow:0 10px 30px rgba(0,0,0,.45)!important;
  }

  body{
    padding-bottom:calc(78px + env(safe-area-inset-bottom))!important;
  }
}

/* v4.8 background upload status */
.gm-bg-upload-notice{
  margin:0 0 14px;
  padding:11px 13px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:#11151a;
  color:#f4f4f5;
  font-size:12px;
  font-weight:800;
}

/* v4.9 one-free-template flow */
.gm-free-choice span{
  background:linear-gradient(180deg,#ffffff,#e8e8ea)!important;
  color:#101114!important;
  border:1px solid #d0d0d4!important;
}
.gm-free-choice input:checked + span{
  background:linear-gradient(180deg,#2e9a57,#176b39)!important;
  color:#fff!important;
  border-color:#176b39!important;
  -webkit-text-fill-color:#fff!important;
}

/* v5.2 button customization controls */
.gm-gradient-controls{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:10px 0 12px;
}
.gm-gradient-controls label{
  min-width:0;
}
.gm-gradient-controls input[type="color"]{
  width:100%;
  min-height:46px;
  padding:4px;
  border-radius:10px;
}
@media(max-width:760px){
  .gm-gradient-controls{grid-template-columns:1fr 1fr}
}
@media(max-width:430px){
  .gm-gradient-controls{grid-template-columns:1fr}
}
