/* Flowix — Tines-inspired design system (white primary) */
:root {
  --fx-bg: #ffffff;
  --fx-bg-soft: #f6f6f8;
  --fx-bg-muted: #efeff2;
  --fx-text: #12121a;
  --fx-text-secondary: #5c5c6a;
  --fx-text-tertiary: #8b8b96;
  --fx-border: #e4e4e8;
  --fx-border-strong: #d0d0d6;
  --fx-accent: #12121a;
  --fx-accent-hover: #2a2a34;
  --fx-radius-sm: 8px;
  --fx-radius: 12px;
  --fx-radius-lg: 16px;
  --fx-radius-xl: 20px;
  --fx-shadow-sm: 0 1px 2px rgba(18, 18, 26, 0.04);
  --fx-shadow: 0 4px 24px rgba(18, 18, 26, 0.06);
  --fx-shadow-lg: 0 12px 48px rgba(18, 18, 26, 0.08);
  --fx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fx-display-weight: 500;
  --fx-max: 1200px;
  --fx-nav-h: 72px;
}

/* Display headings — same style as “flowix Teams for your org” */
.fx-display-title {
  font-family: var(--fx-font);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: var(--fx-display-weight, 500);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fx-text);
  margin-bottom: 12px;
}

body.fx-tines :is(h1, h2, h3, h4, h5, h6, .page-title, .form-title, .card-title) {
  font-family: var(--fx-font);
  letter-spacing: -0.02em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.fx-tines {
  font-family: var(--fx-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fx-text);
  background: var(--fx-bg);
  -webkit-font-smoothing: antialiased;
}

body.fx-tines.fx-sky {
  background: transparent;
}

body.fx-tines a {
  color: inherit;
  text-decoration: none;
}

/* — Nav — */
.fx-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--fx-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fx-border);
}

.fx-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fx-text);
}

.fx-nav-links {
  display: flex;
  gap: 32px;
}

.fx-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fx-text-secondary);
  transition: color 0.15s;
}

.fx-nav-links a:hover {
  color: var(--fx-text);
}

.fx-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fx-font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.fx-btn-ghost {
  background: transparent;
  color: var(--fx-text);
  border: 1px solid var(--fx-border-strong);
}

.fx-btn-ghost:hover {
  border-color: var(--fx-text);
  background: var(--fx-bg-soft);
}

.fx-btn-primary {
  background: var(--fx-accent);
  color: #fff;
}

.fx-btn-primary:hover {
  background: var(--fx-accent-hover);
}

body.fx-landing .fx-btn-primary:not(.fx-action):hover,
body.fx-landing .fx-btn-ghost:not(.fx-action):hover {
  transform: none;
  box-shadow: none;
}

.fx-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* — Hero — */
.fx-hero {
  padding: calc(var(--fx-nav-h) + 80px) 40px 100px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.fx-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fx-text);
  margin-bottom: 24px;
}

body.fx-landing .fx-hero h1 {
  margin-bottom: 0;
}

.fx-hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--fx-text-secondary);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.fx-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.fx-hero-note {
  font-size: 13px;
  color: var(--fx-text-tertiary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* — Product cards (Tines-style showcase) — */
.fx-showcase {
  padding: 0 40px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

.fx-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.fx-product-card {
  background: var(--fx-bg-soft);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.fx-product-card:hover {
  box-shadow: var(--fx-shadow-lg);
  transform: translateY(-2px);
}

.fx-product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fx-text-secondary);
  padding: 20px 20px 0;
}

.fx-product-preview {
  margin: 16px 16px 0;
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  min-height: 180px;
  padding: 16px;
  font-size: 12px;
  color: var(--fx-text-secondary);
  box-shadow: var(--fx-shadow-sm);
}

.fx-product-footer {
  padding: 20px;
}

.fx-product-footer h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.fx-product-footer p {
  font-size: 13px;
  color: var(--fx-text-secondary);
  line-height: 1.45;
}

.fx-product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fx-text);
}

/* — Marquee / logos — */
.fx-marquee {
  border-top: 1px solid var(--fx-border);
  border-bottom: 1px solid var(--fx-border);
  background: var(--fx-bg-soft);
  padding: 14px 0;
  overflow: hidden;
}

.fx-marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: fx-scroll 40s linear infinite;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-text-tertiary);
}

@keyframes fx-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* — Section — */
.fx-section {
  padding: 100px 40px;
  max-width: var(--fx-max);
  margin: 0 auto;
}

.fx-section-wide {
  max-width: 1280px;
}

.fx-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-text-tertiary);
  margin-bottom: 16px;
}

.fx-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.fx-section-desc {
  font-size: 17px;
  color: var(--fx-text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 48px;
}

/* — Three pillars — */
.fx-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .fx-pillars {
    grid-template-columns: 1fr;
  }
}

.fx-pillar {
  padding: 28px;
  background: var(--fx-bg);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
}

.fx-pillar h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.fx-pillar .fx-pillar-best {
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-text-tertiary);
  margin-bottom: 12px;
}

.fx-pillar p {
  font-size: 14px;
  color: var(--fx-text-secondary);
  line-height: 1.55;
}

/* — Feature grid — */
.fx-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .fx-feature-grid {
    grid-template-columns: 1fr;
  }
}

.fx-feature-card {
  padding: 32px;
  background: var(--fx-bg-soft);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
}

.fx-feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.fx-feature-card p {
  font-size: 15px;
  color: var(--fx-text-secondary);
  line-height: 1.55;
}

/* — Cards grid (skills / integrations) — */
.fx-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.fx-card {
  padding: 24px;
  background: var(--fx-bg);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.fx-card:hover {
  border-color: var(--fx-border-strong);
  box-shadow: var(--fx-shadow);
}

.fx-card-icon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fx-text-tertiary);
  margin-bottom: 12px;
}

.fx-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.fx-card p {
  font-size: 14px;
  color: var(--fx-text-secondary);
  line-height: 1.5;
}

.fx-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  margin-top: 12px;
  background: var(--fx-bg-muted);
  border-radius: 999px;
  color: var(--fx-text-secondary);
}

/* — Testimonials — */
.fx-testimonials {
  background: var(--fx-bg-soft);
  border-top: 1px solid var(--fx-border);
  border-bottom: 1px solid var(--fx-border);
  padding: 60px 0;
  overflow: hidden;
}

.fx-testimonial-track {
  display: flex;
  gap: 24px;
  animation: fx-scroll 60s linear infinite;
  padding: 0 40px;
}

.fx-testimonial {
  flex: 0 0 340px;
  padding: 28px;
  background: var(--fx-bg);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow-sm);
}

.fx-testimonial blockquote {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fx-text);
  margin-bottom: 20px;
  font-style: normal;
}

.fx-testimonial-stat {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.fx-testimonial-stat span {
  font-size: 14px;
  font-weight: 500;
  color: var(--fx-text-secondary);
}

.fx-testimonial cite {
  font-size: 13px;
  color: var(--fx-text-tertiary);
  font-style: normal;
}

/* — CTA band — */
.fx-cta-band {
  text-align: center;
  padding: 120px 40px;
  background: var(--fx-bg-soft);
  border-top: 1px solid var(--fx-border);
}

.fx-cta-band h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.fx-cta-band p {
  color: var(--fx-text-secondary);
  margin-bottom: 32px;
  font-size: 17px;
}

/* — Footer — */
.fx-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 40px;
  border-top: 1px solid var(--fx-border);
  max-width: 1280px;
  margin: 0 auto;
}

.fx-footer-links {
  display: flex;
  gap: 24px;
}

.fx-footer-links a {
  font-size: 14px;
  color: var(--fx-text-secondary);
}

.fx-footer-links a:hover {
  color: var(--fx-text);
}

.fx-footer-copy {
  font-size: 13px;
  color: var(--fx-text-tertiary);
}

/* — Dashboard shell — */
.fx-dash {
  min-height: 100vh;
  background: var(--fx-bg);
}

.fx-dash-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--fx-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fx-border);
}

.fx-dash-nav {
  display: flex;
  gap: 4px;
  list-style: none;
}

.fx-dash-nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--fx-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--fx-text-secondary);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.fx-dash-nav button:hover {
  color: var(--fx-text);
  background: var(--fx-bg-soft);
}

.fx-dash-nav button.active {
  color: var(--fx-text);
  background: var(--fx-bg-muted);
  font-weight: 600;
}

.fx-dash-main {
  margin-top: var(--fx-nav-h);
  padding: 48px 32px 80px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.fx-page-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-text-tertiary);
  margin-bottom: 8px;
}

.fx-page-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.fx-page-desc {
  font-size: 16px;
  color: var(--fx-text-secondary);
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 40px;
}

.fx-panel {
  background: var(--fx-bg);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--fx-shadow-sm);
}

.fx-panel-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fx-border);
}

.fx-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fx-text);
}

.fx-form-input,
.fx-form-select,
.fx-form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--fx-font);
  font-size: 14px;
  border: 1px solid var(--fx-border-strong);
  border-radius: var(--fx-radius-sm);
  background: var(--fx-bg);
  color: var(--fx-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fx-form-input:focus,
.fx-form-select:focus,
.fx-form-textarea:focus {
  outline: none;
  border-color: var(--fx-text);
  box-shadow: 0 0 0 3px rgba(18, 18, 26, 0.06);
}

.fx-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.fx-form-group {
  margin-bottom: 20px;
}

.fx-form-hint {
  font-size: 12px;
  color: var(--fx-text-tertiary);
  margin-top: 6px;
}

.fx-dash-card {
  background: var(--fx-bg);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.fx-dash-card:hover {
  border-color: var(--fx-border-strong);
  box-shadow: var(--fx-shadow);
}

.fx-empty {
  text-align: center;
  padding: 64px 32px;
  background: var(--fx-bg-soft);
  border: 1px dashed var(--fx-border-strong);
  border-radius: var(--fx-radius-lg);
}

.fx-empty h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.fx-empty p {
  font-size: 15px;
  color: var(--fx-text-secondary);
  max-width: 400px;
  margin: 0 auto 24px;
}

.fx-balance {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  background: var(--fx-bg-soft);
  border: 1px solid var(--fx-border);
  border-radius: 999px;
}

/* Teams hero block — single glass panel */
.fx-teams-hero {
  margin-bottom: 32px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--fx-radius-xl);
  box-shadow: 0 12px 40px rgba(45, 90, 135, 0.1);
}

.fx-teams-mock {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--fx-radius);
  padding: 20px;
  font-size: 13px;
  box-shadow: none;
}

.fx-teams-mock .fx-chat-line {
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: var(--fx-radius-sm);
  max-width: 85%;
}

.fx-teams-mock .fx-chat-bot {
  background: var(--fx-bg-soft);
  border: 1px solid var(--fx-border);
}

.fx-teams-mock .fx-chat-user {
  background: var(--fx-accent);
  color: #fff;
  margin-left: auto;
}

.fx-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(18, 18, 26, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.fx-modal-overlay.open {
  display: flex;
}

.fx-modal {
  background: var(--fx-bg);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--fx-shadow-lg);
}

.fx-modal h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.fx-modal p {
  font-size: 15px;
  color: var(--fx-text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
}

/* — Dashboard compatibility (maps legacy class names) — */
body.fx-tines:not(.fx-landing) {
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.fx-tines:not(.fx-landing).ready {
  opacity: 1;
}

body.fx-tines.fx-landing {
  opacity: 1;
}

body.fx-tines .section {
  display: none;
}

body.fx-tines .section.active {
  display: block;
  animation: fx-fade-in 0.3s ease;
}

@keyframes fx-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body.fx-tines .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

body.fx-tines .card,
body.fx-tines .form-card {
  background: var(--fx-bg);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-lg);
  padding: 24px;
  box-shadow: var(--fx-shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

body.fx-tines .card:hover {
  border-color: var(--fx-border-strong);
  box-shadow: var(--fx-shadow);
}

body.fx-tines .form-card {
  padding: 32px;
  margin-bottom: 24px;
}

body.fx-tines .card-title,
body.fx-tines .form-title,
body.fx-tines .fx-panel-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--fx-text);
}

body.fx-tines .form-title {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fx-border);
}

body.fx-tines .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

body.fx-tines .card-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--fx-bg-muted);
  color: var(--fx-text-secondary);
  border-radius: 999px;
}

body.fx-tines .card-description {
  font-size: 14px;
  color: var(--fx-text-secondary);
  margin-bottom: 12px;
}

body.fx-tines .card-footer {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--fx-border);
}

body.fx-tines .page-header {
  margin-bottom: 32px;
}

body.fx-tines .page-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-text-tertiary);
  margin-bottom: 8px;
}

body.fx-tines .page-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fx-text);
  margin-bottom: 0;
}

body.fx-tines .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

body.fx-tines .form-input,
body.fx-tines .form-select,
body.fx-tines .form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--fx-font);
  font-size: 14px;
  border: 1px solid var(--fx-border-strong);
  border-radius: var(--fx-radius-sm);
  background: var(--fx-bg);
  color: var(--fx-text);
}

body.fx-tines .form-input:focus,
body.fx-tines .form-select:focus,
body.fx-tines .form-textarea:focus {
  outline: none;
  border-color: var(--fx-text);
  box-shadow: 0 0 0 3px rgba(18, 18, 26, 0.06);
}

body.fx-tines .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

body.fx-tines .form-group {
  margin-bottom: 16px;
}

body.fx-tines .form-hint {
  font-size: 12px;
  color: var(--fx-text-tertiary);
  margin-top: 6px;
}

body.fx-tines .form-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--fx-border);
}

body.fx-tines .btn {
  padding: 10px 18px;
  font-family: var(--fx-font);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  flex: 1;
  text-align: center;
}

body.fx-tines .btn-primary {
  background: var(--fx-accent);
  color: #fff;
}

body.fx-tines .btn-primary:hover {
  background: var(--fx-accent-hover);
  transform: translateY(-1px);
}

body.fx-tines .btn-secondary {
  background: var(--fx-bg);
  color: var(--fx-text);
  border: 1px solid var(--fx-border-strong);
}

body.fx-tines .btn-secondary:hover {
  background: var(--fx-bg-soft);
}

body.fx-tines .btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

body.fx-tines .btn-large {
  flex: none;
  width: auto;
  padding: 12px 24px;
}

body.fx-tines .empty-state {
  text-align: center;
  padding: 64px 32px;
  background: var(--fx-bg-soft);
  border: 1px dashed var(--fx-border-strong);
  border-radius: var(--fx-radius-lg);
}

body.fx-tines .empty-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

body.fx-tines .empty-text {
  font-size: 15px;
  color: var(--fx-text-secondary);
  margin-bottom: 24px;
}

body.fx-tines .api-key-box {
  background: var(--fx-bg-soft);
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius-sm);
  padding: 14px 16px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

body.fx-tines .amount-btn {
  padding: 16px;
  border: 1px solid var(--fx-border-strong);
  background: var(--fx-bg);
  border-radius: var(--fx-radius-sm);
  cursor: pointer;
  font-weight: 600;
}

body.fx-tines .amount-btn.active {
  background: var(--fx-accent);
  color: #fff;
  border-color: var(--fx-accent);
}

body.fx-tines .amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

body.fx-tines .nav-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

body.fx-tines header {
  all: unset;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--fx-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fx-border);
  box-sizing: border-box;
}

body.fx-tines .header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

body.fx-tines .logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fx-text);
  background: none;
  -webkit-text-fill-color: unset;
}

body.fx-tines .nav-main {
  display: flex;
  gap: 4px;
  list-style: none;
}

body.fx-tines .nav-main button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fx-text-secondary);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

body.fx-tines .nav-main button:hover {
  color: var(--fx-text);
  background: var(--fx-bg-soft);
}

body.fx-tines .nav-main button.active {
  color: var(--fx-text);
  background: var(--fx-bg-muted);
  font-weight: 600;
}

body.fx-tines .nav-main button.active::after {
  display: none;
}

body.fx-tines .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.fx-tines .balance-display {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  background: var(--fx-bg-soft);
  border: 1px solid var(--fx-border);
  border-radius: 999px;
}

body.fx-tines .btn-signout {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--fx-border-strong);
  border-radius: 999px;
  cursor: pointer;
}

body.fx-tines .btn-signout:hover {
  background: var(--fx-bg-soft);
}

body.fx-tines main {
  margin-top: var(--fx-nav-h);
  padding: 48px 32px 80px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

body.fx-tines #balance-large {
  color: var(--fx-text) !important;
}

body.fx-tines .toast {
  padding: 14px 20px;
  border-radius: var(--fx-radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--fx-shadow-lg);
  background: var(--fx-accent);
  color: #fff;
}

body.fx-tines .toast.success {
  background: #059669;
}

body.fx-tines .toast.error {
  background: #dc2626;
}

.fx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .fx-steps {
    grid-template-columns: 1fr;
  }
}
