/* =========================================
   REPAIR 1.0 / V1 — Internal Tool
   Theme: Rich Professional Green
   ========================================= */

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

:root {
  /* Primary green palette — deep emerald, not neon */
  --green-primary:  #1F6F50;
  --green-dark:     #175640;
  --green-mid:      #2E8B57;
  --green-light:    #EAF6F0;
  --green-border:   #B7DFD0;
  --green-btn:      #1F6F50;
  --green-btn-h:    #175640;

  /* Status / tag colors */
  --status-green:   #15803d;
  --status-green-bg:#dcfce7;
  --status-green-bd:#bbf7d0;
  --purple:         #5b21b6;
  --purple-bg:      #ede9fe;
  --teal:           #0e7490;
  --teal-bg:        #ecfeff;
  --teal-bd:        #a5f3fc;
  --red:            #dc2626;
  --red-bg:         #fee2e2;
  --amber:          #b45309;
  --amber-bg:       #fef3c7;

  /* Grays */
  --gray-50:   #fafafa;
  --gray-100:  #f4f4f5;
  --gray-200:  #e4e4e7;
  --gray-300:  #d4d4d8;
  --gray-500:  #71717a;
  --gray-700:  #3f3f46;
  --gray-900:  #18181b;
  --white:     #ffffff;

  --shadow:    0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.08), 0 12px 28px rgba(0,0,0,.1);
  --shadow-g:  0 2px 8px rgba(31,111,80,.1);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f7faf8;
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--green-border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(31,111,80,.08);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 22px; }
.logo-name { display: block; font-weight: 700; font-size: 15px; color: var(--gray-900); line-height: 1.2; }
.logo-sub  { display: block; font-size: 11px; color: var(--gray-500); font-weight: 500; letter-spacing: .4px; text-transform: uppercase; }

.header-nav { display: flex; gap: 6px; }
.nav-btn {
  padding: 7px 15px; border-radius: 8px;
  border: 1px solid var(--gray-200); background: transparent;
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  cursor: pointer; transition: all .18s; font-family: inherit;
}
.nav-btn:hover { background: var(--green-light); border-color: var(--green-border); color: var(--green-dark); }
.nav-btn.active { background: var(--green-btn); color: var(--white); border-color: var(--green-btn); font-weight: 600; }

/* ---- SEARCH SECTION ---- */
.search-section {
  background: linear-gradient(135deg, #06361E 0%, #0B4D2C 45%, #146C43 75%, #0B4D2C 100%);
  padding: 48px 20px 36px;
  position: relative;
  overflow: hidden;
}
.search-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 30%, rgba(255,255,255,.03) 0%, transparent 70%);
  pointer-events: none;
}
.search-inner { max-width: 760px; margin: 0 auto; }
.search-heading {
  font-size: clamp(24px, 4vw, 36px); font-weight: 700;
  color: #fff; margin-bottom: 6px; letter-spacing: -.5px;
}
.search-sub { color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 20px; }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; font-size: 16px; pointer-events: none; }
.search-input {
  width: 100%; padding: 16px 48px 16px 46px;
  border-radius: 12px; border: none; font-size: 16px; font-family: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,.18); outline: none;
  transition: box-shadow .18s; background: var(--white); color: var(--gray-900);
}
.search-input:focus { box-shadow: 0 4px 20px rgba(0,0,0,.22), 0 0 0 3px rgba(255,255,255,.4); }
.search-input::placeholder { color: var(--gray-500); }
.search-clear {
  position: absolute; right: 14px; background: none; border: none;
  font-size: 14px; color: var(--gray-500); cursor: pointer;
  padding: 4px; border-radius: 4px; display: none;
}
.search-clear:hover { background: var(--gray-100); color: var(--gray-900); }

/* ---- FILTERS ---- */
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.filter-btn {
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s; white-space: nowrap; font-family: inherit;
}
.filter-btn:hover { background: rgba(255,255,255,.3); }
.filter-btn.active { background: #fff; color: var(--green-dark); border-color: #fff; font-weight: 600; }

/* ---- iPAD SUB-FILTER STRIP ---- */
.ipad-subfilters {
  background: var(--green-light);
  border-bottom: 1px solid var(--green-border);
}
.ipad-subfilter-inner {
  max-width: 760px; margin: 0 auto;
  padding: 10px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.ipad-sub-label {
  font-size: 12px; font-weight: 700; color: var(--green-dark);
  text-transform: uppercase; letter-spacing: .5px; margin-right: 4px;
  white-space: nowrap;
}
.ipad-sub-btn {
  padding: 5px 14px; border-radius: 16px;
  border: 1px solid var(--green-border);
  background: var(--white); color: var(--green-dark);
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all .15s; white-space: nowrap; font-family: inherit;
}
.ipad-sub-btn:hover { background: var(--green-border); }
.ipad-sub-btn.active { background: var(--green-btn); color: var(--white); border-color: var(--green-btn); font-weight: 600; }

/* ---- MAIN CONTENT ---- */
.main-content { max-width: 1100px; margin: 0 auto; padding: 32px 20px 48px; flex: 1; width: 100%; }

/* ---- MOST USED ---- */
.section-header { margin-bottom: 18px; }
.section-title { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.section-sub   { font-size: 13px; color: var(--gray-500); margin-top: 3px; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.quick-chip {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 12px 14px; cursor: pointer;
  transition: all .18s; font-size: 13px; font-weight: 500; color: var(--gray-700);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow); font-family: inherit;
}
.quick-chip:hover {
  border-color: var(--green-primary); color: var(--green-dark);
  background: var(--green-light); transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.quick-chip-icon { font-size: 15px; flex-shrink: 0; }

/* ---- RESULTS ---- */
.results-meta { font-size: 13px; color: var(--gray-500); margin-bottom: 16px; font-weight: 500; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* ---- PRICE CARD ---- */
.price-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 20px; box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s;
  border-top: 3px solid var(--green-primary);
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-brand { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--green-primary); margin-bottom: 4px; }
.card-model  { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; line-height: 1.3; }
.card-type   { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; margin-bottom: 16px; }

.type-lcd      { background: var(--green-light); color: var(--green-dark); }
.type-digi     { background: #ecfdf5; color: #065f46; }
.type-battery  { background: var(--status-green-bg); color: var(--status-green); }
.type-charging { background: var(--purple-bg); color: var(--purple); }
.type-camera   { background: var(--amber-bg); color: var(--amber); }
.type-other    { background: var(--gray-100); color: var(--gray-700); }

.card-prices { display: flex; gap: 10px; flex-wrap: wrap; }
.price-pill {
  flex: 1; min-width: 70px; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: 8px; padding: 10px 12px; text-align: center;
}
.price-pill-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-500); margin-bottom: 4px; }
.price-pill-value { font-size: 17px; font-weight: 700; color: var(--gray-900); }

.pill-np  { border-color: var(--green-border); background: var(--green-light); }
.pill-np  .price-pill-label { color: var(--green-dark); }
.pill-np  .price-pill-value { color: var(--green-dark); }
.pill-min {
  border-color: #15803d;
  background: #15803d;
  box-shadow: 0 2px 8px rgba(21,128,61,.35);
  transform: scale(1.08);
  position: relative;
}
.pill-min .price-pill-label { color: rgba(255,255,255,.85); }
.pill-min .price-pill-value { color: #ffffff; font-size: 20px; }
.pill-max { border-color: var(--teal-bd); background: var(--teal-bg); }
.pill-max .price-pill-label { color: var(--teal); }
.pill-max .price-pill-value { color: var(--teal); }

.price-variable { font-size: 12px; color: var(--gray-500); margin-top: 8px; font-style: italic; }

/* ---- NO RESULTS ---- */
.no-results { text-align: center; padding: 64px 20px; color: var(--gray-500); }
.no-results-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.no-results h3 { font-size: 18px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.no-results p  { font-size: 14px; }

/* ======================================
   ADMIN VIEW
   ====================================== */
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px 60px; }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.admin-title { font-size: 22px; font-weight: 700; color: var(--gray-900); }
.admin-sub   { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn-export, .btn-import, .btn-add-cat {
  padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all .18s; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-export  { background: var(--status-green-bg); color: var(--status-green); }
.btn-export:hover { background: var(--status-green-bd); }
.btn-import  { background: var(--green-light); color: var(--green-dark); }
.btn-import:hover { background: var(--green-border); }
.btn-add-cat { background: var(--purple-bg); color: var(--purple); }
.btn-add-cat:hover { background: #ddd6fe; }

/* ---- MODAL ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.35); z-index: 200;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: 14px; padding: 28px 28px 24px;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity:0; transform:scale(.96); } to { opacity:1; transform:scale(1); } }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.modal-sub   { font-size: 13px; color: var(--gray-500); margin-bottom: 14px; }

/* scope radio row */
.modal-scope-row { display: flex; gap: 16px; margin-bottom: 10px; }
.modal-scope-opt {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--gray-700);
  cursor: pointer; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--gray-200); flex: 1; transition: all .15s;
}
.modal-scope-opt:has(input:checked) { border-color: var(--green-primary); background: var(--green-light); color: var(--green-dark); }
.modal-scope-opt input { accent-color: var(--green-primary); }
.modal-scope-hint { font-size: 12px; color: var(--gray-500); margin-bottom: 14px; font-style: italic; min-height: 16px; }

.modal-input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--gray-300); border-radius: 8px;
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s; margin-bottom: 16px;
}
.modal-input:focus { border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(31,111,80,.15); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-confirm {
  padding: 9px 20px; background: var(--green-btn); color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.modal-confirm:hover { background: var(--green-btn-h); }
.modal-cancel {
  padding: 9px 16px; background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s;
}
.modal-cancel:hover { background: var(--gray-200); }
.modal-error { font-size: 12px; color: var(--red); margin-top: -10px; margin-bottom: 10px; min-height: 16px; }

/* ---- FORM CARD ---- */
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
.form-title { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.form-group input,
.form-group select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--gray-900); background: var(--white);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(31,111,80,.15); }

.label-tag { font-size: 10px; background: var(--green-light); color: var(--green-dark); padding: 2px 6px; border-radius: 4px; font-weight: 600; text-transform: uppercase; margin-left: 4px; }
.label-hint { font-size: 10px; color: var(--gray-500); font-weight: 400; text-transform: none; letter-spacing: 0; }

.form-actions { display: flex; gap: 10px; }
.btn-save {
  padding: 11px 22px; background: var(--green-btn); color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .18s, transform .15s; font-family: inherit;
}
.btn-save:hover { background: var(--green-btn-h); transform: translateY(-1px); }
.btn-cancel {
  padding: 11px 18px; background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.btn-cancel:hover { background: var(--gray-200); }
.form-error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ---- ADMIN LIST ---- */
.admin-list-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.admin-search-input {
  padding: 9px 14px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-size: 14px; font-family: inherit; width: 240px; outline: none;
}
.admin-search-input:focus { border-color: var(--green-primary); box-shadow: 0 0 0 3px rgba(31,111,80,.12); }

.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-row {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; transition: border-color .15s, box-shadow .15s;
}
.admin-row:hover { border-color: var(--green-border); box-shadow: var(--shadow-g); }
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-brand { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--green-primary); }
.admin-row-model { font-size: 15px; font-weight: 600; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-meta  { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.admin-row-prices { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-price-tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.tag-np  { background: var(--green-light); color: var(--green-dark); }
.tag-min { background: #f0fdf4; color: var(--status-green); }
.tag-max { background: var(--teal-bg); color: var(--teal); }

.admin-row-btns { display: flex; gap: 6px; flex-shrink: 0; }
.btn-edit {
  padding: 7px 13px; background: var(--green-light); color: var(--green-dark);
  border: none; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.btn-edit:hover { background: var(--green-border); }
.btn-delete {
  padding: 7px 13px; background: var(--red-bg); color: var(--red);
  border: none; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .15s; font-family: inherit;
}
.btn-delete:hover { background: #fecaca; }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--gray-900); color: #fff;
  padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 999; animation: slideUp .25s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ---- FOOTER ---- */
.site-footer {
  text-align: center; padding: 18px; font-size: 12px; color: var(--gray-500);
  border-top: 1px solid var(--gray-200); background: var(--white); margin-top: auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .header-inner { height: auto; padding: 10px 16px; flex-wrap: wrap; }
  .search-section { padding: 28px 16px 24px; }
  .main-content { padding: 20px 16px 40px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .admin-wrap { padding: 20px 16px 48px; }
  .admin-header { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-row { flex-wrap: wrap; }
  .admin-search-input { width: 100%; }
  .admin-list-header { flex-direction: column; align-items: flex-start; }
  .modal-box { margin: 16px; }
  .modal-scope-row { flex-direction: column; }
  .ipad-subfilter-inner { padding: 8px 16px; }
}

/* ======================================
   BOOT LOADER
   ====================================== */
#bootLoader {
  position: fixed; inset: 0; z-index: 9999;
  background: #021a0c;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease;
}
#bootLoader.fade-out { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; }
.boot-orb { width: 80px; height: 80px; margin: 0 auto 20px; animation: bootPulse 2s ease-in-out infinite; }
@keyframes bootPulse {
  0%,100% { transform: scale(1);   filter: drop-shadow(0 0 10px #00ff6680); }
  50%      { transform: scale(1.07); filter: drop-shadow(0 0 22px #00ff88cc); }
}
.boot-brand { font-family:'Inter',sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: #00ff88; text-transform: uppercase; margin-bottom: 24px; }
.boot-msg   { font-family:'Inter',sans-serif; font-size: 14px; color: #a0ffcc; min-height: 20px; margin-bottom: 20px; letter-spacing: .5px; }
.boot-bar   { width: 220px; height: 3px; background: #0a3d22; border-radius: 2px; margin: 0 auto 16px; overflow: hidden; }
.boot-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#00c853,#00ff88); border-radius: 2px; transition: width .4s ease; }
.boot-sub   { font-family:'Inter',sans-serif; font-size: 11px; color: #2d7a4f; letter-spacing: 1px; text-transform: uppercase; }

/* ======================================
   RON ORB
   ====================================== */
#ronOrb {
  position: fixed; bottom: 24px; left: 24px; z-index: 1000;
  width: 62px; height: 62px; cursor: pointer;
  animation: ronFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(0,255,120,.4));
  transition: filter .3s;
  user-select: none;
}
#ronOrb:hover { filter: drop-shadow(0 0 18px rgba(0,255,120,.7)); }
#ronOrbSvg { width: 100%; height: 100%; }

@keyframes ronFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-7px); }
}
@keyframes ronPulse {
  0%,100% { filter: drop-shadow(0 0 10px rgba(0,255,120,.35)); }
  50%      { filter: drop-shadow(0 0 22px rgba(0,255,120,.75)); }
}
@keyframes ronBounce {
  0%,100% { transform: translateY(0); }
  30%      { transform: translateY(-12px); }
  60%      { transform: translateY(-5px); }
}
@keyframes ronWobble {
  0%,100% { transform: rotate(0deg); }
  20%      { transform: rotate(-6deg); }
  40%      { transform: rotate(6deg); }
  60%      { transform: rotate(-4deg); }
  80%      { transform: rotate(3deg); }
}
@keyframes ronShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}
@keyframes ronSleep {
  0%,100% { transform: translateY(0) scale(1); opacity:1; }
  50%      { transform: translateY(3px) scale(.97); opacity:.75; }
}

#ronOrb.mood-thinking { animation: ronPulse 0.8s ease-in-out infinite; }
#ronOrb.mood-happy    { animation: ronBounce 0.6s ease; }
#ronOrb.mood-confused { animation: ronWobble 0.7s ease; }
#ronOrb.mood-annoyed  { animation: ronShake 0.5s ease; }
#ronOrb.mood-sleeping { animation: ronSleep 2.5s ease-in-out infinite; }

/* RON speech bubble */
.ron-bubble {
  position: absolute;
  bottom: 70px; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #1a4a2e;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  padding: 7px 13px;
  border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  border: 1px solid #b7dfd0;
  pointer-events: none;
  animation: bubblePop .25s ease;
  z-index: 1001;
}
.ron-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
  border-bottom: none;
}
@keyframes bubblePop {
  from { opacity:0; transform: translateX(-50%) scale(.85); }
  to   { opacity:1; transform: translateX(-50%) scale(1); }
}

/* ======================================
   RON CHAT PANEL
   ====================================== */
.ron-panel {
  position: fixed;
  bottom: 98px; left: 24px;
  width: 320px; max-height: 480px;
  background: #fff;
  border: 1px solid #b7dfd0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  animation: panelSlideUp .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes panelSlideUp {
  from { opacity:0; transform: translateY(20px) scale(.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.ron-panel-header {
  background: linear-gradient(135deg,#0a3d22,#1a6e40);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.ron-header-left { display: flex; align-items: center; gap: 10px; }
.ron-header-orb  { width: 36px; height: 36px; flex-shrink: 0; }
.ron-header-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.ron-header-status { font-size: 11px; color: #7dffb4; font-weight: 500; }
.ron-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ron-close:hover { background: rgba(255,255,255,.3); }

.ron-messages {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: #b7dfd0 transparent;
}

/* message bubbles */
.ron-msg { display: flex; align-items: flex-end; gap: 7px; }
.ron-msg.ron  { flex-direction: row; }
.ron-msg.user { flex-direction: row-reverse; }

.ron-msg-avatar {
  width: 28px; height: 28px; flex-shrink: 0;
}
.ron-msg-avatar svg { width: 100%; height: 100%; }

.ron-msg-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13px; line-height: 1.45;
  font-family: 'Inter', sans-serif;
}
.ron-msg.ron  .ron-msg-bubble { background: #eaf6f0; color: #0f3d22; border-bottom-left-radius: 4px; }
.ron-msg.user .ron-msg-bubble { background: #1F6F50; color: #fff; border-bottom-right-radius: 4px; }

/* RON price card inside chat */
.ron-price-card {
  background: #fff;
  border: 1px solid #b7dfd0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 6px;
  border-top: 3px solid #1F6F50;
}
.ron-card-brand { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: #1F6F50; }
.ron-card-model { font-size: 14px; font-weight: 700; color: #0f3d22; margin: 2px 0 6px; }
.ron-card-type  { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-bottom: 10px; background: #eaf6f0; color: #1a5c35; }
.ron-card-prices { display: flex; gap: 7px; }
.ron-card-pill {
  flex: 1; border-radius: 8px; padding: 7px 8px; text-align: center;
  border: 1px solid #e4e4e7;
}
.ron-card-pill-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: #71717a; margin-bottom: 3px; }
.ron-card-pill-value { font-size: 15px; font-weight: 700; color: #0f3d22; }
.ron-card-pill.p-min { background: #15803d; border-color: #15803d; }
.ron-card-pill.p-min .ron-card-pill-label { color: rgba(255,255,255,.8); }
.ron-card-pill.p-min .ron-card-pill-value { color: #fff; }
.ron-card-pill.p-np  { background: #eaf6f0; border-color: #b7dfd0; }
.ron-card-pill.p-np  .ron-card-pill-value { color: #1F6F50; }
.ron-card-pill.p-max { background: #ecfeff; border-color: #a5f3fc; }
.ron-card-pill.p-max .ron-card-pill-value { color: #0e7490; }

/* suggestion chips inside RON */
.ron-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ron-chip {
  background: #eaf6f0; color: #1F6F50;
  border: 1px solid #b7dfd0; border-radius: 20px;
  padding: 4px 12px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all .15s; font-family: 'Inter', sans-serif;
}
.ron-chip:hover { background: #1F6F50; color: #fff; }

/* thinking dots */
.ron-thinking { display: flex; gap: 4px; padding: 4px 2px; }
.ron-thinking span {
  width: 7px; height: 7px; border-radius: 50%; background: #1F6F50;
  animation: ronDot 1.2s ease-in-out infinite;
}
.ron-thinking span:nth-child(2) { animation-delay: .2s; }
.ron-thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes ronDot {
  0%,80%,100% { transform: scale(.7); opacity:.4; }
  40%          { transform: scale(1.1); opacity:1; }
}

/* RON input */
.ron-input-row {
  display: flex; gap: 8px; padding: 10px 14px;
  border-top: 1px solid #e4e4e7;
  background: #fff;
}
.ron-input {
  flex: 1; padding: 9px 12px;
  border: 1px solid #d4d4d8; border-radius: 20px;
  font-size: 13px; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color .15s;
  color: #18181b;
}
.ron-input:focus { border-color: #1F6F50; box-shadow: 0 0 0 3px rgba(31,111,80,.12); }
.ron-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: #1F6F50; color: #fff; border: none;
  font-size: 16px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.ron-send:hover { background: #175640; transform: scale(1.05); }

@media (max-width: 640px) {
  .ron-panel { left: 12px; right: 12px; width: auto; }
  #ronOrb    { left: 16px; bottom: 16px; }
}
