/* 11-settings.css — Settings screen and its slide-in sub-panels, toggles, social links.
   Part of the old css/styles.css (lines 2185–2437); unused rules since removed.
   The number is the load order: later files override earlier ones, exactly
   as later lines in the single file used to. Keep them linked in order. */

/* ── Settings ── */
#settings { 
  display: none;
  /* Settings uses an inline .settings-header div, NOT a fixed top header bar.
     So we only need safe-area clearance, not the full 56px header offset. */
  padding-top: calc(env(safe-area-inset-top, 0px) + 1.2rem) !important;
}
.settings-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.settings-back   { cursor: pointer; padding: 0.5rem; border-radius: 50%; background: #f5f5f5; transition: background 0.2s; }
.settings-back:hover { background: #e0e0e0; }

/* Group label */
.settings-group-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: #aaa; padding: 0 4px;
  margin: 1.2rem 0 0.4rem;
}
.settings-group-label:first-of-type { margin-top: 0; }

/* Settings card */
.settings-card {
  background: #fff; border-radius: 14px;
  overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Row */
.settings-item-new {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; cursor: pointer;
  transition: background 0.15s;
}
.settings-item-new:hover  { background: #f8f9fa; }
.settings-item-new:active { background: #f0f0f0; }
.settings-item-separator  { border-top: 1px solid #f2f2f2; }

.settings-item-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.settings-item-icon .material-symbols-rounded { font-size: 20px; }
.settings-item-body       { flex: 1; min-width: 0; }
.settings-item-body h4    { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 1px; }
.settings-item-body p     { font-size: 12px; color: #888; }
.settings-chevron         { color: #ccc; font-size: 20px !important; flex-shrink: 0; }

/* ── Settings Sub-Panels (slide-in from right) ── */
.settings-panel {
  position: fixed; inset: 0;
  background: #fafafa; z-index: 1500;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  /* always rendered, just off-screen */
  visibility: visible;
}
.settings-panel.active { transform: translateX(0); }

.settings-panel-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1rem;
  /* push below the notch when the panel is full-screen */
  padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.settings-panel-header h2 { font-size: 1.1rem; font-weight: 700; }

.settings-panel-body {
  flex: 1; overflow-y: auto;
  padding: 1.2rem 1rem;
  padding-bottom: 1.2rem;
}

/* Fade-up entrance for panel body content */
.settings-panel.active .settings-panel-body > * {
  animation: spFadeUp 0.35s ease both;
}
.settings-panel.active .settings-panel-body > *:nth-child(1) { animation-delay: 0.06s; }
.settings-panel.active .settings-panel-body > *:nth-child(2) { animation-delay: 0.10s; }
.settings-panel.active .settings-panel-body > *:nth-child(3) { animation-delay: 0.14s; }
.settings-panel.active .settings-panel-body > *:nth-child(4) { animation-delay: 0.18s; }
.settings-panel.active .settings-panel-body > *:nth-child(5) { animation-delay: 0.22s; }
.settings-panel.active .settings-panel-body > *:nth-child(6) { animation-delay: 0.26s; }
.settings-panel.active .settings-panel-body > *:nth-child(7) { animation-delay: 0.30s; }
.settings-panel.active .settings-panel-body > *:nth-child(8) { animation-delay: 0.34s; }

@keyframes spFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Info / Danger blocks */
.settings-info-block {
  background: #fff; border-radius: 14px;
  padding: 1.5rem 1rem; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.settings-info-block p { font-size: 0.88rem; color: #666; line-height: 1.6; }

.settings-danger-block {
  background: #fff5f5; border: 1.5px solid #ffc5c5;
  border-radius: 14px; padding: 1.5rem 1rem; text-align: center;
}
.settings-danger-block h3 { font-size: 1rem; color: #c0392b; margin-bottom: 0.6rem; }
.settings-danger-block p  { font-size: 0.85rem; color: #666; line-height: 1.6; }

/* Storage panel — Cache & Offline card */
.settings-storage-card { padding: 14px; }
.settings-storage-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.settings-storage-title .material-symbols-rounded { font-size: 20px; color: #555; }
.settings-storage-title h4 { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.settings-storage-row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; color: #444; margin-bottom: 6px;
}
.settings-cache-bar {
  height: 8px; border-radius: 4px; background: #eceef3; overflow: hidden;
}
.settings-cache-bar-fill {
  height: 100%; width: 0; border-radius: 4px; background: #19378C;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.settings-storage-actions { display: flex; gap: 8px; margin-top: 14px; }
.settings-storage-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0.6rem 0.9rem; border-radius: 10px;
  border: 1px solid #e3e5ea; background: #fff;
  font-size: 13px; font-weight: 600; color: #1a1a1a; font-family: inherit;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.settings-storage-btn:first-child { flex: 1; }
.settings-storage-btn .material-symbols-rounded { font-size: 18px; }
.settings-storage-btn:hover  { background: #f8f9fa; }
.settings-storage-btn:active { transform: scale(0.98); }
.settings-storage-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.settings-storage-btn-clear { color: #e74c3c; border-color: #f5c6c1; }
.settings-storage-btn-clear:hover { background: #fff5f5; }
.settings-storage-btn.is-spinning .material-symbols-rounded { animation: mkStorageSpin 0.8s linear infinite; }
@keyframes mkStorageSpin { to { transform: rotate(360deg); } }
.settings-storage-note { font-size: 12px; color: #999; margin-top: 10px; line-height: 1.5; }

/* Buttons */
.settings-action-btn {
  width: 100%; padding: 0.85rem;
  background: #19378C; color: #fff;
  border: none; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: background 0.2s, transform 0.1s;
}
.settings-action-btn:hover   { background: #0f2460; }
.settings-action-btn:active  { transform: scale(0.98); }
.settings-action-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.settings-danger-btn {
  width: 100%; padding: 0.85rem;
  background: #e74c3c; color: #fff;
  border: none; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: background 0.2s, transform 0.1s;
}
.settings-danger-btn:hover  { background: #c0392b; }
.settings-danger-btn:active { transform: scale(0.98); }

/* Small text button under a panel's main button (e.g. "Forgot password?") */
.settings-link-btn {
  display: block; margin: 0.9rem auto 0; padding: 0.4rem 0.6rem;
  background: none; border: none; font-family: inherit;
  font-size: 0.85rem; font-weight: 600; color: #19378C; cursor: pointer;
}
.settings-link-btn:hover    { text-decoration: underline; }
.settings-link-btn:disabled { opacity: 0.6; cursor: not-allowed; text-decoration: none; }

/* Form groups inside panels */
.settings-panel-body .form-group { margin-bottom: 1rem; }
.settings-panel-body .form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: #555; margin-bottom: 5px;
}
.settings-panel-body .form-group input,
.settings-panel-body .form-group select,
.settings-panel-body .form-group textarea {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1.5px solid #ddd; border-radius: 10px;
  font-size: 0.9rem; font-family: inherit;
  background: #fff; outline: none;
  transition: border-color 0.2s;
}
.settings-panel-body .form-group input:focus,
.settings-panel-body .form-group select:focus,
.settings-panel-body .form-group textarea:focus { border-color: #19378C; }

/* Notification toggle row */
.edit-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0; border-top: 1px solid #f0f0f0;
}
.edit-toggle-label { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.edit-toggle-sub   { font-size: 12px; color: #888; margin-top: 2px; }

/* iOS-style toggle */
.mk-toggle { position: relative; flex-shrink: 0; }
.mk-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.mk-toggle-track {
  display: block; width: 48px; height: 28px; border-radius: 14px;
  background: #ccc; cursor: pointer;
  transition: background 0.25s; position: relative;
}
.mk-toggle-track::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.mk-toggle input:checked + .mk-toggle-track { background: #19378C; }
.mk-toggle input:checked + .mk-toggle-track::after { transform: translateX(20px); }

/* Social pills (compact) */
.socials-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.social-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: #fff;
  text-decoration: none; transition: opacity 0.2s, transform 0.1s;
}
.social-pill:hover  { opacity: 0.85; text-decoration: none; }
.social-pill:active { transform: scale(0.96); }
.social-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-tt { background: #010101; }
.social-fb { background: #1877f2; }

/* Social full list */
.social-full-list { display: flex; flex-direction: column; gap: 12px; }
.social-full-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  text-decoration: none; color: #fff;
  transition: opacity 0.2s, transform 0.15s;
}
.social-full-item:hover  { opacity: 0.92; text-decoration: none; transform: translateX(3px); }
.social-full-item:active { transform: scale(0.98); }
.social-full-ig { background: linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-full-tt { background: #010101; }
.social-full-fb { background: #1877f2; }
.social-full-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-full-info  { flex: 1; }
.social-full-name  { display: block; font-weight: 700; font-size: 15px; }
.social-full-handle{ display: block; font-size: 12px; opacity: 0.8; }

/* Terms link cards */
.terms-link-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; background: #fff; border-radius: 14px;
  margin-bottom: 10px; text-decoration: none; color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.15s, transform 0.15s;
}
.terms-link-card:hover  { background: #f4f6fb; text-decoration: none; transform: translateX(2px); }
.terms-link-card:active { transform: scale(0.98); }
.terms-link-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.terms-link-icon .material-symbols-rounded { font-size: 20px; }
.terms-link-body { flex: 1; }
.terms-link-body h4 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 1px; }
.terms-link-body p  { font-size: 12px; color: #888; }

/* ── Wallet & Payments — "Coming soon" page (Profile → Wallet & Payments) ── */
.wallet-soon { text-align: center; padding: 1rem 0.5rem 1.4rem; }
.wallet-soon-icon {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 0.9rem;
  background: #eef1f9; display: flex; align-items: center; justify-content: center;
}
.wallet-soon-icon .material-symbols-rounded { font-size: 40px; color: #19378C; }
.wallet-soon-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: #fff3e0; color: #e67e22; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.7rem;
}
.wallet-soon h3 { font-size: 1.15rem; font-weight: 800; color: #1a1a1a; margin-bottom: 0.4rem; }
.wallet-soon p  { font-size: 0.88rem; color: #777; line-height: 1.55; }
.wallet-soon-note {
  background: #eef1f9; border-radius: 12px; padding: 12px 14px;
  font-size: 0.84rem; color: #3a4a78; line-height: 1.55; margin-bottom: 1rem;
}
.wallet-soon-note strong { color: #19378C; }

/* Expandable sections — tap the header to read more */
.wallet-soon-sections { display: flex; flex-direction: column; gap: 10px; }
.wallet-soon-section {
  background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden;
}
.wallet-soon-section summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; font-size: 14px; font-weight: 700; color: #1a1a1a;
  -webkit-tap-highlight-color: transparent;
}
.wallet-soon-section summary::-webkit-details-marker { display: none; }
/* Chevron drawn in CSS so it never depends on the icon font */
.wallet-soon-section summary::after {
  content: ''; margin-left: auto; flex-shrink: 0;
  width: 8px; height: 8px; border-right: 2px solid #aab0bf; border-bottom: 2px solid #aab0bf;
  transform: rotate(45deg); transition: transform 0.2s ease; margin-top: -4px;
}
.wallet-soon-section[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.wallet-soon-section summary:active { background: #f8f9fa; }
.wallet-soon-section-icon {
  width: 34px; height: 34px; border-radius: 10px; background: #eef1f9; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.wallet-soon-section-icon .material-symbols-rounded { font-size: 19px; color: #19378C; }
.wallet-soon-section ul,
.wallet-soon-section ol {
  margin: 0; padding: 2px 16px 14px 62px;
  font-size: 0.86rem; color: #555; line-height: 1.55;
}
.wallet-soon-section li { margin-bottom: 7px; }
.wallet-soon-section li:last-child { margin-bottom: 0; }
.wallet-soon-section ol li::marker { color: #19378C; font-weight: 700; }

.wallet-soon-footer {
  text-align: center; font-size: 0.82rem; font-style: italic; color: #888;
  line-height: 1.55; margin: 1.2rem 0.5rem 0;
}
