/* ==========================================================================
   Groupsgyani — Modern frontend CSS (replaces Bootstrap 4 + styles.pure.css)
   ========================================================================== */

/* ---------- Design tokens (light) ---------- */
:root {
    --gg-primary: #ff551f;
    --gg-primary-hover: #ff3d00;
    --gg-primary-soft: #fff3ee;
    --gg-accent: #ea580c;
    --gg-success: #ff621c;
    --gg-success-hover: #e54f0d;
    --gg-danger: #e3342f;
    --gg-danger-hover: #c52823;
    --gg-warning: #f6993f;
    --gg-info: #3490dc;

    --gg-bg: #fafafa;
    --gg-surface: #ffffff;
    --gg-surface-alt: #f4f4f5;
    --gg-border: #e4e4e7;
    --gg-border-strong: #d4d4d8;
    --gg-text: #18181b;
    --gg-text-muted: #52525b;
    --gg-text-subtle: #71717a;
    --gg-link: var(--gg-primary);
    --gg-link-hover: var(--gg-primary-hover);

    --gg-navbar-bg: linear-gradient(to right, #ff432c, #ff9301);
    --gg-card-bg: linear-gradient(to bottom, #fff7ed, transparent);

    --gg-shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --gg-shadow: 0 4px 12px -2px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);
    --gg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
    --gg-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, .12), 0 4px 10px -2px rgba(0, 0, 0, .05);

    --gg-radius-sm: 6px;
    --gg-radius: 8px;
    --gg-radius-lg: 12px;
    --gg-radius-pill: 999px;

    --gg-font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gg-transition: 150ms ease;
    --gg-navbar-h: 64px;

    /* Alert colors (light mode) */
    --gg-alert-success-bg: #f0fdf4;
    --gg-alert-success-text: #166534;
    --gg-alert-success-border: #dcfce7;
    --gg-alert-error-bg: #fef2f2;
    --gg-alert-error-text: #991b1b;
    --gg-alert-error-border: #fee2e2;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
    --gg-bg: #0f1115;
    --gg-surface: #1a1d24;
    --gg-surface-alt: #242832;
    --gg-border: #2e3340;
    --gg-border-strong: #3d4350;
    --gg-text: #f4f4f5;
    --gg-text-muted: #a1a1aa;
    --gg-text-subtle: #71717a;
    --gg-primary-soft: #2a1810;
    --gg-card-bg: linear-gradient(to bottom, #2a1810, transparent);
    --gg-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --gg-shadow: 0 4px 12px -2px rgba(0, 0, 0, .5);
    --gg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .5);
    --gg-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, .6);
    
    /* Alert colors (dark mode) */
    --gg-alert-success-bg: #064e3b;
    --gg-alert-success-text: #86efac;
    --gg-alert-success-border: #166534;
    --gg-alert-error-bg: #7f1d1d;
    --gg-alert-error-text: #fca5a5;
    --gg-alert-error-border: #991b1b;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --gg-bg: #0f1115;
        --gg-surface: #1a1d24;
        --gg-surface-alt: #242832;
        --gg-border: #2e3340;
        --gg-border-strong: #3d4350;
        --gg-text: #f4f4f5;
        --gg-text-muted: #a1a1aa;
        --gg-text-subtle: #71717a;
        --gg-primary-soft: #2a1810;
        --gg-card-bg: linear-gradient(to bottom, #2a1810, transparent);
        --gg-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --gg-shadow: 0 4px 12px -2px rgba(0, 0, 0, .5);
        --gg-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .5);
        --gg-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, .6);
        
        /* Alert colors (dark mode) */
        --gg-alert-success-bg: #064e3b;
        --gg-alert-success-text: #86efac;
        --gg-alert-success-border: #166534;
        --gg-alert-error-bg: #7f1d1d;
        --gg-alert-error-text: #fca5a5;
        --gg-alert-error-border: #991b1b;
    }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    scroll-padding-top: var(--gg-navbar-h);
    height: 100%;
}
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--gg-font);
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gg-text);
    background-color: var(--gg-bg);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: background-color var(--gg-transition), color var(--gg-transition);
}
.main-body { flex: 1 0 auto; }
main#body { margin-top: var(--gg-navbar-h) !important; padding-top: 1rem; }
hr { box-sizing: content-box; height: 0; overflow: visible; border: 0; border-top: 1px solid var(--gg-border); }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 700; line-height: 1.2; color: var(--gg-text); }
p, ul, ol, dl, pre, address, figure { margin-top: 0; margin-bottom: 1rem; }
img, svg { vertical-align: middle; max-width: 100%; height: auto; }
a { color: var(--gg-link); text-decoration: none; transition: color var(--gg-transition); }
a:hover { color: var(--gg-link-hover); }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button, [role="button"], [type="button"], [type="submit"], [type="reset"] { cursor: pointer; }
[hidden] { display: none !important; }
small { font-size: 80%; }
strong, b { font-weight: 700; }
table { border-collapse: collapse; width: 100%; }
table.table td, table.table th { padding: .5rem; border-top: 1px solid var(--gg-border); text-align: left; }

/* ---------- Container & grid ---------- */
.container, .container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1576px; } }

.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.row > * { padding-right: 15px; padding-left: 15px; }

.col, [class*="col-"] { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }
.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }

.col-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
.col-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
    .col-sm-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
    .col-md-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
    .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .offset-md-3 { margin-left: 25%; }
    .offset-md-4 { margin-left: 33.3333%; }
}
@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-left { justify-content: flex-start; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

/* ---------- Display utilities ---------- */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

/* ---------- Spacing utilities ---------- */
.m-0 { margin: 0 !important; } .m-1 { margin: .25rem !important; } .m-2 { margin: .5rem !important; }
.m-3 { margin: 1rem !important; } .m-4 { margin: 1.5rem !important; } .m-5 { margin: 3rem !important; }
.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: .25rem !important; margin-right: .25rem !important; }
.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: .25rem !important; } .mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; } .mt-4 { margin-top: 1.5rem !important; } .mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .25rem !important; } .mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; } .mb-5 { margin-bottom: 3rem !important; } .mb-6 { margin-bottom: 4rem !important; }
.ml-0 { margin-left: 0 !important; } .ml-1 { margin-left: .25rem !important; } .ml-2 { margin-left: .5rem !important; } .ml-3 { margin-left: 1rem !important; } .ml-auto { margin-left: auto !important; }
.mr-0 { margin-right: 0 !important; } .mr-1 { margin-right: .25rem !important; } .mr-2 { margin-right: .5rem !important; } .mr-3 { margin-right: 1rem !important; } .mr-auto { margin-right: auto !important; }

.p-0 { padding: 0 !important; } .p-1 { padding: .25rem !important; } .p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; } .p-4 { padding: 1.5rem !important; } .p-5 { padding: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: .25rem !important; padding-right: .25rem !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-24 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.pt-0 { padding-top: 0 !important; } .pt-1 { padding-top: .25rem !important; } .pt-2 { padding-top: .5rem !important; } .pt-3 { padding-top: 1rem !important; } .pt-4 { padding-top: 1.5rem !important; }
.pb-0 { padding-bottom: 0 !important; } .pb-1 { padding-bottom: .25rem !important; } .pb-2 { padding-bottom: .5rem !important; } .pb-3 { padding-bottom: 1rem !important; } .pb-4 { padding-bottom: 1.5rem !important; }
.pl-0 { padding-left: 0 !important; } .pl-1 { padding-left: .25rem !important; } .pl-2 { padding-left: .5rem !important; } .pl-3 { padding-left: 1rem !important; } .pl-4 { padding-left: 1.5rem !important; }
.pr-0 { padding-right: 0 !important; } .pr-1 { padding-right: .25rem !important; } .pr-2 { padding-right: .5rem !important; } .pr-3 { padding-right: 1rem !important; } .pr-4 { padding-right: 1.5rem !important; }

/* ---------- Text utilities ---------- */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-white { color: #fff !important; }
.text-dark { color: var(--gg-text) !important; }
.text-muted { color: var(--gg-text-muted) !important; }
.text-danger { color: var(--gg-danger) !important; }
.text-success { color: var(--gg-success) !important; }
.text-gray-500 { color: var(--gg-text-subtle) !important; }
.text-gray-600 { color: var(--gg-text-muted) !important; }
.text-gray-700 { color: var(--gg-text-muted) !important; }
.text-gray-900 { color: var(--gg-text) !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-sm { font-size: .875rem !important; }
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: 700 !important; }
.title-font { font-family: var(--gg-font); font-weight: 600; }
.body-font { font-family: var(--gg-font); }
.leading-relaxed { line-height: 1.625 !important; }
.float-right { float: right !important; }
.float-left { float: left !important; }

/* ---------- Width / sizing ---------- */
.w-25 { width: 25% !important; } .w-50 { width: 50% !important; } .w-75 { width: 75% !important; }
.w-100 { width: 100% !important; } .w-full { width: 100% !important; } .h-100 { height: 100% !important; } .h-full { height: 100% !important; }
.h-48 { height: 12rem !important; }

/* ---------- Border / radius ---------- */
.border { border: 1px solid var(--gg-border) !important; }
.border-0 { border: 0 !important; }
.border-gray-400 { border-color: var(--gg-border-strong) !important; }
.rounded { border-radius: var(--gg-radius) !important; }
.rounded-sm { border-radius: var(--gg-radius-sm) !important; }
.rounded-lg { border-radius: var(--gg-radius-lg) !important; }
.rounded-pill { border-radius: var(--gg-radius-pill) !important; }
.shadow { box-shadow: var(--gg-shadow) !important; }
.shadow-sm { box-shadow: var(--gg-shadow-sm) !important; }
.shadow-md { box-shadow: var(--gg-shadow-md) !important; }
.shadow-lg { box-shadow: var(--gg-shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }

/* ---------- Backgrounds ---------- */
.bg-gray-100 { background-color: var(--gg-surface-alt) !important; }
.bg-indigo-500 { background-color: #6366f1 !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-weight: 600;
    color: var(--gg-text);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .5rem 1rem;
    font-size: .9rem;
    line-height: 1.5;
    border-radius: var(--gg-radius);
    cursor: pointer;
    transition: background-color var(--gg-transition), border-color var(--gg-transition), color var(--gg-transition), box-shadow var(--gg-transition), transform var(--gg-transition);
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gg-primary); outline-offset: 2px; }
.btn-sm { padding: .25rem .5rem; font-size: .8rem; border-radius: var(--gg-radius-sm); }
.btn-md { padding: .5rem 1rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

.btn-success { background-color: var(--gg-success); color: #fff; border-color: var(--gg-success); }
.btn-success:hover { background-color: var(--gg-success-hover); border-color: var(--gg-success-hover); color: #fff; }
.btn-outline-success { color: var(--gg-success); border-color: var(--gg-success); background: transparent; }
.btn-outline-success:hover { background-color: var(--gg-success); color: #fff; }
.btn-danger { background-color: var(--gg-danger); color: #fff; border-color: var(--gg-danger); }
.btn-danger:hover { background-color: var(--gg-danger-hover); color: #fff; }
.btn-warning { background-color: var(--gg-warning); color: #fff; border-color: var(--gg-warning); }
.btn-warning:hover { filter: brightness(.9); color: #fff; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
.form-control {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--gg-text);
    /* Aligned with the TomSelect .ts-control rule near the bottom of this
       file so every input on the same form (text, textarea, raw select,
       TomSelect-wrapped select) reads as one bg colour. Was --gg-surface
       which sat one shade lighter than --gg-bg in dark mode and made
       textareas pop next to TomSelect-rendered <select>s. */
    background-color: var(--gg-bg);
    background-clip: padding-box;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    transition: border-color var(--gg-transition), box-shadow var(--gg-transition);
}
.form-control:focus {
    outline: 0;
    border-color: var(--gg-primary);
    box-shadow: 0 0 0 3px rgba(255, 85, 31, .15);
}
.form-control::placeholder { color: var(--gg-text-subtle); opacity: 1; }
.form-control.is-invalid { border-color: var(--gg-danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(227, 52, 47, .15); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2371717a' d='M4 6l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px 16px; padding-right: 2.25rem; }
textarea.form-control { resize: vertical; min-height: 80px; }
.invalid-feedback { display: block; width: 100%; margin-top: .25rem; font-size: .8rem; color: var(--gg-danger); }
.input-group { position: relative; display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-append { display: flex; }
.input-group-append .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---------- Cards ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--gg-surface);
    background-clip: border-box;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    box-shadow: var(--gg-shadow-sm);
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    background-color: var(--gg-surface-alt);
    border-bottom: 1px solid var(--gg-border);
    font-weight: 600;
}
.card-body { flex: 1 1 auto; padding: 1.25rem; }
.card-link { color: var(--gg-text); text-decoration: none; display: block; }
.card-link:hover { color: var(--gg-text); }

/* ---------- Alerts ---------- */
.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--gg-radius);
}
.alert-success { color: #064e3b; background-color: #d1fae5; border-color: #a7f3d0; }
.alert-danger { color: #7f1d1d; background-color: #fee2e2; border-color: #fecaca; }
.alert-warning { color: #78350f; background-color: #fef3c7; border-color: #fde68a; }
.alert-info { color: #1e3a8a; background-color: #dbeafe; border-color: #bfdbfe; }
.alert-dismissible { padding-right: 3rem; }
.alert-dismissible .close {
    position: absolute; top: 0; right: 0; padding: .75rem 1.25rem;
    background: transparent; border: 0; color: inherit; opacity: .5; cursor: pointer; font-size: 1.25rem;
}
.alert-dismissible .close:hover { opacity: 1; }
[data-theme="dark"] .alert-success { color: #a7f3d0; background-color: #064e3b; border-color: #047857; }
[data-theme="dark"] .alert-danger { color: #fecaca; background-color: #7f1d1d; border-color: #991b1b; }
[data-theme="dark"] .alert-warning { color: #fde68a; background-color: #78350f; border-color: #92400e; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: .25em .6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--gg-radius-sm);
}
.badge-danger { background-color: var(--gg-danger); color: #fff; }
.badge-success { background-color: var(--gg-success); color: #fff; }

/* ---------- Breadcrumb ---------- */
ol.breadcrumb { padding: 0; margin: 0; list-style: none; min-height: 28px; font-size: .875rem; }
ol.breadcrumb li { display: inline-flex; align-items: center; }
ol.breadcrumb li + li::before { padding: 0 .4rem; color: var(--gg-text-subtle); content: "/"; }
ol.breadcrumb li a { color: var(--gg-primary); text-decoration: none; }
ol.breadcrumb li a:hover { color: var(--gg-primary-hover); }
.breadcrumb-current { color: var(--gg-text-muted); }
.dot-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* Single-line breadcrumb with horizontal scroll on overflow. Used on the
   join page (breadcrumb chain is 4 deep — Home / Platform / Category /
   Group title — and the title can be long). Other public pages keep the
   default `.dot-text` truncation behaviour. */
.gg-breadcrumb--scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;         /* IE 10+ */
}
.gg-breadcrumb--scroll::-webkit-scrollbar { display: none; }
.gg-breadcrumb--scroll > li { flex-shrink: 0; white-space: nowrap; }

/* ---------- Navbar ---------- */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: var(--gg-navbar-h);
    height: var(--gg-navbar-h);
}
.navbar > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.navbar-brand {
    display: inline-block;
    padding-top: .25rem; padding-bottom: .25rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.navbar-brand:hover { color: #fff; }
.gg-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .9);
    font-size: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: .5rem 1rem;
    white-space: nowrap;
}
.gg-mega-trigger:hover,
.gg-mega-trigger:focus {
    color: #fff;
    outline: none;
}
.gg-mega-trigger .gg-chevron {
    display: inline-block;
    transition: transform .2s ease;
    font-size: .7em;
    line-height: 1;
}
.gg-mega-trigger[aria-expanded="true"] .gg-chevron { transform: rotate(180deg); }

/* ---------- Mega-menu panel ---------- */
.gg-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20rem;
    background: var(--gg-bg, #fff);
    color: var(--gg-text, #1a1a1a);
    border-top: 1px solid rgba(127,127,127,.2);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    overflow: hidden;
    z-index: 1029;
}
.gg-mega-menu[hidden] { display: none; }
.gg-mega-inner {
    height: 100%;
    padding: 1.25rem 0 1rem;
    overflow-y: auto;
}
.gg-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    height: 100%;
}
.gg-mega-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.gg-mega-col__title {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 .85rem;
    opacity: .9;
    flex-shrink: 0;
}
.gg-mega-list {
    list-style: none;
    padding: 0 .25rem 0 0;
    margin: 0;
    overflow-y: auto;
    flex: 1 1 auto;
}
.gg-mega-list li { margin-bottom: .5rem; line-height: 1.35; }
.gg-mega-list a {
    color: inherit;
    opacity: .65;
    text-decoration: none;
    font-size: .875rem;
    transition: opacity .15s ease;
}
.gg-mega-list a:hover,
.gg-mega-list a:focus { opacity: 1; text-decoration: none; color: inherit; }
.gg-mega-list .gg-mega-all { font-weight: 600; opacity: .95; }

@media (min-width: 768px) and (max-width: 991.98px) {
    .gg-mega-menu { height: auto; max-height: calc(100vh - 4rem); }
    .gg-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
    .gg-mega-list { overflow-y: visible; }
}
@media (max-width: 767.98px) {
    .gg-mega-menu {
        position: static;
        height: auto;
        max-height: 70vh;
        box-shadow: none;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: .5rem;
        background: rgba(255,255,255,.03);
        color: inherit;
        overflow-y: auto;
        margin: .5rem 0;
    }
    .gg-mega-inner { padding: .25rem 1rem; overflow: visible; }
    .gg-mega-grid { display: block; gap: 0; height: auto; }
    .gg-mega-col {
        display: block;
        padding: .85rem 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .gg-mega-col:last-child { border-bottom: 0; }
    .gg-mega-col__title {
        font-size: .7rem;
        letter-spacing: .14em;
        margin: 0 0 .6rem;
        opacity: .55;
    }
    .gg-mega-list {
        overflow: visible;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 .75rem;
    }
    .gg-mega-list li { margin: 0; }
    .gg-mega-list a {
        display: block;
        padding: .5rem 0;
        font-size: .9rem;
        opacity: .85;
        line-height: 1.25;
    }
    .gg-mega-list a:active { opacity: 1; }
    .gg-mega-list .gg-mega-all {
        grid-column: 1 / -1;
        font-weight: 600;
        opacity: 1;
        padding: .25rem 0 .5rem;
        margin-bottom: .15rem;
        border-bottom: 1px dashed rgba(255,255,255,.08);
    }
}

.navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin: 0; list-style: none; }
.nav-item { display: block; }
.nav-link {
    display: block;
    padding: .5rem .75rem;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    transition: color var(--gg-transition);
}
.nav-link:hover, .nav-link:focus { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.navbar-dark .nav-link { color: rgba(255, 255, 255, .9); }
.navbar-dark .nav-link:hover { color: #fff; }
.navbar-toggler {
    padding: .25rem .5rem;
    font-size: 1.125rem;
    line-height: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--gg-radius-sm);
    color: #fff;
}
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em; height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: center; background-size: 100%;
}
.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }

/* Mobile-only: solid panel behind the expanded menu so it doesn't bleed onto content */
@media (max-width: 767.98px) {
    .navbar-collapse.show {
        position: absolute;
        top: var(--gg-navbar-h);
        left: 0; right: 0;
        background: var(--gg-surface);
        border-bottom: 1px solid var(--gg-border);
        box-shadow: var(--gg-shadow-lg);
        padding: .5rem 1rem 1rem;
        max-height: calc(100vh - var(--gg-navbar-h));
        overflow-y: auto;
        z-index: 1029;
    }
    .navbar-collapse.show .nav-link,
    .navbar-collapse.show .dropdown-toggle { color: var(--gg-text); }
    .navbar-collapse.show .nav-link:hover,
    .navbar-collapse.show .dropdown-toggle:hover { color: var(--gg-primary); }
    .navbar-collapse.show .dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 1rem; }
}
.collapse:not(.show) { display: none; }
.collapse.show { display: block; }
.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }

@media (min-width: 768px) {
    .navbar-expand-md { flex-wrap: nowrap; justify-content: flex-start; }
    .navbar-expand-md .navbar-nav { flex-direction: row; align-items: center; }
    .navbar-expand-md .navbar-nav .nav-link { padding-right: .5rem; padding-left: .5rem; }
    .navbar-expand-md .navbar-collapse { display: flex !important; flex-basis: auto; flex-grow: 1; }
    .navbar-expand-md .navbar-toggler { display: none; }
}

.navbar-custom {
    background: var(--gg-navbar-bg) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.logo-style { height: 32px; width: 32px; border-radius: 6px; }
.logo-title { margin-left: .5rem; color: #fff !important; text-decoration: none; font-weight: 700; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-toggle {
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .9);
    padding: .5rem .75rem;
    font-size: inherit;
}
.dropdown-toggle::after {
    display: inline-block;
    margin-left: .5em;
    vertical-align: middle;
    content: "";
    border-top: .35em solid;
    border-right: .35em solid transparent;
    border-bottom: 0;
    border-left: .35em solid transparent;
}
.dropdown-toggle:hover { color: #fff; }
.dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    z-index: 1000;
    display: none;
    min-width: 12rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: .5rem 0;
    margin: .25rem 0 0;
    font-size: .9rem;
    color: var(--gg-text);
    text-align: left;
    list-style: none;
    background-color: var(--gg-surface);
    background-clip: padding-box;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    box-shadow: var(--gg-shadow-lg);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-right { right: 0; left: auto; }
.dropdown-item {
    display: block;
    width: 100%;
    padding: .4rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--gg-text);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    transition: background-color var(--gg-transition);
}
.dropdown-item:hover, .dropdown-item:focus { color: var(--gg-text); background-color: var(--gg-surface-alt); }
.dropdownlist { color: rgba(255, 255, 255, .9); padding: .5rem .75rem; }
.cat-list1 { padding: .5rem .75rem; outline: 0 !important; }
.ct-dropdown { /* dropdown panel — already handled by .dropdown-menu */ }

/* ---------- Modal ---------- */
.modal {
    position: fixed; inset: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
    background: rgba(0, 0, 0, .5);
}
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-dialog { position: relative; width: 100%; max-width: 500px; margin: 1rem auto; pointer-events: none; }
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    background-color: var(--gg-surface);
    background-clip: padding-box;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    outline: 0;
}
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
body.modal-open { overflow: hidden; }

/* ---------- Custom: page-level ---------- */
.mainpage-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gg-text);
    margin-bottom: .75rem;
}
@media (max-width: 600px) {
    .mainpage-heading { font-size: 1.25rem; }
}
.gg-cat-blurb {
    max-width: 60rem;
    margin: -.25rem 0 1.25rem;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--gg-text);
    opacity: .8;
}
@media (max-width: 600px) {
    .gg-cat-blurb { font-size: .9rem; }
}
.category-heading { font-size: 1.125rem; font-weight: 700; color: var(--gg-accent); }
.platform-heading { font-size: 1.125rem; }
.search-custom {
    color: #fff;
    background: var(--gg-success);
    border-color: var(--gg-success);
}
.join-page-button {
    color: #fff !important;
    border-color: var(--gg-success) !important;
    background: var(--gg-success) !important;
    padding: .75rem 2rem !important;
    font-size: 1rem !important;
    border-radius: var(--gg-radius) !important;
    transition: all var(--gg-transition);
}
.join-page-button:hover { background: var(--gg-success-hover) !important; transform: translateY(-1px); box-shadow: var(--gg-shadow-md); }
.group-mobile-view { margin-top: 0; }
.group-desktop-view { margin-top: 5vh; margin-bottom: 5vh; }
.group-tags { margin-right: .25rem; margin-bottom: .25rem !important; display: inline-block; cursor: pointer; }
.a-pointer { cursor: pointer; }

/* ---------- gg-group-card (modernized) ---------- */
.gg-group-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    overflow: hidden;
    background: var(--gg-surface);
    background-image: var(--gg-card-bg);
    font-family: var(--gg-font);
    height: 100%;
    transition: transform var(--gg-transition), box-shadow var(--gg-transition);
    box-shadow: var(--gg-shadow-sm);
}
.gg-group-card:hover { transform: translateY(-2px); box-shadow: var(--gg-shadow-md); }
.gg-group-card__header { position: relative; height: 96px; overflow: hidden; }
.gg-group-card__header-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-in-out; }
.gg-group-card:hover .gg-group-card__header-img { transform: scale(1.05); }
.gg-group-card__overlay-black { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); backdrop-filter: blur(2px); }
.gg-group-card__overlay-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--gg-surface)); }
.gg-group-card__platform-icon { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--gg-surface); border-radius: 50%; padding: 4px; box-shadow: var(--gg-shadow-sm); }
.gg-group-card__platform-icon img { width: 24px; height: 24px; display: block; }
.gg-group-card__content { padding: 0 16px; position: relative; }
.gg-group-card__profile-wrapper { display: flex; gap: 12px; margin-top: -32px; }
.gg-group-card__profile-img-wrapper {
    background: var(--gg-surface);
    width: 88px; height: 88px;
    border: 4px solid var(--gg-surface);
    border-radius: var(--gg-radius-lg);
    box-shadow: var(--gg-shadow);
    overflow: hidden;
    flex: none;
}
.gg-group-card__profile-img { width: 100%; height: 100%; object-fit: cover; }
.gg-group-card__info { margin-top: 16px; min-width: 0; flex: 1; }
.gg-group-card__group-title-wrap { margin: 0; font-size: 1rem; line-height: 1.3; }
.gg-group-card__group-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    font-weight: 700; font-size: 1rem;
    text-decoration: none; color: var(--gg-text); overflow: hidden;
}
.gg-group-card__group-title:hover { color: var(--gg-accent); }
.gg-group-card__category { font-size: .85rem; color: var(--gg-accent); text-decoration: none; }
.gg-group-card__category:hover { text-decoration: underline; }

/* Inline country flag rendered next to the category link in the card.
   Subtype pill + follower count + language chips were dropped from the
   card itself — full info still surfaces in the join page sidebar dl. */
.gg-group-card__meta-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gg-group-card__country { display: inline-flex; align-items: center; }
.gg-group-card__flag {
    width: 14px; height: 10px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}
.gg-group-card__description {
    margin: 14px 0; font-size: .8rem; color: var(--gg-text-muted); line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
            line-clamp: 2;
}
/* Tags row inside a group card — single line, horizontal scroll with drag.
   No-wrap so the card height stays consistent regardless of how many tags
   the group has. gg.js wires drag-to-scroll via [data-gg-drag-scroll]. */
.gg-group-card__tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0 0 4px;
    list-style: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    cursor: grab;
    /* Soft fade on the right edge to hint at more tags off-screen. */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
}
.gg-group-card__tags::-webkit-scrollbar { display: none; }
.gg-group-card__tags.gg-dragging,
.gg-group-card__tags:active { cursor: grabbing; }
.gg-group-card__tags.gg-dragging > li > a { pointer-events: none; }
.gg-group-card__tags > li { display: inline-flex; flex: 0 0 auto; }
.gg-group-card__tag {
    background: var(--gg-surface-alt); color: var(--gg-text-muted);
    font-size: .75rem; padding: 4px 8px; border-radius: var(--gg-radius-sm);
    cursor: pointer; transition: all var(--gg-transition);
    border: 0; font-family: inherit;
    white-space: nowrap; /* tag text stays on one line */
}
.gg-group-card__tag:hover { background-color: var(--gg-accent); color: #fff; }
.gg-group-card__footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 16px 16px; margin-top: auto; gap: 8px;
}
.gg-group-card__join-btn {
    background-color: var(--gg-accent); color: #fff !important;
    padding: 8px 16px; font-size: .85rem; border: none;
    border-radius: var(--gg-radius); cursor: pointer; font-weight: 600;
    text-decoration: none; transition: all var(--gg-transition);
}
.gg-group-card__join-btn:hover { background-color: #c2410c; color: #fff !important; transform: translateY(-1px); }
.gg-group-card__share-label { font-size: .75rem; color: var(--gg-text-subtle); }

/* ---------- Header search icon — paired with the theme toggle ---------- */
.gg-search-toggle {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    border-radius: var(--gg-radius-pill);
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: background var(--gg-transition);
}
.gg-search-toggle:hover,
.gg-search-toggle:focus { background: rgba(255, 255, 255, .28); color: #fff; text-decoration: none; }
.gg-search-toggle svg { width: 18px; height: 18px; }

/* ---------- Theme toggle button ---------- */
.gg-theme-toggle {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    border-radius: var(--gg-radius-pill);
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
    transition: background var(--gg-transition);
}
.gg-theme-toggle:hover { background: rgba(255, 255, 255, .28); }
.gg-theme-toggle svg { width: 18px; height: 18px; }
.gg-theme-toggle .gg-theme-toggle__moon { display: none; }
.gg-theme-toggle .gg-theme-toggle__sun { display: block; }
[data-theme="dark"] .gg-theme-toggle .gg-theme-toggle__moon { display: block; }
[data-theme="dark"] .gg-theme-toggle .gg-theme-toggle__sun { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .gg-theme-toggle .gg-theme-toggle__moon { display: block; }
    :root:not([data-theme="light"]) .gg-theme-toggle .gg-theme-toggle__sun { display: none; }
}

/* ---------- Misc ---------- */
.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
.invite-link-example { display: block; color: var(--gg-text-subtle); font-size: .8rem; margin-top: .25rem; }
.contact-info { padding: 1rem 0; }

/* ---------- Floating add-group button ---------- */
.gg-fab {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--gg-success);
    color: #fff !important;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--gg-shadow-lg);
    z-index: 1000; text-decoration: none;
    transition: transform var(--gg-transition), box-shadow var(--gg-transition);
}
.gg-fab:hover { transform: scale(1.05); color: #fff !important; }
.gg-fab svg { width: 28px; height: 28px; }

/* ---------- Scrollbar (subtle) ---------- */
.dropdown-menu::-webkit-scrollbar { width: 6px; }
.dropdown-menu::-webkit-scrollbar-thumb { background: var(--gg-border-strong); border-radius: 3px; }

/* ---------- Footer ---------- */
#footer { background: var(--gg-surface-alt); color: var(--gg-text-muted); }
[data-theme="dark"] #footer { background: #0f1115; color: var(--gg-text-subtle); }
#footer a { color: var(--gg-link); text-decoration: none; }
#footer a:hover { color: var(--gg-link-hover); }
.gg-footer-text { color: var(--gg-text-muted); }
[data-theme="dark"] .gg-footer-text { color: var(--gg-text-subtle); }
.gg-footer-social { display: inline-flex; gap: .75rem; align-items: center; }
.gg-footer-social a { color: var(--gg-text-muted); }
[data-theme="dark"] .gg-footer-social a { color: var(--gg-text-subtle); }
.gg-footer-social a:hover { color: var(--gg-link); }

/* ---------- Breadcrumb home icon ---------- */
.gg-breadcrumb-home { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; vertical-align: middle; }
.gg-breadcrumb-home svg { width: 20px; height: 20px; }

/* ---------- Welcome / list page widgets ---------- */
.gg-ad-banner { display: block; width: 100%; height: 160px; overflow: hidden; border-radius: var(--gg-radius); }
.gg-info-table { color: var(--gg-text-muted); border: 1px solid var(--gg-border); border-top: 0; }
.gg-info-table td { border-color: var(--gg-border); padding: .5rem .75rem; }
.gg-search-btn { height: 38px; }
.gg-empty-state { min-height: 60vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .75rem; }
.gg-loading, .gg-nomore { width: 100%; text-align: center; display: none; }
.gg-loading { padding: 1rem 0; }

/* Platform-root hero — same family as the homepage hero, color-tinted per
   platform. Replaces the legacy 4-row info-table that lived in
   partials/platform-hero.blade.php. Only renders on /{platform} (not
   /{platform}/{category} where the category page has its own layout). */
.gg-platform-hero {
    text-align: center;
    padding: 1.85rem 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem;
    border-radius: .5rem;
    background: linear-gradient(135deg,
        rgba(127, 127, 127, .06),
        rgba(127, 127, 127, .02));
    border: 1px solid rgba(127, 127, 127, .15);
    border-left-width: 3px;
}
.gg-platform-hero--whatsapp { border-left-color: #25d366; background: linear-gradient(135deg, rgba(37, 211, 102, .07), rgba(37, 211, 102, .02)); }
.gg-platform-hero--telegram { border-left-color: #1ca1f1; background: linear-gradient(135deg, rgba(28, 161, 241, .07), rgba(28, 161, 241, .02)); }
.gg-platform-hero--discord  { border-left-color: #5865f2; background: linear-gradient(135deg, rgba(88, 101, 242, .07), rgba(88, 101, 242, .02)); }
[data-theme="dark"] .gg-platform-hero--whatsapp { background: linear-gradient(135deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .04)); }
[data-theme="dark"] .gg-platform-hero--telegram { background: linear-gradient(135deg, rgba(28, 161, 241, .12), rgba(28, 161, 241, .04)); }
[data-theme="dark"] .gg-platform-hero--discord  { background: linear-gradient(135deg, rgba(88, 101, 242, .12), rgba(88, 101, 242, .04)); }

.gg-platform-hero__title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .65rem;
}
.gg-platform-hero__lead {
    max-width: 42rem;
    margin: 0 auto 1.1rem;
    font-size: .95rem;
    line-height: 1.55;
    opacity: .85;
}
.gg-platform-hero__stats {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem .85rem;
}
.gg-platform-hero__stats li {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    padding: .3rem .8rem;
    border: 1px solid rgba(127, 127, 127, .2);
    border-radius: 999px;
    background: rgba(127, 127, 127, .04);
    font-size: .8rem;
}
.gg-platform-hero__stat-label {
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .6;
    font-weight: 600;
    font-size: .7rem;
}
.gg-platform-hero__stat-value { font-weight: 600; }
.gg-platform-hero__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
}
@media (max-width: 600px) {
    .gg-platform-hero { padding: 1.25rem 1rem 1.1rem; }
    .gg-platform-hero__stats li { font-size: .72rem; padding: .25rem .65rem; }
}

/* ===========================================================================
/* ---------- Common headings ---------- */
.gg-faq-heading { font-weight: 600; font-size: 2rem; display: block; margin-top: 2rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .gg-faq-heading { font-size: 1.5rem; } }
.gg-form-heading { font-weight: 700; margin: 0; font-size: 1.2rem; line-height: 1.5rem; }
.gg-section-title { font-weight: 900; font-size: 3rem; line-height: 1.1; }
@media (max-width: 768px) { .gg-section-title { font-size: 2rem; } }

/* ---------- About page ---------- */
.gg-about-row { margin-top: 4rem; margin-bottom: 4rem; }
.gg-about-col { display: flex; flex-direction: column; justify-content: center; }
.gg-about-img { width: 100%; max-width: 480px; height: auto; }
.gg-disc-list { padding-left: 1.25rem; list-style: disc; }

/* ---------- Join (group detail) page ---------- */
.gg-join-hero {
    text-align: center;
    padding: 1rem 0 1.5rem;
    margin-top: .5rem;
}
.gg-join-image-wrap { position: relative; width: 128px; height: 128px; margin: 0 auto 1rem; }
.gg-join-image {
    width: 128px; height: 128px;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
    border: 3px solid var(--gg-surface);
    object-fit: cover;
}
[data-theme="dark"] .gg-join-image { box-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.platform-overlay-icon { position: absolute; right: -6px; bottom: 4px; width: 36px; height: 36px; z-index: 2; }
.gg-join-row { position: relative; }
.gg-join-ad-overlay { text-align: center; position: absolute; left: 0; right: 0; z-index: 2; }
.gg-join-category { color: var(--gg-primary); text-decoration: none; }
.gg-join-category:hover { color: var(--gg-primary-hover); text-decoration: underline; }
.gg-tag-list {
    list-style: none;
    margin: 0 0 .5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    justify-content: center;
}
.gg-tag-list > li { display: inline-flex; }
.gg-tag-pill {
    display: inline-block;
    white-space: normal;
    color: #fff;
    background: var(--gg-danger);
    padding: 4px 10px;
    border-radius: var(--gg-radius-pill);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gg-transition);
    border: 0;
    font-family: inherit;
}
.gg-tag-pill:hover { background: var(--gg-danger-hover); }
.gg-abandoned-card {
    border: 1px solid var(--gg-border);
    background: var(--gg-surface);
    padding: 1rem;
    border-radius: var(--gg-radius);
    margin-top: 1.5rem;
}
.gg-abandoned-card__title { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.gg-abandoned-card__note { text-align: left; color: var(--gg-danger); margin-top: 1rem; }
.gg-abandoned-card__note ul { list-style: disc; padding-left: 2rem; margin-bottom: 0; }
.gg-abandoned-banner {
    margin: 1rem 0;
    border: 1px solid var(--gg-border);
    padding: .75rem;
    border-radius: var(--gg-radius);
    font-weight: 700;
    color: var(--gg-text-muted);
    background: var(--gg-surface);
}
.gg-explore-btn {
    color: #fff !important;
    background: var(--gg-warning);
    padding: .5rem 1rem;
    text-decoration: none;
    border-radius: var(--gg-radius);
    display: inline-block;
}
.gg-explore-btn:hover { color: #fff !important; filter: brightness(.92); }

/* ---------- Disclaimer modal (theme-aware) ---------- */
.disclaimer-modal {
    position: fixed; inset: 0; z-index: 9999;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, .35);
    display: none;
    place-items: center;
    padding: 1rem;
}
.disclaimer-modal__card {
    background: var(--gg-surface);
    color: var(--gg-text);
    max-width: 22rem;
    width: 100%;
    padding: 1.5rem;
    border-radius: var(--gg-radius-lg);
    border: 1px solid var(--gg-border);
    box-shadow: var(--gg-shadow-lg);
}
.disclaimer-modal__title { font-size: 1.2rem; font-weight: 700; color: var(--gg-text); display: block; margin-bottom: .5rem; }
.disclaimer-modal__body { color: var(--gg-text-muted); }
.disclaimer-modal__body ul { padding-left: 1.25rem; margin-bottom: .5rem; }
.disclaimer-modal__hint { color: var(--gg-text); margin-bottom: .75rem; margin-top: .75rem; }
.disclaimer-modal__hint a { color: var(--gg-primary); text-decoration: underline; }
.disclaimer-modal__actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.disclaimer-modal__close-btn {
    border: 1px solid var(--gg-border-strong);
    background: transparent;
    color: var(--gg-text);
    padding: .35rem .9rem;
    border-radius: var(--gg-radius-sm);
    cursor: pointer;
}
.disclaimer-modal__close-btn:hover { background: var(--gg-surface-alt); }

/* ---------- Redirect overlay (#myModal full-screen splash) ---------- */
.gg-redirect-screen {
    width: 100vw; min-height: 100vh;
    border: 0; border-radius: 0;
    background: linear-gradient(to bottom, #ff432c, #ff9301) !important;
    color: #fff;
}
.gg-redirect-body { text-align: center; min-height: 100vh; padding: 1rem; color: #fff; }
.gg-redirect-body h4 { color: #fff; font-weight: 700; margin: .5rem 0; }
.gg-redirect-body strong { color: #fff; font-weight: 700; font-size: 2rem; display: block; margin-bottom: .75rem; }
.gg-redirect-body .gg-redirect-tagline { color: #fff; margin-bottom: 1.5rem; }
.gg-redirect-spacer { height: 17rem; width: 100%; }

/* ---------- Group hero (singular group) ---------- */
.gg-group-title { font-size: 1.5rem; font-weight: 700; margin: .5rem 0; }
.gg-group-desc { color: var(--gg-text-muted); margin-bottom: 1rem; }
@media (max-width: 600px) {
    .group-mobile-view { margin-top: 0; margin-bottom: 0; }
}

/* ---------- Description text muted ---------- */
.gg-text-muted-soft { color: var(--gg-text-subtle); font-size: .8rem; }

/* ---------- Adsbygoogle wrapper ---------- */
ins.adsbygoogle { display: block; }

/* ---------- Social share (group card footer) ---------- */
.gg-share { display: inline-flex; gap: .4rem; align-items: center; }
.gg-share a { line-height: 0; }
.gg-share__icon { width: 2rem; height: 2rem; }

/* ---------- 404 / error page ---------- */
.gg-404 { text-align: center; padding: 1rem 0 3rem; }
.gg-404__code {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 .25rem;
    color: var(--gg-primary);
    letter-spacing: -.04em;
}
.gg-404__title { font-size: 1.75rem; margin: 0 0 .75rem; }
.gg-404__lead { color: var(--gg-text-muted); margin-bottom: 1.5rem; }
.gg-404__nav {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 22rem;
    margin: 0 auto 1.5rem;
}
.gg-404__nav .btn { width: 100%; }
.gg-404__hint { color: var(--gg-text-muted); }
.gg-404__hint a { color: var(--gg-primary); }

/* ---------- FAQ accordion (#accordion on addgroup, about) ---------- */
#accordion .card { border-radius: var(--gg-radius); margin-bottom: .5rem; }
#accordion .card-header { background: var(--gg-surface-alt); border-bottom: 1px solid var(--gg-border); }
#accordion .card-body { background: var(--gg-surface); border-radius: 0; color: var(--gg-text); }
#accordion .card-link { color: var(--gg-text); }
#accordion .card-link h2 { color: var(--gg-text) !important; font-size: 1rem; margin: 0; font-weight: 600; }
[data-toggle="collapse"] > h2 { position: relative; padding-right: 1.5rem; }
[data-toggle="collapse"] > h2::after {
    display: inline-block;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\276F";
    transform: rotate(90deg);
    transition: transform .25s linear;
    position: absolute; right: 0; top: 50%; margin-top: -.5em;
}
[data-toggle="collapse"].collapsed > h2::after { transform: rotate(270deg); }

/* ---------- Tagify (theme-aware overrides) ---------- */
.tagify {
    --tags-border-color: var(--gg-border-strong);
    --tags-hover-border-color: var(--gg-primary);
    --tags-focus-border-color: var(--gg-primary);
    --tag-bg: var(--gg-surface-alt);
    --tag-hover: var(--gg-surface-alt);
    --tag-text-color: var(--gg-text);
    --tag-text-color--edit: var(--gg-text);
    --tag-remove-bg: rgba(227, 52, 47, .15);
    --tag-remove-btn-bg: transparent;
    --tag-remove-btn-bg--hover: var(--gg-danger);
    --tag-pad: .35em .6em;
    --tag-inset-shadow-size: 1.15em;
    --placeholder-color: var(--gg-text-subtle);
    --placeholder-color-focus: var(--gg-text-muted);
    --tagify-dd-color-primary: var(--gg-primary);
    --tagify-dd-bg-color: var(--gg-surface);
    --tagify-dd-text-color: var(--gg-text);
    --loader-size: .8em;

    background-color: var(--gg-surface);
    color: var(--gg-text);
    border: 1px solid var(--gg-border-strong);
    border-radius: var(--gg-radius);
    transition: border-color var(--gg-transition), box-shadow var(--gg-transition);
}
.tagify:hover { border-color: var(--gg-border-strong); }
.tagify.tagify--focus {
    border-color: var(--gg-primary);
    box-shadow: 0 0 0 3px rgba(255, 85, 31, .15);
}
.tagify__input { color: var(--gg-text); }
.tagify__input::before { color: var(--gg-text-subtle); }
/* Honor per-tag --tag-bg set by transformTag() in JS; fall back to surface */
.tagify__tag > div {
    color: #1a1a1a;
    background: var(--tag-bg, var(--gg-surface-alt));
}
.tagify__tag > div::before {
    background: var(--tag-bg, var(--gg-surface-alt)) !important;
    box-shadow: 0 0 0 var(--tag-inset-shadow-size, 1.15em) var(--tag-bg, var(--gg-surface-alt)) inset !important;
}
.tagify__tag__removeBtn { color: rgba(0, 0, 0, .55); }
.tagify__tag__removeBtn:hover { color: #fff; background: var(--gg-danger); }
.tagify__tag__removeBtn:hover + div > span { opacity: .5; }
.tagify__dropdown__wrapper {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    color: var(--gg-text);
    box-shadow: var(--gg-shadow-lg);
}
.tagify__dropdown__item { color: var(--gg-text); }
.tagify__dropdown__item--active,
.tagify__dropdown__item:hover { background: var(--gg-surface-alt); color: var(--gg-text); }

/* ════════════════════════════════════════════════════════════════════
   Join page — redesigned hero card (2026-04-30)
   Composes existing CSS variables; full dark-mode parity via
   [data-theme="dark"] cascade on :root.
   ════════════════════════════════════════════════════════════════════ */

.gg-join-card {
    position: relative;
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    padding: 2.25rem 1.5rem 1.75rem;
    margin-top: .75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 17, 21, .04);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
@media (min-width: 720px) {
    .gg-join-card { padding: 2.75rem 2.25rem 2rem; }
}
[data-theme="dark"] .gg-join-card { box-shadow: 0 6px 32px rgba(0, 0, 0, .35); }

/* Soft platform-tinted halo behind the avatar — pure decoration. */
.gg-join-card__halo {
    position: absolute; inset: -40% 0 auto 0; height: 320px;
    background: radial-gradient(closest-side, var(--gg-primary-soft), transparent 70%);
    z-index: -1;
    opacity: .9;
}
.gg-platform-whatsapp .gg-join-card__halo { background: radial-gradient(closest-side, rgba(37, 211, 102, .18), transparent 70%); }
.gg-platform-telegram .gg-join-card__halo { background: radial-gradient(closest-side, rgba(34, 158, 217, .18), transparent 70%); }
.gg-platform-discord  .gg-join-card__halo { background: radial-gradient(closest-side, rgba(88, 101, 242, .18), transparent 70%); }

.gg-join-card__body { position: relative; }

/* Meta pills strip (platform / category / listed-on) */
.gg-join-meta-pills { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .25rem 0 .9rem; }
.gg-meta-pill {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: var(--gg-radius-pill);
    font-size: .72rem; font-weight: 600;
    background: var(--gg-surface-alt);
    color: var(--gg-text-muted);
    border: 1px solid var(--gg-border);
    text-decoration: none;
    transition: background var(--gg-transition), color var(--gg-transition);
}
.gg-meta-pill--category { color: var(--gg-primary); }
.gg-meta-pill--category:hover { background: var(--gg-primary-soft); color: var(--gg-primary-hover); text-decoration: none; }
.gg-platform-whatsapp .gg-meta-pill--platform { background: rgba(37, 211, 102, .12); color: #1a8a47; border-color: rgba(37, 211, 102, .35); }
.gg-platform-telegram .gg-meta-pill--platform { background: rgba(34, 158, 217, .12); color: #1668a3; border-color: rgba(34, 158, 217, .35); }
.gg-platform-discord  .gg-meta-pill--platform { background: rgba(88, 101, 242, .14); color: #4954c2; border-color: rgba(88, 101, 242, .35); }
[data-theme="dark"] .gg-platform-whatsapp .gg-meta-pill--platform { color: #4ade80; }
[data-theme="dark"] .gg-platform-telegram .gg-meta-pill--platform { color: #60a5fa; }
[data-theme="dark"] .gg-platform-discord  .gg-meta-pill--platform { color: #a5b4fc; }

/* Primary CTA — large, contrasting, with arrow icon */
.gg-join-cta-row { display: flex; flex-direction: column; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.gg-join-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: 44px;                /* fixed height keeps it aligned with .gg-icon-btn */
    padding: 0 1.5rem;
    font-size: .95rem; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--gg-primary), var(--gg-primary-hover));
    border: 0;
    border-radius: var(--gg-radius-pill);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 85, 31, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform var(--gg-transition), box-shadow var(--gg-transition), filter var(--gg-transition);
    text-decoration: none;
    letter-spacing: .01em;
    white-space: nowrap;
}
.gg-join-cta:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 10px 24px rgba(255, 85, 31, .32), inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; text-decoration: none; }
.gg-join-cta:active { transform: translateY(0); }
.gg-join-cta:focus-visible { outline: 3px solid var(--gg-primary-soft); outline-offset: 3px; }
.gg-join-cta__icon { transition: transform var(--gg-transition); flex-shrink: 0; }
.gg-join-cta:hover .gg-join-cta__icon { transform: translateX(3px); }

/* Mobile: actions wrap to a full row under the title — let the Join button
   fill the leftover width next to the share icon for a tidy 2-button line.
   Slightly slimmer height so it doesn't tower over the rest of the card. */
@media (max-width: 720px) {
    .gg-join-header__actions { width: 100%; gap: .5rem; }
    .gg-join-cta { height: 42px; padding: 0 1.1rem; font-size: .9rem; flex: 1 1 auto; min-width: 0; }
    .gg-icon-btn { height: 42px; width: 42px; flex-shrink: 0; }
}

.gg-join-trust {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .78rem; color: var(--gg-text-muted);
}
.gg-join-trust__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .15);
}

/* ───── Long-description rich card ───── */
.gg-rich-card {
    margin: 1rem 0 2rem;
    padding: 1.5rem 1.25rem;
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
}
@media (min-width: 720px) {
    .gg-rich-card { padding: 1.75rem 2rem; }
}
.gg-rich-card__heading {
    font-size: 1.15rem; font-weight: 700;
    margin: 0 0 .85rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--gg-border);
    color: var(--gg-text);
}

/* Scoped typography for sanitised admin-authored HTML — keeps third-party
   pasted markup from breaking out of the card. */
.gg-rich-html { color: var(--gg-text); line-height: 1.65; font-size: .95rem; }
.gg-rich-html p { margin: 0 0 .8rem; }
.gg-rich-html p:last-child { margin-bottom: 0; }
.gg-rich-html h5 { font-size: 1rem; font-weight: 700; margin: 1.1rem 0 .4rem; }
.gg-rich-html h6 { font-size: .9rem; font-weight: 700; margin: 1rem 0 .35rem; color: var(--gg-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.gg-rich-html blockquote {
    margin: .75rem 0;
    padding: .5rem .75rem;
    border-left: 3px solid var(--gg-border-strong);
    background: var(--gg-surface-alt);
    color: var(--gg-text);
}
.gg-rich-html ul,
.gg-rich-html ol { margin: 0 0 .8rem 1.25rem; padding: 0; }
.gg-rich-html ul { list-style: disc; }
.gg-rich-html ol { list-style: decimal; }
.gg-rich-html li { margin-bottom: .25rem; }
.gg-rich-html strong, .gg-rich-html b { font-weight: 700; }
.gg-rich-html em, .gg-rich-html i { font-style: italic; }
.gg-rich-html a {
    color: var(--gg-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.gg-rich-html a:hover { color: var(--gg-primary-hover); }
.gg-rich-html table {
    width: 100%;
    border-collapse: collapse;
    margin: .75rem 0 1rem;
    font-size: .9rem;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-sm);
    overflow: hidden;
}
.gg-rich-html th,
.gg-rich-html td { border: 1px solid var(--gg-border); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.gg-rich-html thead th { background: var(--gg-surface-alt); font-weight: 700; color: var(--gg-text); }
.gg-rich-html tbody tr:nth-child(even) { background: var(--gg-surface-alt); }

/* ════════════════════════════════════════════════════════════════════
   Join page v2 — two-column shell (hero strip + main + sidebar)
   Top.gg-inspired layout. Composes existing CSS variables; full
   dark-mode parity via [data-theme="dark"] cascade.
   ════════════════════════════════════════════════════════════════════ */

.gg-join-shell { padding: 0; margin-top: .5rem; }

/* ─────── Hero strip ─────── */
.gg-join-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 1.5rem;
    row-gap: 1rem;
    align-items: start;          /* avatar pinned to top, meta + tags grow downward */
    padding: 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gg-border);
    position: relative;
}
@media (max-width: 720px) {
    .gg-join-header {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 1.25rem 1rem 1.25rem;
        column-gap: 1rem;
    }
    .gg-join-header__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

.gg-join-header__avatar { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.gg-join-header__img {
    width: 112px; height: 112px;
    border-radius: var(--gg-radius-lg);
    border: 2px solid var(--gg-surface);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    object-fit: cover;
    display: block;
}
@media (max-width: 720px) {
    .gg-join-header__avatar { width: 88px; height: 88px; }
    .gg-join-header__img    { width: 88px; height: 88px; }
}
[data-theme="dark"] .gg-join-header__img { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

/* Platform overlay is now a clickable link to the platform browse hub. The
   <a> wrapper carries the layout (absolute, square), the <img> inside
   inherits its dimensions. Hover lifts to signal interactivity. */
.gg-join-header__platform-link {
    position: absolute; right: -8px; bottom: -8px;
    width: 30px; height: 30px;
    z-index: 2;
    line-height: 0;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transition: transform var(--gg-transition), box-shadow var(--gg-transition);
}
.gg-join-header__platform-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    opacity: 0;
    transition: opacity var(--gg-transition);
}
.gg-join-header__platform-link:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.gg-join-header__platform { width: 100%; height: 100%; border-radius: 50%; display: block; }
@media (max-width: 720px) {
    .gg-join-header__platform-link { width: 30px; height: 30px; right: -8px; bottom: -8px; }
}

.gg-join-header__meta { min-width: 0; align-self: center; }
.gg-join-header__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .35rem;
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--gg-text);
    word-break: break-word;
}
@media (min-width: 720px)  { .gg-join-header__title { font-size: 2rem; } }
@media (min-width: 1200px) { .gg-join-header__title { font-size: 2.25rem; } }

.gg-join-header__sub { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--gg-text-muted); }
.gg-join-header__platform-chip {
    display: inline-flex; align-items: center;
    padding: 3px 9px;
    font-size: .72rem; font-weight: 700;
    border-radius: var(--gg-radius-sm);
    background: var(--gg-surface-alt);
    color: var(--gg-text-muted);
    border: 1px solid var(--gg-border);
    text-decoration: none;
    transition: filter var(--gg-transition), text-decoration var(--gg-transition);
}
.gg-join-header__platform-chip:hover { text-decoration: none; filter: brightness(.95); }
.gg-platform-whatsapp .gg-join-header__platform-chip { background: rgba(37, 211, 102, .12); color: #1a8a47; border-color: rgba(37, 211, 102, .35); }
.gg-platform-telegram .gg-join-header__platform-chip { background: rgba(34, 158, 217, .12); color: #1668a3; border-color: rgba(34, 158, 217, .35); }
.gg-platform-discord  .gg-join-header__platform-chip { background: rgba(88, 101, 242, .14); color: #4954c2; border-color: rgba(88, 101, 242, .35); }
[data-theme="dark"] .gg-platform-whatsapp .gg-join-header__platform-chip { color: #4ade80; }
[data-theme="dark"] .gg-platform-telegram .gg-join-header__platform-chip { color: #60a5fa; }
[data-theme="dark"] .gg-platform-discord  .gg-join-header__platform-chip { color: #a5b4fc; }
/* Inline country/language filter strip on platform + category pages.
   Sits just above the cards. Wraps to its own line on small viewports
   so the controls stay tappable. */
.gg-listing-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--gg-border, #e5e7eb);
    border-radius: 8px;
    background: var(--gg-bg-soft, #f9fafb);
}
.gg-listing-filters__label {
    font-size: .75rem; font-weight: 600; color: var(--gg-text-muted, #6b7280);
    margin: 0; text-transform: uppercase; letter-spacing: .04em;
}
.gg-listing-filters__select {
    padding: 6px 10px; border: 1px solid var(--gg-border, #d1d5db);
    border-radius: 6px; background: var(--gg-bg, #fff);
    color: var(--gg-text, #111827); font-size: .875rem;
    min-width: 160px;
}
.gg-listing-filters__btn {
    padding: 6px 14px; border: 1px solid var(--gg-accent, #4f46e5);
    border-radius: 6px; background: var(--gg-accent, #4f46e5);
    color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.gg-listing-filters__btn:hover { filter: brightness(.95); }
.gg-listing-filters__clear {
    font-size: .8rem; color: var(--gg-text-muted, #6b7280);
    text-decoration: underline;
}
[data-theme="dark"] .gg-listing-filters {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .08);
}
[data-theme="dark"] .gg-listing-filters__select {
    background: var(--gg-bg, #0f172a); color: var(--gg-text, #e5e7eb);
    border-color: rgba(255, 255, 255, .12);
}

.gg-join-header__sep { color: var(--gg-text-subtle); }
.gg-join-header__chip {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 999px;
    font-size: .72rem; font-weight: 600; letter-spacing: .02em;
    background: rgba(99, 102, 241, .12); color: #4f46e5;
}
[data-theme="dark"] .gg-join-header__chip { background: rgba(129, 140, 248, .15); color: #a5b4fc; }
.gg-join-header__cat { color: var(--gg-primary); text-decoration: none; font-weight: 600; }
.gg-join-header__cat:hover { text-decoration: underline; color: var(--gg-primary-hover); }
.gg-join-header__listed { color: var(--gg-text-subtle); }

/* Tags row — sits at the very bottom of the .gg-join-shell card, AFTER the
   two-column main/sidebar grid. Full-width "filed-under" strip with a top
   divider + faint surface tint so it reads as a footer rather than
   competing for attention with the body content. */
.gg-join-shell__tags {
    list-style: none;
    margin: 0;
    padding: 1rem 1.25rem 1.1rem;
    border-top: 1px solid var(--gg-border);
    background: var(--gg-surface);
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
@media (min-width: 720px) {
    .gg-join-shell__tags { padding: 1rem 1.5rem 1.1rem; }
}
.gg-join-header__tag {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    font-size: .72rem; font-weight: 600;
    color: var(--gg-text-muted);
    background: var(--gg-surface-alt);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-pill);
    text-decoration: none;
    transition: background var(--gg-transition), color var(--gg-transition), border-color var(--gg-transition);
}
.gg-join-header__tag:hover { background: var(--gg-primary-soft); color: var(--gg-primary); border-color: var(--gg-primary); text-decoration: none; }

.gg-join-header__actions { display: flex; align-items: center; gap: .5rem; align-self: center; }

/* Square share/secondary icon button */
.gg-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--gg-radius);
    background: var(--gg-surface-alt);
    color: var(--gg-text-muted);
    border: 1px solid var(--gg-border);
    cursor: pointer;
    transition: background var(--gg-transition), color var(--gg-transition), border-color var(--gg-transition);
}
.gg-icon-btn:hover { background: var(--gg-surface); color: var(--gg-text); border-color: var(--gg-border-strong); }
.gg-icon-btn--ok { background: rgba(34, 197, 94, .15); color: #16a34a; border-color: rgba(34, 197, 94, .35); }

/* ─────── Tabs strip ─────── */
.gg-join-tabs { padding: 0 1.25rem; border-bottom: 1px solid var(--gg-border); }
.gg-join-tabs__item {
    display: inline-block;
    padding: .65rem .15rem .55rem;
    font-size: .9rem; font-weight: 600;
    color: var(--gg-text-muted);
    border-bottom: 2px solid transparent;
}
.gg-join-tabs__item--active { color: var(--gg-text); border-bottom-color: var(--gg-primary); }

/* ─────── Two-column body ─────── */
.gg-join-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem 1rem;
}
@media (min-width: 960px) {
    .gg-join-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; }
}

.gg-join-main { min-width: 0; }
.gg-join-divider { border: 0; border-top: 1px solid var(--gg-border); margin: 1.25rem 0; }

/* ─────── Sidebar cards ─────── */
.gg-join-side { display: flex; flex-direction: column; gap: 1rem; }
.gg-side-card {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    padding: 1rem 1.1rem 1.05rem;
}
.gg-side-card__title {
    display: flex; align-items: center; gap: .4rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--gg-text);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .65rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--gg-border);
}
.gg-side-card__title svg { color: var(--gg-primary); }
.gg-side-card__body { font-size: .85rem; color: var(--gg-text-muted); margin: 0; line-height: 1.5; }
.gg-side-card--safety { background: linear-gradient(180deg, var(--gg-primary-soft), var(--gg-surface)); }

.gg-side-dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: .35rem .75rem; font-size: .85rem; }
.gg-side-dl dt { color: var(--gg-text-subtle); font-weight: 500; }
.gg-side-dl dd { margin: 0; color: var(--gg-text); font-weight: 600; word-break: break-word; }
.gg-side-link { color: var(--gg-primary); text-decoration: none; }
.gg-side-link:hover { color: var(--gg-primary-hover); text-decoration: underline; }

.gg-status { display: inline-flex; align-items: center; padding: 2px 8px; font-size: .7rem; font-weight: 700; border-radius: var(--gg-radius-pill); border: 1px solid; }
.gg-status--active   { background: rgba(34, 197, 94, .12);  color: #16a34a; border-color: rgba(34, 197, 94, .3); }
.gg-status--abandoned{ background: rgba(234, 179, 8, .12);  color: #b45309; border-color: rgba(234, 179, 8, .35); }
[data-theme="dark"] .gg-status--active    { color: #4ade80; }
[data-theme="dark"] .gg-status--abandoned { color: #fbbf24; }

.gg-tag-list--side { flex-direction: column; align-items: stretch; gap: .35rem; justify-content: flex-start; }
.gg-tag-list--side > li { display: block; }
.gg-side-tag {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    font-size: .78rem; font-weight: 600;
    color: var(--gg-text-muted);
    background: var(--gg-surface-alt);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-sm);
    text-decoration: none;
    transition: background var(--gg-transition), color var(--gg-transition);
}
.gg-side-tag:hover { background: var(--gg-primary-soft); color: var(--gg-primary); border-color: var(--gg-primary); text-decoration: none; }

/* Wrap the entire join shell in a card so the hero/tabs/grid feel unified */
.gg-join-shell {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(15, 17, 21, .04);
}
[data-theme="dark"] .gg-join-shell { box-shadow: 0 6px 32px rgba(0, 0, 0, .35); }

/* ─────── FAQ accordion (join page) ───────
   Native <details>/<summary> driven — zero JS, keyboard-accessible by default.
   Chevron rotates on open via [open] attribute selector. */
.gg-faq { margin: 1rem 0 .5rem; }
.gg-faq__heading {
    font-size: 1.15rem; font-weight: 700;
    margin: 0 0 .85rem;
    color: var(--gg-text);
}
.gg-faq__list { display: flex; flex-direction: column; gap: .5rem; }

.gg-faq__item {
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    background: var(--gg-surface);
    overflow: hidden;
    transition: border-color var(--gg-transition), box-shadow var(--gg-transition);
}
.gg-faq__item[open] {
    border-color: var(--gg-border-strong);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
[data-theme="dark"] .gg-faq__item[open] { box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

.gg-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .85rem 1rem;
    font-size: .95rem; font-weight: 600;
    color: var(--gg-text);
    cursor: pointer;
    list-style: none;             /* hide default disclosure triangle */
    user-select: none;
}
.gg-faq__q::-webkit-details-marker { display: none; }   /* Safari */
.gg-faq__item:hover { background: var(--gg-surface-alt); }
.gg-faq__q:focus-visible { outline: 2px solid var(--gg-primary); outline-offset: -2px; }

.gg-faq__chev {
    flex-shrink: 0;
    color: var(--gg-text-muted);
    transition: transform var(--gg-transition), color var(--gg-transition);
}
.gg-faq__item[open] .gg-faq__chev { transform: rotate(180deg); color: var(--gg-primary); }

.gg-faq__a {
    padding: 0 1rem 1rem;
    color: var(--gg-text-muted);
    font-size: .9rem;
    line-height: 1.6;
    border-top: 1px dashed var(--gg-border);
    padding-top: .85rem;
    margin-top: 0;
}

/* ─────── FAQ as a standalone card (join page, full-width) ───────
   Sits between the .gg-join-shell card and the "You may also like"
   recommendations grid. Mirrors the shell card's chrome (surface,
   border, radius, shadow) so the page reads as two stacked cards. */
.gg-faq-card {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: 0 4px 24px rgba(15, 17, 21, .04);
}
@media (min-width: 720px) {
    .gg-faq-card { padding: 1.25rem; }
}
[data-theme="dark"] .gg-faq-card { box-shadow: 0 6px 32px rgba(0, 0, 0, .35); }

.gg-faq-card__head {
    margin: 0 0 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--gg-border);
}
.gg-faq-card__heading {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 .25rem;
    color: var(--gg-text);
    letter-spacing: -.01em;
}
@media (min-width: 720px) { .gg-faq-card__heading { font-size: 1.65rem; } }
.gg-faq-card__sub {
    margin: 0;
    font-size: .9rem;
    color: var(--gg-text-muted);
}
.gg-faq-card__sub strong { color: var(--gg-text); font-weight: 600; }

/* ==========================================================================
   Footer nav (moved from inline <style> in frontend.blade.php for caching)
   ========================================================================== */
.gg-footer-nav {
    background: rgba(127,127,127,.04);
    border-top: 1px solid rgba(127,127,127,.18);
    padding: 2rem 0 .5rem;
    font-size: .8125rem;
    text-align: left;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}
.gg-footer-section {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(127,127,127,.12);
}
.gg-footer-section:last-child { border-bottom: 0; }
.gg-footer-col__title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 .9rem;
    opacity: .85;
}
.gg-footer-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem 1.25rem;
}
.gg-footer-chips li { line-height: 1.3; }
.gg-footer-chips a {
    color: inherit;
    opacity: .65;
    text-decoration: none;
    display: inline-block;
    padding: .1rem 0;
    transition: opacity .15s ease;
}
.gg-footer-chips a:hover,
.gg-footer-chips a:focus { opacity: 1; text-decoration: none; color: inherit; }
.gg-footer-chips .gg-footer-all { font-weight: 600; opacity: .95; }

/* ──────────────────────────────────────────────────────────────────
   Above-the-fold listing-page styles — moved from gg-pages.css to
   gg-base.css so they ship render-blocking. Async-loading them caused
   ~0.25 CLS on /{platform} and /{platform}/{category} when the late
   stylesheet snapped in padding/margin on the intro block and
   carousel sections. Keep these in sync with gg-pages.css if edited.
   ────────────────────────────────────────────────────────────────── */

/* Magazine-style category sections (homepage + platform-root). */
.gg-home-section { margin: 2rem 0 2rem; }
.gg-home-section__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    margin-bottom: 1rem; padding-bottom: .5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .18);
}
.gg-home-section__title {
    font-size: 1.1rem; font-weight: 700; margin: 0; line-height: 1.3;
}
.gg-home-section__title a { color: inherit; text-decoration: none; }
.gg-home-section__title a:hover { text-decoration: underline; }
.gg-home-section__title--latest {
    margin-bottom: 1rem; margin-top: 2rem; padding-bottom: .5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .18);
}
.gg-home-section__more {
    font-size: .75rem; opacity: .75; color: inherit;
    text-decoration: underline; white-space: nowrap;
}
.gg-home-section__more:hover { opacity: 1; color: inherit; }
.gg-home-section__grid {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: .25rem .15rem 1rem;
    margin: 0 -.15rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.gg-home-section__grid::-webkit-scrollbar { display: none; }
.gg-home-section__grid:focus-visible {
    outline: 2px solid var(--gg-accent, #16a34a);
    outline-offset: 2px;
    border-radius: .35rem;
}
.gg-home-section__grid.gg-dragging,
.gg-home-section__grid:active { cursor: grabbing; }
.gg-home-section__grid.gg-dragging a,
.gg-home-section__grid.gg-dragging button { pointer-events: none; }
.gg-home-section__card-cell {
    flex: 0 0 350px; max-width: 350px; scroll-snap-align: start;
}
@media (max-width: 600px) {
    .gg-home-section__card-cell { flex-basis: 86vw; max-width: 86vw; }
}

/* Admin-curated category intro shown above the listing on
   /{platform}/{category} (page-1 only). Padding/margin reservation here
   prevents a 60-80px downward shift of the listing when CSS arrives. */
.gg-cat-intro {
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid rgba(127, 127, 127, .35);
    background: rgba(127, 127, 127, .04);
    border-radius: .25rem;
    font-size: .95rem;
    line-height: 1.6;
}
.gg-cat-intro p { margin: 0 0 .75rem; }
.gg-cat-intro p:last-child { margin-bottom: 0; }
.gg-cat-intro h2,
.gg-cat-intro h3 { margin: .5rem 0 .5rem; font-weight: 600; }
.gg-cat-intro h2 { font-size: 1.15rem; }
.gg-cat-intro h3 { font-size: 1rem; }
.gg-cat-intro ul,
.gg-cat-intro ol { margin: 0 0 .75rem 1.25rem; padding: 0; }
.gg-cat-intro a { color: inherit; text-decoration: underline; }

/* /private browse top banner. */
.gg-private-banner {
    margin: 1rem 0;
    padding: .75rem 1rem;
    border: 1px solid rgba(220, 38, 38, .25);
    background: rgba(254, 226, 226, .35);
    color: inherit;
    border-radius: .35rem;
    font-size: .9rem;
    line-height: 1.5;
}
[data-theme="dark"] .gg-private-banner {
    background: rgba(127, 29, 29, .15);
    border-color: rgba(220, 38, 38, .35);
}

/* Crawlable pagination at the bottom of every listing page. */
.gg-pagination {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: 1rem 0 1.5rem;
    font-size: .9rem;
}
.gg-pagination__link {
    display: inline-block;
    padding: .45rem 1rem;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: .35rem;
    color: inherit;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}
.gg-pagination__link:hover,
.gg-pagination__link:focus {
    background: rgba(127, 127, 127, .08);
    border-color: rgba(127, 127, 127, .55);
    color: inherit;
    text-decoration: none;
}
.gg-pagination__link--disabled {
    opacity: .45; cursor: not-allowed; pointer-events: none;
}
.gg-pagination__status { opacity: .75; }
