:root {
  --ml-forest-dark: #051C12;
  --ml-forest: #0B6B3A;
  --ml-forest-mid: #176B3A;
  --ml-lime: #B4F105;
  --ml-lime-hover: #C1F824;
  --ml-sage: #50624A;
  --ml-bg: #F5F6F4;
  --ml-card: #FFFFFF;
  --ml-border: #E3EAE5;
  --ml-text: #0B130F;
  --ml-muted: #6C7E75;
}

body { background-color: var(--ml-bg); color: var(--ml-text); }
a { color: var(--ml-forest); }
a:hover { color: #084E2B; }

.theme-btn,
.btn-primary,
.btn-success {
  background-color: var(--ml-forest) !important;
  border-color: var(--ml-forest) !important;
  color: #fff !important;
}
.theme-btn:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  background-color: var(--ml-forest-dark) !important;
  border-color: var(--ml-forest-dark) !important;
  color: #fff !important;
}
.btn-outline-primary {
  color: var(--ml-forest) !important;
  border-color: var(--ml-forest) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--ml-forest) !important;
  border-color: var(--ml-forest) !important;
  color: #fff !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: var(--ml-forest-dark) !important;
  border-color: var(--ml-forest-dark) !important;
  color: #fff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ml-forest-mid) !important;
  box-shadow: 0 0 0 .2rem rgba(23,107,58,.15) !important;
}

.card,
.shop-card-items,
.border.rounded {
  border-color: var(--ml-border) !important;
}

.badge.bg-primary,
.badge.bg-success {
  background-color: var(--ml-forest) !important;
}

.page-link { color: var(--ml-forest); }
.page-item.active .page-link {
  background-color: var(--ml-forest);
  border-color: var(--ml-forest);
}

.text-primary { color: var(--ml-forest) !important; }
.bg-primary { background-color: var(--ml-forest) !important; }

.sidebar-wrapper { background-color: var(--ml-forest-dark) !important; }
.sidebar-menu-link.active,
.sidebar-menu-link:hover { color: var(--ml-lime) !important; }

:focus-visible {
  outline: 3px solid var(--ml-lime);
  outline-offset: 2px;
}

/* Official MarketLink identity */
.ml-brand-logo { display:block; width:auto; max-width:230px; height:54px; object-fit:contain; }
.ml-brand-logo-footer { max-width:210px; }
.ml-sidebar-logo { display:block; width:170px; max-width:100%; height:54px; object-fit:contain; }
.ml-navbar-logo { display:block; width:132px; height:40px; object-fit:contain; }
.ml-auth-logo { display:block; width:min(240px, 80%); height:auto; max-height:92px; object-fit:contain; margin:0 auto; }
.sidebar-brand { min-height:76px; display:flex; align-items:center; justify-content:center; padding:10px 18px; }

/* Consistent premium interactions */
.card, .shop-card-items, .sidebar-menu-link, .theme-btn, .btn, .form-control, .form-select, .navbar-action-btn {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}
.card:hover, .shop-card-items:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(5,28,18,.08); }
.theme-btn:active, .btn:active { transform: translateY(1px) scale(.99); }
.form-control:invalid:not(:placeholder-shown), .form-select:invalid:not(:focus) { border-color:#b02a37; }

@media (max-width: 575.98px) {
  .ml-brand-logo { max-width:170px; height:44px; }
  .ml-auth-logo { width:min(200px, 78%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
.ml-footer-mini-logo { width:120px; height:34px; object-fit:contain; }

/* Canonical MarketLink design tokens used across public and portal interfaces. */
:root {
  --ml-primary: var(--ml-forest);
  --ml-primary-dark: var(--ml-forest-dark);
  --ml-primary-light: #e9f5ee;
  --ml-accent: var(--ml-lime);
  --ml-background: var(--ml-bg);
  --ml-surface: var(--ml-card);
  --ml-surface-soft: #f0f4f1;
  --ml-text-muted: var(--ml-muted);
  --ml-success: #198754;
  --ml-warning: #b7791f;
  --ml-danger: #b02a37;
  --ml-info: #0f6b7a;
}

.table-responsive { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-responsive > .table { min-width: 680px; margin-bottom:0; }
.card { border-radius:14px; }
.form-control, .form-select, .btn { border-radius:10px; }

@media (max-width: 767.98px) {
  .main-wrapper .container-fluid { padding-left: 1rem !important; padding-right: 1rem !important; }
  .page-header { gap: .75rem; flex-wrap: wrap; }
  .page-title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .card { border-radius:12px; }
  .table-responsive > .table { min-width: 620px; }
}


/* ===== MarketLink 2026 visual QA: responsive media, motion and cursor ===== */
html, body { max-width: 100%; overflow-x: clip; }
img { max-width: 100%; height: auto; }
.hero-portfolio-revealing-slide-inner { min-height: clamp(640px, 82vh, 900px); background-position: center; }
.shop-card-items .shop-image img,
.team-card-item .team-image img,
section .border.rounded > img,
section img.rounded { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.team-card-item .team-image img { aspect-ratio: 4 / 4.2; }
.shop-card-items .shop-image img { aspect-ratio: 1 / 1; }
.breadcrumb-wrapper { background-position: center; }

.ml-motion-ready [data-ml-reveal] { will-change: transform, opacity; }
.ml-cursor-enabled, .ml-cursor-enabled a, .ml-cursor-enabled button, .ml-cursor-enabled [role="button"] { cursor: none !important; }
.mouseCursor { pointer-events:none; position:fixed; left:0; top:0; z-index:999999; visibility:hidden; transform:translate3d(-100px,-100px,0); }
.cursor-inner { width:8px; height:8px; border-radius:50%; background:var(--ml-lime); margin:-4px 0 0 -4px; }
.cursor-outer { width:34px; height:34px; border:1.5px solid rgba(180,241,5,.82); border-radius:50%; margin:-17px 0 0 -17px; backdrop-filter: blur(1px); transition:width .18s ease,height .18s ease,margin .18s ease,border-color .18s ease,background-color .18s ease; }
.cursor-inner.cursor-hover { width:10px; height:10px; margin:-5px 0 0 -5px; }
.cursor-outer.cursor-hover { width:52px; height:52px; margin:-26px 0 0 -26px; background:rgba(180,241,5,.10); border-color:rgba(180,241,5,1); }

@media (max-width: 1199.98px) {
  .header-1 .container-fluid { padding-left: 24px; padding-right: 24px; }
  .ml-brand-logo { max-width: 190px; }
  .hero-portfolio-revealing-slide-content { padding-inline: 0 !important; }
}
@media (max-width: 991.98px) {
  .section-padding { padding-top: 72px !important; padding-bottom: 72px !important; }
  .hero-portfolio-revealing-slide-inner { min-height: 680px; }
  .hero-portfolio-revealing-slide-content h1 { font-size: clamp(2.35rem, 8vw, 4.25rem) !important; line-height: 1.03 !important; }
  .hero-button { display:flex; flex-wrap:wrap; gap:12px; }
  .footer-top-item, .footer-right-item { flex-wrap: wrap; gap: 20px; }
  .navbar-custom { padding-inline: 14px; }
}
@media (max-width: 767.98px) {
  .section-padding { padding-top: 56px !important; padding-bottom: 56px !important; }
  .hero-portfolio-revealing-slide-inner { min-height: 640px; }
  .hero-portfolio-revealing-slide-content { text-align:left !important; padding-top:90px; }
  .hero-portfolio-revealing-slide-content h1 { font-size: clamp(2.1rem, 11vw, 3.25rem) !important; }
  .hero-portfolio-revealing-slide-content p { font-size: 1rem !important; }
  .theme-btn, .theme-btn-2 { min-height: 48px; display:inline-flex; align-items:center; justify-content:center; }
  .row.g-5 { --bs-gutter-y: 2rem; }
  .breadcrumb-wrapper .page-heading { padding-inline: 10px; }
  .breadcrumb-wrapper .page-heading h1 { font-size: clamp(2rem, 10vw, 3rem); }
  form.row > [class*="col-"] { min-width: 0; }
  .footer-widget-wrapper .row > div { margin-bottom: 8px; }
}
@media (max-width: 575.98px) {
  .header-1 .container-fluid { padding-left: 14px; padding-right: 14px; }
  .hero-button > a { width:100%; }
  .shop-card-items .shop-image img { aspect-ratio: 4 / 3; }
  .table-responsive > .table { min-width: 560px; }
  .main-wrapper .container-fluid, .main-wrapper > .px-4 { padding-left: .8rem !important; padding-right: .8rem !important; }
  .page-header .btn, .page-header .theme-btn { width:100%; }
  .ml-navbar-logo { width:108px; }
}
@media (hover:none), (pointer:coarse), (max-width: 767.98px) {
  .mouseCursor { display:none !important; }
  body, a, button, [role="button"] { cursor:auto !important; }
}

/* Public page heroes */
.ml-page-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(320px, 42vw, 520px);
  display: flex;
  align-items: end;
  overflow: hidden;
  background-image: var(--ml-hero-image);
  background-size: cover;
  background-position: center;
}
.ml-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}
.ml-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 28, 18, .92) 0%, rgba(5, 28, 18, .72) 48%, rgba(5, 28, 18, .30) 100%),
    linear-gradient(0deg, rgba(5, 28, 18, .55) 0%, rgba(5, 28, 18, .04) 56%);
}
.ml-page-hero__content {
  width: min(760px, 100%);
  padding: clamp(110px, 15vw, 180px) 0 clamp(42px, 6vw, 72px);
  color: #fff;
}
.ml-page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ml-lime);
  font-weight: 700;
  letter-spacing: .04em;
}
.ml-page-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 5.8vw, 5rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.ml-page-hero p {
  max-width: 62ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}
.ml-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
}
.ml-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, .52);
}
.ml-breadcrumb a { color: #fff; }
.ml-breadcrumb li[aria-current="page"] { color: rgba(255, 255, 255, .72); }

/* Responsive public content */
.ml-filter-panel {
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--ml-border);
  border-radius: 14px;
  background: #fff;
}
.ml-responsive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.ml-map {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--ml-border);
  border-radius: 14px;
  overflow: hidden;
}
.ml-detail-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}
.ml-auth-shell {
  padding-top: clamp(48px, 6vw, 80px) !important;
}

@media (max-width: 991.98px) {
  .ml-page-hero {
    min-height: 410px;
    background-position: center;
  }
  .ml-page-hero::after {
    background: linear-gradient(90deg, rgba(5, 28, 18, .9) 0%, rgba(5, 28, 18, .68) 70%, rgba(5, 28, 18, .38) 100%);
  }
  .ml-filter-panel .theme-btn,
  .ml-filter-panel .btn { min-height: 48px; }
}

@media (max-width: 767.98px) {
  .ml-page-hero {
    min-height: 360px;
    background-position: 58% center;
  }
  .ml-page-hero::after {
    background: linear-gradient(90deg, rgba(5, 28, 18, .94), rgba(5, 28, 18, .7));
  }
  .ml-page-hero__content { padding: 110px 0 38px; }
  .ml-page-hero h1 { max-width: 12ch; }
  .ml-page-hero p { margin-top: 14px; }
  .ml-filter-panel { padding: 14px; }
  .ml-responsive-actions > * { width: 100%; }
  .ml-responsive-actions .theme-btn,
  .ml-responsive-actions .btn { width: 100%; text-align: center; }
  .ml-map { min-height: 280px; }
}

@media (max-width: 575.98px) {
  .ml-page-hero { min-height: 330px; }
  .ml-page-hero__content { padding-top: 96px; }
  .ml-breadcrumb { font-size: .875rem; }
  .shop-card-items .shop-content { padding-inline: 16px; }
  .section-title h2 { font-size: clamp(1.9rem, 9vw, 2.5rem) !important; }
}

.hero-portfolio-revealing-slide-inner {
  position: relative;
  isolation: isolate;
}
.hero-portfolio-revealing-slide-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 28, 18, .86) 0%, rgba(5, 28, 18, .58) 52%, rgba(5, 28, 18, .24) 100%),
    linear-gradient(0deg, rgba(5, 28, 18, .48) 0%, transparent 55%);
}
.hero-portfolio-revealing-slide-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero-portfolio-revealing-slide-content p {
  max-width: 62ch;
}

@media (max-width: 767.98px) {
  .hero-portfolio-revealing-slide-inner::after {
    background: linear-gradient(90deg, rgba(5, 28, 18, .92), rgba(5, 28, 18, .66));
  }
}

/* Portal safeguards for small screens */
@media (max-width: 991.98px) {
  .navbar-custom .navbar-left,
  .navbar-custom .navbar-actions {
    width: 100%;
  }
  .navbar-custom .navbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    justify-content: flex-start;
  }
  .navbar-custom .navbar-actions > * { margin-right: 0 !important; }
  .navbar-custom .navbar-actions form { margin-left: auto; }
  .main-wrapper .row > [class*="col-"] { min-width: 0; }
}

@media (max-width: 575.98px) {
  .main-wrapper { padding: 1rem !important; }
  .navbar-custom {
    margin: -1rem -1rem 0 !important;
    padding: .9rem 1rem !important;
  }
  .navbar-custom .navbar-left {
    display: flex;
    align-items: center;
    gap: .5rem;
  }
  .navbar-custom .navbar-left strong {
    min-width: 0;
    font-size: .95rem;
    line-height: 1.25;
  }
  .navbar-custom .navbar-actions {
    font-size: .875rem;
  }
  .navbar-custom .navbar-actions > span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .navbar-custom .navbar-actions a,
  .navbar-custom .navbar-actions button {
    min-height: 40px;
  }
  .navbar-custom .navbar-actions form { margin-left: 0; }
  .main-wrapper .card-body,
  .main-wrapper .card-header { padding-left: 1rem; padding-right: 1rem; }
  .main-wrapper .btn-group,
  .main-wrapper .input-group { max-width: 100%; }
  .main-wrapper input,
  .main-wrapper select,
  .main-wrapper textarea { max-width: 100%; }
}

/* MarketLink announcement popup */
.ml-announcement-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ml-announcement-popup[hidden] {
    display: none !important;
}

.ml-announcement-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 28, 18, 0.38);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.ml-announcement-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 30px 32px 32px;
    overflow: hidden;
    border: 1px solid var(--ml-border);
    border-radius: 20px;
    background: var(--ml-card);
    color: var(--ml-text);
    box-shadow: 0 24px 70px rgba(5, 28, 18, 0.24);
    transform: translateY(12px) scale(.985);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.ml-announcement-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--ml-forest), var(--ml-lime));
}

.ml-announcement-popup.is-visible .ml-announcement-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ml-announcement-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--ml-forest);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ml-announcement-kicker-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ml-lime);
    box-shadow: 0 0 0 4px rgba(180, 241, 5, .18);
}

.ml-announcement-title {
    margin: 0 42px 10px 0;
    color: var(--ml-forest-dark);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.2;
}

.ml-announcement-message {
    color: var(--ml-sage);
    font-size: 1rem;
    line-height: 1.65;
    white-space: pre-line;
}

.ml-announcement-close {
    position: absolute;
    top: 17px;
    right: 17px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--ml-border);
    border-radius: 50%;
    background: var(--ml-bg);
    color: var(--ml-forest-dark);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.ml-announcement-close:hover,
.ml-announcement-close:focus {
    background: var(--ml-primary-light);
    border-color: rgba(11, 107, 58, .3);
    color: var(--ml-forest);
}

body.ml-announcement-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .ml-announcement-popup {
        align-items: flex-end;
        padding: 14px;
    }

    .ml-announcement-card {
        width: 100%;
        padding: 27px 22px 25px;
        border-radius: 18px;
    }

    .ml-announcement-title {
        margin-right: 38px;
    }
}

/* MarketLink rule-based help widget */
.ml-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
}

.ml-chatbot-toggle {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--ml-forest);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.ml-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: min(360px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.ml-chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ml-chatbot-header small {
    display: block;
    margin-top: 2px;
    color: #6c757d;
}

.ml-chatbot-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
}

.ml-chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    min-height: 220px;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
}

.ml-chatbot-message {
    max-width: 88%;
    padding: 9px 12px;
    border-radius: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.ml-chatbot-message-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ml-chatbot-message-user {
    align-self: flex-end;
    background: #edf3e4;
}

.ml-chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ml-chatbot-form .form-control {
    min-width: 0;
}

.ml-chatbot-form .theme-btn {
    padding: 10px 16px;
}

@media (max-width: 575.98px) {
    .ml-chatbot {
        right: 16px;
        bottom: 16px;
    }

    .ml-chatbot-panel {
        position: fixed;
        right: 16px;
        bottom: 84px;
        left: 16px;
        width: auto;
    }

    .ml-chatbot-messages {
        max-height: 46vh;
    }
}
