/* Amigo Pets plugin styles — scoped and safe */

/* Root container */
#amigo-pet-root { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* Modal shell */
.amigo-modal { background: rgba(0,0,0,0.25); position: fixed; top:0;right:0;bottom:0;left:0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 12px; overflow: hidden; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: amigo-fadeIn .3s ease-out; }
.amigo-steps { background: #fff; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 24px 20px; width: min(94vw, 680px); max-width: 100%; margin: 0 auto; position: relative; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; animation: amigo-slideUp .4s ease-out; }

/* Steps visibility (scoped) */
.amigo-steps .modal-step { display: none !important; }
.amigo-steps .modal-step.active { display: block !important; }

/* Headings & helper text (scoped) */
.amigo-steps h3 { font-size: 2em; margin-bottom: 24px; font-weight: 700; text-align: left; color: #333; line-height: 1.3; }
.amigo-steps h3:after { content: ""; display: block; width: 60px; height: 3px; background: #FFBA00; margin: 12px 0; border-radius: 2px; }
.amigo-steps p.amigo-helper { color: #888; font-size: 1.1em; margin-bottom: 18px; }

/* Form controls (scoped) */
.amigo-steps .field-label, .amigo-steps .name-label { font-weight: 600; margin-bottom: 8px; display: block; font-size: .95em; color: #2c3e50; text-transform: uppercase; letter-spacing: .5px; }
.amigo-steps input, .amigo-steps select { border-radius: 12px; border: 1px solid #d1d5db; padding: 12px 14px; font-size: 1em; margin-bottom: 18px; width: 100%; box-sizing: border-box; background: #fff; color:#111; transition: all .2s ease; }
.amigo-steps input:focus, .amigo-steps select:focus { outline: none; border-color: #FFBA00; background: #fff; box-shadow: 0 0 0 3px rgba(255,186,0,.1); }
.amigo-steps .input-error { border-color: #d93025 !important; box-shadow: 0 0 0 3px rgba(217,48,37,.08) !important; }
.amigo-steps .is-disabled{ opacity:.5; cursor:not-allowed; }
.amigo-steps .segmented.gender .segment.input-error,
.amigo-steps .chip-group .chip.input-error { box-shadow: 0 0 0 2px rgba(217,48,37,.35); border-radius:12px; }
.amigo-steps input::placeholder { color: #6c757d; font-style: italic; }

/* Actions (scoped) */
.amigo-steps .step-actions { display: flex; gap: 16px; justify-content: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid #f1f3f4; }
.amigo-steps .action-buttons { display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; }
.amigo-steps .action-buttons .skip-button { background: #F3F4F6; color: #111827; border-radius: 999px; padding: 10px 16px; border: 1px solid #e5e7eb; }
.amigo-steps .action-buttons .continue-button { background: #FFBA00; color: #1F2937; border-radius: 999px; padding: 10px 16px; border: none; }
.amigo-steps .skip-btn { background: transparent; border: none; color: #6c757d; font-size: .9em; cursor: pointer; padding: 8px 16px; text-decoration: underline; transition: color .3s ease; }
.amigo-steps .skip-btn:hover { color: #495057; }
.amigo-steps .skip-btn-small { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; color: #495057; font-size: .9em; font-weight: 500; cursor: pointer; padding: 12px 24px; transition: all .3s ease; }
.amigo-steps .skip-btn-small:hover { background: #e9ecef; border-color: #adb5bd; }

/* Media helpers (scoped) */
.amigo-steps .photo-preview { margin: 18px 0; text-align: center; }
.amigo-steps .photo-preview img { border-radius: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.08); width: 150px; height: 150px; object-fit: cover; }
.amigo-steps .photo-upload-area{ display:flex; justify-content:center; }
.amigo-steps .photo-circle { width: 120px; height: 120px; border-radius: 50%; background:#fff; margin: 6px auto 14px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border:2px dashed #e5e7eb; cursor: pointer; }
.amigo-steps .photo-circle:focus { outline: 2px solid #FFBA00; outline-offset: 2px; }
.amigo-steps .photo-circle:hover { border-color: #d1d5db; }
.amigo-steps .photo-circle-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* overlay input no longer used */
.upload-arrow-circle { display: none !important; }
.photo-circle .photo-icon{opacity:.6}
.amigo-steps .photo-upload-fab{position:absolute;right:8px;bottom:8px;width:32px;height:32px;border-radius:999px;background:#0f172a;color:#fff;border:0;display:flex;align-items:center;justify-content:center;line-height:1;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.25);z-index:2;}
/* Guard against any inherited alignment from resets */
.amigo-steps .photo-upload-fab{top:auto;left:auto;margin:0;}
.photo-upload-fab:hover{background:#111827}
/* Photo upload: show text hint instead of FAB */
.amigo-steps .photo-upload-fab{display:none!important}
.amigo-steps .photo-circle::after{content:"Завантажити фото";position:absolute;bottom:-22px;left:50%;transform:translateX(-50%);font-size:11px;color:#6b7280;white-space:nowrap;pointer-events:none;font-weight:500}
.confirm-area { margin: 24px 0; font-size: 1.1em; }
.amigo-helper { background: linear-gradient(135deg,#FFF8E7,#FFFBF0); padding: 20px 24px; border-radius: 12px; border: 1px solid #FFE5A3; margin: 20px 0 32px 0; font-size: .95em; line-height: 1.6; color: #5d4e37; text-align: center; }

/* Segmented radios in modal only */
.amigo-steps .amigo-radio label { transition: all .3s ease; position: relative; overflow: hidden; }
.amigo-steps .amigo-radio label:before { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,186,0,.1), transparent); transition: left .5s; }
.amigo-steps .amigo-radio label:hover:before { left: 100%; }
.amigo-steps .amigo-radio label:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,186,0,.15); }
.amigo-steps .amigo-radio label input[type="radio"] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border: 2px solid #ddd; border-radius: 50%; position: relative; margin: 0; }
.amigo-steps .amigo-radio label input[type="radio"]:checked { border-color: #FFBA00; background: #FFBA00; }
.amigo-steps .amigo-radio label input[type="radio"]:checked:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Pet choice UI (modal only) */
.amigo-steps .pet-selection { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.amigo-steps .pet-card { display: flex; flex-direction: column; align-items: center; padding: 16px 12px; border: 2px solid #e0e0e0; border-radius: 12px; cursor: pointer; transition: all .3s ease; background: #fff; min-width: 100px; flex: 1; max-width: 140px; }
.amigo-steps .pet-card:hover { border-color: #FFBA00; transform: translateY(-2px); }
.amigo-steps .pet-card.selected { border-color: #FFBA00; background: #FFF8E7; }
.amigo-steps .pet-card input[type=radio] { position: absolute; opacity: 0; margin: 0; }
.pet-emoji { margin-bottom: 12px; background: #fff; padding: 10px; border-radius: 50%; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.pet-emoji svg { width: 40px; height: 40px; stroke: #475569; }
.pet-emoji .species-img { width: 100%; height: 100%; object-fit: contain; }
.pet-card.selected .pet-emoji svg { stroke: #FFBA00; }
.pet-label { font-size: 12px; font-weight: 600; color: #333; letter-spacing: .5px; }

/* Name/date fields */
.amigo-steps .name-section { text-align: left; margin-bottom: 40px; }
.amigo-steps .name-label { display: block; font-size: 11px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.amigo-steps .name-input { width: 100%; padding: 16px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 16px; background: #fafafa; box-sizing: border-box; margin: 0; }
.amigo-steps .name-input:focus { outline: none; border-color: #FFBA00; background: #fff; }
.amigo-steps .date-select, .amigo-steps .date-input, .amigo-steps .date-month, .amigo-steps .date-day, .amigo-steps .date-year { width: 100%; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; font-size: 16px; background: #fff; color: #111; margin: 0; box-sizing: border-box; height: auto; }
.amigo-steps .date-select:focus { outline: none; border-color: #FFBA00; background: #fff; }
.amigo-steps .date-slash { color: #999; font-weight: 500; font-size: 16px; }
.amigo-steps .step2-bottom-area { margin-top: 60px; text-align: center; }
.amigo-steps .step2-next-button { background: #FFBA00; color: #2c3e50; border: none; border-radius: 12px; padding: 12px 28px; font-weight: 700; }
.amigo-steps .step2-next-button:hover { background: #e6a600; }

/* Step 2 header + back button */
.amigo-steps .step2-header{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.amigo-steps .step2-header .step2-title-text{font-weight:700;color:#111827}
.amigo-steps .back-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:#F3F4F6;border:1px solid #e5e7eb;color:#111827;padding:0;line-height:1;box-shadow:none}
.amigo-steps .back-button:hover{background:#e9ecef}

/* Breed select visibility */
.amigo-steps .breed-select{color:#111827;background:#fff;border:1px solid #e0e0e0;border-radius:12px;padding:12px 14px;position:relative;z-index:1}
.amigo-steps .breed-select option{color:#111827}
/* Breed dropdown with search */
.amigo-steps .breed-combobox{position:relative}
.amigo-steps .breed-toggle{width:100%;border:1px solid #e0e0e0;border-radius:12px;padding:12px 14px;background:#fff;text-align:left;color:#111827}
.amigo-steps .breed-panel{position:absolute;top:auto;right:0;bottom:0;left:0;transform:translateY(8px);background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.08);padding:8px;z-index:10}
.amigo-steps .breed-search{width:100%;border:1px solid #e0e0e0;border-radius:10px;padding:10px 12px;margin:0 0 6px;background:#fff}
.amigo-steps .breed-search::placeholder{color:#9ca3af}
.amigo-steps .breed-list{max-height:220px;overflow:auto}
.amigo-steps .breed-item{padding:10px 12px;border-radius:8px;cursor:pointer}
.amigo-steps .breed-item:hover{background:#f8fafc}
.amigo-steps .breed-item.active{background:#FFF8E7;border:1px solid #FFE5A3}

/* Date row in one line */
.amigo-steps .date-row{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:8px}
.amigo-steps .date-row .date-select{margin-bottom:0}
.amigo-steps .date-row .date-slash{margin:0 2px}

/* Step 4 header + confirmation */
.amigo-steps .step4-wrap { padding: 16px; }
.amigo-steps .step4-header{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.amigo-steps .step4-title{font-weight:800;font-size:18px;margin:0}
.amigo-steps .back-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:#F3F4F6;border:1px solid #e5e7eb;color:#111827;padding:0;line-height:1}
.amigo-steps .back-button:hover{background:#e9ecef}
.amigo-steps .step-divider{height:1px;background:#e5e7eb;margin:14px 0}
.ap-block{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px;margin:12px 0;box-shadow:0 1px 4px rgba(0,0,0,.03)}
.ap-block-title{font-weight:700;font-size:14px;color:#111827;margin:0 0 8px}
.ap-optional{font-weight:600;color:#6b7280}
.amigo-steps .confirm-grid { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center; }
.amigo-steps .confirm-photo img { max-width: 100px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.amigo-steps .c-name { font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.amigo-steps .c-line { color: #666; font-size: 13px; margin-bottom: 4px; }
.amigo-steps .confirm-area.minimal { margin-bottom: 16px; }

/* Account list (safe outside modal) */
.amigo-pet-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
/* Pet card – cleaner, calmer look */
.amigo-pet-card { position:relative; background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:16px; display:grid; grid-template-columns:96px 1fr auto; align-items:start; column-gap:14px; transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.amigo-pet-card:hover { border-color:#dbe1e6; box-shadow:0 4px 12px rgba(0,0,0,.04); }
.amigo-pet-card .amigo-card-close{position:absolute;top:6px;right:6px;width:36px;height:36px;min-width:44px;min-height:44px;border-radius:999px;border:1px solid #e5e7eb;background:#fff;color:#475569;display:flex;align-items:center;justify-content:center;line-height:1;font-size:16px;font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.08);padding:4px;cursor:pointer;z-index:1}
.amigo-pet-card .amigo-card-close:hover{color:#b91c1c;background:#fef2f2;border-color:#fecaca}
.amigo-pet-card .amigo-card-close:focus{outline:2px solid #ef4444;outline-offset:2px}
@supports selector(:focus-visible){.amigo-pet-card .amigo-card-close:focus:not(:focus-visible){outline:none}}
.amigo-pet-card .amigo-card-close:focus-visible{outline:2px solid #ef4444;outline-offset:2px}
.amigo-pet-photo { width:96px; height:96px; border-radius:14px; background:#f5f5f5; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.08); }
.amigo-pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.amigo-placeholder { display: flex; align-items: center; justify-content: center; }
.amigo-placeholder svg { width: 32px; height: 32px; stroke: #94a3b8; }
.amigo-placeholder-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.amigo-pet-info { text-align:left; }
.amigo-pet-name { font-size:20px; font-weight:700; margin:0 0 2px; color:#0f172a; }
.amigo-pet-meta { font-size:13px; color:#64748b; line-height:1.4; }
.amigo-pet-extra { font-size:13px; color:#475569; margin-top:4px; }
.amigo-pet-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.pet-chip { background:#eef2ff; border:1px solid #e0e7ff; color:#3730a3; padding:4px 10px; border-radius:999px; font-size:11px; }
.pet-chip.dark { background:#0f172a; color:#fff; border:none; }
.allergy-line { color: #111; margin-top: 6px; }
.amigo-pet-actions { display:flex; flex-direction:row; gap:8px; align-self:end; }
.amigo-pet-actions .linkish { background:#fff; color:#111827; box-shadow:none; padding:8px 12px; border-radius:10px; border:1px solid #e5e7eb; font-weight:600; }
.amigo-pet-actions .linkish:hover { background:#f8fafc; }
.amigo-pet-actions .danger { color: #b91c1c; border-color: #fca5a5; }

/* Profile completeness */
.pet-completeness { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
.completeness-bar { flex: 1; height: 4px; background: #e5e7eb; border-radius: 2px; overflow: hidden; }
.completeness-fill { height: 100%; background: #FFBA00; border-radius: 2px; transition: width .3s; }
.completeness-text { font-size: 11px; color: #9ca3af; white-space: nowrap; }

/* Add card */
.amigo-pet-card.add-card { grid-template-columns: 1fr; justify-items: center; padding: 20px; cursor: pointer; background: #fff; border: 2px dashed #e5e7eb; box-shadow: none; }
.amigo-pet-card.add-card:hover { border-color: #FFBA00; background: #FFF8E7; }
.add-card-inner { width: 56px; height: 56px; border-radius: 999px; background: #111827; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
.add-card-label { margin-top: 8px; font-size: 13px; font-weight: 600; color: #6b7280; }

@media (max-width: 480px) {
  .amigo-pet-card { grid-template-columns: 72px 1fr; row-gap: 10px; }
  .amigo-pet-photo { width: 72px; height: 72px; }
  .amigo-pet-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .amigo-pet-actions .linkish { padding: 8px 12px; }
}

/* Full-bleed container on small screens to remove giant side gutters from theme wrappers */
@media (max-width: 480px) {
  #amigo-pet-root {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Cropper modal */
.ap-cropper-modal { position: fixed; top:0;right:0;bottom:0;left:0; background: rgba(0,0,0,.6); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ap-cropper-box { background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); width: min(95vw, 720px); max-width: 100%; max-height: 95vh; display:flex; flex-direction:column; }
.ap-cropper-title { font-weight: 800; text-align: center; padding: 14px 16px; border-bottom: 1px solid #eee; }
.ap-cropper-body { padding: 12px 14px; flex:1; overflow:auto; }
.ap-cropper-body img{ max-width:100%; height:auto; max-height:70vh; display:block; }
.ap-cropper-actions { display: flex; gap: 12px; justify-content: center; padding: 12px 14px; border-top: 1px solid #eee; position: sticky; bottom: 0; background:#fff; }
.ap-cropper-actions .primary { background: #FFBA00; color: #1F2937; border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.ap-cropper-actions button { background: #F3F4F6; color: #111827; border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; }

/* Step progress bar with labels */
.step-progress-bar { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 20px; 
  padding: 0 10px;
  gap: 0;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 50px;
}
.progress-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}
.progress-label {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
  text-align: center;
  transition: color .25s ease;
  white-space: nowrap;
}
.progress-step.active .progress-num {
  background: #FFBA00;
  color: #1F2937;
  box-shadow: 0 2px 8px rgba(255,186,0,.4);
}
.progress-step.active .progress-label {
  color: #111827;
  font-weight: 600;
}
.progress-step.completed .progress-num {
  background: #10B981;
  color: #fff;
}
.progress-step.completed .progress-label {
  color: #10B981;
}
.progress-line {
  width: 24px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 4px;
  margin-bottom: 18px;
  transition: background .25s ease;
}
.progress-line.completed {
  background: #10B981;
}
@media (max-width: 480px) {
  .progress-label { font-size: 8px; }
  .progress-line { width: 12px; margin-bottom: 18px; }
  .progress-step { min-width: 40px; }
  .progress-num { width: 24px; height: 24px; font-size: 11px; }
}

/* Celebration modal */
.amigo-celebration-overlay {
  position: fixed;
  top:0;right:0;bottom:0;left:0;
  background: rgba(0,0,0,.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: celebFadeIn .3s ease;
}
.amigo-celebration-overlay.fade-out {
  animation: celebFadeOut .3s ease forwards;
}
@keyframes celebFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes celebFadeOut { from { opacity: 1; } to { opacity: 0; } }
.amigo-celebration-box {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: celebPop .4s cubic-bezier(.68,-.55,.27,1.55);
}
@keyframes celebPop { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.celebration-emoji {
  margin-bottom: 12px;
  animation: celebBounce 1s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.celebration-emoji svg { width: 48px; height: 48px; }
@keyframes celebBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.celebration-title {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}
.celebration-text {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 16px;
  line-height: 1.5;
}
.celebration-bonus {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #FFBA00;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: #92400E;
  margin-bottom: 20px;
  text-align: center;
}
.celebration-bonus-badge { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 4px; }
.celebration-bonus-badge .bonus-amount { font-size: 24px; font-weight: 800; color: #B45309; }
.celebration-bonus-text { font-weight: 600; margin-bottom: 4px; }
.celebration-balance { font-size: 13px; color: #78350F; margin-bottom: 2px; }
.celebration-bonus-hint { font-size: 12px; color: #A16207; }
.celebration-close {
  background: #FFBA00;
  color: #1F2937;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.celebration-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,186,0,.4);
}

/* Human years display */
.human-years {
  color: #9ca3af;
  font-weight: 400;
  font-size: 12px;
}

/* Unified step header */
.ap-step-header{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.ap-step-title{font-weight:600;font-size:16px;color:#111827}
.ap-back{width:36px;height:36px;border-radius:999px;border:1px solid #e5e7eb;background:#F3F4F6;color:#111827;display:flex;align-items:center;justify-content:center;line-height:1}
.ap-back:hover{background:#e9ecef}

/* Unify selected styles for gender segments and body chips */
.segmented.gender{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.segmented.gender .segment{display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 16px;cursor:pointer;transition:border-color .2s,box-shadow .2s,background .2s,color .2s}
.segmented.gender .segment input{position:absolute;opacity:0;pointer-events:none}
.segmented.gender .segment .seg-label{font-weight:600}
.segmented.gender .segment.active{background:#FFBA00;border-color:#FFBA00;color:#1F2937;box-shadow:none;outline:none}
.segmented.gender .segment.active .seg-ico{filter: none}
.segmented.gender .segment .seg-ico{color:inherit}
.segmented.gender .segment.active .seg-label{color:#1F2937}
.chip-group{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}
.chip-group .chip{display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:12px 14px;cursor:pointer;transition:border-color .2s,box-shadow .2s,background .2s;color:#111827}
.chip-group .chip.selected{background:#FFBA00;border-color:#FFBA00;color:#1F2937;box-shadow:none}
.chip-group .chip span{color:inherit}

/* Next button states */
.amigo-steps .step-actions .next-step{background:#FFBA00;color:#1F2937;border:none}
.amigo-steps .step-actions .next-step.is-disabled{background:#f3f4f6 !important;color:#9ca3af !important;border:1px solid #e5e7eb;box-shadow:none}

/* Onboarding welcome block inside step1 */
.ap-onboard-welcome{background:#FFF8E7;border:1px solid #FFE5A3;border-radius:14px;padding:12px 14px;margin:0 0 10px}
.ap-onboard-title{font-weight:700;color:#111827;margin:0 0 4px;line-height:1.4}
.ap-onboard-title b{font-weight:800}
.ap-onboard-sub{color:#6b7280;font-size:13px}

/* Animations */
@keyframes amigo-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes amigo-slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Empty state / Hero block */
.amigo-empty { background: #fff; border-radius: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 28px 22px; text-align: center; margin-top: 16px; }
.amigo-hero-block { padding: 36px 24px 28px; }
.hero-illustration { margin-bottom: 16px; }
.hero-illustration svg { display: inline-block; }
.amigo-empty-title { font-weight: 700; color: #111827; line-height: 1.4; margin: 4px 0 6px; font-size: 20px; }
.amigo-hero-block .amigo-empty-title { font-size: 22px; margin-bottom: 16px; }
.amigo-empty-sub { color: #6b7280; font-size: 14px; margin-bottom: 12px; }
.hero-benefits { text-align: left; max-width: 320px; margin: 0 auto 20px; }
.hero-benefit-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.hero-benefit-icon { flex: 0 0 24px; display: flex; align-items: center; justify-content: center; }
.hero-benefit-text { color: #374151; font-size: 14px; line-height: 1.4; }
.amigo-empty-actions { display: flex; justify-content: center; }
.amigo-btn-hero { font-size: 16px; padding: 14px 32px; border-radius: 14px; background: #FFBA00; color: #111; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(255,186,0,0.3); transition: transform .15s, box-shadow .15s; }
.amigo-btn-hero:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,186,0,0.4); }
.amigo-btn-hero:active { transform: translateY(0); }
.hero-social-proof { margin-top: 16px; font-size: 13px; color: #9ca3af; }
.amigo-instagram-hero { background: #fff; border-radius: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 40px 24px; text-align: center; margin-top: 16px; }
.amigo-instagram-hero h2 { font-size: 22px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.amigo-instagram-hero p { color: #6b7280; font-size: 15px; margin-bottom: 20px; }
.amigo-instagram-hero .amigo-btn-hero { display: inline-block; text-decoration: none; }

/* Buttons */
.amigo-btn, .step-actions button, .continue-button, .submit-form { border: none; border-radius: 999px; padding: 12px 24px; font-size: 0.95em; font-weight: 700; cursor: pointer; background: #FFBA00; color: #2c3e50; box-shadow: 0 4px 12px rgba(255,186,0,0.25); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.amigo-btn:hover, .step-actions button:hover:not(:disabled), .continue-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,186,0,0.35); }
.step-actions .prev-step { background: #F3F4F6; color: #111827; border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.step-actions .prev-step:hover { transform: none; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }

/* Confirm modal */
.amigo-confirm-overlay { position: fixed; top:0;right:0;bottom:0;left:0; background: rgba(0,0,0,.35); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.amigo-confirm-box { background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.2); padding: 18px 16px; max-width: 420px; width: min(92vw,420px); }
.amigo-confirm-text { font-weight: 600; color: #111827; margin-bottom: 12px; }
.amigo-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.amigo-confirm-actions .primary { background: #FFBA00; color: #1F2937; border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.amigo-confirm-actions button { background: #F3F4F6; color: #111827; border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; }

/* Брейкпойнти для комфортної ширини на ПК */
@media (min-width: 768px) {
  .amigo-steps { padding: 36px 28px; width: clamp(420px, 60vw, 640px); }
}
@media (min-width: 1024px) {
  .amigo-steps { width: 640px; }
  .amigo-steps .step2-next-button { background: #FFBA00; color: #2c3e50; border: none; border-radius: 12px; padding: 12px 28px; font-weight: 700; }
  .amigo-steps .step2-next-button:hover { background: #e6a600; }
}
@media (min-width: 1440px) {
  .amigo-steps { width: 680px; }
}

/* ===== Review pet selector ===== */
.amigo-review-pet-select{
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fafafa;
  padding:16px;
}
.amigo-rps-title{
  font-weight:600;
  margin:0 0 12px;
  color:#374151;
  font-size:14px;
}
.amigo-rps-list{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.amigo-rps-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  padding:10px 14px 8px;
  cursor:pointer;
  transition:border-color .2s, box-shadow .2s;
  min-width:80px;
}
.amigo-rps-item:hover{
  border-color:#d1d5db;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.amigo-rps-item:has(input:checked){
  border-color:#FFBA00;
  box-shadow:0 0 0 1px #FFBA00;
}
.amigo-rps-item input[type=radio]{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.amigo-rps-photo{
  width:48px;
  height:48px;
  border-radius:50%;
  overflow:hidden;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid transparent;
  transition:border-color .2s;
}
.amigo-rps-item:has(input:checked) .amigo-rps-photo{
  border-color:#FFBA00;
}
.amigo-rps-photo img{width:100%;height:100%;object-fit:cover;display:block}
.amigo-rps-name{
  font-weight:500;
  font-size:12px;
  color:#4b5563;
  text-align:center;
}
.amigo-rps-item:has(input:checked) .amigo-rps-name{
  color:#111827;
  font-weight:600;
}
.amigo-rps-item:focus-within{outline:2px solid #FFBA00;outline-offset:2px}
/* Hard override for themes */
.amigo-review-pet-select img{width:48px !important;height:48px !important;border-radius:50% !important;object-fit:cover !important}
/* Fallback for browsers without :has() */
.amigo-rps-item.selected{border-color:#FFBA00;box-shadow:0 0 0 1px #FFBA00}
.amigo-rps-item.selected .amigo-rps-photo{border-color:#FFBA00}
.amigo-rps-item.selected .amigo-rps-name{color:#111827;font-weight:600}

/* ===== Clerk pet blocks ===== */
.amigo-clerk-wrap{margin:20px 0}
.amigo-clerk-skeleton{height:120px;border-radius:16px;background:linear-gradient(90deg,#f3f4f6,#e5e7eb,#f3f4f6);background-size:200% 100%;animation:apShimmer 1.4s ease-in-out infinite}
.amigo-clerk-pet{margin:32px 0;padding:12px 14px;border:1px solid #e5e7eb;border-radius:16px;background:#fff}
.amigo-clerk-title{margin:0 0 10px;font-weight:800;font-size:18px}
@keyframes apShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ===== Pet deals bottom (product page) ===== */
.amigo-pet-deals-bottom{margin:120px 0 0}

/* Final mobile container override: remove theme side paddings on small screens */
@media (max-width: 640px) {
  #amigo-pet-root {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ===== Health Tracker ===== */
.amigo-health-btn {
  color: #059669 !important;
  font-weight: 500;
}
.amigo-health-btn.active {
  color: #047857 !important;
  font-weight: 600;
}

.amigo-health-section {
  display: none;
  grid-column: 1 / -1;
  padding: 16px 0 8px;
  border-top: 1px solid #e5e7eb;
  margin-top: 12px;
}
.amigo-health-section.expanded {
  display: block;
  animation: slideDown 0.2s ease-out;
  padding-bottom: 16px;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Health quick nav */
.health-quick-nav {
  display: flex;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.health-quick-nav::-webkit-scrollbar { display: none; }
.health-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}
.health-nav-btn:hover {
  border-color: #FFBA00;
  background: #FFF8E7;
  color: #92400e;
}
.health-nav-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.health-block {
  margin-bottom: 16px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 12px;
}
.health-block-title {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.health-block-title svg { width: 18px; height: 18px; flex-shrink: 0;
}

/* Weight status */
.weight-status {
  font-size: 14px;
  padding: 4px 0;
}
.weight-status.normal { color: #059669; }
.weight-status.underweight { color: #d97706; }
.weight-status.overweight { color: #dc2626; }
.weight-status.muted { color: #9ca3af; font-style: italic; }
.weight-norm {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* Vaccinations list */
.vacc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.vacc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.vacc-item.overdue {
  background: #fef2f2;
  border-color: #fecaca;
}
.vacc-item.upcoming {
  background: #fffbeb;
  border-color: #fde68a;
}
.vacc-icon { font-size: 12px; display: inline-flex; align-items: center; }
.vacc-icon svg { width: 14px; height: 14px; flex-shrink: 0; }
.vacc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.vacc-dot--overdue { background: #ef4444; }
.vacc-dot--upcoming { background: #f59e0b; }
.vacc-dot--ok { background: #22c55e; }
.vacc-name { font-weight: 500; flex: 1; }
.vacc-date { color: #6b7280; font-size: 12px; }
.vacc-next { color: #9ca3af; font-size: 12px; }
.vacc-empty { font-size: 13px; }
.vacc-item.clickable {
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.vacc-item.clickable:hover {
  background: #fef3c7;
  transform: translateX(2px);
}

/* Breed tips */
.breed-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.breed-tip {
  font-size: 12px;
  padding: 4px 8px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 6px;
}
.life-expectancy {
  font-size: 12px;
  margin-top: 8px;
}

/* Health add buttons */
.health-add-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.health-add-btn:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

/* Health modal overlay - completely independent from main modal */
.amigo-health-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(0,0,0,0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
}

/* Health modal box */
.amigo-health-modal {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important;
  width: 400px !important;
  max-width: calc(100vw - 40px) !important;
  max-height: calc(100vh - 40px) !important;
  max-height: calc(100dvh - 40px) !important;
  overflow-y: auto !important;
  position: relative !important;
}
.amigo-health-modal .form-row {
  margin-bottom: 14px;
}
.amigo-health-modal .form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}
.amigo-health-modal .form-row input,
.amigo-health-modal .form-row select {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  min-height: 44px;
}
.amigo-health-modal .form-row input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  color: #1f2937;
}
.amigo-health-modal .form-row input:focus,
.amigo-health-modal .form-row select:focus {
  outline: none;
  border-color: #FFBA00;
  box-shadow: 0 0 0 2px rgba(255,186,0,0.15);
}
.amigo-health-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.amigo-health-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 6px;
}
.amigo-health-modal-header h3 svg { width: 20px; height: 20px; flex-shrink: 0;
}
.amigo-health-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.amigo-health-modal-close:hover {
  color: #4b5563;
}
.amigo-health-modal-body {
  padding: 20px;
}
.amigo-health-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
}
.amigo-health-modal-footer .amigo-btn {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
}
.amigo-health-modal-footer .amigo-btn.primary {
  background: #FFBA00;
  color: #1f2937;
  border: none;
  font-weight: 600;
}
.amigo-health-modal-footer .amigo-btn.primary:hover {
  background: #e6a800;
}
.amigo-health-modal-footer .cancel-btn {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #4b5563;
}
.amigo-health-modal-footer .cancel-btn:hover {
  background: #f3f4f6;
}

.muted { color: #9ca3af; }

/* Reminder toggle */
.settings-block {
  background: #f3f4f6;
}
.reminder-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
}
.reminder-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #FFBA00;
  cursor: pointer;
}
.toggle-text {
  user-select: none;
}

/* ===== Dashboard v2 Styles ===== */
.amigo-dash-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Greeting section */
.amigo-dash-greeting {
  padding: 0 0 12px;
}
.amigo-dash-greeting__hello {
  font-size: 1.4em;
  color: #1F2937;
  line-height: 1.4;
}
.amigo-dash-greeting__hello strong {
  font-weight: 700;
}
.amigo-dash-greeting__sub {
  font-size: 0.95em;
  color: #6B7280;
  margin-top: 4px;
}

/* Quest Journal */
.amigo-quest-journal {
  background: #FBF7F0;
  border: 1px solid #E8DFD0;
  border-radius: 12px;
  overflow: hidden;
}
/* Summary/header (clickable) */
.qj-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.qj-header::-webkit-details-marker { display: none; }
.qj-header__art {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.qj-header__title {
  flex: 1;
  font-weight: 700;
  font-size: 0.9em;
  color: #5C3D2E;
}
.qj-header__progress {
  font-size: 0.8em;
  font-weight: 700;
  color: #C4A35A;
}
.qj-header__chevron {
  display: flex;
  transition: transform 0.2s;
}
details[open] > .qj-header .qj-header__chevron {
  transform: rotate(180deg);
}
/* Body */
.qj-body {
  padding: 0 14px 10px;
}
/* Level */
.qj-level {
  padding: 0;
}
.qj-level__name {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0 2px;
  font-size: 0.72em;
  font-weight: 700;
  color: #8B6914;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.qj-level--locked .qj-level__name { color: #B8B0A4; }
.qj-level__lock {
  padding: 2px 0 4px 18px;
  font-size: 0.76em;
  color: #B8B0A4;
  font-style: italic;
}
/* Quest row */
.qj-quest {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 2px;
  text-decoration: none;
  color: #3D2B1F;
  border-bottom: 1px dashed #E8DFD0;
}
.qj-quest:last-child { border-bottom: none; }
a.qj-quest:hover { background: rgba(196,163,90,0.08); border-radius: 6px; }
/* Checkbox */
.qj-quest__box {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #D4B896;
  background: #fff;
}
.qj-quest--done .qj-quest__box {
  background: #4A7C3F;
  border-color: #3D6832;
}
.qj-quest__icon { flex-shrink: 0; display: flex; }
.qj-quest__text {
  flex: 1;
  font-size: 0.84em;
  font-weight: 500;
}
.qj-quest--done .qj-quest__text {
  color: #9CA3AF;
  text-decoration: line-through;
}
.qj-quest__reward {
  flex-shrink: 0;
  font-size: 0.72em;
  font-weight: 700;
  color: #8B6914;
  background: rgba(196,163,90,0.12);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.qj-quest--done .qj-quest__reward {
  color: #4A7C3F;
  background: rgba(74,124,63,0.1);
}
/* Divider */
.qj-divider {
  text-align: center;
  padding: 1px 0;
  font-size: 5px;
  color: #D4B896;
  letter-spacing: 5px;
  line-height: 1;
}
.qj-divider::before { content: '\25C6\25C6\25C6'; }

/* Stats row */
.amigo-dash-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.amigo-dash-stat {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.amigo-dash-stat:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.amigo-dash-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.amigo-dash-stat__icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.amigo-dash-stat__value {
  font-weight: 700;
  font-size: 1.1em;
  color: #111827;
}
.amigo-dash-stat__label {
  font-size: 0.85em;
  color: #6B7280;
}
.amigo-dash-stat__cta {
  width: 100%;
  font-size: 0.8em;
  color: #FFBA00;
  font-weight: 600;
}
.amigo-dash-stat--bonus:hover { border-color: #FFBA00; }
.amigo-dash-stat--orders:hover { border-color: #60A5FA; }
.amigo-dash-stat--notif:hover { border-color: #F59E0B; }
.amigo-dash-stat--notif.has-new .amigo-dash-stat__value {
  color: #DC2626;
}

/* Last order status block */
.amigo-dash-order {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}
.amigo-dash-order__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
a.amigo-dash-order__title,
.amigo-dash-order__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95em;
  color: #1F2937;
  text-decoration: none;
}
a.amigo-dash-order__title:hover {
  color: #4338CA;
}
.amigo-dash-order__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
}
.amigo-dash-order__meta {
  display: flex;
  gap: 12px;
  font-size: 0.85em;
  color: #6B7280;
}
.amigo-dash-order__meta span + span::before {
  content: "\00b7";
  margin-right: 6px;
  color: #9CA3AF;
  font-weight: 700;
}
.amigo-dash-order__ttn {
  font-size: 0.82em;
  color: #6B7280;
}
.amigo-dash-order__ttn-number {
  font-family: monospace;
  font-weight: 600;
  color: #1F2937;
  letter-spacing: 0.3px;
}
.amigo-dash-order--shipping {
  border-color: #C7D2FE;
  background: #FAFBFF;
}
.amigo-dash-order__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.amigo-dash-order__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 8px;
  min-height: 44px;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  color: #1F2937;
  background: #f3f4f6;
  transition: background 0.2s, transform 0.1s;
}
.amigo-dash-order__btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}
.amigo-dash-order__btn--track {
  background: #EEF2FF;
  color: #4338CA;
}
.amigo-dash-order__btn--track:hover {
  background: #E0E7FF;
}
.amigo-dash-order__btn--reorder {
  background: #FFF8E7;
  color: #92400E;
}
.amigo-dash-order__btn--reorder:hover {
  background: #FFE5A3;
}

/* Quick actions */
.amigo-dash-quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.amigo-dash-quick__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFFBF0 100%);
  border: 1px solid #FFE5A3;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.amigo-dash-quick__btn:hover {
  box-shadow: 0 6px 20px rgba(255,186,0,0.18);
  transform: translateY(-1px);
}
.amigo-dash-quick__icon {
  font-size: 1.5em;
}
.amigo-dash-quick__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.amigo-dash-quick__title {
  font-weight: 600;
  font-size: 0.95em;
  color: #1F2937;
}
.amigo-dash-quick__meta {
  font-size: 0.85em;
  color: #6B7280;
}

/* Pets section */
.amigo-dash-pets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.amigo-dash-pets::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: calc(100% - 32px);
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
  z-index: 1;
}
.amigo-dash-pets__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.amigo-dash-pets__title {
  font-weight: 700;
  font-size: 1em;
  color: #1F2937;
}
.amigo-dash-pets__all {
  font-size: 0.85em;
  color: #FFBA00;
  font-weight: 600;
  text-decoration: none;
}
.amigo-dash-pets__all:hover {
  color: #E6A600;
}
.amigo-dash-pets__scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.amigo-dash-pets__scroll::-webkit-scrollbar {
  height: 6px;
}
.amigo-dash-pets__scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}
.amigo-dash-pets__scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

/* Individual pet card in dashboard */
.amigo-dash-pet {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 100px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.amigo-dash-pet:hover {
  border-color: #FFBA00;
  box-shadow: 0 4px 12px rgba(255,186,0,0.12);
  transform: translateY(-2px);
}
.amigo-dash-pet.has-alert {
  border-color: #FBBF24;
  background: linear-gradient(135deg, #FFFBEB 0%, #FFF 100%);
}
.amigo-dash-pet__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amigo-dash-pet__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.amigo-dash-pet__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.amigo-dash-pet__emoji svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.amigo-dash-pet__name {
  font-weight: 600;
  font-size: 0.9em;
  color: #111827;
  text-align: center;
}
.amigo-dash-pet__breed {
  font-size: 0.8em;
  color: #6B7280;
  text-align: center;
  max-width: 100px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.amigo-dash-pet__alert {
  font-size: 0.75em;
  margin-top: 2px;
}

/* Add pet card in dashboard scroll */
.amigo-dash-add {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  background: #fff;
  border: 2px dashed #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: #6B7280;
  min-width: 90px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.amigo-dash-add:hover {
  border-color: #FFBA00;
  background: #FFF8E7;
  color: #1F2937;
}
.amigo-dash-add__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: 700;
}
.amigo-dash-add__text {
  font-size: 0.8em;
  font-weight: 600;
  color: #FFBA00;
}

/* Quick links grid below pets */
.amigo-dash-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.amigo-dash-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.amigo-dash-link:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.amigo-dash-link__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amigo-dash-link__icon svg {
  width: 24px;
  height: 24px;
  color: #6B7280;
}
.amigo-dash-link__text {
  font-size: 0.85em;
  color: #374151;
  text-align: center;
}

/* Add pet variant in scroll */
.amigo-dash-pet--add {
  border: 2px dashed #e5e7eb;
  background: #fff;
  color: #6B7280;
}
.amigo-dash-pet--add:hover {
  border-color: #FFBA00;
  background: #FFF8E7;
  color: #1F2937;
}
.amigo-dash-pet__plus {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
}
.amigo-dash-pet__badge {
  font-size: 0.8em;
}

/* Hint/tip block */
.amigo-dash-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #FFBA00;
  border-radius: 14px;
}
.amigo-dash-hint__icon {
  font-size: 1.5em;
  flex-shrink: 0;
}
.amigo-dash-hint__text {
  flex: 1;
  font-size: 0.9em;
  color: #92400E;
  line-height: 1.5;
}
.amigo-dash-hint__text strong {
  font-weight: 700;
  color: #78350F;
}
.amigo-dash-hint__btn {
  flex-shrink: 0;
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.amigo-dash-hint__btn:hover {
  background: #1F2937;
  transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .amigo-dash-v2 {
    gap: 16px;
  }
  .amigo-dash-stats {
    flex-direction: row;
    gap: 8px;
  }
  .amigo-dash-stat {
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    gap: 4px;
  }
  .amigo-dash-stat__cta {
    font-size: 0.7em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .amigo-dash-hint {
    flex-direction: column;
    text-align: center;
  }
  .amigo-dash-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .amigo-dash-link {
    padding: 14px 8px;
  }
  .amigo-dash-link__text {
    font-size: 0.75em;
  }
  /* Quest journal mobile */
  .qj-header { padding: 8px 10px; }
  .qj-body { padding: 0 10px 8px; }
  .qj-quest__text { font-size: 0.8em; }
  .qj-quest__reward { font-size: 0.68em; padding: 2px 5px; }
  .qj-header__art svg { width: 18px; height: 16px; }
  /* Order block mobile */
  .amigo-dash-order {
    padding: 12px;
  }
  .amigo-dash-order__header {
    flex-wrap: wrap;
  }
  .amigo-dash-order__meta {
    flex-direction: column;
    gap: 2px;
  }
  .amigo-dash-order__meta span + span::before {
    display: none;
  }
  .amigo-dash-order__actions {
    flex-direction: column;
  }
  .amigo-dash-order__btn {
    justify-content: center;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.85em;
  }
}

/* ===== Health Tracker v2 ===== */

/* Toast notifications */
.amigo-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.amigo-toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: toastIn 0.3s ease-out;
  max-width: 360px;
}
.amigo-toast.success { border-left: 4px solid #22c55e; }
.amigo-toast.error { border-left: 4px solid #ef4444; }
.amigo-toast.info { border-left: 4px solid #3b82f6; }
.amigo-toast.out { animation: toastOut 0.25s ease-in forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}

/* Loading button state */
.amigo-btn.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}
.amigo-btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #1f2937;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Health status badge on pet card */
.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.health-badge.alert { background: #fef2f2; color: #dc2626; }
.health-badge.warning { background: #fffbeb; color: #d97706; }
.health-badge.ok { background: #f0fdf4; color: #059669; }

/* Weight chart */
.weight-chart-wrap {
  margin: 8px 0;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.weight-chart-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.weight-chart-wrap .chart-empty {
  text-align: center;
  padding: 16px;
  color: #9ca3af;
  font-size: 13px;
}
.weight-chart-wrap .chart-empty svg {
  width: 32px !important;
  height: 32px !important;
  display: inline-block;
  opacity: 0.5;
}
/* Weight history list */
.weight-history-list {
  margin-top: 8px;
  border-top: 1px solid #f3f4f6;
  padding-top: 6px;
}
.weight-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 13px;
  color: #374151;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.weight-history-item:hover {
  background: #f3f4f6;
}
.weight-history-item .wh-date {
  color: #6b7280;
  min-width: 70px;
}
.weight-history-item .wh-val {
  font-weight: 600;
}
.weight-history-item .wh-notes {
  color: #9ca3af;
  font-size: 12px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weight-history-item .wh-del {
  opacity: 0;
  transition: opacity 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #dc2626;
  font-size: 14px;
  line-height: 1;
}
.weight-history-item:hover .wh-del {
  opacity: 1;
}
.weight-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Health records sections */
.health-record-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.health-record-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.health-record-item:hover {
  background: #fef3c7;
  transform: translateX(2px);
}
.health-record-item.overdue {
  background: #fef2f2;
  border-color: #fecaca;
}
.health-record-item.upcoming {
  background: #fffbeb;
  border-color: #fde68a;
}
.health-record-item .rec-name { font-weight: 500; flex: 1; }
.health-record-item .rec-date { color: #6b7280; font-size: 12px; }
.health-record-item .rec-next { color: #9ca3af; font-size: 12px; }

/* Vet visit item */
.health-record-item.vet-visit {
  border-left: 3px solid #8b5cf6;
}
.health-record-item.vet-visit:hover {
  background: #f5f3ff;
}

/* Pet info chips for sterilization/microchip */
.pet-health-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.pet-health-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.pet-health-chip svg { width: 12px; height: 12px; }
.pet-health-chip.neutral {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

/* Empty state improvements */
.health-empty {
  text-align: center;
  padding: 20px 12px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  margin: 4px 0;
}
.health-empty svg {
  display: block;
  margin: 0 auto 8px;
  opacity: 0.5;
}


/* Purchase suggestions in health blocks */
.purchase-suggestions {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
}
.purchase-suggestions-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.purchase-suggestions-label svg {
  width: 12px !important;
  height: 12px !important;
}
.purchase-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.3;
}
.purchase-chip:hover {
  border-color: #FFBA00;
  background: #FFFBEB;
}
.purchase-chip-date {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
/* Purchase suggest groups */
.purchase-suggest-group {
  margin-bottom: 8px;
}
.purchase-suggest-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}
/* Assigned purchases list */
.assigned-purchases-list {
  margin-bottom: 10px;
}
.assigned-purchase-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  margin-bottom: 4px;
  position: relative;
}
.assigned-purchase-item .ap-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
}
.assigned-purchase-item .ap-date {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}
.assigned-purchase-item .ap-del {
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  display: none;
}
.assigned-purchase-item:hover .ap-del {
  display: block;
  color: #ef4444;
}
@media (hover: none) {
  .assigned-purchase-item .ap-del { display: block; color: #9ca3af; }
}

/* Vet export modal */
.vet-export-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}
.vet-export-btn:hover {
  background: #dbeafe !important;
}
.vet-export-content {
  font-size: 13px;
  line-height: 1.5;
  max-height: 60vh;
  overflow-y: auto;
}
.vet-section {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}
.vet-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.vet-section-title {
  font-weight: 600;
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.vet-section-divider {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0 4px;
  margin-top: 8px;
  border-top: 1px solid #e5e7eb;
}
.vet-row {
  display: flex;
  gap: 8px;
  padding: 2px 0;
}
.vet-label {
  color: #6b7280;
  min-width: 90px;
  flex-shrink: 0;
  font-size: 12px;
}
.vet-value {
  color: #374151;
  word-break: break-word;
}

/* Mobile adjustments for health tracker */
@media (max-width: 600px) {
  .weight-chart-wrap {
    padding: 4px;
  }
  .amigo-toast {
    max-width: calc(100vw - 40px);
    right: 10px;
    font-size: 13px;
  }
  .amigo-toast-container {
    right: 10px;
    bottom: 10px;
  }
  .health-record-item {
    font-size: 12px;
    padding: 5px 6px;
    gap: 6px;
  }
}
