/* ============================================================
   OH Theme Management — auth.css v2.1.0
   Professional SaaS Auth & Account Pages
   ============================================================ */

/* ── Auth Layout ─────────────────────────────────────────────── */
.otm-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fafafa;
}

/* ── Left Panel (Branding) ───────────────────────────────────── */
.otm-auth-left {
  background: linear-gradient(145deg, #1e1b4b 0%, #312e81 35%, #4338ca 65%, #5c5fef 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  min-height: 100vh;
}

/* Decorative mesh */
.otm-auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139,92,246,.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(217,70,239,.25) 0%, transparent 60%);
  pointer-events: none;
}

.otm-auth-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.otm-auth-left__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Brand logo */
.otm-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  margin-bottom: 3rem;
}

.otm-auth-brand-mark {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
}

.otm-auth-brand-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: -.02em;
}

.otm-auth-brand-text span { color: #fbbf24; }

/* Headline */
.otm-auth-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.otm-auth-subline {
  color: rgba(255,255,255,.65);
  font-size: .97rem;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.otm-auth-subline a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: none;
}
.otm-auth-subline a:hover { text-decoration: underline; }

/* Feature list */
.otm-auth-feat-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: auto;
}

.otm-auth-feat {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.otm-auth-feat-icon {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.15);
}

/* Mockup preview */
.otm-auth-mockup {
  margin-top: 2.5rem;
  position: relative;
}

.otm-auth-mockup-frame {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.otm-auth-mockup-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .9rem;
  background: rgba(0,0,0,.15);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.otm-auth-mockup-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: .6;
}

.otm-auth-mockup-bar span:nth-child(1) { background: #ff5f57; }
.otm-auth-mockup-bar span:nth-child(2) { background: #ffbd2e; }
.otm-auth-mockup-bar span:nth-child(3) { background: #28ca41; }

.otm-auth-mockup img {
  width: 100%;
  opacity: .85;
  display: block;
}

/* Stats strip */
.otm-auth-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.otm-auth-stat strong {
  display: block;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'DM Sans', sans-serif;
}
.otm-auth-stat span {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  font-family: 'DM Sans', sans-serif;
}

/* ── Right Panel (Form) ──────────────────────────────────────── */
.otm-auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  overflow-y: auto;
}

.otm-auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1.5px solid #e4e4ef;
  box-shadow: 0 8px 40px rgba(92,95,239,.08);
}

.otm-auth-logo {
  margin-bottom: 2rem;
}
.otm-auth-logo a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.otm-auth-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #5c5fef, #7c3aed);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otm-auth-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: #0f0f1a;
  margin-bottom: .4rem;
  line-height: 1.15;
}

.otm-auth-subtitle {
  font-size: .88rem;
  color: #6b7080;
  margin-bottom: 1.75rem;
  font-family: 'DM Sans', sans-serif;
}

/* Social login */
.otm-auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.otm-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem;
  border: 1.5px solid #e4e4ef;
  border-radius: 10px;
  background: #fff;
  font-size: .85rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: #374151;
  cursor: pointer;
  transition: all .2s;
}
.otm-social-btn:hover:not(:disabled) {
  border-color: #5c5fef;
  background: #f5f5fd;
}
.otm-social-btn:disabled { opacity: .4; cursor: not-allowed; }
.otm-social-btn--google .otm-sb-icon { color: #ea4335; }
.otm-social-btn--facebook .otm-sb-icon { color: #1877f2; }
.otm-sb-icon { font-weight: 800; font-size: 1rem; }

/* Divider */
.otm-auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  color: #9ca3af;
  font-size: .8rem;
  font-family: 'DM Sans', sans-serif;
}
.otm-auth-divider::before,
.otm-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e4ef;
}

/* Form elements — Task 2: aligned 2-col grid, 16px gap, 6px label margin */
.otm-form-group { margin-bottom: 0; }
.otm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.otm-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.otm-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #e4e4ef;
  border-radius: 10px;
  font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  color: #0f0f1a;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  appearance: none;
}
.otm-input::placeholder { color: #9ca3af; }
.otm-input:focus {
  border-color: #5c5fef;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92,95,239,.12);
}
.otm-input:invalid:not(:placeholder-shown) { border-color: #ef4444; }
.otm-input-icon-wrap { position: relative; }
.otm-input-icon-wrap .otm-input { padding-right: 2.8rem; }
.otm-password-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: .25rem;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.otm-password-toggle:hover { color: #5c5fef; }

/* Form row utilities */
.otm-form-row--space-between { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

/* Checkbox */
.otm-check-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
  font-family: 'DM Sans', sans-serif;
  color: #6b7080;
  cursor: pointer;
  user-select: none;
}
.otm-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #5c5fef;
  flex-shrink: 0;
}

/* Password strength */
.otm-pass-strength {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  margin-top: -.4rem;
}
.otm-pass-strength__bar {
  flex: 1;
  height: 4px;
  background: #e4e4ef;
  border-radius: 2px;
  overflow: hidden;
}
.otm-pass-strength__fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s, background .3s;
  width: 0;
}
#otm-pass-label { font-size: .75rem; font-weight: 600; font-family: 'DM Sans', sans-serif; min-width: 70px; }

/* Alerts */
.otm-auth-alert {
  padding: .7rem 1rem;
  border-radius: 10px;
  font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.otm-auth-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.otm-auth-alert--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #065f46; }

/* Auth links */
.otm-auth-link { color: #5c5fef; font-weight: 500; font-size: .83rem; text-decoration: none; transition: color .2s; }
.otm-auth-link:hover { color: #4040cc; text-decoration: underline; }
.otm-auth-link--bold { font-weight: 700; }

/* Footer */
.otm-auth-footer {
  text-align: center;
  font-size: .83rem;
  color: #6b7080;
  font-family: 'DM Sans', sans-serif;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* ── Account Dashboard ───────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   OTM ACCOUNT DASHBOARD — SaaS UI v2.2.2
   Architecture:
     .otm-account-page          Page shell (full-height, grey bg)
     .otm-account-layout        CSS Grid: sidebar | content
     .otm-sidebar               Sticky left panel
     .otm-sidebar-section       Grouped nav block within sidebar
     .otm-sidebar-item          Individual nav link
     .otm-content               Scrolling right panel
     .otm-card                  Generic white card container
     .otm-form-group            Label + input stack
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page Shell ─────────────────────────────────────────────────────────── */

.otm-account-page {
  min-height: 100vh;
  background: #f1f2f6;
  padding-top: 72px; /* clears sticky header */
}

/* ── Layout Grid ────────────────────────────────────────────────────────── */

.otm-account-layout {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 72px);
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */

.otm-account-sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  min-height: calc(100vh - 72px);
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 72px);
  /* Custom scrollbar — subtler than default */
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.otm-account-sidebar::-webkit-scrollbar { width: 4px; }
.otm-account-sidebar::-webkit-scrollbar-track { background: transparent; }
.otm-account-sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

/* User identity block at top of sidebar */
.otm-account-user {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-shrink: 0;
}

.otm-account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.otm-account-user-info {
  flex: 1;
  min-width: 0;
}

.otm-account-user-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.otm-account-user-email {
  font-size: .75rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: .1rem;
  line-height: 1.3;
}

.otm-account-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 20px;
  margin-top: .4rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Sidebar navigation */
.otm-account-nav {
  padding: 1rem .875rem;
  flex: 1;
}

.otm-sidebar-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .67rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem .625rem .35rem;
  display: block;
}

.otm-account-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .62rem .75rem;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  margin-bottom: .125rem;
  position: relative;
  border: 1.5px solid transparent;
}

.otm-account-nav-item svg {
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .15s;
}

.otm-account-nav-item:hover {
  background: #f5f3ff;
  color: #6366f1;
  border-color: #ede9fe;
}

.otm-account-nav-item:hover svg {
  opacity: 1;
}

/* Active state — left-border accent + chip bg */
.otm-account-nav-item.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
  border-color: #c7d2fe;
}

.otm-account-nav-item.active::before {
  content: '';
  position: absolute;
  left: -0.875rem; /* flush with nav padding */
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: #6366f1;
  border-radius: 0 3px 3px 0;
}

.otm-account-nav-item.active svg {
  opacity: 1;
}

.otm-account-nav-divider {
  height: 1px;
  background: #f3f4f6;
  margin: .625rem 0;
}

.otm-account-nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem;
  font-weight: 800;
  padding: .1rem .4rem;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

/* Logout link */
.otm-account-nav-item--logout {
  color: #ef4444 !important;
  margin-top: .25rem;
}
.otm-account-nav-item--logout:hover {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}
.otm-account-nav-item--logout svg {
  opacity: .8 !important;
}

/* Mobile hamburger toggle — hidden on desktop */
.otm-sidebar-toggle {
  display: none;
}

/* ── Main Content Panel ─────────────────────────────────────────────────── */

.otm-account-main {
  padding: 2rem 2rem 4rem;
  min-width: 0; /* prevent grid blowout */
}

/* Page-level header row (title + optional action) */
.otm-account-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.otm-account-section-header--card {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0;
}

.otm-account-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.otm-account-section-link {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: color .15s;
}
.otm-account-section-link:hover { color: #4f46e5; }

/* ── Card Component ─────────────────────────────────────────────────────── */

.otm-card,
.otm-account-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.otm-card--padded {
  padding: 1.5rem;
}

.otm-card:last-child,
.otm-account-section:last-child {
  margin-bottom: 0;
}

/* ── Welcome Banner ─────────────────────────────────────────────────────── */

.otm-account-welcome {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(99, 102, 241, .25);
  position: relative;
  overflow: hidden;
}

.otm-account-welcome::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 40%, rgba(139, 92, 246, .35) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 80%, rgba(99, 102, 241, .2) 0%, transparent 50%);
  pointer-events: none;
}

.otm-account-welcome__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.otm-account-welcome__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .35rem;
  line-height: 1.3;
}

.otm-account-welcome__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.5;
}

.otm-account-welcome__plan {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}

.otm-account-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(16, 185, 129, .18);
  border: 1px solid rgba(16, 185, 129, .4);
  color: #34d399;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  padding: .38rem 1rem;
  border-radius: 20px;
}

.otm-account-welcome__expiry {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  color: rgba(255, 255, 255, .45);
}

/* ── Stats Grid ─────────────────────────────────────────────────────────── */

.otm-account-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.otm-account-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  overflow: hidden;
}

.otm-account-stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .2s;
  border-radius: 14px;
  pointer-events: none;
}

.otm-account-stat-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.otm-account-stat-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.otm-account-stat-card--indigo .otm-account-stat-card__icon { background: #eef2ff; color: #6366f1; }
.otm-account-stat-card--blue   .otm-account-stat-card__icon { background: #eff6ff; color: #3b82f6; }
.otm-account-stat-card--violet .otm-account-stat-card__icon { background: #f5f3ff; color: #8b5cf6; }
.otm-account-stat-card--amber  .otm-account-stat-card__icon { background: #fffbeb; color: #f59e0b; }

.otm-account-stat-card--indigo:hover { border-color: #c7d2fe; }
.otm-account-stat-card--blue:hover   { border-color: #bfdbfe; }
.otm-account-stat-card--violet:hover { border-color: #ddd6fe; }
.otm-account-stat-card--amber:hover  { border-color: #fde68a; }

.otm-account-stat-card__body {
  flex: 1;
  min-width: 0;
}

.otm-account-stat-card__val {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: .3rem;
  letter-spacing: -.02em;
}

.otm-account-stat-card__lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.3;
}

.otm-account-stat-card__link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f9fafb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.otm-account-stat-card__link:hover {
  background: #6366f1;
  color: #fff;
}

/* ── Quick Action Cards Grid ────────────────────────────────────────────── */

.otm-account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #f3f4f6; /* gap line colour */
}

.otm-account-card {
  background: #fff;
  padding: 1.5rem;
  display: block;
  text-decoration: none;
  transition: background .15s ease;
  position: relative;
}

.otm-account-card:hover {
  background: #fafafe;
}

.otm-account-card:hover .otm-account-card__arrow {
  transform: translateX(4px);
  color: #6366f1;
}

.otm-account-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.otm-account-card__icon--indigo { background: #eef2ff; color: #6366f1; }
.otm-account-card__icon--blue   { background: #eff6ff; color: #3b82f6; }
.otm-account-card__icon--violet { background: #f5f3ff; color: #8b5cf6; }
.otm-account-card__icon--green  { background: #f0fdf4; color: #059669; }
.otm-account-card__icon--amber  { background: #fffbeb; color: #f59e0b; }

.otm-account-card__title {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .25rem;
  line-height: 1.3;
}

.otm-account-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: #9ca3af;
  line-height: 1.5;
}

.otm-account-card__arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  font-size: 1rem;
  color: #d1d5db;
  transition: transform .2s ease, color .2s ease;
}

/* ── Empty States ───────────────────────────────────────────────────────── */

.otm-account-empty-state {
  padding: 3rem 2rem;
  text-align: center;
}

.otm-account-empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: .875rem;
  display: block;
}

.otm-account-empty-state__title {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: .35rem;
}

.otm-account-empty-state__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: .83rem;
  color: #9ca3af;
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* ── Transaction List ───────────────────────────────────────────────────── */

.otm-txn-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f9fafb;
  transition: background .12s;
}

.otm-txn-item:last-child { border-bottom: none; }
.otm-txn-item:hover { background: #fafafe; }

.otm-txn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.otm-txn-icon--credit  { background: #f0fdf4; }
.otm-txn-icon--debit   { background: #fef2f2; }
.otm-txn-icon--cashback { background: #fef9c3; }

.otm-txn-info { flex: 1; min-width: 0; }

.otm-txn-title {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.otm-txn-date {
  font-family: 'DM Sans', sans-serif;
  font-size: .74rem;
  color: #9ca3af;
  margin-top: .1rem;
}

.otm-txn-amount {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.otm-txn-amount--credit  { color: #059669; }
.otm-txn-amount--debit   { color: #dc2626; }

/* ── Settings Page — Form Architecture ─────────────────────────────────── */

/* Card section shell for settings blocks */
.otm-settings-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.otm-settings-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.375rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.otm-settings-card__header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #eef2ff;
  color: #6366f1;
}

.otm-settings-card__header-text {
  flex: 1;
  min-width: 0;
}

.otm-settings-card__title {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: .2rem;
}

.otm-settings-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: #9ca3af;
  line-height: 1.4;
}

.otm-settings-card__body {
  padding: 1.5rem;
}

/* 2-column form grid — stacks to 1 column on mobile */
.otm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}

.otm-form-grid--full {
  grid-column: 1 / -1;
}

/* Standard 2-col row — Task 2: enforced 16px gap for clean alignment */
.otm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Form group */
.otm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px; /* 6px label-to-field spacing */
}

/* Label */
.otm-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: .01em;
  line-height: 1;
}

.otm-label--required::after {
  content: ' *';
  color: #ef4444;
}

/* Input / textarea / select */
.otm-input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: #111827;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  outline: none;
  box-sizing: border-box;
  line-height: 1.5;
}

.otm-input::placeholder {
  color: #c0c4cc;
  font-weight: 400;
}

.otm-input:hover {
  border-color: #d1d5db;
}

.otm-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.otm-input:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #f3f4f6;
}

.otm-input:invalid:not(:placeholder-shown) {
  border-color: #f87171;
}

.otm-input-icon-wrap {
  position: relative;
}

.otm-input-icon-wrap .otm-input {
  padding-right: 2.75rem;
}

.otm-password-toggle {
  position: absolute;
  right: .875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  transition: color .15s;
}

.otm-password-toggle:hover { color: #6366f1; }

textarea.otm-input {
  resize: vertical;
  min-height: 96px;
}

select.otm-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}

/* Helper text below input */
.otm-field-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  color: #9ca3af;
  margin-top: .2rem;
  line-height: 1.4;
}

/* Form section divider */
.otm-form-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 1.5rem 0;
}

/* Alert messages within settings forms */
.otm-settings-alert {
  display: none;
  align-items: flex-start;
  gap: .625rem;
  padding: .875rem 1rem;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.otm-settings-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.otm-settings-alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

/* ── Buttons (dashboard-context supplements) ────────────────────────────── */

.otm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: .7rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
  letter-spacing: .01em;
  position: relative;
}

.otm-btn--primary {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
}

.otm-btn--primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, .35);
  transform: translateY(-1px);
}

.otm-btn--outline {
  background: transparent;
  color: #6366f1;
  border-color: #c7d2fe;
}

.otm-btn--outline:hover {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4f46e5;
}

.otm-btn--ghost {
  background: transparent;
  color: #6b7280;
  border-color: transparent;
}

.otm-btn--ghost:hover {
  background: #f3f4f6;
  color: #374151;
}

.otm-btn--danger {
  background: transparent;
  color: #ef4444;
  border-color: #fecaca;
}

.otm-btn--danger:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #dc2626;
}

.otm-btn--sm {
  padding: .5rem 1rem;
  font-size: .82rem;
  border-radius: 8px;
}

.otm-btn--lg {
  padding: .875rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
}

.otm-btn--full {
  width: 100%;
  justify-content: center;
}

.otm-btn:disabled,
.otm-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Registration Disabled Notice ───────────────────────────────────────── */

.otm-reg-disabled-notice {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.otm-reg-disabled-notice__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.otm-reg-disabled-notice__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .5rem;
}

.otm-reg-disabled-notice__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  color: #6b7280;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* ── Toast Notification ─────────────────────────────────────────────────── */

.otm-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1f2937;
  color: #fff;
  padding: .9rem 1.25rem;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  max-width: 340px;
  pointer-events: none;
}

.otm-toast.show {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.otm-toast--success { background: #065f46; }
.otm-toast--error   { background: #991b1b; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════════════════════════════════ */

/* 1280px — standard laptop */
@media (max-width: 1280px) {
  .otm-account-layout {
    grid-template-columns: 248px 1fr;
  }
  .otm-account-main {
    padding: 1.75rem 1.75rem 3.5rem;
  }
}

/* 1024px — small laptop / large tablet landscape */
@media (max-width: 1024px) {
  .otm-account-layout {
    grid-template-columns: 220px 1fr;
  }
  .otm-account-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .otm-account-main {
    padding: 1.5rem 1.5rem 3rem;
  }
}

/* 768px — tablet portrait: sidebar collapses to top horizontal nav */
@media (max-width: 768px) {

  .otm-account-page {
    padding-top: 64px;
  }

  .otm-account-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* Sidebar becomes a compact header strip */
  .otm-account-sidebar {
    position: static;
    min-height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    overflow: visible;
  }

  .otm-account-user {
    padding: 1rem 1.25rem;
  }

  /* Horizontal scrolling pill nav */
  .otm-account-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: .625rem .875rem;
    gap: .25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .otm-account-nav::-webkit-scrollbar { display: none; }

  .otm-account-nav-item {
    flex-shrink: 0;
    padding: .5rem .875rem;
    border-radius: 20px;
    font-size: .82rem;
    margin-bottom: 0;
    white-space: nowrap;
  }

  /* Hide the section labels on mobile nav */
  .otm-sidebar-label { display: none; }

  /* Hide the active indicator pseudo-element on mobile */
  .otm-account-nav-item.active::before { display: none; }

  .otm-account-nav-divider {
    width: 1px;
    height: 24px;
    flex-shrink: 0;
    align-self: center;
    background: #e5e7eb;
    margin: 0 .25rem;
  }

  .otm-account-main {
    padding: 1.25rem 1rem 3rem;
  }

  .otm-account-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .otm-account-grid {
    grid-template-columns: 1fr;
  }

  .otm-form-row,
  .otm-form-grid {
    grid-template-columns: 1fr;
  }

  .otm-form-grid--full {
    grid-column: 1;
  }

  .otm-account-welcome {
    padding: 1.5rem 1.25rem;
  }

  .otm-account-welcome__plan {
    align-items: flex-start;
  }

  .otm-settings-card__body {
    padding: 1.25rem;
  }
}

/* 600px — large phone */
@media (max-width: 600px) {
  .otm-account-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: .625rem;
  }

  .otm-account-stat-card {
    padding: 1rem;
  }

  .otm-account-stat-card__val {
    font-size: 1.3rem;
  }

  .otm-account-welcome__title {
    font-size: 1.05rem;
  }
}

/* 480px — standard phone */
@media (max-width: 480px) {
  .otm-account-stats-grid {
    grid-template-columns: 1fr;
  }

  .otm-account-stat-card {
    flex-direction: row;
    align-items: center;
  }

  .otm-account-stat-card__val {
    font-size: 1.5rem;
  }

  .otm-account-welcome {
    padding: 1.25rem 1rem;
  }

  .otm-account-welcome__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .otm-account-user-name {
    font-size: .85rem;
  }

  .otm-account-avatar {
    width: 38px;
    height: 38px;
    font-size: .88rem;
    border-radius: 10px;
  }
}

/* 375px — small phone */
@media (max-width: 375px) {
  .otm-account-main {
    padding: 1rem .875rem 2.5rem;
  }

  .otm-account-stats-grid {
    gap: .5rem;
  }
}

/* ── Auth pages responsive (preserve existing) ──────────────────────────── */

@media (max-width: 768px) {
  .otm-auth-page          { grid-template-columns: 1fr; }
  .otm-auth-left          { display: none; }
  .otm-auth-right         { padding: 1.5rem; }
  .otm-auth-card          { padding: 2rem 1.5rem; border: none; box-shadow: none; background: transparent; max-width: 100%; }
  .otm-auth-right         { background: #fff; }
  .otm-wallet-summary__stats { grid-template-columns: 1fr; gap: .75rem; }
}

@media (max-width: 480px) {
  .otm-auth-social        { grid-template-columns: 1fr; }
  .otm-wallet-summary__balance { font-size: 2rem; }
}
