:root {
  --atb-bg: #050b18;
  --atb-panel: #101d33;
  --atb-panel-2: #142743;
  --atb-blue: #35baff;
  --atb-cyan: #63e5ff;
  --atb-purple: #9872ff;
  --atb-gold: #f5c967;
  --atb-text: #edf5ff;
  --atb-muted: #a8bdd8;
  --atb-border: rgba(91,177,255,.25);
  --atb-glow: 0 0 25px rgba(42,160,255,.15);
}

html { color-scheme: dark; }

body {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(30,95,170,.22), transparent 38%),
    radial-gradient(ellipse at 88% 78%, rgba(105,55,180,.18), transparent 40%),
    linear-gradient(135deg,#040916,#09172b 55%,#050b18) !important;
  color: var(--atb-text) !important;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body p, body small, body label {
  color: var(--atb-muted);
}

body h1, body h2, body h3, body h4 {
  color: #f3f8ff;
}

body a:not(.btn):not(.brand) {
  color: var(--atb-cyan);
}

body .topbar {
  background: rgba(5,15,34,.94) !important;
  color: white !important;
  border-bottom: 1px solid var(--atb-border) !important;
  box-shadow: 0 8px 35px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
}

body .brand strong { color: var(--atb-cyan) !important; }
body .brand small { color: #b6cbe6 !important; }

body .card,
body .panel,
body .notice,
body .feature-card,
body .task-card,
body .task-history,
body .dash-card,
body .weekly-task-card,
body .admin-card,
body .admin-page .admin-card,
body .admin-page section:not(.admin-grid) {
  background: linear-gradient(145deg,rgba(20,43,74,.97),rgba(10,22,43,.97)) !important;
  color: var(--atb-text) !important;
  border: 1px solid var(--atb-border) !important;
  border-radius: 17px !important;
  box-shadow: var(--atb-glow), 0 12px 32px rgba(0,0,0,.22) !important;
}

body .admin-page .admin-card strong,
body .dash-card h2,
body .task-reward {
  color: var(--atb-cyan) !important;
}

body button:not(.danger):not(.btn-danger),
body .btn:not(.btn-light):not(.btn-outline):not(.danger),
body .task-button {
  background: linear-gradient(115deg,#087fbd,#6545bd) !important;
  color: white !important;
  border: 1px solid rgba(125,200,255,.35) !important;
  border-radius: 11px !important;
  box-shadow: 0 5px 20px rgba(30,120,255,.18);
  transition: transform .25s, box-shadow .25s, filter .25s;
}

body button:hover,
body .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(53,186,255,.3);
  filter: brightness(1.1);
}

body input,
body select,
body textarea {
  background: #09182c !important;
  color: #edf5ff !important;
  border: 1px solid rgba(91,177,255,.35) !important;
  border-radius: 10px !important;
}

body input:focus,
body select:focus,
body textarea:focus {
  outline: 2px solid rgba(99,229,255,.3);
  border-color: var(--atb-cyan) !important;
}

body table {
  background: #0c1a30 !important;
  color: var(--atb-text) !important;
  border-color: var(--atb-border) !important;
}

body th {
  background: #173453 !important;
  color: var(--atb-cyan) !important;
}

body td, body th {
  border-color: rgba(91,177,255,.18) !important;
}

body tbody tr:hover {
  background: rgba(48,132,205,.12) !important;
}

body footer {
  background: rgba(4,12,27,.92) !important;
  color: var(--atb-muted) !important;
  border-top: 1px solid var(--atb-border) !important;
}

body .admin-page {
  color: var(--atb-text) !important;
}

body .admin-page h1,
body .admin-page h2 {
  color: #f3f8ff !important;
}

body .admin-links a,
body .dash-link {
  background: linear-gradient(145deg,#142d50,#101b36) !important;
  color: #eaf4ff !important;
  border: 1px solid var(--atb-border) !important;
  border-radius: 13px !important;
  box-shadow: var(--atb-glow);
  transition: .25s ease;
}

body .admin-links a:hover,
body .dash-link:hover {
  border-color: var(--atb-cyan) !important;
  box-shadow: 0 0 25px rgba(53,186,255,.2);
  transform: translateY(-3px);
}

body .atb-world-icon,
body .feature-icon,
body .dash-icon,
body .task-icon,
body .admin-icon {
  animation: atbWorldPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 9px rgba(53,186,255,.55));
}

@keyframes atbWorldPulse {
  0%,100% { filter: drop-shadow(0 0 5px rgba(53,186,255,.3)); }
  50% { filter: drop-shadow(0 0 15px rgba(99,229,255,.8)); }
}

@media (max-width: 700px) {
  body .admin-page,
  body .tasks-page,
  body .dashboard {
    width: calc(100% - 20px) !important;
    padding: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ===== A.T.B. CYBER WORLD - PREMIUM VISUAL UPGRADE ===== */

body {
  background-image:
    radial-gradient(ellipse at 15% 15%, rgba(0,145,255,.19), transparent 38%),
    radial-gradient(ellipse at 85% 80%, rgba(126,65,255,.17), transparent 42%),
    linear-gradient(rgba(65,160,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65,160,255,.035) 1px, transparent 1px),
    linear-gradient(135deg,#030814,#09172b 55%,#050b18) !important;
  background-size: auto,auto,42px 42px,42px 42px,auto !important;
  background-attachment: fixed !important;
}

body .hero,
body .atb-world {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(80,190,255,.28);
  border-radius: 24px;
  box-shadow:
    0 0 35px rgba(0,145,255,.13),
    inset 0 0 35px rgba(50,130,255,.07);
}

body .hero::before,
body .atb-world::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -130px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(45,190,255,.22),transparent 70%);
  pointer-events: none;
  z-index: -1;
}

body .card,
body .panel,
body .feature-card,
body .task-card,
body .dash-card,
body .admin-card,
body .atb-world-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}

body .card:hover,
body .feature-card:hover,
body .task-card:hover,
body .dash-card:hover,
body .admin-card:hover,
body .atb-world-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99,229,255,.65) !important;
  box-shadow:
    0 12px 35px rgba(0,130,255,.18),
    0 0 20px rgba(99,229,255,.12) !important;
}

body h1 {
  text-shadow: 0 0 22px rgba(53,186,255,.25);
  letter-spacing: .3px;
}

body .brand strong {
  text-shadow: 0 0 15px rgba(99,229,255,.65);
}

body .btn,
body button,
body .task-button {
  position: relative;
  overflow: hidden;
}

body .btn::after,
body button::after,
body .task-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(100deg,transparent,rgba(255,255,255,.2),transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}

body .btn:hover::after,
body button:hover::after,
body .task-button:hover::after {
  left: 140%;
}

body .topbar {
  backdrop-filter: blur(20px) saturate(150%);
}

body .admin-links a:hover,
body .dash-link:hover {
  box-shadow:
    0 0 22px rgba(53,186,255,.22),
    inset 0 0 15px rgba(53,186,255,.08);
}

body .feature-icon,
body .dash-icon,
body .task-icon,
body .admin-icon,
body .atb-world-icon {
  filter: drop-shadow(0 0 10px rgba(53,186,255,.65));
}

body table {
  border-radius: 12px;
  overflow: hidden;
}

body th {
  text-shadow: 0 0 10px rgba(99,229,255,.25);
}

@media (max-width: 700px) {
  body .hero,
  body .atb-world {
    border-radius: 17px;
  }

  body .card:hover,
  body .feature-card:hover,
  body .task-card:hover,
  body .dash-card:hover {
    transform: none;
  }
}

/* ===== END PREMIUM VISUAL UPGRADE ===== */


/* ===== ATB HERO VISUALS V2 ===== */

body .hero {
  position: relative;
  isolation: isolate;
}

body .hero-visual {
  perspective: 1100px;
}

body .yasmin-market-motion {
  transform-style: preserve-3d;
  filter: drop-shadow(0 15px 35px rgba(0,130,255,.18));
}

body .yasmin-coin,
body .yasmin-coin-extra {
  filter:
    drop-shadow(0 0 12px rgba(65,190,255,.65))
    drop-shadow(0 0 28px rgba(100,90,255,.22));
}

body .yasmin-orbit {
  border-color: rgba(80,205,255,.3) !important;
  box-shadow: 0 0 22px rgba(40,160,255,.12);
}

body .yasmin-chart {
  filter: drop-shadow(0 0 9px rgba(60,200,255,.5));
}

body .yasmin-indicator {
  background: rgba(8,24,48,.88) !important;
  border: 1px solid rgba(80,190,255,.32) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 35px rgba(0,0,0,.3), 0 0 18px rgba(40,160,255,.12);
  backdrop-filter: blur(15px);
}

body .home-visuals {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-top: 22px;
  perspective: 1000px;
}

body .home-photo {
  position: relative;
  min-width: 0;
  min-height: 155px;
  overflow: hidden;
  border-radius: 17px;
  border: 1px solid rgba(99,205,255,.3);
  background: #0a1930;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  transform: translateZ(0);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

body .home-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 155px;
  object-fit: cover;
  transition: transform .65s ease, filter .45s ease;
  filter: saturate(1.12) contrast(1.05);
}

body .home-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 25%,
    rgba(3,10,25,.22) 48%,
    rgba(3,10,25,.96) 100%
  );
  pointer-events: none;
}

body .home-photo:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(99,229,255,.8);
  box-shadow: 0 18px 38px rgba(0,120,255,.2), 0 0 22px rgba(99,229,255,.14);
}

body .home-photo:hover img {
  transform: scale(1.09);
  filter: saturate(1.3) contrast(1.08);
}

body .home-photo-caption {
  position: absolute;
  z-index: 2;
  right: 13px;
  left: 13px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #fff !important;
}

body .home-photo-caption strong {
  color: #fff !important;
  font-size: 15px;
  text-shadow: 0 2px 12px #000;
}

body .home-photo-caption small {
  color: #9deaff !important;
  font-size: 11px;
  text-shadow: 0 2px 8px #000;
}

body .home-photo,
body .yasmin-indicator {
  backdrop-filter: blur(12px);
}

@media(max-width:700px) {
  body .home-visuals {
    gap: 9px;
  }

  body .home-photo,
  body .home-photo img {
    min-height: 125px;
  }

  body .home-photo-caption {
    right: 9px;
    left: 9px;
    bottom: 9px;
  }

  body .home-photo-caption strong {
    font-size: 13px;
  }
}

@media(prefers-reduced-motion:reduce) {
  body .home-photo,
  body .home-photo img {
    transition: none !important;
  }
}

/* ===== END ATB HERO VISUALS V2 ===== */

/* ===== A.T.B. ADMIN FUNDING PAGE ===== */

body .fund-page {
  max-width: 1100px;
  color: var(--atb-text) !important;
}

body .fund-page .fund-panel,
body #rewardFundingSummary,
body #rewardFundingHistory {
  background: linear-gradient(145deg,#142b4a,#091629) !important;
  color: var(--atb-text) !important;
  border: 1px solid var(--atb-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--atb-glow),0 12px 32px rgba(0,0,0,.25) !important;
  padding: 24px !important;
  margin: 22px 0 !important;
}

body .fund-page h1,
body .fund-page h2,
body #rewardFundingSummary h2,
body #rewardFundingHistory h2 {
  color: var(--atb-cyan) !important;
  text-shadow: 0 0 15px rgba(53,186,255,.2);
}

body .fund-page .fund-warning {
  background: rgba(245,201,103,.09) !important;
  color: #ffe2a0 !important;
  border: 1px solid rgba(245,201,103,.35) !important;
  border-radius: 12px;
  padding: 15px;
}

body .fund-page .fund-stats,
body #rewardFundingSummary strong {
  color: var(--atb-cyan) !important;
  text-shadow: 0 0 12px rgba(53,186,255,.25);
}

body .fund-page label {
  color: var(--atb-cyan) !important;
}

body .fund-page input,
body .fund-page textarea {
  background: #071426 !important;
  color: #edf5ff !important;
  border: 1px solid rgba(91,177,255,.4) !important;
}

body .fund-page input::placeholder,
body .fund-page textarea::placeholder {
  color: #91a9c5 !important;
}

body .fund-page #tasksList,
body #rewardFundingHistory {
  color: var(--atb-text) !important;
}

body .fund-page .task-row {
  background: rgba(20,43,74,.75) !important;
  border: 1px solid var(--atb-border) !important;
  border-radius: 12px;
  color: var(--atb-text) !important;
  margin: 14px 0;
  padding: 16px;
}

/* ===== END A.T.B. ADMIN FUNDING PAGE ===== */


/* ===== A.T.B. FUNDING HISTORY LAYOUT ===== */

#rewardFundingHistory .funding-history-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  align-items: end;
  margin: 22px 0;
  padding: 20px;
  background: rgba(7, 20, 38, .65);
  border: 1px solid var(--atb-border);
  border-radius: 15px;
}

#rewardFundingHistory .funding-history-filters label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--atb-cyan);
  font-weight: 600;
  min-width: 0;
}

#rewardFundingHistory .funding-history-filters input,
#rewardFundingHistory .funding-history-filters select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #edf5ff;
  background: #071426;
  border: 1px solid rgba(91, 177, 255, .4);
  border-radius: 9px;
  outline: none;
}

#rewardFundingHistory .funding-history-filters input:focus,
#rewardFundingHistory .funding-history-filters select:focus {
  border-color: var(--atb-cyan);
  box-shadow: 0 0 0 3px rgba(53, 186, 255, .12);
}

#rewardFundingHistory #downloadFundingHistory {
  min-height: 44px;
  padding: 10px 18px;
  color: #071426;
  background: linear-gradient(135deg, var(--atb-cyan), #8b75ff);
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

#rewardFundingHistory #downloadFundingHistory:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

#rewardFundingHistory #fundingHistoryCount {
  color: var(--atb-cyan);
  font-weight: 700;
  margin: 16px 0;
}

#rewardFundingHistory table {
  width: 100%;
  min-width: 650px;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--atb-border);
  border-radius: 12px;
  color: var(--atb-text);
}

#rewardFundingHistory th {
  padding: 14px;
  color: var(--atb-cyan);
  background: #102642;
  text-align: right;
  border-bottom: 1px solid var(--atb-border);
}

#rewardFundingHistory td {
  padding: 13px 14px;
  background: rgba(12, 29, 49, .8);
  text-align: right;
  border-bottom: 1px solid rgba(91, 177, 255, .12);
}

#rewardFundingHistory tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 600px) {
  #rewardFundingHistory .funding-history-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

/* ===== END A.T.B. FUNDING HISTORY LAYOUT ===== */

