/* Global theme inspired by clean, card-based UI shown in the PDF (Homepage/Library/Upload/Admin).  */
:root{
  --bg: #f5f6f0;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --accent: #22c55e; /* green */
  --accent-2: #0ea5e9; /* blue */

  /* Brand/UI surface colors */
  --brand-yellow: #fde68a; /* soft yellow */
  --brand-yellow-dk: #fcd34d; /* slightly darker yellow */
  --brand-yellow-dk2: #fbbf24; /* deeper yellow */

  /* Orange tone from screenshot */
  --brand-orange: #F97316;
  --brand-orange-92: rgba(249, 115, 22, 0.92);
  --brand-orange-96: rgba(249, 115, 22, 0.96);

  /* Standard green for nav bars */
  --brand-green: #16a34a;
  --brand-green-92: rgba(22, 163, 74, 0.92);
  --brand-green-96: rgba(22, 163, 74, 0.96);
}

*{ font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

body{ background: var(--bg); color: var(--text); }

/* ------------------------------------------------------------
   Global responsiveness
------------------------------------------------------------ */
html, body{ max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas{ max-width: 100%; height: auto; }

/* Bootstrap's .container is already responsive, but our cards and shells
   benefit from a touch more breathing room on very small screens. */
@media (max-width: 576px){
  main > .container{ padding-left: 14px; padding-right: 14px; }
}

/* ------------------------------------------------------------
   Order flow shell (matches the "Custom Design Upload" + "Mockup
   Customizer" UI screenshots in the PDF)
------------------------------------------------------------ */
.app-shell{
  max-width: 1050px;
  margin: 0 auto;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(15,23,42,.10);
}

@media (max-width: 576px){
  .app-shell{ border-radius: 14px; }
  .app-body{ padding: 14px 14px 18px; }
  .order-progress{ flex-direction: column; align-items: flex-start; }
  .order-progress .op-right{ text-align: left; min-width: 0; }
}

.app-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 8px 16px;
  background: var(--brand-green-92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.20);
}

.app-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 700;
  color: #0f172a;
  text-decoration:none;
}

.app-nav{
  display:flex;
  align-items:center;
  gap: 18px;
}

.app-nav a{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-size: 13px;
}

.app-nav a.active{ font-weight: 600; color: #ffffff; }

.app-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e2e8f0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: #475569;
  border: 1px solid var(--border);
}

.app-body{ padding: 18px 18px 22px; }

.app-breadcrumb{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.order-progress{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.order-progress .op-title{
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
}

.order-progress .op-right{
  text-align:right;
  min-width: 140px;
}

.step-pill{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #0f5132;
  border: 1px solid rgba(34,197,94,0.25);
  font-size: 12px;
  font-weight: 600;
}

.op-next{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.progress.slim{ height: 6px; border-radius: 999px; background: #e2e8f0; }
.progress.slim .progress-bar{ border-radius: 999px; background: var(--accent); }

.form-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.service-tile{
  position: relative;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  text-align:center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.service-tile .st-ico{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(34,197,94,0.10);
  color: var(--accent);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 8px;
}

.service-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15,23,42,.06);
}

.service-tile.selected{
  border-color: rgba(34,197,94,0.65);
  box-shadow: 0 20px 45px rgba(34,197,94,.14);
}

.service-tile .st-check{
  position:absolute;
  top: 10px;
  right: 10px;
  color: var(--accent);
  display:none;
}

.service-tile.selected .st-check{ display:block; }

.feature-card{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 14px 30px rgba(15,23,42,.06);
}

.feature-card .fc-ico{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(14,165,233,0.10);
  color: var(--accent-2);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.feature-card .fc-title{
  font-weight: 700;
  color: #0b6aa3;
  font-size: 14px;
}

.feature-card .fc-text{
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.canvas-panel{
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.canvas-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.swatches{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.15);
  cursor:pointer;
}

.swatch.active{ outline: 3px solid rgba(34,197,94,.25); }

.brand-dot{
  width: 12px; height: 12px; border-radius: 999px;
  background: #ffffff;
  display:inline-block;
}

.card{
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
  border-radius: 16px;
}

.card-soft{
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.hero{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.hero .carousel-item img{
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.section-title{
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kicker{
  color: var(--muted);
}

.icon-pill{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(34,197,94,0.12);
  color: var(--accent);
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border:1px solid var(--border);
  border-radius: 999px;
  background:#fff;
  font-size: 14px;
  cursor:pointer;
  user-select:none;
}

.chip.active{
  border-color: rgba(34,197,94,0.55);
  box-shadow: 0 10px 24px rgba(34,197,94,.12);
}

.service-card{
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15,23,42,.06);
}

/* Make radio-card selections visible (used on service & payment selection screens) */
label > input[type="radio"]:checked + .service-card{
  border-color: rgba(15,23,42,.22);
  box-shadow: 0 16px 30px rgba(15,23,42,.10);
}

.step{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.step .step-num{
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(14,165,233,0.12);
  color: var(--accent-2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
}

.pricing-card .price{
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pricing-card.highlight{
  border-color: rgba(34,197,94,0.55);
}

.sidebar{
  min-height: calc(100vh - 70px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.sidebar a{
  text-decoration:none;
}
.sidebar .nav-link{
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
}
.sidebar .nav-link.active{
  background: rgba(34,197,94,0.12);
  color: #0f5132;
  font-weight: 600;
}

.table thead th{
  background: #f3f6fb;
  color: #334155;
  border-bottom: 1px solid var(--border);
}
.table td, .table th{
  border-color: var(--border);
  vertical-align: middle;
}

.canvas-wrap{
  border: 1px dashed rgba(100,116,139,0.55);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.small-help{ color: var(--muted); font-size: 13px; }

.badge-soft{
  background: rgba(14,165,233,0.12);
  color: #075985;
  border: 1px solid rgba(14,165,233,0.25);
}

.badge-soft-green{
  background: rgba(34,197,94,0.12);
  color: #0f5132;
  border: 1px solid rgba(34,197,94,0.25);
}

.badge-soft-red{
  background: rgba(239,68,68,0.10);
  color: #7f1d1d;
  border: 1px solid rgba(239,68,68,0.25);
}

/* ------------------------------------------------------
   Canva-style asset palette (drag & drop onto Fabric.js)
-------------------------------------------------------*/
.asset-drawer{
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.asset-title{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #334155;
  margin: 6px 0 8px;
}
.asset-grid{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 992px){
  .asset-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 576px){
  .asset-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.asset-item{
  border: 1px solid rgba(100,116,139,0.35);
  background: #ffffff;
  border-radius: 14px;
  padding: 8px;
  text-align: left;
  cursor: grab;
  user-select: none;
  transition: transform .08s ease, box-shadow .08s ease;
}
.asset-item:active{ cursor: grabbing; transform: scale(0.99); }
.asset-item:hover{ box-shadow: 0 10px 24px rgba(15,23,42,0.08); }
.asset-item img{
  width: 100%;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  /* Prevent native image dragging (which can bypass our drag handlers on
     the parent button and make drag/drop feel broken). */
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.asset-label{
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: #0f172a;
}



/* ------------------------------------------------------
   Mockup Editor Layout (bigger preview + right tools)
-------------------------------------------------------*/
.editor-layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 992px){
  .editor-layout{ grid-template-columns: 1fr; }
}

.editor-stage{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
}
.stage-topbar{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
@media (max-width: 768px){
  .stage-topbar{ grid-template-columns: 1fr; }
}

.zoom-box{
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.zoom-box input[type="range"]{
  width: 160px;
}

@media (max-width: 576px){
  .zoom-box{ width: 100%; justify-content: flex-start; }
  .zoom-box input[type="range"]{ width: 100%; max-width: 240px; }
}

.canvas-frame{
  position: relative;
  border: 1px dashed rgba(100,116,139,0.55);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  min-height: 360px;
}

@media (max-width: 576px){
  .editor-stage{ padding: 10px; border-radius: 16px; }
  .canvas-frame{ min-height: 260px; padding: 8px; }
}
.canvas-frame canvas{
  display:block;
  max-width: 100%;
}

.canvas-error{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #7f1d1d;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.editor-sidebar{
  position: sticky;
  top: 86px;

  /* If there are many designs/equipment, keep the sidebar scrollable so all items are reachable */
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding-right: 6px;
}
@media (max-width: 992px){
  .editor-sidebar{ position: static; top: auto; max-height: none; overflow: visible; padding-right: 0; }
}

.sidebar-section{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
}
.sidebar-title{
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 10px;
  display:flex;
  align-items:center;
  gap: 8px;
}

.swatches-lg{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch-btn{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(100,116,139,0.35);
  cursor: pointer;
}
.swatch-btn:focus{ outline: 2px solid rgba(34,197,94,0.35); outline-offset: 2px; }

.asset-grid-compact{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
@media (max-width: 576px){
  .asset-grid-compact{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.asset-grid-compact .asset-item img{ height: 56px; }
.asset-grid-compact .asset-label{ font-size: 10.5px; }

.layer-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}
.layer-row{
  border: 1px solid rgba(100,116,139,0.30);
  background: #fff;
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.layer-row.active{
  border-color: rgba(34,197,94,0.55);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.layer-badge{
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148,163,184,0.20);
  border: 1px solid rgba(148,163,184,0.40);
  color: #0f172a;
}
.layer-name{
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  max-width: 160px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Public homepage (match screenshot layout)
------------------------------------------------------------ */
body.public .container{ max-width: 1120px; }

.site-nav{
  /* User request: orange header / navbar color */
  background: var(--brand-green-92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 8px 18px rgba(15,23,42,.12);

  /* Keep header fixed on both mobile + desktop */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1035;
}

/* Fixed header spacing (only on pages that render the site navbar) */
body.has-site-nav{ padding-top: 60px; }

.site-nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 0;
}

.site-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.site-brand-text{
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-nav-links{
  display:flex;
  align-items:center;
  gap: 18px;
}

.site-nav-links a{
  text-decoration:none;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 10px;
}

.site-nav-links a:hover{ background: rgba(255,255,255,0.14); }
.site-nav-links a.active{ color: #ffffff; font-weight: 800; background: rgba(255,255,255,0.18); }

.site-nav-toggle{
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 12px;
}

/* Make the hamburger icon visible on orange background */
.site-nav .navbar-toggler{ border-color: rgba(255,255,255,.55); }
.site-nav .navbar-toggler-icon{ filter: invert(1); }

/* Navbar: make collapsed menu vertical and full-width on mobile */
@media (max-width: 991.98px){
  body.has-site-nav{ padding-top: 68px; }
  .site-nav-inner{ flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
  .site-nav .navbar-collapse{ width: 100%; padding-top: 10px; }
  .site-nav-links{ flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 0; }
  .site-nav-links a{ width: 100%; padding: 10px 12px; }
  .site-nav-cta{ padding: 6px 0 10px; }
  .site-nav-cta .btn{ width: 100%; }
}

.hero-banner{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  min-height: 320px;
  position: relative;
}

@media (min-width: 992px){
  .hero-banner{ min-height: 380px; }
}

.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,0.70), rgba(0,0,0,0.20));
  display:flex;
  align-items:center;
}

.hero-inner{
  padding: 34px 26px;
  max-width: 720px;
}

.hero-title{
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-subtitle{
  color: rgba(255,255,255,0.80);
  margin-bottom: 18px;
  font-size: 16px;
}

.hero-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.service-card2 .card-body{ padding: 16px; }

.service-thumb{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(34,197,94,0.12);
  color: var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
}

.service-check{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 14px;
  background: rgba(34,197,94,0.08);
  color: #0f5132;
  font-size: 12.5px;
}
.service-check i{ color: var(--accent); }

.how-card{
  background: #fff;
}

.how-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.how-dot{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(34,197,94,0.25);
}

.how-num{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  border: 1px solid var(--border);
}

.pricing-card2 .card-body{ padding: 16px; }

.price2{
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-card2.highlight{
  border-color: rgba(34,197,94,0.55);
  box-shadow: 0 18px 40px rgba(34,197,94,.14);
}

.pricing-list{
  padding-left: 18px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.partner-banner{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #0f2a1f;
  padding: 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

@media (max-width: 768px){
  .partner-banner{ flex-direction: column; align-items:flex-start; }
}

.upload-help-card{
  background: #f8fafc;
  border: 1px solid var(--border);
}

.site-footer{
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-title{
  font-weight: 700;
  color: #0f172a;
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-links{
  list-style:none;
  padding:0;
  margin:0;
}

.footer-links li{ margin: 7px 0; }

.footer-links a{
  text-decoration:none;
  color: #475569;
  font-size: 13px;
}

.footer-links a:hover{ color: #0f172a; }

.social{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: #475569;
  text-decoration:none;
}

.social:hover{
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
  color: #0f172a;
}

.footer-bottom{
  border-top: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

@media (max-width: 576px){
  .footer-bottom{ flex-direction: column; align-items:flex-start; }
}


/* --- Admin-editable branding assets --- */
.site-logo{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,.7);
}
.site-brand{
  display:flex;
  align-items:center;
  gap:10px;
}


/* Mocup Library (grid) */
.page-library .site-main{ padding-top: 8px; }
.library-wrap{ max-width: 1120px; }
.library-title{ font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.library-sub{ color: var(--muted); max-width: 760px; margin: 0; }

.library-tabs .lib-tab-row{
  display:flex; gap:18px; flex-wrap:wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

@media (max-width: 576px){
  /* Horizontal scroll tabs like the reference UI */
  .library-tabs .lib-tab-row{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 6px;
  }
  .library-tabs .lib-tab-row::-webkit-scrollbar{ display: none; }
  .library-tabs .lib-tab-row{ scrollbar-width: none; }
  .library-tabs .lib-tab{ white-space: nowrap; }
  .library-tabs .lib-tab.active:after{ bottom: -7px; }
}
.library-tabs .lib-tab{
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 0;
  position: relative;
}
.library-tabs .lib-tab.active{
  color: var(--text);
}
.library-tabs .lib-tab.active:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-11px;
  height:2px;
  background: var(--accent);
  border-radius: 2px;
}

.library-toolbar .lib-search{
  position: relative;
}
.library-toolbar .lib-search-icon{
  position:absolute; left:12px; top:50%;
  transform: translateY(-50%);
  opacity: .55;
  pointer-events:none;
}
.library-toolbar .lib-search-input{
  padding-left: 36px;
  background: #eef3ea;
  border-color: transparent;
  border-radius: 12px;
}
.library-toolbar .lib-search-input:focus{
  background:#fff;
  border-color: var(--border);
  box-shadow: 0 0 0 .2rem rgba(34,197,94,.10);
}
.library-toolbar .lib-sort{
  border-radius: 12px;
}

.lib-card{
  display:block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
  text-decoration:none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(15,23,42,.06);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.lib-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}

.lib-card-media{
  position:relative;
  background: linear-gradient(180deg, #f2f4f6, #e7eaee);
  height: 170px;
  display:flex;
  align-items:center;
  justify-content:center;
}
@media (max-width: 576px){
  .lib-card-media{ height: 150px; }
}
.lib-card-media img{
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,.10));
}
.lib-code{
  position:absolute;
  top:10px;
  right:10px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(226,232,240,.9);
  color:#334155;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 10px;
}

.lib-card-body{ padding: 12px 12px 14px; }
.lib-name{ font-weight: 800; font-size: 14px; margin-bottom: 2px; }
.lib-desc{ font-size: 12px; color: #4b5563; line-height: 1.35; min-height: 30px; }
.lib-price{ margin-top: 8px; font-weight: 900; color: #111827; font-size: 13px; }

.lib-loadmore{
  border-radius: 999px;
  padding: 10px 16px;
}

/* -------------------------------------------------
   Mobile Bottom Navbar
-------------------------------------------------- */
@media (max-width: 991.98px){
  body{ padding-bottom: 78px; }
}

.mobile-bottom-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  /* User request: slightly darker yellow for mobile bottom bar */
  background: var(--brand-green-96); /* var(--brand-orange) */
  border-top: 1px solid rgba(255,255,255,.18);
  backdrop-filter: saturate(170%) blur(10px);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 10px;
}

.mbn-item{
  flex: 1;
  max-width: 140px;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.1;
}

.mbn-item span{ white-space: nowrap; }

.mbn-item i{ font-size: 18px; }

.mbn-item.active{
  color: #111827;
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 18px rgba(15,23,42,.12);
}

@media (max-width: 420px){
  .mbn-item{ font-size: 10px; }
  .mbn-item i{ font-size: 19px; }
}


/* -------------------------------------------------
   Network / Info Bar (top strip) - orange
-------------------------------------------------- */
.network-bar,
.top-network-bar,
.header-network-bar{
  background: var(--brand-green);
  color: #ffffff;
}
.network-bar a,
.top-network-bar a,
.header-network-bar a{ color: rgba(255,255,255,.95); text-decoration: none; }

/* ============================================================
   NAV COLOR + COMPACT HEIGHT (Standard Green)
   (Added for: header, bottom navbar, network bar consistency)
============================================================ */
:root{
  --nav-green: #16a34a;
  --nav-green-dk: #15803d;
  --nav-green-92: rgba(22, 163, 74, 0.92);
  --nav-green-96: rgba(22, 163, 74, 0.96);
}

/* Header / Navbar */
.site-nav{
  /* Solid standard green (more consistent + looks modern) */
  background-color: var(--nav-green) !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(255,255,255,.18) !important;
}
.site-nav-inner{ padding: 6px 0 !important; } /* standard height */
body.has-site-nav{ padding-top: 56px !important; }
.site-logo{ height: 24px !important; width: 24px !important; }
.site-brand-text{ font-size: 16px !important; }
.site-nav-links a{ padding: 6px 10px !important; border-radius: 12px !important; }
.site-nav-toggle{ padding: 5px 9px !important; border-radius: 12px !important; border-color: rgba(255,255,255,.45) !important; }
.site-nav .navbar-toggler-icon{ filter: invert(1) !important; }
@media (max-width: 991.98px){
  body.has-site-nav{ padding-top: 56px !important; }
}

/* Network / Info bars */
.app-topbar,
.network-bar,
.top-network-bar,
.header-network-bar,
.topbar,
.info-topbar{
  /* Solid standard green */
  background-color: var(--nav-green) !important;
  background-image: none !important;
  color: #ffffff !important;
}
.app-brand, .app-brand *{ color:#ffffff !important; }
.app-nav a{ color: rgba(255,255,255,.92) !important; }

/* Mobile Bottom Navbar (Standard) */
.mobile-bottom-nav{
  /* Solid standard green */
  background-color: var(--nav-green) !important;
  background-image: none !important;
  height: 62px !important;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgba(255,255,255,.16) !important;
}

.mbn-item{
  gap: 4px !important;
  padding: 8px 6px !important;
  border-radius: 16px !important;
  font-weight: 800 !important;
  color: rgba(255,255,255,.92) !important;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.mbn-item i{
  font-size: 20px !important;
  line-height: 1 !important;
}
.mbn-item span{
  font-size: 10.5px !important;
  line-height: 1.05 !important;
  letter-spacing: .2px;
  white-space: nowrap !important;
}
.mbn-item.active{
  background: rgba(255,255,255,.92) !important;
  color: var(--nav-green-dk) !important;
  box-shadow: 0 10px 18px rgba(15,23,42,.16) !important;
  transform: translateY(-1px);
}
.mbn-item.active i{ color: var(--nav-green-dk) !important; }

/* Safety net: if any page uses different ids/classes for the top "network" strip */
#networkBar,
#network-bar,
.networkbar,
.networkBar{
  background-color: var(--nav-green) !important;
  background-image: none !important;
  color: #ffffff !important;
}
#networkBar a,
#network-bar a,
.networkbar a,
.networkBar a{ color: rgba(255,255,255,.92) !important; }
.mbn-item:hover{
  background: rgba(255,255,255,.14);
  color: #ffffff;
}
@media (max-width: 420px){
  .mbn-item span{ font-size: 10px !important; }
  .mbn-item i{ font-size: 20px !important; }
}


/* ------------------------------------------------------------
   FORCE STANDARD GREEN: Header / Network Bar / Mobile Bottom Nav
   (Requested: solid green, consistent across all pages)
------------------------------------------------------------ */
:root{
  --brand-green: #16a34a;
  --brand-green-92: rgba(22, 163, 74, 0.92);
  --brand-green-96: rgba(22, 163, 74, 0.96);
}

/* Network bar (app pages) */
.app-topbar{
  background: var(--brand-green) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255,255,255,.18) !important;
}
.app-topbar, .app-topbar *{
  color: #fff !important;
}
.app-topbar a{ color:#fff !important; text-decoration:none; }
.app-topbar a:hover{ opacity:.92; }
.app-topbar .badge{ color:#0f172a !important; } /* keep badges readable */

/* Public header */
.site-nav{
  background: var(--brand-green) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255,255,255,.18) !important;
}
.site-nav, .site-nav *{ color:#fff; }
.site-nav .navbar-toggler{ border-color: rgba(255,255,255,.35) !important; }
.site-nav .navbar-toggler-icon{ filter: invert(1); opacity:.95; }

/* If any other "network/top" bars exist */
.network-bar, .top-network-bar, .header-network-bar, .topbar, .top-bar, .info-bar{
  background: var(--brand-green) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* Design canvas strip (often perceived as a top bar) */
.stage-topbar{
  background: var(--brand-green) !important;
  color:#fff !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
}
.stage-topbar .text-muted, .stage-topbar .small{ color: rgba(255,255,255,.88) !important; }
.stage-topbar .badge{ color:#0f172a !important; }

/* Mobile bottom nav */
.mobile-bottom-nav{
  background: var(--brand-green) !important;
  background-image: none !important;
  border-top: 1px solid rgba(255,255,255,.18) !important;
}
.mbn-item{ color: rgba(255,255,255,.92) !important; }
.mbn-item i{ color: rgba(255,255,255,.92) !important; }
.mbn-item.is-active{
  background: rgba(255,255,255,.92) !important;
  color: var(--brand-green) !important;
}
.mbn-item.is-active i{ color: var(--brand-green) !important; }

