/* ==========================================================================
   ILLYVOIP LUXURY CYBER-DARK DESIGN SYSTEM
   Bespoke, High-End Telecom Interface (Non-Generic, Angular Chamfer Styling)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-space: #06080e;
  --bg-surface: #0b0f19;
  --bg-card: #111726;
  --bg-card-hover: #161e31;
  --bg-input: #080c14;
  
  --border-subtle: #1c2438;
  --border-focus: #00f2fe;
  --border-active: #4facfe;

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-violet: #8a2be2;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-crimson: #ef4444;
  --accent-crimson-glow: rgba(239, 68, 68, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyan: #38bdf8;

  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.35);
  --glow-crimson: 0 0 30px rgba(239, 68, 68, 0.4);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-space);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(138, 43, 226, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 80%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   BESPOKE ANGULAR CHAMFER & LUXURY CARDS
   ========================================================================== */

.cyber-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cyber-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.4), transparent);
  pointer-events: none;
}

.cyber-panel:hover {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 242, 254, 0.08);
}

/* Angular Cut Edge Accents */
.cut-corner {
  position: relative;
}
.cut-corner::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, transparent 50%, var(--border-subtle) 50%);
  pointer-events: none;
}

/* ==========================================================================
   TOP NAVIGATION & HEADER
   ========================================================================== */

.top-navbar {
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00f2fe, #4facfe, #8a2be2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.brand-badge svg {
  width: 24px;
  height: 24px;
  fill: #06080e;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title span {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Nav Status & User Pills */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-beacon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(17, 23, 38, 0.8);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 500;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  position: relative;
  transition: all 0.3s;
}

.status-dot.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
}
.status-dot.online::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-emerald);
  animation: pulse-ring 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.status-dot.connecting {
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
}

.status-dot.in-call {
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-icon-subtle {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-subtle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ==========================================================================
   MAIN DASHBOARD GRID LAYOUT
   ========================================================================== */

.app-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
  display: grid;
  grid-template-columns: 360px 1fr 380px;
  gap: 24px;
}

@media (max-width: 1200px) {
  .app-container {
    grid-template-columns: 1fr;
  }
}

/* Panel Headers */
.panel-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

.panel-body {
  padding: 20px 24px;
}

/* ==========================================================================
   PANEL 1: CALLER ID & SIP SETTINGS
   ========================================================================== */

.callerid-highlight-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.07), rgba(138, 43, 226, 0.07));
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 22px;
  position: relative;
}

.callerid-highlight-box .box-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.callerid-active-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.callerid-active-name {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Bespoke Inputs */
.cyber-input, .cyber-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: all 0.25s;
}

.cyber-input:focus, .cyber-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
  background: #0a0f1d;
}

.cyber-input.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* Quick SIP Lines List */
.sip-identities-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.sip-identity-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.sip-identity-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.3);
}

.sip-identity-item.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
}

.sip-id-info {
  display: flex;
  flex-direction: column;
}

.sip-id-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.sip-id-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
}

.sip-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Bespoke Buttons */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.cyber-btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #06080e;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.cyber-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
  background: linear-gradient(135deg, #38bdf8 0%, #00f2fe 100%);
}

.cyber-btn-primary:active {
  transform: translateY(0);
}

.cyber-btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.cyber-btn-outline:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
  background: rgba(0, 242, 254, 0.05);
}

.cyber-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.cyber-btn-success:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.cyber-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.cyber-btn-danger:hover {
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   PANEL 2: INSTANT SEARCH & DIALPAD ("ANLIK OLARAK İSTEDİĞİMİ ARAMA YERİ")
   ========================================================================== */

.dialer-screen {
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.destination-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.destination-input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  outline: none;
  text-align: center;
  padding: 0 45px 0 20px;
}

.destination-input::placeholder {
  color: #334155;
  font-weight: 400;
  font-size: 20px;
}

.btn-backspace {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-backspace:hover {
  color: var(--accent-crimson);
  background: rgba(239, 68, 68, 0.1);
}

/* Country quick buttons */
.country-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

.country-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.country-chip:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

/* Tactile 12-Key Dialpad */
.dialpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 320px;
  margin: 0 auto 24px;
}

.dialpad-key {
  height: 64px;
  background: linear-gradient(180deg, #161e31 0%, #101626 100%);
  border: 1px solid #1f2a42;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.dialpad-key::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
}

.dialpad-key:hover {
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 242, 254, 0.15);
}

.dialpad-key:active {
  transform: translateY(1px);
  background: #0d1320;
  border-color: var(--accent-cyan);
}

.dialpad-key:active::after {
  opacity: 1;
}

.key-digit {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.key-letters {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-top: 3px;
}

/* Call Actions Bar */
.call-actions-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.action-btn-main {
  height: 52px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   ACTIVE CALL DOCK & OSCILLOSCOPE WAVE
   ========================================================================== */

.active-call-dock {
  background: linear-gradient(135deg, #0f172a, #111a2f);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--glow-emerald);
  display: none;
  animation: slide-up 0.3s ease;
}

.active-call-dock.in-call {
  display: block;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.active-call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.call-timer {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 1px;
}

.call-target-info {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.audio-visualizer-canvas {
  width: 100%;
  height: 48px;
  background: #080c14;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.in-call-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--accent-cyan);
}

.ctrl-btn.active {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-crimson);
  border-color: var(--accent-crimson);
}

.ctrl-btn-hangup {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-crimson);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px var(--accent-crimson-glow);
  transition: all 0.2s;
}

.ctrl-btn-hangup:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--accent-crimson);
}

/* ==========================================================================
   PANEL 3: CONTACTS & RECENT CALLS
   ========================================================================== */

.tabs-header {
  display: flex;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

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

.contact-list, .history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.contact-card, .history-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.contact-card:hover, .history-item:hover {
  border-color: rgba(0, 242, 254, 0.3);
  background: var(--bg-card-hover);
}

.item-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.item-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.item-action-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.item-action-btn:hover {
  background: var(--accent-cyan);
  color: #06080e;
  border-color: var(--accent-cyan);
}

/* Add Contact Inline Form */
.add-contact-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #111726;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.25s ease;
  min-width: 260px;
}

.toast.success {
  border-color: var(--accent-emerald);
  color: #a7f3d0;
}

.toast.error {
  border-color: var(--accent-crimson);
  color: #fca5a5;
}

.toast.info {
  border-color: var(--accent-cyan);
  color: #bae6fd;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Audio Devices Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}
