
/* ===== Source: home-sections.css ===== */
/*
   home-sections.css
   Home Screen Sections: Portfolio Performance, Active Positions,
   Pending Actions
   Place at: user/assets/css/home-sections.css
   Only additive styles. Core shell/layout/nav/slide rules
   live in style.css — do NOT redefine them here.
   ============================================================ */

/* ── PORTFOLIO PERFORMANCE ─────────────────────────────────── */
.perf-stats-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: var(--space-3);
}

.perf-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  text-align: center;
  padding: var(--space-1);
}

.perf-stat-divider {
  width: 1px;
  background: var(--border);
  margin: .25rem 0;
  flex-shrink: 0;
}

.perf-stat-label {
  font-size: var(--fs-supporting);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

.perf-stat-value {
  font-size: .98rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.025em;
  line-height: 1.1;
}

.perf-stat-badge {
  font-size: var(--fs-supporting);
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 99px;
  background: var(--success-bg);
  color: var(--success);
  min-height: 1.3rem;
  display: flex;
  align-items: center;
}

.perf-stat-badge.negative {
  background: var(--danger-bg);
  color: var(--danger);
}

.perf-stat-badge.perf-badge-neutral {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.perf-bar-wrap {
  margin-top: .1rem;
}

.perf-bar-track {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .3rem;
}

.perf-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #38bdf8);
  border-radius: 99px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

.perf-bar-labels {
  display: flex;
  justify-content: space-between;
}

/* ── ACTIVE POSITIONS ──────────────────────────────────────── */
.positions-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  gap: .25rem;
  text-align: center;
}

.positions-empty-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .35rem;
}

.positions-empty-text {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
}

.positions-empty-sub {
  font-size: .75rem;
  color: var(--muted);
}

.position-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.position-row:last-child {
  border-bottom: none;
}

.position-row:active {
  background: var(--bg);
}

.position-row-left {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.position-symbol-badge {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: .75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.position-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}

.position-meta {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
}

.position-row-right {
  text-align: right;
}

.position-value {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text);
}

.position-pnl {
  font-size: .75rem;
  font-weight: 700;
  margin-top: .1rem;
}

.position-pnl.positive {
  color: var(--success);
}

.position-pnl.negative {
  color: var(--danger);
}

/* ── EQUITY CURVE ─────────────────────────────────────────── */
.equity-curve-wrap {
  margin: var(--space-3) 0 var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--surface-subtle, var(--bg));
}

.equity-curve-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem .25rem;
}

.equity-curve-title {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.equity-curve-range-btns {
  display: flex;
  gap: 3px;
}

.eq-range-btn {
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}

.eq-range-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.eq-range-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ── POSITION ACTION BUTTONS ─────────────────────────────── */
.position-actions {
  display: flex;
  gap: 6px;
  margin-top: .35rem;
  justify-content: flex-end;
}

.pos-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  transition: all .15s;
}

.pos-action-btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.pos-modify-btn:hover {
  background: rgba(59,130,246,.08);
  border-color: #3b82f6;
  color: #3b82f6;
}

.pos-close-btn:hover {
  background: rgba(239,68,68,.08);
  border-color: #ef4444;
  color: #ef4444;
}

/* ── PENDING REFRESH INDICATOR ───────────────────────────── */
.pending-refresh-indicator {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 4px var(--success);
  margin-left: 6px;
  vertical-align: middle;
  animation: pending-pulse 2s ease-in-out infinite;
}

@keyframes pending-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── PENDING ACTIONS ───────────────────────────────────────── */
.pending-action-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}

.pending-action-row:last-child {
  border-bottom: none;
}

.pending-action-row:active {
  background: var(--bg);
}

.pending-action-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.pending-action-icon.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.pending-action-icon.info {
  background: var(--brand-light);
  color: var(--brand);
}

.pending-action-icon.danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.pending-action-text {
  flex: 1;
  min-width: 0;
}

.pending-action-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}

.pending-action-sub {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-action-cta {
  font-size: .75rem;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Source: settings.css ===== */
/*
 * settings.css — TradersVill Settings Tab Styles
 * Load after style.css and style-patch.css
 */

/* ═══════════════════════════════════════════════
   SETTINGS AVATAR BLOCK (with upload button)
═══════════════════════════════════════════════ */
.stg-avatar-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.stg-avatar-upload-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 6px rgba(37,99,235,.3);
}

.stg-avatar-upload-btn:active {
  transform: scale(.9);
}

/* Avatar image mode */
.avatar.stg-avatar-photo {
  text-indent: -9999px;
  color: transparent;
}

/* ═══════════════════════════════════════════════
   PREFERENCES — saved indicator
═══════════════════════════════════════════════ */
#stg-pref-saved {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--success);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   MODALS — base layer
═══════════════════════════════════════════════ */
.stg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity .25s ease;
  padding: 0;
  backdrop-filter: blur(2px);
}

.stg-modal-overlay.open {
  opacity: 1;
}

.stg-modal {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32, .72, 0, 1);
  box-shadow: 0 -8px 32px rgba(0,0,0,.18);
  /* Prevent body scroll */
  overscroll-behavior: contain;
}

.stg-modal-overlay.open .stg-modal {
  transform: translateY(0);
}

/* Handle drag bar */
.stg-modal::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  margin: .75rem auto .25rem;
}

.stg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem 0;
}

.stg-modal-header--danger .stg-modal-title {
  color: var(--danger);
}

.stg-modal-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
}

.stg-modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  font-size: .9rem;
  transition: background .15s, color .15s;
}

.stg-modal-close:active {
  background: var(--border);
  color: var(--text);
}

.stg-modal-body {
  padding: .75rem 1.25rem 0;
}

.stg-modal-desc {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.stg-btn-full {
  width: 100%;
  margin-top: 1rem;
  padding: .85rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

/* ═══════════════════════════════════════════════
   SESSIONS MODAL
═══════════════════════════════════════════════ */
.stg-session-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--surface-subtle, var(--bg));
  border: 1px solid var(--border);
  margin-bottom: var(--space-3);
}

.stg-session-current {
  border-color: var(--success);
  background: var(--success-bg);
}

.stg-session-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
  border-radius: var(--radius-xs);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
  border: 1px solid var(--border);
}

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

.stg-session-device {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.stg-session-badge {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success);
  padding: .1rem .4rem;
  border-radius: 99px;
}

.stg-session-email {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stg-session-meta {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
}

.stg-session-dot {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.stg-session-dot--active {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
  animation: stg-pulse 2s infinite;
}

@keyframes stg-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,.08); }
}

.stg-sessions-note {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: .75rem;
  font-size: .75rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: .5rem;
}

.btn-danger-outline {
  background: transparent;
  border: 1.5px solid var(--danger);
  color: var(--danger);
  transition: background .2s;
}

.btn-danger-outline:active {
  background: var(--danger-bg);
}

/* ═══════════════════════════════════════════════
   EXPORT MODAL
═══════════════════════════════════════════════ */
.stg-export-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}

.stg-export-option {
  cursor: pointer;
}

.stg-export-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stg-export-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.stg-export-option input[type="radio"]:checked + .stg-export-option-card {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 4px 12px rgba(37,99,235,.1);
}

.stg-export-option-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
}

.stg-export-option-sub {
  font-size: .75rem;
  color: var(--muted);
}

.stg-export-includes {
  background: var(--bg);
  border-radius: var(--radius);
  padding: .85rem;
  margin-bottom: .5rem;
}

.stg-export-includes-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: .5rem;
}

.stg-export-include-row {
  font-size: .78rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .2rem 0;
}

/* ═══════════════════════════════════════════════
   DELETE MODAL
═══════════════════════════════════════════════ */
.stg-delete-warning {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border, rgba(239,68,68,.2));
  border-radius: var(--radius);
  padding: .9rem;
  font-size: .8rem;
  color: var(--text);
  line-height: 1.6;
}

.stg-delete-list {
  margin: .5rem 0 0 1rem;
  padding: 0;
  list-style: disc;
  color: var(--text);
}

.stg-delete-list li {
  margin-bottom: .2rem;
}

.stg-balance-warning {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--warning-bg);
  border-radius: var(--radius);
  padding: .75rem;
  font-size: .78rem;
  color: var(--text);
  font-weight: 600;
  margin-top: .75rem;
}

.stg-delete-input {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  font-weight: 700 !important;
  text-align: center !important;
  letter-spacing: .1em !important;
  font-size: 1rem !important;
}

.stg-delete-input::placeholder {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: normal;
  font-size: .88rem;
}

/* ═══════════════════════════════════════════════
   TRANSACTION HISTORY MODAL
═══════════════════════════════════════════════ */
.stg-txn-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
}

.stg-txn-row:last-child {
  border-bottom: none;
}

.stg-txn-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

.stg-txn-icon--deposit {
  background: var(--success-bg);
  color: var(--success);
}

.stg-txn-icon--withdraw {
  background: var(--danger-bg);
  color: var(--danger);
}

.stg-txn-mid {
  flex: 1;
  min-width: 0;
}

.stg-txn-type {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}

.stg-txn-date {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
}

.stg-txn-ref {
  font-size: .75rem;
  color: var(--muted);
  font-family: monospace;
  margin-top: .05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stg-txn-right {
  text-align: right;
  flex-shrink: 0;
}

.stg-txn-amount {
  font-size: .85rem;
  font-weight: 800;
}

.stg-txn-amount--pos { color: var(--success); }
.stg-txn-amount--neg { color: var(--danger); }

.stg-txn-status {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .15rem;
  padding: .1rem .4rem;
  border-radius: 99px;
  display: inline-block;
}

.stg-txn-status--success  { background: var(--success-bg);  color: var(--success); }
.stg-txn-status--danger   { background: var(--danger-bg);   color: var(--danger); }
.stg-txn-status--warning  { background: var(--warning-bg);  color: var(--warning); }

.stg-loader-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 2rem 0;
}

.stg-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text);
  font-size: .82rem;
}

/* ═══════════════════════════════════════════════
   SETTINGS TAB — About section
═══════════════════════════════════════════════ */
.stg-about-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.stg-about-row:last-child {
  border-bottom: none;
}

.stg-about-row:active {
  background: var(--bg);
}

.stg-about-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}

.stg-about-text {
  flex: 1;
  font-size: .82rem;
  font-weight: 600;
}

.stg-about-sub {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
}

.stg-about-chevron {
  color: var(--muted);
  font-size: .75rem;
}

/* Version tag at footer */
.stg-version-tag {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  padding: .75rem 0 .5rem;
  letter-spacing: .05em;
}

/* ═══════════════════════════════════════════════
   PROFILE SHEET AVATAR SECTION
═══════════════════════════════════════════════ */
.sheet-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.sheet-avatar-upload-hint {
  font-size: .75rem;
  color: var(--muted);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════
   PASSWORD RESET MODAL CHECK
═══════════════════════════════════════════════ */
/* Reuses .stg-modal-* classes above */

/* ═══════════════════════════════════════════════
   LANGUAGE SELECTOR IN SETTINGS
═══════════════════════════════════════════════ */
.stg-lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .45rem .85rem .45rem .65rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .4rem center;
  background-size: 1rem;
  padding-right: 1.8rem;
}

/* ═══════════════════════════════════════════════
   SETTINGS SESSION SECTION COUNT BADGE
═══════════════════════════════════════════════ */
.settings-session-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 99px;
  background: var(--success-bg);
  color: var(--success);
  font-size: .75rem;
  font-weight: 800;
  padding: 0 .35rem;
}

/* ═══════════════════════════════════════════════
   KYC STATUS BADGE — Identity Verification section
═══════════════════════════════════════════════ */
.stg-kyc-status-badge {
  font-size: .75rem;
  font-weight: 800;
  padding: .25rem .6rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.stg-kyc-pending  { background: var(--warning-bg, #fef3c7); color: var(--warning, #d97706); }
.stg-kyc-approved { background: var(--success-bg, #d1fae5); color: var(--success, #059669); }
.stg-kyc-rejected { background: var(--danger-bg,  #fee2e2); color: var(--danger,  #dc2626); }
.stg-kyc-review   { background: #eff6ff;                    color: #3b82f6; }

/* ===== Source: kyc-gate.css ===== */
/* ============================================================
   kyc-gate.css  —  KYC Gate Modal
   Shown when a user without verified KYC tries to access
   Deposits, Withdrawals, or Trading.
   ============================================================ */

/* ── Overlay backdrop ── */
.kyc-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.kyc-gate-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal sheet ── */
.kyc-gate-modal {
  background: var(--surface, #fff);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 0 1.5rem max(1.75rem, env(safe-area-inset-bottom)) 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  overscroll-behavior: contain;
}

.kyc-gate-overlay.open .kyc-gate-modal {
  transform: translateY(0);
}

/* ── Drag handle ── */
.kyc-gate-handle {
  width: 2.5rem;
  height: 3px;
  background: var(--border, #e2e8f0);
  border-radius: 99px;
  margin: 0.875rem auto 1.75rem;
}

/* ── Icon circle ── */
.kyc-gate-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 1.25rem;
}

/* ── Title & body copy ── */
.kyc-gate-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text, #0f172a);
  text-align: center;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.kyc-gate-subtitle {
  font-size: 0.8rem;
  color: var(--muted, #64748b);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Feature highlight ── */
.kyc-gate-feature-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand, #2563eb);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── Step list ── */
.kyc-gate-steps {
  background: var(--bg, #f4f6fb);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kyc-gate-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  color: var(--text, #0f172a);
}

.kyc-gate-step-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--brand, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── CTA buttons ── */
.kyc-gate-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kyc-gate-btn-primary {
  width: 100%;
  padding: 0.9rem;
  background: var(--brand, #2563eb);
  color: #fff;
  border: none;
  border-radius: var(--radius, 1rem);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: -0.01em;
}

.kyc-gate-btn-primary:active {
  transform: scale(0.98);
  background: #1d4ed8;
}

.kyc-gate-btn-ghost {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: var(--muted, #64748b);
  border: none;
  border-radius: var(--radius, 1rem);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.kyc-gate-btn-ghost:active {
  color: var(--text, #0f172a);
}

/* ===== Source: dashboard-loader.css ===== */
/* ============================================================
   ALDEAPATH — Dashboard Loader & Header Brand Patch
   ------------------------------------------------------------
   Drop-in override that:
     • Aligns the dashboard handoff loader with splash.php timing
       and visual language (teal #00c9b7 + navy #1a3560)
     • Fixes brand text colors so "ALDEA" + "PATH" match the logo
     • Replaces the noisy 3-ring ripple with a single calm
       brand-colored pulse + monospace status line
     • Properly sizes & aligns the header logo + wordmark

   Include AFTER /user/assets/css/style.css and style-patch.css:
     <link rel="stylesheet" href="/user/assets/css/dashboard-loader.css?v=1">
   ============================================================ */

:root {
  --ap-teal: var(--brand, #00796b);
  --ap-teal-soft: rgba(0, 201, 183, 0.14);
  --ap-teal-glow: rgba(0, 201, 183, 0.45);
  --ap-navy: #1a3560;
  --ap-navy-soft: rgba(26, 53, 96, 0.10);
  --ap-ink: #0b1830;
}

[data-theme="dark"] {
  --ap-navy: #e6edf7;
  --ap-ink: #07101f;
}

/* ── FULL-SCREEN LOADER ───────────────────────────────────── */
/* IMPORTANT: base color MUST match splash.php's --bg exactly so the
   handoff between splash and dashboard has zero white flash.
   Splash light: #f6f5f1   Splash dark: #0a1424                       */
.full-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(1100px 700px at 50% 38%, rgba(0,201,183,0.07), transparent 65%),
    #f6f5f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 1.5rem;
  /* Match splash fade-out cadence (400ms) */
  transition: opacity 0.4s ease, visibility 0.4s ease;
  font-family: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] .full-loader,
.full-loader[data-theme="dark"] {
  background:
    radial-gradient(1100px 700px at 50% 38%, rgba(0,201,183,0.10), transparent 65%),
    #0a1424;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .full-loader {
    background:
      radial-gradient(1100px 700px at 50% 38%, rgba(0,201,183,0.10), transparent 65%),
      #0a1424;
  }
}

.full-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Subtle dot-grid backdrop, same texture as splash */
.full-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(26,53,96,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 45%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 35%, transparent 75%);
}

[data-theme="dark"] .full-loader::before {
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
}

/* ── RIPPLE → REPLACED WITH SINGLE BRAND PULSE ─────────────── */
.ripple-loader-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

/* Hide the original 2nd & 3rd rings — keep only one for a calmer feel */
.ripple-ring:nth-child(2),
.ripple-ring:nth-child(3) { display: none !important; }

.ripple-ring {
  position: absolute;
  inset: 0;
  width: 96px !important;
  height: 96px !important;
  border-radius: 50%;
  border: 1.5px solid var(--ap-teal) !important;
  animation: ap-ring 1.8s cubic-bezier(0.21, 0.61, 0.35, 1) infinite !important;
  animation-delay: 0s !important;
  box-shadow: none !important;
  background: transparent !important;
  will-change: transform, opacity;
}

@keyframes ap-ring {
  0%   { transform: scale(0.55); opacity: 0.85; }
  70%  { transform: scale(1.15); opacity: 0;    }
  100% { transform: scale(1.15); opacity: 0;    }
}

/* Center logo — clean disc with teal glow, no harsh blue shadow */
.ripple-logo-center {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface, #fff);
  box-shadow:
    0 0 0 1px rgba(0,201,183,0.18),
    0 8px 28px rgba(0,201,183,0.22),
    0 2px 6px rgba(11,24,48,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: ap-logo-breathe 2.4s ease-in-out infinite;
}

[data-theme="dark"] .ripple-logo-center {
  background: #0d1a32;
  box-shadow:
    0 0 0 1px rgba(0,201,183,0.28),
    0 8px 32px rgba(0,201,183,0.30),
    0 2px 6px rgba(0,0,0,0.4);
}

@keyframes ap-logo-breathe {
  0%, 100% { transform: scale(1);     }
  50%      { transform: scale(1.045); }
}

.ripple-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

/* ── BRAND WORDMARK — fixed colors to match logo ───────────── */
.ripple-brand-text {
  position: relative;
  z-index: 2;
  font-family: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ap-navy);
  line-height: 1;
  margin-top: 0.15rem;
}

/* "Path" gets brand teal — matches the logo */
.ripple-brand-text span {
  color: var(--ap-teal) !important;
}

/* ── STATUS LINE — monospace, matches splash language ──────── */
.ripple-loader-text {
  position: relative;
  z-index: 2;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
  margin-top: 0.25rem;
  transition: opacity 0.3s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ripple-loader-text::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ap-teal);
  box-shadow: 0 0 0 0 var(--ap-teal-glow);
  animation: ap-pulse-dot 1.6s ease-in-out infinite;
}

@keyframes ap-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--ap-teal-glow); opacity: 1;   }
  50%      { box-shadow: 0 0 0 6px transparent;       opacity: 0.55; }
}

/* ── BOTTOM PROGRESS STRIP — matches splash 2px gradient ───── */
.full-loader::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--ap-teal) 0%, #1a3560 100%);
  box-shadow: 0 0 12px rgba(0,201,183,0.55);
  animation: ap-progress 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ap-progress {
  0%   { width: 0%;   }
  35%  { width: 45%;  }
  70%  { width: 78%;  }
  100% { width: 100%; }
}

/* When loader is hiding, freeze progress at 100% */
.full-loader.hidden::after { width: 100%; }

/* ── HEADER BRAND — logo dominates, wordmark sits beside it ── */
.header-brand {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem !important;
  max-width: none;
  text-decoration: none;
  line-height: 1;
}

/* Logo is the anchor — must read clearly and feel bigger than the wordmark */
.header-logo-img {
  height: 48px !important;
  width: 48px !important;
  max-width: 48px !important;
  object-fit: contain;
  display: block;
  border-radius: 9px;
  flex-shrink: 0;
}

/* Wordmark "Aldea" → navy. Kept smaller than the logo on purpose. */
.header-brand > span {
  font-family: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: -0.02em !important;
  color: var(--ap-navy) !important;
  line-height: 1 !important;
  display: inline-flex;
  align-items: baseline;
}

/* Wordmark "Path" → teal */
.header-brand > span > span {
  color: var(--ap-teal) !important;
  font-weight: 800 !important;
}

/* Tighter on small phones so the bigger logo doesn't crowd the controls */
@media (max-width: 360px) {
  .header-logo-img {
    height: 42px !important;
    width: 42px !important;
    max-width: 42px !important;
  }
  .header-brand > span {
    font-size: 0.88rem !important;
  }
}

/* Reduced motion — kill all loops, just show steady state */
@media (prefers-reduced-motion: reduce) {
  .ripple-ring,
  .ripple-logo-center,
  .ripple-loader-text::before,
  .full-loader::after {
    animation: none !important;
  }
  .full-loader::after { width: 100%; }
  .ripple-ring { opacity: 0.4; transform: scale(1.05); }
}

/* ===== Source: notifications-polish.css ===== */
/* ============================================================
   ALDEAPATH — Notification Panel & Toast Polish
   ------------------------------------------------------------
   Drop-in override that slims the notification dropdown and
   toast cards into a clean, professional, brand-aligned view.

   Goals
     • Tighter, calmer rows (less padding, smaller icons)
     • Brand teal accent (replaces hard-coded blue #2563eb)
     • Subtle unread treatment (left bar, no heavy bg tint)
     • Slimmer tab strip with pill-style active state
     • Compact toast cards with restrained icons
     • Better dark mode contrast

   Include AFTER /user/assets/css/improvements.css and
   /user/assets/css/style-patch.css:
     <link rel="stylesheet" href="/user/assets/css/notifications-polish.css?v=1">
   ============================================================ */

:root {
  --np-teal: var(--brand, #00796b);
  --np-teal-soft: rgba(0, 201, 183, 0.10);
  --np-teal-line: rgba(0, 201, 183, 0.32);
  --np-navy: #1a3560;
  --np-divider: rgba(15, 23, 42, 0.06);
  --np-divider-strong: rgba(15, 23, 42, 0.10);
}
[data-theme="dark"] {
  --np-divider: rgba(255, 255, 255, 0.06);
  --np-divider-strong: rgba(255, 255, 255, 0.10);
}

/* ── BELL BUTTON ─────────────────────────────────────────── */
.notif-btn {
  padding: 0.4rem !important;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.notif-btn:hover {
  color: var(--np-teal) !important;
  background: var(--np-teal-soft);
}
.notif-btn svg {
  width: 1.05rem !important;
  height: 1.05rem !important;
  stroke-width: 1.8;
}

/* Slimmer, brand-colored badge */
.notif-badge {
  background: var(--np-teal) !important;
  color: var(--color-on-brand, #fff) !important;
  font-size: .75rem !important;
  font-weight: 800 !important;
  min-width: 0.85rem !important;
  height: 0.85rem !important;
  top: 0.05rem !important;
  right: 0.05rem !important;
  border-width: 1.5px !important;
  letter-spacing: 0.01em;
}

/* ── PANEL CONTAINER ─────────────────────────────────────── */
.notif-panel {
  width: min(340px, calc(100vw - 1.5rem)) !important;
  border-radius: 14px !important;
  border: 1px solid var(--np-divider-strong) !important;
  box-shadow:
    0 14px 40px -8px rgba(15, 23, 42, 0.16),
    0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden;
}

/* Header — tighter, cleaner */
.notif-panel-header {
  padding: 0.7rem 0.85rem 0.6rem !important;
  border-bottom: 1px solid var(--np-divider) !important;
}
.notif-panel-title {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}
.notif-mark-read,
.notif-clear-read {
  font-size: .75rem !important;
  font-weight: 600 !important;
  color: var(--np-teal) !important;
  padding: 0.25rem 0.55rem !important;
  border-radius: 999px !important;
}
.notif-mark-read:hover,
.notif-clear-read:hover {
  background: var(--np-teal-soft) !important;
}

/* ── TAB STRIP — overrides the inline-styled tabs ──────── */
#notif-tabs,
.notif-tabs {
  padding: 0.45rem 0.5rem 0.5rem !important;
  gap: 0.2rem !important;
  border-bottom: 1px solid var(--np-divider) !important;
  background: transparent !important;
}

.notif-tab-btn {
  flex: 1 !important;
  padding: 0.32rem 0.4rem !important;
  border: none !important;
  border-radius: 7px !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  background: transparent !important;
  color: var(--muted, #64748b) !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease !important;
  white-space: nowrap;
}

.notif-tab-btn:hover {
  background: var(--np-divider) !important;
  color: var(--text, #0f172a) !important;
}

.notif-tab-btn.active {
  background: var(--np-teal-soft) !important;
  color: var(--np-teal) !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1px var(--np-teal-line);
}

/* ── LIST CONTAINER ──────────────────────────────────────── */
.notif-list {
  max-height: 360px !important;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--np-divider-strong) transparent;
}
.notif-list::-webkit-scrollbar { width: 6px; }
.notif-list::-webkit-scrollbar-thumb {
  background: var(--np-divider-strong);
  border-radius: 999px;
}
.notif-list::-webkit-scrollbar-track { background: transparent; }

/* Group date headers — smaller, calmer */
.notif-group-header {
  padding: 0.5rem 0.85rem 0.25rem !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  color: var(--muted, #64748b) !important;
  text-transform: uppercase;
  background: var(--surface) !important;
}

/* ── ITEM ROWS — slimmer, no heavy bg tint ──────────────── */
.notif-item {
  display: flex !important;
  gap: 0.6rem !important;
  padding: 0.6rem 0.85rem !important;
  border-bottom: 1px solid var(--np-divider) !important;
  position: relative;
  cursor: pointer !important;
  transition: background 0.12s ease;
}
.notif-item:last-child { border-bottom: none !important; }
.notif-item:hover {
  background: var(--np-divider) !important;
}

/* Unread — kill the heavy brand-light tint, use a subtle teal bar */
.notif-item.unread {
  background: transparent !important;
  opacity: 1 !important;
}
.notif-item.unread::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2.5px !important;
  background: var(--np-teal) !important;
  border-radius: 0 2px 2px 0 !important;
}
.notif-item.unread .notif-title {
  font-weight: 700 !important;
  color: var(--text, #0f172a);
}

/* Read — gentle de-emphasis */
.notif-item.read {
  opacity: 0.78 !important;
}
.notif-item.read .notif-title {
  font-weight: 600 !important;
}

/* Icon wrapper — smaller, softer */
.notif-icon-wrap {
  width: 1.85rem !important;
  height: 1.85rem !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-icon-wrap i {
  font-size: 0.78rem !important;
}

/* Content column */
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 0.76rem !important;
  font-weight: 600;
  color: var(--text, #0f172a);
  line-height: 1.35;
  margin-bottom: 0.1rem;
  letter-spacing: -0.005em;
  /* Truncate to one line for the cleanest read */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notif-message {
  font-size: .75rem !important;
  font-weight: 400;
  color: var(--muted, #64748b);
  line-height: 1.4;
  margin-bottom: 0.2rem;
  /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-time {
  font-size: .75rem !important;
  font-weight: 500 !important;
  color: var(--muted, #94a3b8) !important;
  letter-spacing: 0.01em;
}

/* Mark-as-read tick button — subtle, only on hover */
.notif-mark-read-btn {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #94a3b8);
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  font-size: .75rem;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.notif-item:hover .notif-mark-read-btn {
  opacity: 1;
}
.notif-mark-read-btn:hover {
  background: var(--np-teal-soft);
  color: var(--np-teal);
}

/* Hide the legacy left-side dot — we use a bar now */
.notif-dot { display: none !important; }

/* ── EMPTY STATE — calmer, smaller icon ─────────────────── */
.notif-empty {
  padding: 2.25rem 1rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.notif-empty i {
  font-size: 1.4rem !important;
  color: var(--muted, #cbd5e1) !important;
  margin-bottom: 0.25rem !important;
}
.notif-empty-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  letter-spacing: -0.005em;
}
.notif-empty-sub {
  font-size: .75rem;
  font-weight: 400;
  color: var(--muted, #94a3b8);
  text-align: center;
  line-height: 1.45;
  max-width: 220px;
}

/* ── TOAST NOTIFICATION — compact, restrained ───────────── */
.toast-notification {
  gap: 0.55rem !important;
  padding: 0.7rem 0.75rem !important;
  border-radius: 12px !important;
  border-color: var(--np-divider-strong) !important;
  box-shadow:
    0 12px 32px -8px rgba(15, 23, 42, 0.18),
    0 2px 6px rgba(15, 23, 42, 0.06) !important;
  max-width: 360px;
}

.toast-notif-icon {
  width: 1.7rem !important;
  height: 1.7rem !important;
  border-radius: 8px !important;
  font-size: .75rem !important;
  margin-top: 1px;
}

.toast-title {
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.005em;
  margin-bottom: 0.15rem !important;
  /* Keep the title to a single tight line */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-message {
  font-size: .75rem !important;
  line-height: 1.45 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.toast-close {
  width: 1.3rem;
  height: 1.3rem;
  padding: 0 !important;
  border-radius: 6px !important;
  font-size: .75rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
}
.toast-close:hover { opacity: 1; }

/* Subtle teal accent strip on the toast left edge */
.toast-notification {
  position: relative;
  overflow: hidden;
}
.toast-notification::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2.5px;
  background: var(--np-teal);
  border-radius: 0 2px 2px 0;
  opacity: 0.85;
}

/* ── DARK MODE ───────────────────────────────────────────── */
[data-theme="dark"] .notif-panel {
  box-shadow:
    0 18px 50px -10px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.30) !important;
}
[data-theme="dark"] .notif-tab-btn.active {
  background: rgba(0, 201, 183, 0.16) !important;
}
[data-theme="dark"] .notif-group-header {
  background: var(--surface, #0d1a32) !important;
}
[data-theme="dark"] .toast-notification {
  box-shadow:
    0 16px 40px -10px rgba(0, 0, 0, 0.65),
    0 3px 10px rgba(0, 0, 0, 0.35) !important;
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .notif-item,
  .notif-tab-btn,
  .notif-mark-read-btn,
  .toast-notification {
    transition: none !important;
  }
}

/* ===== Source: announcement-carousel.css ===== */
/*
   announcement-carousel.css
   Homepage Announcement Carousel — additive styles only.
   Core shell/layout/nav rules live in style.css; do NOT redefine them here.
   Place at: user/assets/css/announcement-carousel.css
   ============================================================ */

/* ── CAROUSEL WRAPPER ──────────────────────────────────────────
   Collapsed when empty (JS removes ann-has-slides).              */
.ann-wrap {
  margin: .85rem 0;
  overflow: hidden;
  /* hide while JS hasn't initialised yet */
}

.ann-wrap:not(.ann-has-slides) {
  display: none;
}

/* ── VIEWPORT — clips the track; horizontal padding creates peek */
.ann-viewport {
  overflow: hidden;
  padding: 0 18px;
  /* touch-action: allow the track to capture horizontal swipes */
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

/* ── TRACK — flex row of slides ──────────────────────────────── */
.ann-track {
  display: flex;
  flex-direction: row; /* explicit — prevents any inherited flex-direction:column from parent */
  gap: 10px;
  will-change: transform;
  /* transition applied via JS class so we can suppress it on drag */
}

.ann-track.ann-animated {
  transition: transform 400ms cubic-bezier(.4, 0, .2, 1);
}

/* ── SLIDE CARD ──────────────────────────────────────────────── */
.ann-slide {
  /* width set by JS to viewport width minus the peek gap */
  flex-shrink: 0;
  border-radius: var(--radius, 14px);
  overflow: hidden;
  min-height: 120px;
  max-height: 140px;
  box-shadow: var(--shadow-md, 0 4px 16px rgba(15,23,42,.08));
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}

.ann-slide:active {
  transform: scale(.985);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,23,42,.06));
}

/* Watermark SVG layer (decorative, non-interactive) */
.ann-slide-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.ann-slide-watermark svg {
  position: absolute;
  opacity: .12;
}

/* ── CARD INNER LAYOUT ───────────────────────────────────────── */
.ann-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 120px;
  max-height: 140px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

/* Category badge */
.ann-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 99px;
  padding: .22rem .6rem;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  width: fit-content;
}

/* Headline + description */
.ann-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .18rem;
  margin: .45rem 0;
}

.ann-headline {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 3.5rem); /* leave room for illustration */
}

.ann-description {
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 3.5rem);
}

/* CTA text */
.ann-cta {
  font-size: .75rem;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  gap: .25rem;
  letter-spacing: .01em;
}

.ann-cta svg {
  width: .7rem;
  height: .7rem;
  flex-shrink: 0;
  transition: transform .2s;
}

.ann-slide:hover .ann-cta svg {
  transform: translateX(3px);
}

/* Illustration — positioned absolute, top-right */
.ann-illustration {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ann-illustration svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.18));
}

/* ── SLIDE BACKGROUNDS ───────────────────────────────────────── */

/* Slide 1 — Market Update (Blue) */
.ann-bg-market {
  background: linear-gradient(135deg, #1a56d4 0%, #2563eb 55%, #38bdf8 100%);
}

/* Slide 2 — Portfolio (Green) */
.ann-bg-portfolio {
  background: linear-gradient(135deg, #047857 0%, #16a34a 55%, #4ade80 100%);
}

/* Slide 3 — New Feature (Purple) */
.ann-bg-feature {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 55%, #a78bfa 100%);
}

/* Slide 4 — Security (Orange) */
.ann-bg-security {
  background: linear-gradient(135deg, #b45309 0%, #d97706 55%, #fbbf24 100%);
}

/* Slide 5 — Aldeapath Crypto Card (Teal/Cyan) */
.ann-bg-card {
  background: linear-gradient(135deg, #0e7490 0%, #06b6d4 55%, #67e8f9 100%);
}

/* ── PAGINATION DOTS — small, subtle, modern ─────────────────── */
.ann-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 16px;              /* fixed — pagination never shifts */
  margin-top: 12px;
  padding: 0;
  line-height: 0;
}

.ann-dot {
  position: relative;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  max-width: 8px;
  max-height: 8px;
  flex: 0 0 auto;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: var(--muted-2, #94a3b8);
  opacity: .35;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 240ms cubic-bezier(.4, 0, .2, 1),
              opacity 240ms cubic-bezier(.4, 0, .2, 1),
              transform 240ms cubic-bezier(.4, 0, .2, 1);
}

/* Invisible touch target that does not affect layout. */
.ann-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
}

.ann-dot.ann-dot-active {
  background: var(--brand, #2563eb);
  opacity: 1;
  transform: scale(1.25);   /* 8px -> 10px visual */
}

/* ── DETAIL BOTTOM SHEET ─────────────────────────────────────── */
#ann-detail-sheet {
  max-width: 480px;
}

/* Top bar with title + X close button */
.ann-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ann-detail-topbar-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ann-detail-x-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: var(--bg, #f1f5f9);
  color: var(--text-2, #334155);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}

.ann-detail-x-btn:hover  { background: var(--border, #e2e8f0); }
.ann-detail-x-btn:active { transform: scale(.9); }

[data-theme="dark"] .ann-detail-x-btn {
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
}
[data-theme="dark"] .ann-detail-x-btn:hover {
  background: rgba(255,255,255,.14);
}

/* Hero area at top of sheet */
.ann-detail-hero {
  border-radius: var(--radius, 14px);
  overflow: hidden;
  margin-bottom: 1.1rem;
  min-height: 120px;
  position: relative;
}

.ann-detail-hero-inner {
  padding: 1.25rem 1.25rem 1.35rem;
  position: relative;
  z-index: 1;
}

.ann-detail-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 99px;
  padding: .25rem .65rem;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  margin-bottom: .65rem;
}

.ann-detail-hero-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .3rem;
}

.ann-detail-hero-subtitle {
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  line-height: 1.45;
}

.ann-detail-hero-illus {
  position: absolute;
  right: 1.1rem;
  bottom: .9rem;
  width: 3.75rem;
  height: 3.75rem;
  opacity: .9;
  pointer-events: none;
}

.ann-detail-hero-illus svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.2));
}

/* Detail body */
.ann-detail-date {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.ann-detail-body-text {
  font-size: .85rem;
  font-weight: 400;
  color: var(--text-2, #334155);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.ann-detail-cta-btn {
  width: 100%;
  padding: .85rem;
  border: none;
  border-radius: var(--radius-sm, 10px);
  font-size: .875rem;
  font-weight: 800;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: opacity .15s, transform .12s;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
}

.ann-detail-cta-btn:hover   { opacity: .92; transform: translateY(-1px); }
.ann-detail-cta-btn:active  { transform: scale(.98); }

.ann-detail-close-btn {
  width: 100%;
  padding: .8rem;
  background: transparent;
  border: 1.5px solid var(--border, #eaeff6);
  border-radius: var(--radius-sm, 10px);
  font-size: .82rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-2, #334155);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.ann-detail-close-btn:hover {
  background: var(--bg, #f8fafd);
  border-color: #c8d4e3;
}

/* ── DARK MODE ADJUSTMENTS ───────────────────────────────────── */
[data-theme="dark"] .ann-dot {
  background: #94a3b8;
  opacity: .3;
}

[data-theme="dark"] .ann-dot.ann-dot-active {
  background: var(--brand, #2563eb);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 360px) {
  .ann-viewport {
    padding: 0 12px;
  }
  .ann-dots {
    padding: 0;
  }
}
