* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  height: 100vh;
  background: radial-gradient(circle at center, #1e293b, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
}

.app {
  width: 420px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}

/* TABS */
.tabs {
  display: flex;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 18px;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #cbd5f5;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg,#34d399,#22d3ee);
  color: #020617;
  font-weight: 600;
}

/* PANELS */
.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* STATUS */
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}

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

/* INPUTS */
.field {
  margin-bottom: 12px;
}

label {
  font-size: 12px;
  opacity: .7;
}

select,
.number {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  outline: none;
}

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

.dialpad button {
  padding: 18px;
  font-size: 18px;
  border-radius: 16px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
}

/* CALL BUTTON */
.call {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #022c22;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

/* SETTINGS */
.setting {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 10px;
}

.setting small {
  display: block;
  opacity: .6;
}

/* HISTORY */
.empty {
  opacity: .5;
  text-align: center;
  margin-top: 40px;
}


@media (max-width: 768px) {
  body {
    align-items: flex-start;
    padding: 16px;
  }

  .app {
    width: 100%;
    max-width: 420px;
    padding: 16px;
  }

  .dialpad button {
    padding: 16px;
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .tabs {
    flex-direction: column;
    gap: 6px;
  }

  .tab {
    padding: 12px;
  }

  .dialpad {
    gap: 10px;
  }

  .call {
    font-size: 18px;
  }
}

.dialpad button:active {
  transform: scale(0.95);
  background: rgba(255,255,255,0.18);
}

.call:disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
}

.setting {
  cursor: pointer;
  transition: background .2s ease;
}

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