/* ==============================================================
   AVOKARLOSS WEBCONTROL — Apple White Mode (Clean Minimalist Style)
   ============================================================== */

:root {
  --bg-body: #fbfbfd;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.07);
  --border-focus: rgba(0, 113, 227, 0.45);
  
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-green: #34c759;
  --apple-red: #ff3b30;
  --apple-orange: #ff9500;

  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-muted: #a1a1a6;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.035), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.15);

  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body.apple-whitemode {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* -------------------------------------------------------------
   Ambient Light Background Orbs (Apple Style Mesh Glow)
   ------------------------------------------------------------- */
.ambient-glow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  will-change: transform;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #e0f2fe 0%, #bfdbfe 100%);
  top: -100px;
  left: 15%;
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f3e8ff 0%, #ede9fe 100%);
  top: 30%;
  right: -80px;
  animation: floatOrbReverse 26s infinite alternate ease-in-out;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #fef3c7 0%, #fee2e2 100%);
  bottom: -100px;
  left: 25%;
  opacity: 0.35;
  animation: floatOrb 28s infinite alternate ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.08); }
  100% { transform: translate(-30px, 70px) scale(0.96); }
}

@keyframes floatOrbReverse {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -30px) scale(1.06); }
  100% { transform: translate(40px, 50px) scale(0.94); }
}

/* -------------------------------------------------------------
   Navigation Bar (Apple Light Style)
   ------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.brand-divider {
  color: var(--border-subtle);
}

.brand-context {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

.user-status-dot {
  width: 7px;
  height: 7px;
  background: var(--apple-green);
  border-radius: 50%;
}

.user-label {
  color: var(--text-primary);
  font-weight: 500;
}

.logout-link {
  background: none;
  border: none;
  color: var(--apple-red);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding-left: 0.4rem;
  border-left: 1px solid var(--border-subtle);
  transition: opacity var(--transition-fast);
}

.logout-link:hover {
  opacity: 0.75;
}

/* Apple Buttons */
.apple-btn-primary {
  background: var(--apple-blue);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 1px 3px rgba(0, 113, 227, 0.25);
  transition: all var(--transition-fast);
}

.apple-btn-primary:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.02);
}

.apple-btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.apple-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

/* -------------------------------------------------------------
   View 1: Public Wartungsmodus
   ------------------------------------------------------------- */
.view-section {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
}

.maintenance-wrapper {
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-icon-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.status-icon-core {
  width: 58px;
  height: 58px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-blue);
  box-shadow: var(--shadow-sm);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-card);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  background: var(--apple-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}

.maintenance-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.maintenance-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 520px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  width: 100%;
  text-align: left;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

.card-icon-apple {
  color: var(--apple-blue);
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

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

/* -------------------------------------------------------------
   View 2: Logged-in Dashboard
   ------------------------------------------------------------- */
.dashboard-wrapper {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.tab-bar {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  margin-bottom: 2.25rem;
  max-width: 440px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab-content {
  display: none;
}

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

/* Miner Status Card */
.miner-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.miner-status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.status-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-beacon.green {
  background: var(--apple-green);
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}

.miner-title {
  font-weight: 600;
  font-size: 1rem;
}

.miner-meta code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.miner-actions {
  display: flex;
  gap: 0.65rem;
}

/* Add Streamer Form */
.add-streamer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-card);
}

.add-streamer-form {
  display: flex;
  gap: 0.75rem;
}

.input-with-icon {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.add-streamer-form input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.75rem 1rem 0.75rem 2.2rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.add-streamer-form input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.feedback-text {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

.feedback-text.success { color: var(--apple-green); }
.feedback-text.error { color: var(--apple-red); }

/* Section Subhead */
.section-subhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-subhead {
  margin-top: 2.5rem;
}

.section-subhead h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.subhead-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Streamers Grid */
.streamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.streamer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  transition: all var(--transition-smooth);
}

.streamer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

.streamer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.streamer-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.streamer-avatar {
  width: 36px;
  height: 36px;
  background: #f0f0f2;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.streamer-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.live-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.live-badge.live {
  background: rgba(52, 199, 89, 0.12);
  color: #15803d;
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.live-badge.offline {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.live-badge-dot {
  width: 6px;
  height: 6px;
  background: #15803d;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.6);
}

/* Timeframes Grid inside Card */
.streamer-timeframes-box {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.timeframe-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.timeframe-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  text-align: center;
}

.tf-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tf-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.tf-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tf-val.pts {
  color: #7c3aed;
}

.tf-val.wt {
  color: var(--apple-blue);
}

.stream-status-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.status-stream-meta {
  color: var(--text-secondary);
}

.status-stream-meta.live-text {
  color: #15803d;
  font-weight: 500;
}

/* 3-Second Hold to Delete Button (Apple Style) */
.hold-delete-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: rgba(255, 59, 48, 0.06);
  color: var(--apple-red);
  border: 1px solid rgba(255, 59, 48, 0.2);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.hold-delete-btn:hover {
  background: rgba(255, 59, 48, 0.12);
  border-color: var(--apple-red);
}

.hold-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--apple-red);
  opacity: 0.25;
  pointer-events: none;
}

.hold-delete-btn.holding .hold-progress-fill {
  width: 100%;
  transition: width 3s linear !important;
}

.hold-btn-text {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* -------------------------------------------------------------
   All-in-One Table
   ------------------------------------------------------------- */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.apple-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
  min-width: 800px;
}

.apple-table th {
  background: rgba(0, 0, 0, 0.02);
  padding: 0.85rem 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.apple-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
  white-space: nowrap;
}

.apple-table tr:last-child td {
  border-bottom: none;
}

.apple-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

/* -------------------------------------------------------------
   Tab 2: System Status & Live Console
   ------------------------------------------------------------- */
.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sys-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.sys-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.sys-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.sys-value small {
  font-size: 1rem;
  color: var(--text-secondary);
}

.sys-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Live Server Console Mirror (Spiegelung) */
.console-card {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  margin-bottom: 2rem;
}

.console-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.console-traffic-dots {
  display: flex;
  gap: 6px;
}

.console-traffic-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.console-title {
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
}

.console-badge-readonly {
  font-size: 0.7rem;
  color: #8b949e;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.console-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b949e;
  display: inline-block;
  transition: all var(--transition-fast);
}

.console-live-dot.active {
  background: var(--apple-green);
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.8);
}

.console-terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #c9d1d9;
  line-height: 1.6;
  max-height: 380px;
  min-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.console-empty-hint {
  color: #8b949e;
  text-align: center;
  padding: 3rem 1rem;
}

.console-line {
  margin-bottom: 0.25rem;
}

.console-footer-note {
  padding: 0.65rem 1.25rem;
  background: #161b22;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: #8b949e;
}

/* -------------------------------------------------------------
   Modal: Apple White Mode PIN Sheet
   ------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity var(--transition-smooth);
}

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

.modal-sheet {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  max-width: 360px;
  width: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(25px);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.modal-icon-badge {
  width: 48px;
  height: 48px;
  background: rgba(0, 113, 227, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--apple-blue);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.85rem;
}

.pin-entry-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pin-box {
  width: 48px;
  height: 58px;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.pin-box:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}

.pin-error-text {
  color: var(--apple-red);
  font-size: 0.82rem;
  min-height: 1.2rem;
  margin-bottom: 1rem;
}

.modal-footer-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Shake Animation */
.shake {
  animation: shakeX 0.4s ease-in-out;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastSlide 0.3s ease;
}

.toast.success { border-left: 3px solid var(--apple-green); }
.toast.error { border-left: 3px solid var(--apple-red); }

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

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .nav-container { padding: 0.75rem 1rem; }
  .view-section { padding: 3rem 1rem; }
  .add-streamer-form { flex-direction: column; }
  .miner-status-card { flex-direction: column; align-items: flex-start; }
  .streamers-grid { grid-template-columns: 1fr; }
}
