:root {
  --bg-main: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --border: #334155;
  --fg: #f8fafc;
  --fg-muted: #94a3b8;
  --primary: #f59e0b;
  --accent: #38bdf8;
  --success: #10b981;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-main);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 16px));
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: var(--bg-card);
}

.user-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.9rem;
}

.fid-badge {
  font-size: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 999px;
  font-family: monospace;
  cursor: pointer;
}

.sync-status {
  font-size: 0.72rem;
  color: var(--success);
}

.top-actions {
  display: flex;
  gap: 6px;
}

main#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px;
}

.phase {
  display: none;
}

.phase.active {
  display: block;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.returning-card {
  text-align: center;
  padding: 22px 16px;
}

.crest {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.muted-text {
  color: var(--fg-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.stack-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--fg);
  background: var(--bg-surface);
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn small {
  display: block;
  font-weight: 400;
  font-size: 0.73rem;
  opacity: 0.85;
  margin-top: 3px;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #090d16;
}

.btn-secondary {
  background: #334155;
  color: var(--fg);
  border-color: #475569;
}

.btn-accent {
  background: var(--accent);
  color: #090d16;
}

.btn-success {
  background: var(--success);
  color: #090d16;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}

/* Wizard Header & Step Pills */
.wizard-header {
  padding: 12px;
}

.step-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.step-pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  cursor: pointer;
}

.step-pill.active {
  background: var(--primary);
  color: #090d16;
  border-color: var(--primary);
}

.step-pill.done {
  border-color: var(--success);
  color: var(--success);
}

.wizard-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.wizard-title-row h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary);
}

.step-subtitle {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.wizard-footer {
  background: rgba(9, 13, 22, 0.95);
  border-top: 1px solid var(--border);
  padding: 12px 0 6px 0;
  margin-top: 12px;
}

/* 3-Dots Top Menu */
.btn-dots {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 44px;
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  padding: 6px;
  z-index: 120;
}

.header-dropdown.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--fg);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:active {
  background: var(--bg-surface);
}

.dropdown-item.danger-text {
  color: #fca5a5;
}

/* Fixed Bottom Thumb Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 6px)) 8px;
}

.bottom-nav .nav-item {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav .nav-item .nav-icon {
  font-size: 1.05rem;
}

.bottom-nav .nav-item.active {
  color: var(--primary);
  background: rgba(245, 158, 11, 0.12);
}

.wizard-footer-row {
  display: flex;
  gap: 8px;
}

/* Inputs */
input[type="number"],
input[type="text"],
select,
textarea {
  width: 100%;
  background: var(--bg-surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.9rem;
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.field-sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

.stepper-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stepper-group input {
  width: 92px;
  text-align: right;
}

.auto-buff-banner {
  background: rgba(245, 158, 11, 0.12);
  border-left: 4px solid var(--primary);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Phase 3 Concrete Plan — Fixed Summary + Scrollable Todos */
#phase3.active {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 134px);
  overflow: hidden;
}

.plan-summary-card {
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.daily-plans {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.plan-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.grand-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grand-total {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  font-family: monospace;
}

.medals-badge {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 2px;
}

.days-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.day-mini-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 4px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.15s ease, background 0.15s ease;
}

.day-mini-pill:active {
  transform: scale(0.96);
}

.day-mini-pill.unlocked {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.1);
}

.day-mini-pill.selected {
  border: 2px solid var(--primary);
  background: rgba(245, 158, 11, 0.18);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.day-mini-pill strong {
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
  font-family: monospace;
  color: var(--fg);
}

.alloc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.alloc-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.day-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.day-card-header h3 {
  margin: 0;
  font-size: 0.98rem;
}

.day-pts {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.92rem;
}

.day-pts.unlocked {
  color: var(--success);
}

.progress-track {
  height: 8px;
  background: var(--bg-surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transition: width 0.25s ease;
}

.action-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.action-item {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.83rem;
}

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

.action-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.action-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--accent);
  font-weight: 700;
}

.action-pts {
  font-family: monospace;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
}

.action-title {
  font-weight: 600;
  margin-top: 4px;
}

.action-detail {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

.input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.member-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.member-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
}

.ocr-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 8px;
}

.ocr-results-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
}

/* Global Incomplete Profile Warning Banner */
.profile-warning-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.22));
  border-bottom: 2px solid var(--primary);
  padding: 10px 14px;
}

.profile-warning-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.alliance-badge {
  font-size: 0.7rem;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.discord-readonly-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* Multi-Slot Castle Picker Grid */
.castle-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.castle-slot-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.74rem;
  font-family: monospace;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.castle-slot-chip.selected {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--success);
  color: #6ee7b7;
  font-weight: 700;
}

.castle-slot-chip .slot-demand {
  font-size: 0.66rem;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--fg-muted);
}

.castle-slot-chip.selected .slot-demand {
  background: rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
}

/* Alliance Breakdown Table in Management Tab */
.alliance-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 6px;
}

.alliance-breakdown-table th,
.alliance-breakdown-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: right;
}

.alliance-breakdown-table th:first-child,
.alliance-breakdown-table td:first-child {
  text-align: left;
}

.alliance-breakdown-table th {
  color: var(--fg-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
}

/* =========================================
   KINGDOM #15 LOGIN SCREEN
   ========================================= */
body.login-body {
  min-height: 100dvh;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 15%, #0f2447 0%, #070b14 65%, #04060b 100%);
  position: relative;
  overflow-x: hidden;
}

.login-bg-backdrop {
  position: fixed;
  inset: -15%;
  background: url("/logo.png") center center / cover no-repeat;
  filter: blur(42px) brightness(0.26) saturate(1.3);
  z-index: 0;
  pointer-events: none;
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px 16px;
}

.login-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(9, 13, 22, 0.96) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 22px;
  padding: 26px 22px 22px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(56, 189, 248, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
}

.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-crest-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.18);
}

.login-logo-frame {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, #fbbf24 0%, #38bdf8 50%, #d97706 100%);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.75),
    0 0 32px rgba(56, 189, 248, 0.35),
    0 0 18px rgba(245, 158, 11, 0.35);
  margin-bottom: 16px;
}

.login-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 21px;
  display: block;
  background: #090d16;
}

.login-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fffbeb 0%, #fbbf24 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 16px rgba(245, 158, 11, 0.22);
}

.login-subtitle {
  margin: 5px 0 18px 0;
  font-size: 0.84rem;
  color: #bae6fd;
  font-weight: 600;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-bottom: 20px;
}

.login-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  padding: 10px 12px;
}

.login-feature-icon {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.login-feature-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--fg);
  margin-bottom: 2px;
}

.login-feature-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-muted);
  line-height: 1.35;
}

.login-error-banner {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-bottom: 14px;
  text-align: left;
}

.login-success-banner {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-bottom: 14px;
  text-align: left;
}

.login-oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-discord-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #6573ff 0%, #5865F2 55%, #4752c4 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 24px rgba(88, 101, 242, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-discord-login:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.58);
}

.btn-discord-login:active {
  transform: scale(0.98);
}

.discord-logo-svg {
  width: 22px;
  height: 17px;
  flex-shrink: 0;
}

.btn-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.btn-google-login:hover {
  filter: brightness(0.97);
}

.btn-google-login:active {
  transform: scale(0.98);
}

.google-logo-svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px 0;
  color: var(--fg-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.25);
}

.login-email-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 12px;
}

.login-email-tab {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 6px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.login-email-tab.active {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.login-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 12px;
  padding: 12px;
}

.login-form-field label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.login-form-field input,
.login-form-field select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.86rem;
}

.btn-verify-fid {
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.fid-verify-status {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-top: 4px;
  line-height: 1.35;
}

.btn-email-submit {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.6);
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 2px;
}

.btn-resend-verify {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.login-footer-note {
  margin-top: 14px;
  font-size: 0.74rem;
  color: var(--fg-muted);
  line-height: 1.4;
}
