:root {
  --estry-bg: #fafafa;
  --estry-white: #ffffff;
  --estry-border: #eeeeee;
  --estry-muted: #64748b;
  --estry-ink: #0f172a;
  --estry-ink-soft: #3f3f3f;
  --estry-black: #000000;
  --estry-green: #16a34a;
  --estry-green-bg: #f0fdf4;
  --estry-green-border: #bbf7d0;
  --estry-red: #dc2626;
  --estry-red-bg: #fef2f2;
  --estry-red-border: #fecaca;
  --estry-gray-100: #e5e7eb;
  --estry-shadow: -2px 4px 12px 4px rgba(51, 51, 51, 0.05);
  --estry-radius: 12px;
  --estry-radius-lg: 16px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.estry-body {
  margin: 0;
  font-family: var(--font);
  color: var(--estry-ink);
  background: var(--estry-white);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

.estry-container {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.estry-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 73px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--estry-border);
}

.estry-header__inner {
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.estry-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--estry-ink);
}

.estry-logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--estry-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.estry-logo__img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.estry-brand-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.estry-brand-preview img {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
}

.estry-brand-preview__favicon {
  width: 32px;
  height: 32px;
}

.estry-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.estry-nav a {
  font-size: 14px;
  color: var(--estry-muted);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.estry-nav a:hover,
.estry-nav a.is-active {
  color: var(--estry-ink);
}

.estry-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--estry-ink);
  border-radius: 2px;
}

.estry-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.estry-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--estry-ink);
}

.estry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  border-radius: var(--estry-radius);
  padding: 14px 28px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.estry-btn:hover {
  transform: translateY(-1px);
}

.estry-btn--primary {
  background: var(--estry-black);
  color: #fff;
}

.estry-btn--primary:hover {
  background: #1a1a1a;
}

.estry-btn--outline {
  background: transparent;
  color: var(--estry-ink);
  border: 2px solid var(--estry-black);
  padding: 12px 28px;
}

.estry-btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 12px 28px;
}

.estry-btn--light {
  background: #fff;
  color: var(--estry-ink);
}

.estry-btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}

.estry-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--estry-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.estry-mobile-nav {
  display: none;
}

/* Hero */
.estry-hero {
  background: var(--estry-bg);
  padding: 96px 0;
}

.estry-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.estry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--estry-border);
  background: var(--estry-bg);
  border-radius: 9999px;
  padding: 7px 17px;
  font-size: 12px;
  font-weight: 500;
  color: var(--estry-muted);
  margin-bottom: 20px;
}

.estry-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #000;
}

.estry-hero h1 {
  margin: 0 0 20px;
  font-size: 60px;
  line-height: 60px;
  font-weight: 700;
  color: var(--estry-ink);
}

.estry-hero h1 span {
  color: var(--estry-ink-soft);
  display: block;
}

.estry-hero__lead {
  margin: 0;
  max-width: 512px;
  font-size: 18px;
  line-height: 29.25px;
  color: var(--estry-muted);
}

.estry-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.estry-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  padding-top: 8px;
}

.estry-stats__item strong {
  display: block;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.estry-stats__item span {
  font-size: 12px;
  line-height: 16px;
  color: var(--estry-muted);
}

.estry-stats__divider {
  width: 1px;
  height: 32px;
  background: var(--estry-border);
}

/* Convert card */
.estry-card {
  background: #fff;
  border: 1px solid var(--estry-border);
  border-radius: var(--estry-radius-lg);
  box-shadow: var(--estry-shadow);
  padding: 29px;
}

.estry-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.estry-card__head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.estry-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--estry-border);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--estry-ink);
}

.estry-icon-btn svg {
  display: block;
}

.estry-convert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.estry-convert-row--from {
  background: #0f172a;
  color: #fff;
}

.estry-convert-row--to {
  background: #fff;
  border: 1px solid var(--estry-border);
}

.estry-convert-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.estry-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.estry-currency-picker.is-open {
  z-index: 50;
}

.estry-convert-row:has(.estry-currency-picker.is-open) {
  position: relative;
  z-index: 5;
}

.estry-currency-picker__native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  left: 0;
  top: 0;
}

.estry-currency-picker__trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.estry-currency-picker__chevron {
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.estry-currency-picker.is-open .estry-currency-picker__chevron {
  transform: rotate(180deg);
}

.estry-currency-picker__name {
  display: block;
  font-size: 12px;
  line-height: 16px;
  opacity: 0.75;
  margin-top: 2px;
}

.estry-currency-picker__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(280px, 70vw);
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--estry-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  z-index: 40;
  overflow: hidden;
}

.estry-currency-picker__panel[hidden] {
  display: none !important;
}

.estry-currency-picker__search {
  padding: 8px 10px;
  border-bottom: 1px solid var(--estry-border);
}

.estry-currency-picker__search input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--estry-border);
  border-radius: 8px;
  padding: 8px 12px 8px 34px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0f172a;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='7' cy='7' r='4.5' stroke='%2394a3b8' stroke-width='1.5'/%3E%3Cpath d='M10.5 10.5L13.5 13.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px;
  outline: none;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.estry-currency-picker__search input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.estry-currency-picker__search input:focus {
  border-color: #94a3b8;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15);
}

.estry-currency-picker__search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.estry-currency-picker__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.estry-currency-picker__option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  color: #0f172a;
}

.estry-currency-picker__option:hover,
.estry-currency-picker__option.is-active {
  background: #f1f5f9;
}

.estry-currency-picker__option.is-selected {
  background: #0f172a;
  color: #fff;
}

.estry-currency-picker__option-code {
  font-weight: 700;
  font-size: 14px;
}

.estry-currency-picker__option-name {
  font-size: 12px;
  opacity: 0.7;
  text-align: right;
}

.estry-currency-picker__empty {
  padding: 16px 12px;
  font-size: 13px;
  color: var(--estry-muted);
  text-align: center;
}

.estry-convert-row--from .estry-currency-picker__panel {
  color: #0f172a;
}

.estry-flag {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  background: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.estry-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.estry-flag__code {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  line-height: 1;
}

.estry-convert-meta strong {
  display: block;
  font-size: 16px;
  line-height: 20px;
}

.estry-convert-meta span {
  font-size: 12px;
  line-height: 16px;
  opacity: 0.75;
}

.estry-convert-row > input[type="number"],
.estry-convert-row .estry-result {
  border: 0;
  background: transparent;
  text-align: right;
  font-size: 24px;
  font-weight: 700;
  font-family: inherit;
  width: 120px;
  color: inherit;
  outline: none;
}

.estry-convert-row > input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.estry-convert-row > input[type="number"]::-webkit-outer-spin-button,
.estry-convert-row > input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.estry-convert-row select {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.estry-rate-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 15px;
  border: 1px solid var(--estry-border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--estry-muted);
}

.estry-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.estry-chip--up {
  background: var(--estry-green-bg);
  border: 1px solid var(--estry-green-border);
  color: var(--estry-green);
}

.estry-chip--down {
  background: var(--estry-red-bg);
  border: 1px solid var(--estry-red-border);
  color: var(--estry-red);
}

/* Features */
.estry-section {
  padding: 96px 0;
}

.estry-section--muted {
  background: var(--estry-bg);
}

.estry-section__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.estry-section__intro h2 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
}

.estry-section__intro p {
  margin: 0;
  color: var(--estry-muted);
  font-size: 16px;
  line-height: 26px;
}

.estry-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.estry-feature {
  background: #fff;
  border: 1px solid var(--estry-border);
  border-radius: var(--estry-radius-lg);
  box-shadow: var(--estry-shadow);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.estry-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.estry-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--estry-ink);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.estry-feature__icon img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}

.estry-feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.estry-feature p {
  margin: 0;
  color: var(--estry-muted);
  font-size: 14px;
  line-height: 22px;
}

/* Rates */
.estry-rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.estry-rate-card {
  background: #fff;
  border: 1px solid var(--estry-border);
  border-radius: var(--estry-radius-lg);
  padding: 24px;
  box-shadow: var(--estry-shadow);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.estry-rate-card:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.estry-rate-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.estry-rate-card__pair {
  display: flex;
  align-items: center;
  gap: 12px;
}

.estry-rate-card__pair strong {
  display: block;
  font-size: 16px;
}

.estry-rate-card__pair span {
  font-size: 12px;
  color: var(--estry-muted);
}

.estry-rate-card__value {
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.estry-rate-card__value small {
  font-size: 13px;
  font-weight: 600;
  color: var(--estry-muted);
}

.estry-rate-card__value em {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--estry-muted);
}

.estry-rates-all {
  margin-bottom: 32px;
}

.estry-rates-table-wrap {
  background: #fff;
  border: 1px solid var(--estry-border);
  border-radius: var(--estry-radius-lg);
  box-shadow: var(--estry-shadow);
  overflow-x: auto;
}

.estry-rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.estry-rates-table th,
.estry-rates-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--estry-border);
  vertical-align: middle;
}

.estry-rates-table th {
  color: var(--estry-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.estry-rates-table tr:last-child td {
  border-bottom: 0;
}

.estry-rates-table tbody tr {
  cursor: pointer;
}

.estry-rates-table tbody tr:hover {
  background: #f8fafc;
}

.estry-center {
  text-align: center;
}

/* CTA */
.estry-cta {
  background: #000;
  color: #fff;
  padding: 96px 0;
}

.estry-cta__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.estry-cta h2 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 48px;
}

.estry-cta p {
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 26px;
  max-width: 560px;
}

.estry-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.estry-cta__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.estry-cta__stats strong {
  display: block;
  font-size: 24px;
  margin-bottom: 4px;
}

.estry-cta__stats span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

/* Footer */
.estry-footer {
  background: #111827;
  color: #fff;
  padding: 72px 0 28px;
}

.estry-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.estry-footer__brand p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 22px;
  max-width: 280px;
}

.estry-footer h4 {
  margin: 0 0 16px;
  font-size: 14px;
}

.estry-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.estry-footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.estry-footer a:hover {
  color: #fff;
}

.estry-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.estry-socials {
  display: flex;
  gap: 14px;
}

.estry-socials img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.estry-socials a:hover img {
  opacity: 1;
}

/* Auth / Dashboard shared */
.estry-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.06), transparent 40%),
    linear-gradient(180deg, #fafafa, #fff);
  padding: 40px 20px;
}

.estry-auth__card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--estry-border);
  border-radius: 20px;
  box-shadow: var(--estry-shadow);
  padding: 36px;
}

.estry-auth__card h1 {
  margin: 12px 0 8px;
  font-size: 28px;
}

.estry-auth__card > p {
  margin: 0 0 24px;
  color: var(--estry-muted);
  font-size: 14px;
}

.estry-field {
  margin-bottom: 16px;
}

.estry-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.estry-field input,
.estry-field select,
.estry-field textarea {
  width: 100%;
  border: 1px solid var(--estry-border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.estry-field input:focus,
.estry-field select:focus,
.estry-field textarea:focus {
  border-color: #94a3b8;
}

.estry-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.estry-alert--success {
  background: var(--estry-green-bg);
  border: 1px solid var(--estry-green-border);
  color: var(--estry-green);
}

.estry-alert--error {
  background: var(--estry-red-bg);
  border: 1px solid var(--estry-red-border);
  color: var(--estry-red);
}

.estry-alert--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.estry-dash {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #f8fafc;
}

.estry-sidebar {
  background: #0f172a;
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  overflow-y: auto;
}

.estry-sidebar__footer a:hover,
.estry-sidebar__footer a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.estry-sidebar .estry-logo {
  color: #fff;
}

.estry-sidebar .estry-logo__mark {
  background: #fff;
  color: #0f172a;
}

.estry-sidebar .estry-logo__img {
  background: #fff;
  border-radius: 8px;
  padding: 2px;
}

.estry-sidebar__nav {
  display: grid;
  gap: 6px;
}

.estry-sidebar__nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

.estry-sidebar__nav a:hover,
.estry-sidebar__nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.estry-sidebar__footer {
  margin-top: auto;
}

.estry-main {
  padding: 32px;
}

.estry-main__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.estry-main__top h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.estry-main__top p {
  margin: 0;
  color: var(--estry-muted);
  font-size: 14px;
}

.estry-grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.estry-stat-card,
.estry-panel {
  background: #fff;
  border: 1px solid var(--estry-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--estry-shadow);
}

.estry-stat-card span {
  display: block;
  color: var(--estry-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.estry-stat-card strong {
  font-size: 28px;
}

.estry-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.estry-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 20px;
  padding: 4px;
  border: 1px solid var(--estry-border);
  border-radius: 12px;
  background: #f1f5f9;
  overflow: visible;
}

.estry-tabs__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--estry-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  box-shadow: none;
}

.estry-tabs__btn:hover {
  color: #0f172a;
}

.estry-tabs__btn.is-active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.estry-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.estry-tabs__btn.is-active .estry-tabs__count {
  background: #0f172a;
  color: #fff;
}

.estry-tabs__panel[hidden] {
  display: none !important;
}

.estry-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.estry-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.estry-menu__toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--estry-border);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.estry-menu__toggle:hover,
.estry-menu.is-open .estry-menu__toggle {
  border-color: #94a3b8;
  background: #f8fafc;
}

.estry-menu__dropdown {
  position: fixed;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--estry-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 6px;
  z-index: 1000;
  display: grid;
  gap: 2px;
}

.estry-menu__dropdown[hidden] {
  display: none !important;
}

.estry-menu__item {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.estry-menu__item:hover {
  background: #f1f5f9;
}

.estry-menu__item--danger {
  color: #b91c1c;
}

.estry-menu__item--danger:hover {
  background: #fef2f2;
}

.estry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.estry-table th,
.estry-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--estry-border);
}

.estry-table th {
  color: var(--estry-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.estry-plan {
  background: #fff;
  border: 1px solid var(--estry-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--estry-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estry-plan.is-current {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px #0f172a;
}

.estry-plan__price {
  font-size: 36px;
  font-weight: 700;
}

.estry-plan__price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--estry-muted);
}

.estry-plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.estry-plan li {
  font-size: 14px;
  color: var(--estry-muted);
  padding-left: 18px;
  position: relative;
}

.estry-plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--estry-green);
  font-weight: 700;
}

.estry-code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.estry-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}

.estry-progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.estry-progress > span {
  display: block;
  height: 100%;
  background: #0f172a;
}

.estry-inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.estry-inline-form .estry-field {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.estry-muted {
  color: var(--estry-muted);
}

.estry-dash-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

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

@media (max-width: 1100px) {
  .estry-hero__grid,
  .estry-features,
  .estry-rates,
  .estry-plans,
  .estry-footer__grid,
  .estry-grid-stats {
    grid-template-columns: 1fr 1fr;
  }

  .estry-hero h1 {
    font-size: 48px;
    line-height: 52px;
  }
}

@media (max-width: 900px) {
  .estry-nav,
  .estry-header__actions .estry-link {
    display: none;
  }

  .estry-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .estry-mobile-nav.is-open {
    display: grid;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--estry-border);
    background: #fff;
  }

  .estry-hero,
  .estry-section,
  .estry-cta {
    padding: 64px 0;
  }

  .estry-hero__grid,
  .estry-features,
  .estry-rates,
  .estry-plans,
  .estry-footer__grid,
  .estry-cta__stats,
  .estry-grid-stats,
  .estry-dash {
    grid-template-columns: 1fr;
  }

  .estry-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .estry-stats {
    gap: 20px;
  }

  .estry-main {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .estry-hero h1 {
    font-size: 40px;
    line-height: 44px;
  }

  .estry-cta h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .estry-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes estry-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.estry-animate {
  animation: estry-fade-up 0.7s ease both;
}

.estry-animate-delay-1 {
  animation-delay: 0.12s;
}

.estry-animate-delay-2 {
  animation-delay: 0.24s;
}

/* ——— Admin panel (scoped; does not change subscriber dashboard) ——— */
.estry-admin {
  --admin-accent: #22c55e;
  --admin-accent-soft: rgba(34, 197, 94, 0.14);
  --admin-sidebar: #0b1220;
  --admin-sidebar-elevated: #111827;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(34, 197, 94, 0.08), transparent 55%),
    radial-gradient(900px 420px at 0% 0%, rgba(59, 130, 246, 0.06), transparent 50%),
    #f1f5f9;
}

.estry-admin .estry-sidebar,
.estry-admin__sidebar {
  background: linear-gradient(180deg, var(--admin-sidebar) 0%, #0f172a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 16px;
  gap: 22px;
  width: 272px;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
}

.estry-admin {
  grid-template-columns: 272px 1fr;
}

.estry-admin__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 8px;
}

.estry-admin__brand .estry-logo {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.estry-admin__close {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
}

.estry-admin__nav {
  gap: 4px;
}

.estry-admin__nav-label {
  margin: 14px 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.estry-admin__nav-label:first-child {
  margin-top: 0;
}

.estry-admin .estry-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.estry-admin__nav-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.estry-admin .estry-sidebar__nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.estry-admin .estry-sidebar__nav a:hover .estry-admin__nav-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.estry-admin .estry-sidebar__nav a.is-active {
  background: var(--admin-accent-soft);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.28);
}

.estry-admin .estry-sidebar__nav a.is-active .estry-admin__nav-icon {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
}

.estry-admin__footer {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.estry-admin__user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.estry-admin__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.estry-admin__user-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.estry-admin__user-meta strong {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.estry-admin__user-meta span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.estry-admin__signout {
  width: 100%;
}

.estry-admin__main {
  padding: 0 28px 36px;
  min-width: 0;
}

.estry-admin__topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 8px;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 15;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.96) 60%, rgba(241, 245, 249, 0));
  backdrop-filter: blur(8px);
}

.estry-admin__menu-btn {
  display: none;
  appearance: none;
  border: 1px solid var(--estry-border);
  background: #fff;
  color: var(--estry-ink);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  place-items: center;
  box-shadow: var(--estry-shadow);
}

.estry-admin__topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.estry-admin__badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.estry-admin__topbar-hint {
  font-size: 13px;
  color: var(--estry-muted);
}

.estry-admin__backdrop {
  display: none;
}

.estry-admin .estry-main__top {
  margin-bottom: 24px;
  padding: 4px 0 0;
}

.estry-admin .estry-main__top h1 {
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.estry-admin .estry-stat-card,
.estry-admin .estry-panel {
  border-radius: 18px;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.estry-admin .estry-stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.estry-admin .estry-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--stat-accent, #0f172a);
  border-radius: 18px 0 0 18px;
}

.estry-admin .estry-stat-card--green {
  --stat-accent: #16a34a;
}

.estry-admin .estry-stat-card--blue {
  --stat-accent: #2563eb;
}

.estry-admin .estry-stat-card--amber {
  --stat-accent: #d97706;
}

.estry-admin .estry-stat-card--slate {
  --stat-accent: #475569;
}

.estry-admin .estry-stat-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.estry-admin .estry-stat-card__head span {
  margin: 0;
  font-weight: 600;
}

.estry-admin .estry-stat-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: var(--stat-accent, #0f172a);
  flex-shrink: 0;
}

.estry-admin .estry-stat-card strong {
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.estry-admin .estry-health {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.04);
}

.estry-admin .estry-health--ok {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 55%);
  border-color: #bbf7d0;
}

.estry-admin .estry-health--bad {
  background: linear-gradient(135deg, #fef2f2 0%, #fff 55%);
  border-color: #fecaca;
}

.estry-admin .estry-health--warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fff 55%);
  border-color: #fde68a;
}

.estry-admin .estry-health__title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 15px;
}

.estry-admin .estry-health__body {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

.estry-admin .estry-health__meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--estry-muted);
}

.estry-admin .estry-action-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 22px;
}

.estry-admin .estry-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 16px 32px rgba(15, 23, 42, 0.06);
}

.estry-admin .estry-action-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #0f172a;
}

.estry-admin .estry-action-card h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.estry-admin .estry-action-card p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.estry-admin .estry-action-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.estry-admin .estry-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.estry-admin .estry-status--ok {
  background: var(--estry-green-bg);
  color: #166534;
  border: 1px solid var(--estry-green-border);
}

.estry-admin .estry-status--warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.estry-admin .estry-status--danger {
  background: var(--estry-red-bg);
  color: #991b1b;
  border: 1px solid var(--estry-red-border);
}

.estry-admin .estry-status--muted {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.estry-admin .estry-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.estry-admin .estry-table th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 12px;
}

.estry-admin .estry-table td {
  padding: 14px 12px;
  vertical-align: middle;
}

.estry-admin .estry-table tbody tr:hover > td {
  background: #fafbfc;
}

.estry-admin .estry-table-wrap {
  border: 1px solid var(--estry-border);
  border-radius: 14px;
  overflow: hidden;
}

.estry-admin .estry-table-wrap .estry-table {
  margin: 0;
}

.estry-admin .estry-table-wrap .estry-table th:first-child,
.estry-admin .estry-table-wrap .estry-table td:first-child {
  padding-left: 16px;
}

.estry-admin .estry-table-wrap .estry-table th:last-child,
.estry-admin .estry-table-wrap .estry-table td:last-child {
  padding-right: 16px;
}

.estry-admin .estry-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.estry-admin .estry-user-cell__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.estry-admin .estry-user-cell__name {
  font-weight: 650;
}

.estry-admin .estry-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.estry-admin .estry-panel {
  padding: 22px;
}

.estry-admin .estry-settings-grid {
  display: grid;
  gap: 20px;
}

.estry-admin .estry-settings-card__head {
  margin-bottom: 20px;
}

.estry-admin .estry-settings-card__head h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.estry-admin .estry-settings-card__head p {
  margin: 0;
  font-size: 13px;
}

.estry-admin .estry-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.estry-admin .estry-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--estry-border);
  background: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
}

.estry-admin .estry-radio-pill:has(input:checked) {
  border-color: #0f172a;
  background: #fff;
  box-shadow: 0 0 0 1px #0f172a;
}

.estry-admin .estry-form-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.estry-admin .estry-grid-stats--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
  .estry-admin .estry-grid-stats--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .estry-admin .estry-grid-stats--3 {
    grid-template-columns: 1fr;
  }
}

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

  .estry-admin__menu-btn {
    display: inline-grid;
  }

  .estry-admin__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 40;
    backdrop-filter: blur(2px);
  }

  .estry-admin__backdrop[hidden] {
    display: none !important;
  }

  .estry-admin .estry-sidebar,
  .estry-admin__sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(300px, 88vw);
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.25);
  }

  .estry-admin.is-nav-open .estry-admin__sidebar {
    transform: translateX(0);
  }

  .estry-admin__close {
    display: inline-grid;
  }

  .estry-admin__main {
    padding: 0 16px 28px;
  }

  .estry-admin__topbar {
    padding-top: 14px;
  }
}
