/* Shadowtone user frontend — dark canvas, transparent cards, refined contrast.
   Presentation only. No functional selectors or JavaScript behavior are changed. */

:root{
  --bg:#121212;
  --st-bg:#121212;
  --surface:#181818;
  --surface-2:#242424;
  --border:#2d2d2d;
  --border-strong:#444444;
  --text:#e5e5e5;
  --text-muted:#a8a8a8;
  --text-faint:#888888;

  --accent:#ff9900;
  --accent-dark:#e68a00;
  --accent-muted:#d48806;
  --accent-bg:rgba(255,153,0,.10);

  --user-gold:#ff9900;
  --user-gold-bright:#ff9900;
  --layout-gold:#ff9900;
  --layout-gold-soft:rgba(255,153,0,.10);
  --st-accent:#ff9900;
  --st-accent-soft:rgba(255,153,0,.14);

  --st-card-glass:rgba(8,8,8,.54);
  --st-card-glass-hover:rgba(8,8,8,.66);
}

html,
body,
.shadowtone-app-shell,
.shadowtone-app-frame{
  background:#121212 !important;
  background-image:none !important;
}

body{
  color:#e5e5e5 !important;
}

.text-muted,
.account-sub,
.action-sub,
.software-meta,
.software-description,
.plan-description,
.premium-note,
footer.site,
footer.site a,
footer .copy{
  color:#a8a8a8 !important;
}

header.site{
  background:rgba(8,8,8,.28) !important;
  background-color:rgba(8,8,8,.28) !important;
  background-image:none !important;
  border-bottom-color:rgba(255,153,0,.16) !important;
  -webkit-backdrop-filter:blur(8px) !important;
  backdrop-filter:blur(8px) !important;
}

footer.site{
  border-top-color:#222222 !important;
}

hr{
  border:0 !important;
  border-top:1px solid #2d2d2d !important;
}

nav.links a,
footer.site nav a{
  color:rgba(255,255,255,.72) !important;
}

nav.links a:hover,
nav.links a:focus-visible,
nav.links a.active,
footer.site nav a:hover,
footer.site nav a:focus-visible{
  color:#f0f0f0 !important;
}

/* User-facing cards and panels remain readable while revealing the page background. */
.card,
.genre-tile,
.vertical-collection-card,
.action-card,
.dashboard-card,
.track-card,
.plan-card,
.locked-panel,
.request-builder,
.request-cart,
.request-item,
.request-row,
.account-header,
.plan-banner,
.auth-card,
.info-card,
.notification-card,
.software-card,
.profile-card,
.subscription-card,
.playlist-card,
.playlist-state,
.playlist-arrange-bar,
.summary-box,
.price-box{
  background:var(--st-card-glass) !important;
  background-color:var(--st-card-glass) !important;
  background-image:none !important;
  box-shadow:0 10px 30px rgba(0,0,0,.18) !important;
  -webkit-backdrop-filter:blur(4px) !important;
  backdrop-filter:blur(4px) !important;
}

/* Remove decorative washes from card surfaces. */
.genre-tile::before,
.vertical-collection-card::before,
.track-card::before,
.dashboard-card::before,
.plan-card::before,
.software-card::before,
.notification-card::before,
.action-card::before,
.account-header::before{
  background:none !important;
  background-image:none !important;
}

/* Subtle amber outlines distinguish transparent cards from the page. */
.card,
.genre-tile,
.vertical-collection-card,
.action-card,
.dashboard-card,
.track-card,
.plan-card,
.locked-panel,
.request-builder,
.request-cart,
.request-item,
.request-row,
.account-header,
.plan-banner,
.auth-card,
.info-card,
.notification-card,
.software-card,
.profile-card,
.subscription-card,
.playlist-card,
.playlist-state,
.playlist-arrange-bar,
.summary-box,
.price-box{
  border-color:rgba(255,153,0,.20) !important;
}

.genre-tile:hover,
.vertical-collection-card:hover,
.track-card:hover,
.action-card:hover,
.dashboard-card:hover,
.software-card:hover{
  background:var(--st-card-glass-hover) !important;
  background-color:var(--st-card-glass-hover) !important;
  background-image:none !important;
  border-color:rgba(255,153,0,.38) !important;
}

/* Browse and Dashboard cards use the same transparent surface. */
html body:has(#localCount) .genre-grid .genre-tile,
html body:has(#localCount) .genre-grid .genre-tile:hover,
html body:has(#localCount) .genre-grid .genre-tile:focus-visible,
html body main.wrap .account-header,
html body main.wrap .dashboard-grid .card.dashboard-card,
html body main.wrap .dashboard-grid .card.dashboard-card:hover,
html body main.wrap #recentRequests .card,
html body main.wrap #recentRequests .card:hover{
  background:var(--st-card-glass) !important;
  background-color:var(--st-card-glass) !important;
  background-image:none !important;
  box-shadow:0 10px 30px rgba(0,0,0,.18) !important;
  -webkit-backdrop-filter:blur(4px) !important;
  backdrop-filter:blur(4px) !important;
}

/* Uploaded image cards keep their artwork rather than a flat fill. */
.genre-grid .genre-tile.has-catalog-artwork,
.action-grid .action-card.has-home-artwork{
  background:transparent !important;
  background-color:transparent !important;
}

/* Form controls: clearer field boundaries and placeholder visibility. */
input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea{
  background:#1e1e1e !important;
  background-image:none !important;
  border-color:#444444 !important;
  color:#e5e5e5 !important;
}

input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"])::placeholder,
textarea::placeholder{
  color:#a0a0a0 !important;
  opacity:1 !important;
}

input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
select:focus,
textarea:focus{
  border-color:#ff9900 !important;
  box-shadow:0 0 0 3px rgba(255,153,0,.12) !important;
  outline:none !important;
}

/* Brand indicators remain solid; amber action buttons stay truly clear until pointer hover. */
.waveform span,
.shadowtone-live-dot{
  background:#ff9900 !important;
}

.btn-primary,
.software-action:not(.download),
.shadowtone-player-primary{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border-color:rgba(255,153,0,.34) !important;
  color:#ffad28 !important;
  box-shadow:none !important;
  filter:none !important;
  text-shadow:none !important;
}

.btn-primary:hover:not(:disabled),
.software-action:not(.download):hover:not(:disabled),
.shadowtone-player-primary:hover:not(:disabled){
  background:rgba(255,153,0,.075) !important;
  background-color:rgba(255,153,0,.075) !important;
  background-image:none !important;
  border-color:rgba(255,153,0,.46) !important;
  color:#ffb43b !important;
  box-shadow:none !important;
  filter:none !important;
  text-shadow:none !important;
}

.btn-primary:focus-visible:not(:disabled),
.software-action:not(.download):focus-visible:not(:disabled),
.shadowtone-player-primary:focus-visible:not(:disabled){
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  border-color:rgba(255,153,0,.58) !important;
  color:#ffad28 !important;
  box-shadow:none !important;
  outline:2px solid rgba(255,153,0,.34) !important;
  outline-offset:2px !important;
}

.type-btn.active,
.version-btn.active,
.filter-row .btn-sm.active,
.track-arrange-btn.active{
  border-color:#ff9900 !important;
  color:#ff9900 !important;
  background:rgba(255,153,0,.10) !important;
}

/* Single / Extended filters must never inherit the old green neon shadow. */
.version-btn,
.version-btn:hover,
.version-btn:focus,
.version-btn:focus-visible,
.version-btn.active{
  box-shadow:none !important;
}

/* Secondary accent elements use a muted amber so CTAs remain dominant. */
.hero-tag,
.section-heading i,
.action-icon,
.genre-tile > i,
.software-eyebrow,
.software-version,
.software-resend,
.shadowtone-now-playing-label,
.shadowtone-repeat-badge,
.shadowtone-deck-mark i,
.shadowtone-video-label{
  color:#d48806 !important;
}

/* Prices and totals stay legible without competing with primary CTAs. */
#currentPrice,
#totalPrice,
#premiumPrice,
.plan-price strong,
.software-price strong,
.request-price,
.playlist-price,
.checkout-total,
.payment-amount{
  color:#f0f0f0 !important;
}

/* Neutral separators throughout content. */
.software-price-row,
.plan-features,
.plan-features li,
.track-list,
.track-row,
.summary-row.total-row{
  border-color:#2d2d2d !important;
}

/* Player uses the same #121212 background as the current site canvas, with its existing clear controls. */
.shadowtone-global-player{
  background:#121212 !important;
  background-color:#121212 !important;
  background-image:none !important;
  border-top-color:#222222 !important;
  box-shadow:none !important;
}

.shadowtone-global-player::before{
  display:none !important;
  background:none !important;
}

.shadowtone-global-player input[type="range"]{
  accent-color:#d48806 !important;
}

.shadowtone-deck-mark{
  border-color:rgba(212,136,6,.38) !important;
}

.shadowtone-deck-ring{
  border-color:rgba(212,136,6,.24) !important;
}

.shadowtone-player-primary{
  border:1px solid rgba(255,153,0,.34) !important;
  color:#ffad28 !important;
  box-shadow:none !important;
}

.shadowtone-player-primary:focus-visible:not(:disabled){
  color:#ffad28 !important;
}

.shadowtone-download-button{
  color:#ffffff !important;
  border-color:#ff9900 !important;
  background:#121212 !important;
}

.shadowtone-download-button:hover:not(:disabled){
  color:#ffffff !important;
  border-color:#ff9900 !important;
  background:#282828 !important;
}

.shadowtone-download-button:active:not(:disabled){
  color:#ffffff !important;
  background:#1e1e1e !important;
  transform:translateY(0) !important;
}

/* Floating video player uses the same refined hierarchy. */
.shadowtone-video-window{
  border-color:#2d2d2d !important;
}

.shadowtone-video-label{
  color:#d48806 !important;
}

.shadowtone-video-close:hover{
  border-color:rgba(255,153,0,.45) !important;
  background:#282828 !important;
}

.shadowtone-video-close:focus-visible{
  outline-color:#ff9900 !important;
}

/* Subscription page: let the selected page background show clearly through both plans. */
html body main.subscription-page .subscription-plans .plan-card,
html body main.subscription-page .subscription-plans .plan-card.premium{
  background:rgba(8,8,8,.24) !important;
  background-color:rgba(8,8,8,.24) !important;
  background-image:none !important;
  -webkit-backdrop-filter:blur(2px) !important;
  backdrop-filter:blur(2px) !important;
}
