/* Dashboard UI Pro — richer glass + 3D polish */

body.dash-body {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(34, 130, 58, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(125, 206, 160, 0.12), transparent 50%),
    #ffffff;
}

body.dash-body::before {
  background-image: radial-gradient(rgba(125, 206, 160, 0.05) 1px, transparent 1px);
  opacity: 0.4;
}

.dash-layout,
.dash-main {
  position: relative;
  z-index: 1;
}

/* Welcome hero */
.dash-welcome {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  background:
    radial-gradient(circle at 88% 20%, rgba(125, 206, 160, 0.35), transparent 42%),
    linear-gradient(125deg, rgba(12, 32, 20, 0.92) 0%, rgba(26, 107, 46, 0.75) 55%, rgba(34, 130, 58, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 20px 50px rgba(15, 40, 25, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.dash-welcome::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.dash-welcome h2 {
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.dash-welcome .welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.dash-welcome .welcome-actions .theme-btn {
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.8rem;
}

.dash-welcome .btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.dash-welcome .btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Glass panels with shine */
.dash-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(15, 40, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dash-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  right: -20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.dash-panel:hover {
  box-shadow:
    0 16px 48px rgba(34, 130, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.stat-card {
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 130, 58, 0.12), transparent 70%);
  pointer-events: none;
}

.stat-card .stat-value {
  background: linear-gradient(135deg, #131615, #1a6b2e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.dash-body .theme-btn.btn-one {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(34, 130, 58, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dash-body .theme-btn.btn-one:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34, 130, 58, 0.35);
}

.dash-body .theme-btn.btn-two {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 130, 58, 0.25);
}

/* Learn grade cards — premium */
.learn-grades {
  gap: 1.15rem;
}

.learn-grade {
  position: relative;
  border-radius: 18px;
  padding: 1.25rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 10px 32px rgba(15, 40, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s;
}

.learn-grade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 130, 58, 0.06), transparent 45%);
  pointer-events: none;
}

.learn-grade:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(34, 130, 58, 0.4);
  box-shadow: 0 20px 44px rgba(34, 130, 58, 0.16);
}

.learn-grade .grade-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.learn-grade .num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2ea855, #1a6b2e);
  box-shadow: 0 8px 18px rgba(34, 130, 58, 0.35);
  font-size: 0.95rem;
}

.learn-grade .ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #1a6b2e;
  background: conic-gradient(#22823a var(--pct, 0%), rgba(34, 130, 58, 0.12) 0);
  position: relative;
  flex-shrink: 0;
}

.learn-grade .ring::after {
  content: attr(data-pct);
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
}

.learn-grade .mini-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(34, 130, 58, 0.12);
  overflow: hidden;
  margin: 0.35rem 0 0.65rem;
}

.learn-grade .mini-bar > i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, #1a6b2e, #3ecf6a);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.learn-grade .meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 130, 58, 0.1);
  transition: 0.2s;
}

.learn-grade .meta a:hover {
  background: #22823a;
  color: #fff !important;
}

/* Types of trading strip */
#learn-types-grid .cat-3d-card {
  min-height: 132px;
}

#learn-types-grid .cat-badge {
  background: linear-gradient(145deg, #145524, #22823a);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* Live cards depth */
.dash-live-card {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.dash-live-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 130, 58, 0.15), transparent 70%);
}

.dash-live-card:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Topbar polish */
.dash-topbar {
  border-radius: 0 0 18px 18px;
  margin: 0 0.75rem;
  width: calc(100% - 1.5rem);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: none;
}

.dash-content {
  padding-top: 1.25rem;
}

/* Sidebar glow active */
.dash-nav a.active {
  background: linear-gradient(90deg, rgba(34, 130, 58, 0.45), rgba(34, 130, 58, 0.18));
  box-shadow: inset 3px 0 0 #7dcea0, 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-cat-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Progress bar glow */
.learn-fill,
.learn-track .learn-fill {
  box-shadow: 0 0 16px rgba(46, 168, 85, 0.55);
}

.learn-progress-wrap label span:last-child {
  color: #1a6b2e;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .dash-topbar {
    margin: 0;
    width: 100%;
    border-radius: 0;
  }
}
