* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg, #1e1e1e 0%, #2a2a2a 50%, #1a1a1a 100%);


}

/* Full screen center */
.welcomeScreen {
  min-height: 100vh;
  max-width: 512px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #1e1e1e 0%, #2a2a2a 50%, #1a1a1a 100%);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 auto;

}

.total-fuel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fuel-summary {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.fuel-summary-item {
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .03);
}

.fuel-summary .label {
  font-size: 12px;
  opacity: .65;
  margin-bottom: 4px;
}

.fuel-summary .value {
  font-size: 13px;
  font-weight: 800;
}

.fuel-summary .unit {
  font-size: 12px;
  font-weight: 600;
  opacity: .65;
  margin-left: 4px;
}

.fuel-summary .sep {
  margin: 0 8px;
  opacity: .4;
}

.fuel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.fuel-card {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.fuel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  margin-bottom: 10px;
}

.fuel-title .fuel-name {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
}

.fuel-title .fuel-sub {
  margin-top: 4px;
  font-size: 13px;
  opacity: .7;
}

.fuel-price {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

.fuel-price span {
  font-weight: 600;
  font-size: 12px;
  opacity: .65;
  margin-left: 4px;
}

.fuel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fuel-item {
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .03);
}

.fuel-label {
  font-size: 12px;
  opacity: .65;
  margin-bottom: 4px;
}

.fuel-value {
  font-size: 15px;
  font-weight: 800;
}

.fuel-value .unit {
  font-size: 12px;
  font-weight: 600;
  opacity: .65;
  margin-left: 4px;
}

/* Glass container */
.glass-card {
  width: 340px;
  padding: 40px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

  text-align: center;
  color: white;
}

/* Headline */
.glass-card h1 {
  margin-bottom: 30px;
  font-weight: 500;
}

/* Form group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Input */
input {
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 16px;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Buttons */
button {
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.primary-btn {
  background: #3b82f6;
  color: white;
}

.primary-btn:hover {
  background: #2563eb;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  margin-top: 10px;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Divider */
.divider {
  margin: 25px 0;
  position: relative;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.toast {
  position: relative;
  margin-top: 15px;
  padding: 12px 18px;

  background: rgba(220, 38, 38, 0.95);
  color: white;
  font-size: 14px;

  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);

  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-10px);
}

.vehsActual {
  width: 100%;
  height: auto;
  margin-top: 4rem;
  margin-bottom: 8rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 25px;
  align-items: center;
  padding-left: 5px;
  padding-right: 5px;
}

.vehCard {
  background-color: white;
  color: black;
  width: 100%;
  padding: 8px;
  border-radius: 16px;
  background: white;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}


.vehTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.fav {
  background-image: url("icons/fav.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 42px;
  height: 42px;
}

.nfav {
  background-image: url("icons/nfav.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 42px;
    height: 42px;
}



.vehReg {
  font-size: 1.75rem;
  letter-spacing: 2px;
  background-color: #FFEB00;
  border: 2px solid blue;
  width: 200px;
  font-family: 'Anton', sans-serif;
}

.vehMeta {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  height: 100%;
  font-family: 'Roboto', sans-serif;
}

.label {
  opacity: 0.7;
  font-weight: bold;
}

/* .vehYearsAgo {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
} */

.vehStatusPill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.vehStatusPill.inuse {
  background: rgba(34, 197, 94, 0.18);
}

.vehStatusPill.sold {
  background: rgba(239, 68, 68, 0.18);
}

.vehActions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.vehActionBtn {
  flex: 1;
  padding: 5px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: whitesmoke;
  cursor: pointer;
  font-size: 0.55rem;
  transition: 0.25s ease;
}

.vehActionBtn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.vehActionBtn.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.35);
}

.vehExpand {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.vehPanel h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 700;
}

.vehPanel p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.vinlabel {
  font-size: 0.8rem;
  font-weight: bold;
}

.quickStatus {
  height: 100%;
  min-width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
}

.vehMain {
  width: 60%;
}



.qsItem {
  padding: 6px;
  border-radius: 14px;
  background: whitesmoke;
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-width: 72px;
}

.qsTop {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  text-justify: center;
}

.insName {
  font-size: 0.6rem;
}

.qsLabel {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.qsCount {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.95;
}

.qsBar {
  width: 100%;
  height: 10px;
  background: #e6e6e6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom:2px;
}

.qsFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  transition: width 900ms cubic-bezier(.22, .61, .36, 1);
}

.qsSub {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.75;
}

.barlabel {
  font-size: 0.6rem !important;
  margin-top: 2px;
}

.motList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.motItem {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.motItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Top Row */
.motRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.motDate {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.motResult {
  font-weight: 600;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Example status colours (adjust if you already have resultClass styles) */
.motResult.pass {
  background: #e6f7ed;
  color: #1a7f37;
}

.motResult.fail {
  background: #fdecea;
  color: #b42318;
}

/* Bottom Row */
.motSub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #555;
}

.motTest {
  font-weight: 500;
  margin-right: 8px;
  color: #888;
}

.motSub span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.motSub p {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: #111;
}

.motEmpty {
  opacity: 0.6;
  font-size: 13px;
}

.navbar {
  width: 100%;
  height: 88px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, rgb(15, 23, 42), rgb(30, 41, 59));
}

.navbar_icon {
  color: black;
  width: 66px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 0.6rem;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ins-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ins-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ins-name {
  font-size: 24px;
  font-weight: 600;
}

.ins-price {
  font-size: 18px;
  font-weight: 700;
}

.ins-price span {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

.ins-dates {
  font-size: 14px;
  color: #444;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}



/* Highlight first insurance card */
.ins-list .ins-card:first-child {
  border: 2px solid #2ecc71;
  position: relative;
  box-shadow: 0 6px 18px rgba(46, 204, 113, 0.15);
}

/* CURRENT badge */
.ins-list .ins-card:first-child::before {
  content: "CURRENT";
  position: absolute;
  top: 50px;
  right: 12px;
  background: #2ecc71;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.partsBarChart {
  width: 100%;
  height: 260px;
  position: relative;
}

.partsBarChart canvas {
  width: 100% !important;
  height: 100% !important;
}


/* --- existing compact cards (keep yours) --- */
.parts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.parts-empty {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 13px;
}

.part-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.pc-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.15;

}

.pc-price {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}

.pc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.pc-date {
  font-size: 12px;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-status {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
}

.pc-status.ok {
  color: #1b8f4a;
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.35);
}

.pc-status.no {
  color: #b43a2e;
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.35);
}

/* --- NEW: summary + mini bar chart --- */
.parts-summary {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 2px;
}

.sum-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.sum-title {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 600;
}

.sum-total {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.sum-sub {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.7;
}

.mini-chart {
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 6px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bar-col {
  flex: 0 0 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.bar {
  width: 100%;
  height: 10px;
  /* overridden inline */
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.30);
  /* simple, neutral */
}

.bar-label {
  font-size: 10px;
  opacity: 0.7;
  line-height: 1;
}

.chart-empty {
  font-size: 12px;
  opacity: 0.7;
  padding: 4px;
}

/* Extra-tight for tiny screens */
@media (max-width: 360px) {
  .parts-wrapper {
    padding: 8px;
    gap: 7px;
  }

  .part-card,
  .parts-summary {
    padding: 9px 10px;
  }

  .sum-total {
    font-size: 17px;
  }

  .bar-col {
    flex-basis: 24px;
  }
}

.sectionHeader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 0;
}

/* Centered title */
.sectionHeader h4 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;

  font-size: 20px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #222;
}

/* Add button */
.addNewBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;

  width: 38px;
  height: 38px;

  border-radius: 10px;
  background: green;
  color: #fff;

  font-size: 20px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  user-select: none;

  transition: all .15s ease;
}

.addNewBtn:hover {
  background: #333;
  transform: translateY(-2px);
}

.addNewBtn:active {
  transform: translateY(0);
}

.addNewBtn:focus-visible {
  outline: 3px solid rgba(0, 0, 0, .2);
  outline-offset: 2px;
}

.notesList {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

/* Sticky Note Card */
.noteItem {
  background: #fffb88;
  /* classic sticky yellow */
  padding: 18px 16px 16px 16px;
  border-radius: 6px;
  box-shadow:
    0 8px 15px rgba(0, 0, 0, 0.15),
    inset 0 0 30px rgba(255, 255, 255, 0.4);
  position: relative;
  transform: rotate(-1deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Slight variation so they don’t look identical */
.noteItem:nth-child(even) {
  transform: rotate(1.2deg);
}

.noteItem:nth-child(3n) {
  transform: rotate(-0.6deg);
}

/* Subtle paper top fold effect */
.noteItem::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: rgba(255, 255, 255, 0.35);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* Press effect */
.noteItem:active {
  transform: scale(0.98) rotate(0deg);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.18),
    inset 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Date */
.noteDate {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #8a7b00;
  margin-bottom: 8px;
}

/* Content */
.noteContent {
  font-size: 1rem;
  line-height: 1.5;
  color: #3a3400;
  word-wrap: break-word;
}


.costChart {
  width: 100%;
  min-height: 200px;

}

.costCanvas {
  width: 100%;
  height: 100%;
}

.costWrapper {
  max-width: 420px;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border: 1px solid #f0f0f0;
  margin: 0 auto;
}

.costItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #f2f2f2;
}

.costItem:last-child {
  border-bottom: none;
}

.costLabel {
  font-weight: 500;
  color: #666;
}

.costItem.total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px solid #e6e6e6;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.costItem.upkeep {
  margin-top: 12px;
  border-bottom: none;
  font-size: 16px;
  font-weight: 600;
}

.costItem.pp {
  border-left: 8px solid #ffadad;
  padding-left: 8px;
}

.costItem.ta {
  border-left: 8px solid #ffd6e0;
  padding-left: 8px;
}

.costItem.ti {
  border-left: 8px solid #caffbf;
  padding-left: 8px;
}

.costItem.tm {
  border-left: 8px solid #9bf6ff;
  padding-left: 8px;
}

.costItem.tp {
  border-left: 8px solid #bdb2ff;
  padding-left: 8px;
}

.costItem.tf {
  border-left: 8px solid #fdffb6;
  padding-left: 8px;
}



/* const colors = [
     
      
      
     
      "", // light lavender
      ""  // light coral
    ]; */

.costItem.total .costLabel {
  color: #111;
}

.costItem.total span:last-child {
  color: #0a7c3e;
  /* nice financial green */
  font-weight: 700;
}

.costEmpty {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 12px;

  background: #f9fafb;
  color: #555;
  font-size: 14px;
  font-weight: 500;

  border: 1px solid rgba(0, 0, 0, 0.05);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.03);

  animation: fadeSlideIn 0.25s ease;
}

/* Optional subtle icon */
.costEmpty::before {
  content: "⛽";
  font-size: 14px;
  opacity: 0.7;
}

.expDate {
  font-size: 0.55rem;
}

/* Soft entrance animation */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}






/* Base brand container */
.brand-bg {
  position: relative;
  overflow: hidden;
  /* prevents bleed on rounded cards */
}

/* Shared pseudo element */
.brand-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-repeat: no-repeat;
  background-position: center;
  /* keep the watermark fixed in viewport */
  background-size: 40%;
  background-attachment: initial;

  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content stays above logo */
.brand-bg>* {
  position: relative;
  z-index: 1;
}

/* Brand modifiers */
.brand-volkswagen::before {
  background-image: url("brands/vw.webp");
}

.brand-audi::before {
  background-image: url("brands/audi.webp");
}

.brand-bmw::before {
  background-image: url("brands/bmw.webp");
}

.brand-mitsubishi::before {
  background-image: url("brands/mitsubishi.webp");
}


.brand-nissan::before {
  background-image: url("brands/nissan.webp");
}

.brand-vauxhall::before {
  background-image: url("brands/vauxhall.webp");
}

.brand-suzuki::before {
  background-image: url("brands/suzuki.webp");
}

.brand-ford::before {
  background-image: url("brands/ford.webp");
}

.brand-mercedes::before {
  background-image: url("brands/mercedes.webp");
}

.brand-landrover::before {
  background-image: url("brands/landrover.webp");
}

.sorn-badge {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: #ff2b2b;
  text-shadow:
    0 0 6px rgba(255, 43, 43, .55),
    0 0 14px rgba(255, 43, 43, .35);

  border-radius: 8px;
  font-size: 0.6rem;
  text-align: center;
}

.gallerySlider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  --gallery-radius: 18px;
  --gallery-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  --gallery-border: rgba(255, 255, 255, 0.08);
}

.galleryViewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--gallery-radius);
  background: #0e0e10;
  box-shadow: var(--gallery-shadow);
}

.galleryTrack {
  position: relative;
  min-height: 320px;
}

.gallerySlide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition:
    opacity 0.55s ease,
    transform 0.7s ease,
    visibility 0.55s ease;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  background: #111;
}

.gallerySlide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.galleryMediaWrap {
  width: 100%;
  min-height: 320px;
  max-height: 72vh;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 60%),
    #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.galleryMedia {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* handles vertical + horizontal nicely */
  background: #0a0a0a;
}

.galleryImage {
  image-rendering: auto;
}

.galleryVideo {
  outline: none;
}

.galleryCaption {
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, #16181d 0%, #111317 100%);
  color: #fff;
  border-top: 1px solid var(--gallery-border);
}

.galleryDate {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.galleryDescription {
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  word-wrap: break-word;
}

.galleryArrow {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.68);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    opacity 0.22s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.galleryArrow:hover {
  transform: translateY(-1px) scale(1.04);
  background: rgba(18, 18, 20, 0.88);
}

.galleryArrow span {
  font-size: 1.9rem;
  line-height: 1;
  font-family: Arial, sans-serif;
}

.galleryArrowPrev {
  left: 14px;
}

.galleryArrowNext {
  right: 14px;
}

.galleryDots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 2px;
  flex-wrap: wrap;
}

.galleryDot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 126, 140, 0.35);
  cursor: pointer;
  padding: 0;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    width 0.22s ease;
}

.galleryDot:hover {
  transform: scale(1.15);
  background: rgba(120, 126, 140, 0.75);
}

.galleryDot.is-active {
  width: 15px;
  background: #d91515;
}

.galleryVideo::-webkit-media-controls-panel {
  opacity: 0.98;
}

@media (max-width: 768px) {
  .galleryTrack {
    min-height: 260px;
  }

  .galleryMediaWrap {
    min-height: 260px;
    max-height: 60vh;
    aspect-ratio: 4 / 5;
  }

  .galleryCaption {
    padding: 16px;
  }

  .galleryDescription {
    font-size: 0.95rem;
  }

  .galleryArrow {
    width: 42px;
    height: 42px;
    top: calc(50% - 24px);
    overflow-y: hidden;
  }

  .galleryArrow span {
    font-size: 1.7rem;
  }

  .galleryArrowPrev {
    left: 10px;
  }

  .galleryArrowNext {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallerySlide,
  .galleryArrow,
  .galleryDot {
    transition: none;
  }
}

.gallerySlider,
.galleryViewport,
.galleryArrow,
.galleryTrack {
  overflow: hidden;
}

.gallerySlider::-webkit-scrollbar,
.galleryViewport::-webkit-scrollbar,
.galleryTrack::-webkit-scrollbar {
  display: none;
}

.gallerySlider,
.galleryViewport,
.galleryTrack {
  scrollbar-width: none;
}

.gallerySlider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.galleryProgress {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.galleryProgressBar {
  width: 0%;
  height: 100%;
  background: #d91515;
  transition: width 0.1s linear;
}

.galleryViewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.galleryFooter {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, #121722 0%, #0e1118 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.galleryArrow {
  position: static;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.galleryArrow:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.14);
}

.galleryArrow span {
  font-size: 1.5rem;
  line-height: 1;
  font-family: Arial, sans-serif;
}

.galleryDots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 44px;
}

.galleryDot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(160, 165, 175, 0.5);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.galleryDot.is-active {
  width: 22px;
  background: #d91515;
}