/* Changes matched to the annotated screenshots in strxbullion audit (1).pdf. */
.starxbullion-floating-whatsapp{position:fixed;right:calc(20px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:78;display:flex;align-items:center;justify-content:center;width:56px;height:56px;border:1px solid #5bd684;border-radius:50%;background:#0b4229;box-shadow:0 5px 18px #0005;text-decoration:none}
.starxbullion-floating-whatsapp img{display:block;width:32px;height:32px;object-fit:contain}
.starxbullion-floating-whatsapp:hover{background:#145c38}
.starxbullion-floating-whatsapp:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.starxbullion-sales-trigger{bottom:calc(88px + env(safe-area-inset-bottom))}
.starxbullion-sales-modal-open .starxbullion-floating-whatsapp{visibility:hidden}
@media(max-width:575px){.starxbullion-floating-whatsapp{right:calc(12px + env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));width:52px;height:52px}.starxbullion-sales-trigger{bottom:calc(76px + env(safe-area-inset-bottom))}}
.starxbullion-social-icon{font:normal 18px/1 STARXBULLIONIcons}
.starxbullion-social-instagram::before{content:'\f16d'}
.starxbullion-social-facebook::before{content:'\f09a'}
.starxbullion-social-youtube::before{content:'\f16a'}
.starxbullion-social-linkedin::before{content:'\f0e1'}
.app-footer .footer-social{display:flex;align-items:center;gap:8px}
.app-footer .footer-social>a,.app-footer .footer-social>span{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;border:1px solid var(--border-strong);border-radius:6px;color:var(--accent)}
.app-footer .footer-social>[aria-disabled=true]{opacity:.55}
.starxbullion-footer-contact-meta{display:grid;gap:0;margin:4px 0}
.starxbullion-footer-contact-meta a{display:flex;align-items:center;min-height:44px;font-size:13px;color:var(--accent);overflow-wrap:anywhere}
.starxbullion-contact-links [data-starxbullion-whatsapp]:has(img){width:44px;justify-content:center;text-decoration:none;flex:none}
.starxbullion-contact-links [data-starxbullion-whatsapp] img{width:22px;height:22px;object-fit:contain}

/* Centered, compact Sales Enquiry dialog with a protected focus path. */
.starxbullion-sales-popup{inset:0;margin:auto;width:440px;max-width:calc(100% - 24px);height:fit-content;max-height:calc(100dvh - 24px);padding:20px 24px;border-radius:14px}
.starxbullion-sales-popup::backdrop{background:#0008}
.starxbullion-sales-modal-open{overflow:hidden}
.starxbullion-sales-emblem{width:30px;height:30px;margin-bottom:6px}
.starxbullion-sales-emblem img{width:18px;height:18px}
.starxbullion-sales-title{font-size:23px;margin:0 24px 4px}
.starxbullion-sales-copy{font-size:12px;max-width:42ch;line-height:1.5;margin-bottom:4px}
.starxbullion-sales-metals{height:48px;margin-bottom:8px}
.starxbullion-sales-metals img{width:76px;height:48px}
#starxbullionSalesForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.starxbullion-sales-field{margin:0;min-width:0}
.starxbullion-sales-field:nth-child(3),.starxbullion-sales-actions,.starxbullion-sales-status{grid-column:1/-1}
.starxbullion-sales-field label{font-size:12px;margin-bottom:5px}
.starxbullion-sales-field input{height:44px;padding:9px 10px}
.starxbullion-sales-close{width:36px;height:36px;font-size:24px;top:7px;right:7px}
.starxbullion-sales-actions{gap:8px}
.starxbullion-sales-submit{min-height:44px;padding:9px 12px;font-size:14px}
.starxbullion-sales-status{margin:0}
.starxbullion-sales-status:empty{display:none}

/* The homepage slider fills the available screen and advances automatically. */
.home-page{max-width:none;padding:0}
.home-slider{border-radius:0;border-inline:0;width:100%;box-shadow:none}
.home-slide{min-height:calc(100svh - var(--starxbullion-header-height,116px));max-width:1280px;margin:auto;padding:56px 64px 96px}
.home-slider-controls{left:max(24px,calc((100% - 1152px)/2));bottom:24px}
.home-slider-controls button{min-width:44px;min-height:44px;flex:none}
.home-slider-controls #homeAutoplay{width:auto;padding:0 12px;font-size:13px;border-radius:6px}
#homeSlideCount{white-space:nowrap;min-width:48px;text-align:center}
.home-section-nav{max-width:1150px;margin-inline:auto}
.home-page>.home-section{max-width:1150px;margin-inline:auto}
.home-page>.home-bullion,.home-page>.home-visit{width:calc(100% - 40px)}
.home-visit .home-actions{gap:12px}
.home-visit .home-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px}

/* Consistent heading actions and compact service content. */
.app-content.starxbullion-service-page>.page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;text-align:left;gap:16px}
.starxbullion-service-page .page-head .btn{min-height:44px;min-width:96px;margin:0;background:var(--bg-soft);color:var(--accent);border:1px solid var(--border-strong)}
.starxbullion-service-page #bankGrid{display:block;max-width:760px;margin-inline:auto}
.starxbullion-service-state{padding:24px;border:1px solid var(--border);border-radius:12px;background:var(--panel);font-size:15px;line-height:1.7;color:var(--muted)}
.starxbullion-service-page .bank-card{padding:24px;line-height:1.75;overflow-wrap:anywhere}
.starxbullion-service-page .bank-card p{margin:0 0 12px}
.starxbullion-service-page .bank-card p:last-child{margin-bottom:0}
.starxbullion-bank-help{max-width:760px;margin:20px auto 0;padding-top:20px;border-top:1px solid var(--border);font-size:14px;line-height:1.7;color:var(--muted)}
.starxbullion-bank-help a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent)}
.starxbullion-bank-help{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.starxbullion-bank-help>p{flex-basis:100%;margin:0}
.starxbullion-bank-help a{gap:8px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:6px;text-decoration:none}
.starxbullion-trend-heading{margin-bottom:16px}
.starxbullion-trend-panel[hidden]{display:none}
.starxbullion-gold-overview{max-width:760px;margin:0 auto 24px;padding:24px;border:1px solid var(--border-strong);border-radius:12px;background:var(--panel)}
.starxbullion-gold-overview h2{margin:0 0 8px;color:var(--accent);font-size:20px}
.starxbullion-gold-overview>p{margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.65}
.starxbullion-gold-quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}
.starxbullion-gold-quotes>div{min-width:0;padding:16px 0;border-bottom:1px solid var(--border)}
.starxbullion-gold-quotes dt{font-size:13px;color:var(--muted);margin-bottom:8px;font-weight:400}
.starxbullion-gold-quotes dd{font-size:24px;font-weight:700;margin:0;overflow-wrap:anywhere}
.starxbullion-gold-range{margin:24px 0 12px}
.starxbullion-gold-range label{display:block;margin-bottom:10px;color:var(--muted);font-size:14px;line-height:1.5}
.starxbullion-gold-range meter{display:block;width:100%;height:18px;accent-color:var(--accent)}
.starxbullion-gold-overview [role=status]{margin:12px 0 0;line-height:1.6}
.starxbullion-gold-overview>a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent)}
.starxbullion-gold-plot{width:100%;height:160px;margin-top:20px;color:var(--accent)}
.starxbullion-gold-plot line{stroke:var(--border);stroke-width:1}
.starxbullion-gold-plot path{stroke:currentColor;stroke-width:2;fill:none;vector-effect:non-scaling-stroke}
.starxbullion-gold-plot[hidden]{display:none}

/* Buy/Sell keeps its established red/green meanings in both appearances. */
.starxbullion-order-panel .btn-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.starxbullion-order-panel .btn-row .btn{min-height:48px;margin:0;color:#fff;border:1px solid transparent;font-size:15px}
.starxbullion-order-panel .btn.buy{background:#176a46;border-color:#176a46}
.starxbullion-order-panel .btn.sell{background:#a52d38;border-color:#a52d38}
.starxbullion-order-panel .btn.buy:hover{background:#115338}
.starxbullion-order-panel .btn.sell:hover{background:#84242e}
.starxbullion-order-panel .btn:disabled{opacity:1;background:var(--panel-solid);color:var(--muted);border-color:var(--border);cursor:not-allowed;transform:none}
.starxbullion-order-panel .btn.buy:disabled{border-color:#62947b}
.starxbullion-order-panel .btn.sell:disabled{border-color:#b1787f}
.starxbullion-tax-row-actions{justify-content:flex-start;padding:16px 0 0;margin:0}
.starxbullion-tax-row-actions .btn{min-height:44px}
.starxbullion-tax-tds-card .tax-actions{justify-content:flex-start}
.starxbullion-tax-tds-card #tdsError:empty{display:none}
.starxbullion-tax-total-grid{margin-top:20px}
html[data-theme] .starxbullion-tax-tds-table>thead>tr>th{background:#e7b445;color:#211a0b}

.starxbullion-blogs-page{max-width:1000px}
.starxbullion-blog-intro{max-width:65ch;margin:0 0 32px;color:var(--muted);font-size:16px;line-height:1.7}
.starxbullion-blog{padding:28px 0;border-top:1px solid var(--border);scroll-margin-top:calc(var(--starxbullion-header-height,116px) + 24px)}
.starxbullion-blog h2{margin:0 0 16px;color:var(--accent);font-size:24px;line-height:1.3}
.starxbullion-blog p{max-width:70ch;font-size:16px;line-height:1.8;color:var(--text)}
.starxbullion-blog a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent)}
@media(max-width:900px){.starxbullion-header .topbar-actions .pill-btn{display:none}.home-slide{padding-inline:32px}}
@media(max-width:760px){
  .home-section-nav{display:grid;position:relative;top:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px 12px;margin:0;overflow:visible}
  .home-section-nav a{min-height:44px;display:flex;align-items:center;justify-content:center;white-space:normal;text-align:center;font-size:12px;line-height:1.4;padding:8px 4px}
  .home-section-nav .starxbullion-link-icon{display:none}
  .home-section{scroll-margin-top:calc(var(--starxbullion-header-height,72px) + 24px)}
  .home-page>.home-section{padding:36px 20px}
  .home-page>.home-about{padding-inline:24px}
  .home-page>.home-bullion,.home-page>.home-visit{width:calc(100% - 24px)}
  .home-visit .home-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
  .home-visit address{font-size:15px;line-height:1.75;overflow-wrap:break-word}
  .home-visit .starxbullion-contact-pair{flex-wrap:nowrap;gap:8px}
  .contact-grid .contact-row{grid-template-columns:32px minmax(0,1fr);gap:12px}
  .contact-grid .contact-row .glyph{width:32px;height:32px;padding:6px}
  .contact-grid .starxbullion-registration-details,.contact-grid .business-location-note{margin-left:44px}
  .contact-grid .starxbullion-registration-details div{grid-template-columns:86px minmax(0,1fr);gap:6px}
  .contact-grid .business-location-note{font-size:12px}
  .app-content.starxbullion-service-page>.page-head{gap:12px}
  .starxbullion-service-page .page-head h1{font-size:23px}
  .starxbullion-service-page .page-head .btn{min-width:88px;padding:10px 14px}
  .starxbullion-gold-overview{padding:20px 16px}
  .starxbullion-gold-quotes{gap:0 16px}
  .starxbullion-gold-quotes dd{font-size:21px}
  .starxbullion-tax-row-actions .btn{width:100%;min-height:48px}
  .starxbullion-bank-help a{width:100%;justify-content:center}
}
@media(max-width:600px){
  .home-slide{grid-template-columns:minmax(0,1fr);min-height:calc(100svh - var(--starxbullion-header-height,72px));padding:32px 24px 92px;align-content:center}
  .home-slide h1,.home-slide h2{font-size:clamp(30px,8.6vw,40px);line-height:1.15}
  .home-metal-art{min-height:210px;width:72%;max-width:320px;margin:12px auto 0}
  .home-slide-hint{display:none}
  .home-slider-controls{left:24px;gap:12px;bottom:20px}
}
@media(max-width:480px){
  .starxbullion-sales-popup{padding:20px;width:calc(100% - 24px)}
  #starxbullionSalesForm{grid-template-columns:minmax(0,1fr);gap:12px}
  .starxbullion-sales-title{font-size:22px;margin-inline:24px}
  .starxbullion-sales-emblem{display:flex}
}
@media(max-width:360px){.contact-grid>.panel-pad{padding:18px 16px}.contact-grid .starxbullion-registration-details,.contact-grid .business-location-note{margin-left:0}.home-slider-controls{left:20px;gap:8px}.home-visit .starxbullion-contact-pair{font-size:13px}}
@media(max-height:600px){.starxbullion-sales-popup{padding:16px 20px}.starxbullion-sales-emblem{display:none}.starxbullion-sales-metals,.starxbullion-sales-metals img{height:36px}}
