/* Deay Bypass — macOS theme */
:root {
  --font: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Anuphan', 'Segoe UI', system-ui, sans-serif;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .15);
  --mac-hair: rgba(255, 255, 255, .12);
  --mac-glass: rgba(34, 34, 38, .58);
  --mac-card: rgba(255, 255, 255, .045);
  --mac-blur: saturate(180%) blur(30px);
  --mac-shadow: 0 0 0 .5px rgba(0, 0, 0, .7), 0 24px 70px rgba(0, 0, 0, .5), inset 0 .5px 0 rgba(255, 255, 255, .14);
  --mac-seg: rgba(118, 118, 128, .24);
  --mac-sel: linear-gradient(180deg, #6e6e74, #5a5a60);
  scrollbar-color: rgba(255, 255, 255, .26) transparent;
}
body { background: #06060a; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 50% at 10% 6%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%),
    radial-gradient(50% 45% at 92% 16%, rgba(10, 132, 255, .3), transparent 70%),
    radial-gradient(65% 55% at 72% 100%, rgba(191, 90, 242, .24), transparent 70%),
    radial-gradient(45% 45% at 0% 96%, rgba(48, 209, 88, .1), transparent 70%),
    linear-gradient(160deg, #0e0e1c, #07070c 60%, #0b0814);
}
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- Menu bar ---------- */
.nav { padding: 0; }
.nav-inner, .nav.scrolled .nav-inner, .nav.open .nav-inner {
  max-width: none; min-height: 46px; padding: 0 14px; gap: 16px; border: 0; border-radius: 0;
  border-bottom: .5px solid var(--mac-hair); box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  background: rgba(22, 22, 26, .5); -webkit-backdrop-filter: var(--mac-blur); backdrop-filter: var(--mac-blur);
}
.nav.scrolled .nav-inner { background: rgba(22, 22, 26, .72); }
.brand { gap: 8px; font-size: 14px; }
.brand svg, .brand .logo-img { height: 22px; }
.nav-links { gap: 1px; }
.nav-links a { padding: 4px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.nav-pill { border-radius: 6px; background: rgba(255, 255, 255, .14); }
.nav-links a.active { background: rgba(255, 255, 255, .1); }
.nav-links a.active::after { display: none; }
.lang { width: auto; height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; font-size: 12px; }
.lang:hover { background: rgba(255, 255, 255, .14); }
.btn-signin, .account-btn {
  padding: 4px 12px; border-radius: 7px; font-size: 13px; color: #fff;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .2), 0 0 0 .5px rgba(0, 0, 0, .3);
}
.btn-signin:hover, .account-btn:hover, .account.open .account-btn { background: rgba(255, 255, 255, .22); }
.btn-signin svg { width: 16px; height: 16px; }
.account-btn { padding: 3px 10px 3px 3px; }
.account-avatar { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.mac-clock { font-size: 13px; font-weight: 500; white-space: nowrap; color: rgba(255, 255, 255, .88); font-variant-numeric: tabular-nums; }
.menu-toggle { width: 32px; height: 30px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .1); }
.account-menu, .lang-menu {
  top: calc(100% + 8px); padding: 5px; border-radius: 12px; border: .5px solid var(--mac-hair);
  background: rgba(40, 40, 44, .72); -webkit-backdrop-filter: var(--mac-blur); backdrop-filter: var(--mac-blur); box-shadow: var(--mac-shadow);
}
.lang-menu button, .am-logout { border-radius: 6px; }
.lang-menu button:hover, .am-logout:hover { background: var(--accent); color: #fff; }

/* ---------- Windows ---------- */
.cat-panel, .dl-card, .buy-card, .plan, .stats-grid, .showcase, .billing, .chat-panel {
  border: .5px solid var(--mac-hair); border-radius: 14px; box-shadow: var(--mac-shadow);
  background: var(--mac-glass); -webkit-backdrop-filter: var(--mac-blur); backdrop-filter: var(--mac-blur);
}
.plan-popular { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, transparent), var(--mac-glass) 55%); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.why-card, .faq-item, .review, .cat-card, .prod, .dl-steps li, .tu-store, .pd-price, .hist-table-wrap, .dl-file, .pd-media, .tu-address {
  border: .5px solid var(--mac-hair); border-radius: 12px; background: var(--mac-card);
}
.why-card, .cat-card, .prod { border-radius: 14px; }
.cat-panel { animation: macOpen .5s cubic-bezier(.2, .8, .2, 1) both; }

.mac-window { position: relative; padding-top: 64px; }
.dl-card.mac-window { padding-top: 70px; }
.buy-card.mac-window { padding-top: 38px; }
.showcase.mac-window { padding: 44px 10px 10px; }
.showcase-screen { border-radius: 8px; }
.showcase::after { background: linear-gradient(180deg, transparent, #07070c 92%); }
.mac-bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px;
  border-top-left-radius: inherit; border-top-right-radius: inherit;
  border-bottom: .5px solid var(--mac-hair); background: rgba(255, 255, 255, .035);
}
.mac-title { flex: 1; margin-right: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.mac-dots { display: flex; gap: 8px; flex: none; }
.mac-dots i { position: relative; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.mac-dots i:nth-child(2) { background: #febc2e; }
.mac-dots i:nth-child(3) { background: #28c840; }
.mac-dots i::after { content: ""; font: 700 9px/1 system-ui, sans-serif; color: rgba(0, 0, 0, .55); }
.mac-dots:hover i:nth-child(1)::after { content: "×"; font-size: 11px; }
.mac-dots:hover i:nth-child(2)::after { content: "−"; }
.mac-dots:hover i:nth-child(3)::after { content: "+"; }
.mac-dots.live i { cursor: pointer; }

/* ---------- Controls ---------- */
.btn { border-radius: 8px; }
.btn-primary, .btn-primary:disabled, .btn-primary:disabled:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent));
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .35), inset 0 .5px 0 rgba(255, 255, 255, .4);
}
.btn-primary:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), color-mix(in srgb, var(--accent) 92%, #fff)); }
.btn-primary:active, .btn-ghost:active { filter: brightness(.88); }
.btn-ghost { background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3), inset 0 .5px 0 rgba(255, 255, 255, .14); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.tu-input, .chat-form textarea, .key-field, .hist-search, .faq-search, .qty, .buy-next textarea {
  border: .5px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(255, 255, 255, .06);
}
.tu-input:focus, .chat-form textarea:focus, .key-field:focus-within, .hist-search:focus-within, .faq-search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 80%, #fff); box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 50%, transparent);
}
.billing { border-radius: 12px; }
.billing-toggle, .tu-tabs { padding: 2px; border: 0; border-radius: 9px; background: var(--mac-seg); }
.billing-toggle button, .tu-tabs button { border-radius: 7px; }
.billing-glider, .tab-glider {
  border-radius: 7px; background: var(--mac-sel);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45), inset 0 .5px 0 rgba(255, 255, 255, .25);
}
.billing-glider { top: 2px; bottom: 2px; }
.tu-tabs.has-glider button.on svg { color: #fff; }
.mt-track { width: 38px; height: 22px; border: 0; background: rgba(120, 120, 128, .32); }
.mt-thumb { top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.motion-toggle[aria-checked="true"] .mt-track { background: #30d158; }
.section-icon, .cat-head > span:has(> svg):not([hidden]) {
  display: grid; place-items: center; border: 0; border-radius: 12px; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 60%, #fff), var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, #000));
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 .5px 0 rgba(255, 255, 255, .45);
}
.section-icon::after { display: none; }
.cat-head > span:has(> svg):not([hidden]) { width: 40px; height: 40px; border-radius: 10px; }
.cat-head svg { width: 22px; height: 22px; color: #fff; filter: none; }

/* ---------- Footer, notifications, preloader ---------- */
.footer { background: rgba(18, 18, 22, .55); -webkit-backdrop-filter: var(--mac-blur); backdrop-filter: var(--mac-blur); border-top: .5px solid var(--mac-hair); }
.toast {
  left: auto; right: 14px; top: 58px; bottom: auto; width: 340px; padding: 10px 34px 10px 10px; border-radius: 16px;
  border: .5px solid var(--mac-hair); background: rgba(44, 44, 48, .7); box-shadow: var(--mac-shadow);
  -webkit-backdrop-filter: var(--mac-blur); backdrop-filter: var(--mac-blur);
  transform: translateX(calc(100% + 30px)); transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { transform: none; }
.toast-thumb { border-radius: 10px; }
.fx-notice { top: 58px; border: .5px solid var(--mac-hair); background: rgba(44, 44, 48, .78); -webkit-backdrop-filter: var(--mac-blur); backdrop-filter: var(--mac-blur); box-shadow: var(--mac-shadow); }
.preloader { background: #000; }
.pl-logo { width: 64px; height: 64px; filter: none; animation: none; }
.pl-bar { width: 190px; height: 5px; margin-top: 46px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.pl-bar i { border-radius: 3px; background: #fff; }
.scroll-progress { top: 46px; height: 2px; background: var(--accent); box-shadow: none; }

/* ---------- Chat = Messages ---------- */
.chat-head { background: rgba(255, 255, 255, .04); }
.chat-head .mac-dots { margin-right: 2px; }
.cm-admin p, .cm-typing p { border: 0; background: #3a3a3c; color: #fff; }
.cm-user p { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent)); box-shadow: none; }
.chat.max .chat-panel { width: 440px; height: min(720px, calc(100vh - 120px)); }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 10px; z-index: 90; display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px;
  transform: translateX(-50%); border-radius: 20px; border: .5px solid var(--mac-hair);
  background: rgba(40, 40, 46, .42); -webkit-backdrop-filter: var(--mac-blur); backdrop-filter: var(--mac-blur);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45), inset 0 .5px 0 rgba(255, 255, 255, .15);
  animation: dockIn .6s .4s cubic-bezier(.2, .8, .2, 1) both;
}
.dock-item { --s: 1; position: relative; flex: none; width: calc(48px * var(--s)); height: calc(48px * var(--s)); transition: width .2s, height .2s; }
.dock.near .dock-item { transition: width .07s linear, height .07s linear; }
.dock-item[hidden] { display: none; }
.dock-icon {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 23%; color: #fff;
  background: linear-gradient(165deg, var(--g1), var(--g2));
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .4), inset 0 -2px 6px rgba(0, 0, 0, .18), 0 4px 10px rgba(0, 0, 0, .35);
}
.dock-icon svg { width: 52%; height: 52%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.dock-item::before {
  content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  padding: 3px 10px; border-radius: 6px; border: .5px solid var(--mac-hair); background: rgba(40, 40, 44, .85);
  font-size: 12.5px; white-space: nowrap; color: #fff; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.dock-item:hover::before, .dock-item:focus-visible::before { opacity: 1; }
.dock-item:focus-visible { outline: none; }
.dock-item:focus-visible .dock-icon { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.dock-item.active::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.dock-item.bounce .dock-icon { animation: dockBounce .5s ease 2; }
.dock-sep { align-self: stretch; width: 1px; margin: 6px 3px; background: rgba(255, 255, 255, .2); }
.has-dock .footer { padding-bottom: 130px; }
.has-dock .dl-footer { padding-bottom: 100px; }

@keyframes macOpen { from { opacity: 0; transform: scale(.965) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dockIn { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes dockBounce { 0%, 100% { transform: none; } 40% { transform: translateY(-20px); } }

@media (max-width: 1100px) { .mac-clock { display: none; } }
@media (max-width: 900px) {
  .nav-links { top: calc(100% + 6px); left: 8px; right: 8px; border-radius: 12px; border: .5px solid var(--mac-hair); background: rgba(40, 40, 44, .82); -webkit-backdrop-filter: var(--mac-blur); backdrop-filter: var(--mac-blur); }
  .nav-links a { border-radius: 7px; }
  .dock { display: none; }
  .has-dock .footer { padding-bottom: 48px; }
  .has-dock .dl-footer { padding-bottom: 26px; }
}
@media (max-width: 760px) { .mac-window { padding-top: 56px; } }
@media (max-width: 600px) {
  .toast { left: 8px; right: 8px; top: 54px; width: auto; transform: translateY(-160%); }
  .chat.max .chat-panel { width: auto; }
  .has-dock .footer { padding-bottom: 36px; }
}
@media (min-width: 601px) { .chat-head .chat-x { display: none; } }
