:root {
  --bg-root: #0f141b;
  --bg-layer: #111821;
  --bg-panel: #151f2a;
  --bg-panel-soft: #1b2633;
  --bg-panel-hover: #223143;
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.1);
  --text-main: #edf3f8;
  --text-muted: #8d9baa;
  --text-soft: #6e7d8d;
  --accent: #48a9ff;
  --accent-strong: #2b8ce4;
  --accent-soft: rgba(72, 169, 255, 0.16);
  --tone-violet: #7f63ff;
  --tone-green: #4fd9a7;
  --tone-amber: #f0aa3b;
  --tone-teal: #38d2c8;
  --tone-blue: #56a8ff;
  --tone-rose: #ff707c;
  --tone-muted: #3b4653;
  --success-bg: rgba(45, 186, 122, 0.14);
  --success-border: rgba(45, 186, 122, 0.26);
  --success-text: #d8f6e7;
  --error-bg: rgba(226, 96, 96, 0.12);
  --error-border: rgba(226, 96, 96, 0.22);
  --error-text: #ffdede;
  --shadow-soft: 0 26px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

html {
  background: var(--bg-root);
}

body,
body.landing-body,
body.dashboard-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(72, 169, 255, 0.09), transparent 28%),
    radial-gradient(circle at bottom right, rgba(98, 160, 255, 0.07), transparent 24%),
    linear-gradient(180deg, #0d1218, #0f141b 44%, #101821);
  color: var(--text-main);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 19px;
}

.notice-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}

.notice-error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: var(--error-border);
}

.site-brand,
.workspace-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-brand-mark,
.workspace-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(72, 169, 255, 0.22), rgba(72, 169, 255, 0.06)),
    #162130;
  border: 1px solid rgba(72, 169, 255, 0.22);
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
}

.site-brand-copy,
.workspace-brand-copy {
  display: grid;
  gap: 2px;
}

.site-brand-copy strong,
.workspace-brand-copy strong {
  color: var(--text-main);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.site-brand-copy small,
.workspace-brand-copy small {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 16px;
}

.primary-action,
.secondary-action,
.sidebar-create-button,
.hero-action-button,
.sidebar-logout,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.primary-action,
.sidebar-create-button,
.hero-action-button,
.submit-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 14px 28px rgba(43, 140, 228, 0.24);
}

.secondary-action,
.sidebar-logout {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--line-soft);
}

.primary-action:hover,
.secondary-action:hover,
.sidebar-create-button:hover,
.hero-action-button:hover,
.sidebar-logout:hover,
.submit-button:hover {
  transform: translateY(-1px);
}

.primary-action {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
}

.secondary-action {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
}

.marketing-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.marketing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.marketing-topbar-minimal {
  justify-content: center;
}

.marketing-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.marketing-nav a {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.marketing-nav a:hover {
  color: var(--text-main);
}

.marketing-main {
  margin-top: 48px;
}

.marketing-main-landing {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.hero-card,
.info-card,
.wallet-summary-card,
.stats-card,
.chart-card,
.connect-stage-card,
.workspace-sidebar,
.modal-dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--bg-panel);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 26px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.hero-copy h1,
.project-stage-header h1 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-copy p,
.project-stage-header p,
.info-card p,
.stats-card p,
.connect-stage-copy p,
.wallet-summary-copy span,
.project-nav-copy span,
.sidebar-empty-state span,
.sidebar-user-panel span,
.modal-copy {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
}

.hero-copy p {
  max-width: 680px;
  margin: 16px 0 0;
}

.hero-badge,
.card-label,
.section-kicker,
.stats-card small,
.wallet-balance-box small {
  display: inline-flex;
  margin-bottom: 12px;
  color: #9cb1c5;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(72, 169, 255, 0.08);
  border: 1px solid rgba(72, 169, 255, 0.14);
}

.hero-actions {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-soft);
}

.hero-action-button {
  min-height: 56px;
  width: 100%;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
}

.hero-action-button.compact {
  width: auto;
  min-width: 220px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 20px;
}

.landing-login-stage {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
}

.landing-google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 310px;
  min-height: 72px;
  padding: 0 28px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.landing-google-button:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 169, 255, 0.22);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.landing-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a73e8;
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
}

.landing-summary {
  max-width: 760px;
  text-align: center;
}

.landing-summary p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.landing-info-grid {
  width: 100%;
  max-width: 1140px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}

.info-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.info-card h2,
.connect-stage-copy h2,
.chart-card-head h2 {
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.workspace-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  gap: 28px;
  max-width: 1460px;
  margin: 0 auto;
  padding: 24px 20px;
  overflow: hidden;
}

.workspace-sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
}

.workspace-sidebar-top {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.sidebar-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-brand {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  flex: 1;
}

.workspace-sidebar-head {
  padding-top: 2px;
}

.workspace-sidebar-head h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sidebar-create-button {
  min-height: 40px;
  width: 100%;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

.project-nav-list {
  display: grid;
  gap: 6px;
}

.project-nav-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.project-nav-item:hover,
.project-nav-item.active {
  background: var(--bg-panel-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.project-nav-copy {
  display: grid;
  gap: 4px;
}

.project-nav-copy.compact {
  gap: 2px;
}

.project-nav-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-nav-copy strong,
.sidebar-empty-state strong,
.sidebar-user-panel strong,
.wallet-summary-copy strong {
  color: var(--text-main);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.project-wallet-suffix {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.project-nav-badge,
.stage-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
  font-weight: 700;
}

.project-nav-badge.connected,
.stage-status-pill {
  background: rgba(45, 186, 122, 0.14);
  color: #bcf1d5;
}

.project-nav-badge.waiting {
  background: rgba(72, 169, 255, 0.14);
  color: #b9deff;
}

.sidebar-empty-state,
.sidebar-user-panel {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
}

.sidebar-user-panel {
  align-self: end;
  gap: 3px;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line-soft);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
}

.sidebar-logout {
  min-height: 32px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-main {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 6px 10px 24px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.workspace-main::-webkit-scrollbar {
  display: none;
}

.sidebar-toggle,
.sidebar-reopen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.sidebar-reopen {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-left: auto;
  margin-bottom: 10px;
}

.sidebar-collapsed .workspace-shell {
  grid-template-columns: 1fr;
}

.sidebar-collapsed .workspace-sidebar {
  display: none;
}

.sidebar-collapsed .sidebar-reopen {
  display: inline-flex;
}

body:not(.sidebar-collapsed) .sidebar-reopen {
  display: none;
}

.project-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-stage-header p {
  max-width: 700px;
  margin: 12px 0 0;
}

.project-stage-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-edit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.wallet-create-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 193, 77, 0.14);
  color: #ffd98a;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  cursor: default;
}

.wallet-cta-inline {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
}

.wallet-cta-inline .hero-action-button.compact {
  min-width: 260px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.wallet-create-chip.attached {
  min-height: 56px;
  padding: 0 16px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid rgba(15, 20, 27, 0.22);
  background: linear-gradient(135deg, rgba(255, 193, 77, 0.92), rgba(244, 171, 44, 0.96));
  color: #342200;
}

.wallet-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
}

.wallet-summary-copy strong {
  margin: 4px 0 6px;
  word-break: break-all;
}

.wallet-balance-box {
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(72, 169, 255, 0.08);
  border: 1px solid rgba(72, 169, 255, 0.16);
  text-align: right;
}

.wallet-balance-box strong,
.stats-card strong {
  display: block;
  color: var(--text-main);
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wallet-balance-box span,
.stats-card strong span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.stats-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.stats-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
}

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

.stats-card-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
}

.stats-card-glow {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  opacity: 0.14;
  filter: blur(2px);
}

.stats-card.tone-violet .stats-card-glow,
.legend-mark.tone-violet {
  background: var(--tone-violet);
}

.stats-card.tone-green .stats-card-glow,
.legend-mark.tone-green {
  background: var(--tone-green);
}

.stats-card.tone-amber .stats-card-glow,
.legend-mark.tone-amber {
  background: var(--tone-amber);
}

.stats-card.tone-teal .stats-card-glow,
.legend-mark.tone-teal {
  background: var(--tone-teal);
}

.stats-card.tone-blue .stats-card-glow,
.legend-mark.tone-blue {
  background: var(--tone-blue);
}

.stats-card.tone-rose .stats-card-glow,
.legend-mark.tone-rose {
  background: var(--tone-rose);
}

.legend-mark.tone-muted {
  background: var(--tone-muted);
}

.stats-card p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 18px;
}

.stats-panels {
  display: grid;
  grid-template-columns: 1.2fr 0.88fr;
  gap: 14px;
  margin-top: 14px;
}

.chart-card {
  padding: 16px 18px;
  border-radius: 20px;
}

.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chart-card-head span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}

.sales-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 200px;
  margin-top: 16px;
}

.sales-chart-item {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.sales-chart-item strong {
  color: var(--text-main);
  font-size: 12px;
  line-height: 16px;
}

.sales-chart-item small {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 14px;
}

.sales-chart-bar {
  width: 100%;
  max-width: 42px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #7ec5ff, var(--accent-strong));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.donut-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.donut-ring {
  --segments: var(--tone-muted) 100%;
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: conic-gradient(var(--segments));
  justify-self: center;
}

.donut-ring::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #131b24;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  z-index: 1;
}

.donut-center strong {
  color: var(--text-main);
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
}

.donut-center span {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 14px;
}

.donut-legend {
  display: grid;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
}

.legend-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.legend-copy {
  display: grid;
  gap: 2px;
}

.legend-copy strong {
  color: var(--text-main);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.legend-copy span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 14px;
}

.connect-stage-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.connect-stage-card.empty {
  max-width: 760px;
}

.empty-wallet-center {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 12px;
}

.connect-stage-copy p {
  max-width: 700px;
  margin: 10px 0 0;
}

.empty-wallet-note {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.connect-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.modal-shell[hidden] {
  display: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-shell::-webkit-scrollbar {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.72);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px;
  border-radius: 24px;
  max-height: calc(100vh - 16px);
}

.modal-dialog.wide {
  width: min(720px, calc(100vw - 32px));
}

.recovery-modal {
  width: min(960px, calc(100vw - 32px));
  padding: 20px 24px 16px;
}

.modal-dialog h2 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}

.modal-back,
.modal-close {
  position: absolute;
  top: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  cursor: pointer;
}

.modal-back {
  left: 14px;
  font-size: 22px;
  line-height: 1;
}

.modal-close {
  top: 14px;
  right: 14px;
  font-size: 28px;
  line-height: 1;
}

.modal-form,
.account-form {
  display: grid;
  gap: 14px;
}

.modal-form {
  margin-top: 14px;
}

.account-form label {
  display: grid;
  gap: 8px;
}

.account-form span,
.modal-copy {
  color: var(--text-muted);
}

.account-form input,
.account-form textarea,
.account-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg-panel-soft);
  color: var(--text-main);
}

.account-form input::placeholder,
.account-form textarea::placeholder {
  color: var(--text-soft);
}

.account-form input:focus,
.account-form textarea:focus,
.account-form select:focus {
  outline: 2px solid rgba(72, 169, 255, 0.18);
  border-color: rgba(72, 169, 255, 0.26);
}

.submit-button {
  min-height: 44px;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
}

.modal-delete-form {
  margin-top: 10px;
}

.modal-delete-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff7d7d;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

.modal-delete-link:hover {
  color: #ff9c9c;
  text-decoration: underline;
}

.recovery-modal-copy {
  max-width: 560px;
  margin: 6px auto 0;
  text-align: center;
}

.recovery-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 14px;
}

.recovery-mode-switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.recovery-mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.recovery-mode-pill.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.recovery-paste-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(72, 169, 255, 0.2);
  border-radius: 12px;
  background: rgba(72, 169, 255, 0.08);
  color: #cfe8ff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.recovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.recovery-column {
  display: grid;
  gap: 6px;
}

.recovery-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--bg-panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.recovery-index {
  color: #8da2b8;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}

.recovery-field input {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
  line-height: 18px;
}

.recovery-field input:focus {
  outline: none;
}

.recovery-field:focus-within {
  border-color: rgba(72, 169, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(72, 169, 255, 0.1);
}

.recovery-status {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.recovery-status.error {
  color: #ffb0b0;
}

.recovery-status.success {
  color: #a5e5c1;
}

.wallet-options-panel {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(16, 24, 35, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-options-head {
  display: grid;
  gap: 3px;
}

.wallet-options-head strong {
  font-size: 14px;
  line-height: 18px;
}

.wallet-options-head span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}

.wallet-options-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallet-options-list-standalone {
  margin-top: 6px;
}

.wallet-select-modal {
  width: min(720px, calc(100vw - 32px));
}

.wallet-option-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-panel-soft);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.wallet-option-card:hover {
  border-color: rgba(72, 169, 255, 0.24);
  transform: translateY(-1px);
}

.wallet-option-card.active {
  border-color: rgba(72, 169, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(72, 169, 255, 0.2), 0 18px 36px rgba(11, 18, 29, 0.28);
}

.wallet-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-option-version {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(72, 169, 255, 0.14);
  color: #d8ecff;
  font-size: 12px;
  font-weight: 700;
}

.wallet-option-balance {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.wallet-option-address {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}

.phrase-submit {
  margin-top: 0;
  min-height: 42px;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .info-grid,
  .connect-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .workspace-sidebar {
    height: auto;
  }

  .sidebar-user-panel {
    margin-top: 0;
  }

  .workspace-main {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .stats-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .marketing-topbar,
  .project-stage-header,
  .project-stage-actions,
  .wallet-summary-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .marketing-nav {
    display: none;
  }

  .sidebar-titlebar {
    align-items: center;
  }

  .wallet-balance-box {
    text-align: left;
  }

  .donut-layout {
    grid-template-columns: 1fr;
  }

  .recovery-grid {
    grid-template-columns: 1fr;
  }

  .recovery-toolbar {
    flex-direction: column;
  }

  .wallet-options-list {
    grid-template-columns: 1fr;
  }

  .recovery-modal {
    max-height: calc(100vh - 16px);
  }
}

@media (max-width: 680px) {
  .marketing-shell,
  .workspace-shell {
    padding: 16px 12px 24px;
  }

  .hero-card,
  .connect-stage-card,
  .wallet-summary-card,
  .chart-card,
  .workspace-sidebar {
    padding: 20px;
  }

  .workspace-sidebar-head h2,
  .hero-copy h1,
  .project-stage-header h1 {
    font-size: 32px;
  }

  .info-grid,
  .connect-feature-grid,
  .stats-card-grid {
    grid-template-columns: 1fr;
  }

  .sales-chart {
    gap: 10px;
  }

  .hero-action-button.compact,
  .primary-action,
  .secondary-action,
  .landing-google-button {
    width: 100%;
  }

  .landing-google-button {
    min-width: 0;
    font-size: 20px;
  }

  .project-stage-actions {
    width: 100%;
  }

  .project-title-row {
    align-items: flex-start;
  }

  .sidebar-toggle,
  .sidebar-reopen {
    width: 34px;
    height: 34px;
  }

  .wallet-cta-inline {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .wallet-cta-inline .hero-action-button.compact,
  .wallet-create-chip.attached {
    width: 100%;
    min-width: 0;
    border-radius: 14px;
    border-left: 0;
  }

  .recovery-modal {
    padding: 18px 14px 14px;
  }

  .modal-back,
  .modal-close {
    top: 10px;
  }

  .modal-shell {
    padding: 6px;
  }

  .modal-dialog,
  .recovery-modal {
    max-height: calc(100vh - 12px);
  }
}
