/* ─── Toggle Switch ─── */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0; border-radius: 24px;
  background: rgba(255,255,255,0.15); transition: background 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; border-radius: 50%;
  left: 3px; bottom: 3px; background: white; transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ─── Notification Settings ─── */
.notif-section { margin-bottom: 28px; }
.notif-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notif-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.notif-item:last-child { border-bottom: none; }
.notif-label { font-size: 14px; color: rgba(255,255,255,0.85); }

/* ─── Payment Cards ─── */
.payment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.payment-card-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
  cursor: pointer; transition: all 0.2s;
}
.payment-card-item:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
.payment-card-item.selected { border-color: var(--primary); background: rgba(26,127,212,0.08); }
.payment-card-logo {
  display: flex; align-items: center; gap: 12px;
}
.payment-logo-box {
  width: 48px; height: 32px; border-radius: 6px; object-fit: contain;
  background: white; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #1e293b; padding: 4px;
}
.payment-card-number { font-size: 14px; font-weight: 600; color: white; }
.payment-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.payment-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; }
.payment-card-item.selected .payment-radio { border-color: var(--primary); background: var(--primary); }
.payment-card-item.selected .payment-radio::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: white; }

/* ─── Credit Card Visual ─── */
.card-visual {
  background: linear-gradient(135deg, #1a7fd4, #06b6d4); border-radius: 18px;
  padding: 24px; margin-bottom: 24px; position: relative; overflow: hidden; min-height: 160px;
}
.card-visual::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
}
.card-visual::after {
  content: ''; position: absolute; bottom: -20px; right: 40px; width: 100px; height: 100px;
  border-radius: 50%; background: rgba(255,255,255,0.05);
}
.card-chip { width: 40px; height: 30px; border-radius: 6px; background: rgba(255,255,255,0.3); margin-bottom: 20px; }
.card-number { font-size: 18px; font-weight: 600; letter-spacing: 4px; color: white; margin-bottom: 16px; }
.card-footer { display: flex; justify-content: space-between; }
.card-label { font-size: 10px; color: rgba(255,255,255,0.6); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1px; }
.card-value { font-size: 14px; font-weight: 600; color: white; }

/* ─── Address Cards ─── */
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.address-card {
  padding: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; cursor: pointer; transition: all 0.2s; position: relative;
}
.address-card:hover { background: rgba(255,255,255,0.07); }
.address-card.active { border-color: var(--primary); background: rgba(26,127,212,0.08); }
.address-card-icon { font-size: 24px; margin-bottom: 10px; }
.address-card-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-light); margin-bottom: 4px; }
.address-card-line { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.address-card-badge {
  position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
  background: rgba(26,127,212,0.2); color: var(--accent-light);
}

/* ─── Map Embed Placeholder ─── */
.map-frame {
  width: 100%; height: 300px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #1a2a3a, #0f1b2d);
  position: relative; border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.map-frame iframe { width: 100%; height: 100%; border: none; filter: invert(0.9) hue-rotate(180deg); }
.map-pin { font-size: 36px; position: absolute; animation: mapPinBounce 1.5s ease-in-out infinite; }
@keyframes mapPinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.map-pin-ring {
  position: absolute; bottom: calc(50% - 20px); width: 30px; height: 10px;
  border-radius: 50%; background: rgba(0,0,0,0.2); filter: blur(3px);
}

/* ─── Emergency ─── */
.emergency-btn {
  width: 100%; padding: 20px; border-radius: 16px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ef4444, #dc2626); color: white;
  font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700;
  box-shadow: 0 8px 30px rgba(239,68,68,0.4); transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.emergency-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(239,68,68,0.6); }
.emergency-btn:active { transform: scale(0.98); }
.emergency-btn.pulse-anim { animation: emergencyPulse 2s infinite; }
@keyframes emergencyPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(239,68,68,0.4); }
  50% { box-shadow: 0 8px 50px rgba(239,68,68,0.8); }
}
.hospital-list { display: flex; flex-direction: column; gap: 12px; }
.hospital-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; cursor: pointer; transition: all 0.2s;
}
.hospital-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(239,68,68,0.3); }
.hospital-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(239,68,68,0.15); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hospital-name { font-size: 15px; font-weight: 700; color: white; margin-bottom: 4px; }
.hospital-address { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.hospital-distance { font-size: 12px; font-weight: 600; color: var(--accent-light); margin-top: 6px; }
.emergency-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }

/* ─── Profile Tabs ─── */
.profile-tab-btns { display: flex; flex-direction: column; gap: 2px; }
.profile-tab-btn {
  padding: 11px 16px; border-radius: 8px; color: var(--text-muted); border: none;
  background: none; font-family: 'Outfit', sans-serif; font-size: 14px;
  display: flex; align-items: center; gap: 12px; transition: all 0.2s; cursor: pointer; width: 100%;
  text-align: left;
}
.profile-tab-btn:hover, .profile-tab-btn.active { background: rgba(255,255,255,0.05); color: white; }
.profile-tab-pane { display: none; }
.profile-tab-pane.active { display: block; }

@media (max-width: 1024px) {
  .emergency-layout { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 1fr; }
}
