/* ==========================================================================
   Cyber Gold & Glassmorphic Design System - Workplace Hero Edition
   ========================================================================== */

:root {
  --bg-dark: #090b14;
  --bg-gradient: radial-gradient(circle at 50% 20%, #151930 0%, #090b14 80%);
  --gold-primary: #ffd700;
  --gold-secondary: #ff9f43;
  --gold-glow: rgba(255, 215, 0, 0.35);
  --gold-border: rgba(255, 215, 0, 0.25);
  --cyber-blue: #00f2fe;
  --cyber-green: #2ed573;
  --cyber-pink: #ff4757;
  --glass-bg: rgba(18, 22, 40, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #f1f2f6;
  --text-muted: #a4b0be;
  --font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-display: 'Orbitron', 'Fira Code', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body.cyber-theme {
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Bilibili Live Stream Danmaku Floating Layer */
.danmaku-overlay-layer {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  height: 260px;
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
  transition: opacity 0.3s ease;
  contain: layout style paint;
}

.danmaku-overlay-layer.hidden {
  display: none !important;
}

.danmaku-item {
  position: absolute;
  white-space: nowrap;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 800;
  padding: 8px 22px;
  border-radius: 24px;
  background: rgba(12, 16, 32, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  will-change: transform;
  animation: danmaku-fly 22s linear forwards;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Danmaku Color Variants (B站直播绚丽彩字) */
.danmaku-item.color-pink {
  color: #ff7af5;
  border-color: rgba(255, 122, 245, 0.6);
  text-shadow: 0 0 10px rgba(255, 122, 245, 0.8);
  box-shadow: 0 0 18px rgba(255, 122, 245, 0.35);
}

.danmaku-item.color-gold {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.6);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

.danmaku-item.color-cyan {
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.6);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.35);
}

.danmaku-item.color-lime {
  color: #2ed573;
  border-color: rgba(46, 213, 115, 0.6);
  text-shadow: 0 0 10px rgba(46, 213, 115, 0.8);
  box-shadow: 0 0 18px rgba(46, 213, 115, 0.35);
}

.danmaku-item.color-purple {
  color: #e056fd;
  border-color: rgba(224, 86, 253, 0.6);
  text-shadow: 0 0 10px rgba(224, 86, 253, 0.8);
  box-shadow: 0 0 18px rgba(224, 86, 253, 0.35);
}

@keyframes danmaku-fly {
  0% {
    transform: translateX(100vw);
    opacity: 0.98;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0.98;
  }
}

/* Background Canvas for Physics Coins */
#physics-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Main Container Layout */
.app-container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
}

/* Base Glassmorphic Card Styling */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.15);
}

.gold-border {
  border: 1px solid var(--gold-border);
  box-shadow: 0 0 25px var(--gold-glow);
}

/* Top Navigation Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  font-size: 38px;
  filter: drop-shadow(0 0 12px var(--gold-primary));
  animation: pulse-bounce 2s infinite ease-in-out;
}

@keyframes pulse-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.08); }
}

.brand-title h1 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-primary) 60%, var(--gold-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tag-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyber-blue);
  border: 1px solid rgba(0, 242, 254, 0.3);
  -webkit-text-fill-color: var(--cyber-blue);
}

.sub-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.gold-glow-btn {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 159, 67, 0.2));
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.gold-glow-btn:hover {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  color: #000;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.danger-btn {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff6b81;
}

.danger-btn:hover {
  background: #ff4757;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

/* Dashboard Grid Dual Column Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.grid-column-left {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grid-column-right {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-column-left, .grid-column-right {
    grid-column: span 12;
  }
}

/* Left / Top Primary Counter Card */
.main-counter-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyber-green);
  box-shadow: 0 0 10px var(--cyber-green);
}

.live-dot {
  animation: blink 1.2s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.3; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

.speed-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(46, 213, 115, 0.15);
  color: var(--cyber-green);
  border: 1px solid rgba(46, 213, 115, 0.3);
}

/* Real-time Money Stage & Guang Tou Qiang Container */
.realtime-display.card-stage {
  height: 235px;
  padding: 16px 20px;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.1);
}

#card-physics-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.counter-floating-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: 6px;
}

.currency-symbol {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--gold-primary);
  margin-right: 8px;
  text-shadow: 0 0 15px var(--gold-primary);
}

.counter-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #ffeaa7 40%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

@media (max-width: 600px) {
  .counter-number { font-size: 38px; }
  .currency-symbol { font-size: 26px; }
}

/* Guang Tou Qiang (光头强 / Logger Vick) - Big-Head Basket-Hugging Caricature */
.catcher-container {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 135px;
  z-index: 5;
  pointer-events: none;
  transition: left 0.12s linear, transform 0.12s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.gtq-character-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gtq-big-bald-head {
  position: relative;
  width: 62px;
  height: 56px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #ffcd94 28%, #e59866 100%);
  border-radius: 52% 52% 46% 46%;
  border: 2.5px solid #5c3210;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4), inset -4px -4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.gtq-logger-helmet {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  font-size: 34px;
  line-height: 1;
  z-index: 6;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6));
  animation: helmet-wobble 2s infinite ease-in-out alternate;
}

@keyframes helmet-wobble {
  0% { transform: translateX(-50%) rotate(-12deg); }
  100% { transform: translateX(-50%) rotate(-4deg); }
}

.gtq-bald-dome {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 16px;
  height: 10px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.bald-shine-sparkle {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 11px;
  animation: sparkle-blink 1.2s infinite alternate;
}

@keyframes sparkle-blink {
  from { opacity: 0.2; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.3); }
}

.gtq-funny-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.gtq-eye-pair {
  font-size: 19px;
  line-height: 1;
  letter-spacing: -2px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.gtq-mustache-row {
  font-size: 24px;
  line-height: 1;
  margin-top: -9px;
  z-index: 4;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.gtq-funny-mouth {
  font-size: 15px;
  line-height: 1;
  margin-top: -10px;
}

.gtq-body-hug-basket {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
  z-index: 5;
  width: 100%;
}

.gtq-hug-arms-left,
.gtq-hug-arms-right {
  font-size: 24px;
  line-height: 1;
  position: absolute;
  top: 6px;
  z-index: 7;
}

.gtq-hug-arms-left { left: 4px; transform: rotate(15deg); }
.gtq-hug-arms-right { right: 4px; transform: rotate(-15deg) scaleX(-1); }

.gtq-basket-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(139, 69, 19, 0.8) 100%);
  padding: 4px 10px;
  border-radius: 50% 50% 40% 40%;
  border: 2px solid #ff9f43;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 2px 6px rgba(255, 215, 0, 0.5);
  animation: basket-glow-bounce 1.5s infinite alternate;
}

@keyframes basket-glow-bounce {
  from { box-shadow: 0 4px 10px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255, 215, 0, 0.4); }
  to { box-shadow: 0 4px 18px rgba(255, 215, 0, 0.7), inset 0 2px 8px rgba(255, 215, 0, 0.8); }
}

.basket-icon {
  font-size: 44px;
  line-height: 1;
}

.basket-coins-glow {
  position: absolute;
  top: -8px;
  font-size: 20px;
  filter: drop-shadow(0 0 8px var(--gold-primary));
  animation: coin-pop-float 1s infinite ease-in-out alternate;
}

@keyframes coin-pop-float {
  from { transform: translateY(0) scale(0.9); }
  to { transform: translateY(-4px) scale(1.15); }
}

.gtq-funny-feet {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: -8px;
  z-index: 2;
}

.foot-boot {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.catcher-container.is-moving .gtq-character-wrapper {
  animation: gtq-funny-run-wobble 0.16s infinite alternate;
}

@keyframes gtq-funny-run-wobble {
  0% { transform: rotate(-8deg) translateY(-4px); }
  100% { transform: rotate(8deg) translateY(0); }
}

.catcher-container.is-moving .foot-left {
  animation: foot-step-l 0.16s infinite alternate;
}

.catcher-container.is-moving .foot-right {
  animation: foot-step-r 0.16s infinite alternate;
}

@keyframes foot-step-l {
  0% { transform: translateY(-5px) rotate(-15deg); }
  100% { transform: translateY(2px) rotate(15deg); }
}

@keyframes foot-step-r {
  0% { transform: translateY(2px) rotate(15deg); }
  100% { transform: translateY(-5px) rotate(-15deg); }
}

.catcher-container.catcher-catch-bounce .gtq-big-bald-head {
  animation: head-catch-pop 0.25s ease-out;
}

.catcher-container.catcher-catch-bounce .gtq-basket-center {
  animation: basket-catch-pop 0.25s ease-out;
}

@keyframes head-catch-pop {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.18) translateY(-6px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes basket-catch-pop {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.3) translateY(4px); }
  100% { transform: scale(1) translateY(0); }
}

.catch-popups-layer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  pointer-events: none;
}

.catch-popup-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: var(--gold-primary);
  text-shadow: 0 0 10px var(--gold-primary);
  white-space: nowrap;
  animation: popup-float-up 0.8s ease-out forwards;
}

@keyframes popup-float-up {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -20px) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -40px) scale(1); }
}

/* Header Total Points Big Badge */
.header-total-points-big {
  font-family: var(--font-display);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 159, 67, 0.25));
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  display: flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.header-total-points-big:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.points-icon {
  font-size: 18px;
  margin-right: 2px;
}

.large-points-num {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 12px var(--gold-primary), 0 0 20px var(--gold-primary);
  letter-spacing: 0.5px;
}

.points-unit {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-primary);
}

.pts-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-primary);
  font-style: normal;
  margin-left: 4px;
  opacity: 0.9;
}

/* Slacking Todo Checklist (带薪拉屎打勾, 听歌摸鱼, 尿尿次数) */
.slacking-todo-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.todo-item:hover {
  background: rgba(255, 215, 0, 0.06);
  border-color: rgba(255, 215, 0, 0.2);
}

.todo-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.todo-checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--gold-primary);
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.todo-checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--cyber-green);
  border-color: var(--cyber-green);
  box-shadow: 0 0 12px var(--cyber-green);
}

.todo-checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  color: #000;
  font-size: 14px;
  font-weight: 900;
}

.todo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.todo-status-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.pee-tag {
  background: rgba(255, 215, 0, 0.15) !important;
  color: var(--gold-primary) !important;
  border: 1px solid var(--gold-primary) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
  font-family: var(--font-display);
  font-weight: 800 !important;
}

.todo-item.is-completed {
  background: rgba(46, 213, 115, 0.1);
  border-color: rgba(46, 213, 115, 0.3);
}

.todo-item.is-completed .todo-status-tag {
  background: rgba(46, 213, 115, 0.2);
  color: var(--cyber-green);
  border: 1px solid rgba(46, 213, 115, 0.4);
}

/* Music Live Timer & Toggle Controls */
.music-todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.todo-music-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.todo-icon {
  font-size: 18px;
}

.music-timer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-timer-display {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--cyber-pink);
  background: rgba(255, 71, 87, 0.12);
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 71, 87, 0.3);
  letter-spacing: 0.5px;
}

.music-toggle-btn {
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(224, 86, 253, 0.2), rgba(104, 109, 224, 0.2));
  border: 1px solid rgba(224, 86, 253, 0.4);
  color: #e056fd;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.music-toggle-btn:hover {
  background: linear-gradient(135deg, #e056fd, #686de0);
  color: #fff;
  box-shadow: 0 0 15px rgba(224, 86, 253, 0.6);
}

.music-toggle-btn.is-playing {
  background: linear-gradient(135deg, #2ed573, #10ac84);
  border-color: #2ed573;
  color: #fff;
  box-shadow: 0 0 15px rgba(46, 213, 115, 0.6);
}

/* Urine Health Color Bar & Hydration Station Styling */
.urine-health-box {
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.urine-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.urine-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.urine-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 8px var(--gold-primary));
}

.urine-label {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.urine-title-group h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-primary);
  margin-top: 2px;
}

.water-count-tag {
  font-size: 12px;
  color: var(--cyber-blue);
  background: rgba(0, 242, 254, 0.12);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.water-encourage-banner {
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(255, 215, 0, 0.12));
  border: 1px dashed rgba(0, 242, 254, 0.4);
  margin: 2px 0;
}

.encourage-text {
  font-size: 13px;
  font-weight: 800;
  color: var(--cyber-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Dynamic Hydration Scale Track & Cursor Indicator */
.urine-scale-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 4px 0;
}

.urine-bar-track {
  position: relative;
  height: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 215, 0, 0.35);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 0, 0, 0.4);
  overflow: visible;
  margin-top: 26px;
}

.urine-bar-fill-dynamic {
  height: 100%;
  width: 0%;
  border-radius: 14px;
  background: linear-gradient(90deg, #ff4757 0%, #ff9f43 25%, #ffd700 50%, #2ed573 75%, #00f2fe 100%);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.urine-bar-fill-dynamic.target-reached {
  background: linear-gradient(90deg, #ffd700 0%, #2ed573 40%, #00f2fe 80%, #ffffff 100%);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.9), inset 0 1px 0 #ffffff;
}

.urine-cursor-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.urine-cursor-pin::after {
  content: '';
  width: 4px;
  height: 34px;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0 0 14px #00f2fe, 0 0 20px #ffffff;
  border: 1px solid #00c6ff;
}

.cursor-droplet {
  font-size: 22px;
  margin-bottom: -6px;
  filter: drop-shadow(0 0 10px #00f2fe);
  animation: float-droplet 1.4s infinite ease-in-out alternate;
}

@keyframes float-droplet {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-4px) scale(1.15); }
}

.cursor-tooltip {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #151930, #090b14);
  border: 1.5px solid var(--cyber-blue);
  color: var(--cyber-blue);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.scale-ticks-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tick-label {
  font-weight: 600;
}

.tick-label.center-tick {
  color: var(--gold-primary);
  font-weight: 800;
}

.urine-footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

#water-timer-text {
  color: var(--gold-primary);
  font-weight: 700;
}

/* Rate Breakdown Wrapper & Sub Privacy Toggle */
.rate-breakdown-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rate-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.breakdown-title-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.eye-toggle-btn-sub {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
  padding: 3px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.eye-toggle-btn-sub:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.eye-toggle-btn-sub.is-masked {
  background: rgba(255, 71, 87, 0.2);
  border-color: var(--cyber-pink);
  color: var(--cyber-pink);
}

/* Ant Forest Style Hydration Energy Orbs System */
.ant-forest-energy-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.forest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forest-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyber-green);
}

.orbs-count-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyber-green);
  background: rgba(46, 213, 115, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.energy-orbs-stage {
  min-height: 110px;
  background: radial-gradient(circle at 50% 50%, rgba(46, 213, 115, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-radius: 16px;
  border: 1px dashed rgba(46, 213, 115, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 16px;
}

.ant-energy-orb {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  animation: orb-float 2.2s infinite ease-in-out alternate;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.ant-energy-orb:hover {
  transform: scale(1.18) translateY(-4px);
}

.ant-energy-orb:active {
  transform: scale(0.9);
}

.ant-energy-orb.type-water {
  background: radial-gradient(circle at 35% 35%, #96ffb4 0%, #2ed573 55%, #10ac84 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(46, 213, 115, 0.7);
  color: #063819;
}

.ant-energy-orb.type-pee {
  background: radial-gradient(circle at 35% 35%, #fff066 0%, #ffd700 55%, #ff9f43 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.85);
  color: #5c3c00;
  animation: orb-float 1.8s infinite ease-in-out alternate;
}

.ant-energy-orb.type-poop {
  background: radial-gradient(circle at 35% 35%, #eccc68 0%, #b58236 55%, #744d18 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(181, 130, 54, 0.8);
  color: #fff;
}

.ant-energy-orb.type-music {
  background: radial-gradient(circle at 35% 35%, #e056fd 0%, #be2edd 55%, #686de0 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 22px rgba(224, 86, 253, 0.85);
  color: #fff;
}

.ant-energy-orb.type-chat {
  background: radial-gradient(circle at 35% 35%, #70a1ff 0%, #1e90ff 55%, #3742fa 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 22px rgba(30, 144, 255, 0.85);
  color: #fff;
  animation: orb-float 2.0s infinite ease-in-out alternate;
}

.ant-energy-orb.type-phone {
  background: radial-gradient(circle at 35% 35%, #ff7af5 0%, #ff4757 55%, #5f27cd 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 22px rgba(255, 71, 87, 0.85);
  color: #fff;
  animation: orb-float 1.7s infinite ease-in-out alternate;
}

.orb-type-icon {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 2px;
}

.ant-energy-orb.is-maturing {
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.2) 0%, rgba(100, 120, 140, 0.35) 100%) !important;
  border: 2px dashed rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  opacity: 0.85;
}

.ant-energy-orb.is-maturing:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3) !important;
}

.maturing-timer {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-top: 2px;
}

.orb-val {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.orb-sub {
  font-size: 10px;
  font-weight: 700;
}

@keyframes orb-float {
  0% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
  100% { transform: translateY(3px) rotate(-1deg); }
}

.ant-energy-orb.is-collecting {
  animation: orb-collect-fly 0.5s ease-in forwards !important;
}

@keyframes orb-collect-fly {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.4) translateY(-30px); opacity: 0.8; }
  100% { transform: scale(0.1) translateY(-80px); opacity: 0; }
}

.forest-tip {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Rate Breakdown Row */
.rate-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rate-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.rate-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--cyber-blue);
}

/* Work Time Progress Section */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.progress-labels strong {
  color: var(--text-main);
}

.progress-bar-container {
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyber-blue), var(--gold-primary), var(--gold-secondary));
  border-radius: 10px;
  box-shadow: 0 0 15px var(--gold-primary);
  transition: width 0.5s ease;
}

/* Slack-Off Multipliers Card */
.slack-action-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.status-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
}

.status-pill.idle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.status-pill.active {
  background: rgba(255, 159, 67, 0.2);
  color: var(--gold-secondary);
  border: 1px solid var(--gold-secondary);
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.4);
  animation: pulse-glow 1.5s infinite alternate;
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 5px var(--gold-secondary); }
  to { box-shadow: 0 0 20px var(--gold-secondary); }
}

/* Active Slack Timer Panel */
.active-slack-panel {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 159, 67, 0.1);
  border: 1px solid rgba(255, 159, 67, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.active-slack-panel.hidden {
  display: none;
}

.slack-timer-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-secondary);
}

.slack-progress-bg {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  overflow: hidden;
}

.slack-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
  transition: width 1s linear;
}

/* Minigame Playground Section */
.minigame-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-score-badge {
  font-size: 13px;
  color: var(--cyber-blue);
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.demand-arena {
  min-height: 240px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arena-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.arena-icon {
  font-size: 32px;
  opacity: 0.6;
}

/* Floating Demand Bubbles */
.demand-bubble {
  position: absolute;
  padding: 10px 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.85), rgba(255, 107, 129, 0.85));
  border: 2px solid #ff6b81;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
  white-space: nowrap;
  animation: float-pulse 3s infinite ease-in-out alternate;
  transition: transform 0.15s ease;
  z-index: 10;
}

.demand-bubble:hover {
  transform: scale(1.1);
  border-color: #fff;
  box-shadow: 0 0 25px rgba(255, 71, 87, 0.8);
}

.demand-bubble:active {
  transform: scale(0.9);
}

@keyframes float-pulse {
  0% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
  100% { transform: translateY(4px) rotate(-1deg); }
}

/* Achievements & Milestone Ladder */
.achievements-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
}

.text-link-btn:hover {
  opacity: 1;
}

/* Husband Custom Gift Banner */
.husband-gift-banner {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.15) 0%, rgba(255, 159, 67, 0.15) 100%);
  border: 1px solid rgba(255, 107, 129, 0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gift-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gift-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 8px var(--cyber-pink));
}

.gift-title-group {
  flex: 1;
}

.gift-label {
  font-size: 11px;
  color: var(--text-muted);
}

.gift-title-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.gift-pct {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-primary);
}

.gift-progress-bg {
  height: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
}

.gift-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4757, var(--gold-primary));
  box-shadow: 0 0 12px var(--gold-primary);
  transition: width 0.5s ease;
}

.gift-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Immediate Next Target Sprint Card */
.next-target-box {
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(255, 215, 0, 0.12));
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.next-target-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.next-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyber-blue);
}

.next-target-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-primary);
}

.next-target-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.next-icon {
  font-size: 30px;
}

.next-info {
  flex: 1;
}

.next-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.next-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.next-target-progress-bg {
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-top: 4px;
}

.next-target-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe, var(--gold-primary), #ff9f43);
  box-shadow: 0 0 12px var(--gold-primary);
  transition: width 0.4s ease;
}

/* Milestones List (Ordered Low to High with Live Internal Progress Bars) */
.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.milestones-list::-webkit-scrollbar {
  width: 6px;
}

.milestones-list::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 4px;
}

.milestone-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.milestone-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.milestone-item.unlocked {
  background: rgba(46, 213, 115, 0.1);
  border-color: rgba(46, 213, 115, 0.3);
}

.milestone-icon {
  font-size: 24px;
}

.milestone-details {
  flex: 1;
}

.milestone-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.milestone-cost {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.milestone-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.milestone-status.locked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.milestone-status.unlocked-tag {
  background: rgba(46, 213, 115, 0.2);
  color: var(--cyber-green);
  border: 1px solid rgba(46, 213, 115, 0.4);
}

.milestone-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.milestone-progress-bg {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.milestone-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyber-blue), var(--gold-primary));
  box-shadow: 0 0 8px var(--gold-primary);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.milestone-item.unlocked .milestone-progress-fill {
  background: linear-gradient(90deg, #2ed573, #7bed9f);
  box-shadow: 0 0 10px var(--cyber-green);
}

.milestone-pct-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
  min-width: 44px;
  text-align: right;
}

.milestone-item.unlocked .milestone-pct-text {
  color: var(--cyber-green);
}

/* Role Selection Cards Grid */
.role-modal-wide {
  max-width: 680px;
}

.sub-tip {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}

.role-card:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.role-card.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 159, 67, 0.15));
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.role-avatar {
  font-size: 32px;
  margin-bottom: 6px;
}

.role-details h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.role-details p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}

.config-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

/* Footer Quote */
.app-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-top: 10px;
  padding: 16px 24px;
}

.quote-text {
  font-size: 14px;
  font-weight: 500;
  color: #ffeaa7;
  font-style: italic;
}

.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
}

kbd {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--cyber-blue);
}

/* Action Buttons General Styling */
.action-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.small-btn {
  padding: 8px 14px;
  font-size: 12px;
}

.gold-btn {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.danger-outline-btn {
  background: none;
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: #ff6b81;
}

.danger-outline-btn:hover {
  background: rgba(255, 71, 87, 0.15);
}

/* Modal Dialogs */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modal-slide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-slide {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  color: #fff;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.close-btn:hover { color: #fff; }

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group.half {
  flex: 1;
}

.form-group label {
  font-size: 13px;
  color: var(--text-muted);
}

.form-group input {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-family);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* Affirmation Card Inside Modal */
.affirmation-card-body {
  padding: 30px 20px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.card-decor-icon {
  font-size: 40px;
}

.card-quote {
  font-size: 16px;
  line-height: 1.6;
  color: #ffeaa7;
  font-weight: 600;
}

.card-author {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Ultra-Realistic AutoCAD Boss Key Screen Overlay
   ========================================================================== */
.boss-key-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1e1e1e;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #d4d4d4;
}

.boss-key-screen.hidden {
  display: none;
}

.boss-key-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* CAD Top Title Bar */
.cad-window-titlebar {
  background: #181818;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #282828;
  font-size: 12px;
  color: #cccccc;
}

.cad-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cad-app-red-logo {
  font-weight: 900;
  color: #ff3b30;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.cad-window-filename {
  font-weight: 600;
  color: #e0e0e0;
}

.cad-esc-hint-badge {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.4);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* CAD Classic Menu Bar */
.cad-classic-menu {
  background: #252526;
  display: flex;
  gap: 16px;
  padding: 4px 12px;
  font-size: 12px;
  color: #cccccc;
  border-bottom: 1px solid #333333;
}

.cad-classic-menu span {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
}

.cad-classic-menu span:hover {
  background: #37373d;
  color: #ffffff;
}

/* Professional CAD Ribbon Toolbar */
.cad-ribbon-container {
  background: #2d2d30;
  border-bottom: 2px solid #3e3e42;
  display: flex;
  flex-direction: column;
}

.cad-ribbon-tabs {
  display: flex;
  background: #252526;
  padding-left: 8px;
  border-bottom: 1px solid #333333;
}

.cad-ribbon-tab {
  padding: 6px 14px;
  font-size: 12px;
  color: #999999;
  cursor: pointer;
  border-right: 1px solid transparent;
}

.cad-ribbon-tab.active {
  background: #2d2d30;
  color: #ffffff;
  font-weight: 700;
  border-top: 2px solid #007acc;
}

.cad-ribbon-panels {
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  height: 68px;
  align-items: center;
  overflow-x: auto;
}

.cad-ribbon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid #3f3f46;
  padding-right: 12px;
  height: 100%;
}

.cad-ribbon-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cad-tool-big-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  cursor: pointer;
  color: #d4d4d4;
  font-size: 11px;
}

.cad-tool-big-btn:hover {
  background: #3e3e42;
  color: #ffffff;
  border-color: #007acc;
}

.cad-tool-icon {
  font-size: 18px;
}

.cad-ribbon-group-title {
  font-size: 10px;
  color: #888888;
  margin-top: auto;
}

.cad-layer-selector {
  background: #1e1e1e;
  color: #00f2fe;
  border: 1px solid #3c3c3c;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  font-family: monospace;
}

/* CAD Middle Workspace Split Screen */
.cad-middle-workspace {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

.cad-properties-sidebar {
  width: 210px;
  background: #252526;
  border-right: 1px solid #333333;
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.cad-sidebar-header {
  background: #333337;
  padding: 6px 10px;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid #3e3e42;
}

.cad-prop-table {
  width: 100%;
  border-collapse: collapse;
}

.cad-prop-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #2d2d30;
  color: #aaaaaa;
}

.cad-prop-table td.val {
  color: #ffffff;
  font-weight: 600;
}

/* Drawing Canvas Main Viewport */
.cad-viewport-container {
  flex: 1;
  background: #14171d;
  position: relative;
  overflow: hidden;
}

.cad-architecture-svg {
  width: 100%;
  height: 100%;
}

/* Dynamic Coordinate Crosshair */
.cad-crosshair-hud {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* AutoCAD Bottom Console Command Line */
.cad-bottom-cmdline {
  background: #1e1e1e;
  border-top: 1px solid #333333;
  padding: 6px 12px;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 12px;
  color: #d4d4d4;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cad-cmd-history {
  color: #858585;
  font-size: 11px;
}

.cad-cmd-active {
  color: #569cd6;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cad-cmd-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  flex: 1;
}

/* AutoCAD Bottom Status Bar */
.cad-bottom-statusbar {
  background: #007acc;
  color: #ffffff;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
}

.cad-tabs-left {
  display: flex;
  gap: 2px;
}

.cad-model-tab {
  background: #1e1e1e;
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 3px 3px 0 0;
  font-weight: 700;
}

.cad-layout-tab {
  background: rgba(0, 0, 0, 0.2);
  color: #d4d4d4;
  padding: 2px 10px;
  border-radius: 3px 3px 0 0;
}

.cad-status-toggles {
  display: flex;
  gap: 12px;
}
