/* OVSM ShopWeb premium UI layer — 2026-08-13
   Loaded after the dynamic theme so it can refine every customer-facing page
   without changing PHP application logic. */

:root {
  --ui-bg: #070510;
  --ui-surface: rgba(20, 15, 39, .78);
  --ui-surface-strong: #171129;
  --ui-border: rgba(255, 255, 255, .095);
  --ui-border-hover: rgba(168, 85, 247, .42);
  --ui-text: #f8f7ff;
  --ui-muted: #aaa2c3;
  --ui-purple: #8b5cf6;
  --ui-pink: #ec4899;
  --ui-cyan: #22d3ee;
  --ui-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --ui-radius: 22px;
}

html { scroll-behavior: smooth; color-scheme: dark; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 560px at -5% -10%, rgba(124, 58, 237, .15), transparent 62%),
    radial-gradient(760px 500px at 105% 8%, rgba(236, 72, 153, .12), transparent 62%),
    var(--ui-bg);
  color: var(--ui-text);
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
::selection { background: rgba(168, 85, 247, .45); color: #fff; }
:focus-visible { outline: 3px solid rgba(34, 211, 238, .5); outline-offset: 3px; }

/* Navigation */
.shop-navbar {
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(7, 5, 16, .76);
  border-color: rgba(255,255,255,.07);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
}
.shop-navbar .brand { display:flex; align-items:center; gap:8px; font-size:1.18rem; letter-spacing:.02em; }
.shop-navbar .brand i {
  display:grid; place-items:center; width:32px; height:32px; margin:0;
  border-radius:10px; color:#fff;
  background:linear-gradient(135deg,var(--ui-purple),var(--ui-pink));
  box-shadow:0 8px 24px rgba(139,92,246,.28);
}
.shop-navbar button.js-open-side-menu { width:44px; height:44px; background:rgba(255,255,255,.055)!important; }
.shop-navbar button.js-open-auth-modal { min-height:42px; padding-inline:18px!important; box-shadow:0 10px 28px rgba(139,92,246,.22); }

/* Hero */
.home-hero {
  position:relative;
  overflow:hidden;
  background:transparent;
  padding:clamp(68px, 8vw, 116px) 24px clamp(62px, 7vw, 96px);
}
.home-hero::before,.home-hero::after { content:""; position:absolute; border-radius:50%; filter:blur(4px); pointer-events:none; }
.home-hero::before { width:520px; height:520px; left:-260px; top:-220px; background:radial-gradient(circle,rgba(139,92,246,.22),transparent 68%); }
.home-hero::after { width:620px; height:620px; right:-300px; top:-240px; background:radial-gradient(circle,rgba(236,72,153,.18),transparent 68%); }
.home-hero-inner { max-width:1180px; gap:clamp(42px,6vw,84px); position:relative; z-index:1; }
.home-hero-badge { padding:9px 14px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04); box-shadow:inset 0 1px rgba(255,255,255,.04); }
.home-hero-badge .dot { box-shadow:0 0 0 5px rgba(52,211,153,.1),0 0 18px rgba(52,211,153,.6); }
.home-hero-title { font-size:clamp(3rem,5.2vw,5rem); letter-spacing:-.045em; line-height:1.02; margin-top:18px; }
.home-hero-title .line2 { padding-bottom:.1em; background:linear-gradient(105deg,#9b72ff 0%,#d15ee7 48%,#ff5b9e 100%); -webkit-background-clip:text; background-clip:text; }
.home-hero-desc { max-width:590px; font-size:clamp(1rem,1.4vw,1.1rem); color:var(--ui-muted); }
.btn-shop-primary,.home-hero-cta .btn-outline-hero {
  min-height:50px; padding:0 22px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:600;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,filter .2s ease;
}
.btn-shop-primary { box-shadow:0 14px 32px rgba(139,92,246,.25),inset 0 1px rgba(255,255,255,.2); }
.btn-shop-primary:hover,.home-hero-cta .btn-outline-hero:hover { transform:translateY(-3px); }
.home-hero-cta .btn-outline-hero { background:rgba(255,255,255,.035); border-color:rgba(255,255,255,.12); }
.home-hero-stats { gap:0; padding:18px 0; border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
.home-hero-stats .stat { min-width:110px; padding:0 20px; border-right:1px solid rgba(255,255,255,.08); }
.home-hero-stats .stat:first-child { padding-left:0; }
.home-hero-stats .stat:last-child { border-right:0; }
.home-hero-stats .stat b { font-size:1.35rem; }
.home-hero-visual { perspective:1200px; filter:drop-shadow(0 35px 70px rgba(0,0,0,.32)); }
.hero-laptop { transform:rotateY(-5deg) rotateX(2deg); border-color:rgba(255,255,255,.12); background:linear-gradient(145deg,rgba(33,24,62,.95),rgba(14,10,30,.95)); box-shadow:inset 0 1px rgba(255,255,255,.08),0 32px 80px rgba(0,0,0,.35); }
.hero-phone { border-color:rgba(255,255,255,.14); box-shadow:0 26px 58px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.08); }

/* Layout and cards */
.shop-container { max-width:1180px; padding:clamp(40px,6vw,76px) 20px; }
.section-title { margin:clamp(48px,6vw,78px) 0 22px; }
.section-title h2 { font-size:clamp(1.55rem,2.7vw,2.15rem); letter-spacing:-.025em; }
.section-title h2::after { content:""; display:block; width:48px; height:4px; margin-top:10px; border-radius:99px; background:linear-gradient(90deg,var(--ui-purple),var(--ui-pink)); }
.shop-card,.feature-card,.website-card,.product-card,.stats-hero-card,.stats-grid .stat-box,.price-summary-box {
  background:linear-gradient(145deg,rgba(28,21,50,.82),rgba(16,12,31,.88));
  border:1px solid var(--ui-border);
  box-shadow:0 14px 44px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.035);
  backdrop-filter:blur(14px);
}
.shop-card,.stats-hero-card { border-radius:var(--ui-radius); }
.feature-card,.website-card,.product-card,.stats-grid .stat-box { border-radius:18px; }
.feature-card,.website-card,.product-card,.stats-grid .stat-box { transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.feature-card:hover,.website-card:hover,.product-card:hover,.stats-grid .stat-box:hover { transform:translateY(-6px); border-color:var(--ui-border-hover); box-shadow:0 24px 58px rgba(0,0,0,.32),0 0 0 1px rgba(139,92,246,.08); }
.product-grid,.feature-grid { gap:22px; }
.product-card { overflow:hidden; }
.product-card .thumb { aspect-ratio:16/10; background:linear-gradient(145deg,#20183a,#110d21); }
.product-card .thumb img { transition:transform .45s ease,filter .45s ease; }
.product-card:hover .thumb img { transform:scale(1.04); filter:saturate(1.08); }
.product-card .body { padding:20px; gap:10px; }
.product-card .name { font-size:1.08rem; }
.product-card .price { font-size:1.45rem; }
.product-card .buy-btn { margin-top:auto; min-height:44px; border-radius:12px; }
.product-card .stock-pill { width:max-content; padding:6px 10px; border-radius:99px; background:rgba(52,211,153,.08); }
.stats-hero-card { position:relative; overflow:hidden; padding:34px; }
.stats-hero-card::before { content:""; position:absolute; width:220px; height:220px; left:50%; top:-165px; transform:translateX(-50%); border-radius:50%; background:var(--ui-purple); filter:blur(70px); opacity:.24; }
.stats-grid { gap:14px; }
.stats-grid .stat-box { padding:20px 14px; }
.stats-grid .stat-box .num { font-size:1.85rem; }

/* Forms and feedback */
.form-shop input,.form-shop select,.form-shop textarea,.auth-modal input,.topup-modal input {
  min-height:48px; border-radius:12px; background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.1); color:#fff; transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.form-shop input:focus,.form-shop select:focus,.form-shop textarea:focus,.auth-modal input:focus,.topup-modal input:focus { border-color:rgba(139,92,246,.75); box-shadow:0 0 0 4px rgba(139,92,246,.12); background:rgba(255,255,255,.06); outline:0; }
.alert-success,.alert-error { border-radius:14px; }

/* Menus and dialogs */
.side-menu { width:min(360px,92vw); background:rgba(13,9,27,.94); backdrop-filter:blur(22px); border-color:rgba(255,255,255,.1); box-shadow:-28px 0 80px rgba(0,0,0,.4); }
.side-menu-header { min-height:76px; }
.side-menu-nav { padding:16px; gap:7px; }
.side-menu-nav a,.side-menu-nav button.side-menu-settings-btn { min-height:48px; border-radius:13px; background:transparent; }
.side-menu-nav a:hover,.side-menu-nav button.side-menu-settings-btn:hover { background:rgba(255,255,255,.055); transform:translateX(-2px); }
.side-menu-nav .side-menu-cta { background:linear-gradient(135deg,var(--ui-purple),var(--ui-pink)); }
.auth-modal-box,.topup-modal-box,.announcement-box,.settings-popup { background:linear-gradient(145deg,rgba(29,21,52,.98),rgba(12,9,25,.98)); border:1px solid rgba(255,255,255,.11); box-shadow:var(--ui-shadow); border-radius:22px; }
.auth-modal-backdrop,.topup-modal-backdrop,.announcement-overlay,.side-menu-backdrop { backdrop-filter:blur(8px); }
.auth-tab,.topup-tab,.locale-btn { min-height:42px; }
.topup-modal { padding:clamp(12px,3vw,24px); }
.topup-modal-box { padding:clamp(20px,4vw,30px); max-height:calc(100dvh - 32px); overflow-y:auto; scrollbar-width:thin; }
.topup-modal-header { position:sticky; top:-30px; z-index:2; padding:4px 0 14px; background:linear-gradient(180deg,#1c1533 78%,transparent); }
.topup-modal-header h3 { font-size:1.35rem; }
.topup-modal-header button { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; padding:0; border-radius:12px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.1); }
.topup-tabs { padding:4px; border-radius:14px; background:rgba(255,255,255,.045); }
.topup-tab { border-radius:11px; border:0; background:transparent; color:var(--ui-muted); font-weight:500; }
.topup-tab.active { box-shadow:0 8px 22px rgba(139,92,246,.22); }
.topup-panel label { margin-top:4px; margin-bottom:8px; }
.topup-panel .btn-shop-primary { margin-top:12px!important; }
.bg-music-toggle { border:1px solid rgba(255,255,255,.1); backdrop-filter:blur(14px); }

/* Utility surfaces used across account pages */
.breadcrumb-bar { max-width:1180px; margin-inline:auto; padding-inline:20px; }
.news-ticker { border-bottom:1px solid rgba(255,255,255,.08); background:linear-gradient(90deg,rgba(139,92,246,.14),rgba(236,72,153,.1)); }
table { border-collapse:separate; border-spacing:0; width:100%; }
th { color:#cfc8e2; font-weight:500; background:rgba(255,255,255,.035); }
th,td { padding:13px 14px; border-bottom:1px solid rgba(255,255,255,.07); }

@media (max-width: 900px) {
  .home-hero { padding-top:54px; }
  .home-hero-inner { text-align:center; }
  .home-hero-copy { display:flex; flex-direction:column; align-items:center; }
  .home-hero-visual { max-width:520px; width:100%; }
  .home-hero-stats { justify-content:center; width:100%; }
  .home-hero-desc { margin-inline:auto; }
}
@media (max-width: 620px) {
  .shop-navbar { min-height:64px; padding:10px 14px; }
  .shop-navbar button.js-open-auth-modal { width:42px; padding:0!important; font-size:0; }
  .shop-navbar button.js-open-auth-modal i { margin:0!important; font-size:1rem; }
  .home-hero { padding:48px 18px 58px; }
  .home-hero-title { font-size:clamp(2.6rem,14vw,3.55rem); }
  .home-hero-cta { display:grid; width:100%; grid-template-columns:1fr; }
  .home-hero-cta a { width:100%; }
  .home-hero-stats { display:grid; grid-template-columns:repeat(2,1fr); padding:0; border:1px solid rgba(255,255,255,.08); border-radius:16px; overflow:hidden; }
  .home-hero-stats .stat { min-width:0; padding:15px 10px!important; border-right:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
  .home-hero-stats .stat:nth-child(2n) { border-right:0; }
  .home-hero-stats .stat:nth-last-child(-n+2) { border-bottom:0; }
  .hero-phone { right:-6px; transform:scale(.83); transform-origin:bottom right; }
  .shop-container { padding:40px 14px; }
  .section-title { margin-top:48px; }
  .product-grid,.feature-grid { grid-template-columns:1fr; gap:16px; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .stats-grid .stat-box:last-child { grid-column:1/-1; }
  .shop-card,.stats-hero-card { padding:20px; }
  .coupon-widget-row { flex-direction:column; }
  body:has(.topup-modal.open) { overflow:hidden; }
  .topup-modal { align-items:flex-end; padding:0; }
  .topup-modal-box { width:100%; max-width:none; max-height:90dvh; margin:0; padding:22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; border-bottom:0; }
  .topup-modal-header { top:-22px; margin-inline:-2px; }
  .topup-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; }
  .topup-tab { padding:11px 8px; font-size:.9rem; }
  .topup-submode { flex-direction:column; }
  .bg-music-toggle:has(~ .topup-modal.open), body:has(.topup-modal.open) .bg-music-toggle { opacity:0; pointer-events:none; transform:scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
