/* =====================
   ROOT & RESET
===================== */
:root{
  --bg1:#0b1220;
  --bg2:#020617;
  --glass:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.08);
  --text:#e5e7eb;
  --muted:rgba(229,231,235,.55);
  --teal1:#34d399;
  --teal2:#22d3ee;
  --green:#22c55e;
  --color-white:#ffffff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 600px at 55% 45%, #203a66 0%, transparent 55%),
    radial-gradient(900px 600px at 35% 55%, #12284b 0%, transparent 55%),
    radial-gradient(circle at 30% 20%, #1e293b 0%, var(--bg2) 55%),
    linear-gradient(180deg,var(--bg1),var(--bg2));
}

/* =====================
   LAYOUT
===================== */
.layout{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:100vh;
}

/* =====================
   SIDEBAR
===================== */
.sidebar{
  background:#f8fafc;
  color:#0f172a;
  padding:18px 16px;
  border-right:1px solid #e5e7eb;
}

.brand{padding:10px}
.logo{font-weight:900;letter-spacing:.25em;font-size:26px}
.brand-sub{font-size:12px;opacity:.6}

.nav-group{margin:18px 0}
.nav-title{
  font-size:11px;
  letter-spacing:.14em;
  opacity:.5;
  margin:8px 10px;
}

.nav-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  margin:4px 6px;
  border-radius:12px;
  text-decoration:none;
  color:#0f172a;
  cursor:pointer;
}

.nav-item:hover{background:#eef2f7}
.nav-item.active{
  background:#0f172a;
  color:white;
  box-shadow:0 8px 20px rgba(15,23,42,.3);
}

.nav-ic{
  width:28px;height:28px;
  display:grid;place-items:center;
  border-radius:10px;
  background:#e5e7eb;
}

.sidebar-bottom{margin-top:auto}
.profile{
  display:flex;
  gap:10px;
  align-items:center;
  background:#eef2f7;
  padding:10px;
  border-radius:14px;
  margin:10px 6px;
}

.avatar{
  width:36px;height:36px;
  display:grid;place-items:center;
  border-radius:12px;
  background:#cbd5f5;
  font-weight:700;
}

.logout{
  width:calc(100% - 12px);
  margin:8px 6px;
  padding:12px;
  border:0;
  border-radius:12px;
  background:#ef4444;
  color:white;
  font-weight:700;
  cursor:pointer;
}

/* =====================
   MAIN GRID
===================== */
.main{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:24px;
  padding:24px;
}

/* =====================
   PROSPECT CARD
===================== */
.prospect-card{
  /*max-width:640px;*/
  background:var(--glass);
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:22px;
}

.prospect-row{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid var(--stroke);
}

.tag{
  background:#22c55e33;
  color:var(--green);
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
}

.prospect-notes-input{
  width:100%;
  min-height:120px;
  margin-top:14px;
  padding:14px;
  border-radius:16px;
  background:var(--glass);
  border:1px solid var(--stroke);
  color:var(--text);
  resize:none;
}

.prospect-notes-input:focus{
  outline:none;
  border-color:var(--teal2);
  box-shadow:0 0 0 2px rgba(34,211,238,.2);
}

/* =====================
   SOFTPHONE CONTAINER
===================== */
.softphone{
  position:sticky;
  top:24px;
  display:flex;
  align-items:stretch;
  max-width:420px;
  margin:0 auto;
  width:100%;
}

.glass{
  width:100%;
  max-height:calc(100vh - 48px);
  height:100%;

  display:flex;
  flex-direction:column;

  background:var(--glass);
  border:1px solid var(--stroke);
  border-radius:28px;
  padding:20px;
  backdrop-filter:blur(20px);
}


/* =====================
   TABS
===================== */
.tabs{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-bottom:16px;
}

.tab{
  display:flex;              /* ✅ REQUIRED */
  align-items:center;        /* ✅ vertical centering */
  gap:8px;

  padding:10px 14px;
  border-radius:12px;
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}

/* SVG FIX */
.tab svg{
  display:block;             /* removes baseline shift */
  width:16px;
  height:16px;
}


.tab.active{
  background:linear-gradient(135deg,var(--teal1),var(--teal2));
  color:#041b10;
  font-weight:700;
}

/* =====================
   CARD / PANELS
===================== */
.card{
  flex:1;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.panel{
  display:none;
  flex:1;
  overflow-y:auto;
}

.panel.active{display:block}

/* =====================
   DIALPAD
===================== */
.dial-input{
  margin-top:14px;
  width:100%;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:var(--glass);
  color:var(--text);
  font-size:16px;
  text-align:center;
}

.dial-input:focus{
  outline:none;
  border-color:var(--teal2);
  box-shadow:0 0 0 2px rgba(34,211,238,.2);
}

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

.key{
  padding:16px;
  border-radius:18px;
  background:var(--glass);
  border:1px solid var(--stroke);
  cursor:pointer;
  font-size:18px;
  color: var(--color-white);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  transition:all 0.2s;
}

.key:hover{background:rgba(255,255,255,.1)}
.key:active{transform:scale(0.95)}

.key .k{
  font-size:18px;
  font-weight:800;
  line-height:1;
}

.key .sub{
  font-size:10px;
  margin-top:6px;
  opacity:.55;
  letter-spacing:.14em;
}

.cta{
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  font-weight: 800;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
}

.cta:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(34,197,94,.4);
}

.cta:disabled{
  opacity:0.5;
  cursor:not-allowed;
  transform:none;
}

.cta.hangup{
  background:linear-gradient(135deg,#ef4444,#dc2626);
}

.cta.hangup:hover{
  box-shadow:0 4px 12px rgba(239,68,68,.4);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Disabled icon */
.cta:disabled svg {
  opacity: 0.7;
}

/* Optional: smooth icon animation */
.cta:hover svg {
  transform: translateY(-1px);
}


/* =====================
   SETTINGS COMMON
===================== */
.panel-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}

.panel-header h3{
  margin:0;
  font-size:18px;
}

.back{
  background:none;
  border:0;
  font-size:18px;
  cursor:pointer;
  color:var(--teal2);
  padding:4px;
  display:flex;
  align-items:center;
}

.settings-page{animation:fade .2s}
.hidden{display:none!important}

/* =====================
   SETTINGS LIST
===================== */
.setting{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:var(--glass);
  cursor:pointer;
  margin-bottom:12px;
  transition:all 0.2s;
}

.setting:hover{
  background:rgba(255,255,255,.08);
}

/* =====================
   SETTINGS ROWS
===================== */
.setting-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  /*border-bottom:1px solid var(--stroke);*/
}

.setting-row strong{
  color:var(--text);
  display:block;
  margin-bottom:4px;
}

.setting-row small{color:var(--muted)}

/* =====================
   TOGGLE SWITCH
===================== */
.switch{
  position:relative;
  width:42px;height:24px;
}

.switch input{display:none}

.slider{
  position:absolute;
  inset:0;
  background:#e5e7eb;
  border-radius:999px;
  cursor:pointer;
  transition:background 0.2s;
}

.slider:before{
  content:'';
  position:absolute;
  width:18px;height:18px;
  background:white;
  border-radius:50%;
  top:3px;left:3px;
  transition:.2s;
}

.switch input:checked + .slider{
  background:#22c55e;
}

.switch input:checked + .slider:before{
  transform:translateX(18px);
}

/* =====================
   RANGE SLIDER
===================== */
input[type=range]{
  width:100%;
  margin:12px 0;
  -webkit-appearance:none;
  appearance:none;
  background:transparent;
  cursor:pointer;
  height:8px;
  outline:none;
}

input[type=range]::-webkit-slider-runnable-track{
  width:100%;
  height:6px;
  background:var(--glass);
  border-radius:3px;
  border:1px solid var(--stroke);
}

input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  background:linear-gradient(135deg,var(--teal1),var(--teal2));
  height:20px;
  width:20px;
  border-radius:50%;
  margin-top:-7px;
  border:2px solid rgba(255,255,255,.2);
  box-shadow:0 2px 8px rgba(34,211,238,.4);
  cursor:grab;
  transition:all 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover{
  transform:scale(1.1);
  box-shadow:0 4px 12px rgba(34,211,238,.6);
}

input[type=range]::-webkit-slider-thumb:active{
  cursor:grabbing;
  transform:scale(0.95);
}

input[type=range]::-moz-range-track{
  width:100%;
  height:6px;
  background:var(--glass);
  border-radius:3px;
  border:1px solid var(--stroke);
}

input[type=range]::-moz-range-thumb{
  background:linear-gradient(135deg,var(--teal1),var(--teal2));
  height:20px;
  width:20px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.2);
  box-shadow:0 2px 8px rgba(34,211,238,.4);
  cursor:grab;
  transition:all 0.2s;
}

input[type=range]::-moz-range-thumb:hover{
  transform:scale(1.1);
  box-shadow:0 4px 12px rgba(34,211,238,.6);
}

input[type=range]::-moz-range-thumb:active{
  cursor:grabbing;
  transform:scale(0.95);
}

input[type=range]:focus{
  outline:none;
}

input[type=range]:focus::-webkit-slider-thumb{
  box-shadow:0 0 0 4px rgba(34,211,238,.2);
}

input[type=range]:focus::-moz-range-thumb{
  box-shadow:0 0 0 4px rgba(34,211,238,.2);
}

/* =====================
   CALLER ID LIST
===================== */
.caller-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.caller-item{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:var(--glass);
  cursor:pointer;
  transition:all 0.2s;
}

.caller-item:hover{
  background:rgba(255,255,255,.08);
}

.caller-item input{accent-color:#22c55e}

/* =====================
   ANIMATIONS
===================== */
@keyframes fade{
  from{opacity:0}
  to{opacity:1}
}

/* =====================
   RESPONSIVE
===================== */
@media(max-width:1100px){
  .layout{grid-template-columns:1fr}
  .sidebar{display:none}
  .main{grid-template-columns:1fr}
  .softphone{position:relative;height:auto;max-width:100%}
}

@media(max-width:768px){
  body{
    padding:10px;
  }
  
  .glass{
    padding:16px;
    border-radius:20px;
  }
  
  .tabs{
    gap:6px;
    margin-bottom:12px;
  }
  
  .tab{
    padding:8px 12px;
    font-size:14px;
  }
  
  .tab svg{
    width:14px;
    height:14px;
  }
  
  .dialpad{
    gap:8px;
  }
  
  .key{
    padding:14px;
    font-size:16px;
  }
  
  .key .k{
    font-size:16px;
  }
  
  .key .sub{
    font-size:9px;
  }
  
  .call-buttons{
    grid-template-columns:1fr;
  }
  
  .history-search{
    flex-direction:column;
  }
  
  .history-filters{
    flex-direction:column;
  }
  
  .setting-row{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  
  .audio-controls-grid{
    grid-template-columns:1fr;
  }
  
  .history-row{
    padding:10px;
  }
  
  .history-icon{
    width:36px;
    height:36px;
    font-size:20px;
  }
}

@media(max-width:480px){
  .glass{
    padding:12px;
  }
  
  .card{
    padding:12px;
  }
  
  .tabs{
    flex-wrap:wrap;
  }
  
  .tab{
    flex:1;
    min-width:80px;
  }
}

/* =====================
   STATUS
===================== */
.status{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  margin-bottom:18px;
}

.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 8px rgba(34,197,94,.6);
  transition:all 0.3s;
}

.dot.offline{
  background:#ef4444;
  box-shadow:0 0 8px rgba(239,68,68,.6);
}

.dot.ringing{
  background:#f39c12;
  animation:pulse 1s infinite;
}

.dot.connected{
  background:#3498db;
  box-shadow:0 0 8px rgba(52,152,219,.6);
}

@keyframes pulse{
  0%,100%{opacity:1}
  50%{opacity:0.5}
}

.status-text{
  color:rgba(229,231,235,.75);
}

/* =====================
   FIELD / LABEL
===================== */
.field{
  margin-bottom:18px;
}

.field-label{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:11px;
  letter-spacing:.14em;
  color:rgba(229,231,235,.55);
  margin-bottom:12px;
  text-transform:uppercase;
}

.field-label::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(255,255,255,.08);
}

/* =============================
   CALLER ID CUSTOM DROPDOWN
============================= */

.caller-select{
  position:relative;
}

/* SELECTED */
.caller-selected{
  width:100%;
  height:56px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 16px;
  color:var(--text);
  cursor:pointer;
  transition:.15s ease;
}

.caller-selected:hover{
  background:rgba(255,255,255,.07);
  border-color:rgba(34,211,238,.45);
}

.caller-selected .flag{
  font-size:18px;
}

.caller-selected .number{
  flex:1;
  font-size:15px;
  font-weight:600;
  letter-spacing:.02em;
}

.caller-selected .chev{
  font-size:14px;
  opacity:.5;
}

/* DROPDOWN */
.caller-dropdown{
  position:absolute;
  top:62px;
  left:0;
  right:0;
  z-index:30;
  background:linear-gradient(180deg,#0e1626,#0b1220);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 80px rgba(0,0,0,.6);
  overflow:hidden;
}

/* SEARCH */
.caller-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  color:rgba(229,231,235,.6);
}

.caller-search input{
  width:100%;
  border:0;
  background:transparent;
  color:var(--text);
  outline:none;
  font-size:14px;
}

/* LIST */
.caller-list{
  max-height:220px;
  overflow-y:auto;
}

.caller-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.05);
}

.caller-item:last-child{
  border-bottom:none;
}

.caller-item:hover{
  background:rgba(255,255,255,.06);
}

.caller-item .meta{
  flex:1;
}

.caller-item strong{
  display:block;
  font-size:14px;
}

.caller-item small{
  font-size:12px;
  opacity:.6;
}

.caller-item.active{
  background:rgba(34,197,94,.15);
}

.caller-item .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
}

/* =====================
   UTIL
===================== */
.hidden{display:none!important}


/* =====================
   CALL HISTORY
===================== */

.history-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  padding-bottom:12px;
  border-bottom:1px solid var(--stroke);
}

.history-header h3{
  margin:0;
  font-size:20px;
  font-weight:700;
  color:var(--text);
}

.header-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

.header-actions .icon-btn{
  width:36px;
  height:36px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.icon-btn{
  background:var(--glass);
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  color:var(--text);
  transition:all 0.2s;
  display:flex;
  align-items:center;
  justify-content:center;
}

.icon-btn:hover{
  background:rgba(255,255,255,.08);
}

.icon-btn.active{
  background:rgba(220,38,38,.3);
  border-color:rgba(220,38,38,.5);
}

.icon-btn svg{
  width:16px;
  height:16px;
}

/* SEARCH ROW */
.history-search{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}

.search-input-wrapper{
  flex:1;
  min-width:0;
  padding:2px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--glass);
  height:44px;
  transition:all 0.2s;
}

.search-input-wrapper:focus-within{
  border-color:var(--teal2);
  box-shadow:0 0 0 2px rgba(34,211,238,.2);
}

.search-input{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  border:0;
  background:rgba(255,255,255,.03);
  height:100%;
  width:100%;
  box-sizing:border-box;
}

.search-input svg{
  width:16px;
  height:16px;
  opacity:0.6;
  flex-shrink:0;
  color:var(--muted);
}

.search-input input{
  border:0;
  background:transparent;
  color:var(--text);
  outline:none;
  width:100%;
  font-size:14px;
  padding:0;
}

.search-input input::placeholder{
  color:var(--muted);
}

.search-actions{
  display:flex;
  gap:8px;
  flex-shrink:0;
}

.search-btn{
  padding:12px 20px;
  border-radius:12px;
  border:0;
  background:rgba(255,255,255,.12);
  color:var(--text);
  cursor:pointer;
  transition:all 0.2s;
  font-size:14px;
  font-weight:500;
  height:44px;
  white-space:nowrap;
}

.search-btn:hover{
  background:rgba(255,255,255,.18);
}

.search-actions .icon-btn{
  width:44px;
  height:44px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* FILTERS */
.history-filters{
  display:flex;
  gap:12px;
  margin-bottom:16px;
}

.filter-group{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.filter-label{
  font-size:11px;
  letter-spacing:0.14em;
  color:var(--muted);
  text-transform:uppercase;
  font-weight:600;
}

.filter-select{
  width:100%;
  padding:12px 14px;
  padding-right:40px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--glass);
  color:var(--text);
  cursor:pointer;
  font-size:14px;
  appearance:none;
  height:44px;
  box-sizing:border-box;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e5e7eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:16px;
  transition:all 0.2s;
}

.filter-select:hover{
  background-color:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
}

.filter-select:focus{
  outline:none;
  border-color:var(--teal2);
  box-shadow:0 0 0 2px rgba(34,211,238,.2);
}

/* COUNT */
.history-count{
  font-size:13px;
  color:var(--muted);
  margin-bottom:20px;
  padding:8px 0;
  font-weight:500;
}

/* EMPTY STATE */
.history-empty{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--muted);
  padding:40px 20px;
}

.history-empty .history-icon{
  font-size:64px;
  opacity:.3;
  margin-bottom:16px;
  line-height:1;
}

.history-empty strong{
  color:var(--text);
  margin-bottom:8px;
  display:block;
  font-size:16px;
  font-weight:600;
}

.history-empty p{
  margin:0;
  font-size:14px;
  color:var(--muted);
}

.history-list{
  display:flex;
  flex-direction:column;
  gap:0;
}

.history-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-radius:12px;
  background:var(--glass);
  border:1px solid var(--stroke);
  transition:all 0.2s;
  margin-bottom:8px;
}

.history-row:last-child{
  margin-bottom:0;
}

.history-row:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.15);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,.1);
}

/* History icon styling moved below */

.history-meta{
  flex:1;
  min-width:0;
  overflow:hidden;
}

.history-meta strong{
  display:block;
  font-size:14px;
  margin-bottom:4px;
  color:var(--text);
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.history-meta small{
  font-size:12px;
  color:var(--muted);
  display:block;
}

.history-time{
  text-align:right;
  font-size:12px;
  color:var(--muted);
  flex-shrink:0;
  white-space:nowrap;
}

.history-time span{
  display:block;
  font-weight:600;
  color:var(--text);
  margin-top:2px;
}

.history-row-icon{
  font-size:20px;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:var(--glass);
  border:1px solid var(--stroke);
  flex-shrink:0;
  transition:all 0.2s;
}

.history-row-icon.outbound{
  background:rgba(52,152,219,.15);
  border-color:rgba(52,152,219,.3);
  color:#3498db;
}

.history-row-icon.inbound{
  background:rgba(243,156,18,.15);
  border-color:rgba(243,156,18,.3);
  color:#f39c12;
}

.history-row-icon.rejected{
  background:rgba(239,68,68,.15);
  border-color:rgba(239,68,68,.3);
  color:#ef4444;
}

.history-row.answered .history-row-icon.inbound{
  background:rgba(34,197,94,.15);
  border-color:rgba(34,197,94,.3);
  color:#22c55e;
}

.history-row.missed .history-row-icon,
.history-row.failed .history-row-icon{
  background:rgba(239,68,68,.15);
  border-color:rgba(239,68,68,.3);
  color:#ef4444;
}

.cta.hangup {
  background: linear-gradient(135deg,#ef4444,#dc2626);
}

.audio-gate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.audio-gate.hidden{
  display:none;
}

.audio-gate-card {
  background: linear-gradient(180deg,#0e1626,#0b1220);
  color: white;
  padding: 32px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  border: 1px solid var(--stroke);
}

.audio-gate-card h3{
  margin:0 0 12px 0;
  font-size:20px;
}

.audio-gate-card p{
  margin:0 0 20px 0;
  color:var(--muted);
  line-height:1.6;
}

.audio-gate-card button {
  margin-top: 8px;
}

.in-call-controls {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.in-call-controls.hidden {
  display: none;
}

.icon-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition:all 0.2s;
}

.icon-btn:hover{
  background:rgba(255,255,255,.12);
}

.icon-btn.active {
  background: rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.5);
}

/* Input and select styling */
input[type="text"],
input[type="password"],
select{
  width:100%;
  padding:12px;
  border-radius:12px;
  color:var(--text);
  font-size:14px;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus{
  outline:none;
  border-color:var(--teal2);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder{
  color:var(--muted);
}
