/* ===========================================================================
   modern-v12.css — v0.1.80 (additive) : GUIDE PAGE + ROLE-MANUAL LAYER.

   Loaded AFTER modern-v11.css on every public page (and on the NEW guide.php
   page). It only ADDS presentation for:

     1. THE GUIDE PAGE (guide.php — NEW file this release): hero, live brand
        title, feature filter, role switcher (Shopper manual / Admin & Staff
        ERP manual), feature cards, inline SVG diagrams, keyboard-shortcut
        chips, live role-access tables, live help band.
     2. THE "GUIDE" LINK the companion modern-v12.js injects into the
        main.js-rendered navbar "More" dropdown and footer quick links
        (a small fresh badge marks it on every page).

   Everything is namespaced .g80- / .md80- so no existing rule can collide.
   Deep-green palette only (site rule: no amber/yellow on green-theme CSS).
   Nothing existing is modified, moved or removed.
   =========================================================================== */

/* ------------------------------------------------------------------ */
/* 1. GUIDE HERO                                                       */
/* ------------------------------------------------------------------ */
.g80-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 460px at 12% -10%, rgba(34, 197, 94, 0.22), transparent 60%),
        radial-gradient(900px 420px at 88% 0%, rgba(74, 222, 128, 0.14), transparent 55%),
        linear-gradient(160deg, #052e16 0%, #0b3d20 48%, #14532d 100%);
    color: #f0fdf4;
    padding: 84px 24px 64px;
    text-align: center;
}
.g80-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(240, 253, 244, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 253, 244, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 30%, transparent 75%);
}
.g80-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--md72-max, 1600px);
    margin: 0 auto;
}
.g80-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}
.g80-hero h1 {
    margin: 22px auto 14px;
    max-width: 900px;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.12;
    font-weight: 900;
    color: #ffffff;
}
.g80-hero h1 .g80-script {
    background: linear-gradient(92deg, #4ade80, #22c55e 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    padding-right: 6px;
}
.g80-hero-sub {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(240, 253, 244, 0.82);
    font-size: 1.06rem;
    line-height: 1.65;
}
.g80-filterwrap {
    margin: 30px auto 0;
    max-width: 640px;
    position: relative;
}
.g80-filter {
    width: 100%;
    padding: 16px 54px 16px 22px;
    border-radius: 16px;
    border: 1px solid rgba(74, 222, 128, 0.4);
    background: rgba(2, 44, 34, 0.55);
    color: #f0fdf4;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.g80-filter::placeholder { color: rgba(240, 253, 244, 0.55); }
.g80-filter:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.g80-filter-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #4ade80;
    pointer-events: none;
}
.g80-filter-count {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(240, 253, 244, 0.7);
    min-height: 1.2em;
}
.g80-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}
.g80-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(240, 253, 244, 0.08);
    border: 1px solid rgba(240, 253, 244, 0.16);
    color: #f0fdf4;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}
.g80-chip i { color: #4ade80; }
.g80-chip b { color: #ffffff; }

/* ------------------------------------------------------------------ */
/* 2. ROLE SWITCHER                                                    */
/* ------------------------------------------------------------------ */
.g80-switchwrap {
    max-width: var(--md72-max, 1600px);
    margin: -34px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.g80-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: #ffffff;
    border: 1px solid rgba(5, 46, 22, 0.08);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 24px 60px -28px rgba(5, 46, 22, 0.45);
}
.g80-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #f0fdf4;
    color: #052e16;
    font-weight: 800;
    font-size: 1.02rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.g80-tab i { font-size: 1.15rem; }
.g80-tab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(5, 46, 22, 0.4); }
.g80-tab.on {
    background: linear-gradient(135deg, #14532d, #15803d);
    color: #ffffff;
    box-shadow: 0 14px 30px -16px rgba(20, 83, 45, 0.65);
}
.g80-tab .g80-tab-note {
    display: block;
    font-weight: 600;
    font-size: 0.78rem;
    opacity: 0.75;
}
.g80-rolebar {
    margin: 16px auto 0;
    max-width: var(--md72-max, 1600px);
    padding: 0 24px;
}
.g80-rolebar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(240, 253, 244, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #14532d;
    font-size: 0.92rem;
    font-weight: 600;
}
.g80-rolebar-inner i { color: #15803d; }
.g80-rolebar-inner .g80-role-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    background: #15803d;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.82rem;
}

/* ------------------------------------------------------------------ */
/* 3. MANUAL BODY (groups, cards)                                      */
/* ------------------------------------------------------------------ */
.g80-body {
    max-width: var(--md72-max, 1600px);
    margin: 0 auto;
    padding: 44px 24px 20px;
}
.g80-manual { display: none; }
.g80-manual.on { display: block; }
.g80-group { margin-bottom: 46px; }
.g80-group-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.g80-group-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #14532d, #15803d);
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 10px 22px -12px rgba(20, 83, 45, 0.6);
}
.g80-group-head h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
    color: #052e16;
}
.g80-group-head p {
    margin: 2px 0 0;
    color: #4b6357;
    font-size: 0.92rem;
}
.g80-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 18px;
}
.g80-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(5, 46, 22, 0.09);
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 12px 30px -22px rgba(5, 46, 22, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.g80-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 22px 44px -22px rgba(20, 83, 45, 0.45);
}
.g80-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.g80-card-ico {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
    font-size: 1.05rem;
}
.g80-card h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #052e16;
    line-height: 1.3;
}
.g80-card > p {
    margin: 0 0 12px;
    color: #3f5a4d;
    font-size: 0.92rem;
    line-height: 1.6;
}
.g80-steps {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    counter-reset: g80step;
}
.g80-steps li {
    counter-increment: g80step;
    position: relative;
    padding: 0 0 8px 34px;
    color: #33513f;
    font-size: 0.9rem;
    line-height: 1.5;
}
.g80-steps li::before {
    content: counter(g80step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dcfce7;
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #14532d;
    font-size: 0.72rem;
    font-weight: 900;
    display: grid;
    place-items: center;
}
.g80-where {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.g80-where-label {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #6b8a7a;
}
.g80-where a,
.g80-where span.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #14532d;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.g80-where a:hover { background: #15803d; color: #ffffff; }
.g80-card .g80-vtag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #052e16;
    color: #4ade80;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.6px;
}
.g80-nodata {
    display: none;
    padding: 40px 20px;
    text-align: center;
    color: #4b6357;
    background: #f0fdf4;
    border: 1px dashed rgba(34, 197, 94, 0.4);
    border-radius: 16px;
    margin-bottom: 30px;
}
.g80-nodata.on { display: block; }

/* ------------------------------------------------------------------ */
/* 4. DIAGRAMS (inline SVG panels)                                     */
/* ------------------------------------------------------------------ */
.g80-diagram {
    background: #ffffff;
    border: 1px solid rgba(5, 46, 22, 0.09);
    border-radius: 20px;
    padding: 22px;
    margin: 0 0 34px;
    box-shadow: 0 16px 38px -26px rgba(5, 46, 22, 0.4);
}
.g80-diagram-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.g80-diagram-head i { color: #15803d; }
.g80-diagram-head h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #052e16;
}
.g80-diagram svg {
    display: block;
    width: 100%;
    height: auto;
}
.g80-diagram .g80-diagram-note {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #4b6357;
}

/* ------------------------------------------------------------------ */
/* 5. SHORTCUTS (kbd chips)                                            */
/* ------------------------------------------------------------------ */
.g80-kbdgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.g80-kbdrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #ffffff;
    border: 1px solid rgba(5, 46, 22, 0.09);
    border-radius: 14px;
    padding: 14px 18px;
}
.g80-kbdrow .g80-kbd-what {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #052e16;
    font-weight: 700;
    font-size: 0.92rem;
}
.g80-kbdrow .g80-kbd-what i { color: #15803d; }
.g80-kbdrow .g80-kbd-keys { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.g80-kbd {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: #052e16;
    color: #d9f99d;
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-bottom-width: 3px;
    font-family: "Fira Code", ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.g80-kbd-row-label {
    margin: 26px 0 12px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ------------------------------------------------------------------ */
/* 6. ROLE ACCESS TABLE (live from roles.json)                         */
/* ------------------------------------------------------------------ */
.g80-roletable {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 34px;
}
.g80-rolecard {
    background: #ffffff;
    border: 1px solid rgba(5, 46, 22, 0.09);
    border-radius: 18px;
    overflow: hidden;
}
.g80-rolecard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #052e16, #14532d);
    color: #ffffff;
}
.g80-rolecard-head h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 9px;
}
.g80-rolecard-head h4 i { color: #4ade80; }
.g80-countpill {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}
.g80-rolecard summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 18px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #14532d;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(5, 46, 22, 0.06);
}
.g80-rolecard summary::-webkit-details-marker { display: none; }
.g80-rolecard summary i { transition: transform 0.2s ease; color: #15803d; }
.g80-rolecard details[open] summary i { transform: rotate(90deg); }
.g80-pagelist {
    margin: 0;
    padding: 10px 18px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.g80-pagelist code {
    padding: 3px 9px;
    border-radius: 7px;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #14532d;
    font-size: 0.74rem;
    font-family: "Fira Code", ui-monospace, monospace;
}

/* ------------------------------------------------------------------ */
/* 7. HELP BAND (live contacts from the store profile)                 */
/* ------------------------------------------------------------------ */
.g80-help {
    max-width: var(--md72-max, 1600px);
    margin: 0 auto;
    padding: 0 24px 70px;
}
.g80-help-inner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(700px 300px at 90% -20%, rgba(74, 222, 128, 0.25), transparent 60%),
        linear-gradient(150deg, #052e16, #14532d 70%, #15803d);
    color: #f0fdf4;
    padding: 40px 34px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
}
.g80-help-inner h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
}
.g80-help-inner p { margin: 0; color: rgba(240, 253, 244, 0.8); line-height: 1.65; }
.g80-help-contacts {
    display: grid;
    gap: 12px;
}
.g80-help-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(240, 253, 244, 0.08);
    border: 1px solid rgba(240, 253, 244, 0.16);
    color: #f0fdf4;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    transition: background 0.18s ease;
}
.g80-help-contact:hover { background: rgba(240, 253, 244, 0.16); }
.g80-help-contact i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(74, 222, 128, 0.18);
    color: #4ade80;
}
.g80-printrow {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.g80-printbtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: #f0fdf4;
    color: #14532d;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.g80-printbtn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(20, 83, 45, 0.5); }

/* ------------------------------------------------------------------ */
/* 8. INJECTED "GUIDE" NAV/FOOTER LINK (all pages)                     */
/* ------------------------------------------------------------------ */
.md80-guide-link { position: relative; }
.md80-newbadge {
    display: inline-flex;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    vertical-align: middle;
}
.footer-quick-links .md80-guide-link::after { content: none; }

/* ------------------------------------------------------------------ */
/* 9. REVEAL + MOTION SAFETY + RESPONSIVE                              */
/* ------------------------------------------------------------------ */
.g80-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.g80-reveal.g80-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .g80-reveal { opacity: 1; transform: none; transition: none; }
    .g80-card, .g80-tab, .g80-printbtn, .g80-help-contact { transition: none; }
    .g80-card:hover, .g80-tab:hover, .g80-printbtn:hover { transform: none; }
}

@media (max-width: 900px) {
    .g80-hero { padding: 64px 18px 56px; }
    .g80-switchwrap { padding: 0 18px; }
    .g80-switch { grid-template-columns: 1fr; }
    .g80-body, .g80-help { padding-left: 18px; padding-right: 18px; }
    .g80-help-inner { grid-template-columns: 1fr; padding: 30px 22px; }
    .g80-cards { grid-template-columns: 1fr; }
    .g80-kbdgrid { grid-template-columns: 1fr; }
    .g80-kbdrow { flex-direction: column; align-items: flex-start; }
    .g80-kbdrow .g80-kbd-keys { justify-content: flex-start; }
}
@media (max-width: 480px) {
    .g80-hero h1 { font-size: 1.7rem; }
    .g80-chip { font-size: 0.8rem; padding: 8px 13px; }
    .g80-tab { padding: 14px; font-size: 0.94rem; }
}
