﻿:root {
  --bg: #060a16;
  --panel: #0b1123;
  --panel-soft: #101832;
  --panel-card: #111a34;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f7ff;
  --muted: #8e9ab7;
  --purple: #8b35ff;
  --purple-strong: #6417de;
  --pink: #ff40d6;
  --cyan: #19d8ff;
  --green: #22e58f;
  --orange: #ff991f;
  --red: #ff3156;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
  scrollbar-color: rgba(255, 255, 255, 0.24) rgba(5, 8, 18, 0.58);
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
*::-webkit-scrollbar-track {
  background: rgba(5, 8, 18, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(13, 18, 34, 0.86);
  border: 2px solid rgba(5, 8, 18, 0.72);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    0 0 14px rgba(0, 0, 0, 0.34);
}
*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1)),
    rgba(22, 29, 50, 0.96);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 42% 8%, rgba(103, 29, 221, 0.2), transparent 36%),
    radial-gradient(circle at 86% 42%, rgba(18, 157, 255, 0.1), transparent 32%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 16px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 84% 8%, rgba(139, 53, 255, 0.22), transparent 30%),
    radial-gradient(circle at 12% 26%, rgba(25, 216, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #090d1d 0%, #0d1428 54%, #09101f 100%);
  border-right: 1px solid var(--line);
}
.sidebar::before {
  content: "✦   ✦      ✧";
  display: block;
  height: 0;
  color: rgba(181, 103, 255, 0.82);
  font-size: 15px;
  letter-spacing: 18px;
  pointer-events: none;
}

.logo {
  position: relative;
  display: grid;
  margin: 0 0 26px 6px;
  color: #fff;
  line-height: 0.92;
  isolation: isolate;
}
.logo span {
  font-size: 34px;
  font-weight: 950;
  font-style: italic;
  color: #f2efff;
  text-shadow:
    0 4px 0 rgba(109, 66, 190, 0.42),
    0 0 22px rgba(181, 66, 255, 0.48);
}
.logo strong {
  margin-top: 4px;
  color: #ffca4a;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 0 rgba(111, 63, 0, 0.32), 0 0 18px rgba(255, 203, 69, 0.28);
}
.logo b {
  color: #b85cff;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 0 rgba(47, 20, 111, 0.4), 0 0 18px rgba(181, 66, 255, 0.36);
}
.logo::after {
  content: "🚀";
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 34px;
  filter: drop-shadow(0 12px 14px rgba(139, 53, 255, 0.42));
  transform: rotate(14deg);
}
.logo.image-logo {
  display: block;
  margin: 0 0 26px;
  line-height: 1;
}
.logo.image-logo img {
  display: block;
  width: 100%;
  max-width: 218px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26), 0 0 26px rgba(139, 53, 255, 0.16);
}
.logo.image-logo::after {
  content: none;
}

.side-section { display: grid; gap: 10px; margin-bottom: 24px; }
.side-section h2 {
  margin: 0 0 5px 4px;
  color: #ff4fd8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(139, 53, 255, 0.26);
}
#youtube-services h2 { color: #ff4444; }
#tiktok-services h2 { color: #15e1ff; }
.side-link {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding: 6px 12px 6px 9px;
  color: #eef2ff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    linear-gradient(145deg, rgba(28, 39, 70, 0.96), rgba(13, 20, 39, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-bottom-color: rgba(0, 0, 0, 0.38);
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 18px rgba(0, 0, 0, 0.16),
    0 12px 24px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  isolation: isolate;
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}
.side-link::before {
  content: "";
  position: absolute;
  right: 9px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}
.side-link:hover {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    linear-gradient(145deg, rgba(35, 48, 84, 0.98), rgba(16, 24, 48, 0.98));
  border-color: rgba(139, 53, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -12px 18px rgba(0, 0, 0, 0.14),
    0 16px 30px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(139, 53, 255, 0.18);
  transform: translateX(4px);
}
.side-link:active {
  transform: translateX(2px) scale(0.99);
}
.side-icon {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  transform: perspective(120px) rotateX(10deg) rotateY(-10deg);
  box-shadow:
    0 13px 18px rgba(0,0,0,.36),
    0 0 18px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.48),
    inset 0 -10px 14px rgba(0,0,0,.2);
  transition:
    transform .18s ease,
    box-shadow .18s ease;
}
.side-icon::before,
.side-icon::after {
  content: "";
  position: absolute;
}
.side-link:hover .side-icon {
  transform: perspective(120px) rotateX(12deg) rotateY(-12deg) translateY(-1px);
  box-shadow:
    0 15px 22px rgba(0,0,0,.38),
    0 0 20px rgba(139,53,255,.18),
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -10px 14px rgba(0,0,0,.2);
}
.side-icon.image-icon {
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.side-icon.image-icon::before,
.side-icon.image-icon::after {
  display: none;
}
.side-icon.image-icon img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.34));
}
.side-link:hover .side-icon.image-icon {
  box-shadow: none;
}
.side-link:hover .side-icon.image-icon img {
  filter:
    drop-shadow(0 14px 16px rgba(0,0,0,.38))
    drop-shadow(0 0 12px rgba(139,53,255,.2));
}
.icon-youtube-play,
.icon-youtube-users,
.icon-youtube-comment {
  background: linear-gradient(145deg, #ff7b82 0%, #f73549 52%, #ad1027 100%);
}
.icon-youtube-play::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.2));
}
.icon-youtube-users::before,
.icon-youtube-users::after {
  background: #fff;
  box-shadow: 0 2px 3px rgba(0,0,0,.18);
}
.icon-youtube-users::before {
  width: 9px;
  height: 9px;
  top: 10px;
  left: 10px;
  border-radius: 50%;
  box-shadow: 13px 0 0 #fff, 0 2px 3px rgba(0,0,0,.18);
}
.icon-youtube-users::after {
  width: 25px;
  height: 11px;
  left: 8px;
  bottom: 9px;
  border-radius: 8px 8px 5px 5px;
}
.icon-youtube-comment::before {
  width: 24px;
  height: 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 3px rgba(0,0,0,.18);
}
.icon-youtube-comment::after {
  width: 8px;
  height: 8px;
  left: 12px;
  bottom: 9px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.icon-youtube-like {
  background: linear-gradient(145deg, #ffe071 0%, #ff8a1d 52%, #b92f00 100%);
}
.icon-youtube-like::before {
  content: "🔥";
  font-size: 22px;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.22));
}
.icon-instagram,
.icon-instagram-view,
.icon-instagram-chat {
  background: linear-gradient(145deg, #ffd65c 0%, #ff456c 44%, #8b35ff 100%);
}
.icon-instagram::before,
.icon-instagram-view::before {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 3px rgba(0,0,0,.18);
}
.icon-instagram::after,
.icon-instagram-view::after {
  width: 8px;
  height: 8px;
  border: 3px solid #fff;
  border-radius: 50%;
}
.icon-instagram-heart {
  background: linear-gradient(145deg, #ffb6d9 0%, #ff4b8f 48%, #8b35ff 100%);
}
.icon-instagram-heart::before {
  content: "♥";
  color: #fff;
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.18));
}
.icon-instagram-chat,
.icon-tiktok-chat {
  background: linear-gradient(145deg, #bfa1ff 0%, #7b3dff 52%, #3a1a86 100%);
}
.icon-instagram-chat::before,
.icon-tiktok-chat::before {
  width: 24px;
  height: 18px;
  background: #fff;
  border-radius: 10px;
}
.icon-instagram-chat::after,
.icon-tiktok-chat::after {
  width: 4px;
  height: 4px;
  background: #7b3dff;
  border-radius: 50%;
  box-shadow: 7px 0 0 #7b3dff, 14px 0 0 #7b3dff;
}
.icon-tiktok {
  background: linear-gradient(145deg, #37edff 0%, #11162b 48%, #ff39ce 100%);
}
.icon-tiktok::before {
  content: "♪";
  color: #fff;
  font-size: 27px;
  font-weight: 950;
  text-shadow: -2px 0 #23e6ff, 2px 1px #ff39ce;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.22));
}
.status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(139,53,255,.72), rgba(54,20,116,.72));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
}
.status-card strong, .status-card small { display: block; }
.status-card small { color: #aef4db; font-size: 11px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }

.dashboard { padding: 24px 22px 48px; overflow: hidden; }
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.search-box {
  display: flex;
  min-width: 280px;
  max-width: 360px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #0b1123;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.search-box input { width: 100%; color: #fff; background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: #7f8aaa; }
kbd { padding: 3px 7px; color: #cdd6f7; background: #1b2342; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.right-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin: 0 0 18px;
}
.right-actions .profile-pill {
  flex: 1;
  min-width: 0;
}
.right-actions .profile-menu-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.right-actions .profile-menu-wrap .profile-pill {
  width: 100%;
}
.right-actions .balance-pill {
  flex: 0 0 118px;
  min-width: 118px;
}
.profile-pill {
  border: 0;
  cursor: pointer;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(10, 16, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}
.balance-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 118px;
  padding: 8px 9px 8px 11px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(145deg, #3b2608 0%, #1c1420 48%, #0b1726 100%);
  border: 1px solid rgba(255, 203, 69, 0.34);
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 22px rgba(0, 0, 0, 0.2),
    0 0 22px rgba(255, 184, 77, 0.12);
}
.balance-pill small, .balance-pill strong { display: block; }
.balance-pill small { color: #ffdf8b; font-size: 11px; }
.balance-pill strong { color: #ffd35c; text-shadow: 0 0 16px rgba(255, 184, 77, 0.26); }
.balance-coin {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #3b2200;
  background:
    radial-gradient(circle at 34% 22%, rgba(255,255,255,.58), transparent 28%),
    linear-gradient(145deg, #ffe68a 0%, #ffc83d 50%, #c98200 100%);
  border: 1px solid rgba(255, 239, 170, 0.5);
  border-radius: 999px;
  box-shadow:
    0 10px 16px rgba(255, 184, 77, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -6px 10px rgba(111, 63, 0, 0.2);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}
.profile-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 8px 9px;
  font-weight: 850;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 26px rgba(0, 0, 0, 0.2);
}
.profile-pill:hover {
  border-color: rgba(139, 53, 255, 0.42);
}
.profile-copy strong,
.profile-copy small {
  display: block;
}
.profile-copy strong {
  color: #ffffff;
  font-size: 13px;
}
.profile-copy small {
  margin-top: 2px;
  color: #9aa7c5;
  font-size: 11px;
}
.avatar {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.42), transparent 28%),
    linear-gradient(145deg, #23d3be 0%, #4b7cff 44%, #8b35ff 100%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  box-shadow:
    0 14px 22px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(139, 53, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -10px 16px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 950;
}
.avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 3px solid #101832;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(34, 229, 143, 0.72);
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(270px, .9fr);
  min-height: 282px;
  overflow: hidden;
  padding: 42px 50px;
  background:
    radial-gradient(circle at 70% 62%, rgba(139,53,255,.52), transparent 19%),
    radial-gradient(circle at 83% 18%, rgba(255, 203, 69, 0.08), transparent 20%),
    linear-gradient(135deg, #141d3d 0%, #0c1329 58%, #101a3a 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255,255,255,.07);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 203, 69, .9) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(182, 96, 255, .75) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.12) 0 3px, transparent 4px);
  background-position: 78% 20%, 86% 36%, 48% 36%;
  background-size: 118px 98px, 154px 118px, 96px 86px;
  opacity: .8;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 0 0 16px; font-size: clamp(36px, 4.8vw, 52px); line-height: 1.03; letter-spacing: 0; }
.hero-copy h1 span {
  position: relative;
  display: inline-block;
  color: #9250ff;
  text-shadow: 0 0 30px rgba(177,76,255,.38);
}
.hero-copy h1 span::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -6px;
  bottom: -7px;
  height: 4px;
  background: linear-gradient(90deg, #9250ff, rgba(146, 80, 255, 0));
  border-radius: 999px;
}
.hero-copy p { max-width: 520px; margin: 0 0 28px; color: #a8b1ca; font-size: 16px; }
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.primary { color: #fff; background: linear-gradient(180deg, #963cff, #6719e7); box-shadow: 0 12px 24px rgba(103,25,231,.3), inset 0 1px 0 rgba(255,255,255,.28); }
.ghost { color: #d9e1ff; background: #141c36; border: 1px solid var(--line); }
.full { width: 100%; }
.hero-art { position: relative; min-height: 200px; }
.hero-art::before {
  content: "";
  position: absolute;
  left: 23%;
  bottom: 8px;
  width: 190px;
  height: 84px;
  background:
    radial-gradient(circle at 18% 58%, rgba(132, 137, 164, .58), transparent 30%),
    radial-gradient(circle at 42% 48%, rgba(132, 137, 164, .68), transparent 34%),
    radial-gradient(circle at 68% 58%, rgba(132, 137, 164, .48), transparent 34%);
  filter: blur(1px);
  opacity: .72;
}
.rocket { position: absolute; top: 6px; left: 37%; z-index: 4; font-size: 118px; filter: drop-shadow(0 26px 30px rgba(139,53,255,.46)); transform: rotate(14deg); }
.social-cube {
  position: absolute;
  display: grid;
  width: 86px;
  height: 76px;
  place-items: center;
  color: #fff;
  border-radius: 20px;
  font-size: 42px;
  font-weight: 950;
  box-shadow: 0 24px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.4);
  transform: rotate(-10deg);
}
.social-cube span,
.social-cube span::before,
.social-cube span::after {
  content: "";
  position: absolute;
}
.youtube-cube span {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.22));
}
.tiktok-cube span::before {
  content: "♪";
  color: #fff;
  font-size: 44px;
  font-weight: 950;
  text-shadow: -3px 0 #23e6ff, 3px 2px #ff39ce;
}
.instagram-cube span {
  width: 42px;
  height: 42px;
  border: 5px solid #fff;
  border-radius: 15px;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.2));
}
.instagram-cube span::before {
  width: 13px;
  height: 13px;
  inset: 9px auto auto 9px;
  border: 5px solid #fff;
  border-radius: 50%;
}
.instagram-cube span::after {
  width: 7px;
  height: 7px;
  right: 8px;
  top: 7px;
  background: #fff;
  border-radius: 50%;
}
.youtube-cube { left: 3%; top: 60px; background: linear-gradient(145deg, #ff6970, #bd0b25); }
.tiktok-cube { right: 8%; top: 34px; background: linear-gradient(145deg, #1dd9ff, #151b30 48%, #ff35c6); transform: rotate(11deg); }
.instagram-cube { right: 23%; bottom: 8px; background: linear-gradient(145deg, #ffd344, #ff4469 45%, #8d35ff); transform: rotate(12deg); }
.orb { position: absolute; display: block; border-radius: 50%; background: linear-gradient(145deg, #ac4cff, #30205e); box-shadow: 0 0 24px rgba(172,76,255,.45); }
.orb-one { width: 14px; height: 14px; left: 42%; top: 14px; }
.orb-two { width: 22px; height: 22px; right: 4%; top: 86px; }
.orb-three { width: 36px; height: 36px; left: 11%; bottom: 26px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.08), transparent 24%),
    linear-gradient(180deg, rgba(21,31,64,.98), rgba(13,20,42,.98));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.07);
}
.stat-card > span { position: relative; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 13px; font-size: 23px; box-shadow: 0 14px 20px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.28); }
.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
}
.stat-users::before {
  width: 10px;
  height: 10px;
  top: 14px;
  left: 13px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 14px 0 0 rgba(255,255,255,.9);
}
.stat-users::after {
  width: 30px;
  height: 13px;
  left: 10px;
  bottom: 12px;
  background: #fff;
  border-radius: 10px 10px 6px 6px;
}
.stat-bag::before {
  width: 24px;
  height: 22px;
  left: 13px;
  bottom: 11px;
  background: #fff;
  border-radius: 5px;
}
.stat-bag::after {
  width: 14px;
  height: 10px;
  left: 18px;
  top: 11px;
  border: 3px solid #fff;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}
.stat-check::before {
  width: 24px;
  height: 13px;
  border-left: 6px solid #fff;
  border-bottom: 6px solid #fff;
  transform: rotate(-45deg);
}
.stat-clock::before {
  width: 27px;
  height: 27px;
  border: 4px solid #fff;
  border-radius: 50%;
}
.stat-clock::after {
  width: 12px;
  height: 12px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: translate(3px, -2px);
}
.stat-card small, .stat-card strong, .stat-card em { display: block; }
.stat-card small { color: #92a0c1; font-size: 11px; }
.stat-card strong { font-size: 23px; }
.stat-card em { color: var(--green); font-size: 11px; font-style: normal; }
.purple > span { background: #7026ff; } .blue > span { background: #1787ff; } .green > span { background: #14b878; } .orange > span { background: #f47a18; }

.ad-panel, .account-card, .announcements, .promo-card {
  background: linear-gradient(180deg, rgba(15,23,48,.96), rgba(10,16,34,.96));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.ad-panel { padding: 20px; margin-top: 18px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-title h2 { margin: 0; font-size: 19px; }
.panel-title p { margin: 0; color: #93a0bd; font-size: 13px; }
.panel-title a { padding: 8px 11px; color: #dce4ff; background: #161f3b; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-weight: 850; }

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 4px;
  color: #9aa7c5;
}

.site-footer strong {
  display: block;
  color: #f6f7ff;
  font-size: 16px;
}

.site-footer p {
  max-width: 560px;
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer a {
  color: #b8c7ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ad-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.ad-hero-slot, .ad-side-slots article {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 32%, rgba(139, 53, 255, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(13, 20, 41, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.24);
}
.ad-hero-slot {
  min-height: 250px;
  padding: 32px;
}
.ad-hero-slot::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -58px;
  top: -80px;
  background: radial-gradient(circle, rgba(139, 53, 255, 0.72), transparent 66%);
}
.ad-hero-slot::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: 36%;
  bottom: -96px;
  background: radial-gradient(circle, rgba(25, 216, 255, 0.26), transparent 68%);
}
.ad-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: #dfe7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}
.ad-hero-slot h3 {
  position: relative;
  max-width: 560px;
  margin: 0 0 10px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
}
.ad-hero-slot p {
  position: relative;
  max-width: 520px;
  margin: 0 0 22px;
  color: #9aa7c5;
}
.ad-hero-slot .button { position: relative; }
.ad-megaphone {
  position: absolute;
  right: 54px;
  top: 50%;
  width: 180px;
  height: 150px;
  transform: translateY(-50%) rotate(-8deg);
}
.horn {
  position: absolute;
  right: 28px;
  top: 38px;
  width: 104px;
  height: 70px;
  filter: drop-shadow(0 22px 24px rgba(0,0,0,.36));
}
.horn::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 72px;
  height: 58px;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.55), transparent 20%),
    linear-gradient(145deg, #ffffff 0%, #d8c4ff 34%, #8b35ff 100%);
  border: 1px solid rgba(255,255,255,.38);
  clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 75%);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -10px 14px rgba(35,12,90,.22);
}
.horn::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 24px;
  width: 38px;
  height: 28px;
  background: linear-gradient(145deg, #7c3bff, #452091);
  border-radius: 8px;
  transform: rotate(-14deg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.horn i {
  position: absolute;
  left: 27px;
  bottom: 0;
  width: 22px;
  height: 44px;
  background: linear-gradient(145deg, #f0e8ff, #7c3bff);
  border-radius: 8px;
  transform: rotate(22deg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36);
}
.spark {
  position: absolute;
  color: #ffb84d;
  text-shadow: 0 0 18px rgba(255, 184, 77, .5);
}
.spark-a { right: 8px; top: 10px; font-size: 30px; }
.spark-b { left: 18px; bottom: 8px; font-size: 22px; color: #9250ff; }
.ad-side-slots { display: grid; gap: 14px; }
.ad-side-slots article {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 8px;
  padding: 18px;
}
.ad-side-slots span {
  color: #8e9ab7;
  font-size: 12px;
  font-weight: 850;
}
.ad-side-slots strong {
  color: #ffffff;
  font-size: 18px;
}

.empty-state { padding: 28px; color: #8693b2; text-align: center; border: 1px dashed rgba(255,255,255,.12); border-radius: 8px; }

.rightbar { padding: 24px 16px 24px 0; }
.account-card, .announcements, .promo-card { padding: 20px; margin-bottom: 18px; }
.account-card h2, .announcements h2, .promo-card h2 { margin: 0 0 16px; font-size: 18px; }
.wallet-visual { width: 86px; height: 70px; margin: 8px auto 8px; font-size: 54px; text-align: center; filter: drop-shadow(0 16px 22px rgba(139,53,255,.36)); }
.account-card { text-align: center; }
.account-card small { color: #9aa7c5; }
.account-card > strong { display: block; margin: 6px 0 18px; color: var(--green); font-size: 30px; }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.announcements h2 { display: flex; align-items: center; justify-content: space-between; }
.announcements h2 span { color: #ffc83d; filter: drop-shadow(0 0 10px rgba(255, 203, 69, .5)); }
.announcements { display: grid; gap: 12px; }
.announcements > div { display: grid; gap: 12px; }
.announcements article { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), #0d142a; border: 1px solid rgba(255,255,255,.055); border-radius: 10px; }
.announcements article > span { color: #8b35ff; }
.announcements strong, .announcements small { display: block; }
.announcements strong { font-size: 12px; }
.announcements small, .announcements time { color: #7f8aaa; font-size: 10px; }
.announcements > a { padding: 11px 12px; background: #101934; border-radius: 8px; color: #dce4ff; font-size: 12px; font-weight: 850; }
.promo-card {
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 203, 69, 0.3), transparent 30%),
    radial-gradient(circle at 85% 16%, rgba(139, 53, 255, 0.26), transparent 26%),
    linear-gradient(145deg, #2d2109, #141032 68%);
}
.earn-card {
  position: relative;
}
.earn-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -82px auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 203, 69, 0.24), transparent 70%);
}
.earn-visual {
  position: relative;
  display: grid;
  width: 108px;
  height: 86px;
  margin: 0 auto 12px;
  place-items: center;
}
.play-coin,
.coin-stack {
  position: absolute;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow:
    0 16px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.play-coin {
  width: 72px;
  height: 54px;
  left: 4px;
  top: 14px;
  background: linear-gradient(145deg, #ff445f, #b90929);
  border-radius: 16px;
  font-size: 26px;
  transform: rotate(-8deg);
}
.coin-stack {
  width: 48px;
  height: 48px;
  right: 4px;
  bottom: 5px;
  color: #3b2200;
  background:
    radial-gradient(circle at 34% 22%, rgba(255,255,255,.58), transparent 28%),
    linear-gradient(145deg, #ffe68a 0%, #ffc83d 52%, #c98200 100%);
  border: 1px solid rgba(255, 239, 170, 0.5);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 950;
  transform: rotate(10deg);
}
.promo-card p { color: #e1d5b4; font-size: 12px; }
.earn-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0;
  padding: 10px 12px;
  background: rgba(255, 203, 69, 0.1);
  border: 1px solid rgba(255, 203, 69, 0.18);
  border-radius: 10px;
}
.earn-reward span {
  color: #d8c898;
  font-size: 12px;
  font-weight: 850;
}
.earn-reward strong {
  color: #ffd35c;
  text-shadow: 0 0 14px rgba(255, 184, 77, 0.24);
}

.toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; max-width: min(360px, calc(100vw - 36px)); padding: 14px 16px; color: #fff; background: #141c36; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }

.support-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
}
.support-toggle {
  position: relative;
  display: flex;
  width: 154px;
  height: 62px;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(159, 72, 255, 0.98), rgba(83, 24, 184, 0.98) 54%, rgba(13, 12, 31, 0.98));
  border: 1px solid rgba(220, 190, 255, 0.38);
  border-radius: 16px;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(139, 53, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -12px 20px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  isolation: isolate;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}
.support-toggle::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(139, 53, 255, 0.42), rgba(255, 64, 214, 0.2), transparent 72%);
  border-radius: 22px;
  animation: supportPulse 2.2s ease-in-out infinite;
}
.support-toggle::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 10px;
  height: 10px;
  background: #22e58f;
  border: 2px solid rgba(9, 14, 31, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(34, 229, 143, 0.9);
}
.support-toggle:hover {
  border-color: rgba(236, 220, 255, 0.62);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.46),
    0 0 38px rgba(139, 53, 255, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -12px 20px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}
.support-toggle span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.42), transparent 30%),
    linear-gradient(145deg, #ffffff, #d8c4ff 46%, #8b35ff);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  box-shadow:
    0 12px 18px rgba(54, 17, 126, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -8px 12px rgba(61, 21, 140, 0.24);
  font-size: 19px;
  transform: perspective(120px) rotateX(10deg) rotateY(-10deg);
}
.support-toggle strong {
  max-width: 74px;
  font-size: 13px;
  line-height: 1.05;
  text-align: left;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.18);
}
.support-panel {
  position: absolute;
  right: 0;
  bottom: 88px;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(9, 14, 31, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition:
    opacity .18s ease,
    transform .18s ease;
}
.support-widget.open .support-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.support-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.support-head strong,
.support-head span {
  display: block;
}
.support-head strong {
  font-size: 16px;
}
.support-head span {
  color: #93a0bd;
  font-size: 12px;
}
.support-head button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #dfe7ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  cursor: pointer;
  font-size: 22px;
}
.support-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  max-height: 330px;
  padding: 16px;
  overflow-y: auto;
}
.support-message {
  max-width: 86%;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13px;
}
.support-message.agent {
  justify-self: start;
  color: #dfe7ff;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.support-message.user {
  justify-self: end;
  color: #fff;
  background: linear-gradient(145deg, #8f3cff, #5f18d8);
  box-shadow: 0 10px 20px rgba(95, 24, 216, 0.26);
}
.support-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.support-form input {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  outline: 0;
}
.support-form input:focus {
  border-color: rgba(139, 53, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(139, 53, 255, 0.14);
}
.support-form button {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(180deg, #963cff, #6719e7);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

@keyframes supportPulse {
  0%, 100% {
    opacity: 0.48;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

@media (max-width: 1240px) {
  .app-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .rightbar { position: static; grid-column: 1 / -1; height: auto; padding: 0 22px 30px 252px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .account-card, .announcements, .promo-card { margin: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; }
  .topbar, .top-actions { flex-wrap: wrap; }
  .top-actions { margin-left: 0; }
  .top-actions.right-actions { flex-wrap: nowrap; }
  .hero-card { grid-template-columns: 1fr; }
  .ad-megaphone { position: relative; right: auto; top: auto; margin: 12px auto 0; transform: rotate(-8deg); }
  .rightbar { padding: 0 22px 30px; grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .dashboard { padding: 18px 14px 36px; }
  .hero-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .search-box { min-width: 100%; }
  .social-cube { width: 66px; height: 58px; font-size: 30px; }
  .rocket { font-size: 76px; }
  .ad-hero-slot { padding: 24px; }
  .ad-megaphone { width: 140px; height: 108px; }
  .horn { font-size: 72px; }
  .account-actions { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .support-widget { right: 14px; bottom: 14px; }
  .support-toggle { width: 138px; height: 58px; }
}

.hidden { display: none !important; }

.auth-locked .modal {
  position: fixed;
  display: grid;
  background:
    radial-gradient(circle at 28% 12%, rgba(139, 53, 255, 0.28), transparent 34%),
    radial-gradient(circle at 82% 48%, rgba(25, 216, 255, 0.14), transparent 34%),
    var(--bg);
}

.auth-locked .modal-card {
  width: min(480px, 100%);
}

.profile-menu-wrap {
  position: relative;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  display: grid;
  width: min(310px, calc(100vw - 32px));
  gap: 12px;
  padding: 14px;
  background:
    radial-gradient(circle at 84% 10%, rgba(139, 53, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15,23,48,.98), rgba(10,16,34,.98));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.account-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.account-head strong,
.account-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-head small {
  color: #9aa7c5;
  font-size: 12px;
}

.account-lines {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}

.account-lines span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-lines b {
  color: #9aa7c5;
  font-size: 12px;
}

.account-lines em {
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.account-menu-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(22, 31, 59, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.account-menu-link:hover {
  border-color: rgba(139, 53, 255, 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.58;
}

.button.danger {
  color: #fff;
  background: linear-gradient(180deg, #ff3156, #b90c2f);
  box-shadow: 0 14px 24px rgba(185, 12, 47, 0.22);
}

.small-action {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
}

.intro-panel {
  margin-top: 18px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flow-grid article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(25, 216, 255, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    #0d142a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.flow-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #06101f;
  background: linear-gradient(145deg, #ffe68a, #22e58f);
  border-radius: 10px;
  font-weight: 950;
}

.flow-grid strong {
  font-size: 17px;
}

.flow-grid p {
  margin: 0;
  color: #9aa7c5;
  font-size: 13px;
}

.task-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.task-form label,
.auth-form label {
  display: grid;
  gap: 7px;
  color: #aab5d0;
  font-size: 12px;
  font-weight: 850;
}

.task-form input,
.task-form select,
.auth-form input {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  outline: 0;
}

.task-form input:focus,
.task-form select:focus,
.auth-form input:focus {
  border-color: rgba(139, 53, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(139, 53, 255, 0.15);
}

.task-form .button {
  align-self: end;
}

.task-list {
  display: grid;
  gap: 12px;
}

.icon-button-text span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: rgba(255,255,255,.14);
  border-radius: 7px;
  font-size: 18px;
  line-height: 1;
}

.youtube-video-form {
  grid-template-columns: minmax(260px, 1fr) 150px 130px auto;
}

.youtube-cost-box {
  display: grid;
  align-content: center;
  min-height: 42px;
  padding: 9px 12px;
  background: rgba(255, 203, 69, 0.1);
  border: 1px solid rgba(255, 203, 69, 0.18);
  border-radius: 10px;
}

.youtube-cost-box small,
.youtube-cost-box strong {
  display: block;
}

.youtube-cost-box small {
  color: #d8c898;
  font-size: 11px;
}

.youtube-cost-box strong {
  color: #ffd35c;
  font-size: 14px;
}

.youtube-watch-shell {
  display: grid;
  gap: 20px;
  align-content: start;
  min-height: 100vh;
  padding: 16px clamp(18px, 3vw, 60px) 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.045), transparent 34%),
    #080c16;
}

.youtube-watch-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 8px 0 12px;
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.youtube-watch-logo {
  width: clamp(170px, 14vw, 230px);
  margin: 0;
}

.youtube-watch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.youtube-add-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: #ff123f;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(255, 18, 63, 0.24);
  cursor: pointer;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  transition: transform .16s ease, box-shadow .16s ease;
}

.youtube-add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(255, 0, 51, 0.38);
}

.youtube-watch-hero {
  display: flex;
  min-height: auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 4px;
  background: none;
  border: 0;
  border-radius: 0;
}

.youtube-watch-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.youtube-watch-hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: #93a0bd;
  font-size: 14px;
}

.youtube-hero-action {
  min-width: 132px;
}

.youtube-watch-content {
  display: grid;
  gap: 18px;
}

.youtube-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}

.youtube-section-head h2 {
  margin: 0;
  font-size: 20px;
}

.youtube-section-head > span {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #06101f;
  background: linear-gradient(135deg, #ffd35c, #24e2ff);
  border-radius: 999px;
  font-weight: 950;
}

.youtube-home-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  align-items: start;
}

.youtube-home-grid .empty-state {
  grid-column: 1 / -1;
  min-height: 360px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  border: 1px dashed rgba(255,255,255,.11);
  border-radius: 14px;
}

.youtube-video-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 18, 63, 0.18), transparent 34%),
    #101625;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
}

.youtube-video-modal-card .youtube-watch-form {
  display: grid;
  gap: 14px;
}

.youtube-watch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.youtube-watch-head h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.youtube-balance-box,
.youtube-watch-summary {
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 203, 69, 0.2), transparent 34%),
    rgba(255,255,255,.055);
  border: 1px solid rgba(255, 203, 69, 0.18);
  border-radius: 12px;
}

.youtube-balance-box {
  display: grid;
  gap: 3px;
  padding: 14px;
}

.youtube-balance-box small,
.youtube-watch-summary small {
  color: #b8c4df;
  font-size: 11px;
  font-weight: 850;
}

.youtube-balance-box strong,
.youtube-watch-summary strong {
  color: #ffd45e;
  font-size: 24px;
  line-height: 1.1;
}

.youtube-watch-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.youtube-watch-summary > div {
  display: grid;
  gap: 5px;
  padding: 15px;
  background: rgba(9, 14, 29, 0.42);
}

.youtube-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.youtube-video-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
  padding: 10px;
  background: #101625;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}

.youtube-video-preview {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #05070d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  cursor: pointer;
}

.youtube-video-preview:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.youtube-video-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .22s ease, filter .22s ease;
}

.youtube-video-preview:hover img,
.youtube-video-preview:focus-visible img {
  filter: brightness(1.12) saturate(1.08);
  transform: scale(1.06);
}

.youtube-preview-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: rgba(255, 18, 63, .9);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0,0,0,.32);
  font-size: 17px;
  transform: translate(-50%, -50%);
  transition: transform .22s ease, background .22s ease;
}

.youtube-video-preview:hover .youtube-preview-play,
.youtube-video-preview:focus-visible .youtube-preview-play {
  background: #ff1e45;
  transform: translate(-50%, -50%) scale(1.08);
}

.youtube-channel-preview {
  display: grid;
  min-height: 156px;
  place-items: center;
  gap: 10px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 18, 63, .22), transparent 42%),
    #05070d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.youtube-channel-preview:hover,
.youtube-channel-preview:focus-visible {
  border-color: rgba(255, 49, 86, .38);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 18, 63, .32), transparent 46%),
    #071020;
  transform: translateY(-2px);
}

.youtube-channel-preview:disabled {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
}

.youtube-channel-preview img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.youtube-channel-preview span {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #dfe6ff;
  font-size: 14px;
  font-weight: 900;
}

.youtube-active-watch {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 80;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  gap: 0;
  padding: 18px;
  background: rgba(2, 6, 16, .78);
  backdrop-filter: blur(10px);
}

.youtube-active-watch.hidden {
  display: none;
}

.youtube-active-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-width: 0;
  width: min(920px, calc(100vw - 32px));
  background: #05070d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 28px 80px rgba(0,0,0,.48);
}

.youtube-active-player > div,
.youtube-active-player iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.youtube-active-side {
  display: grid;
  width: min(920px, calc(100vw - 32px));
  min-width: 0;
  align-content: start;
  gap: 12px;
  padding: 14px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 211, 92, 0.12), transparent 34%),
    #101625;
  border: 1px solid rgba(255,255,255,.08);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 28px 80px rgba(0,0,0,.48);
}

.youtube-subscribe-screen {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.youtube-subscribe-frame-wrap {
  position: relative;
  overflow: hidden;
  min-height: min(74vh, 760px);
  width: min(920px, calc(100vw - 32px));
  min-width: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 49, 86, .18), transparent 38%),
    #090d1d;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px 0 0 14px;
  box-shadow: 0 28px 80px rgba(0,0,0,.48);
}

.youtube-subscribe-frame-wrap iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.youtube-frame-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  color: #dfe6ff;
  text-align: center;
}

.youtube-frame-fallback img {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(255, 49, 86, .28));
}

.youtube-frame-fallback strong {
  font-size: 18px;
}

.youtube-frame-fallback span {
  max-width: 420px;
  color: #94a0bd;
}

.youtube-subscribe-screen .youtube-active-side {
  width: min(360px, calc(100vw - 32px));
  height: 100%;
  border-top: 1px solid rgba(255,255,255,.08);
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.youtube-subscribe-actions {
  grid-template-columns: 1fr;
}

.youtube-watch-status.error {
  color: #ffdbe2;
  background: rgba(255, 49, 86, .14);
  border-color: rgba(255, 49, 86, .28);
}

.youtube-active-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.youtube-player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: #05070d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.youtube-player-box > div,
.youtube-player-box iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: 0 !important;
}

.youtube-video-side {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
  padding: 10px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 211, 92, 0.12), transparent 38%),
    rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
}

.youtube-video-side .button,
.youtube-active-side .button {
  width: 100%;
}

.youtube-video-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}

.youtube-video-meta strong,
.youtube-video-meta small {
  display: block;
}

.youtube-video-meta small {
  color: #8f9bbc;
  font-size: 11px;
}

.youtube-video-meta > span {
  flex: 0 0 auto;
  padding: 6px 8px;
  color: #ffd35c;
  background: rgba(255, 211, 92, 0.09);
  border: 1px solid rgba(255, 211, 92, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.youtube-video-stats {
  display: grid;
  gap: 4px;
  padding: 9px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 10px;
}

.youtube-video-stats small {
  color: #8f9bbc;
  font-size: 11px;
  font-weight: 850;
}

.youtube-video-stats strong {
  font-size: 15px;
}

.youtube-watch-status {
  display: grid;
  min-height: 36px;
  place-items: center;
  padding: 8px 10px;
  color: #dfe6ff;
  background: rgba(139, 53, 255, 0.16);
  border: 1px solid rgba(139, 53, 255, 0.22);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.youtube-delete-button {
  min-height: 38px;
  color: #fff;
  background: rgba(255, 49, 86, 0.18);
  border: 1px solid rgba(255, 49, 86, 0.34);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

.youtube-delete-button:hover {
  background: rgba(255, 49, 86, 0.28);
}

.youtube-delete-confirm-card {
  text-align: left;
}

.youtube-delete-refund {
  margin: 14px 0;
  padding: 12px;
  color: #ffd35c;
  background: rgba(255, 211, 92, 0.09);
  border: 1px solid rgba(255, 211, 92, 0.18);
  border-radius: 10px;
  font-weight: 950;
}

.watch-progress {
  overflow: hidden;
  height: 5px;
  background: rgba(255,255,255,.07);
  border-radius: 999px;
}

.watch-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22e58f, #19d8ff);
  border-radius: inherit;
  transition: width .3s ease;
}

.task-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 92px auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    #0d1429;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.task-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
}

.task-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.task-card strong,
.task-card small,
.task-card a,
.task-reward span,
.task-reward strong {
  display: block;
}

.task-card small,
.task-card a {
  overflow: hidden;
  color: #8f9bbc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card a {
  color: #74e5ff;
}

.task-reward {
  padding: 10px;
  text-align: center;
  background: rgba(255, 203, 69, 0.1);
  border: 1px solid rgba(255, 203, 69, 0.16);
  border-radius: 10px;
}

.task-reward span {
  color: #dbc68d;
  font-size: 11px;
}

.task-reward strong {
  color: #ffd35c;
  font-size: 20px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shop-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding: 22px;
  background:
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.16), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.025)),
    #0d1429;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
}

.shop-card.cyan { box-shadow: inset 0 3px 0 #19d8ff; }
.shop-card.purple { box-shadow: inset 0 3px 0 #8b35ff; }
.shop-card.gold { box-shadow: inset 0 3px 0 #ffc83d; }

.popular-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 9px;
  color: #06101f;
  background: linear-gradient(145deg, #22e58f, #19d8ff);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.shop-coin {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #3b2200;
  background:
    radial-gradient(circle at 34% 22%, rgba(255,255,255,.58), transparent 28%),
    linear-gradient(145deg, #ffe68a 0%, #ffc83d 52%, #c98200 100%);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 950;
}

.shop-card h3 {
  margin: 0;
  font-size: 22px;
}

.shop-card > strong {
  color: #fff;
  font-size: 28px;
}

.shop-card p {
  margin: 0;
  color: #9aa7c5;
  font-size: 13px;
}

.shop-price {
  color: #ffd35c;
  font-size: 24px;
  font-weight: 950;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-tabs {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  width: max-content;
  margin-bottom: 18px;
  margin-left: auto;
  margin-right: auto;
  padding: 5px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.admin-tabs button {
  min-height: 38px;
  padding: 0 14px;
  color: #aab5d0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.admin-tabs button.active {
  color: #fff;
  background: linear-gradient(180deg, #963cff, #6719e7);
}

.admin-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-table th {
  color: #9aa7c5;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  color: #eef2ff;
  font-size: 13px;
}

.mini-user {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-right: 9px;
  overflow: hidden;
  vertical-align: middle;
  background: linear-gradient(145deg, #23d3be, #8b35ff);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 950;
}

.mini-user img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card {
  display: grid;
  gap: 12px;
}

.profile-preview {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  margin: 0 auto;
  color: #fff;
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,.42), transparent 28%),
    linear-gradient(145deg, #23d3be 0%, #4b7cff 44%, #8b35ff 100%);
  background-position: center;
  background-size: cover;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 18px;
  font-size: 24px;
  font-weight: 950;
}

.profile-preview.small {
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 14px;
  font-size: 17px;
}

.avatar-picker {
  position: relative;
  display: block;
  cursor: pointer;
}

.avatar-picker input {
  display: none;
}

.avatar-picker::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  background: var(--green);
  border: 3px solid #101832;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(34, 229, 143, 0.72);
}

.account-settings {
  display: grid;
  gap: 14px;
}

.account-photo-picker {
  position: relative;
  display: block;
  width: max-content;
  margin: 0 auto;
  cursor: pointer;
}

.account-photo-picker input {
  display: none;
}

.profile-preview.large {
  width: 112px;
  height: 112px;
  margin: 0;
  border-radius: 22px;
  font-size: 30px;
}

.account-photo-picker::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  background: var(--green);
  border: 4px solid #101832;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(34, 229, 143, 0.72);
}

.account-info-list {
  display: grid;
  gap: 8px;
  text-align: left;
}

.account-info-list span {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}

.account-info-list b {
  color: #9aa7c5;
  font-size: 11px;
}

.account-info-list em {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.file-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(180deg, #963cff, #6719e7);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.file-button input {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 6, 15, 0.72);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 20px;
  background:
    radial-gradient(circle at 84% 12%, rgba(139, 53, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(15,23,48,.98), rgba(10,16,34,.98));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  cursor: pointer;
  font-size: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 36px 0 16px;
  padding: 5px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.auth-tabs button {
  min-height: 38px;
  color: #aab5d0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.auth-tabs button.active {
  color: #fff;
  background: linear-gradient(180deg, #963cff, #6719e7);
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form h2 {
  margin: 0;
}

.auth-form h1 {
  margin: 0;
}

.auth-form p {
  margin: 0;
  color: #9aa7c5;
}

.auth-switch-link {
  display: block;
  padding: 11px 12px;
  color: #dce4ff;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.auth-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8492b2;
  font-size: 12px;
}

.auth-legal-links a {
  color: #b8c7ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-page-card {
  width: min(460px, 100%);
}

.checkout-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.page-shell {
  align-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.checkout-card {
  width: min(520px, 100%);
  padding: 28px;
  background:
    radial-gradient(circle at 80% 12%, rgba(255,203,69,.22), transparent 28%),
    linear-gradient(180deg, rgba(15,23,48,.98), rgba(10,16,34,.98));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.account-page-card,
.admin-page-card {
  position: relative;
  overflow: hidden;
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 72px));
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 203, 69, 0.18), transparent 26%),
    radial-gradient(circle at 14% 92%, rgba(25, 216, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(15,23,48,.98), rgba(10,16,34,.98));
}

.admin-page-card {
  width: min(1280px, 100%);
}

.shop-page-card {
  width: min(1240px, 100%);
  min-height: auto;
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 203, 69, 0.18), transparent 26%),
    radial-gradient(circle at 16% 84%, rgba(25, 216, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(15,23,48,.98), rgba(10,16,34,.98));
}

.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 28px;
}

.page-brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.page-logo-image {
  display: block;
  width: clamp(190px, 18vw, 260px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28), 0 0 34px rgba(139, 53, 255, 0.18);
}

.legal-shell {
  align-items: start;
}

.legal-card {
  width: min(920px, 100%);
}

.legal-logo {
  width: min(240px, 100%);
  margin-bottom: 22px;
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.legal-updated {
  margin: 8px 0 24px;
  color: #96a4c2;
}

.legal-card section {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0;
  font-size: 19px;
}

.legal-card p,
.legal-card li {
  color: #c7d1ea;
}

.legal-card p {
  margin: 0;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-card a {
  color: #aecdff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.legal-links a {
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.page-hero-row h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.page-hero-row p {
  max-width: 560px;
  margin: 0;
  color: #9fb0d7;
}

.account-page-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(420px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.account-profile-block,
.account-detail-block,
.admin-list-panel,
.admin-summary-grid article {
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(13, 20, 41, 0.74);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.account-profile-block {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  min-height: 460px;
  padding: 36px;
  text-align: center;
}

.account-profile-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 22%, rgba(25, 216, 255, 0.2), transparent 28%),
    radial-gradient(circle at 72% 70%, rgba(255, 64, 214, 0.16), transparent 28%);
  pointer-events: none;
}

.account-profile-block > * {
  position: relative;
}

.account-profile-block strong {
  display: block;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  text-shadow: 0 0 24px rgba(139, 53, 255, 0.26);
}

.account-detail-block {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 30px;
}

.account-page-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-page-card .account-info-list {
  gap: 12px;
}

.account-page-card .account-info-list span {
  min-height: 94px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 90% 18%, rgba(255,255,255,.08), transparent 24%),
    rgba(255,255,255,.045);
}

.account-page-card .account-info-list b {
  font-size: 12px;
}

.account-page-card .account-info-list em {
  font-size: clamp(18px, 2vw, 24px);
}

.account-page-card .profile-preview.large {
  width: clamp(158px, 17vw, 210px);
  height: clamp(158px, 17vw, 210px);
  border-radius: 34px;
  font-size: clamp(42px, 5vw, 64px);
  box-shadow:
    0 26px 44px rgba(0, 0, 0, 0.38),
    0 0 42px rgba(25, 216, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.account-page-card .account-photo-picker::after {
  width: 28px;
  height: 28px;
  right: 10px;
  bottom: 10px;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-summary-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.admin-summary-grid small {
  color: #9aa7c5;
  font-size: 12px;
  font-weight: 850;
}

.admin-summary-grid strong {
  font-size: 22px;
}

.admin-list-panel {
  padding: 18px;
}

.admin-announcement-form {
  display: grid;
  grid-template-columns: 80px minmax(180px, .8fr) minmax(260px, 1.2fr) auto;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.admin-announcement-form label {
  display: grid;
  gap: 7px;
  color: #aab5d0;
  font-size: 12px;
  font-weight: 850;
}

.admin-announcement-form input {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  outline: 0;
}

.admin-announcement-form input:focus {
  border-color: rgba(139, 53, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(139, 53, 255, 0.15);
}

.admin-announcement-form .button {
  align-self: end;
}

.admin-announcement-list {
  display: grid;
  gap: 10px;
}

.admin-announcement-list article {
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), #0d142a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
}

.admin-announcement-list article > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #8b35ff, #4b7cff);
  border-radius: 10px;
}

.admin-announcement-list strong,
.admin-announcement-list small {
  display: block;
}

.admin-announcement-list small,
.admin-announcement-list time {
  color: #9aa7c5;
  font-size: 12px;
}

.admin-search {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #aab5d0;
  font-size: 12px;
  font-weight: 850;
}

.admin-search input,
.admin-coin-input,
.admin-role-select,
.admin-support-form input {
  min-height: 40px;
  min-width: 0;
  padding: 9px 11px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  outline: 0;
}

.admin-coin-input { width: 110px; }
.admin-role-select { margin-left: 8px; }

.muted-action {
  color: #8f9bbc;
  font-size: 12px;
  font-weight: 850;
}

.admin-support-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
}

.admin-support-list,
.admin-support-chat {
  min-height: 440px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}

.admin-support-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.support-thread-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  color: #fff;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.support-thread-item.active,
.support-thread-item:hover {
  border-color: rgba(139, 53, 255, 0.48);
  background: rgba(139, 53, 255, 0.14);
}

.support-thread-item small { color: #9aa7c5; }

.admin-support-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.admin-support-chat-head {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 950;
}

.admin-support-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.admin-support-message {
  display: grid;
  gap: 4px;
  max-width: 76%;
  padding: 10px 12px;
  border-radius: 12px;
}

.admin-support-message.user {
  justify-self: start;
  background: rgba(255,255,255,.07);
}

.admin-support-message.agent {
  justify-self: end;
  background: rgba(139, 53, 255, 0.22);
}

.admin-support-message strong {
  color: #b8c4df;
  font-size: 11px;
}

.admin-support-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 6, 15, 0.72);
  backdrop-filter: blur(14px);
}

.confirm-card {
  width: min(420px, 100%);
  padding: 22px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 49, 86, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15,23,48,.98), rgba(10,16,34,.98));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.confirm-card h2 {
  margin: 0 0 8px;
}

.confirm-card p {
  margin: 0;
  color: #9aa7c5;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.admin-page-card .admin-table {
  min-width: 860px;
}

.admin-page-card .admin-table th,
.admin-page-card .admin-table td {
  padding: 16px 14px;
}

.shop-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  color: #06101f;
  background: linear-gradient(145deg, #22e58f, #19d8ff);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.shop-logo-image {
  width: clamp(220px, 22vw, 320px);
}

.shop-balance-box {
  display: grid;
  min-width: 220px;
  min-height: 118px;
  align-content: center;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(145deg, #3b2608 0%, #1c1420 48%, #0b1726 100%);
  border: 1px solid rgba(255, 203, 69, 0.34);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(0,0,0,.24), 0 0 24px rgba(255, 184, 77, 0.12);
}

.shop-balance-box small,
.shop-balance-box strong {
  display: block;
}

.shop-balance-box small {
  color: #ffdf8b;
  font-size: 12px;
  font-weight: 850;
}

.shop-balance-box strong {
  color: #ffd35c;
  font-size: 38px;
  text-shadow: 0 0 16px rgba(255, 184, 77, 0.24);
}

.shop-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.shop-page-pack {
  min-height: 330px;
  padding: 24px;
}

.shop-card.green { box-shadow: inset 0 3px 0 #22e58f; }

.checkout-card h1 {
  margin: 0 0 10px;
}

.checkout-card p {
  color: #9aa7c5;
}

.checkout-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1240px) {
  .task-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .youtube-video-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-announcement-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .flow-grid,
  .shop-grid,
  .shop-page-grid { grid-template-columns: 1fr; }
  .youtube-video-grid { grid-template-columns: 1fr; }
  .youtube-video-card { grid-template-columns: 1fr; }
  .youtube-active-watch,
  .youtube-subscribe-screen { grid-template-columns: 1fr; }
  .youtube-subscribe-frame-wrap {
    min-height: 52vh;
    border-radius: 14px 14px 0 0;
  }
  .youtube-subscribe-screen .youtube-active-side {
    width: min(920px, calc(100vw - 32px));
    border-left: 1px solid rgba(255,255,255,.08);
    border-top: 0;
    border-radius: 0 0 14px 14px;
  }
  .youtube-watch-head,
  .youtube-watch-summary { grid-template-columns: 1fr; }
  .youtube-watch-shell { padding: 12px; }
  .youtube-watch-topbar {
    align-items: flex-start;
    position: static;
  }
  .youtube-watch-logo { width: 180px; }
  .youtube-watch-actions { align-items: flex-start; }
  .youtube-balance-box { padding: 10px 12px; }
  .youtube-watch-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .youtube-hero-action { width: 100%; }
  .task-card { grid-template-columns: 52px minmax(0, 1fr); }
  .task-reward,
  .task-card .button { grid-column: 1 / -1; }
  .account-page-grid,
  .admin-summary-grid,
  .admin-support-layout { grid-template-columns: 1fr; }
  .page-hero-row { flex-direction: column; }
  .shop-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .shop-balance-box {
    width: 100%;
  }
  .admin-announcement-list article {
    grid-template-columns: 42px 1fr;
  }
  .admin-announcement-list time,
  .admin-announcement-list .small-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .task-form { grid-template-columns: 1fr; }
  .youtube-video-form { grid-template-columns: 1fr; }
  .admin-announcement-form { grid-template-columns: 1fr; }
  .panel-title { align-items: flex-start; flex-direction: column; }
  .checkout-card { padding: 20px; }
  .page-shell { padding: 14px; }
  .account-page-actions { grid-template-columns: 1fr; }
  .account-page-card .profile-preview.large {
    width: 118px;
    height: 118px;
    border-radius: 24px;
  }
}
