/* LingoAlpha Auth & Modal Styles */
/* ============================================================
   Platform Authentication, User Session & Modal Dialog Styles
   ============================================================ */

.auth-header-container {
  display: flex;
  align-items: center;
}

/* Sign In Trigger Button */
.btn-auth-signin {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(192, 132, 252, 0.12));
  border: 1px solid var(--border-accent);
  color: var(--text-main);
  height: 38px;
  padding: 0 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-auth-signin:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.38), rgba(192, 132, 252, 0.24));
  border-color: var(--accent-purple);
  box-shadow: var(--brand-glow);
  transform: translateY(-1px);
}

/* User Menu Wrapper & Pill */
.user-menu-wrapper {
  position: relative;
  display: inline-block;
}

.user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  height: 38px;
  padding: 0 0.75rem 0 0.35rem;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.user-pill-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--brand-glow);
}

.user-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.user-pill-name {
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-pill-caret {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.user-pill-btn[aria-expanded="true"] .user-pill-caret {
  transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45), var(--brand-glow);
  z-index: 1000;
  animation: authDropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authDropdownPop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-info {
  padding: 0.5rem 1rem 0.65rem 1rem;
}

.user-info-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info-email {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.35rem 0;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.user-dropdown-link i {
  font-size: 0.9rem;
  color: var(--text-muted);
  width: 18px;
  text-align: center;
}

.user-dropdown-link:hover {
  background: var(--bg-card-hover);
  color: var(--accent-purple);
}

.user-dropdown-link:hover i {
  color: var(--accent-purple);
}

.user-dropdown-link.logout-btn {
  color: #f43f5e;
}

.user-dropdown-link.logout-btn i {
  color: #f43f5e;
}

.user-dropdown-link.logout-btn:hover {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}

.user-dropdown-link.logout-btn:hover i {
  color: #fb7185;
}

/* Modal Overlay & Card */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 3, 16, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  box-sizing: border-box;
}

.auth-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  max-width: 410px;
  width: 100%;
  padding: 2rem 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(124, 58, 237, 0.22);
  position: relative;
  box-sizing: border-box;
  animation: authModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authModalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.auth-modal-close:hover {
  color: var(--text-main);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: rotate(90deg);
}

.auth-brand-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-brand-logo {
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.auth-brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.auth-brand-title span {
  color: var(--accent-purple);
}

.auth-brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0 0;
}

/* Tabs */
.auth-tabs-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-input);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 1.25rem;
  gap: 3px;
}

.auth-tab-btn {
  padding: 0.55rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
}

/* Error & Success Banners */
.auth-error-banner {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fca5a5;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-success-banner {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.auth-label-row .auth-field-label {
  margin-bottom: 0;
}

.auth-forgot-link {
  font-size: 0.76rem;
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.auth-forgot-link:hover {
  text-decoration: underline;
  color: var(--accent-lavender);
}

/* Form Fields */
.auth-field-group {
  margin-bottom: 1rem;
}

.auth-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.auth-optional {
  font-weight: 400;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.auth-field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 0 2.4rem 0 2.4rem;
  color: var(--text-main);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.auth-input-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.auth-pwd-toggle {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.auth-pwd-toggle:hover {
  color: var(--accent-purple);
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  height: 44px;
  margin-top: 0.6rem;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-submit-btn:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-switch-prompt {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.auth-switch-prompt a {
  color: var(--accent-purple);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch-prompt a:hover {
  text-decoration: underline;
}

/* Global Toast Notice */
.lingo-toast-notice {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), var(--brand-glow);
  z-index: 2500;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.lingo-toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 480px) {
  .btn-auth-signin span {
    display: none;
  }
  .btn-auth-signin {
    padding: 0 0.65rem;
  }
  .user-pill-name {
    display: none;
  }
  .user-pill-btn {
    padding: 0 0.45rem 0 0.35rem;
  }
}

/* ============================================================
   LingoAlpha Strategy Persistence & Manager Styles
   ============================================================ */

.strat-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 5, 23, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: authFadeIn 0.2s ease-out;
}

.strat-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-glow), 0 24px 60px rgba(0, 0, 0, 0.55);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: authSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.strat-modal-card-lg {
  max-width: 720px;
}

.strat-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.strat-modal-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.strat-modal-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.strat-modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(192, 132, 252, 0.15));
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.strat-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.strat-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.strat-form-group {
  margin-bottom: 1.1rem;
}

.strat-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.strat-form-label .required {
  color: #f43f5e;
}

.strat-label-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
}

.strat-form-input,
.strat-form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.strat-form-input:focus,
.strat-form-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.18);
}

.strat-form-textarea {
  resize: vertical;
  min-height: 70px;
}

.strat-summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.strat-summary-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.strat-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.strat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-accent);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.strat-pill-long {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.strat-pill-short {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.35);
  color: #f43f5e;
}

.strat-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Guest Banner */
.strat-guest-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.strat-guest-signin-btn {
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.strat-guest-signin-btn:hover {
  background: rgba(251, 191, 36, 0.35);
}

/* Search Bar */
.strat-search-bar {
  position: relative;
  margin-bottom: 1rem;
}

.strat-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.strat-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 2.5rem 0.65rem 2.4rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.strat-search-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.18);
}

.strat-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
}

/* List Container */
.strat-list-container {
  flex: 1;
  overflow-y: auto;
  max-height: 480px;
  padding-right: 0.25rem;
  margin-bottom: 0.75rem;
}

.strat-list-container::-webkit-scrollbar {
  width: 6px;
}
.strat-list-container::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.25);
  border-radius: 3px;
}

/* Strategy Card Item */
.strat-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.strat-card-item:hover {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
  box-shadow: var(--card-glow);
  transform: translateY(-1px);
}

.strat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.strat-card-title-group {
  flex: 1;
}

.strat-card-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.35rem 0;
}

.strat-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.strat-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.strat-btn-delete {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.strat-btn-delete:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.35);
}

.strat-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0.35rem 0 0.6rem 0;
}

.strat-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.strat-meta-indicators {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strat-meta-stats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Empty State */
.strat-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.strat-empty-icon {
  font-size: 2.75rem;
  color: var(--text-placeholder);
  margin-bottom: 0.85rem;
}

.strat-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.strat-empty-desc {
  font-size: 0.84rem;
  max-width: 420px;
  margin: 0 auto 0.5rem auto;
  line-height: 1.5;
}

.strat-empty-hint {
  font-size: 0.78rem;
  color: var(--accent-purple);
  margin-top: 0.5rem;
}

.strat-loading-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.strat-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.strat-footer-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Navbar Strategies Button */
.nav-btn-strategies {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.4rem 0.75rem;
}

.nav-btn-strategies:hover {
  color: var(--accent-purple);
}

.strategy-count-tag {
  background: var(--accent-purple) !important;
  color: #ffffff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 1px 7px !important;
  border-radius: 9999px !important;
  line-height: 1.2;
}

[data-theme="dark"] .strategy-count-tag,
body.dark-mode .strategy-count-tag {
  color: #0b0517 !important;
}


/* ============================================================
   LingoAlpha Account Settings & Session Management Styles
   ============================================================ */

.auth-modal-card-lg {
  max-width: 620px;
}

.settings-modal-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.settings-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-purple));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  flex-shrink: 0;
}

.settings-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.settings-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.settings-tab-pane {
  padding-top: 0.5rem;
}

.settings-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.settings-section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.settings-email-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.settings-email-display {
  flex: 1;
  font-size: 0.86rem;
  color: var(--text-main);
  font-weight: 500;
}

.verif-badge-verified {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

.verif-badge-unverified {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

.btn-resend-verif {
  background: none;
  border: none;
  color: var(--accent-purple);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.btn-resend-verif:hover {
  color: var(--accent-lavender);
}

.btn-settings-inline {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--text-main);
  border-radius: 8px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-settings-inline:hover {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
  box-shadow: var(--brand-glow);
}

.settings-sessions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.btn-revoke-others {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-revoke-others:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: #f43f5e;
}

.settings-sessions-list {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.session-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.session-card-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.session-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.session-device-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.session-device-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.session-current-badge {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  border-radius: 9999px;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 700;
}

.session-device-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-session-revoke {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #f43f5e;
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-session-revoke:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: #f43f5e;
}

.settings-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

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

.settings-pref-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.settings-pref-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.settings-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}

.settings-select:focus {
  border-color: var(--accent-purple);
}

/* ============================================================
   Platform Tiered Access Styles (Gated Modules & Barriers)
   ============================================================ */

/* Gated Callout Banner inside Auth Modal */
.auth-gated-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0.5rem 0;
  padding: 0.65rem 0.85rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  text-align: left;
  animation: authCalloutPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCalloutPop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-callout-icon {
  font-size: 1.15rem;
  color: #c084fc;
  flex-shrink: 0;
}

.auth-callout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.auth-callout-badge {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.auth-callout-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

/* Fullscreen Barrier Overlay for Gated Pages (AlphaTester & Scorecard) */
.gated-barrier-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  animation: barrierFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes barrierFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.gated-barrier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(124, 58, 237, 0.22);
  box-sizing: border-box;
}

.gated-barrier-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(192, 132, 252, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
}

.gated-barrier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.gated-barrier-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.65rem 0;
  letter-spacing: -0.3px;
}

.gated-barrier-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.5rem 0;
}

.gated-barrier-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.btn-barrier-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
  transition: all 0.2s ease;
}

.btn-barrier-signup:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55);
}

.btn-barrier-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-accent);
  color: var(--text-main);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-barrier-signin:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.gated-barrier-footer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.btn-barrier-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-barrier-home:hover {
  color: var(--accent-purple);
}

/* ============================================================
   LingoAlpha Admin Console & Telemetry Styles
   ============================================================ */

.auth-modal-card-xl {
  max-width: 940px;
  width: 95vw;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.admin-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 9999px;
  color: #c084fc;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card, rgba(17, 24, 39, 0.8));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.admin-stat-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
}

.admin-stat-title {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main, #f8fafc);
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.02em;
}

.admin-stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 0.35rem;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.admin-search-wrap i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
}

.admin-search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  background: var(--bg-main, #0b0f19);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  color: var(--text-main, #f8fafc);
  font-size: 0.85rem;
  transition: border-color 0.2s ease;
}

.admin-search-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 10px;
  background: var(--bg-card, rgba(15, 23, 42, 0.6));
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.admin-users-table th {
  background: var(--bg-card-hover, rgba(30, 41, 59, 0.8));
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  white-space: nowrap;
}

.admin-users-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.05));
  color: var(--text-main, #f1f5f9);
  vertical-align: middle;
}

.admin-users-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-pill-admin {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.admin-pill-user {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-pill-verified {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.admin-pill-unverified {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.btn-admin-role-toggle {
  background: transparent;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  color: var(--text-muted, #94a3b8);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-role-toggle:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #c084fc;
}


