/* SMS — Buy Number & Active Numbers */

.sms-view { display: none; }
.sms-view.active { display: block; }

.sms-page-head {
  margin-bottom: 28px;
}
.sms-page-head h1 {
  font-size: 28px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.sms-page-head p {
  color: #64748b;
  font-size: 15px;
}
.sms-page-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sms-active-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
}

.sms-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}
.sms-filter-block { margin-bottom: 24px; }

.sms-server-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sms-server-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sms-server-pill:hover {
  border-color: rgba(124, 58, 237, 0.35);
  color: #e2e8f0;
  transform: translateY(-1px);
}
.sms-server-pill.active {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.sms-country-select-wrap { position: relative; max-width: 100%; }
.sms-country-select {
  width: 100%;
  max-width: 560px;
  padding: 16px 44px 16px 18px;
  border-radius: 12px;
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 15px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.sms-country-select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.sms-country-select option { background: #181b26; color: #e2e8f0; }
.sms-country-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 12px;
}

.sms-results-panel {
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  min-height: 280px;
  padding: 32px 24px;
}
.sms-results-panel.has-content {
  border-color: rgba(124, 58, 237, 0.2);
  padding: 24px;
  min-height: auto;
}

.sms-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  color: #64748b;
  animation: fadeIn 0.5s ease both;
}
.sms-empty-state img {
  width: 48px;
  height: 48px;
  opacity: 0.25;
  margin-bottom: 16px;
  filter: brightness(0) invert(0.6);
}
.sms-empty-state p {
  font-size: 14px;
  max-width: 360px;
  line-height: 1.55;
}

.sms-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.sms-service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.sms-service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.08);
}
.sms-service-card.loading { opacity: 0.6; pointer-events: none; }
.sms-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sms-service-icon img { width: 24px; height: 24px; }
.sms-service-info { flex: 1; min-width: 0; }
.sms-service-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.sms-service-info .price {
  font-size: 13px;
  color: #a78bfa;
  font-weight: 600;
}
.sms-service-arrow {
  color: #64748b;
  font-size: 18px;
  transition: transform 0.2s ease;
}
.sms-service-card:hover .sms-service-arrow { transform: translateX(3px); color: #a78bfa; }

.sms-active-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sms-active-card {
  background: #181b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sms-active-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.sms-active-service {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sms-active-service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sms-active-service-icon img { width: 22px; height: 22px; }
.sms-active-service-name {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
}
.sms-active-server {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.sms-active-time {
  font-size: 12px;
  color: #64748b;
  flex-shrink: 0;
}

.sms-phone-block { margin-bottom: 14px; }
.sms-phone-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}
.sms-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sms-phone-number {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.sms-phone-number:hover { color: #a78bfa; }
.sms-copy-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.sms-copy-btn:hover {
  background: rgba(124, 58, 237, 0.3);
  transform: scale(1.05);
}
.sms-copy-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(40%) saturate(800%) hue-rotate(218deg);
}

.sms-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.sms-status-badge.waiting {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.sms-status-badge.received {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sms-otp-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-top: 3px solid #10b981;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: scaleIn 0.35s ease both;
}
.sms-otp-box.waiting-box {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.12);
}
.sms-otp-labels { margin-bottom: 6px; }
.sms-otp-labels span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #34d399;
  margin-right: 12px;
}
.sms-otp-labels span.dim { color: #64748b; }
.sms-otp-code {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.sms-otp-code.muted {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: normal;
}
.sms-otp-actions { display: flex; gap: 8px; }
.sms-otp-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.sms-otp-btn:hover { background: rgba(124, 58, 237, 0.2); }
.sms-otp-btn img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(0.75);
}

.sms-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 20px;
  border-radius: 999px;
  background: #181b26;
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sms-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sms-active-empty p { margin-bottom: 20px; font-size: 15px; }
