html.ats-ai-rim-modal-open {
  overflow: hidden;
}

:root {
  --rim-primary: #d52828;
  --rim-primary-dark: #941313;
  --rim-primary-light: #ff8b81;
  --rim-accent: #f7b44c;
  --rim-bg: radial-gradient(circle at top, #fdfdfd, #f4f6fb 70%);
  --rim-surface: #ffffff;
  --rim-surface-alt: #f9fafc;
  --rim-panel: #ffffff;
  --rim-panel-alt: #fff5f3;
  --rim-border: #e3e8ef;
  --rim-border-strong: #d52828;
  --rim-divider: #eff2f6;
  --rim-text: #111827;
  --rim-text-muted: #4b5563;
  --rim-text-soft: #6b7280;
  --rim-highlight: rgba(213, 40, 40, 0.08);
  --rim-glow: rgba(213, 40, 40, 0.25);
  --rim-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
  --rim-radius: 12px;
  --rim-pill: 999px;
  --rim-bleed: linear-gradient(120deg, #ffe7e1, #fffaf5);
}

fieldset.ats-ai-rim-wear-run-btn-wrap {
  margin: 2em 0 2.5em;
  padding: 28px 32px 30px;
  border: 1px solid var(--rim-border);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f5f7fb);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
}

fieldset.ats-ai- -wear-run-btn-wrap legend {
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--rim-text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.ats-ai-rim-wear-info-text {
  display: block;
  text-align: center;
  color: var(--rim-text-soft);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}

button.ats-ai-rim-wear-run-btn {
  margin: 12px 0;
  width: auto;
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, #ffb4b0, #fb6b6b, #e93a3a);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 10px 20px;
  min-height: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 15px;
  line-height: 1.2;
  /* box-shadow: 0 8px 24px rgba(113, 40, 224, 0.4); */
}
button.ats-ai-rim-wear-run-btn {
  background: #007bff 0% 0% no-repeat padding-box;
  border: 0.5px solid #007bff;
  border-radius: 7px;
  padding: 8px 15px;
  font: normal normal bold 14px / 17px Lato;
}

.ats-ai-rim-wear-run-btn__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ats-ai-rim-wear-run-btn__icon svg {
  width: 1.25em;
  height: auto;
}
.ats-ai-rim-wear-run-btn__icon svg .st0 {
  fill: #fff;
}

button.ats-ai-rim-wear-run-btn:hover {
  /* transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(236, 72, 72, 0.35);
   */
  background: #007bff 0% 0% no-repeat padding-box;
  color: #fff;
  border: 0.5px solid #007bff;
  border-radius: 7px;
  padding: 8px 15px;
  font: normal normal bold 14px / 17px Lato;
}

button.ats-ai-rim-wear-run-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ats-ai-rim-section-card {
  background: var(--rim-panel);
  border: 1px solid var(--rim-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 26px 45px rgba(15, 23, 42, 0.08);
  margin-bottom: 9px;
  position: relative;
  overflow: hidden;
}

.ats-ai-rim-section-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at top right,
    rgba(255, 233, 228, 0.7),
    transparent 55%
  );
  opacity: 0.5;
}

.ats-ai-rim-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ats-ai-rim-section-heading span {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd8d3, var(--rim-primary));
  display: inline-block;
}

.ats-ai-rim-section-heading h4 {
  font-size: 15px;
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rim-text-muted);
}

/* Old upload-card base is now handled by .ats-ai-rim-dropzone */

.ats-ai-rim-wheel-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ats-ai-rim-wheel-card {
  flex: 1 1 calc(50% - 12px);
  min-width: 140px;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--rim-border);
  background: linear-gradient(135deg, #ffffff, #fff5f4);
  color: var(--rim-text);
  text-align: left;
  display: flex;
  gap: 14px;
  position: relative;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.ats-ai-rim-wheel-card:hover {
  border-color: rgba(204, 25, 35, 0.5);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.ats-ai-rim-wheel-card.is-active {
  border-color: var(--rim-primary);
  box-shadow: 0 0 0 2px rgba(204, 25, 35, 0.25);
}

.ats-ai-rim-wheel-thumb {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.ats-ai-rim-wheel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ats-ai-rim-wheel-meta {
  flex: 1;
}

.ats-ai-rim-wheel-meta .title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--rim-text);
}

.ats-ai-rim-wheel-meta .desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--rim-text-soft);
}

.ats-ai-rim-wheel-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--rim-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--rim-text-soft);
  background: #fff;
}

.ats-ai-rim-wheel-card.is-active .ats-ai-rim-wheel-check {
  background: linear-gradient(
    135deg,
    var(--rim-primary-light),
    var(--rim-primary)
  );
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(204, 25, 35, 0.35);
}

#ats-ai-rim-wear-result {
  display: none;
  margin-top: 1em;
  font-weight: bold;
}

.loading #ats-ai-rim-wear-result {
  display: block;
}

/* ══════════════════════════════════════════════
   MODAL SHELL
   ══════════════════════════════════════════════ */
.ats-ai-rim-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  font-family: "Inter", sans-serif;
}

.ats-ai-rim-modal-shell.is-visible {
  opacity: 1;
  visibility: visible;
}

.ats-ai-rim-modal-window {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at center, #ffffff 0%, #f4f4f4 100%);
  color: #0f172a;
  overflow: hidden;
}

/* ══════════════════════════════════════════════
   SKELETON HEADER
   ══════════════════════════════════════════════ */
.ats-ai-rim-skeleton-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ats-border);
  background: var(--ats-bg);
}

.ats-ai-rim-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 25%;
}

.ats-ai-rim-header-logo {
  width: auto;
  height: 40px;
  max-width: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ats-ai-rim-header-brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ats-ai-rim-header-brand .light {
  font-weight: 300;
}

/* ── Step Nav (center) ── */
.ats-ai-rim-step-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  width: 50%;
}

.ats-ai-rim-step-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  transition: opacity 0.25s ease;
}

.ats-ai-rim-step-nav-item:not(.is-active):not(.is-done) {
  opacity: 0.3;
}

.ats-ai-rim-step-nav-item .step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
  text-align: center;
}

.ats-ai-rim-step-nav-item.is-active .step-label {
  color: #0b0b0b;
}

.ats-ai-rim-step-nav-item .step-bar {
  width: 32px;
  height: 2px;
  margin-top: 6px;
  background: transparent;
  border-radius: 1px;
  transition: background 0.25s ease;
  display: none;
}

.ats-ai-rim-step-nav-item.is-active .step-bar {
  background: #0b0b0b;
}

.ats-ai-rim-step-nav-item.is-done .step-label {
  color: #94a3b8;
}

.ats-ai-rim-step-nav-item.is-done .step-bar {
  background: #94a3b8;
}

/* ── Close Button (right) ── */
.ats-ai-rim-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 25%;
}

button.ats-ai-rim-close-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}

button.ats-ai-rim-close-btn:hover {
  background: #f8fafc;
}

button.ats-ai-rim-close-btn .close-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

button.ats-ai-rim-close-btn:hover .close-label {
  color: #475569;
}

button.ats-ai-rim-close-btn .material-symbols-outlined {
  font-size: 20px;
  color: #94a3b8;
}

button.ats-ai-rim-close-btn:hover .material-symbols-outlined {
  color: #0f172a;
}

/* ══════════════════════════════════════════════
   STEP CONTENT AREA
   ══════════════════════════════════════════════ */
.ats-ai-rim-step-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ats-ai-rim-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 0;
}

.ats-ai-rim-step.is-hidden {
  display: none;
}

.ats-ai-rim-step-inner {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* Step 1: no scroll – scale content to fit */
#ats-ai-rim-step-1 {
  /* overflow: hidden; */
  transform: translateY(-4%);
}

.ats-ai-rim-step1-inner {
  max-width: 960px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  width: auto;
}

/* Step 3: fit within viewport */
#ats-ai-rim-step-3 {
  /* overflow: hidden; */
}

.ats-ai-rim-step3-inner {
  max-width: 1100px;
  max-height: 100%;
}

/* ══════════════════════════════════════════════
   STEP 1: DROPZONE
   ══════════════════════════════════════════════ */
.ats-ai-rim-dropzone {
  width: 100%;
  min-height: 0;
  /* overflow: hidden; */
  border: 4px dashed #d1d5db;
  border-radius: 3rem;
  background: #f3f3f3;
  transition: background 0.3s ease;
  cursor: pointer;
}

.ats-ai-rim-dropzone:hover {
  background: #f4f4f4;
}

.ats-ai-rim-dz-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(16px, 4vh, 48px) 4rem;
}

/* Icon */
.ats-ai-rim-dz-icon-wrap {
  position: relative;
  margin-bottom: clamp(12px, 3vh, 40px);
}

.ats-ai-rim-dz-icon-box {
  width: clamp(80px, 16vh, 176px);
  height: clamp(80px, 16vh, 176px);
  background: #fff;
  border-radius: clamp(20px, 4vh, 45px);
  box-shadow: 0 25px 50px rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.ats-ai-rim-dropzone:hover .ats-ai-rim-dz-icon-box {
  transform: scale(1.05);
}

.ats-ai-rim-dz-icon-box .material-symbols-outlined {
  font-size: clamp(40px, 8vh, 84px);
  font-weight: 300;
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.ats-ai-rim-dropzone:hover .ats-ai-rim-dz-icon-box .material-symbols-outlined {
  color: #c8102e;
}

.ats-ai-rim-dz-icon-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: clamp(32px, 5vh, 56px);
  height: clamp(32px, 5vh, 56px);
  border-radius: clamp(10px, 1.5vh, 16px);
  background: #c8102e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
}

.ats-ai-rim-dz-icon-badge .material-symbols-outlined {
  font-size: clamp(16px, 2.5vh, 28px);
  color: #fff;
}

/* Copy */
.ats-ai-rim-dz-copy {
  max-width: 640px;
  margin-bottom: clamp(8px, 2vh, 24px);
}

.ats-ai-rim-dz-title {
  font-size: clamp(22px, 3vh, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
  margin: 0 0 clamp(8px, 2vh, 24px);
}

.ats-ai-rim-dz-desc {
  font-size: clamp(13px, 1.2vh, 19px);
  font-weight: 300;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Tips */
.ats-ai-rim-dz-tips {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(12px, 3vh, 48px) 0;
}

.ats-ai-rim-dz-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.2vh, 16px);
}

.ats-ai-rim-dz-tip-icon {
  width: clamp(36px, 5vh, 56px);
  height: clamp(36px, 5vh, 56px);
  border-radius: clamp(10px, 1.5vh, 16px);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.ats-ai-rim-dz-tip-icon .material-symbols-outlined {
  font-size: clamp(18px, 2.5vh, 28px);
  color: #94a3b8;
}

.ats-ai-rim-dz-tip-label {
  font-size: clamp(9px, 1.2vh, 11px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
}

/* Select Files Button */
.ats-ai-rim-dropzone button.ats-ai-rim-dz-select-btn {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: clamp(12px, 2vh, 20px) clamp(28px, 4vw, 48px);
  border-radius: 999px;
  font-size: clamp(12px, 1.5vh, 15px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  margin-top: clamp(4px, 1vh, 16px);
}

.ats-ai-rim-dz-select-btn:hover {
  background: #c8102e;
  transform: translateY(-2px);
}

/* ── Step 1: Actions (Generate button after file selected) ── */
.ats-ai-rim-step1-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

button.ats-ai-rim-generate-btn {
  background: linear-gradient(120deg, #c8102e, #ff6b6b);
  background-size: 250% 250%;
  color: #fff;
  border: none;
  padding: clamp(12px, 2vh, 20px) clamp(28px, 4vw, 48px);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  /* box-shadow: 0 20px 40px rgba(200, 16, 46, 0.25); */
}

.ats-ai-rim-generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  color: #fff;
  /* box-shadow: 0 24px 48px rgba(200, 16, 46, 0.35); */
}

.ats-ai-rim-generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ats-ai-rim-generate-btn.is-loading {
  opacity: 0.7;
}

button.ats-ai-rim-replace-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

button.ats-ai-rim-replace-photo-btn .material-symbols-outlined {
  font-size: 16px;
}

button.ats-ai-rim-replace-photo-btn:hover {
  color: #334155;
  background: rgba(0, 0, 0, 0.04);
}

/* ── Upload Preview (file selected state) ── */
.ats-ai-rim-dropzone.has-image {
  border-style: solid;
  border-color: #e2e8f0;
  background: #fff;
  padding: 12px;
  cursor: pointer;
}

.ats-ai-rim-upload-preview {
  position: relative;
  border-radius: 2.5rem;
  /* overflow: hidden; */
}

.ats-ai-rim-upload-preview img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  border-radius: 2.5rem;
}

.ats-ai-rim-upload-preview .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 2.5rem;
}

.ats-ai-rim-upload-preview .overlay .material-symbols-outlined {
  font-size: 20px;
}

.ats-ai-rim-dropzone.is-hovering .ats-ai-rim-upload-preview .overlay {
  opacity: 1;
}

/* ══════════════════════════════════════════════
   STEP 2: PROCESSING
   ══════════════════════════════════════════════ */
#ats-ai-rim-step-2 {
  /* overflow: hidden; */
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.ats-ai-rim-step2-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 720px;
  max-height: 100%;
  margin: 0 auto;
}

/* ── Heading ── */
.ats-ai-rim-loader-heading {
  margin-bottom: clamp(12px, 2.5vh, 40px);
  flex-shrink: 0;
}

.ats-ai-rim-loader-title {
  font-size: clamp(24px, 4vh, 42px);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(4px, 0.8vh, 8px);
  line-height: 1.15;
}

.ats-ai-rim-loader-subtitle {
  font-size: clamp(12px, 1.75vh, 15px);
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.025em;
  margin: 0;
}

/* ── Image Preview ── */
.ats-ai-rim-loader-preview {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 40vh;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #f3f4f6;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  margin-bottom: clamp(16px, 3vh, 48px);
  flex-shrink: 1;
  min-height: 0;
}

.ats-ai-rim-loader-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.4;
}

.ats-ai-rim-loader-scan-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ats-ai-rim-scan-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c8102e, transparent);
  box-shadow: 0 0 20px 4px rgba(200, 16, 46, 0.4);
  z-index: 10;
  animation: atsRimScan 2.5s ease-in-out infinite alternate;
}

.ats-ai-rim-scan-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(200, 16, 46, 0.05),
    transparent,
    transparent
  );
  opacity: 0.2;
}

/* Pulse dots on wheel areas */
.ats-ai-rim-pulse-dot {
  display: none !important;
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #c8102e;
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.ats-ai-rim-pulse-dot-left {
  top: 65%;
  left: 24%;
}

.ats-ai-rim-pulse-dot-right {
  top: 65%;
  left: 72%;
}

/* ── Circular Progress ── */
.ats-ai-rim-loader-progress-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.ats-ai-rim-circular-progress {
  position: relative;
  width: clamp(72px, 12vh, 128px);
  height: clamp(72px, 12vh, 128px);
  margin-bottom: clamp(8px, 1.5vh, 24px);
}

.ats-ai-rim-circular-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid #f1f5f9;
}

.ats-ai-rim-circular-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid #c8102e;
  border-top-color: transparent;
  animation: atsRimSpinSlow 1.2s linear infinite;
}

.ats-ai-rim-circular-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ats-ai-rim-loader-percent {
  font-size: clamp(18px, 3vh, 30px);
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

/* ── Status Row ── */
.ats-ai-rim-loader-status-row {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
}

.ats-ai-rim-loader-status {
  color: #c8102e;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 50px;
}

/* ── Animations ── */
@keyframes atsRimScan {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

@keyframes atsRimSpinSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ats-ai-rim-status-fade {
  animation: atsRimStatusFade 3s ease-in-out infinite;
}

@keyframes atsRimStatusFade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ══════════════════════════════════════════════
   STEP 3: RESULT
   ══════════════════════════════════════════════ */
.ats-ai-rim-result-layout {
  display: flex;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
  max-height: calc(100vh - 90px - 48px);
  min-height: 0;
}

.ats-ai-rim-result-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ats-ai-rim-result-left > .ats-ai-rim-secondary-actions {
  justify-content: center;
}

.ats-ai-rim-result-preview {
  min-width: 0;
  max-height: 100%;
  display: flex;
  justify-content: center;
}

.ats-ai-rim-result-right {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 100%;
  overflow-y: auto;
}

.ats-ai-rim-result-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ats-ai-rim-result-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Comparison Slider ── */
.ats-ai-rim-comparison {
  position: relative;
  width: fit-content;
  max-width: 100%;
  max-height: calc(100vh - 90px - 48px);
  overflow: hidden;
  border-radius: 24px;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.ats-ai-rim-comparison-after {
  display: block;
  line-height: 0;
}

.ats-ai-rim-comparison-after img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 190px - 48px);
}

.ats-ai-rim-comparison-before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.ats-ai-rim-comparison-before img {
  display: block;
  height: auto;
  max-width: none;
}

/* Badges */
.ats-ai-rim-comparison-badge {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 5;
  pointer-events: none;
  line-height: 1;
}

.ats-ai-rim-badge-before {
  left: 16px;
  background: #0f172a;
  color: #fff;
}

.ats-ai-rim-badge-after {
  right: 16px;
  background: #c8102e;
  color: #fff;
}

/* Handle */
.ats-ai-rim-comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.ats-ai-rim-handle-line {
  flex: 1;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.ats-ai-rim-handle-knob {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: col-resize;
}

.ats-ai-rim-handle-knob .material-symbols-outlined {
  font-size: 22px;
  color: #64748b;
  transform: rotate(90deg);
}

/* Mobile title (hidden on desktop) */
#ats-ai-rim-result-title-mobile {
  display: none;
}

/* ── Result Card ── */
.ats-ai-rim-result-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 18px 22px;
}

.ats-ai-rim-result-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 10px;
}

.ats-ai-rim-result-highlight {
  color: #c8102e;
}

.ats-ai-rim-result-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

/* ── Reset / Start Over ── */
#ats-ai-rim-step-3 .ats-ai-rim-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid #767676;
  background: #fff;
  color: #767676;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer !important;
  transition: all 0.2s ease;
  height: 44px;
}

#ats-ai-rim-step-3 .ats-ai-rim-reset:hover {
  border-color: #c8102e;
  color: #c8102e;
  background: #fff5f5;
}

#ats-ai-rim-step-3 .ats-ai-rim-reset .material-symbols-outlined {
  font-size: 18px;
}

/* ── Feedback card inside sidebar ── */
#ats-ai-rim-step-3 .ats-ai-rim-feedback-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 18px 22px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ats-ai-rim-skeleton-header {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
  }
  .ats-ai-rim-header-left {
    width: auto;
    flex: 1;
  }
  .ats-ai-rim-step-nav {
    order: 3;
    width: 100%;
    gap: 24px;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
  }
  .ats-ai-rim-header-right {
    width: auto;
  }
  .ats-ai-rim-result-layout {
    flex-direction: column;
  }
  .ats-ai-rim-result-left,
  .ats-ai-rim-result-right,
  .ats-ai-rim-result-bottom {
    display: contents;
  }
  .ats-ai-rim-result-left > .ats-ai-rim-result-preview {
    order: 1;
  }
  .ats-ai-rim-result-sidebar {
    order: 2;
    width: 100%;
  }
  .ats-ai-rim-result-left > .ats-ai-rim-secondary-actions {
    order: 3;
  }
  .ats-ai-rim-result-bottom > .ats-ai-rim-reset {
    order: 4;
  }
  .ats-ai-rim-result-bottom > .ats-ai-rim-feedback-card {
    order: 5;
  }
  .ats-ai-rim-result-bottom > .ats-ai-rim-duration {
    order: 6;
  }
  .ats-ai-rim-step {
    padding: 16px;
  }
  #ats-ai-rim-upload-card {
    max-width: 90%;
    margin: 0 auto;
  }

  .ats-ai-rim-dz-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(16px, 4vh, 48px) 1.5rem;
  }
  .ats-ai-rim-dz-copy {
    max-width: 640px;
    margin-bottom: clamp(8px, 2vh, 24px);
  }
  .ats-ai-rim-dz-title {
    font-size: clamp(22px, 3vh, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.1;
    margin: 0 0 clamp(8px, 2vh, 24px);
  }
  .ats-ai-rim-dz-desc {
    font-size: clamp(13px, 1.2vh, 19px);
    font-weight: 300;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
  }
  .ats-ai-rim-dz-icon-wrap {
    position: relative;
    margin-bottom: clamp(12px, 3vh, 40px);
  }
  .ats-ai-rim-dz-icon-box {
    width: clamp(60px, 9vh, 176px);
    height: clamp(60px, 9vh, 176px);
    background: #fff;
    border-radius: clamp(12px, 1vh, 45px);
    box-shadow: 0 25px 50px rgba(148, 163, 184, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
  }
  .ats-ai-rim-dz-icon-box .material-symbols-outlined {
    font-size: clamp(40px, 5vh, 84px);
    font-weight: 300;
    color: #cbd5e1;
    transition: color 0.3s ease;
  }
  .ats-ai-rim-dz-icon-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: clamp(22px, 3vh, 56px);
    height: clamp(22px, 3vh, 56px);
    border-radius: clamp(6px, 0.5vh, 16px);
    background: #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
  }
  .ats-ai-rim-dz-icon-badge .material-symbols-outlined {
    font-size: clamp(16px, 2.5vh, 28px);
    color: #fff;
  }
  .ats-ai-rim-dz-tips {
    display: flex;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 48px);
    padding: clamp(12px, 2vh, 48px) 0;
  }
  .ats-ai-rim-upload-preview img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    border-radius: 2.5rem;
  }
  .ats-ai-rim-result-layout {
    gap: 10px;
  }
  .ats-ai-rim-result-title {
    margin: 0 0 5px;
  }
  .ats-ai-rim-result-card {
    background: unset;
    border: 0;
    border-radius: 0;
    padding: 5px 10px 10px;
  }
  #ats-ai-rim-result-title-mobile {
    display: none;
    order: -1;
    text-align: left;
  }
  .ats-ai-rim-result-title--desktop {
    display: none !important;
  }
  #ats-ai-rim-step-2 {
    align-items: flex-start;
    padding-top: 10%;
  }

  /* ── Mobile Step 3: Description ── */
  .ats-ai-rim-result-desc {
    text-align: center;
    font-size: 10px !important;
    color: #9ca3af;
    line-height: 1.5;
    padding: 0 16px;
  }

  /* ── Mobile Step 3: CTA (details card) ── */
  .ats-ai-rim-details-card {
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
  .ats-ai-rim-action-buttons {
    flex-direction: column;
    gap: 0;
  }
  .ats-ai-rim-action-buttons button.ats-ai-rim-action-btn.is-primary {
    width: 100%;
    background: linear-gradient(120deg, #e34e4e, #ff6b6b) !important;
    background-size: 250% 250% !important;
    color: #fff !important;
    font-weight: 900 !important;
    padding: 20px 24px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 24px rgba(227, 78, 78, 0.25) !important;
    height: auto !important;
  }
  .ats-ai-rim-action-buttons button.ats-ai-rim-action-btn.is-primary:active {
    transform: scale(0.98);
  }

  /* ── Mobile Step 3: Download + Share row ── */
  .ats-ai-rim-secondary-actions {
    display: flex;
    gap: 8px;
  }
  .ats-ai-rim-secondary-actions .ats-ai-rim-download-link,
  .ats-ai-rim-secondary-actions button.ats-ai-rim-share-btn {
    flex: 1;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    font-weight: 700;
    padding: 12px 8px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
  }
  .ats-ai-rim-secondary-actions
    .ats-ai-rim-download-link
    .material-symbols-outlined,
  .ats-ai-rim-secondary-actions
    button.ats-ai-rim-share-btn
    .material-symbols-outlined {
    color: #e34e4e;
    font-size: 18px;
  }
  .ats-ai-rim-secondary-actions .ats-ai-rim-download-link:hover,
  .ats-ai-rim-secondary-actions button.ats-ai-rim-share-btn:hover {
    background: #f9fafb !important;
    color: #374151 !important;
  }

  /* ── Mobile Step 3: Reset button ── */
  #ats-ai-rim-step-3 .ats-ai-rim-reset {
    width: 94% !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #9ca3af !important;
    font-weight: 700;
    font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 12px !important;
    height: auto !important;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-reset:hover {
    background: #f9fafb !important;
  }

  /* ── Mobile Step 3: Feedback card ── */
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-card {
    background: #fff;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 3em;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-card .feedback-heading .prompt {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 12px;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-card .feedback-emojis {
    justify-content: space-around;
    margin-bottom: 12px;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-emoji {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    font-size: 1.2em !important;
    padding: 0 !important;
    box-shadow: none;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-emoji:nth-child(1) {
    background: #fff7ed;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-emoji:nth-child(2) {
    background: #fefce8;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-emoji:nth-child(3) {
    background: #eff6ff;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-emoji:nth-child(4) {
    background: #f0fdf4;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-emoji:nth-child(5) {
    background: #dcfce7;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-card .feedback-heading .hint {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    text-align: center;
  }
  #ats-ai-rim-step-3 .ats-ai-rim-feedback-card .feedback-status {
    font-size: 10px;
    text-align: center;
  }

  /* ── Mobile Step 3: Duration ── */
  .ats-ai-rim-duration {
    justify-content: center;
  }
  .ats-ai-rim-comparison img {
    max-height: calc(100vh - 90px - 48px);
  }
}

.ats-ai-rim-modal-toolbar {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--rim-border);
  background: #f8fafc;
}

.ats-ai-rim-wear-modal-button {
  border: 1px solid var(--rim-border);
  background: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--rim-text);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ats-ai-rim-wear-modal-button:hover {
  border-color: var(--rim-primary);
  background: rgba(252, 165, 165, 0.2);
  color: var(--rim-primary);
}

#ats-ai-rim-wear-progress-container {
  width: 100%;
  background: rgba(17, 24, 39, 0.06);
  border-radius: 999px;
  margin-top: 1.2em;
  height: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

#ats-ai-rim-wear-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--rim-primary-dark),
    var(--rim-primary)
  );
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.45);
  transition:
    width 0.3s ease,
    filter 0.3s ease;
}

#ats-ai-rim-wear-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
}

#ats-ai-rim-wear-progress-container[data-half="passed"]
  span#ats-ai-rim-wear-progress-text {
  color: #fff !important;
}

/* ── Download Link ── */
.ats-ai-rim-download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ats-ai-rim-download-link .material-symbols-outlined {
  font-size: 18px;
  color: #6b7280;
}

.ats-ai-rim-download-link:hover {
  background: #f9fafb;
  color: #374151;
}

.ats-ai-rim-secondary-actions {
  display: flex;
  gap: 8px;
}

button.ats-ai-rim-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

button.ats-ai-rim-share-btn .material-symbols-outlined {
  font-size: 18px;
  color: #6b7280;
}

button.ats-ai-rim-share-btn:hover {
  background: #f9fafb;
  color: #374151;
}

.ats-ai-rim-details-card {
  border-radius: 20px;
  /* padding: 20px 24px; */
  background: #ffffff;
  border: 1px solid var(--rim-border);
  /* box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08); */
  /* min-height: 120px; */
  transition: opacity 0.2s ease;
}

.ats-ai-rim-details-card.is-hidden {
  display: none;
}

.ats-ai-rim-details-card .details-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.ats-ai-rim-details-card .label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--rim-text-soft);
  margin: 0 0 6px;
}

.ats-ai-rim-details-card .value {
  font-size: 18px;
  color: var(--rim-text);
  margin: 0;
  letter-spacing: 0.02em;
}

.ats-ai-rim-feedback-card {
  width: 100%;
  /* margin-top: -6px !important; */
  padding: 12px;
  border-radius: 12px;
  /* border: 1px solid var(--rim-border); */
  /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95)); */
  /* box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08); */
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.ats-ai-rim-feedback-card.is-hidden {
  display: none;
}

.ats-ai-rim-feedback-card.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.ats-ai-rim-feedback-card .feedback-heading .prompt {
  font-size: 17px;
  font-weight: 600;
  color: var(--rim-text);
  /* margin: 0 0 6px; */
  margin: 0;
}

.ats-ai-rim-feedback-card .feedback-heading .hint {
  font-size: 14px;
  color: var(--rim-text-soft);
  margin: 0;
  display: none;
}

.ats-ai-rim-feedback-card .feedback-emojis {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.ats-ai-rim-feedback-emoji {
  /* flex: 1; */
  border: none;
  border-radius: 4px !important;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rim-border);
  font-size: 1.5em !important;
  /* padding: 14px 0; */
  /* padding: 0 !important; */
  min-height: unset;
  padding: 6px !important;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.ats-ai-rim-feedback-emoji:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
}

.ats-ai-rim-feedback-emoji.is-selected {
  background: rgba(236, 72, 72, 0.12);
  box-shadow: inset 0 0 0 1px rgba(236, 72, 72, 0.35);
}

.ats-ai-rim-feedback-emoji:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ats-ai-rim-feedback-card .feedback-status {
  font-size: 14px;
  margin: 0;
  color: var(--rim-text-soft);
}

.ats-ai-rim-feedback-card .feedback-status.is-success {
  color: #0f9d58;
}

.ats-ai-rim-feedback-card .feedback-status.is-error {
  color: #dc2626;
}

.ats-ai-rim-feedback-card .feedback-status.is-neutral {
  color: var(--rim-text-soft);
}

.ats-ai-rim-duration {
  display: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 400;
  padding: 0;
}

.ats-ai-rim-duration .material-symbols-outlined {
  font-size: 14px;
}

.ats-ai-rim-duration.is-hidden {
  display: none;
}

.ats-ai-rim-action-buttons {
  display: flex;
  align-items: center;
  gap: 40px;
}
.ats-ai-rim-action-buttons button {
  border-radius: 999px !important;
  height: 34px !important;
  width: 100%;
  padding: 14px 14px;
  border: none;
  font-size: 14px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(
    120deg,
    var(--rim-primary),
    var(--rim-primary-light)
  );
  background-size: 250% 250%;
  color: #fff !important;
  cursor: pointer;
  transition:
    background-position 0.4s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.ats-ai-rim-action-buttons button:hover {
  /* box-shadow: 0 20px 45px rgba(208, 1, 27, 0.35); */
}
.ats-ai-rim-action-buttons button a {
  color: #fff !important;
}
button.ats-ai-rim-action-btn.is-primary img {
  width: 22px;
  margin-right: 5px;
}
.is-hidden {
  display: none !important;
}

.ats-ai-rim-preview-toolbar {
  background: #f8fafc;
  border: 1px solid var(--rim-border);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

fieldset.inner-yeni {
  padding: 0;
  border: 0;
  margin: 11px 0 0;
}

fieldset.inner-yeni > legend,
fieldset.inner-yeni > span {
  display: none;
}

fieldset.inner-yeni .ats-ai-rim-wear-run-btn {
  width: 100%;
  display: flex;
  gap: 10px;
  line-height: 1;
  color: #fff;
  border-radius: 5px;
  align-items: center;
  align-content: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 15px;
  text-align: center;
  cursor: pointer;
  /* background: #2A7B9B;
    background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgb(174 159 35) 100%); */
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 10s ease infinite;
  height: 40px;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 960px) {
  .ats-ai-rim-action-buttons {
    flex-direction: column;
    gap: 16px;
  }
  .ats-ai-rim-comparison {
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  .ats-ai-rim-loader-title {
    font-size: 28px;
  }
  .ats-ai-rim-loader-preview {
    margin-bottom: 32px;
  }
  .ats-ai-rim-circular-progress {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
  }
  .ats-ai-rim-loader-percent {
    font-size: 22px;
  }
  .ats-ai-rim-comparison {
    border-radius: 12px;
  }
  .ats-ai-rim-result-title {
    font-size: 24px;
  }
  .ats-ai-rim-step-nav-item .step-label {
    font-size: 10px;
  }
}

#tool-usage-limit-warning {
  text-align: center;
  padding: 1em;
  background: #373737;
  border-radius: 999px;
  color: #fff;
  font-style: italic;
}

button#ats-ai-rim-feedback-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #767676;
  background: #f2f2f2;
  color: #767676;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer !important;
  transition: all 0.2s ease;
  height: 29px !important;
  line-height: 1;
  min-height: unset;
}
textarea#ats-ai-rim-feedback-note-input::placeholder {
  opacity: 0.3;
  line-height: 1.3;
  font-size: 12px;
}
textarea#ats-ai-rim-feedback-note-input {
  min-height: 100px !important;
  border-radius: 6px;
}
.feedback-note-char-count {
  font-size: 10px;
}
@media (max-width: 768px) {
  .ats-ai-rim-secondary-actions,
  .ats-ai-rim-details-card,
  .ats-ai-rim-reset {
    width: 94% !important;
    margin: 0 auto !important;
  }
}
