/* Appily Twentysix — Account (Germination Ledger / ac26) */

.ac26-page {
  --ac26-sage: #2F5544;
  --ac26-sage-dark: #1E3D30;
  --ac26-sage-light: #E4EBE7;
  --ac26-terra: #C47A5A;
  --ac26-terra-light: #F5E8E2;
  --ac26-gold: #D4A853;
  --ac26-cream: #FAF8F4;
  --ac26-paper: #FFFEF9;
  --ac26-ink: #141414;
  --ac26-muted: #6B7A72;
  --ac26-border: #D8E2DC;
  --ac26-rule: rgba(47, 85, 68, 0.08);
  background: var(--ac26-cream);
}

/* ── Hero ── */
.ac26-hero {
  padding: 40px 0 56px;
  background:
    linear-gradient(120deg, var(--ac26-terra-light) 0%, var(--ac26-cream) 45%, var(--ac26-sage-light) 100%);
  border-bottom: 1px solid var(--ac26-border);
  position: relative;
  overflow: hidden;
}

.ac26-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 24px solid rgba(47, 85, 68, 0.06);
  pointer-events: none;
}

.ac26-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.ac26-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac26-terra);
}

.ac26-title {
  margin: 0;
  font-family: var(--sv-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.ac26-title em {
  font-style: italic;
  color: var(--ac26-sage);
}

.ac26-lede {
  margin: 10px 0 0;
  max-width: 480px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ac26-muted);
}

.ac26-seal {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px double var(--ac26-sage);
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ac26-paper);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
  transform: rotate(-8deg);
}

.ac26-seal strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ac26-sage);
  line-height: 1.1;
}

.ac26-seal span {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ac26-muted);
}

/* ── Stage ── */
.ac26-stage {
  padding: 32px 0 64px;
}

.ac26-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 56px 24px;
  color: var(--ac26-muted);
  font-weight: 600;
  background: var(--ac26-paper);
  border: 1px solid var(--ac26-border);
  border-radius: 20px;
}

.ac26-loading p {
  margin: 0;
  font-size: 0.92rem;
}

.ac26-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--ac26-sage-light);
  border-top-color: var(--ac26-sage);
  border-radius: 50%;
  animation: ac26-spin 0.85s linear infinite;
}

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

.ac26-notice {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.ac26-notice.error,
.notice.error.ac26-notice {
  background: #FDECEC;
  color: #8B2020;
  border: 1px solid #F5C2C2;
}

#profileVerifyNotice:empty {
  display: none;
}

#profileVerifyNotice.notice {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

#profileVerifyNotice.notice.success,
.ac26-page .notice.success {
  background: #E8F5EE;
  color: var(--ac26-sage);
  border: 1px solid #B8DCC8;
}

#profileVerifyNotice.notice.warning,
.ac26-page .notice.warning {
  background: #FFF8E6;
  color: #8B6914;
  border: 1px solid #F0E0A8;
}
.ac26-passport-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: var(--ac26-sage);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(47, 85, 68, 0.2);
}

.ac26-passport-id {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.ac26-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ac26-passport-meta span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ac26-passport-meta h2 {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.ac26-passport-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Tab rail (seed packets) ── */
.ac26-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 0;
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ac26-rail::-webkit-scrollbar {
  display: none;
}

.ac26-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 18px;
  min-width: 118px;
  flex: 0 0 auto;
  border: 1px solid var(--ac26-border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: 0.15s ease;
  margin-bottom: -1px;
}

.ac26-rail-btn::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 10px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, transparent 50%, var(--ac26-sage-light) 50%);
  border-radius: 0 4px 0 0;
  opacity: 0.6;
}

.ac26-rail-btn:hover {
  background: var(--ac26-sage-light);
}

.ac26-rail-btn.is-active {
  background: var(--ac26-paper);
  border-color: var(--ac26-sage);
  z-index: 2;
  box-shadow: 0 -4px 12px rgba(47, 85, 68, 0.06);
}

.ac26-rail-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ac26-paper);
}

.ac26-rail-btn strong {
  font-size: 0.92rem;
}

.ac26-rail-btn small {
  font-size: 0.72rem;
  color: var(--ac26-muted);
}

.ac26-rail-btn.is-active strong {
  color: var(--ac26-sage);
}

.ac26-rail-link {
  margin-left: auto;
}

@media (min-width: 901px) {
  .ac26-rail {
    flex-wrap: wrap;
    overflow: visible;
  }
}

/* ── Ledger panel ── */
.ac26-ledger {
  background: var(--ac26-paper);
  border: 1px solid var(--ac26-sage);
  border-radius: 0 20px 20px 20px;
  padding: 28px;
  min-height: 360px;
  position: relative;
  box-shadow: 0 8px 28px rgba(20, 20, 20, 0.05);
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    var(--ac26-rule) 27px,
    var(--ac26-rule) 28px
  );
  background-position: 0 12px;
}

.ac26-ledger-inner {
  position: relative;
  background: rgba(255, 254, 249, 0.92);
  padding: 4px 0;
}

.dash-panel {
  display: none;
}

.dash-panel.is-active {
  display: block;
  animation: ac26-fade 0.25s ease;
}

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

.ac26-panel-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac26-terra);
}

.ac26-panel-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 800;
}

.ac26-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.ac26-panel-head .ac26-panel-title {
  margin-bottom: 0;
}

/* Profile grid from store-auth.js */
.ac26-ledger .profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ac26-ledger .profile-item {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ac26-border);
}

.ac26-ledger .profile-item .k {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ac26-muted);
  margin-bottom: 4px;
}

.ac26-ledger .profile-item .v {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ac26-ink);
  word-break: break-word;
}

.ac26-ledger .profile-item .v.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.ac26-ledger .order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ac26-ledger .order-row,
.ac26-ledger .ac26-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ac26-border);
  box-shadow: none;
}

.ac26-order-main {
  min-width: 0;
  flex: 1;
}

.ac26-order-id {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ac26-ink);
  word-break: break-all;
}

.ac26-order-meta {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--ac26-muted);
  line-height: 1.4;
}

.ac26-order-date {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ac26-muted);
}

.ac26-order-view {
  flex-shrink: 0;
  background: var(--ac26-sage-light) !important;
  color: var(--ac26-sage) !important;
  border-color: var(--ac26-border) !important;
}

.ac26-order-view:hover {
  border-color: var(--ac26-sage) !important;
}

.ac26-empty {
  padding: 32px 24px;
  text-align: center;
  background: var(--ac26-sage-light);
  border: 1px dashed var(--ac26-border);
  border-radius: 16px;
}

.ac26-empty p {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--ac26-ink);
}

.ac26-empty span {
  display: block;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--ac26-muted);
  line-height: 1.45;
}

.ac26-ledger .mini-copy {
  font-size: 0.85rem;
  color: var(--ac26-muted);
  margin-top: 4px;
}

/* ── Forms ── */
.ac26-form .ac26-field {
  margin-bottom: 16px;
}

.ac26-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ac26-muted);
}

.ac26-form input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--ac26-border);
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease;
}

.ac26-form input:focus {
  border-color: var(--ac26-sage);
}

.ac26-form-inline {
  display: grid;
  gap: 12px;
}

/* ── Buttons ── */
.ac26-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: 0.15s ease;
  font-family: inherit;
  background: transparent;
}

.ac26-btn-primary {
  background: var(--ac26-sage);
  color: #fff;
  border-color: var(--ac26-sage);
}

.ac26-btn-primary:hover {
  background: var(--ac26-sage-dark);
}

.ac26-btn-soft {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.ac26-passport-actions .ac26-btn-soft {
  background: rgba(255, 255, 255, 0.12);
}

.ac26-passport-actions .ac26-btn-soft:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ac26-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.ac26-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ac26-ledger .ac26-btn-soft {
  background: var(--ac26-sage-light);
  color: var(--ac26-sage);
  border-color: var(--ac26-border);
}

.ac26-ledger .ac26-btn-soft:hover {
  border-color: var(--ac26-sage);
}

.ac26-ledger .order-row .btn,
.ac26-ledger .order-row .ac26-btn {
  background: var(--ac26-sage-light);
  color: var(--ac26-sage);
  border: 1px solid var(--ac26-border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.ac26-booklet .ac26-btn-primary {
  width: 100%;
}

.ac26-btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.ac26-booklet .ac26-btn-soft {
  background: var(--ac26-sage-light);
  color: var(--ac26-sage);
  border-color: var(--ac26-border);
}

.ac26-booklet .ac26-btn-soft:hover {
  border-color: var(--ac26-sage);
}

/* ── Logged-out gate ── */
.ac26-gate {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--ac26-border);
  box-shadow: 0 16px 48px rgba(20, 20, 20, 0.08);
}

.ac26-cover {
  padding: 32px 28px;
  background: linear-gradient(160deg, var(--ac26-sage) 0%, var(--ac26-sage-dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.ac26-cover h2 {
  margin: 0 0 10px;
  font-family: var(--sv-serif);
  font-size: 1.6rem;
  font-weight: 400;
}

.ac26-cover-lede {
  margin: 0 0 24px;
  font-size: 0.92rem;
  opacity: 0.88;
  line-height: 1.55;
}

.ac26-stamps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.ac26-stamp {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.ac26-stamp-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.6;
  margin-bottom: 4px;
}

.ac26-booklet {
  background: var(--ac26-paper);
  padding: 28px;
}

.ac26-booklet-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--ac26-border);
}

.ac26-booklet-tab {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ac26-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  transition: 0.15s ease;
}

.ac26-booklet-tab.is-active {
  color: var(--ac26-sage);
  border-bottom-color: var(--ac26-sage);
}

.ac26-booklet-panel {
  display: none;
}

.ac26-booklet-panel.is-active {
  display: block;
}

.ac26-booklet-panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
}

.ac26-booklet-lede {
  margin: 0 0 20px;
  color: var(--ac26-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ac26-booklet-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ac26-terra);
}

.ac26-forgot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--ac26-border);
}

.ac26-forgot h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.ac26-form-reset {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--ac26-border);
}

.ac26-form-reset h3 {
  margin: 0 0 14px;
}

/* Toast */
.ac26-page .toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ac26-ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9999;
  max-width: min(90vw, 420px);
  text-align: center;
}

.ac26-page .toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ac26-page .toast.success { background: var(--ac26-sage); }
.ac26-page .toast.error { background: #C0392B; }
.ac26-page .toast.warning { background: #8B6914; }

@media (max-width: 900px) {
  .ac26-gate {
    grid-template-columns: 1fr;
  }

  .ac26-cover {
    padding: 24px 20px;
  }

  .ac26-booklet {
    padding: 22px 18px;
  }

  .ac26-ledger .profile-grid {
    grid-template-columns: 1fr;
  }

  .ac26-ledger {
    border-radius: 20px;
    padding: 20px 16px;
  }

  .ac26-rail-btn {
    border-radius: 14px;
    border-bottom: 1px solid var(--ac26-border);
    min-width: 108px;
  }

  .ac26-rail-btn.is-active::after {
    display: none;
  }

  .ac26-rail-link {
    margin-left: 0;
  }

  .ac26-ledger .order-row,
  .ac26-ledger .ac26-order-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ac26-order-view {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .ac26-hero {
    padding: 28px 0 40px;
  }

  .ac26-seal {
    width: 72px;
    height: 72px;
  }

  .ac26-passport-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }

  .ac26-passport-actions {
    flex-direction: column;
  }

  .ac26-passport-actions .ac26-btn {
    width: 100%;
    justify-content: center;
  }

  .ac26-stamps {
    grid-template-columns: 1fr;
  }

  .ac26-forgot .ac26-form-inline {
    grid-template-columns: 1fr;
  }

  .ac26-forgot .ac26-btn-soft {
    width: 100%;
  }
}
