/* ═══════════════════════════════════════════
   COMPONENTS — Profile, Cards, Inputs, etc.
   ═══════════════════════════════════════════ */

/* ─── Profile Header ─── */
#profile-header {
  position: relative; z-index: 10;
  background: rgba(10,10,18,.92);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 14px 16px;
}
.profile-row { max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, #7C4DFF30, #00E5FF20);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-family: 'Outfit', sans-serif; font-weight: 700;
  color: #fff; position: relative; flex-shrink: 0;
}
.avatar .online {
  position: absolute; bottom: -1px; right: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #00E676; border: 2px solid #0a0a12;
  box-shadow: 0 0 6px #00E67660;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-username { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,.35); margin-top: 1px; }
.profile-balance { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.balance-amount { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px; color: #FFD740; letter-spacing: -.02em; line-height: 1; }
.balance-label { font-size: 9px; color: rgba(255,255,255,.25); text-transform: uppercase; font-weight: 600; letter-spacing: .06em; }
.expand-btn {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,.4); font-size: 14px;
  transition: transform .25s ease; flex-shrink: 0;
}
#profile-details {
  overflow: hidden; max-height: 0; opacity: 0;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  margin-top: 0; max-width: 480px; margin-left: auto; margin-right: auto;
}
#profile-details.open { max-height: 250px; opacity: 1; margin-top: 12px; }
.details-grid {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 12px 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
}
.detail-label { font-size: 9px; color: rgba(255,255,255,.25); text-transform: uppercase; font-weight: 600; letter-spacing: .06em; margin-bottom: 3px; }
.detail-value { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 600; }

/* ─── Cards ─── */
.card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 20px; margin-bottom: 16px;
}
.card-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 4px; }

/* Info rows */
.info-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.info-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.info-label { color: rgba(255,255,255,.45); font-size: 13px; font-weight: 500; flex-shrink: 0; }
.info-value { font-size: 13px; font-weight: 600; margin-left: auto; text-align: right; word-break: break-all; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* Inputs */
.input {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
  padding: 12px 14px; color: #fff; font-size: 14px;
  font-family: 'DM Sans', sans-serif; outline: none;
  transition: all .3s ease; box-sizing: border-box;
}
.input + .input { margin-top: 10px; }
textarea.input { min-height: 80px; resize: vertical; }

/* Small icon buttons */
.icon-btn {
  font-size: 10px; cursor: pointer; padding: 3px 5px;
  border-radius: 5px; transition: all .2s ease; border: none;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Action chips */
.action-chip {
  border-radius: 8px; padding: 4px 10px; font-size: 11px;
  font-family: 'DM Sans', sans-serif; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  transition: all .2s ease; white-space: nowrap; flex-shrink: 0;
}

/* Toggle switch */
.toggle { width: 42px; height: 24px; border-radius: 12px; position: relative; cursor: pointer; transition: all .3s cubic-bezier(.34,1.56,.64,1); padding: 0; flex-shrink: 0; }
.toggle-knob { width: 18px; height: 18px; border-radius: 50%; position: absolute; top: 2px; transition: all .3s cubic-bezier(.34,1.56,.64,1); }

/* Status badge */
.status-badge { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

/* Panel header */
.panel-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.panel-icon-box { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.panel-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.panel-sub { font-family: 'JetBrains Mono', monospace; font-size: 13px; margin-top: 2px; }

/* Primary button */
.btn-rates {
  width: 100%; padding: 14px 20px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, #00E5FF, #00E5FFcc);
  color: #0a0a0f; font-family: 'DM Sans', sans-serif; font-size: 14px;
  font-weight: 700; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px; transition: all .25s ease;
  box-shadow: 0 6px 20px rgba(0,229,255,.2); letter-spacing: .01em;
}

/* Progress bar */
.progress-track { width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }

/* List items (used in modals & flows) */
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; cursor: pointer; transition: all .2s ease;
  color: #fff; -webkit-tap-highlight-color: transparent;
  width: 100%; font-family: 'DM Sans', sans-serif; margin-bottom: 6px;
}
.list-item:active { background: rgba(255,255,255,.06); }

/* ─── Temp Tabs ─── */
.temp-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; margin-bottom: 20px;
}
.temp-tab {
  flex: 1; padding: 10px 14px; border-radius: 11px;
  background: transparent; border: none; color: rgba(255,255,255,.4);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 6px; transition: all .3s cubic-bezier(.16,1,.3,1);
}
.temp-tab.active[data-accent="mail"] {
  background: rgba(0,230,118,.12); color: #00E676;
  box-shadow: 0 2px 12px rgba(0,230,118,.15);
}
.temp-tab.active[data-accent="sms"] {
  background: rgba(124,77,255,.12); color: #7C4DFF;
  box-shadow: 0 2px 12px rgba(124,77,255,.15);
}
.temp-tab.active { background: rgba(0,230,118,.12); color: #00E676; box-shadow: 0 2px 12px rgba(0,230,118,.15); }

/* ─── Domain List ─── */
.domain-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; cursor: pointer; transition: all .2s ease;
  color: #fff; margin-bottom: 8px; width: 100%;
  font-family: 'DM Sans', sans-serif; border: 1px solid rgba(255,255,255,.06);
}
.domain-item:active { background: rgba(0,230,118,.08); border-color: rgba(0,230,118,.2); }

/* ─── Alias Cards ─── */
.alias-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; margin-bottom: 10px; overflow: hidden;
  transition: all .2s ease;
}
.alias-card:hover { border-color: rgba(0,230,118,.15); }
.alias-card-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 10px;
}
.alias-email {
  font-size: 13px; font-weight: 600; color: #00E676;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alias-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px 10px; gap: 8px;
}

/* ─── Service Cards (Temp SMS) ─── */
.service-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  transition: all .2s ease;
}
.service-card:active { background: rgba(124,77,255,.06); border-color: rgba(124,77,255,.15); }
.service-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.service-info { flex: 1; min-width: 0; }
.service-name { font-size: 14px; font-weight: 600; }
.service-desc { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; }
.service-price {
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  font-weight: 700; color: #FFD740; flex-shrink: 0;
}
.service-buy {
  padding: 8px 14px; border-radius: 10px; border: none;
  background: linear-gradient(135deg,#7C4DFF,#7C4DFFcc);
  color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .2s ease; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124,77,255,.2);
}

/* ─── Country Grid ─── */
.country-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; cursor: pointer; transition: all .2s ease;
  color: #fff; font-family: 'DM Sans', sans-serif;
}
.country-item:active { background: rgba(124,77,255,.08); border-color: rgba(124,77,255,.2); }
.country-flag { font-size: 22px; }
.country-name { font-size: 12px; font-weight: 600; }

/* ─── SMS Inbox Item ─── */
.sms-item {
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 8px;
}
.sms-from { font-size: 12px; font-weight: 600; color: #7C4DFF; margin-bottom: 4px; }
.sms-body { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.4; }
.sms-time { font-size: 10px; color: rgba(255,255,255,.25); margin-top: 4px; }

/* ─── Rent Number Cards ─── */
.rent-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; margin-bottom: 10px; overflow: hidden;
  transition: all .2s ease;
}
.rent-card:hover { border-color: rgba(255,152,0,.15); }
.rent-card-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 10px;
}
.rent-number {
  font-size: 15px; font-weight: 700; color: #FF9800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rent-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px 10px; gap: 8px;
}
.rent-card-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 6px;
}
.rent-card-status.active {
  color: #00E676; background: rgba(0,230,118,.1);
  border: 1px solid rgba(0,230,118,.2);
}
.rent-card-status.expiring {
  color: #FFD740; background: rgba(255,215,64,.1);
  border: 1px solid rgba(255,215,64,.2);
}

/* ─── Rent Available Number Items ─── */
.rent-num-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; margin-bottom: 10px; transition: all .2s ease;
}
.rent-num-item:active { background: rgba(255,152,0,.06); border-color: rgba(255,152,0,.15); }
.rent-num-info { flex: 1; min-width: 0; }
.rent-num-phone { font-size: 14px; font-weight: 700; color: #FF9800; }
.rent-num-type { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 2px; }
.rent-num-price {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  font-weight: 700; color: #FFD740; flex-shrink: 0;
}
.rent-num-btn {
  padding: 8px 14px; border-radius: 10px; border: none;
  background: linear-gradient(135deg,#FF9800,#FF9800cc);
  color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .2s ease; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255,152,0,.2);
}
