/* ==========================================================================
   PSArt Portal - Web & Desktop Unified Design System
   Studio Tabart 2026
   ========================================================================== */

:root {
  --bg-base: #070913;
  --bg-panel: rgba(15, 20, 38, 0.75);
  --bg-card: rgba(22, 28, 52, 0.65);
  --bg-card-hover: rgba(30, 38, 70, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);

  --accent-ps: #00439c;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-main: 'Pretendard', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-main);
  height: 100vh;
  overflow: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glow */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
}

.orb-1 {
  top: -10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
}

.orb-2 {
  bottom: -15%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
}

/* App Layout */
.app-layout {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: 270px;
  background: rgba(11, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
}

.back-home-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.back-home-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--border-glow);
  transform: translateX(-2px);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px -3px rgba(99, 102, 241, 0.5);
  flex-shrink: 0;
}

.brand-info {
  overflow: hidden;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: block;
}

.brand-name .dot {
  color: var(--accent-cyan);
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-indigo);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.08));
  color: #fff;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.15);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 0 4px 4px 0;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.badge-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  margin-left: auto;
  transition: all 0.3s ease;
}

.badge-indicator.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.system-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-title {
  font-size: 0.78rem;
  font-weight: 700;
  display: block;
}

.status-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
}

/* Main Viewport */
.main-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  position: relative;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.panel-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.panel-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.quick-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-indigo);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Dashboard Hero Card */
.dashboard-hero-card {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  background: linear-gradient(135deg, rgba(20, 26, 50, 0.7), rgba(12, 16, 32, 0.8));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.dashboard-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan), transparent);
}

.hero-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.console-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.console-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.console-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.identity-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.console-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  max-width: 560px;
}

.hero-top-bar .meta-stats-row {
  margin: 0;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* Center Stage for Master TV Button */
.hero-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 12px 0 24px 0;
  position: relative;
}

.hero-control-grid.centered-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 18px auto;
}

.hotkey-tip-banner.centered-banner {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.hero-left {
  max-width: 580px;
  z-index: 2;
}

.console-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.console-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
}

.status-chip {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-chip.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.console-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.console-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.meta-stats-row {
  display: flex;
  gap: 24px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

.meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-graphic {
  position: relative;
  z-index: 2;
}

.graphic-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  position: relative;
}

.pulse-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.4);
  animation: rotateClockwise 25s linear infinite;
}

.pulse-ring.ring-2 {
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  border: 1px dotted rgba(6, 182, 212, 0.3);
  animation: rotateCounter 35s linear infinite;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-glow:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.btn-wake {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.4) inset;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wake:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform: translateY(-2px);
}

.btn-wake.waking {
  animation: pulseWake 1.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulseWake {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4), 0 0 0 1px rgba(245, 158, 11, 0.6) inset;
    opacity: 0.9;
  }
  50% {
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.85), 0 0 0 2px rgba(255, 255, 255, 0.9) inset;
    opacity: 1;
    transform: scale(1.02);
  }
}

/* Gamepad Lab Workbench */
.gamepad-workbench {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.controller-visualizer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.controller-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.device-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-indigo);
  letter-spacing: 1.5px;
}

.device-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 2px;
}

.pad-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* SVG Gamepad Styling */
.controller-display-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.gamepad-svg {
  width: 100%;
  max-width: 620px;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
}

.gp-body {
  fill: #161b2e;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2;
}

.gp-grip {
  fill: #101424;
}

.gp-touchpad {
  fill: #1e243d;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
  transition: all 0.1s ease;
}

.gp-touchpad.active {
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.gp-touchpad-text {
  fill: var(--text-dim);
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.gp-btn {
  fill: #222944;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
  transition: all 0.08s ease;
}

.gp-btn.active {
  fill: var(--accent-cyan);
  stroke: #fff;
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.gp-btn-act.active {
  fill: var(--accent-purple);
  filter: drop-shadow(0 0 10px var(--accent-purple));
}

.gp-btn-ps {
  fill: #00439c;
  stroke: rgba(255, 255, 255, 0.3);
}

.gp-btn-ps.active {
  fill: #3b82f6;
  filter: drop-shadow(0 0 12px #3b82f6);
}

.gp-btn-label, .gp-ps-icon {
  fill: #fff;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
  font-family: var(--font-mono);
}

.gp-stick-base {
  fill: #101424;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}

.gp-stick-head {
  fill: #252e4d;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 2;
  transition: transform 0.04s ease;
}

.gp-stick-head.active {
  fill: var(--accent-indigo);
  filter: drop-shadow(0 0 10px var(--accent-indigo));
}

.gp-stick-text {
  fill: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
  font-family: var(--font-mono);
}

/* Analog Gauges */
.analog-gauges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.gauge-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gauge-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.gauge-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
  transition: width 0.05s ease;
}

.gauge-val {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pairing Wizard */
.pairing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pairing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.step-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-indigo);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.pairing-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.input-with-btn {
  display: flex;
  gap: 10px;
}

.input-field {
  flex: 1;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.steps-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.steps-box ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.steps-box strong {
  color: #fff;
}

.helper-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-size: 0.84rem;
}

/* Settings Card */
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 10px 32px;
  max-width: 800px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-glass);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.setting-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.select-field {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  min-width: 220px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-field:focus {
  border-color: var(--accent-indigo);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(18, 24, 46, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(10, 30, 25, 0.95);
}

.toast.warn {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(35, 25, 10, 0.95);
}

.toast.error {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(35, 12, 18, 0.95);
}

/* Colors & Helpers */
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-emerald { color: var(--accent-emerald); }
.font-mono { font-family: var(--font-mono); }

/* ==========================================================================
   Method Selection Boxes (Step 1 PSN ID)
   ========================================================================== */
.method-box {
  background: rgba(15, 22, 45, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.method-box.recommended {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(10, 30, 25, 0.45);
}

.method-box:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(20, 28, 55, 0.7);
}

.method-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.method-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.method-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  background: rgba(100, 116, 139, 0.3);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.2);
  white-space: nowrap;
}

.method-badge.recommended {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.method-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   Account Status Card & Pairing Status Card
   ========================================================================== */
.account-status-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(15, 22, 45, 0.5);
  margin-top: 16px;
  transition: all 0.4s ease;
  min-height: 60px;
}

.account-status-card > svg,
.account-status-card > i {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--text-dim);
  margin-top: 2px;
}

.account-status-card h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.account-status-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.account-status-card.loading {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
  animation: statusPulse 2s ease-in-out infinite;
}

.account-status-card.loading > svg,
.account-status-card.loading > i {
  color: var(--accent-indigo);
}

.account-status-card.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.account-status-card.success > svg,
.account-status-card.success > i {
  color: #34d399;
}

.account-status-card.error {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}

.account-status-card.error > svg,
.account-status-card.error > i {
  color: #f87171;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Spin Animation */
.spin {
  animation: spinAnimation 1.2s linear infinite;
}

@keyframes spinAnimation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Button Glow Enhancement */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 60%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Button disabled state */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Hotkey & Immersion Tip Banner */
.hotkey-tip-banner {
  margin-top: 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hotkey-tip-banner .tip-icon {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hotkey-tip-banner .tip-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
  margin-bottom: 3px;
}

.hotkey-tip-banner .tip-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.hotkey-tip-banner code {
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  color: #38bdf8;
  font-size: 0.85rem;
}

/* ==========================================================================
   13. Redesigned Symmetrical Hero Control Buttons (2-Col Grid)
   ========================================================================== */
.hero-control-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
  margin-bottom: 8px;
}

.hero-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-action-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-action-card .action-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.hero-action-card .action-card-icon svg {
  width: 22px;
  height: 22px;
}

.hero-action-card .action-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-action-card .card-main-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hero-action-card .card-sub-desc {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Card 1: Wakeup (Gold/Amber Theme) */
.hero-action-card.card-wake {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
  border-color: rgba(245, 158, 11, 0.35);
}

.hero-action-card.card-wake .action-card-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.hero-action-card.card-wake:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.hero-action-card.card-wake:hover .action-card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.hero-action-card.card-wake.waking {
  animation: pulseWakeCard 1.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulseWakeCard {
  0%, 100% {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
  }
  50% {
    border-color: rgba(245, 158, 11, 0.9);
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.6);
    transform: scale(1.02);
  }
}

/* Card 2: Chiaki GUI (Slate Blue Theme) */
.hero-action-card.card-gui {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(30, 41, 59, 0.5));
  border-color: rgba(99, 102, 241, 0.25);
}

.hero-action-card.card-gui .action-card-icon {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.hero-action-card.card-gui:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(30, 41, 59, 0.7));
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.hero-action-card.card-gui:hover .action-card-icon {
  transform: scale(1.08);
}

/* Stream Active Bar */
.stream-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  margin-top: 14px;
}

.pulsing-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ==========================================================================
   14. Interactive Master TV Stream Launcher (Center Stage Hero)
   ========================================================================== */
.hero-graphic-interactive {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  border-radius: 28px;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.08) 50%, transparent 75%);
  user-select: none;
}

.hero-graphic-interactive:hover {
  transform: translateY(-4px) scale(1.04);
}

.hero-graphic-interactive .graphic-circle {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.35));
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.3), inset 0 0 20px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.hero-graphic-interactive:hover .pulse-ring {
  border-color: rgba(56, 189, 248, 0.6);
}

.hero-graphic-interactive:hover .graphic-circle {
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.55), 0 0 0 3px rgba(56, 189, 248, 0.8), inset 0 0 25px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(99, 102, 241, 0.5));
}

.hero-graphic-interactive .graphic-tv-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-graphic-interactive .icon-tv {
  width: 66px;
  height: 66px;
  color: #ffffff;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
}

.hero-graphic-interactive:hover .icon-tv {
  transform: scale(0.96);
}

.hero-graphic-interactive .play-overlay-badge {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.28s ease;
}

.hero-graphic-interactive:hover .play-overlay-badge {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
}

.hero-graphic-interactive .icon-play {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  margin-left: 3px;
}

.hero-graphic-interactive .pulse-ring {
  position: absolute;
  top: -18px;
  left: -18px;
  right: -18px;
  bottom: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.45);
  animation: rotateClockwise 25s linear infinite;
}

.hero-graphic-interactive .pulse-ring.ring-2 {
  top: -34px;
  left: -34px;
  right: -34px;
  bottom: -34px;
  border: 1px dotted rgba(6, 182, 212, 0.35);
  animation: rotateCounter 35s linear infinite;
}

.hero-graphic-interactive .pulse-ring.ring-3 {
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  width: auto;
  height: auto;
  border: 1px dashed rgba(56, 189, 248, 0.2);
  animation: rotateClockwise 45s linear infinite;
}

.hero-play-label {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-play-label .label-heading {
  font-size: 1.25rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-play-label .label-caption {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 5px;
}

/* ==========================================================================
   15. Security Hardening & Auth Modal
   ========================================================================== */
.security-status-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}

.security-status-box.authenticated {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.security-status-box.authenticated .security-title {
  color: #34d399;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.security-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
}

.security-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0 0 10px 0;
}

.btn-auth-action {
  width: 100%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-auth-action:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

/* Auth Modal Dialog */
.auth-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.auth-modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.auth-modal-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  position: relative;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-modal-header .auth-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #38bdf8;
}

.auth-modal-header .auth-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.auth-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 6px;
}

.auth-modal-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
}

.auth-input-group {
  margin-bottom: 18px;
}

.auth-input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: border-color 0.2s;
}

.auth-input-wrap:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.auth-input-wrap svg {
  width: 18px;
  height: 18px;
  color: #64748b;
  margin-right: 10px;
}

.auth-input-wrap input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
}

.auth-warning-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: #fcd34d;
}

.auth-warning-notice svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}

/* ==========================================================================
   16. Mobile Header & Responsive Media Queries
   ========================================================================== */
.mobile-header {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.sidebar-close-btn {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

/* Tablet & Mobile Screens (<= 920px) */
@media screen and (max-width: 920px) {
  .app-layout {
    flex-direction: column;
  }

  /* Show Mobile Header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 800;
  }

  .mobile-btn,
  .mobile-auth-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-btn svg,
  .mobile-auth-btn svg {
    width: 22px;
    height: 22px;
    stroke: #38bdf8;
    display: block;
  }

  .mobile-btn:active,
  .mobile-auth-btn:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
  }

  .mobile-brand svg {
    width: 24px;
    height: 24px;
    stroke: #38bdf8;
    display: block;
  }

  /* Off-Canvas Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 290px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.7);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px;
    cursor: pointer;
    margin-left: auto;
  }

  .sidebar-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
  }

  .sidebar-backdrop.show {
    display: block;
  }

  /* Main Viewport Expands 100% */
  .main-viewport {
    width: 100%;
    padding: 16px 14px 90px 14px; /* Extra padding for bottom nav */
  }

  /* Hero Card Mobile Layout - 100% Vertical Responsive Flow */
  .dashboard-hero-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 24px 18px !important;
    gap: 20px !important;
  }

  .hero-left {
    width: 100% !important;
    max-width: 100% !important;
  }

  .console-identity {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    text-align: left !important;
  }

  .console-icon-wrap {
    width: 46px !important;
    height: 46px !important;
    flex-shrink: 0 !important;
  }

  .console-name {
    font-size: 1.25rem !important;
    white-space: normal !important;
    word-break: keep-all !important;
    line-height: 1.3 !important;
  }

  .hero-desc {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    word-break: keep-all !important;
  }

  .meta-stats-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    width: 100% !important;
  }

  .meta-item {
    flex: 1 1 45% !important;
  }

  .hero-control-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-action-card {
    width: 100% !important;
    padding: 14px 16px !important;
  }

  .hero-action-card .card-main-title {
    font-size: 0.95rem !important;
  }

  .hotkey-tip-banner {
    width: 100% !important;
  }

  /* Master TV Launcher - Centered on Mobile */
  .hero-graphic,
  .hero-graphic-interactive {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 0 !important;
    margin: 4px 0 0 0 !important;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.12), transparent 70%) !important;
  }

  .hero-graphic-interactive .graphic-circle {
    width: 130px !important;
    height: 130px !important;
  }

  .hero-graphic-interactive .icon-tv {
    width: 54px !important;
    height: 54px !important;
  }

  .hero-graphic-interactive .play-overlay-badge {
    width: 34px !important;
    height: 34px !important;
  }

  .hero-graphic-interactive .pulse-ring {
    top: -12px !important;
    left: -12px !important;
    right: -12px !important;
    bottom: -12px !important;
  }

  .hero-graphic-interactive .pulse-ring.ring-2 {
    top: -24px !important;
    left: -24px !important;
    right: -24px !important;
    bottom: -24px !important;
  }

  .hero-graphic-interactive .pulse-ring.ring-3 {
    display: none !important;
  }

  /* Mobile Bottom Navigation */
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(13, 17, 30, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-glass);
    z-index: 900;
    padding: 0 10px;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    flex: 1;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s;
  }

  .bottom-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .bottom-nav-item.active {
    color: #38bdf8;
  }

  .bottom-nav-item.active svg {
    stroke: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
  }
}

/* Very Small Mobile Screens (<= 480px) */
@media screen and (max-width: 480px) {
  .panel-title {
    font-size: 1.35rem;
  }
  .console-name {
    font-size: 1.15rem;
  }
  .hero-action-card {
    padding: 14px;
  }
  .hero-action-card .card-main-title {
    font-size: 0.95rem;
  }
}
