.ttfar-wrap {
  max-width: 1280px;
}

.ttfar-wrap,
.ttfar-wrap * {
  box-sizing: border-box;
}

.ttfar-wrap {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ttfar-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 18px 0 12px;
}

.ttfar-page-head h1 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
}

.ttfar-muted {
  color: #64748b;
  font-size: 15px;
}

.ttfar-topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}

.ttfar-topnav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  transition: all .18s ease;
}

.ttfar-topnav__link:hover,
.ttfar-topnav__link.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.ttfar-card {
  background: #fff;
  border: 1px solid #e7edf5;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
}

.ttfar-card h2,
.ttfar-card h3 {
  margin-top: 0;
}

.ttfar-card--full {
  grid-column: 1 / -1;
}

.ttfar-divider {
  height: 1px;
  background: #edf2f7;
  margin: 18px 0;
}

.ttfar-section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.ttfar-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.ttfar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  font-weight: 600;
  font-size: 13px;
}

.ttfar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ttfar-btn-dark,
.ttfar-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none !important;
  border: 2px solid #000;
  font-weight: 700;
  transition: all .18s ease-in-out;
}

.ttfar-btn-dark {
  background: #000;
  color: #fff !important;
}

.ttfar-btn-dark:hover {
  background: #fff;
  color: #000 !important;
}

.ttfar-btn-ghost {
  background: #fff;
  color: #000 !important;
}

.ttfar-btn-ghost:hover {
  background: #000;
  color: #fff !important;
}

.ttfar-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #eee;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.ttfar-video-placeholder {
  min-height: 360px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 26px;
}

.ttfar-video-placeholder__icon {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ttfar-video-placeholder__title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.ttfar-video-placeholder__text {
  max-width: 420px;
  color: #64748b;
  font-size: 15px;
}

.ttfar-hero-card {
  background: #fff;
  border: 1px solid #e7edf5;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .05);
}

.ttfar-home-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 22px;
  align-items: start;
}

.ttfar-home-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.ttfar-home-steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  color: #1e293b;
  font-size: 15px;
}

.ttfar-home-steps li {
  margin: 10px 0;
}

.ttfar-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ttfar-status-card {
  padding: 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e6edf6;
}

.ttfar-status-card__label {
  display: block;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}

.ttfar-status-card__value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.ttfar-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.ttfar-plan {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.ttfar-plan .ttfar-plan-head {
  text-align: center;
  padding-top: 6px;
}

.ttfar-plan .ttfar-plan-name {
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 14px;
  color: #111827;
}

.ttfar-plan .ttfar-plan-sub {
  font-size: 14px;
  color: #6b7280;
  margin-top: 8px;
  min-height: 46px;
  line-height: 1.55;
}

.ttfar-plan .ttfar-price {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  margin: 16px 0 6px;
  color: #1f2937;
}

.ttfar-plan .ttfar-price small {
  font-size: 16px;
  font-weight: 700;
  color: #6b7280;
}

.ttfar-plan ul {
  margin: 0;
  padding-left: 18px;
  margin-top: 10px;
  color: #374151;
  font-size: 14px;
  line-height: 1.8;
  flex: 1;
}

.ttfar-btn-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.ttfar-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
}

.ttfar-pill--popular {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.ttfar-plan .button,
.ttfar-btn-row .button {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  min-width: 170px;
  text-align: center;
  transition: all .18s ease-in-out;
}

.ttfar-plan .button:hover,
.ttfar-btn-row .button:hover {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

.ttfar-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}

.ttfar-support-card p {
  font-size: 16px;
  line-height: 1.8;
}

.ttfar-form input[type="text"],
.ttfar-form input[type="email"],
.ttfar-form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d5dde7;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: none;
}

.ttfar-form textarea {
  min-height: 170px;
  resize: vertical;
}

.ttfar-hidden-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ttfar-panel-card {
  padding: 24px;
}

.ttfar-callout {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.6;
}

.ttfar-callout--info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.ttfar-callout--warn {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.ttfar-admin-iframe {
  width: 100%;
  height: 82vh;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #fff;
}

.ttfar-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ttfar-inline-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.ttfar-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 16px;
  align-items: end;
}

.ttfar-color-grid div label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.ttfar-tryon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #000;
  color: #fff !important;
  text-decoration: none !important;
  border: 2px solid #000;
  font-weight: 700;
  transition: all .18s ease;
}

/* Product Sync */
.ttfar-sync-head {
  margin-bottom: 20px;
}

.ttfar-sync-head h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.ttfar-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.ttfar-highlight-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e6edf6;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.ttfar-highlight-card__number {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
}

.ttfar-highlight-card__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.ttfar-sync-toolbar,
.ttfar-sync-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ttfar-sync-toolbar {
  margin-bottom: 20px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #e6edf6;
  border-radius: 18px;
}

.ttfar-sync-toolbar input[type="search"],
.ttfar-sync-toolbar select,
.ttfar-sync-card input[type="text"],
.ttfar-sync-card input[type="url"] {
  border: 1px solid #d7dee8;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 14px;
  box-shadow: none;
  outline: none;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
}

.ttfar-sync-toolbar input[type="search"] {
  min-width: 300px;
  flex: 1 1 320px;
}

.ttfar-sync-toolbar select {
  min-width: 220px;
}

.ttfar-sync-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ttfar-sync-card {
  background: #ffffff;
  border: 1px solid #e7edf5;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.ttfar-sync-card__top {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  align-items: start;
}

.ttfar-sync-thumb {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f7fb;
  border: 1px solid #e7edf5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttfar-sync-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ttfar-sync-thumb__placeholder {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  padding: 8px;
}

.ttfar-sync-meta h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
}

.ttfar-sync-meta h3 a {
  text-decoration: none;
  color: #0f172a;
}

.ttfar-sync-meta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
}

.ttfar-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ttfar-status-ready {
  background: #dcfce7;
  color: #166534;
}

.ttfar-status-disabled {
  background: #e5e7eb;
  color: #374151;
}

.ttfar-status-missing {
  background: #fef3c7;
  color: #92400e;
}

.ttfar-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ttfar-toggle-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.ttfar-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

.ttfar-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ttfar-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  transition: .3s;
  border-radius: 999px;
}

.ttfar-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.16);
}

.ttfar-switch input:checked + .ttfar-slider {
  background-color: #0f172a;
}

.ttfar-switch input:checked + .ttfar-slider:before {
  transform: translateX(24px);
}

.ttfar-sync-card__body {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.ttfar-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.ttfar-empty-state {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 32px 20px;
  text-align: center;
  color: #475569;
  font-size: 15px;
}

@media (max-width: 1200px) {
  .ttfar-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ttfar-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ttfar-home-grid,
  .ttfar-row,
  .ttfar-settings-grid,
  .ttfar-sync-grid {
    grid-template-columns: 1fr;
  }

  .ttfar-status-grid {
    grid-template-columns: 1fr;
  }

  .ttfar-video-placeholder {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .ttfar-page-head h1,
  .ttfar-home-title,
  .ttfar-sync-head h2 {
    font-size: 26px;
  }

  .ttfar-highlight-grid,
  .ttfar-grid-4 {
    grid-template-columns: 1fr;
  }

  .ttfar-sync-toolbar,
  .ttfar-sync-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ttfar-sync-card__top {
    grid-template-columns: 68px 1fr;
  }

  .ttfar-toggle-wrap {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }

  .ttfar-color-grid {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}