:root {
  --bg: #FFF9F6;
  --surface: #FFFFFF;
  --surface-soft: #FFF2EC;
  --border: #F1E3DC;
  --text: #1F2430;
  --text-muted: #646B7A;
  --primary: #EE4D2D;
  --primary-dark: #D63B1D;
  --primary-soft: #FFF0EB;
  --rose: #E11D48;
  --sage: #059669;
  --whats: #16A34A;
  --shadow-sm: 0 2px 10px rgba(31, 36, 48, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 36, 48, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  padding-bottom: 48px;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  margin: 0;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 14px 40px;
}

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px 12px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF6B57, #EE4D2D);
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(238, 77, 45, 0.25);
  flex-shrink: 0;
}

.brand h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin: 1px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.icon-pill:active {
  transform: scale(0.97);
}

/* Progress Card */
.progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.progress-head strong {
  display: block;
  font-size: 0.96rem;
}

.progress-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.progress-badge {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 5px 10px;
  border-radius: 999px;
}

.progress-track {
  height: 10px;
  background: #F4EAE4;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF7A59, #10B981);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.quick-week-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-chip {
  min-height: 42px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.btn-chip-warm {
  background: #FFF3D6;
  color: #92400E;
}

.btn-chip-primary {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.alert-banner {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #78350F;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.84rem;
  margin-bottom: 12px;
}

/* Day Tabs */
.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  flex: 1 0 auto;
  min-width: 72px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.day-tab-name {
  font-weight: 800;
  font-size: 0.86rem;
}

.day-tab-status {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.day-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.25);
}

.day-tab.active .day-tab-status {
  color: rgba(255, 255, 255, 0.9);
}

.day-tab.is-ready:not(.active) {
  border-color: #A7F3D0;
  background: #ECFDF5;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.step-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step-title-wrap h2 {
  font-size: 1.05rem;
  font-weight: 800;
}

.step-badge {
  background: var(--primary);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.step-badge-alt {
  background: #1E293B;
}

.btn-text-danger {
  background: none;
  border: none;
  color: #B91C1C;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
}

/* Form Elements */
.field-group {
  margin-bottom: 14px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.field-hint {
  margin: 5px 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="url"],
input[type="password"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.96rem;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E5D6CE;
  background: #FFFCFA;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  background: #FFFFFF;
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.btn-secondary-sm {
  flex-shrink: 0;
  padding: 0 14px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 0.75fr;
  gap: 8px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Niche & Benefit Chips */
.niche-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.niche-pill {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #FFFDFB;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.niche-pill.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.benefit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.mini-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #E9DCD5;
  background: #FAF5F2;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.mini-chip:active {
  background: var(--primary-soft);
}

/* Photo Uploader */
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border: 2px dashed #E5C8BA;
  border-radius: var(--radius-md);
  background: #FFF9F5;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.upload-drop small {
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.upload-icon {
  font-size: 1.5rem;
}

.hidden-file {
  display: none;
}

.photo-preview-list {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.photo-thumb {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.78);
  color: #FFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Theme Style Pills */
.style-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.style-pill {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #FFF;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.style-pill.active {
  border-color: #1E293B;
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px #1E293B;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  flex-shrink: 0;
}

.swatch-rose { background: linear-gradient(135deg, #FB7185, #E11D48); }
.swatch-sage { background: linear-gradient(135deg, #34D399, #059669); }
.swatch-shopee { background: linear-gradient(135deg, #FF7337, #EE4D2D); }
.swatch-meli { background: linear-gradient(135deg, #FDE047, #F59E0B); }

/* Main Generate Button */
.btn-generate-main {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FF6448, #EE4D2D);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(238, 77, 45, 0.28);
}

.btn-generate-main:disabled {
  opacity: 0.65;
  cursor: wait;
}

.gen-status {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(238, 77, 45, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Results Area */
.results-section {
  margin-top: 18px;
}

.results-banner {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.results-banner h3 {
  font-size: 1.05rem;
}

.results-banner p {
  margin: 3px 0 0;
  font-size: 0.83rem;
  opacity: 0.94;
}

.checklist-card {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.checklist-title {
  font-weight: 700;
  font-size: 0.86rem;
  color: #166534;
  margin-bottom: 8px;
}

.checklist-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #BBF7D0;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.media-outputs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .media-outputs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.output-card {
  margin-bottom: 14px;
}

.media-outputs-grid .output-card {
  margin-bottom: 0;
}

.output-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.output-head h4 {
  font-size: 0.96rem;
  margin-top: 4px;
}

.output-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.tag-video { background: #EDE9FE; color: #5B21B6; }
.tag-png { background: #FCE7F3; color: #9D174D; }
.tag-copy { background: #DBEAFE; color: #1E40AF; }
.tag-whats { background: #DCFCE7; color: #166534; }

.meta-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #F1F5F9;
  padding: 4px 8px;
  border-radius: 999px;
}

.preview-frame-9-16 {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 12px;
  aspect-ratio: 9 / 16;
  background: #0F172A;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.preview-frame-9-16 video,
.preview-frame-9-16 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.output-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.output-actions:has(> :only-child) {
  grid-template-columns: 1fr;
}

.btn-action {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

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

.btn-whats {
  background: var(--whats);
  color: #FFF;
}

.btn-outline {
  background: #FFF;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-danger-outline {
  background: #FFF;
  color: #B91C1C;
  border: 1.5px solid #FECACA;
}

.btn-mini-ghost {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.output-note {
  margin: 8px 0 0;
  font-size: 0.77rem;
  color: var(--text-muted);
  text-align: center;
}

.copy-textarea {
  font-size: 0.9rem;
  line-height: 1.48;
  margin-bottom: 10px;
  resize: vertical;
}

/* Script Details */
.script-details summary {
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.script-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-secondary-full {
  margin-top: 6px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: none;
  background: #1E293B;
  color: #FFF;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 12px;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.btn-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: #F1F5F9;
  font-weight: 700;
  cursor: pointer;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  background: #FFF9F6;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.modal-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.triage-tip {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #9A3412;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.week-summary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #FFFCFA;
}

.week-item-info strong {
  display: block;
  font-size: 0.88rem;
}

.week-item-info span {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.week-item-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1E293B;
  color: #FFF;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  text-align: center;
}

@media (max-width: 420px) {
  .hide-xs {
    display: none;
  }
  .row-3 {
    grid-template-columns: 1fr 1fr;
  }
  .row-3 > :last-child {
    grid-column: span 2;
  }
  .quick-week-actions {
    grid-template-columns: 1fr;
  }
}

/* Main 2-Tab Navigation */
.main-nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #F4EAE4;
  padding: 5px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.main-nav-btn {
  min-height: 46px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.main-nav-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.nav-pill-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #EADBD3;
  color: var(--text);
}

.main-nav-btn.active .nav-pill-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Accounts Vault */
.accounts-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.accounts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #FFFDFB;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.active {
  background: #1E293B;
  color: #FFFFFF;
  border-color: #1E293B;
}

.btn-add-acc {
  flex-shrink: 0;
  min-height: 38px;
  padding: 6px 12px;
}

.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px;
  box-shadow: var(--shadow-sm);
}

.account-card.status-ready {
  border-color: #A7F3D0;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 36%);
}

.account-card.status-review {
  border-color: #FDE68A;
}

.account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.account-title {
  font-size: 0.98rem;
  font-weight: 800;
}

.account-cat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

.account-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.select-input,
.account-status-select {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1.5px solid #E5D6CE;
  background: #FFFFFF;
  color: var(--text);
  outline: none;
}

.select-input {
  width: 100%;
  min-height: 46px;
}

.account-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.account-field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-field-row label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

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

.input-action-group input {
  flex: 1;
  min-width: 0;
  padding: 10px 11px;
  font-size: 0.9rem;
}

.btn-tiny-icon {
  flex-shrink: 0;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #FFF9F6;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-tiny-icon:active {
  transform: scale(0.95);
  background: var(--primary-soft);
}

.btn-tiny-danger {
  color: #B91C1C;
  border-color: #FECACA;
  background: #FEF2F2;
}

.account-guide {
  margin-top: 11px;
  background: #FFFBF8;
  border: 1px solid #F1E3DC;
  border-radius: 12px;
  padding: 9px 12px;
}

.account-guide summary {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
}

.account-guide-body {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.5;
}

.account-guide-body ol {
  margin: 0;
  padding-left: 18px;
}

.account-guide-body li {
  margin-bottom: 4px;
}

/* Auth Overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 249, 246, 0.97);
  backdrop-filter: blur(8px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.auth-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 30px;
}

.auth-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.auth-subtitle {
  margin: 6px 0 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-form {
  text-align: left;
}

.auth-error {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: 0.84rem;
  font-weight: 600;
}

.auth-foot-note {
  margin: 14px 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}
