/* ==========================================================================
   SORABIT GEN02 — WHMCS client theme
   --------------------------------------------------------------------------
   Source of truth for the visual language: https://www.sorabit.com (gen02)
   Source of truth for the checkout: Hostinger pay page
   (focused white cards on a neutral canvas + sticky order summary).

   Load order: nexus all.min.css -> nexus theme.min.css -> this file.
   Everything here is namespaced through --g2-* tokens or .g2-* classes, with
   Bootstrap components restyled by class selectors that intentionally come
   last in the cascade.

   Cache-bust: head.tpl loads sorabit.css?v=20261130 — bump it on every change.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    --g2-bg: #f6f6fc;
    --g2-panel: #ffffff;
    --g2-panel-2: #f1effb;
    --g2-panel-3: #e9e5fa;
    --g2-line: rgba(23, 19, 54, .1);
    --g2-line-strong: rgba(23, 19, 54, .2);
    --g2-ink: #151233;
    --g2-muted: #5d5878;
    --g2-dim: #8782a0;
    --g2-accent: #5b2ee6;
    --g2-accent-deep: #5124d8;
    --g2-accent-soft: rgba(91, 46, 230, .1);
    --g2-accent-line: rgba(91, 46, 230, .35);
    --g2-hot: #ff5b2c;
    --g2-ok: #0f9d58;
    --g2-warn: #e69800;
    --g2-danger: #d92d20;
    --g2-info: #2563eb;
    --g2-mint: #e2f7ea;
    --g2-mint-ink: #0b6b3a;
    --g2-radius-sm: 10px;
    --g2-radius: 16px;
    --g2-radius-lg: 24px;
    --g2-pill: 999px;
    --g2-shadow-sm: 0 2px 8px -4px rgba(21, 18, 51, .16);
    --g2-shadow: 0 24px 64px -30px rgba(21, 18, 51, .24), 0 2px 8px -4px rgba(21, 18, 51, .08);
    --g2-shadow-lg: 0 40px 90px -50px rgba(21, 18, 51, .45);
    --g2-wash-1: rgba(91, 46, 230, .12);
    --g2-wash-2: rgba(0, 123, 255, .08);
    --g2-font: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    --g2-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --g2-header-h: 74px;

    /* checkout canvas (Hostinger-style) */
    --g2-checkout-bg: #f4f4f7;
    --g2-checkout-ink: #18181a;
    --g2-checkout-muted: #58585e;
    --g2-checkout-line: #e7e7ea;
    --g2-checkout-radius: 16px;
    --g2-checkout-shell: 1128px;
}

/* ---------- 2. Base ------------------------------------------------------ */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.g2-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(1100px 620px at 6% -14%, var(--g2-wash-1), transparent 62%),
        radial-gradient(1000px 560px at 98% -6%, var(--g2-wash-2), transparent 60%),
        var(--g2-bg);
    background-attachment: fixed;
    color: var(--g2-ink);
    font-family: var(--g2-font);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.g2-body--cart {
    background: var(--g2-checkout-bg);
}

.g2-body h1, .g2-body h2, .g2-body h3, .g2-body h4, .g2-body h5, .g2-body h6 {
    font-family: var(--g2-font);
    color: var(--g2-ink);
    letter-spacing: -.02em;
    font-weight: 700;
}

.g2-body p { color: var(--g2-muted); }
.g2-body a { color: var(--g2-accent-deep); text-decoration: none; transition: color .16s ease; }
.g2-body a:hover, .g2-body a:focus { color: var(--g2-accent); }
.g2-body ::selection { background: var(--g2-accent); color: #fff; }
.g2-body :focus-visible { outline: 2px solid var(--g2-accent); outline-offset: 2px; }

.g2-body .text-muted, .g2-body .muted { color: var(--g2-muted) !important; }
.g2-body .text-dim { color: var(--g2-dim) !important; }

.g2-mono, .g2-body .mono {
    font-family: var(--g2-mono);
    letter-spacing: .01em;
}

/* ---------- 3. Layout primitives ---------------------------------------- */
.g2-shell {
    width: min(1240px, calc(100% - 56px));
    margin-inline: auto;
}

.g2-checkout-shell {
    width: min(var(--g2-checkout-shell), calc(100% - 48px));
    margin-inline: auto;
}

#main-body > .container {
    width: min(1240px, calc(100% - 56px));
    max-width: 1240px;
}

.g2-main { padding: clamp(22px, 3.4vw, 40px) 0 clamp(56px, 7vw, 96px); }
.g2-main--cart { padding: 0; }

/* Cart pages render the order form full-bleed: drop Bootstrap row gutters so
   the checkout can own the container (Order form CSS handles its own width). */
.g2-main--cart > .row { margin-left: 0; margin-right: 0; }
.g2-main--cart .primary-content { padding-left: 0; padding-right: 0; }
.g2-main--cart .g2-footer,
.g2-body--cart .g2-footer { display: none; }

.g2-hide-xs, .g2-hide-sm { display: inline; }

@media (max-width: 767.98px) {
    .g2-shell, #main-body > .container, .g2-checkout-shell { width: calc(100% - 28px); }
    .g2-hide-xs { display: none !important; }
}

@media (max-width: 575.98px) {
    .g2-hide-sm { display: none !important; }
}

/* ---------- 4. Topbar ---------------------------------------------------- */
.g2-topbar {
    background: #171333;
    color: rgba(255, 255, 255, .72);
    font-size: 11.5px;
    letter-spacing: .01em;
}

.g2-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.g2-topbar__group {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.g2-topbar a {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
}

.g2-topbar a:hover { color: #fff; }
.g2-topbar__site { font-family: var(--g2-mono); font-size: 11px; }
.g2-topbar__muted { color: rgba(255, 255, 255, .55); }

.g2-topbar__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
}

.g2-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38e07b;
    box-shadow: 0 0 0 3px rgba(56, 224, 123, .18);
    flex: none;
}

/* ---------- 5. Header ---------------------------------------------------- */
.g2-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    border-bottom: 1px solid var(--g2-line);
    transition: box-shadow .2s ease, background .2s ease;
}

.g2-header.is-stuck {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px -26px rgba(21, 18, 51, .5);
}

.g2-header__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: var(--g2-header-h);
}

.g2-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: var(--g2-ink) !important;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.g2-brand:hover { opacity: .85; }
.g2-brand__img { height: 34px; width: auto; max-width: 190px; object-fit: contain; }

.g2-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    min-width: 0;
}

.g2-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 0;
    border-radius: var(--g2-pill);
    background: transparent;
    color: var(--g2-ink) !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    text-align: left;
    transition: background .16s ease, color .16s ease;
}

.g2-nav__link:hover, .g2-nav__link:focus { background: var(--g2-panel-2); color: var(--g2-accent-deep) !important; }
.g2-nav__caret { opacity: .55; transition: transform .16s ease; flex: none; }
.g2-drop.is-open > .g2-nav__link .g2-nav__caret { transform: rotate(180deg); }

.g2-nav__badge, .g2-icon-btn__count, .g2-drop__badge, .g2-account__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--g2-pill);
    background: var(--g2-accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
}

.g2-nav__sep {
    width: 1px;
    height: 18px;
    margin: 0 6px;
    background: var(--g2-line);
}

.g2-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.g2-header__login {
    color: var(--g2-ink) !important;
    font-size: 14px;
    font-weight: 600;
    padding: 0 6px;
    white-space: nowrap;
}

.g2-header__login:hover { color: var(--g2-accent-deep) !important; }

/* Dropdowns (nav, notifications, account) */
.g2-drop { position: relative; }

.g2-drop__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1040;
    min-width: 240px;
    padding: 8px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    box-shadow: var(--g2-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.g2-drop__panel--right { left: auto; right: 0; }

.g2-drop.is-open > .g2-drop__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.g2-drop__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.g2-drop__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--g2-radius-sm);
    color: var(--g2-ink) !important;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
}

.g2-drop__link:hover, .g2-drop__link:focus { background: var(--g2-panel-2); }
.g2-drop__link i { width: 16px; flex: none; color: var(--g2-dim); text-align: center; }
.g2-drop__link--alert { align-items: flex-start; }
.g2-drop__link--alert i { margin-top: 3px; color: var(--g2-accent); }
.g2-drop__sep { height: 1px; margin: 6px 4px; background: var(--g2-line); list-style: none; }

/* Notifications */
.g2-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--g2-line);
    border-radius: 50%;
    background: var(--g2-panel);
    color: var(--g2-ink);
    font-size: 15px;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}

.g2-icon-btn:hover { background: var(--g2-panel-2); border-color: var(--g2-line-strong); }
.g2-icon-btn__count { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; font-size: 10px; }

/* Cart pill */
.g2-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-pill);
    background: var(--g2-panel);
    color: var(--g2-ink) !important;
    font-size: 14px;
    font-weight: 600;
    transition: background .16s ease, border-color .16s ease;
}

.g2-cart-btn:hover { background: var(--g2-panel-2); border-color: var(--g2-line-strong); }
.g2-cart-btn i { font-size: 15px; color: var(--g2-accent); }
.g2-cart-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--g2-pill);
    background: var(--g2-accent-soft);
    color: var(--g2-accent-deep);
    font-size: 11px;
    font-weight: 700;
}

/* Account */
.g2-account__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    max-width: 210px;
    padding: 0 12px 0 5px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-pill);
    background: var(--g2-panel);
    color: var(--g2-ink);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}

.g2-account__btn:hover { background: var(--g2-panel-2); border-color: var(--g2-line-strong); }

.g2-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #7350ff, #5b2ee6);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: none;
}

.g2-account__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g2-account__panel { min-width: 248px; padding: 8px; }

.g2-account__group {
    padding: 8px 11px 4px;
    color: var(--g2-dim);
    font-family: var(--g2-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.g2-account__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--g2-radius-sm);
    color: var(--g2-ink) !important;
    font-size: 13.5px;
    font-weight: 500;
}

.g2-account__link:hover, .g2-account__link:focus { background: var(--g2-panel-2); }
.g2-account__link i { width: 16px; flex: none; color: var(--g2-dim); text-align: center; }
.g2-account__link--admin { color: var(--g2-accent-deep) !important; }
.g2-account__sep { height: 1px; margin: 6px 4px; background: var(--g2-line); }

/* Burger + mobile panel */
.g2-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--g2-line);
    border-radius: 50%;
    background: var(--g2-panel);
    cursor: pointer;
}

.g2-burger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--g2-ink);
    transition: transform .18s ease, opacity .18s ease;
}

.g2-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.g2-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.g2-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.g2-nav__mobile-only { display: none; }
.g2-nav__mobile-sep { height: 1px; margin: 12px 0; background: var(--g2-line); }

.g2-nav__bar { display: none; }

.g2-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 1029;
    background: rgba(21, 18, 51, .45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.g2-nav-open { overflow: hidden; }

/* ---------- 6. Checkout header / footer --------------------------------- */
.g2-checkout-header {
    background: var(--g2-panel);
    border-bottom: 1px solid var(--g2-checkout-line);
}

.g2-checkout-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.g2-checkout-header .g2-brand__img { height: 30px; }

.g2-checkout-header__meta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.g2-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--g2-checkout-muted);
    font-size: 13px;
    font-weight: 500;
}

.g2-secure-badge i { color: var(--g2-ok); font-size: 12px; }
.g2-checkout-link { color: var(--g2-accent-deep) !important; font-size: 13px; font-weight: 600; }

.g2-checkout-footer {
    margin-top: 40px;
    padding: 26px 0 34px;
    border-top: 1px solid var(--g2-checkout-line);
}

.g2-checkout-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.g2-checkout-footer__copy { margin: 0; color: var(--g2-checkout-muted); font-size: 13px; }

.g2-checkout-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.g2-checkout-footer__links a { color: var(--g2-checkout-muted) !important; font-size: 13px; }
.g2-checkout-footer__links a:hover { color: var(--g2-ink) !important; }

.g2-paylogos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.g2-paylogos li {
    padding: 6px 11px;
    border: 1px solid var(--g2-checkout-line);
    border-radius: 8px;
    background: #fff;
    color: var(--g2-checkout-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

/* ---------- 8. Page chrome ---------------------------------------------- */
.g2-crumbs { padding: 16px 0 0; }

.g2-crumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--g2-dim);
    font-family: var(--g2-mono);
    font-size: 11px;
    letter-spacing: .02em;
}

.g2-crumb-list:empty { display: none; }
.g2-crumb a { color: var(--g2-dim) !important; }
.g2-crumb a:hover { color: var(--g2-accent-deep) !important; }
.g2-crumb.is-current { color: var(--g2-muted); }
.g2-crumb__sep { color: rgba(23, 19, 54, .25); }

.g2-body .primary-content { min-width: 0; }

/* Nexus page titles: strip the band, keep the type scale */
.g2-body .header-lined {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.g2-body .header-lined h1,
.g2-body .header-lined .h1 {
    margin: 0;
    color: var(--g2-ink);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.g2-body .header-lined p {
    margin: 6px 0 0;
    color: var(--g2-muted);
    font-size: 14.5px;
}

.g2-body .header-lined h1 + p:empty { display: none; }

/* gen02 eyebrow used on custom pages */
.g2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--g2-accent-deep);
    font-family: var(--g2-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.g2-eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: .5;
}

.g2-page-title {
    margin: 0 0 6px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.g2-page-lead { margin: 0 0 26px; max-width: 62ch; color: var(--g2-muted); font-size: 15px; }

/* Remove the Nexus breadcrumb band */
.g2-body .master-breadcrumb { display: none; }

/* ---------- 9. Buttons --------------------------------------------------- */
.g2-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--g2-pill);
    background-image: none;
    font-family: var(--g2-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.g2-body .btn:active { transform: translateY(1px); }

.g2-body .btn-primary {
    background-color: var(--g2-accent);
    background-image: linear-gradient(180deg, #7350ff 0%, #5b2ee6 100%);
    border-color: transparent;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -14px rgba(91, 46, 230, .7);
}

.g2-body .btn-primary:hover, .g2-body .btn-primary:focus {
    background-image: linear-gradient(180deg, #6845ff 0%, #5124d8 100%);
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 16px 30px -16px rgba(91, 46, 230, .85);
}

.g2-body .btn-default, .g2-body .btn-secondary, .g2-body .btn-light {
    background: #fff;
    border-color: rgba(23, 19, 54, .18);
    color: var(--g2-ink) !important;
}

.g2-body .btn-default:hover, .g2-body .btn-secondary:hover, .g2-body .btn-light:hover {
    background: var(--g2-panel-2);
    border-color: var(--g2-line-strong);
    color: var(--g2-ink) !important;
}

.g2-body .btn-outline-primary {
    background: #fff;
    border-color: rgba(91, 46, 230, .38);
    color: var(--g2-accent-deep) !important;
}

.g2-body .btn-outline-primary:hover {
    background: var(--g2-accent-soft);
    border-color: var(--g2-accent);
    color: var(--g2-accent-deep) !important;
}

.g2-body .btn-success {
    background-color: var(--g2-ok);
    background-image: linear-gradient(180deg, #17b26a, #0f9d58);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 10px 24px -16px rgba(15, 157, 88, .8);
}

.g2-body .btn-success:hover { background-image: linear-gradient(180deg, #14a862, #0b8a4c); color: #fff !important; }

.g2-body .btn-danger {
    background-color: var(--g2-danger);
    background-image: linear-gradient(180deg, #e5484d, #d92d20);
    border-color: transparent;
    color: #fff !important;
}

.g2-body .btn-warning { background: #fff7e6; border-color: #f5d08a; color: #8a5a00 !important; }
.g2-body .btn-info { background: #eef4ff; border-color: #c7d9ff; color: #1d4ed8 !important; }

.g2-body .btn-link {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--g2-accent-deep) !important;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: none;
}

.g2-body .btn-link:hover { color: var(--g2-accent) !important; text-decoration: underline; }

.g2-body .btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13px; }
.g2-body .btn-xs { min-height: 0; padding: 4px 9px; font-size: 12px; border-radius: 8px; }
.g2-body .btn-lg { min-height: 52px; padding: 14px 26px; font-size: 15.5px; }
.g2-body .btn-block { width: 100%; }

.g2-body .btn:disabled, .g2-body .btn.disabled, .g2-body .btn[disabled] {
    opacity: .5;
    box-shadow: none;
    cursor: not-allowed;
}

/* Custom gen02 buttons (used by the hand written pages) */
.g2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--g2-pill);
    font-family: var(--g2-font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.g2-btn--primary {
    background: linear-gradient(180deg, #7350ff 0%, #5b2ee6 100%);
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 26px -16px rgba(91, 46, 230, .8);
}

.g2-btn--primary:hover { background: linear-gradient(180deg, #6845ff 0%, #5124d8 100%); color: #fff !important; }

.g2-btn--ghost { background: #fff; border-color: rgba(23, 19, 54, .16); color: var(--g2-ink) !important; }
.g2-btn--ghost:hover { background: var(--g2-panel-2); color: var(--g2-ink) !important; }
.g2-btn--sm { min-height: 38px; padding: 8px 16px; font-size: 13.5px; }
.g2-btn--block { width: 100%; }

/* ---------- 10. Forms ---------------------------------------------------- */
.g2-body .form-group { margin-bottom: 18px; }

.g2-body label,
.g2-body .control-label,
.g2-body .form-control-label {
    margin-bottom: 6px;
    color: var(--g2-ink);
    font-size: 13px;
    font-weight: 600;
}

.g2-body .form-control {
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid rgba(23, 19, 54, .16);
    border-radius: 12px;
    background: #fff;
    color: var(--g2-ink);
    font-family: var(--g2-font);
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.g2-body .form-control:focus {
    border-color: var(--g2-accent);
    box-shadow: 0 0 0 4px var(--g2-accent-soft);
    outline: 0;
}

.g2-body .form-control::placeholder { color: var(--g2-dim); opacity: 1; }
.g2-body .form-control:disabled, .g2-body .form-control[readonly] { background: var(--g2-panel-2); color: var(--g2-muted); }

.g2-body select.form-control {
    height: 48px;
    padding-right: 38px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238782a0' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.g2-body textarea.form-control { height: auto; min-height: 128px; }

.g2-body .input-group-text {
    border: 1px solid rgba(23, 19, 54, .16);
    background: var(--g2-panel-2);
    color: var(--g2-muted);
    font-size: 13px;
    border-radius: 12px;
}

.g2-body .input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.g2-body .input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.g2-body .input-group > .input-group-prepend > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.g2-body .input-group > .input-group-append > .input-group-text,
.g2-body .input-group > .input-group-append > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.g2-body .form-check-label, .g2-body .custom-control-label { color: var(--g2-ink); font-size: 14px; font-weight: 500; }
.g2-body .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--g2-accent); background-color: var(--g2-accent); }
.g2-body .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 4px var(--g2-accent-soft); }
.g2-body .custom-checkbox .custom-control-label::before, .g2-body .custom-radio .custom-control-label::before { border-color: rgba(23, 19, 54, .25); }

.g2-body .prepend-icon { position: relative; }
.g2-body .prepend-icon .field-icon,
.g2-body .prepend-icon .field-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--g2-dim); z-index: 2; }
.g2-body .prepend-icon .form-control, .g2-body .prepend-icon .field { padding-left: 42px; }

.g2-body .field-error-msg { margin-top: 6px; color: var(--g2-danger); font-size: 12.5px; }
.g2-body .field-help-text { margin-top: 6px; color: var(--g2-dim); font-size: 12.5px; }

.g2-body .help-block { color: var(--g2-dim); font-size: 12.5px; }

.g2-body .password-strength-meter { margin-top: 10px; height: 6px; border-radius: var(--g2-pill); background: var(--g2-panel-2); overflow: hidden; }
.g2-body .password-strength-meter .progress-bar { border-radius: var(--g2-pill); box-shadow: none; }

/* ---------- 11. Cards & panels ------------------------------------------- */
.g2-body .card {
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    box-shadow: none;
    overflow: hidden;
}

.g2-body .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--g2-line);
    background: var(--g2-panel);
}

.g2-body .card-header h3, .g2-body .card-header .card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.g2-body .card-body { padding: clamp(16px, 2vw, 24px); }
.g2-body .card-footer { padding: 14px 20px; border-top: 1px solid var(--g2-line); background: var(--g2-panel-2); }

.g2-body .card-accent-blue, .g2-body .card-accent-green, .g2-body .card-accent-red,
.g2-body .card-accent-gold, .g2-body .card-accent-teal, .g2-body .card-accent-pomegranate,
.g2-body .card-accent-sun-flower, .g2-body .card-accent-asbestos, .g2-body .card-accent-midnight-blue {
    border-top: 1px solid var(--g2-line);
}

.g2-body .panel {
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    box-shadow: none;
}

.g2-body .panel-heading { padding: 14px 20px; border-bottom: 1px solid var(--g2-line); background: var(--g2-panel); }
.g2-body .panel-body { padding: clamp(16px, 2vw, 24px); }
.g2-body .panel-footer { padding: 14px 20px; border-top: 1px solid var(--g2-line); background: var(--g2-panel-2); }

/* ---------- 12. Tables --------------------------------------------------- */
.g2-body .table {
    width: 100%;
    margin-bottom: 0;
    color: var(--g2-ink);
    font-size: 14px;
    border-collapse: separate;
    border-spacing: 0;
}

.g2-body .table thead th {
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid var(--g2-line);
    background: transparent;
    color: var(--g2-dim);
    font-family: var(--g2-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.g2-body .table td, .g2-body .table th {
    padding: 14px;
    border: 0;
    border-bottom: 1px solid var(--g2-line);
    vertical-align: middle;
}

.g2-body .table tbody tr:last-child td { border-bottom: 0; }
.g2-body .table tbody tr:hover { background: rgba(241, 239, 251, .55); }
.g2-body .table-sm td, .g2-body .table-sm th { padding: 9px 10px; }
.g2-body .table-bordered { border: 1px solid var(--g2-line); border-radius: var(--g2-radius); overflow: hidden; }
.g2-body .table-bordered td, .g2-body .table-bordered th { border-right: 1px solid var(--g2-line); }
.g2-body .table-bordered tr td:last-child, .g2-body .table-bordered tr th:last-child { border-right: 0; }
.g2-body .table-striped tbody tr:nth-of-type(odd) { background: rgba(246, 246, 252, .7); }

.g2-body .table-responsive {
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    overflow-x: auto;
}

/* ---------- 13. Alerts, badges, labels ----------------------------------- */
.g2-body .alert {
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
}

.g2-body .alert a { font-weight: 600; }
.g2-body .alert-success { background: #e9f9ef; border-color: #b9eacb; color: #0b6b3a; }
.g2-body .alert-info { background: #eef4ff; border-color: #c7d9ff; color: #1c3fa8; }
.g2-body .alert-warning { background: #fff7e6; border-color: #f5d08a; color: #8a5a00; }
.g2-body .alert-danger { background: #fdeceb; border-color: #f4c4c0; color: #a02016; }
.g2-body .alert h1, .g2-body .alert h2, .g2-body .alert h3, .g2-body .alert h4 { color: inherit; font-size: 15px; }
.g2-body .alert ul { margin-bottom: 0; padding-left: 20px; }

.g2-body .badge {
    display: inline-flex;
    align-items: center;
    padding: .3em .62em;
    border-radius: var(--g2-pill);
    background: var(--g2-panel-3);
    color: var(--g2-accent-deep);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
}

.g2-body .badge-dark, .g2-body .badge-primary { background: var(--g2-accent); color: #fff; }
.g2-body .badge-success, .g2-body .badge-active { background: #e2f7ea; color: #0b6b3a; }
.g2-body .badge-warning, .g2-body .badge-suspended { background: #fff1d6; color: #8a5a00; }
.g2-body .badge-danger, .g2-body .badge-terminated { background: #fdeceb; color: #a02016; }
.g2-body .badge-info { background: #eef4ff; color: #1c3fa8; }
.g2-body .badge-secondary { background: var(--g2-panel-2); color: var(--g2-muted); }

.g2-body .label { display: inline-flex; align-items: center; padding: .3em .62em; border-radius: var(--g2-pill); font-size: 11px; font-weight: 700; }
.g2-body .label-default { background: var(--g2-panel-2); color: var(--g2-muted); }
.g2-body .label-info { background: #eef4ff; color: #1c3fa8; }
.g2-body .label-success { background: #e2f7ea; color: #0b6b3a; }
.g2-body .label-warning { background: #fff1d6; color: #8a5a00; }
.g2-body .label-danger { background: #fdeceb; color: #a02016; }

/* ---------- 14. Sidebar -------------------------------------------------- */
.g2-body .g2-sidebar { margin-bottom: 18px; }

.g2-body .card-sidebar {
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    overflow: hidden;
}

.g2-body .card-sidebar .card-header {
    padding: 13px 16px;
    border-bottom: 1px solid var(--g2-line);
    background: var(--g2-panel);
}

.g2-body .card-sidebar .card-header .card-title {
    font-family: var(--g2-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--g2-dim);
}

.g2-body .card-sidebar .card-minimise { display: none; }

.g2-body .card-sidebar .list-group-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: var(--g2-muted) !important;
    font-family: var(--g2-font);
    font-size: 13.5px;
    font-weight: 500;
    text-transform: none;
    overflow: visible;
    transition: background .14s ease, color .14s ease;
}

.g2-body .card-sidebar .list-group-item:hover { background: var(--g2-panel-2); color: var(--g2-ink) !important; }

.g2-body .card-sidebar .list-group-item.active {
    background: var(--g2-accent-soft);
    color: var(--g2-accent-deep) !important;
    font-weight: 600;
}

.g2-body .card-sidebar .list-group-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--g2-accent);
}

.g2-body .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: 10px; width: 100%; }
.g2-body .sidebar-menu-item-icon { width: 16px; color: currentColor; text-align: center; }
.g2-body .sidebar-menu-item-label { flex: 1; }
.g2-body .sidebar-menu-item-badge .badge { background: var(--g2-accent-soft); color: var(--g2-accent-deep); }

/* ---------- 15. Tabs, pills, pagination ---------------------------------- */
.g2-body .nav-tabs {
    border-bottom: 1px solid var(--g2-line);
    gap: 4px;
}

.g2-body .nav-tabs .nav-link {
    margin-bottom: -1px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px 12px 0 0;
    color: var(--g2-muted);
    font-size: 14px;
    font-weight: 600;
}

.g2-body .nav-tabs .nav-link:hover { border-color: transparent; color: var(--g2-ink); background: var(--g2-panel-2); }

.g2-body .nav-tabs .nav-link.active {
    border-color: var(--g2-line) var(--g2-line) var(--g2-panel);
    background: var(--g2-panel);
    color: var(--g2-accent-deep);
}

.g2-body .nav-pills .nav-link { border-radius: var(--g2-pill); color: var(--g2-muted); font-weight: 600; font-size: 13.5px; }
.g2-body .nav-pills .nav-link.active { background: var(--g2-accent); color: #fff; }
.g2-body .tab-content { padding-top: 18px; }

.g2-body .pagination { gap: 6px; }
.g2-body .pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--g2-line);
    border-radius: 10px;
    background: #fff;
    color: var(--g2-ink);
    font-size: 13.5px;
    font-weight: 600;
}
.g2-body .pagination .page-link:hover { background: var(--g2-panel-2); }
.g2-body .pagination .page-item.active .page-link { border-color: var(--g2-accent); background: var(--g2-accent); color: #fff; }
.g2-body .pagination .page-item.disabled .page-link { opacity: .45; }

/* ---------- 16. Modals, dropdowns, tooltips ------------------------------ */
.g2-body .modal-content {
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius-lg);
    box-shadow: var(--g2-shadow-lg);
    overflow: hidden;
}

.g2-body .modal-header { padding: 20px 24px 12px; border-bottom: 1px solid var(--g2-line); }
.g2-body .modal-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.g2-body .modal-body { padding: 20px 24px; font-size: 14.5px; }
.g2-body .modal-footer { padding: 16px 24px 20px; border-top: 1px solid var(--g2-line); background: var(--g2-panel-2); gap: 8px; }
.g2-body .modal-backdrop.show { opacity: .45; }
.g2-body .close { color: var(--g2-muted); text-shadow: none; opacity: .8; font-weight: 400; }
.g2-body .close:hover { opacity: 1; color: var(--g2-ink); }

.g2-body .dropdown-menu {
    padding: 8px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    box-shadow: var(--g2-shadow);
    font-size: 13.5px;
}

.g2-body .dropdown-item { padding: 9px 11px; border-radius: var(--g2-radius-sm); color: var(--g2-ink); font-weight: 500; }
.g2-body .dropdown-item:hover, .g2-body .dropdown-item:focus { background: var(--g2-panel-2); color: var(--g2-accent-deep); }
.g2-body .dropdown-divider { border-color: var(--g2-line); margin: 6px 4px; }

.g2-body .tooltip-inner {
    padding: 7px 10px;
    border-radius: 8px;
    background: #171333;
    font-family: var(--g2-font);
    font-size: 12px;
}

.g2-body .popover {
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    box-shadow: var(--g2-shadow);
}

/* ---------- 17. Dashboard tiles + action cards -------------------------- */
.g2-body .tiles .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -7px;
    margin-right: -7px;
}

.g2-body .tiles .row > [class*="col-"] {
    padding-left: 7px;
    padding-right: 7px;
    margin-bottom: 14px;
}

.g2-body .tiles .tile {
    display: block;
    padding: 20px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    color: var(--g2-ink) !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.g2-body .tiles .tile:hover { border-color: var(--g2-accent-line); box-shadow: var(--g2-shadow-sm); transform: translateY(-2px); }
.g2-body .tiles .tile i { display: block; margin-bottom: 12px; color: var(--g2-accent); font-size: 18px; }
.g2-body .tiles .tile .stat { font-family: var(--g2-font); font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.g2-body .tiles .tile .title {
    margin-top: 6px;
    color: var(--g2-muted);
    font-family: var(--g2-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none !important;
}
.g2-body .tiles .tile .highlight { display: none; }

.g2-body .action-icon-btns a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 22px 14px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    color: var(--g2-ink) !important;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.g2-body .action-icon-btns a:hover { border-color: var(--g2-accent-line); box-shadow: var(--g2-shadow-sm); transform: translateY(-2px); }
.g2-body .action-icon-btns .ico-container { margin: 0; color: var(--g2-accent); font-size: 20px; }

/* Client home panels */
.g2-body .client-home-cards .card { margin-bottom: 18px; }
.g2-body .client-home-cards .card .card-header { background: var(--g2-panel); }
.g2-body .client-home-cards .list-group-item {
    padding: 12px 20px;
    border: 0;
    border-top: 1px solid var(--g2-line);
    background: transparent;
    color: var(--g2-muted) !important;
    font-size: 13.5px;
}
.g2-body .client-home-cards .list-group-item:hover { background: var(--g2-panel-2); color: var(--g2-ink) !important; }
.g2-body .client-home-cards .list-group-item.active { background: var(--g2-accent-soft); color: var(--g2-accent-deep) !important; }

/* Product/service detail header */
.g2-body .product-details, .g2-body .service-details { color: var(--g2-ink); }
.g2-body .product-details .row > div { padding-top: 6px; padding-bottom: 6px; }
.g2-body .product-details strong { font-weight: 700; }

/* Invoice / quote surfaces */
.g2-body .invoice-container, .g2-body .quote-container {
    padding: clamp(18px, 2.4vw, 30px);
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius-lg);
    background: var(--g2-panel);
}

.g2-body .invoice-container .invoice-title, .g2-body .quote-container .quote-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }

/* Ticket threads */
.g2-body .ticket-message {
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
}

.g2-body .ticket-message .message-head { margin-bottom: 10px; color: var(--g2-dim); font-size: 12.5px; }
.g2-body .ticket-message .message-body { font-size: 14.5px; }
.g2-body .ticket-message.client-message { border-left: 3px solid var(--g2-accent); }

/* ---------- 18. Auth (login) -------------------------------------------- */
.g2-auth {
    max-width: 1040px;
    margin: clamp(18px, 3.5vw, 44px) auto 0;
}

.g2-auth__card {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius-lg);
    background: var(--g2-panel);
    box-shadow: var(--g2-shadow);
    overflow: hidden;
}

.g2-auth__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(24px, 3vw, 40px);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(91, 46, 230, .5), transparent 58%),
        radial-gradient(90% 90% at 100% 100%, rgba(0, 123, 255, .28), transparent 55%),
        #14102b;
    color: #fff;
}

.g2-auth__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--g2-pill);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .82);
    font-family: var(--g2-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.g2-auth__side h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.g2-auth__side p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 14px; }

.g2-auth__list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }

.g2-auth__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .84);
    font-size: 13.5px;
}

.g2-auth__list i { width: 16px; color: #b9a6ff; text-align: center; }

.g2-auth__main { padding: clamp(24px, 3vw, 40px); }
.g2-auth__main h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 800; letter-spacing: -.03em; }
.g2-auth__sub { margin: 0 0 22px; color: var(--g2-muted); font-size: 14px; }

.g2-auth__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.g2-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--g2-muted);
    font-size: 13.5px;
    font-weight: 500;
}

.g2-auth__remember input { width: 16px; height: 16px; accent-color: var(--g2-accent); }

.g2-auth__alt {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--g2-line);
    color: var(--g2-muted);
    font-size: 13.5px;
}

.g2-auth__alt a { font-weight: 700; }

/* ---------- 19. Store categories + landing ------------------------------- */
.g2-store { padding-top: 6px; }
.g2-store__hero { margin-bottom: 26px; }

.g2-store__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.g2-store-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    border: 1px solid var(--g2-line);
    border-radius: 20px;
    background: var(--g2-panel);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.g2-store-card:hover { border-color: var(--g2-accent-line); box-shadow: var(--g2-shadow-sm); transform: translateY(-3px); }

.g2-store-card__num {
    color: var(--g2-dim);
    font-family: var(--g2-mono);
    font-size: 11px;
    letter-spacing: .1em;
}

.g2-store-card h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.g2-store-card p { margin: 0; color: var(--g2-muted); font-size: 13.5px; line-height: 1.6; flex: 1; }

.g2-store-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--g2-accent-deep) !important;
}

.g2-store-card__link span { transition: transform .16s ease; }
.g2-store-card:hover .g2-store-card__link span { transform: translateX(3px); }

/* Landing hero */
.g2-landing-hero { padding: clamp(18px, 3vw, 36px) 0 clamp(10px, 2vw, 20px); }

.g2-landing-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.g2-landing-hero__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.04em;
}

.g2-landing-hero__accent { color: var(--g2-accent); }
.g2-landing-hero__lead { margin: 0 0 24px; max-width: 52ch; color: var(--g2-muted); font-size: 15.5px; }
.g2-landing-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.g2-landing-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.g2-landing-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-pill);
    background: rgba(255, 255, 255, .6);
    color: var(--g2-muted);
    font-family: var(--g2-mono);
    font-size: 10.5px;
}

.g2-landing-hero__panel { display: flex; flex-direction: column; gap: 10px; }

.g2-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    color: var(--g2-ink) !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.g2-mini-card:hover { border-color: var(--g2-accent-line); box-shadow: var(--g2-shadow-sm); transform: translateX(3px); }
.g2-mini-card__num { color: var(--g2-dim); font-family: var(--g2-mono); font-size: 10.5px; }
.g2-mini-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.g2-mini-card__body strong { font-size: 14.5px; font-weight: 700; }
.g2-mini-card__body small { color: var(--g2-muted); font-size: 12.5px; }
.g2-mini-card__arrow { color: var(--g2-accent); font-size: 16px; }

.g2-section { margin-top: clamp(34px, 5vw, 62px); }
.g2-section__head { margin-bottom: 18px; }
.g2-section__title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; }

.g2-quicklinks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.g2-quicklink {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    border: 1px solid var(--g2-line);
    border-radius: var(--g2-radius);
    background: var(--g2-panel);
    color: var(--g2-ink) !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.g2-quicklink:hover { border-color: var(--g2-accent-line); box-shadow: var(--g2-shadow-sm); transform: translateY(-2px); }
.g2-quicklink i { color: var(--g2-accent); font-size: 18px; }
.g2-quicklink strong { font-size: 14.5px; font-weight: 700; }
.g2-quicklink span { color: var(--g2-muted); font-size: 13px; line-height: 1.55; }

/* ---------- 20. Responsive shell ---------------------------------------- */
@media (max-width: 1180px) {
    .g2-nav { margin-left: 0; }
    .g2-nav__link { padding: 9px 11px; font-size: 13.5px; }
    .g2-account__name { display: none; }
    .g2-account__btn { padding-right: 10px; }
}

@media (max-width: 1023.98px) {
    :root { --g2-header-h: 66px; }

    .g2-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1041;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: min(360px, 88vw);
        height: 100dvh;
        margin: 0;
        padding: 20px 18px 32px;
        overflow-y: auto;
        background: var(--g2-panel);
        box-shadow: -24px 0 60px -40px rgba(21, 18, 51, .6);
        transform: translateX(105%);
        transition: transform .24s cubic-bezier(.32, .72, .28, 1);
    }

    .g2-nav.is-open { transform: none; }
    .g2-nav__link { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 15px; border-radius: 12px; }
    .g2-nav__sep { width: auto; height: 1px; margin: 8px 4px; }
    .g2-nav__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 2px 14px;
        margin-bottom: 6px;
        border-bottom: 1px solid var(--g2-line);
    }
    .g2-nav__bar-title {
        color: var(--g2-dim);
        font-family: var(--g2-mono);
        font-size: 10.5px;
        font-weight: 500;
        letter-spacing: .14em;
        text-transform: uppercase;
    }
    .g2-nav__mobile-only { display: flex; flex-direction: column; gap: 4px; }
    .g2-nav__mobile-only .g2-account__group { padding-left: 4px; }
    .g2-nav__mobile-only .g2-btn { margin-top: 8px; }

    .g2-drop__panel {
        position: static;
        display: none;
        min-width: 0;
        margin: 2px 0 8px;
        padding: 4px 0 4px 8px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .g2-drop.is-open > .g2-drop__panel { display: block; }
    .g2-drop__link { padding: 9px 12px; font-size: 14px; background: var(--g2-panel-2); margin-bottom: 4px; }

    .g2-burger { display: inline-flex; }
    .g2-header__login, .g2-header__cta { display: none; }
    .g2-notif { display: none; }

    .g2-landing-hero__grid { grid-template-columns: 1fr; }
    .g2-footer__main { grid-template-columns: 1fr 1fr; }
    .g2-footer__brand { grid-column: 1 / -1; }
    .g2-footer__meta { margin-left: 0; }
}

@media (max-width: 900px) {
    .g2-auth__card { grid-template-columns: 1fr; }
    .g2-auth__side { display: none; }
}

@media (max-width: 640px) {
    .g2-footer__main { grid-template-columns: 1fr; }
    .g2-footer__bottom { flex-direction: column; align-items: flex-start; }
    .g2-topbar__group { gap: 10px; min-width: 0; }
    .g2-topbar__site { display: none; }
    .g2-checkout-header__meta .g2-secure-badge { display: none; }
    .g2-auth__row .btn { width: 100%; }
}

/* ---------- 7. Site footer ---------------------------------------------- */
.g2-footer {
    margin-top: clamp(48px, 6vw, 84px);
    padding: clamp(40px, 5vw, 64px) 0 28px;
    background: #14102b;
    color: rgba(255, 255, 255, .62);
}

.g2-footer__main {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
    padding-bottom: 36px;
}

.g2-footer__wordmark {
    display: block;
    margin-bottom: 14px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .18em;
}

.g2-footer__brand p {
    margin: 0 0 16px;
    max-width: 42ch;
    color: rgba(255, 255, 255, .58);
    font-size: 13.5px;
    line-height: 1.65;
}

.g2-footer__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.g2-footer__chips span {
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--g2-pill);
    color: rgba(255, 255, 255, .72);
    font-family: var(--g2-mono);
    font-size: 10.5px;
}

.g2-footer__col h4 {
    margin: 0 0 14px;
    color: #fff;
    font-family: var(--g2-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.g2-footer__col ul { margin: 0; padding: 0; list-style: none; }
.g2-footer__col li { margin-bottom: 9px; }

.g2-footer__col a {
    color: rgba(255, 255, 255, .62) !important;
    font-size: 13.5px;
    transition: color .16s ease;
}

.g2-footer__col a:hover { color: #fff !important; }

.g2-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .5);
    font-size: 12.5px;
}

.g2-footer__meta { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.g2-footer__meta .g2-dot { width: 4px; height: 4px; background: rgba(255, 255, 255, .4); box-shadow: none; }

.g2-footer__socials { display: flex; gap: 8px; }

.g2-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: rgba(255, 255, 255, .75) !important;
    font-size: 14px;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.g2-footer__socials a:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
    color: #fff !important;
}
/* ---------- 21. Live fixes (WHMCS hooks & captcha) ----------------------- */

/* Legacy hook renders a second social row on a white strip below the footer.
   The gen02 footer already has its own social icons. */
.g2-body .custom-social-footer { display: none !important; }

/* Login: WHMCS injects the Turnstile widget between the "remember me" label and
   the submit button, which used to wrap the row. Lay it out as a grid:
   captcha on its own line, remember + submit underneath. */
.g2-body .g2-auth__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 16px;
}

.g2-body .g2-auth__row > div {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
}

.g2-body .g2-auth__row > .g2-auth__remember {
    grid-column: 1;
    grid-row: 2;
}

.g2-body .g2-auth__row > .btn {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    min-width: 132px;
}

/* Provider buttons (Facebook / Google) rendered outside the auth card. */
.g2-body .providerPreLinking {
    width: min(1040px, calc(100% - 56px));
    margin: 20px auto 0;
    text-align: center;
}

.g2-body .providerPreLinking .social-signin-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.g2-body .providerPreLinking .btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid rgba(23, 19, 54, .18) !important;
    border-radius: var(--g2-pill);
    background: #fff !important;
    color: var(--g2-ink) !important;
    font-family: var(--g2-font);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: none !important;
}

.g2-body .providerPreLinking .btn-social:hover {
    background: var(--g2-panel-2) !important;
    border-color: var(--g2-line-strong) !important;
}

.g2-body .providerPreLinking .btn-facebook i { color: #1877f2; }

/* The Google SDK renders its own button inside a div that also carries .btn,
   so strip the button chrome from the wrapper. */
.g2-body .providerPreLinking .g_id_signin.btn {
    display: inline-flex !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    .g2-body .providerPreLinking { width: calc(100% - 28px); }
}

@media (max-width: 560px) {
    .g2-body .g2-auth__row { grid-template-columns: 1fr; }
    .g2-body .g2-auth__row > .btn { grid-column: 1; grid-row: 3; justify-self: stretch; }
    .g2-body .providerPreLinking .btn-social,
    .g2-body .providerPreLinking .g_id_signin.btn { width: 100%; }
}