.skeleton {
  height: 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0%{background-position:100% 0;} 100%{background-position:0 0;} }

.hero-bg{ background: color-mix(in oklab, var(--lj-eggshell), transparent 40%); border:1px solid var(--lj-border); }


.preview-avatar{
  width:44px;height:44px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background: #68B0AB;
  color:#0a0a0a;
  font-weight:800;
}
.preview-link{
  border: 1px solid var(--lj-border) !important;
  background: color-mix(in oklab, #ffffff, var(--lj-eggshell) 18%) !important;
  text-align:left;
  padding: 12px 12px;
}
.preview-link i{ font-size: 18px; }
html[data-bs-theme="dark"] .preview-avatar{
  background:#ffffff;
  color:#000000;
}
html[data-bs-theme="dark"] .preview-link{
  background:#0b0b0b !important;
  color:#ffffff !important;
  border-color: rgba(255,255,255,.14) !important;
}




.preview-frame-wrap{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--lj-border);
  background: #ffffff;
  height: 340px;
  position: relative;
}
.preview-frame{
  width: 360px;
  height: 720px;
  border: 0;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%) scale(0.72);
  transform-origin: top center;
  background: transparent;
}
html[data-bs-theme="dark"] .preview-frame-wrap{
  background: #0b0b0b;
  border-color: rgba(255,255,255,.14);
}


/* Tighter homepage preview spacing */
.preview-card .card-body{
  padding: 12px !important;
}
.preview-frame-wrap{
  height: 300px !important;
  margin: 0 !important;
}
.preview-frame{
  top: 0 !important;
}


/* =========================
   Marketing / Home styles
   ========================= */

.hero-bg{
  background: linear-gradient(
    180deg,
    rgba(104,176,171,0.18),
    rgba(250,243,221,0.35)
  );
}

.preview-card{
  border-radius: 20px;
}

.preview-card .card-body{
  padding: 12px;
}

.preview-frame-wrap {
    border-radius: 18px;
    overflow: hidden;
    background: #0b556021;
    border: 1px solid var(--lj-border);
}

section{
  scroll-margin-top: 100px;
}

h1, h2{
  letter-spacing: -0.02em;
}

ul{
  padding-left: 1.2rem;
}

@media (max-width: 991px){
  .hero-bg{
    padding: 1.25rem !important;
  }
}

/* =========================
   Home section styling
   ========================= */

.section-soft{
  background: color-mix(in oklab, var(--lj-eggshell), #ffffff 45%);
  border: 1px solid var(--lj-border);
}

.feature-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding: 14px 14px;
  border: 1px solid var(--lj-border);
  border-radius: 16px;
  background: color-mix(in oklab, #ffffff, var(--lj-eggshell) 18%);
}

.feature-ico{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--lj-border);
  background: #ffffff;
}

.feature-ico i{ font-size: 18px; }

.mini-card{
  padding: 16px;
  border: 1px solid var(--lj-border);
  border-radius: 18px;
  background: rgba(255,255,255,.75);
}

.mini-ico{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: color-mix(in oklab, var(--lj-tropical), #ffffff 70%);
  border: 1px solid var(--lj-border);
  margin-bottom: 10px;
}

.pill{
  border: 1px solid var(--lj-border);
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 600;
}

.list-card{
  border: 1px solid var(--lj-border);
  background: rgba(255,255,255,.75);
  border-radius: 18px;
  padding: 18px;
}

.list-ico{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--lj-border);
  background: #ffffff;
}

html[data-bs-theme="dark"] .section-soft{
  background: #070707;
  border-color: rgba(255,255,255,.14);
}

html[data-bs-theme="dark"] .feature-card,
html[data-bs-theme="dark"] .mini-card,
html[data-bs-theme="dark"] .pill,
html[data-bs-theme="dark"] .list-card{
  background: #0b0b0b;
  border-color: rgba(255,255,255,.14);
}

html[data-bs-theme="dark"] .feature-ico,
html[data-bs-theme="dark"] .list-ico{
  background: #000;
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

/* Home FAQ accordion */
#homeFaqAccordion .accordion-button{ font-weight: 600; }
#homeFaqAccordion .accordion-item{ border-color: var(--lj-border); }
html[data-bs-theme="dark"] #homeFaqAccordion .accordion-item{ border-color: rgba(255,255,255,.14); }




/* =========================
   Dashboard: spacing + mobile clean-up
   ========================= */

/* Tabs: horizontaal scrollbaar op small screens */
.lj-tabs{
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.lj-tabs .nav-link{ white-space: nowrap; }
.lj-tabs::-webkit-scrollbar{ height: 6px; }

/* Minder "lege rand" rond dashboard content op mobiel */
main.container.py-4{ padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
@media (max-width: 576px){
  main.container.py-4{ padding-top: 1rem !important; padding-bottom: 1rem !important; }
}

/* Dashboard cards wat compacter op mobiel */
.lj-dashboard-card .card-body{ padding: 1.5rem; }
@media (max-width: 576px){
  .lj-dashboard-card .card-body{ padding: 1rem; }
}

/* Link rows: acties altijd binnen beeld */
@media (max-width: 576px){
  .link-item{ flex-direction: column !important; }
  .link-item .link-actions{ width: 100%; }
  .link-item .link-actions .btn{ flex: 1 1 auto; }
}

/* Upload forms: knop onder input op mobiel */
@media (max-width: 576px){
  .lj-upload-form{ flex-direction: column !important; align-items: stretch !important; }
  .lj-upload-form .btn{ width: 100%; }
}

/* =========================
   Dashboard: spacing + mobile clean-up
   ========================= */

/* Tabs: horizontaal scrollbaar op small screens */
.lj-tabs{
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.lj-tabs .nav-link{ white-space: nowrap; }
.lj-tabs::-webkit-scrollbar{ height: 6px; }

/* Dashboard cards compacter op mobiel */
.lj-dashboard-card .card-body{ padding: 1.5rem; }
.lj-dashboard-card hr{ margin: 1.25rem 0; }
@media (max-width: 576px){
  main.container{ padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .lj-dashboard-card .card-body{ padding: 1rem; }
  .lj-dashboard-card hr{ margin: 1rem 0; }
}

/* Link rows: acties altijd binnen beeld */
@media (max-width: 576px){
  .link-item{ flex-direction: column !important; }
  .link-item .link-actions{ width: 100%; }
  .link-item .link-actions .btn{ flex: 1 1 auto; }
}

/* Upload forms: knop onder input op mobiel */
@media (max-width: 576px){
  .lj-upload-form{ flex-direction: column !important; align-items: stretch !important; }
  .lj-upload-form .btn{ width: 100%; }
}

/* =========================
   Dashboard: spacing + mobile clean-up
   ========================= */

/* Tabs: horizontaal scrollbaar op small screens */
.lj-tabs{
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.lj-tabs .nav-link{ white-space: nowrap; }
.lj-tabs::-webkit-scrollbar{ height: 6px; }

/* Minder "lege rand" rond dashboard content op mobiel */
main.container{
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}
@media (max-width: 576px){
  main.container{
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* Dashboard cards compacter op mobiel */
.lj-dashboard-card .card-body{ padding: 1.5rem; }
@media (max-width: 576px){
  .lj-dashboard-card .card-body{ padding: 1rem; }
}

/* Link rows: acties altijd binnen beeld */
@media (max-width: 576px){
  .link-item{ flex-direction: column !important; }
  .link-item .link-actions{ width: 100%; }
  .link-item .link-actions .btn{ flex: 1 1 auto; }
}

/* Upload forms: knop onder input op mobiel */
@media (max-width: 576px){
  .lj-upload-form{ flex-direction: column !important; align-items: stretch !important; }
  .lj-upload-form .btn{ width: 100%; }
}

/* =========================
   Dashboard: spacing + mobile clean-up
   ========================= */

.lj-tabs{
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.lj-tabs .nav-link{ white-space: nowrap; }
.lj-tabs::-webkit-scrollbar{ height: 6px; }

.lj-dashboard-card .card-body{ padding: 1.5rem; }
@media (max-width: 576px){
  .lj-dashboard-card .card-body{ padding: 1rem; }
  main.container.py-4{ padding-top: 1rem !important; padding-bottom: 1rem !important; }
}

@media (max-width: 576px){
  .link-item{ flex-direction: column !important; }
  .link-item .link-actions{ width: 100%; }
  .link-item .link-actions .btn{ flex: 1 1 auto; }
}

@media (max-width: 576px){
  .lj-upload-form{ flex-direction: column !important; align-items: stretch !important; }
  .lj-upload-form .btn{ width: 100%; }
}



/* Dashboard spacing + mobile clean-up */
.dashboard-tabs{
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.dashboard-tabs .nav-link{ white-space: nowrap; }

.dashboard-card .card-body{
  padding: 24px;
}

/* Make dashboard cards less "double-surface" by using true body background */
.flat-card{
  background: var(--lj-bg) !important;
}

/* Prevent horizontal overflow on small screens */
.link-actions{
  display:flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.link-item{
  overflow: hidden;
}

@media (max-width: 640px){
  main.container{
    padding-left: 12px;
    padding-right: 12px;
  }
  .dashboard-card .card-body{
    padding: 16px;
  }
  .vstack.gap-2{ gap: .75rem !important; }
  .vstack.gap-3{ gap: .75rem !important; }

  /* Stack link rows more aggressively on mobile */
  .link-item{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: .5rem !important;
  }
  .link-actions{
    justify-content: flex-start;
  }

  /* File inputs & buttons keep inside viewport */
  input[type="file"]{
    max-width: 100%;
  }
}


/* Section dividers */
.dashboard-card hr{
  margin: 20px 0;
  opacity: .15;
}
@media (max-width: 640px){
  .dashboard-card hr{ margin: 16px 0; }
}
