.unit-converter-shell{
  max-width:920px;
  margin:0 auto;
  padding:0 16px;
}
.unit-converter-card{
  background:#fff;
  border:1px solid #e3e8f1;
  border-radius:24px;
  padding:30px;
  box-shadow:0 18px 55px rgba(15,38,72,.08);
}
.uc-categories{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-bottom:28px;
}
.uc-category{
  appearance:none;
  border:1px solid #dfe5ee;
  background:#f8faff;
  color:#42526a;
  border-radius:12px;
  padding:10px 15px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.uc-category.active{
  background:#7251f5;
  border-color:#7251f5;
  color:#fff;
}
.uc-conversion{
  display:grid;
  grid-template-columns:1fr 54px 1fr;
  align-items:end;
  gap:14px;
}
.uc-field label{
  display:block;
  margin-bottom:9px;
  font-weight:800;
  color:#172b4d;
}
.uc-field input,
.uc-field select{
  width:100%;
  box-sizing:border-box;
  border:1px solid #dce3ed;
  border-radius:14px;
  background:#fff;
  color:#172b4d;
  min-height:52px;
  padding:11px 14px;
  font:inherit;
  outline:none;
}
.uc-field input{
  font-size:22px;
  font-weight:800;
  margin-bottom:10px;
}
.uc-field input:focus,
.uc-field select:focus{
  border-color:#7251f5;
  box-shadow:0 0 0 3px rgba(114,81,245,.10);
}
.uc-swap{
  width:52px;
  height:52px;
  border:1px solid #dddff0;
  border-radius:15px;
  background:#f5f3ff;
  color:#6848ed;
  font-size:24px;
  cursor:pointer;
}
.uc-result-box{
  margin-top:24px;
  padding:22px;
  border-radius:18px;
  background:linear-gradient(135deg,#f5f3ff,#fafbff);
  border:1px solid #e3defe;
}
.uc-result-label{
  color:#777f90;
  font-size:14px;
  font-weight:700;
}
.uc-result{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-top:8px;
}
.uc-result strong{
  color:#172b4d;
  font-size:30px;
  overflow-wrap:anywhere;
}
.uc-copy{
  border:0;
  border-radius:11px;
  background:#7251f5;
  color:#fff;
  padding:10px 15px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.uc-formula{
  margin-top:15px;
  color:#697386;
  font-size:14px;
}
.uc-quick{
  margin-top:26px;
}
.uc-quick h3{
  font-size:16px;
  margin:0 0 12px;
  color:#172b4d;
}
.uc-quick-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.uc-quick button{
  border:1px solid #e0e5ee;
  background:#fff;
  color:#4b5870;
  border-radius:10px;
  padding:8px 12px;
  cursor:pointer;
  font:inherit;
}
html[data-theme="dark"] .unit-converter-card,
html.dark .unit-converter-card{
  background:#111827;
  border-color:#293548;
}
html[data-theme="dark"] .uc-field label,
html[data-theme="dark"] .uc-result strong,
html[data-theme="dark"] .uc-quick h3,
html.dark .uc-field label,
html.dark .uc-result strong,
html.dark .uc-quick h3{
  color:#f3f6fb;
}
html[data-theme="dark"] .uc-field input,
html[data-theme="dark"] .uc-field select,
html.dark .uc-field input,
html.dark .uc-field select{
  background:#182234;
  border-color:#344258;
  color:#fff;
}
html[data-theme="dark"] .uc-result-box,
html.dark .uc-result-box{
  background:#182234;
  border-color:#344258;
}
html[data-theme="dark"] .uc-category,
html[data-theme="dark"] .uc-quick button,
html.dark .uc-category,
html.dark .uc-quick button{
  background:#182234;
  border-color:#344258;
  color:#dbe4f2;
}
html[data-theme="dark"] .uc-category.active,
html.dark .uc-category.active{
  background:#7251f5;
  color:#fff;
}
@media(max-width:700px){
  .unit-converter-card{padding:20px 15px;border-radius:19px}
  .uc-conversion{grid-template-columns:1fr}
  .uc-swap{margin:auto;transform:rotate(90deg)}
  .uc-result{align-items:flex-start;flex-direction:column}
  .uc-result strong{font-size:25px}
  .uc-copy{width:100%}
}

/* =========================================================
   NUJIZ UNIT CONVERTER — PAGE LAYOUT FIX
   ========================================================= */

/* Hero */
body[data-tool-id="unit-converter"] .tool-detail-hero{
  display:block !important;
  padding:64px 20px 48px !important;
  background:
    radial-gradient(circle at 15% 15%,rgba(114,81,245,.10),transparent 28%),
    radial-gradient(circle at 85% 20%,rgba(201,244,91,.14),transparent 25%),
    linear-gradient(180deg,#fbfbff 0%,#fff 100%) !important;
  border-bottom:1px solid #eef0f5;
}

body[data-tool-id="unit-converter"] .tool-detail-grid{
  max-width:1180px;
  margin:0 auto;
  display:grid !important;
  grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);
  align-items:center;
  gap:60px;
}

body[data-tool-id="unit-converter"] .tool-detail-copy{
  display:block !important;
}

body[data-tool-id="unit-converter"] .section-tag{
  display:inline-flex !important;
  align-items:center;
  width:auto !important;
  padding:8px 14px;
  margin-bottom:17px;
  border-radius:999px;
  background:#f1edff;
  color:#6848ed;
  font-size:13px;
  font-weight:800;
}

body[data-tool-id="unit-converter"] .tool-detail-copy h1{
  display:block !important;
  margin:0 0 16px !important;
  color:#172b4d;
  font-size:clamp(34px,4vw,52px) !important;
  line-height:1.25 !important;
  font-weight:900 !important;
  letter-spacing:-.5px;
}

body[data-tool-id="unit-converter"] .tool-detail-copy > p{
  display:block !important;
  max-width:720px;
  margin:0 0 22px !important;
  color:#64748b;
  font-size:18px !important;
  line-height:1.9 !important;
}

body[data-tool-id="unit-converter"] .tool-detail-points{
  display:flex !important;
  flex-wrap:wrap;
  gap:10px 18px;
  margin:0 0 27px;
}

body[data-tool-id="unit-converter"] .tool-detail-points span{
  display:inline-flex !important;
  align-items:center;
  gap:5px;
  color:#475569;
  font-size:14px;
  font-weight:700;
}

body[data-tool-id="unit-converter"] .tool-hero-actions{
  display:flex !important;
  flex-wrap:wrap;
  gap:12px;
}

body[data-tool-id="unit-converter"] .tool-hero-actions a{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 21px;
  border-radius:13px;
  text-decoration:none !important;
  font-weight:800;
  transition:.2s ease;
}

body[data-tool-id="unit-converter"] .tool-hero-actions a:first-child{
  background:#7251f5;
  color:#fff;
  box-shadow:0 10px 25px rgba(114,81,245,.20);
}

body[data-tool-id="unit-converter"] .tool-hero-actions a:last-child{
  background:#fff;
  color:#354052;
  border:1px solid #dde3ec;
}

body[data-tool-id="unit-converter"] .tool-hero-actions a:hover{
  transform:translateY(-2px);
}

/* Hero visual */
body[data-tool-id="unit-converter"] .tool-detail-visual{
  min-height:270px;
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  border:1px solid #e4e0fb;
  border-radius:30px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(245,242,255,.96));
  box-shadow:0 24px 65px rgba(55,48,100,.10);
}

body[data-tool-id="unit-converter"] .tool-detail-icon{
  width:100px;
  height:100px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  border-radius:28px;
  background:linear-gradient(135deg,#7251f5,#9277ff);
  color:#fff;
  font-size:50px !important;
  line-height:1;
  box-shadow:0 18px 35px rgba(114,81,245,.25);
}

body[data-tool-id="unit-converter"] .tool-detail-visual b{
  display:block !important;
  color:#4a3d83;
  font-size:15px;
  letter-spacing:1.5px;
}

/* Assurance */
body[data-tool-id="unit-converter"] .tool-assurance-strip{
  max-width:1000px !important;
  margin:-1px auto 0 !important;
  padding:22px 20px !important;
  display:grid !important;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  background:#fff;
}

body[data-tool-id="unit-converter"] .tool-assurance-strip > div{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:76px;
  padding:12px 16px;
  border:1px solid #edf0f5;
  border-radius:16px;
  background:#fff;
}

body[data-tool-id="unit-converter"] .tool-assurance-strip > div > span{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:11px;
  background:#f3f0ff;
  color:#7251f5;
  font-size:18px;
}

body[data-tool-id="unit-converter"] .tool-assurance-strip p{
  display:flex !important;
  flex-direction:column;
  margin:0 !important;
  line-height:1.45;
}

body[data-tool-id="unit-converter"] .tool-assurance-strip b{
  display:block !important;
  color:#26354d;
  font-size:14px;
}

body[data-tool-id="unit-converter"] .tool-assurance-strip small{
  display:block !important;
  margin-top:3px;
  color:#8490a3;
  font-size:12px;
}

/* Workspace */
body[data-tool-id="unit-converter"] .uc-workspace{
  padding:48px 0 75px;
  background:#fff;
}

body[data-tool-id="unit-converter"] .uc-intro{
  padding:0 20px;
  margin-bottom:28px;
}

body[data-tool-id="unit-converter"] .uc-intro h2{
  color:#172b4d;
  font-size:32px;
  font-weight:900;
}

body[data-tool-id="unit-converter"] .unit-converter-shell{
  max-width:960px;
}

body[data-tool-id="unit-converter"] .unit-converter-card{
  padding:32px;
  border-radius:26px;
  box-shadow:0 20px 60px rgba(30,41,59,.09);
}

/* Categories */
body[data-tool-id="unit-converter"] .uc-categories{
  justify-content:center;
  margin-bottom:32px;
}

body[data-tool-id="unit-converter"] .uc-category{
  min-height:43px;
  padding:9px 15px;
  border-radius:12px;
  transition:.18s ease;
}

body[data-tool-id="unit-converter"] .uc-category:hover{
  transform:translateY(-1px);
  border-color:#bfb3fa;
}

body[data-tool-id="unit-converter"] .uc-category.active{
  box-shadow:0 7px 18px rgba(114,81,245,.20);
}

/* Conversion controls */
body[data-tool-id="unit-converter"] .uc-conversion{
  gap:16px;
}

body[data-tool-id="unit-converter"] .uc-field input,
body[data-tool-id="unit-converter"] .uc-field select{
  border:1px solid #dbe2ec;
  box-shadow:none;
}

body[data-tool-id="unit-converter"] .uc-field input:focus,
body[data-tool-id="unit-converter"] .uc-field select:focus{
  border-color:#7251f5;
  box-shadow:0 0 0 4px rgba(114,81,245,.09);
}

body[data-tool-id="unit-converter"] .uc-swap{
  transition:.18s ease;
}

body[data-tool-id="unit-converter"] .uc-swap:hover{
  background:#7251f5;
  color:#fff;
  transform:rotate(180deg);
}

/* Result */
body[data-tool-id="unit-converter"] .uc-result-box{
  margin-top:25px;
  padding:25px;
}

body[data-tool-id="unit-converter"] .uc-result strong{
  font-size:32px;
  font-weight:900;
}

body[data-tool-id="unit-converter"] .uc-copy{
  min-width:120px;
  transition:.18s ease;
}

body[data-tool-id="unit-converter"] .uc-copy:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 17px rgba(114,81,245,.20);
}

/* Dark mode */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-detail-hero,
html.dark body[data-tool-id="unit-converter"] .tool-detail-hero{
  background:#0f1724 !important;
  border-color:#263246;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-detail-copy h1,
html.dark body[data-tool-id="unit-converter"] .tool-detail-copy h1{
  color:#f5f7fb;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-detail-copy > p,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-detail-points span,
html.dark body[data-tool-id="unit-converter"] .tool-detail-copy > p,
html.dark body[data-tool-id="unit-converter"] .tool-detail-points span{
  color:#b6c0d0;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-detail-visual,
html.dark body[data-tool-id="unit-converter"] .tool-detail-visual{
  background:#151f30;
  border-color:#334057;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-detail-visual b,
html.dark body[data-tool-id="unit-converter"] .tool-detail-visual b{
  color:#d9d1ff;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-assurance-strip,
html.dark body[data-tool-id="unit-converter"] .tool-assurance-strip,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-workspace,
html.dark body[data-tool-id="unit-converter"] .uc-workspace{
  background:#0f1724;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-assurance-strip > div,
html.dark body[data-tool-id="unit-converter"] .tool-assurance-strip > div{
  background:#151f30;
  border-color:#29364b;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-assurance-strip b,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-intro h2,
html.dark body[data-tool-id="unit-converter"] .tool-assurance-strip b,
html.dark body[data-tool-id="unit-converter"] .uc-intro h2{
  color:#f4f6fa;
}

/* Mobile */
@media(max-width:800px){

  body[data-tool-id="unit-converter"] .tool-detail-hero{
    padding:38px 16px 34px !important;
  }

  body[data-tool-id="unit-converter"] .tool-detail-grid{
    grid-template-columns:1fr;
    gap:28px;
    text-align:center;
  }

  body[data-tool-id="unit-converter"] .tool-detail-copy > p{
    margin-left:auto !important;
    margin-right:auto !important;
  }

  body[data-tool-id="unit-converter"] .tool-detail-points,
  body[data-tool-id="unit-converter"] .tool-hero-actions{
    justify-content:center;
  }

  body[data-tool-id="unit-converter"] .tool-detail-copy h1{
    font-size:34px !important;
  }

  body[data-tool-id="unit-converter"] .tool-detail-copy > p{
    font-size:16px !important;
  }

  body[data-tool-id="unit-converter"] .tool-detail-visual{
    min-height:200px;
    max-width:430px;
    width:100%;
    margin:auto;
  }

  body[data-tool-id="unit-converter"] .tool-detail-icon{
    width:82px;
    height:82px;
    font-size:40px !important;
  }

  body[data-tool-id="unit-converter"] .tool-assurance-strip{
    grid-template-columns:1fr;
    padding:18px 16px !important;
  }

  body[data-tool-id="unit-converter"] .tool-assurance-strip > div{
    justify-content:flex-start;
  }

  body[data-tool-id="unit-converter"] .uc-workspace{
    padding-top:34px;
  }

  body[data-tool-id="unit-converter"] .uc-intro h2{
    font-size:27px;
  }

  body[data-tool-id="unit-converter"] .unit-converter-card{
    padding:20px 15px;
  }

  body[data-tool-id="unit-converter"] .uc-categories{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body[data-tool-id="unit-converter"] .uc-category{
    width:100%;
  }

  body[data-tool-id="unit-converter"] .uc-swap:hover{
    transform:rotate(90deg);
  }
}

/* =========================================================
   UNIT CONVERTER — DARK MODE READABILITY FIX
   ========================================================= */

/* Category tabs */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-category,
html.dark body[data-tool-id="unit-converter"] .uc-category,
body.dark-mode[data-tool-id="unit-converter"] .uc-category{
    color:#d9e2f1 !important;
    background:#172235 !important;
    border-color:#34445d !important;
    opacity:1 !important;
    -webkit-text-fill-color:#d9e2f1 !important;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-category:hover,
html.dark body[data-tool-id="unit-converter"] .uc-category:hover,
body.dark-mode[data-tool-id="unit-converter"] .uc-category:hover{
    color:#ffffff !important;
    background:#202e45 !important;
    border-color:#7251f5 !important;
    -webkit-text-fill-color:#ffffff !important;
}

/* Active category */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-category.active,
html.dark body[data-tool-id="unit-converter"] .uc-category.active,
body.dark-mode[data-tool-id="unit-converter"] .uc-category.active{
    color:#ffffff !important;
    background:#7251f5 !important;
    border-color:#8064f8 !important;
    opacity:1 !important;
    -webkit-text-fill-color:#ffffff !important;
    box-shadow:0 8px 22px rgba(114,81,245,.30) !important;
}

/* Labels */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-field label,
html.dark body[data-tool-id="unit-converter"] .uc-field label,
body.dark-mode[data-tool-id="unit-converter"] .uc-field label{
    color:#f3f6fb !important;
    opacity:1 !important;
}

/* Inputs and selects */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-field input,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-field select,
html.dark body[data-tool-id="unit-converter"] .uc-field input,
html.dark body[data-tool-id="unit-converter"] .uc-field select,
body.dark-mode[data-tool-id="unit-converter"] .uc-field input,
body.dark-mode[data-tool-id="unit-converter"] .uc-field select{
    color:#f4f7fc !important;
    background:#0f1724 !important;
    border-color:#40506a !important;
    opacity:1 !important;
    -webkit-text-fill-color:#f4f7fc !important;
}

/* Select options */
html[data-theme="dark"] body[data-tool-id="unit-converter"] select option,
html.dark body[data-tool-id="unit-converter"] select option,
body.dark-mode[data-tool-id="unit-converter"] select option{
    color:#f4f7fc !important;
    background:#151f30 !important;
}

/* Result area */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-result-label,
html.dark body[data-tool-id="unit-converter"] .uc-result-label,
body.dark-mode[data-tool-id="unit-converter"] .uc-result-label{
    color:#aebbd0 !important;
    opacity:1 !important;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-result strong,
html.dark body[data-tool-id="unit-converter"] .uc-result strong,
body.dark-mode[data-tool-id="unit-converter"] .uc-result strong{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-formula,
html.dark body[data-tool-id="unit-converter"] .uc-formula,
body.dark-mode[data-tool-id="unit-converter"] .uc-formula{
    color:#aebbd0 !important;
    opacity:1 !important;
}

/* Quick conversions title */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-quick h3,
html.dark body[data-tool-id="unit-converter"] .uc-quick h3,
body.dark-mode[data-tool-id="unit-converter"] .uc-quick h3{
    color:#f4f7fc !important;
}

/* Quick conversion buttons */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-quick-grid button,
html.dark body[data-tool-id="unit-converter"] .uc-quick-grid button,
body.dark-mode[data-tool-id="unit-converter"] .uc-quick-grid button{
    color:#dce5f3 !important;
    background:#172235 !important;
    border-color:#34445d !important;
    opacity:1 !important;
    -webkit-text-fill-color:#dce5f3 !important;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-quick-grid button:hover,
html.dark body[data-tool-id="unit-converter"] .uc-quick-grid button:hover,
body.dark-mode[data-tool-id="unit-converter"] .uc-quick-grid button:hover{
    color:#ffffff !important;
    background:#7251f5 !important;
    border-color:#8064f8 !important;
    -webkit-text-fill-color:#ffffff !important;
}

/* Copy button */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-copy,
html.dark body[data-tool-id="unit-converter"] .uc-copy,
body.dark-mode[data-tool-id="unit-converter"] .uc-copy{
    color:#ffffff !important;
    background:#7251f5 !important;
    -webkit-text-fill-color:#ffffff !important;
}

/* Intro */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-intro p,
html.dark body[data-tool-id="unit-converter"] .uc-intro p,
body.dark-mode[data-tool-id="unit-converter"] .uc-intro p{
    color:#b9c4d5 !important;
}

/* Note */
html[data-theme="dark"] body[data-tool-id="unit-converter"] .uc-note,
html.dark body[data-tool-id="unit-converter"] .uc-note,
body.dark-mode[data-tool-id="unit-converter"] .uc-note{
    color:#aebbd0 !important;
}

/* Readonly result placeholder */
html[data-theme="dark"] body[data-tool-id="unit-converter"] input[readonly],
html.dark body[data-tool-id="unit-converter"] input[readonly],
body.dark-mode[data-tool-id="unit-converter"] input[readonly]{
    color:#dce5f3 !important;
    -webkit-text-fill-color:#dce5f3 !important;
    opacity:1 !important;
}

/* =========================================================
   UNIT CONVERTER — RATING SECTION FIX
   ========================================================= */

/* Rating outer section */
body[data-tool-id="unit-converter"] .tool-rating-section,
body[data-tool-id="unit-converter"] .rating-section,
body[data-tool-id="unit-converter"] [class*="tool-rating"]{
    max-width:1180px !important;
    width:calc(100% - 32px) !important;
    margin:42px auto !important;
    padding:0 !important;
    border:0 !important;
}

/* Rating card */
body[data-tool-id="unit-converter"] .tool-rating-box,
body[data-tool-id="unit-converter"] .rating-box,
body[data-tool-id="unit-converter"] [class*="rating-card"]{
    max-width:760px !important;
    width:100% !important;
    margin:0 auto !important;
    padding:30px 24px !important;
    text-align:center !important;
    border:1px solid #e2e7ef !important;
    border-radius:22px !important;
    background:#fff !important;
    box-shadow:0 12px 35px rgba(30,41,59,.06) !important;
}

/* Force rating content to center */
body[data-tool-id="unit-converter"] .tool-rating-section *,
body[data-tool-id="unit-converter"] .rating-section *{
    text-align:center;
}

body[data-tool-id="unit-converter"] .tool-rating-section h2,
body[data-tool-id="unit-converter"] .tool-rating-section h3,
body[data-tool-id="unit-converter"] .rating-section h2,
body[data-tool-id="unit-converter"] .rating-section h3{
    margin:0 0 9px !important;
    color:#172b4d !important;
    font-size:24px !important;
    line-height:1.4 !important;
    font-weight:900 !important;
}

body[data-tool-id="unit-converter"] .tool-rating-section p,
body[data-tool-id="unit-converter"] .rating-section p{
    margin:0 0 16px !important;
    color:#718096 !important;
    font-size:14px !important;
}

/* Stars container */
body[data-tool-id="unit-converter"] .rating-stars,
body[data-tool-id="unit-converter"] .tool-rating-stars,
body[data-tool-id="unit-converter"] [class*="rating-stars"]{
    display:flex !important;
    direction:ltr !important;
    justify-content:center !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
    margin:12px auto !important;
}

/* Star buttons */
body[data-tool-id="unit-converter"] .rating-stars button,
body[data-tool-id="unit-converter"] .tool-rating-stars button,
body[data-tool-id="unit-converter"] [class*="rating-stars"] button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    padding:0 !important;
    margin:0 !important;
    border:1px solid #dce2eb !important;
    border-radius:11px !important;
    background:#f8fafc !important;
    color:#8b97a8 !important;
    font-size:21px !important;
    line-height:1 !important;
    cursor:pointer !important;
    transition:.18s ease !important;
}

body[data-tool-id="unit-converter"] .rating-stars button:hover,
body[data-tool-id="unit-converter"] .tool-rating-stars button:hover,
body[data-tool-id="unit-converter"] [class*="rating-stars"] button:hover{
    color:#7251f5 !important;
    border-color:#7251f5 !important;
    background:#f2efff !important;
    transform:translateY(-2px) !important;
}

/* Rating count */
body[data-tool-id="unit-converter"] .rating-count,
body[data-tool-id="unit-converter"] [class*="rating-count"]{
    display:block !important;
    width:100% !important;
    margin-top:10px !important;
    color:#7a8799 !important;
    font-size:13px !important;
    text-align:center !important;
}

/* ---------------- DARK MODE ---------------- */

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-rating-box,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .rating-box,
html[data-theme="dark"] body[data-tool-id="unit-converter"] [class*="rating-card"],
html.dark body[data-tool-id="unit-converter"] .tool-rating-box,
html.dark body[data-tool-id="unit-converter"] .rating-box{
    background:#151f30 !important;
    border-color:#344158 !important;
    box-shadow:0 15px 40px rgba(0,0,0,.18) !important;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-rating-section h2,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-rating-section h3,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .rating-section h2,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .rating-section h3,
html.dark body[data-tool-id="unit-converter"] .tool-rating-section h2,
html.dark body[data-tool-id="unit-converter"] .tool-rating-section h3{
    color:#f5f7fb !important;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-rating-section p,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .rating-section p,
html.dark body[data-tool-id="unit-converter"] .tool-rating-section p,
html.dark body[data-tool-id="unit-converter"] .rating-section p{
    color:#aeb9ca !important;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .rating-stars button,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-rating-stars button,
html[data-theme="dark"] body[data-tool-id="unit-converter"] [class*="rating-stars"] button,
html.dark body[data-tool-id="unit-converter"] .rating-stars button,
html.dark body[data-tool-id="unit-converter"] .tool-rating-stars button{
    color:#d8dfeb !important;
    background:#1b2739 !important;
    border-color:#3c4a60 !important;
}

html[data-theme="dark"] body[data-tool-id="unit-converter"] .rating-stars button:hover,
html[data-theme="dark"] body[data-tool-id="unit-converter"] .tool-rating-stars button:hover,
html[data-theme="dark"] body[data-tool-id="unit-converter"] [class*="rating-stars"] button:hover,
html.dark body[data-tool-id="unit-converter"] .rating-stars button:hover{
    color:#fff !important;
    background:#7251f5 !important;
    border-color:#8064f8 !important;
}

/* Mobile */
@media(max-width:700px){
    body[data-tool-id="unit-converter"] .tool-rating-section,
    body[data-tool-id="unit-converter"] .rating-section,
    body[data-tool-id="unit-converter"] [class*="tool-rating"]{
        width:calc(100% - 24px) !important;
        margin:28px auto !important;
    }

    body[data-tool-id="unit-converter"] .tool-rating-box,
    body[data-tool-id="unit-converter"] .rating-box,
    body[data-tool-id="unit-converter"] [class*="rating-card"]{
        padding:25px 16px !important;
        border-radius:18px !important;
    }

    body[data-tool-id="unit-converter"] .rating-stars button,
    body[data-tool-id="unit-converter"] .tool-rating-stars button,
    body[data-tool-id="unit-converter"] [class*="rating-stars"] button{
        width:39px !important;
        height:39px !important;
        min-width:39px !important;
    }
}

/* =========================================================
   NUJIZ UNIT CONVERTER — HLG RATING FINAL FIX
   ========================================================= */

body[data-tool-id="unit-converter"] .hlg-rating-box{
    box-sizing:border-box !important;
    width:calc(100% - 32px) !important;
    max-width:760px !important;

    margin:48px auto !important;
    padding:30px 28px !important;

    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;

    text-align:center !important;

    background:#ffffff !important;
    border:1px solid #e1e7f0 !important;
    border-radius:22px !important;

    box-shadow:
        0 18px 45px rgba(30,41,59,.07) !important;

    overflow:hidden !important;
}

/* Title */
body[data-tool-id="unit-converter"] .hlg-rating-title{
    width:100% !important;
    margin:0 0 8px !important;
    padding:0 !important;

    color:#172b4d !important;
    font-size:24px !important;
    line-height:1.4 !important;
    font-weight:900 !important;

    text-align:center !important;
}

/* Subtitle */
body[data-tool-id="unit-converter"] .hlg-rating-subtitle{
    width:100% !important;
    margin:0 0 18px !important;
    padding:0 !important;

    color:#718096 !important;
    font-size:14px !important;
    line-height:1.7 !important;

    text-align:center !important;
}

/* Stars row */
body[data-tool-id="unit-converter"] .hlg-rating-stars{
    width:100% !important;
    margin:0 auto 13px !important;
    padding:0 !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;

    gap:9px !important;
    direction:ltr !important;
}

/* Individual stars */
body[data-tool-id="unit-converter"] .hlg-rating-star{
    appearance:none !important;
    -webkit-appearance:none !important;

    box-sizing:border-box !important;

    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    min-height:46px !important;

    margin:0 !important;
    padding:0 !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    color:#8b97a8 !important;
    -webkit-text-fill-color:#8b97a8 !important;

    background:#f7f9fc !important;
    border:1px solid #dce3ed !important;
    border-radius:12px !important;

    font-family:Arial,sans-serif !important;
    font-size:24px !important;
    font-weight:400 !important;
    line-height:1 !important;

    cursor:pointer !important;

    transition:
        transform .16s ease,
        color .16s ease,
        background .16s ease,
        border-color .16s ease !important;
}

body[data-tool-id="unit-converter"] .hlg-rating-star:hover,
body[data-tool-id="unit-converter"] .hlg-rating-star.hover{
    color:#7251f5 !important;
    -webkit-text-fill-color:#7251f5 !important;

    background:#f0edff !important;
    border-color:#927cff !important;

    transform:translateY(-2px) scale(1.04) !important;
}

/* Selected/current rating */
body[data-tool-id="unit-converter"] .hlg-rating-star.active{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;

    background:#7251f5 !important;
    border-color:#7251f5 !important;

    box-shadow:
        0 7px 17px rgba(114,81,245,.24) !important;
}

/* Rating summary */
body[data-tool-id="unit-converter"] .hlg-rating-summary{
    width:100% !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:wrap !important;

    gap:5px !important;

    margin:0 !important;
    padding:0 !important;

    color:#718096 !important;
    font-size:13px !important;
    line-height:1.6 !important;

    text-align:center !important;
}

body[data-tool-id="unit-converter"] .hlg-rating-value{
    color:#172b4d !important;
    font-weight:900 !important;
}

/* Status message */
body[data-tool-id="unit-converter"] .hlg-rating-message{
    width:100% !important;
    min-height:20px !important;

    margin-top:9px !important;

    color:#7251f5 !important;
    font-size:13px !important;
    font-weight:700 !important;

    text-align:center !important;
}


/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="dark"]
body[data-tool-id="unit-converter"] .hlg-rating-box,
html.dark
body[data-tool-id="unit-converter"] .hlg-rating-box,
body.dark-mode[data-tool-id="unit-converter"] .hlg-rating-box{

    background:#151f30 !important;
    border-color:#344158 !important;

    box-shadow:
        0 18px 45px rgba(0,0,0,.20) !important;
}

html[data-theme="dark"]
body[data-tool-id="unit-converter"] .hlg-rating-title,
html.dark
body[data-tool-id="unit-converter"] .hlg-rating-title,
body.dark-mode[data-tool-id="unit-converter"] .hlg-rating-title{

    color:#f5f7fb !important;
}

html[data-theme="dark"]
body[data-tool-id="unit-converter"] .hlg-rating-subtitle,
html.dark
body[data-tool-id="unit-converter"] .hlg-rating-subtitle,
body.dark-mode[data-tool-id="unit-converter"] .hlg-rating-subtitle{

    color:#aeb9ca !important;
}

html[data-theme="dark"]
body[data-tool-id="unit-converter"] .hlg-rating-star,
html.dark
body[data-tool-id="unit-converter"] .hlg-rating-star,
body.dark-mode[data-tool-id="unit-converter"] .hlg-rating-star{

    color:#c8d2e1 !important;
    -webkit-text-fill-color:#c8d2e1 !important;

    background:#1b2739 !important;
    border-color:#3b4a61 !important;
}

html[data-theme="dark"]
body[data-tool-id="unit-converter"] .hlg-rating-star:hover,
html[data-theme="dark"]
body[data-tool-id="unit-converter"] .hlg-rating-star.hover,
html.dark
body[data-tool-id="unit-converter"] .hlg-rating-star:hover,
html.dark
body[data-tool-id="unit-converter"] .hlg-rating-star.hover{

    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;

    background:#6041dc !important;
    border-color:#8a70ff !important;
}

html[data-theme="dark"]
body[data-tool-id="unit-converter"] .hlg-rating-star.active,
html.dark
body[data-tool-id="unit-converter"] .hlg-rating-star.active,
body.dark-mode[data-tool-id="unit-converter"] .hlg-rating-star.active{

    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;

    background:#7251f5 !important;
    border-color:#8a70ff !important;
}

html[data-theme="dark"]
body[data-tool-id="unit-converter"] .hlg-rating-summary,
html.dark
body[data-tool-id="unit-converter"] .hlg-rating-summary,
body.dark-mode[data-tool-id="unit-converter"] .hlg-rating-summary{

    color:#aeb9ca !important;
}

html[data-theme="dark"]
body[data-tool-id="unit-converter"] .hlg-rating-value,
html.dark
body[data-tool-id="unit-converter"] .hlg-rating-value,
body.dark-mode[data-tool-id="unit-converter"] .hlg-rating-value{

    color:#ffffff !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:600px){

    body[data-tool-id="unit-converter"] .hlg-rating-box{
        width:calc(100% - 24px) !important;
        margin:32px auto !important;
        padding:25px 15px !important;
        border-radius:18px !important;
    }

    body[data-tool-id="unit-converter"] .hlg-rating-title{
        font-size:21px !important;
    }

    body[data-tool-id="unit-converter"] .hlg-rating-stars{
        gap:6px !important;
    }

    body[data-tool-id="unit-converter"] .hlg-rating-star{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        min-height:42px !important;
        font-size:22px !important;
    }
}
