/* ==========================================================================
   StrucEx — design system
   Loaded after Bootstrap 5.3; this file owns the brand look & feel.
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
  --brand:        #0e7c52;
  --brand-600:    #0c6b47;
  --brand-700:    #0a5739;
  --brand-soft:   #e8f3ee;
  --brand-tint:   #f1f8f4;
  --accent:       #f5a524;
  --accent-600:   #e0921a;

  --ink:          #0c1a14;
  --ink-700:      #16271f;
  --ink-600:      #25392f;
  --body:         #46544c;
  --muted:        #76867d;
  --line:         #e4eae6;
  --line-strong:  #d2ddd7;
  --surface:      #ffffff;
  --bg:           #f5f8f6;
  --bg-2:         #eef3f0;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    26px;
  --shadow-sm:    0 1px 2px rgba(12,26,20,.06), 0 1px 3px rgba(12,26,20,.07);
  --shadow:       0 8px 24px -10px rgba(12,26,20,.18), 0 16px 40px -20px rgba(12,26,20,.18);
  --shadow-lg:    0 28px 64px -20px rgba(12,26,20,.34);
  --ring:         0 0 0 4px rgba(14,124,82,.16);

  --container:    1180px;
  --font-display: 'Space Grotesk', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Recolour Bootstrap to the brand */
  --bs-primary: #0e7c52;
  --bs-primary-rgb: 14,124,82;
  --bs-link-color: #0c6b47;
  --bs-link-hover-color: #0a5739;
  --bs-border-radius: 12px;
  --bs-body-font-family: var(--font-body);
}

/* --- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }

a { color: var(--brand-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container-x { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --bs-btn-border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .68rem 1.35rem;
  letter-spacing: .005em;
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .92rem 1.9rem; font-size: 1.03rem; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }

.btn-brand, .btn-primary, .btn-success {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(14,124,82,.6);
}
.btn-brand:hover, .btn-primary:hover, .btn-success:hover {
  background: var(--brand-600); border-color: var(--brand-600); color: #fff;
  box-shadow: 0 12px 24px -8px rgba(14,124,82,.65);
}
.btn-accent {
  background: var(--accent); border-color: var(--accent); color: var(--ink);
  box-shadow: 0 8px 18px -8px rgba(245,165,36,.65);
}
.btn-accent:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--ink); }

.btn-outline-brand, .btn-outline-primary {
  background: transparent; border: 1.5px solid var(--brand); color: var(--brand-600);
}
.btn-outline-brand:hover, .btn-outline-primary:hover {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.32); color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-secondary { border-color: var(--line-strong); color: var(--ink-600); }
.btn-outline-secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- Navigation ---------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-nav.is-scrolled { box-shadow: 0 6px 22px -14px rgba(12,26,20,.4); }
.site-nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 74px; display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(140deg, var(--brand), var(--brand-700));
  color: #fff; display: grid; place-items: center; font-size: 1.15rem;
  box-shadow: 0 6px 14px -6px rgba(14,124,82,.7);
}
.brand__text { font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.brand__text strong { color: var(--brand); font-weight: 700; }
.brand--light .brand__text { color: #fff; }
.brand--light .brand__text strong { color: var(--accent); }

.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav-links { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.nav-link {
  font-weight: 500; font-size: .96rem; color: var(--ink-600);
  padding: .55rem .85rem; border-radius: 9px; background: none; border: 0;
  cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-body);
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-tint); }
.nav-link.active { color: var(--brand-700); }
.nav-link i { font-size: .8rem; transition: transform .2s ease; }

.nav-dropdown { position: relative; }
.nav-submenu {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .16s ease;
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown:hover .nav-link--toggle i { transform: rotate(180deg); }
.nav-submenu a {
  display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem;
  border-radius: 9px; color: var(--ink-600); font-size: .93rem; font-weight: 500;
}
.nav-submenu a i { color: var(--brand); font-size: 1rem; }
.nav-submenu a:hover { background: var(--brand-tint); color: var(--brand-700); }

.nav-toggle {
  margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--surface); display: none;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.6rem; gap: .4rem; margin: 0;
    box-shadow: var(--shadow); max-height: calc(100vh - 74px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .2s ease;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-link { padding: .8rem .9rem; font-size: 1rem; justify-content: space-between; }
  .nav-submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .4rem .9rem;
    display: none;
  }
  .nav-dropdown.open .nav-submenu { display: block; }
  .nav-cta { margin-top: .6rem; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* --- Section scaffolding ------------------------------------------------- */
.section { padding: 92px 0; }
.section--tint { background: var(--bg-2); }
.section--ink { background: var(--ink); color: #cdd8d2; }
.section-head { max-width: 660px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.85rem); margin-bottom: .55rem; }
.section-head p { font-size: 1.07rem; color: var(--muted); }
.section--ink .section-head h2 { color: #fff; }
.section--ink .eyebrow { color: var(--accent); }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 88% -8%, rgba(14,124,82,.42), transparent 62%),
              radial-gradient(760px 480px at 2% 108%, rgba(245,165,36,.16), transparent 60%),
              var(--ink);
  color: #d6e0db;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(900px 540px at 30% 30%, #000 55%, transparent 100%);
          mask-image: radial-gradient(900px 540px at 30% 30%, #000 55%, transparent 100%);
}
.hero__inner {
  position: relative; max-width: var(--container); margin: 0 auto; padding: 86px 24px 96px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; padding: .42rem .85rem;
  border: 1px solid rgba(255,255,255,.16); border-radius: 100px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #b9c8c0; margin-bottom: 1.5rem;
}
.hero__eyebrow i { color: var(--accent); }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem); line-height: 1.08;
  letter-spacing: -.025em; margin-bottom: 1.1rem;
}
.rotator { color: var(--accent); display: inline-block; }
.rotator__word { display: inline-block; transition: opacity .25s ease, transform .25s ease; }
.rotator.is-swapping .rotator__word { opacity: 0; transform: translateY(-8px); }
.hero__lead { font-size: 1.13rem; color: #b6c5bd; max-width: 520px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stat .num {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; color: #fff;
}
.hero__stat .num span { color: var(--accent); }
.hero__stat .lbl { font-size: .86rem; color: #9fb1a8; }

.hero__visual { position: relative; }
.hero__frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg); transform: rotate(1.4deg);
}
.hero__frame img { width: 100%; display: block; aspect-ratio: 4/3.4; object-fit: cover; }
.hero__badge {
  position: absolute; left: -26px; bottom: 34px; background: var(--surface); color: var(--ink);
  border-radius: 16px; padding: .95rem 1.15rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .8rem; transform: rotate(-2deg);
}
.hero__badge i { font-size: 1.7rem; color: var(--brand); }
.hero__badge .t { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.hero__badge .s { font-size: .8rem; color: var(--muted); }

/* --- Logo / trust strip -------------------------------------------------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust__inner {
  max-width: var(--container); margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.trust__label { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trust__items { display: flex; gap: 30px; flex-wrap: wrap; }
.trust__item { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink-600); }
.trust__item i { color: var(--brand); font-size: 1.15rem; }

/* --- Packages ------------------------------------------------------------ */
.pkg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.pkg-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pkg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.pkg-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.pkg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pkg-card:hover .pkg-card__media img { transform: scale(1.06); }
.pkg-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pkg-card__title { font-size: 1.18rem; margin-bottom: .45rem; }
.pkg-card__text { font-size: .94rem; color: var(--muted); margin-bottom: 1.1rem; flex: 1; }
.pkg-card__link {
  font-weight: 600; font-size: .93rem; color: var(--brand-600);
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto;
}
.pkg-card__link i { transition: transform .15s ease; }
.pkg-card__link:hover i { transform: translateX(4px); }
.pkg-card__link--soon { color: var(--muted); cursor: default; }
.pkg-empty { text-align: center; color: var(--muted); grid-column: 1 / -1; padding: 40px 0; }

/* --- About / feature split ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__visual {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative;
}
.split__visual img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.split__visual--pad {
  background: linear-gradient(150deg, var(--brand-tint), var(--brand-soft));
  display: grid; place-items: center; padding: 56px;
}
.split__visual--pad img { aspect-ratio: auto; max-width: 240px; box-shadow: none; }
.feature-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 1.05rem; }
.feature-list li { display: flex; gap: .85rem; }
.feature-list .ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-size: 1.05rem;
}
.feature-list h4 { font-size: 1.02rem; margin: .15rem 0 .15rem; }
.feature-list p { font-size: .92rem; color: var(--muted); margin: 0; }

/* --- Stat band ----------------------------------------------------------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.statband__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
}
.statband__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--brand); }
.statband__lbl { font-size: .92rem; color: var(--muted); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band {
  background: radial-gradient(700px 360px at 85% 0%, rgba(245,165,36,.22), transparent 60%),
              linear-gradient(135deg, var(--brand-700), var(--brand));
  color: #fff; border-radius: var(--radius-lg); padding: 58px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1rem + 1.8vw, 2.3rem); margin-bottom: .35rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9fb1a8; }
.site-footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px;
}
.site-footer__brand p { font-size: .92rem; margin: 1rem 0 1.2rem; max-width: 320px; }
.site-footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 700;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer__col a { color: #9fb1a8; font-size: .93rem; display: inline-flex; gap: .5rem; align-items: center; }
.site-footer__col a:hover { color: var(--accent); }
.social-links { display: flex; gap: .6rem; }
.social-links a {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.07);
  display: grid; place-items: center; color: #cdd8d2; font-size: 1.1rem;
}
.social-links a:hover { background: var(--brand); color: #fff; }
.site-footer__bar {
  max-width: var(--container); margin: 0 auto; padding: 22px 24px;
  border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.site-footer__bar p { margin: 0; font-size: .85rem; color: #76867d; }

/* --- Flash toast --------------------------------------------------------- */
.flash-toast {
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--brand); color: var(--ink);
}
.flash-toast .toast-body { font-weight: 500; }
.flash-toast i { font-size: 1.2rem; }
.flash-success { border-left-color: #16a34a; } .flash-success i { color: #16a34a; }
.flash-danger  { border-left-color: #dc2626; } .flash-danger i  { color: #dc2626; }
.flash-warning { border-left-color: var(--accent); } .flash-warning i { color: var(--accent-600); }
.flash-info    { border-left-color: var(--brand); }  .flash-info i    { color: var(--brand); }

/* --- Reveal-on-scroll (only hidden when JS is available) ----------------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Auth page (Registration.php)
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth__aside {
  position: relative; overflow: hidden; color: #d6e0db; padding: 56px 56px;
  display: flex; flex-direction: column;
  background: radial-gradient(700px 420px at 80% 0%, rgba(14,124,82,.5), transparent 60%), var(--ink);
}
.auth__aside::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(600px 400px at 70% 20%, #000 50%, transparent 100%);
          mask-image: radial-gradient(600px 400px at 70% 20%, #000 50%, transparent 100%);
}
.auth__aside > * { position: relative; }
.auth__aside h2 { color: #fff; font-size: 2rem; margin: auto 0 1rem; }
.auth__aside .lead-sm { color: #b6c5bd; max-width: 380px; }
.auth__points { list-style: none; padding: 0; margin: 1.6rem 0 auto; display: grid; gap: .9rem; }
.auth__points li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.auth__points i { color: var(--accent); font-size: 1.1rem; margin-top: .12rem; }
.auth__aside .copyright { color: #76867d; font-size: .82rem; }

.auth__main {
  display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card .back-home {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem;
  font-weight: 600; color: var(--muted); margin-bottom: 1.6rem;
}
.auth-card .back-home:hover { color: var(--brand); }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-2);
  border-radius: 12px; padding: 4px; margin-bottom: 1.6rem;
}
.auth-tab {
  border: 0; background: none; padding: .65rem; border-radius: 9px; font-weight: 600;
  font-size: .93rem; color: var(--muted); cursor: pointer; font-family: var(--font-body);
}
.auth-tab.active { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-sm); }
.auth-pane { display: none; }
.auth-pane.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.auth-card .sub { color: var(--muted); font-size: .94rem; margin-bottom: 1.5rem; }

.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-600); margin-bottom: .4rem; }
.field-control { position: relative; }
.field-control .fic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1rem;
}
.field input, .field select {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 11px;
  padding: .8rem .9rem .8rem 2.6rem; font-family: var(--font-body); font-size: .96rem;
  color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field .toggle-pass {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; font-size: 1.05rem;
}
.field .toggle-pass:hover { color: var(--brand); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.auth-switch { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 1.3rem; }
.auth-switch button { background: none; border: 0; color: var(--brand-600); font-weight: 600; cursor: pointer; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
}

/* ==========================================================================
   Dashboard (StrucExDashboard.php)
   ========================================================================== */
.dash { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.dash-side {
  background: var(--ink); color: #aebcb4; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.dash-side__brand { padding: 22px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.dash-side__user { padding: 22px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; gap: .8rem; align-items: center; }
.dash-avatar {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, var(--brand), var(--brand-700));
  color: #fff; display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
}
.dash-side__user .nm { color: #fff; font-weight: 600; font-family: var(--font-display); line-height: 1.2; }
.dash-side__user .rl { font-size: .8rem; color: #8fa099; }
.dash-nav { padding: 16px 14px; display: grid; gap: 3px; flex: 1; }
.dash-nav__label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #6f807a;
  padding: 12px 12px 6px;
}
.dash-nav a {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 10px;
  color: #aebcb4; font-weight: 500; font-size: .95rem; cursor: pointer;
}
.dash-nav a i { font-size: 1.1rem; }
.dash-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash-nav a.active { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(14,124,82,.9); }
.dash-side__foot { padding: 16px 14px; border-top: 1px solid rgba(255,255,255,.07); }
.dash-side__foot a {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 10px;
  color: #c98a8a; font-weight: 500; font-size: .95rem;
}
.dash-side__foot a:hover { background: rgba(220,38,38,.14); color: #f0a3a3; }

/* Off-canvas backdrop — hidden on desktop so it never takes a grid column. */
.dash-scrim { display: none; }
.dash-main { background: var(--bg); min-width: 0; }
.dash-top {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 18px 32px; display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 20;
}
.dash-top h1 { font-size: 1.3rem; margin: 0; }
.dash-top .muted { color: var(--muted); font-size: .9rem; }
.dash-burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 1.2rem; color: var(--ink);
}
.dash-body { padding: 32px; }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: fadeUp .3s ease; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: center;
}
.stat-card .ic {
  width: 52px; height: 52px; border-radius: 13px; flex: none; display: grid; place-items: center;
  font-size: 1.4rem; background: var(--brand-soft); color: var(--brand);
}
.stat-card .ic.amber { background: #fdf0d8; color: var(--accent-600); }
.stat-card .ic.ink { background: var(--bg-2); color: var(--ink); }
.stat-card .v { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-card .l { font-size: .86rem; color: var(--muted); margin-top: .25rem; }

.dash-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
}
.dash-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.dash-card__head h3 { font-size: 1.1rem; margin: 0; }
.dash-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }

.table { color: var(--body); margin: 0; }
.table thead th {
  font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); font-weight: 700;
}
.table tbody td { border-bottom: 1px solid var(--line); vertical-align: middle; padding: .85rem .75rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600;
  padding: .22rem .6rem; border-radius: 100px;
}
.pill--admin { background: var(--brand-soft); color: var(--brand-700); }
.pill--emp { background: var(--bg-2); color: var(--ink-600); }
.row-avatar {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-700);
  display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; margin-right: .6rem;
  font-family: var(--font-display);
}
.chart-wrap { position: relative; height: 260px; }

.module-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.module-item {
  display: flex; gap: 14px; align-items: center; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.module-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; background: var(--bg-2); }
.module-item .mt { font-weight: 600; color: var(--ink); font-size: .96rem; }
.module-item .md { font-size: .82rem; color: var(--muted); }

@media (max-width: 1024px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side {
    position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 60; height: 100vh;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .dash-side.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .dash-burger { display: grid; place-items: center; }
  .dash-scrim {
    display: block; position: fixed; inset: 0; background: rgba(12,26,20,.5); z-index: 50;
    opacity: 0; visibility: hidden; transition: .2s;
  }
  .dash-scrim.show { opacity: 1; visibility: visible; }
}

/* ==========================================================================
   Tutorial pages
   ========================================================================== */
.page-hero {
  background: radial-gradient(700px 380px at 85% -10%, rgba(14,124,82,.4), transparent 60%), var(--ink);
  color: #c6d3cc; padding: 56px 0 60px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.7rem); margin-bottom: .5rem; }
.page-hero p { color: #a9bab1; max-width: 560px; margin: 0; }
.page-hero .crumbs { font-size: .85rem; color: #8fa099; margin-bottom: 1rem; }
.page-hero .crumbs a { color: #b6c5bd; }
.page-hero .crumbs a:hover { color: var(--accent); }

.video-stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-sm);
}
.video-stage iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 11px; display: block; }
.video-rail {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.video-rail h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.video-dropdown .dropdown-menu {
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem;
}
.video-dropdown .dropdown-item { border-radius: 8px; padding: .55rem .7rem; font-size: .9rem; white-space: normal; }
.video-dropdown .dropdown-item:hover { background: var(--brand-tint); color: var(--brand-700); }
.btn-outline-brand.dropdown-toggle { text-align: left; }

.gallery-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.gallery-card img { width: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-card:hover img { transform: scale(1.07); }
.gallery-card__zoom {
  position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(12,26,20,.62); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px);
}
.gallery-card__caption { text-align: center; font-weight: 600; color: var(--ink); margin: .7rem 0 0; }

/* --- Generic content card (used by tools/legacy pages) ------------------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px 72px; }
  .hero__visual { max-width: 520px; }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .statband { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .module-list { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .pkg-grid { grid-template-columns: 1fr; }
  .statband { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
  .hero__stats { gap: 24px; }
  .hero__badge { left: 12px; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .dash-body { padding: 20px; }
  .dash-top { padding: 16px 20px; }
}

/* ==========================================================================
   Tutorial — Udemy-style video course
   ========================================================================== */
.course-hero {
  background: radial-gradient(720px 380px at 88% -12%, rgba(14,124,82,.42), transparent 60%), var(--ink);
  color: #c6d3cc; padding: 46px 0 50px;
}
.course-hero .crumbs { font-size: .85rem; color: #8fa099; margin-bottom: .9rem; }
.course-hero .crumbs a { color: #b6c5bd; }
.course-hero .crumbs a:hover { color: var(--accent); }
.course-hero h1 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.5rem); margin-bottom: .5rem; }
.course-hero__sub { color: #a9bab1; max-width: 640px; margin-bottom: 1.15rem; }
.course-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 1.05rem; }
.course-hero__meta span {
  display: inline-flex; align-items: center; gap: .42rem; font-size: .9rem; font-weight: 500; color: #cdd8d2;
}
.course-hero__meta i { color: var(--accent); }
.course-hero__free {
  background: var(--accent); color: var(--ink) !important; font-weight: 700 !important;
  padding: .16rem .65rem; border-radius: 100px; font-size: .76rem !important;
  letter-spacing: .05em; text-transform: uppercase;
}
.course-hero__instructor { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: #9fb1a8; }
.course-hero__instructor strong { color: #fff; }
.course-hero__avatar {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-700));
}

.course-section { padding: 40px 0 84px; }
.course-layout { display: grid; grid-template-columns: 1.62fr 1fr; gap: 30px; align-items: start; }
.course-main { min-width: 0; }

.player { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #05100b; }
.player iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

.now-playing { margin: 18px 0 20px; }
.now-playing__label {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--brand);
}
.now-playing__title { font-size: 1.32rem; margin: .35rem 0 0; }

.course-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.course-tab {
  border: 0; background: none; padding: .72rem 1.15rem; font-family: var(--font-body);
  font-weight: 600; font-size: .94rem; color: var(--muted); cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.course-tab:hover { color: var(--ink); }
.course-tab.active { color: var(--brand-700); border-bottom-color: var(--brand); }
.course-tabpane { display: none; }
.course-tabpane.active { display: block; animation: fadeUp .25s ease; }
.course-tabpane h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.course-overview h3 { font-size: 1.18rem; margin-bottom: .55rem; }

.learn-box {
  background: var(--brand-tint); border: 1px solid var(--brand-soft);
  border-radius: var(--radius); padding: 22px 24px; margin-top: 18px;
}
.learn-box h4 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.learn-box h4 i { color: var(--brand); }
.learn-box ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.7rem;
}
.learn-box li { display: flex; gap: .55rem; font-size: .92rem; color: var(--ink-600); }
.learn-box li i { color: var(--brand); margin-top: .15rem; flex: none; }

/* --- Curriculum panel --------------------------------------------------- */
.course-aside { position: sticky; top: 90px; }
.curriculum {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.curriculum__head { padding: 17px 20px; border-bottom: 1px solid var(--line); }
.curriculum__head h3 { font-size: 1.05rem; margin: 0; }
.curriculum__meta { font-size: .83rem; color: var(--muted); margin: .15rem 0 0; }
.curriculum__progress { padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.curriculum__progress-track {
  height: 7px; background: var(--line-strong); border-radius: 100px; overflow: hidden;
}
.curriculum__progress-bar {
  display: block; height: 100%; background: var(--brand); border-radius: 100px;
  transition: width .35s ease;
}
.curriculum__progress-label { font-size: .79rem; font-weight: 600; color: var(--muted); margin: .5rem 0 0; }
.curriculum__sections { max-height: 62vh; overflow-y: auto; }

.cur-section { border-bottom: 1px solid var(--line); }
.cur-section:last-child { border-bottom: 0; }
.cur-section__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 20px; background: var(--bg); border: 0; cursor: pointer;
  font-family: var(--font-body); text-align: left;
}
.cur-section__head:hover { background: var(--bg-2); }
.cur-section__title {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: .92rem; color: var(--ink);
}
.cur-section__title i { color: var(--muted); font-size: .78rem; transition: transform .2s ease; }
.cur-section.open .cur-section__title i { transform: rotate(-180deg); }
.cur-section__count { font-size: .77rem; color: var(--muted); white-space: nowrap; }
.cur-section__body { display: none; }
.cur-section.open .cur-section__body { display: block; }

.lecture { display: flex; align-items: center; border-top: 1px solid var(--line); }
.lecture:first-child { border-top: 0; }
.lecture.is-active { background: var(--brand-tint); box-shadow: inset 3px 0 0 var(--brand); }
.lecture__check {
  flex: none; margin-left: 16px; width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.lecture__check i { font-size: .8rem; color: transparent; }
.lecture__check:hover { border-color: var(--brand); }
.lecture.is-done .lecture__check { background: var(--brand); border-color: var(--brand); }
.lecture.is-done .lecture__check i { color: #fff; }
.lecture__play {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem;
  padding: 11px 16px 11px 10px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); text-align: left;
}
.lecture__pic { color: var(--muted); font-size: 1.15rem; flex: none; }
.lecture.is-active .lecture__pic { color: var(--brand); }
.lecture__title { font-size: .885rem; color: var(--ink-600); line-height: 1.4; }
.lecture__play:hover .lecture__title { color: var(--brand-700); }
.lecture.is-active .lecture__title { color: var(--brand-700); font-weight: 600; }
.lecture.is-done .lecture__title { color: var(--muted); }

@media (max-width: 980px) {
  .course-layout { grid-template-columns: 1fr; }
  .course-aside { position: static; }
  .curriculum__sections { max-height: none; }
  .learn-box ul { grid-template-columns: 1fr; }
}

/* --- Dashboard table search -------------------------------------------- */
.dash-search { position: relative; display: inline-flex; align-items: center; }
.dash-search i {
  position: absolute; left: 12px; color: var(--muted); font-size: .95rem; pointer-events: none;
}
.dash-search input {
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .55rem .9rem .55rem 2.25rem; font-family: var(--font-body);
  font-size: .9rem; color: var(--ink); background: var(--surface); min-width: 240px;
}
.dash-search input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
@media (max-width: 620px) { .dash-search input { min-width: 0; width: 100%; } }

/* --- License generator -------------------------------------------------- */
.licgen-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  align-items: start; margin-top: 18px;
}
.licgen-fields { display: grid; gap: 14px; }
.lf label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ink-600); margin-bottom: .35rem;
}
.lf input, .lf select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .62rem .8rem; font-family: var(--font-body); font-size: .92rem;
  color: var(--ink); background: var(--surface);
}
.lf input:focus, .lf select:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.licgen-modules {
  border: 1px solid var(--line-strong); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.licgen-modules__head {
  background: var(--brand); color: #fff; padding: .6rem .85rem;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: .86rem;
}
.licgen-selall {
  background: rgba(255,255,255,.2); border: 0; color: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: .76rem; font-weight: 600;
  padding: .22rem .65rem; border-radius: 100px;
}
.licgen-selall:hover { background: rgba(255,255,255,.34); }
.licgen-modules__body { overflow-y: auto; max-height: 322px; }
.licgen-mod {
  display: flex; align-items: center; gap: .6rem; padding: .5rem .85rem;
  border-bottom: 1px solid var(--line); cursor: pointer;
  font-size: .9rem; color: var(--ink-600);
}
.licgen-mod:last-child { border-bottom: 0; }
.licgen-mod:nth-child(even) { background: var(--bg); }
.licgen-mod:hover { background: var(--brand-tint); color: var(--brand-700); }
.licgen-mod input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.licgen-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
@media (max-width: 760px) { .licgen-grid { grid-template-columns: 1fr; } }

/* --- Individual Generate Key ------------------------------------------- */
.indkey { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.indkey .lf { flex: 1 1 260px; margin: 0; }
.indkey .btn { flex: none; }
.indkey-result {
  margin-top: 18px; max-width: 560px; padding: 14px 16px;
  background: var(--brand-tint); border: 1px solid var(--brand-soft);
  border-radius: 12px;
}
.indkey-result[hidden] { display: none; }
.indkey-result > label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ink-600); margin-bottom: .4rem;
}
.indkey-result__row { display: flex; gap: 10px; flex-wrap: wrap; }
.indkey-result__row input {
  flex: 1 1 240px; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .62rem .8rem; background: var(--surface); color: var(--ink);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86rem;
}
.indkey-result__row input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.indkey-result__row .btn { flex: none; }
.indkey-result__meta { font-size: .8rem; margin: .55rem 0 0; }

/* --- License search ----------------------------------------------------- */
.ls-pc {
  max-width: 520px; margin-top: 16px; border: 1px solid var(--line-strong);
  border-radius: 10px; overflow: hidden;
}
.ls-pc__head {
  background: var(--brand); color: #fff; padding: .45rem .85rem;
  font-weight: 600; font-size: .82rem; text-align: center;
}
.ls-pc__body { display: flex; flex-direction: column; }
.ls-pc-row {
  padding: .5rem .85rem; text-align: center; cursor: pointer;
  font-weight: 600; color: var(--brand-700); font-size: .95rem;
  border-top: 1px solid var(--line); transition: background .12s ease;
}
.ls-pc-row:first-child { border-top: 0; }
.ls-pc-row:hover { background: var(--brand-tint); }
.ls-pc-row.is-active { background: var(--brand); color: #fff; }
.ls-result-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 18px;
}
.ls-active {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--brand-soft); color: var(--brand-700); font-weight: 600;
  font-size: .85rem; padding: .45rem .85rem; border-radius: 100px;
}
.ls-active i { font-size: .95rem; }
#lsTable tbody tr { cursor: pointer; }
#lsTable tbody tr:hover { background: var(--brand-tint); }
.ls-del-cell { width: 1%; white-space: nowrap; text-align: center; }
.ls-del {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: .28rem .5rem; border-radius: 7px; font-size: .95rem; line-height: 1;
  transition: background .12s ease, color .12s ease;
}
.ls-del:hover { background: #fee2e2; color: #dc2626; }
.ls-del:disabled { opacity: .5; cursor: default; }
.ls-key {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem;
  color: var(--muted); max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
#lsTable td.ls-date {
  font-weight: 600; color: var(--brand-700); white-space: nowrap;
}
#lsTable td.ls-date::after {
  content: "\F4CA"; font-family: "bootstrap-icons"; font-weight: normal;
  margin-left: .4rem; font-size: .82rem; color: var(--brand); opacity: .55;
}
#lsTable tbody tr:hover td.ls-date::after { opacity: 1; }

/* --- License Date editor (calendar modal) ------------------------------- */
.lsd-overlay {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(12,26,20,.55); backdrop-filter: blur(2px);
  animation: lsd-fade .15s ease;
}
.lsd-overlay[hidden] { display: none; }
@keyframes lsd-fade { from { opacity: 0; } to { opacity: 1; } }
.lsd-modal {
  width: 100%; max-width: 380px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-lg, 0 24px 50px -12px rgba(12,26,20,.4));
  overflow: hidden; animation: lsd-pop .18s ease;
}
@keyframes lsd-pop { from { transform: translateY(12px) scale(.97); opacity: 0; }
                     to   { transform: translateY(0) scale(1); opacity: 1; } }
.lsd-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(140deg, var(--brand), var(--brand-700));
  color: #fff; padding: .85rem 1.1rem;
}
.lsd-modal__head h3 {
  margin: 0; font-size: 1rem; color: #fff;
  display: flex; align-items: center; gap: .5rem;
}
.lsd-x {
  background: rgba(255,255,255,.18); border: 0; color: #fff;
  width: 28px; height: 28px; border-radius: 8px; font-size: 1.2rem;
  line-height: 1; cursor: pointer; transition: background .12s ease;
}
.lsd-x:hover { background: rgba(255,255,255,.34); }
.lsd-meta {
  display: flex; flex-wrap: wrap; gap: .35rem .85rem;
  padding: .75rem 1.1rem; background: var(--brand-tint);
  border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--ink-600);
}
.lsd-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.lsd-meta i { color: var(--brand); }
.lsd-cal { padding: .9rem 1.1rem .4rem; }
.lsd-cal__bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .65rem;
}
.lsd-cal__month {
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  color: var(--ink);
}
.lsd-nav {
  background: var(--brand-soft); border: 0; color: var(--brand-700);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center; transition: background .12s ease;
}
.lsd-nav:hover { background: var(--brand); color: #fff; }
.lsd-cal__dow {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  margin-bottom: 4px;
}
.lsd-cal__dow span {
  text-align: center; font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.lsd-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.lsd-day {
  aspect-ratio: 1 / 1; border: 0; background: transparent; cursor: pointer;
  border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-600);
  display: grid; place-items: center; transition: background .12s ease, color .12s ease;
}
.lsd-day:hover { background: var(--brand-tint); }
.lsd-day.is-blank { pointer-events: none; }
.lsd-day.is-today { box-shadow: inset 0 0 0 1.5px var(--brand-soft); color: var(--brand-700); }
.lsd-day.is-sel {
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 14px -6px rgba(14,124,82,.9);
}
.lsd-quick {
  display: flex; gap: .5rem; padding: .15rem 1.1rem .7rem;
}
.lsd-quick__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .5rem .6rem; border-radius: 8px;
  border: 1.5px solid var(--brand-soft); background: var(--brand-tint);
  color: var(--brand-700); font-weight: 600; font-size: .82rem;
  cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.lsd-quick__btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.lsd-quick__btn i { font-size: .92rem; }
.lsd-const { padding: .1rem 1.1rem .35rem; }
.lsd-const label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ink-600); margin-bottom: .3rem;
}
.lsd-const input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .55rem .8rem; font-family: var(--font-body); font-size: .9rem;
  color: var(--ink); background: var(--surface);
}
.lsd-const input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.lsd-const__note {
  display: flex; align-items: flex-start; gap: .35rem;
  margin: .4rem 0 0; font-size: .76rem; color: var(--muted);
}
.lsd-const__note i { color: var(--brand); margin-top: .1rem; }
.lsd-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .6rem; padding: .85rem 1.1rem 1rem;
  border-top: 1px solid var(--line);
}
.lsd-picked {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--ink-600);
}
.lsd-picked i { color: var(--brand); }
.lsd-foot__btns { display: flex; gap: .5rem; }
