/* ── Apple Dynamic Island & macOS System Design Tokens ────────────────────── */
:root {
  --bg-notch: #000000;
  --bg-panel: rgba(14, 14, 18, 0.96);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --bg-card-active: rgba(255, 255, 255, 0.13);

  /* Specular borders & highlights */
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-highlight: rgba(255, 255, 255, 0.22);
  --border-glass: rgba(255, 255, 255, 0.14);

  /* Apple System Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(235, 235, 245, 0.62);
  --text-tertiary: rgba(235, 235, 245, 0.38);
  --accent: #FFFFFF;
  --accent-blue: #0A84FF;

  /* Apple System Status Colors */
  --status-ok: #30D158;
  --status-warn: #FF9F0A;
  --status-busy: #0A84FF;
  --status-error: #FF453A;
  --status-purple: #BF5AF2;
  --status-yellow: #FFD60A;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;

  /* Apple Spring & Ease Curves */
  --dur-expand: 260ms;
  --dur-hover: 180ms;
  --dur-result: 220ms;
  --ease-spring: cubic-bezier(0.34, 1.38, 0.64, 1);
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-notch: 0 10px 30px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-panel: 0 18px 48px rgba(0, 0, 0, 0.85), 0 4px 16px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
}

/* ── Top Notch Anchor Wrapper ────────────────────────────────────────────── */
.notch-wrapper {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* 1. COLLAPSED NOTCH PILL                                                    */
/* ══════════════════════════════════════════════════════════════════════════ */
.notch-pill {
  width: 250px;
  height: 32px;
  background: var(--bg-notch);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;
  border-radius: 0 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-notch);
  transition:
    width 0.22s var(--ease-spring),
    height 0.18s var(--ease-spring),
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.18s var(--ease-spring);
}

.notch-pill:hover {
  background: #050507;
  border-color: rgba(255, 255, 255, 0.24);
  height: 35px;
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-spring);
}

.notch-pill:hover .icon-container {
  transform: scale(1.15) rotate(-5deg);
}

.broom-3d-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(10, 132, 255, 0.85));
  display: block;
}

.broom-working {
  animation: sweepAnim 0.7s ease-in-out infinite alternate !important;
}

@keyframes sweepAnim {
  0% {
    transform: rotate(-12deg) scale(1.05);
    filter: drop-shadow(0 0 5px rgba(10, 132, 255, 0.7));
  }
  100% {
    transform: rotate(14deg) scale(1.22);
    filter: drop-shadow(0 0 12px rgba(48, 209, 88, 0.95));
  }
}

.pill-stat-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
}

.pill-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.pill-stat-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
}

.battery-svg {
  display: block;
}

.battery-color {
  color: #30D158;
}

.dot-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
}

.dot-ok {
  background: var(--status-ok);
  box-shadow: 0 0 7px rgba(48, 209, 88, 0.9);
}

.dot-warn {
  background: var(--status-warn);
  box-shadow: 0 0 7px rgba(255, 159, 10, 0.9);
}

.dot-busy {
  background: var(--status-busy);
  box-shadow: 0 0 7px rgba(10, 132, 255, 0.9);
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  from { opacity: 0.5; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.15); }
}

/* Pill Working State Wrap */
.pill-working-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-spinner {
  width: 11px;
  height: 11px;
  border: 1.8px solid rgba(255, 255, 255, 0.2);
  border-top-color: #0A84FF;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.working-label {
  font-size: 11px;
  font-weight: 500;
  color: #FFFFFF;
}

.pill-percent-badge {
  font-size: 10px;
  font-weight: 700;
  color: #0A84FF;
  background: rgba(10, 132, 255, 0.15);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Pill Result State Wrap */
.pill-result-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  animation: bounceIn 0.3s var(--ease-spring);
}

.result-label {
  font-size: 11px;
  font-weight: 600;
  color: #30D158;
}

/* Dynamic Island Bottom Progress Beam */
.pill-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pill-progress-fill {
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.fill-junk { background: #30D158; box-shadow: 0 0 6px #30D158; }
.fill-cache { background: #0A84FF; box-shadow: 0 0 6px #0A84FF; }
.fill-ram { background: #BF5AF2; box-shadow: 0 0 6px #BF5AF2; }
.fill-full { background: #FFD60A; box-shadow: 0 0 6px #FFD60A; }


/* ══════════════════════════════════════════════════════════════════════════ */
/* 2. EXPANDED NOTCH PANEL                                                    */
/* ══════════════════════════════════════════════════════════════════════════ */
.notch-panel {
  width: 700px;
  height: 470px;
  background: var(--bg-notch);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: none;
  border-radius: 0 0 32px 32px;
  padding: 18px 22px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  transform-origin: top center;
  animation: unfoldDashboard 0.26s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

@keyframes unfoldDashboard {
  from {
    opacity: 0;
    transform: scaleY(0.88) scaleX(0.97) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scaleY(1) scaleX(1) translateY(0);
  }
}

/* ── 2.1 Top Header Row ─────────────────────────────────────────────────── */
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.greeting {
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-text {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
}

.workspace-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10.5px;
  color: rgba(235, 235, 245, 0.75);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.workspace-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.header-broom-logo {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.trial-header-badge {
  background: rgba(10, 132, 255, 0.25);
  color: #60AFFF;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.interactive-pill {
  cursor: pointer;
}

.interactive-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30D158;
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.8);
}

.sliders-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sliders-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transform: scale(1.05);
}

/* ── 2.2 Tab Contents ───────────────────────────────────────────────────── */
.tab-content {
  display: none;
  flex: 1;
  min-height: 0;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* ── Tab 1: Dashboard 6-Card Grid ───────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  flex: 1;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.16s ease;
}

.card-clean {
  cursor: pointer;
}

.card-clean:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-1.5px);
}

.card-clean:active {
  transform: scale(0.985);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.card-broom-img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(10, 132, 255, 0.6));
}

.card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.clean-tag,
.live-tag,
.one-click-tag,
.green-live-tag {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.clean-tag {
  background: rgba(48, 209, 88, 0.15);
  color: #30D158;
}

.live-tag {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.green-live-tag {
  background: rgba(48, 209, 88, 0.15);
  color: #30D158;
}

.one-click-tag {
  background: rgba(255, 214, 10, 0.18);
  color: #FFD60A;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
}

.card-body-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 8px;
}

.card-body-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.big-number {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.card-sub-label,
.sub-text {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 400;
}

.checkmark-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #30D158;
  font-weight: 500;
}

.sparkline-wrap {
  width: 76px;
  height: 36px;
  filter: drop-shadow(0 0 6px rgba(10, 132, 255, 0.6));
}

.sparkles-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-6-broom-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 214, 10, 0.7));
  transition: transform 0.2s ease;
}

.card:hover .card-6-broom-img {
  transform: rotate(10deg) scale(1.1);
}

/* System Circular Gauges */
.system-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 8px;
}

.system-gauges-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.gauge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ring-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-wrap svg {
  transform: rotate(-90deg);
}

.ring-value {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
}

.ring-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* History Bar Chart */
.bar-chart-wrap {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}

.bar {
  width: 7px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  transition: height 0.3s ease;
}

.bar-active {
  background: #0A84FF;
  box-shadow: 0 0 6px rgba(10, 132, 255, 0.7);
}


/* ── Tab 2: Quick File Shelf ────────────────────────────────────────────── */
.feature-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 14px 16px;
  overflow: hidden;
}

.shelf-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.shelf-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-title {
  font-size: 13.5px;
  font-weight: 650;
  color: #FFFFFF;
}

.shelf-trial-badge {
  font-size: 10px;
  color: #FFD60A;
  background: rgba(255, 214, 10, 0.12);
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 600;
}

.shelf-count-badge {
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 10px;
}

.shelf-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shelf-view-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.view-switch-btn {
  background: transparent;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.14s ease;
}

.view-switch-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.add-file-btn {
  background: rgba(10, 132, 255, 0.18);
  border: 1px solid rgba(10, 132, 255, 0.35);
  color: #60AFFF;
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.add-file-btn:hover {
  background: #0A84FF;
  color: #fff;
}

.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.14s ease;
}

.clear-btn:hover {
  color: var(--status-error);
}

.shelf-drop-zone {
  flex: 1;
  overflow-y: auto;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.shelf-grid-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.14s ease;
}

.shelf-grid-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

.shelf-grid-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shelf-grid-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shelf-grid-top-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ext-badge {
  font-size: 8.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
}

.remove-card-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 9px;
  cursor: pointer;
  padding: 2px;
}

.remove-card-btn:hover {
  color: #FF453A;
}

.shelf-grid-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shelf-grid-card-name {
  font-size: 11px;
  font-weight: 550;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shelf-grid-card-size {
  font-size: 9.5px;
  color: var(--text-secondary);
}

.shelf-grid-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.grid-action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 0;
  font-size: 9.5px;
  font-weight: 550;
  color: #fff;
  cursor: pointer;
  transition: all 0.14s ease;
}

.grid-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.grid-action-btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 9.5px;
  color: #fff;
  cursor: pointer;
}


/* ── Tab 3: Clipboard Manager ───────────────────────────────────────────── */
.clipboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.clipboard-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 10px;
  flex: 1;
  max-width: 320px;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 11.5px;
  color: #FFFFFF;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.clipboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
}

.clipboard-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.14s ease;
}

.clipboard-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.clip-text {
  font-size: 11.5px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  font-family: monospace, var(--font-sans);
}

.clip-time {
  font-size: 10px;
  color: var(--text-tertiary);
}


/* ── Tab 4: Media / Music Player ────────────────────────────────────────── */
.music-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.music-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  overflow: hidden;
}

.ambient-disc-glow {
  position: absolute;
  top: 10%;
  left: 5%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.35) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ambient-disc-glow-active {
  opacity: 1;
}

.track-hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.album-thumb-wrap {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #222 20%, #111 60%, #050505 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vinyl-grooves {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-center-label {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0A84FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.vinyl-spinning {
  animation: spinVinyl 5s linear infinite;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.track-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.track-header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 132, 255, 0.15);
  border: 1px solid rgba(10, 132, 255, 0.25);
  color: #60AFFF;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.equalizer-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.eq-bar {
  width: 2px;
  height: 100%;
  background: #0A84FF;
  border-radius: 1px;
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}

@keyframes eqBounce {
  0% { height: 2px; }
  100% { height: 10px; }
}

.source-badge,
.album-name-badge {
  font-size: 9.5px;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 8px;
}

.track-name {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.artist-name {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Sound Wave Visualizer */
.visualizer-row {
  margin: 10px 0;
}

.visualizer-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 4px 8px;
}

.viz-bar {
  flex: 1;
  width: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  min-height: 4px;
}

.viz-bar-active {
  background: linear-gradient(180deg, #0A84FF 0%, #64D2FF 100%);
  animation: vizWave 0.75s ease-in-out infinite alternate;
}

@keyframes vizWave {
  0% { height: 15%; opacity: 0.5; }
  100% { height: 95%; opacity: 1; }
}

/* Player Controls & Volume */
.player-bottom-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transport-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.transport-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.transport-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.hero-play-btn {
  background: #FFFFFF;
  color: #000000;
  width: 38px;
  height: 38px;
}

.hero-play-btn:hover {
  background: #E5E5EA;
  color: #000000;
  transform: scale(1.1);
}

.volume-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 4px 10px;
}

.volume-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.volume-slider-track {
  width: 100px;
  display: flex;
  align-items: center;
}

.volume-range {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.volume-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 28px;
}


/* ── 2.6 Bottom Floating Pill Dock Toolbar ───────────────────────────────── */
.dock-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.dock-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(20, 20, 25, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 4px 8px;
  gap: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.dock-btn {
  background: transparent;
  border: none;
  outline: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.dock-btn:active {
  transform: scale(0.92);
}

.dock-btn-active {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dock-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 4px;
}


/* ══════════════════════════════════════════════════════════════════════════ */
/* 3. IN-PANEL CLEAN CONFIRMATION SHEET MODAL                                 */
/* ══════════════════════════════════════════════════════════════════════════ */
.confirm-modal-sheet {
  position: absolute;
  inset: 0;
  background: #000000;
  border-radius: 0 0 32px 32px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 50;
  animation: sheetSlideUp 0.22s var(--ease-spring);
}

@keyframes sheetSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.confirm-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.confirm-broom-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(10, 132, 255, 0.8));
}

.confirm-title {
  font-size: 13.5px;
  font-weight: 650;
  color: #fff;
}

.summary-badge {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-highlight {
  font-weight: 700;
  color: #30D158;
}

.badge-separator {
  opacity: 0.4;
}

.confirm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  overflow-y: auto;
  flex: 1;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.entry-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.custom-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.check-checked {
  background: #0A84FF;
  border-color: #0A84FF;
}

.entry-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.entry-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.entry-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.safety-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.safety-safe {
  background: rgba(48, 209, 88, 0.18);
  color: #30D158;
}

.entry-desc {
  font-size: 10.5px;
  color: var(--text-tertiary);
}

.entry-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.entry-size {
  font-size: 12px;
  font-weight: 650;
  color: #fff;
}

.entry-count {
  font-size: 9.5px;
  color: var(--text-tertiary);
}

.confirm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.always-allow-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

.confirm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-confirm-clean {
  background: #0A84FF;
  border: none;
  color: #fff;
  border-radius: 14px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(10, 132, 255, 0.5);
  transition: all 0.14s ease;
}

.btn-confirm-clean:hover {
  background: #0077ED;
  transform: scale(1.02);
}


/* ══════════════════════════════════════════════════════════════════════════ */
/* 4. SETTINGS PANEL (macOS Monterey / Ventura Style)                         */
/* ══════════════════════════════════════════════════════════════════════════ */
.settings-panel {
  position: absolute;
  inset: 0;
  background: #000000;
  border-radius: 0 0 32px 32px;
  display: flex;
  flex-direction: column;
  z-index: 60;
  animation: slideDown 0.22s var(--ease-spring);
  overflow: hidden;
}

@keyframes slideDown {
  from { opacity: 0; transform: scaleY(0.92) translateY(-6px); }
  to { opacity: 1; transform: scaleY(1) translateY(0); }
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 22, 0.7);
  backdrop-filter: blur(20px);
}

.settings-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.settings-titles {
  display: flex;
  flex-direction: column;
}

.settings-title {
  font-size: 13.5px;
  font-weight: 650;
  color: #FFFFFF;
}

.settings-sub {
  font-size: 10px;
  color: var(--text-tertiary);
}

.settings-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.done-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.14s ease;
}

.done-btn:hover {
  background: #0A84FF;
  border-color: #0A84FF;
}

.close-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
}

.settings-body {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  overflow-y: auto;
  gap: 10px;
  flex: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 650;
  color: #FFFFFF;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.toggle-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.toggle-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-label {
  font-size: 12px;
  font-weight: 550;
  color: #FFFFFF;
}

.badge {
  font-size: 8px;
  font-weight: 700;
  background: rgba(10, 132, 255, 0.2);
  color: #60AFFF;
  padding: 1px 4px;
  border-radius: 4px;
}

.sublabel {
  font-size: 10px;
  color: var(--text-tertiary);
}

/* iOS Style Toggle Switch */
.toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.toggle-on {
  background: #30D158;
}

.toggle-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s cubic-bezier(0.34, 1.45, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-on .toggle-thumb {
  transform: translateX(16px);
}

/* Segmented Control */
.segmented-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.segmented {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}

.seg {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 550;
  padding: 5px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-active {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.info-text {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}


/* ══════════════════════════════════════════════════════════════════════════ */
/* 5. PRO UPGRADE MODAL                                                       */
/* ══════════════════════════════════════════════════════════════════════════ */
.upgrade-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0 0 32px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

.upgrade-modal-card {
  width: 92%;
  height: 90%;
  background: #0D0D12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 20px 24px;
  position: relative;
  display: flex;
  box-shadow: 0 16px 40px rgba(0,0,0,0.8);
}

.upgrade-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.14s ease;
}

.upgrade-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.upgrade-layout {
  display: flex;
  width: 100%;
  gap: 24px;
}

.upgrade-left-col {
  width: 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 20px;
}

.upgrade-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 214, 10, 0.14);
  border: 1px solid rgba(255, 214, 10, 0.3);
  color: #FFD60A;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 8px;
}

.upgrade-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}

.upgrade-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.upgrade-price-box {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 14px;
}

.price-currency {
  font-size: 18px;
  font-weight: 600;
  color: #FFD60A;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
}

.price-cents {
  font-size: 18px;
  font-weight: 600;
}

.price-sub {
  font-size: 10px;
  color: var(--text-secondary);
  margin-left: 6px;
}

.btn-purchase {
  background: linear-gradient(135deg, #0A84FF, #0060DF);
  border: none;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 9px 0;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.5);
  transition: all 0.15s ease;
}

.btn-purchase:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 132, 255, 0.65);
}

.license-toggle-link {
  font-size: 10.5px;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
}

.key-input-box {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.key-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  color: #fff;
  flex: 1;
}

.btn-activate-key {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.upgrade-right-col {
  width: 56%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: center;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-icon {
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.feature-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.feature-desc {
  font-size: 9.5px;
  color: var(--text-secondary);
  line-height: 1.25;
}


/* ══════════════════════════════════════════════════════════════════════════ */
/* 6. RIGHT-CLICK CONTEXT MENU                                                */
/* ══════════════════════════════════════════════════════════════════════════ */
.context-menu {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 6px;
  width: 175px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 200;
  animation: menuPop 0.15s var(--ease-spring);
}

@keyframes menuPop {
  from { opacity: 0; transform: translateX(-50%) scale(0.92); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
}

.menu-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.menu-version {
  font-size: 9px;
  color: var(--text-tertiary);
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

.menu-item {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}

.menu-item:hover {
  background: #0A84FF;
  color: #FFFFFF;
}

.menu-danger:hover {
  background: #FF453A;
  color: #FFFFFF;
}


/* ══════════════════════════════════════════════════════════════════════════ */
/* 7. CARD CLEANING OVERLAY & ANIMATIONS                                      */
/* ══════════════════════════════════════════════════════════════════════════ */
.card-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: overlayFadeIn 0.28s var(--ease-apple) forwards;
}

@keyframes overlayFadeIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(8px); }
}

.bg-junk {
  background: radial-gradient(circle at center, rgba(48, 209, 88, 0.22) 0%, rgba(12, 28, 18, 0.94) 80%);
  border: 1px solid rgba(48, 209, 88, 0.5);
  box-shadow: inset 0 0 24px rgba(48, 209, 88, 0.2), 0 0 20px rgba(48, 209, 88, 0.25);
}

.bg-cache {
  background: radial-gradient(circle at center, rgba(10, 132, 255, 0.22) 0%, rgba(10, 20, 35, 0.94) 80%);
  border: 1px solid rgba(10, 132, 255, 0.5);
  box-shadow: inset 0 0 24px rgba(10, 132, 255, 0.2), 0 0 20px rgba(10, 132, 255, 0.25);
}

.bg-ram {
  background: radial-gradient(circle at center, rgba(191, 90, 242, 0.25) 0%, rgba(22, 12, 32, 0.94) 80%);
  border: 1px solid rgba(191, 90, 242, 0.5);
  box-shadow: inset 0 0 24px rgba(191, 90, 242, 0.2), 0 0 20px rgba(191, 90, 242, 0.3);
}

.bg-full {
  background: radial-gradient(circle at center, rgba(255, 214, 10, 0.2) 0%, rgba(20, 20, 24, 0.96) 80%);
  border: 1px solid rgba(255, 214, 10, 0.55);
  box-shadow: inset 0 0 28px rgba(255, 214, 10, 0.2), 0 0 24px rgba(255, 214, 10, 0.28);
}

/* Laser Sweep Beam */
.laser-beam {
  position: absolute;
  top: -20%;
  left: -40%;
  width: 180%;
  height: 24px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    transparent 100%
  );
  filter: blur(2px);
  transform: rotate(-25deg);
  animation: laserSweep 1.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  opacity: 0.75;
}

@keyframes laserSweep {
  0% { transform: rotate(-25deg) translateY(-80px); opacity: 0; }
  20% { opacity: 0.85; }
  80% { opacity: 0.85; }
  100% { transform: rotate(-25deg) translateY(180px); opacity: 0; }
}

/* Central Circular Progress Ring */
.overlay-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.progress-ring-box {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-svg {
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3.5;
}

.ring-fill {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.stroke-junk { stroke: #30D158; filter: drop-shadow(0 0 6px #30D158); }
.stroke-cache { stroke: #0A84FF; filter: drop-shadow(0 0 6px #0A84FF); }
.stroke-ram { stroke: #BF5AF2; filter: drop-shadow(0 0 6px #BF5AF2); }
.stroke-full { stroke: #FFD60A; filter: drop-shadow(0 0 6px #FFD60A); }

.center-icon-container {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

.overlay-subtitle {
  font-size: 10px;
  color: rgba(235, 235, 245, 0.8);
  font-weight: 500;
}

.overlay-bottom-bar {
  position: absolute;
  bottom: 8px;
  display: flex;
  justify-content: center;
}

.bottom-progress-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1px 7px;
}

.bottom-progress-pct {
  font-size: 9.5px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Floating Micro-Particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp 1.4s ease-out infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0.9; }
  100% { transform: translateY(-40px) scale(0.3); opacity: 0; }
}

/* Toast Feedback */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 999999;
  animation: toastPop 0.22s var(--ease-spring);
}

@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Utility Helpers */
.hidden {
  display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
