/**
 * GENZLAND Telegram Boosters - User Settings & Dashboard Stylesheet
 * Premium Modern Mobile-First Fintech & SaaS Design System
 * 
 * Palette:
 * Primary Orange: #FF7A00 | Secondary Orange: #FF9A3D | Soft Orange BG: #FFF7EF
 * Dark Navy Text: #172033 | Secondary Text: #718096 | Border: rgba(20, 30, 50, 0.08)
 * White: #FFFFFF | Success Green: #10B981 | Accent Purple: #8B5CF6 | Accent Blue: #3B82F6
 */

/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand Palette */
  --brand-orange: #FF7A00;
  --brand-orange-hover: #E86A00;
  --brand-orange-secondary: #FF9A3D;
  --brand-orange-soft: #FFF7EF;
  --brand-orange-light: #FFF3E8;
  --brand-orange-glow: rgba(255, 122, 0, 0.22);
  --brand-orange-gradient: linear-gradient(135deg, #FF7A00 0%, #FF9A3D 100%);
  
  /* Text & Neutral Hierarchy */
  --text-primary: #172033;
  --text-secondary: #718096;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;
  
  /* Backgrounds & Surfaces */
  --bg-page: linear-gradient(180deg, #FFFDFC 0%, #F8FAFC 100%);
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-input: #F8FAFC;
  --bg-input-focus: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  /* Borders */
  --border-soft: rgba(20, 30, 50, 0.08);
  --border-card: rgba(20, 30, 50, 0.07);
  --border-hover: rgba(255, 122, 0, 0.35);
  --border-focus: #FF7A00;
  
  /* Accents */
  --accent-emerald: #10B981;
  --accent-emerald-soft: #ECFDF5;
  --accent-blue: #3B82F6;
  --accent-blue-soft: #EFF6FF;
  --accent-cyan: #06B6D4;
  --accent-cyan-soft: #ECFEFF;
  --accent-purple: #8B5CF6;
  --accent-purple-soft: #F5F3FF;
  --accent-rose: #EF4444;
  --accent-rose-soft: #FEF2F2;
  
  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-card: 22px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(20, 30, 50, 0.03);
  --shadow-card: 0 8px 30px rgba(20, 30, 50, 0.06);
  --shadow-card-hover: 0 12px 36px rgba(20, 30, 50, 0.09), 0 0 18px rgba(255, 122, 0, 0.06);
  --shadow-btn-orange: 0 6px 20px rgba(255, 122, 0, 0.28);
  --shadow-btn-hover: 0 8px 24px rgba(255, 122, 0, 0.36);
  --shadow-focus: 0 0 0 4px rgba(255, 122, 0, 0.12);
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   2. GLOBAL RESETS & LAYOUT ARCHITECTURE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-family);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Wrapper & Responsive Max-Width (centered on desktop, seamless on mobile) */
.settings-page-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 16px calc(90px + env(safe-area-inset-bottom)) 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

@media (min-width: 992px) {
  .settings-page-wrapper {
    max-width: 760px;
    padding-top: 24px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

/* ==========================================================================
   3. HEADER & BRAND NAVIGATION BAR
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px rgba(20, 30, 50, 0.04);
}

.header-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-orange-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.32);
  flex-shrink: 0;
  color: #FFFFFF;
}

.tg-paper-plane {
  width: 20px;
  height: 20px;
  fill: #FFFFFF;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-family);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.8px;
  color: var(--brand-orange);
  text-transform: uppercase;
}

/* ==========================================================================
   4. SUBPAGE BACK NAVIGATION & PAGE TITLE
   ========================================================================== */
.settings-subpage-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.btn-settings-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-settings-back:hover {
  background: var(--brand-orange-soft);
  border-color: rgba(255, 122, 0, 0.35);
  color: var(--brand-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.12);
}

.btn-settings-back:active {
  transform: translateY(0);
}

.settings-page-heading {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
  flex-grow: 1;
  text-align: center;
}

.settings-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-settings-action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s ease;
}

.btn-settings-action-icon:hover {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  border-color: rgba(255, 122, 0, 0.3);
  transform: translateY(-1px);
}

.btn-settings-action-icon.danger:hover {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  border-color: #FECACA;
}

/* ==========================================================================
   5. PREMIUM CARD ARCHITECTURE
   ========================================================================== */
.settings-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (min-width: 768px) {
  .settings-card {
    padding: 24px;
  }
}

.settings-card:hover {
  border-color: rgba(20, 30, 50, 0.12);
  box-shadow: var(--shadow-card-hover);
}

/* Card Header Flex Layout */
.card-header-flex {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.card-header-text {
  flex-grow: 1;
  min-width: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.25;
}

.card-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.card-header-badge {
  flex-shrink: 0;
}

/* Status Badges & Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.status-pill-success {
  background: var(--accent-emerald-soft);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-pill-orange {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  border: 1px solid rgba(255, 122, 0, 0.25);
}

.status-pill-blue {
  background: var(--accent-blue-soft);
  color: #2563EB;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-pill-green {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDotGreen 1.6s infinite ease-in-out;
}

@keyframes pulseDotGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* ==========================================================================
   6. TRANSPARENT GLOWING COLORFUL ICON SYSTEM
   ========================================================================== */
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-card:hover .icon-box {
  transform: scale(1.05);
}

/* Emerald / Cyan Glow (Security) */
.icon-box-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #059669;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Orange / Coral Glow (Profile) */
.icon-box-orange {
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.28);
  color: var(--brand-orange);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Blue / Cyan Glow (Personal Information) */
.icon-box-blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #2563EB;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Green / Teal Glow (Password) */
.icon-box-green {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #059669;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Purple / Indigo Glow (Active Sessions) */
.icon-box-purple {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #7C3AED;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   7. PROFILE PICTURE & AVATAR MANAGER
   ========================================================================== */
.profile-avatar-center-stage {
  text-align: center;
  padding: 8px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-photo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.avatar-photo-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3.5px;
  background: var(--brand-orange-gradient);
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #FFFFFF;
  background: #FFFFFF;
}

.avatar-photo-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand-orange-gradient);
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 38px;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #FFFFFF;
}

.avatar-online-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* Custom Upload & Remove Action Buttons */
.avatar-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.btn-custom-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-orange-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: var(--shadow-btn-orange);
  transition: all 0.2s ease;
}

.btn-custom-upload:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-custom-upload:active {
  transform: translateY(0);
}

.btn-custom-remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: var(--accent-rose);
  border: 1px solid #FECACA;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-custom-remove:hover {
  background: var(--accent-rose-soft);
  border-color: #F87171;
  transform: translateY(-1px);
}

.btn-custom-remove:active {
  transform: translateY(0);
}

.avatar-helper-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* Choose Your Avatar Presets Bar */
.avatar-presets-container {
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
  margin-top: 6px;
}

.avatar-presets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.presets-label {
  font-size: 12px;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.presets-sub {
  font-size: 11px;
  color: var(--brand-orange);
  font-weight: 650;
}

.avatar-presets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .avatar-presets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.preset-squircle-card {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.9);
  border: 1.5px solid var(--border-soft);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.preset-squircle-card:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: var(--brand-orange);
  background: var(--brand-orange-soft);
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.20);
}

.preset-squircle-card.active {
  border-color: var(--brand-orange);
  background: var(--brand-orange-light);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.25);
}

.preset-squircle-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.avatar-status-box {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 650;
}

.avatar-status-box.success {
  background: var(--accent-emerald-soft);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.avatar-status-box.error {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  border: 1px solid #FECACA;
}

/* ==========================================================================
   8. MODERN FORM CONTROLS & INPUT SYSTEM
   ========================================================================== */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-label-icon {
  font-size: 14px;
}

.text-blue { color: #2563EB; }
.text-green { color: #059669; }
.text-orange { color: var(--brand-orange); }

.form-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .form-two-col-grid {
    grid-template-columns: 1fr;
  }
}

.input-control-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-leading-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease, transform 0.2s ease;
}

.input-control-wrapper:focus-within .input-leading-icon {
  color: var(--brand-orange);
  transform: scale(1.08);
}

.custom-form-input {
  width: 100%;
  height: 50px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}

.custom-form-input.with-icon {
  padding-left: 42px;
}

.custom-form-input.with-eye {
  padding-right: 44px;
}

.custom-form-input.font-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.custom-form-input:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

.custom-form-input::placeholder {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Email Readonly with Verified Pill */
.email-readonly-wrapper .custom-form-input.readonly-input {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #475569;
  padding-right: 100px;
  cursor: default;
}

.input-trailing-pill-success {
  position: absolute;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-emerald-soft);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3.5px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 750;
  pointer-events: none;
}

/* Password Eye Toggle Button */
.btn-input-eye-toggle {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
  z-index: 2;
}

.btn-input-eye-toggle:hover {
  color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.08);
}

/* Password Strength Meter */
.password-strength-container {
  background: #F8FAFC;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.pwd-strength-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pwd-strength-caption {
  font-size: 11px;
  color: var(--text-secondary);
}

.pwd-strength-label {
  font-size: 11px;
  font-weight: 800;
}

.pwd-strength-track {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.pwd-strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* ==========================================================================
   9. CTA BUTTONS & ACTIONS
   ========================================================================== */
.btn-primary-cta {
  width: 100%;
  height: 50px;
  background: var(--brand-orange-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-btn-orange);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-primary-cta:active {
  transform: translateY(0);
}

.btn-security-cta {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-security-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.34);
}

.btn-security-cta:active {
  transform: translateY(0);
}

.btn-danger-outline-pill {
  background: #FFFFFF;
  color: var(--accent-rose);
  border: 1px solid #FECACA;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-danger-outline-pill:hover {
  background: var(--accent-rose-soft);
  border-color: #F87171;
  transform: translateY(-1px);
}

/* ==========================================================================
   10. ACTIVE SESSIONS & DESTRUCTIVE SIGNOUT
   ========================================================================== */
.sessions-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.session-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: all 0.18s ease;
}

.session-item-row:hover {
  background: #FFFFFF;
  border-color: rgba(139, 92, 246, 0.3);
}

.session-item-row.current-session {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.session-device-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-purple-soft);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.current-session .session-device-icon {
  background: var(--accent-emerald-soft);
  color: #059669;
}

.session-info-meta {
  flex-grow: 1;
  min-width: 0;
}

.session-device-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.25;
}

.session-ip-chip {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.session-ip-chip code {
  font-family: var(--font-mono);
  color: #475569;
}

.session-status-badge {
  flex-shrink: 0;
}

.session-time-text {
  font-size: 11px;
  color: var(--text-muted);
}

/* Visually Separated Destructive Signout */
.settings-logout-divider {
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.btn-destructive-signout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 750;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-destructive-signout:hover {
  background: #FEE2E2;
  border-color: #F87171;
  color: #B91C1C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.btn-destructive-signout:active {
  transform: translateY(0);
}

/* ==========================================================================
   11. PREMIUM MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.settings-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) 8px;
  z-index: 1050;
  box-shadow: 0 -4px 20px rgba(20, 30, 50, 0.05);
}

@media (min-width: 768px) {
  .settings-bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--border-soft);
    border-bottom: none;
    padding: 8px 16px 8px 16px;
  }
}

.nav-dock-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: center;
}

.nav-dock-icon-wrap {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-dock-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.nav-dock-item:hover {
  color: var(--brand-orange);
  background: rgba(255, 122, 0, 0.05);
}

.nav-dock-item:hover .nav-dock-icon-wrap {
  transform: translateY(-2px);
}

.nav-dock-item.active {
  color: var(--brand-orange);
  background: var(--brand-orange-soft);
}

.nav-dock-item.active .nav-dock-icon-wrap {
  color: var(--brand-orange);
  transform: scale(1.1);
  filter: drop-shadow(0 2px 6px rgba(255, 122, 0, 0.35));
}

.nav-dock-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 12px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-orange);
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS & MICRO-INTERACTIONS
   ========================================================================== */
@media (max-width: 360px) {
  .settings-page-wrapper {
    padding: 12px 10px calc(85px + env(safe-area-inset-bottom)) 10px;
    gap: 14px;
  }
  
  .settings-card {
    padding: 16px;
    border-radius: 18px;
  }
  
  .card-title {
    font-size: 15px;
  }
  
  .custom-form-input {
    height: 46px;
    font-size: 13.5px;
  }
  
  .btn-primary-cta,
  .btn-security-cta {
    height: 46px;
    font-size: 13.5px;
  }
  
  .avatar-photo-ring {
    width: 80px;
    height: 80px;
  }
}
