/* ==========================================================================
   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;
}

/* ---------- 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);
}

@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);
    }
}

/* ---------- 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);
    background-color: var(--gg-surface);
    background-clip: padding-box;
    border: 1px solid var(--gg-border-strong);
    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%; }

/* ---------- 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;
}
.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; }
.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; }
}

/* ===========================================================================
   Homepage magazine layout — hero, platform cards, category sections, tag cloud.
   Also reused by platform pages for the per-category sections at the top.
   =========================================================================== */

.gg-home-hero {
    text-align: center;
    padding: 2rem 1rem 1.75rem;
    margin: 1rem 0 1.75rem;
    border-radius: .5rem;
    background: linear-gradient(135deg,
        rgba(34, 197, 94, .08),
        rgba(99, 102, 241, .08));
    border: 1px solid rgba(127, 127, 127, .15);
}
[data-theme="dark"] .gg-home-hero {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, .12),
        rgba(99, 102, 241, .12));
}
.gg-home-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 .75rem;
}
.gg-home-hero__accent {
    color: var(--gg-accent, #16a34a);
    white-space: nowrap;
}
.gg-home-hero__lead {
    max-width: 38rem;
    margin: 0 auto 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    opacity: .85;
}
.gg-home-hero__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}

/* "Browse by platform" 3-card row */
.gg-home-platforms {
    margin: 1.5rem 0 2.25rem;
}
.gg-home-platforms__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .85rem;
    margin-top: .85rem;
}
.gg-home-platform-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .85rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .5rem;
    color: inherit;
    text-decoration: none;
    background: var(--gg-bg, transparent);
    transition: border-color .15s ease, transform .15s ease;
}
.gg-home-platform-card:hover,
.gg-home-platform-card:focus {
    border-color: rgba(127, 127, 127, .55);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}
.gg-home-platform-card__head { display: flex; flex-direction: column; gap: .15rem; }
.gg-home-platform-card__name { font-weight: 700; font-size: 1.1rem; }
.gg-home-platform-card__count { font-size: .85rem; opacity: .7; }
.gg-home-platform-card__cta { font-size: .8125rem; opacity: .8; align-self: flex-start; }
.gg-home-platform-card--whatsapp { border-left: 3px solid #25d366; }
.gg-home-platform-card--telegram { border-left: 3px solid #1ca1f1; }
.gg-home-platform-card--discord  { border-left: 3px solid #5865f2; }

/* Category sections (homepage + platform-page) */
.gg-home-section {
    margin: 1.75rem 0 2.25rem;
}
.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-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; }
/* Horizontal-scroll carousel for category sections — replaces the old
   Bootstrap row/col grid. Cards have a fixed flex width so a row of 8 always
   overflows; native swipe handles touch, gg.js handles mouse drag. Scrollbar
   hidden; scroll-snap so cards stop cleanly. */
.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; /* bleed slightly so card shadow isn't clipped */
    scrollbar-width: none; /* Firefox */
    -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; }
/* Don't capture clicks mid-drag (gg.js toggles .gg-dragging). */
.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; }
}

/* Popular tags chip cloud */
.gg-home-tags {
    margin: 2rem 0 2.5rem;
}
.gg-home-tag-cloud {
    list-style: none;
    padding: 0;
    margin: 1rem 0 .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.gg-home-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem .4rem 1rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    font-size: .9rem;
    background: var(--gg-bg, transparent);
    transition: border-color .15s ease, transform .15s ease;
}
.gg-home-tag-chip:hover,
.gg-home-tag-chip:focus {
    border-color: rgba(127, 127, 127, .55);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}
.gg-home-tag-chip small {
    display: inline-block;
    padding: .05rem .4rem;
    font-size: .7rem;
    border-radius: .25rem;
    background: rgba(127, 127, 127, .15);
    opacity: .85;
    line-height: 1.4;
}

/* Bottom submission CTA */
.gg-home-cta {
    margin: 2.5rem 0 3rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border-radius: .5rem;
    background: rgba(127, 127, 127, .04);
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-home-cta__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}
.gg-home-cta__lead {
    max-width: 32rem;
    margin: 0 auto 1rem;
    font-size: .95rem;
    opacity: .85;
}

/* ================================================================
   /categories hub — revamped: hero + filter + featured + grid + CTA.
   Old .gg-cat-hub-* classes were replaced with .gg-cathub-* below.
   ================================================================ */

.gg-cathub-hero {
    margin: 1rem 0 1.75rem;
    padding: 2rem 1.25rem 1.5rem;
    border-radius: .5rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, .07), rgba(99, 102, 241, .07));
    border: 1px solid rgba(127, 127, 127, .15);
}
[data-theme="dark"] .gg-cathub-hero {
    background: linear-gradient(135deg, rgba(34, 197, 94, .12), rgba(99, 102, 241, .12));
}
.gg-cathub-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 .65rem;
}
.gg-cathub-hero__lead {
    max-width: 42rem;
    margin: 0 auto 1.25rem;
    font-size: .98rem;
    line-height: 1.55;
    opacity: .85;
}
.gg-cathub-hero__stats {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .85rem;
    font-size: .85rem;
    opacity: .85;
}
.gg-cathub-hero__stats li {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: rgba(127, 127, 127, .07);
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-cathub-hero__stats li span {
    font-weight: 700;
    font-size: 1rem;
}

/* Filter input */
.gg-cathub-filter {
    position: relative;
    max-width: 32rem;
    margin: 0 auto;
}
.gg-cathub-filter__icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: .55;
    pointer-events: none;
}
.gg-cathub-filter__input {
    width: 100%;
    padding: .6rem .9rem .6rem 2.4rem;
    font-size: .95rem;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: .4rem;
    background: var(--gg-bg, rgba(127, 127, 127, .04));
    color: inherit;
}
.gg-cathub-filter__input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, .55);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}
.gg-cathub-filter__empty {
    display: block;
    margin-top: .65rem;
    font-size: .85rem;
    opacity: .7;
    font-style: italic;
}

/* Section headings shared by featured + alphabetical */
.gg-cathub-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .18);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.gg-cathub-section-title__sub {
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .55;
}

/* Featured (top N) */
.gg-cathub-featured__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.gg-cathub-feature {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.1rem 1.15rem;
    border-radius: .5rem;
    background: rgba(127, 127, 127, .04);
    border: 1px solid rgba(127, 127, 127, .25);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.gg-cathub-feature:hover,
.gg-cathub-feature:focus-visible {
    border-color: rgba(34, 197, 94, .5);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.gg-cathub-feature__name,
.gg-cathub-feature__heading {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}
.gg-cathub-feature__heading a {
    color: inherit;
    text-decoration: none;
}
.gg-cathub-feature__heading a:hover,
.gg-cathub-feature__heading a:focus-visible {
    text-decoration: underline;
}
.gg-cathub-feature__count {
    font-size: .8125rem;
    opacity: .7;
}
.gg-cathub-feature__platforms {
    list-style: none;
    padding: 0;
    margin: .35rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

/* Full grid (alphabetical) */
.gg-cathub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .9rem;
    margin-bottom: 2rem;
}
.gg-cathub-card {
    padding: .85rem 1rem;
    border-radius: .4rem;
    background: rgba(127, 127, 127, .03);
    border: 1px solid rgba(127, 127, 127, .2);
    transition: border-color .15s ease, transform .15s ease;
}
.gg-cathub-card:hover {
    border-color: rgba(127, 127, 127, .5);
    transform: translateY(-1px);
}
.gg-cathub-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .25rem;
    line-height: 1.3;
}
.gg-cathub-card__title a { color: inherit; text-decoration: none; }
.gg-cathub-card__title a:hover { text-decoration: underline; }
.gg-cathub-card__count {
    margin: 0 0 .55rem;
    font-size: .8125rem;
    opacity: .75;
}
.gg-cathub-card__count em { font-style: italic; opacity: .85; }
.gg-cathub-card__platforms {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

/* Platform pills used in both featured + grid cards */
.gg-cathub-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem .5rem .15rem .55rem;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid;
    color: inherit;
    text-decoration: none;
    line-height: 1.5;
    transition: background-color .15s ease, color .15s ease;
}
.gg-cathub-pill strong { font-weight: 700; opacity: .9; }
.gg-cathub-pill--wa { color: #1ea957; border-color: rgba(37, 211, 102, .35); background: rgba(37, 211, 102, .08); }
.gg-cathub-pill--tg { color: #1881c2; border-color: rgba(28, 161, 241, .35); background: rgba(28, 161, 241, .08); }
.gg-cathub-pill--dc { color: #4954d8; border-color: rgba(88, 101, 242, .35); background: rgba(88, 101, 242, .08); }
.gg-cathub-pill--wa:hover { background: rgba(37, 211, 102, .18); color: #1ea957; text-decoration: none; }
.gg-cathub-pill--tg:hover { background: rgba(28, 161, 241, .18); color: #1881c2; text-decoration: none; }
.gg-cathub-pill--dc:hover { background: rgba(88, 101, 242, .18); color: #4954d8; text-decoration: none; }
.gg-cathub-pill--empty { opacity: .35; cursor: default; }
.gg-cathub-pill--empty:hover { background: inherit; color: inherit; }

/* CTA strip at the bottom */
.gg-cathub-cta {
    margin: 2.5rem 0 3rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border-radius: .5rem;
    background: rgba(127, 127, 127, .04);
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-cathub-cta__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}
.gg-cathub-cta__lead {
    max-width: 32rem;
    margin: 0 auto 1rem;
    font-size: .95rem;
    opacity: .85;
}
.gg-cathub-cta__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

/* Visually hidden helper (sr-only equivalent if not already present). */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 600px) {
    .gg-cathub-hero { padding: 1.4rem 1rem 1.1rem; }
    .gg-cathub-section-title { font-size: 1.1rem; }
    .gg-cathub-pill { font-size: .68rem; padding: .12rem .45rem; }
}

/* /tags/{slug} indexable tag pages — light header copy above the listing. */
.gg-tag-summary {
    font-size: .95rem;
    margin: .5rem 0 1.25rem;
    opacity: .85;
}

/* Centralized /search page — filter sidebar + results layout. */
.gg-search-row { margin-top: 1rem; }
.gg-search-filters {
    position: sticky;
    top: 5rem; /* below the fixed nav */
    align-self: flex-start;
    padding-bottom: 1rem;
}
@media (max-width: 767.98px) {
    .gg-search-filters { position: static; }
}
.gg-search-form {
    padding: 1rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .35rem;
    background: rgba(127, 127, 127, .03);
}
.gg-search-form__label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .65;
    margin: 0 0 .35rem;
}
.gg-search-form__clear {
    display: inline-block;
    margin-top: .75rem;
    font-size: .8125rem;
    text-decoration: underline;
    color: inherit;
    opacity: .65;
}
.gg-search-form__clear:hover { opacity: 1; color: inherit; }
.gg-search-summary {
    font-size: .9rem;
    margin: 0 0 1rem;
    opacity: .8;
}

/* Rich empty state on /{platform}/{category} when there are 0 public groups.
   Replaces the previous "giant void with one CTA" with an informative layout
   that surfaces alternatives so the page is useful even before it has groups. */
.gg-empty-rich {
    margin: 1.5rem 0 3rem;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .5rem;
    background: rgba(127, 127, 127, .03);
}
.gg-empty-rich__head {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .15);
}
.gg-empty-rich__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    line-height: 1.3;
}
.gg-empty-rich__lead {
    margin: 0 auto 1rem;
    max-width: 38rem;
    opacity: .8;
    font-size: .95rem;
    line-height: 1.55;
}
.gg-empty-rich__cta {
    margin-top: .25rem;
}
.gg-empty-rich__section {
    margin-top: 1.5rem;
}
.gg-empty-rich__subhead {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .65;
    margin: 0 0 .85rem;
}

/* Alternate-platform cards (same category on WhatsApp/Telegram/Discord) */
.gg-empty-rich__alts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}
.gg-empty-rich__alt-card {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: .35rem;
    background: var(--gg-bg, transparent);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}
.gg-empty-rich__alt-card:hover,
.gg-empty-rich__alt-card:focus {
    border-color: rgba(127, 127, 127, .55);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}
.gg-empty-rich__alt-platform {
    font-weight: 600;
    font-size: 1rem;
}
.gg-empty-rich__alt-count {
    font-size: .8125rem;
    opacity: .7;
}

/* Popular-category cards */
.gg-empty-rich__cats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .65rem;
}
.gg-empty-rich__cat-card {
    display: flex;
    flex-direction: column;
    padding: .65rem .85rem;
    border: 1px solid rgba(127, 127, 127, .2);
    border-radius: .35rem;
    background: var(--gg-bg, transparent);
    color: inherit;
    text-decoration: none;
    font-size: .9rem;
    transition: border-color .15s ease;
}
.gg-empty-rich__cat-card:hover,
.gg-empty-rich__cat-card:focus {
    border-color: rgba(127, 127, 127, .5);
    color: inherit;
    text-decoration: none;
}
.gg-empty-rich__cat-name { font-weight: 600; }
.gg-empty-rich__cat-count { font-size: .75rem; opacity: .65; margin-top: .1rem; }
.gg-empty-rich__more {
    display: inline-block;
    margin-top: .85rem;
    font-size: .85rem;
    color: inherit;
    opacity: .75;
    text-decoration: underline;
}
.gg-empty-rich__more:hover { opacity: 1; color: inherit; }

/* Admin-curated category intro inside the empty state */
.gg-empty-rich__intro {
    font-size: .95rem;
    line-height: 1.6;
    opacity: .9;
}
.gg-empty-rich__intro p { margin: 0 0 .75rem; }
.gg-empty-rich__intro p:last-child { margin-bottom: 0; }
.gg-empty-rich__intro a { color: inherit; text-decoration: underline; }

/* Tag chips — links to /tags/{slug} */
.gg-empty-rich__tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.gg-empty-rich__tag-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem .3rem .85rem;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    font-size: .85rem;
    background: var(--gg-bg, transparent);
    transition: border-color .15s ease, transform .15s ease;
}
.gg-empty-rich__tag-chip:hover,
.gg-empty-rich__tag-chip:focus {
    border-color: rgba(127, 127, 127, .55);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}
.gg-empty-rich__tag-chip small {
    display: inline-block;
    padding: .05rem .35rem;
    font-size: .7rem;
    border-radius: .25rem;
    background: rgba(127, 127, 127, .15);
    opacity: .85;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .gg-empty-rich { padding: 1.25rem 1rem; }
    .gg-empty-rich__title { font-size: 1.2rem; }
}

/* /private browse banner — gives a heads-up that the page is hidden from search. */
.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);
}

/* Admin-curated category intro shown above the listing on /{platform}/{category}.
   Page-1 only; gives each category page unique body copy for Google. */
.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; }

/* Crawlable pagination on browse pages — used alongside JS infinite scroll
   so deeper pages are reachable from real <a> links for crawlers and no-JS users. */
.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;
}

/* ---------- 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); }

/* ================================================================
   /about + /contact info pages — shared "magazine info" components.
   Hero strip, sectioned cards, numbered steps, FAQ details, CTA.
   Visually consistent with the /categories hub but generic enough
   to be reused on any future static-ish info page.
   ================================================================ */

.gg-page-hero {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1.75rem;
    padding: 2.5rem 1.5rem 2rem;
    border-radius: .65rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(99, 102, 241, .08));
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-page-hero::before,
.gg-page-hero::after {
    content: '';
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    filter: blur(64px);
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}
.gg-page-hero::before {
    top: -8rem;
    left: -6rem;
    background: rgba(34, 197, 94, .45);
}
.gg-page-hero::after {
    bottom: -8rem;
    right: -6rem;
    background: rgba(99, 102, 241, .35);
}
.gg-page-hero > * { position: relative; z-index: 1; }
[data-theme="dark"] .gg-page-hero {
    background: linear-gradient(135deg, rgba(34, 197, 94, .14), rgba(99, 102, 241, .14));
}
[data-theme="dark"] .gg-page-hero::before { opacity: .25; }
[data-theme="dark"] .gg-page-hero::after { opacity: .2; }
.gg-page-hero__eyebrow {
    display: inline-block;
    margin-bottom: .85rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, .14);
    color: var(--gg-success, #22c55e);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.gg-page-hero__title {
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.18;
    margin: 0 auto .85rem;
    max-width: 46rem;
    letter-spacing: -.01em;
}
.gg-page-hero__accent {
    color: var(--gg-success, #22c55e);
    white-space: nowrap;
}
.gg-page-hero__accent--wa { color: #25d366; }
.gg-page-hero__accent--tg { color: #1ca1f1; }
.gg-page-hero__accent--dc { color: #5865f2; }
.gg-page-hero__lead {
    max-width: 44rem;
    margin: 0 auto 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: .85;
}
.gg-page-hero__stats {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .75rem;
    font-size: .85rem;
    opacity: .9;
}
.gg-page-hero__stats li {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(127, 127, 127, .07);
    border: 1px solid rgba(127, 127, 127, .15);
}
.gg-page-hero__stats li span {
    font-weight: 700;
    font-size: 1.05rem;
}
.gg-page-hero__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

/* Per-platform mini-tally below the actions */
.gg-page-hero__platforms {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
}
.gg-platform-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .82rem;
    border: 1px solid rgba(127, 127, 127, .2);
    background: var(--gg-surface, rgba(255, 255, 255, .55));
}
.gg-platform-chip svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.gg-platform-chip strong { font-weight: 700; }
.gg-platform-chip--wa { color: #128c7e; border-color: rgba(37, 211, 102, .35); }
.gg-platform-chip--wa svg { fill: #25d366; }
.gg-platform-chip--tg { color: #1881c2; border-color: rgba(28, 161, 241, .35); }
.gg-platform-chip--tg svg { fill: #1ca1f1; }
.gg-platform-chip--dc { color: #4954d8; border-color: rgba(88, 101, 242, .35); }
.gg-platform-chip--dc svg { fill: #5865f2; }
[data-theme="dark"] .gg-platform-chip { background: rgba(255, 255, 255, .04); }
[data-theme="dark"] .gg-platform-chip--wa { color: #4ee495; }
[data-theme="dark"] .gg-platform-chip--tg { color: #5ec3ff; }
[data-theme="dark"] .gg-platform-chip--dc { color: #8b95ff; }

/* "Jump to form" anchor on the contact hero */
.gg-page-hero__jump {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1.25rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gg-success, #22c55e);
    text-decoration: none;
}
.gg-page-hero__jump:hover { text-decoration: underline; }
.gg-page-hero__jump svg {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}
.gg-page-hero__jump:hover svg { transform: translateY(2px); }

/* Section blocks (story / values / steps / faq) */
.gg-info-section {
    margin: 2rem 0;
}
.gg-info-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(127, 127, 127, .18);
}

/* Long-form prose */
.gg-info-prose {
    max-width: 46rem;
    line-height: 1.65;
    font-size: 1rem;
}
.gg-info-prose p {
    margin: 0 0 1rem;
    opacity: .9;
}
.gg-info-prose__hint {
    max-width: 46rem;
    margin: 0 0 1.25rem;
    font-size: .92rem;
    line-height: 1.55;
    opacity: .75;
}

/* Card grid (values, contact reasons) */
.gg-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: .85rem;
}
.gg-info-card {
    position: relative;
    padding: 1.25rem 1.15rem 1.1rem;
    border: 1px solid rgba(127, 127, 127, .18);
    border-radius: .55rem;
    background: var(--gg-surface, rgba(255, 255, 255, .5));
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.gg-info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, .35);
    box-shadow: 0 6px 20px rgba(34, 197, 94, .08);
}
[data-theme="dark"] .gg-info-card { background: rgba(255, 255, 255, .03); }
.gg-info-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, .14), rgba(34, 197, 94, .05));
    color: var(--gg-success, #22c55e);
    margin-bottom: .85rem;
}
.gg-info-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
.gg-info-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 .4rem;
    line-height: 1.3;
}
.gg-info-card p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    opacity: .82;
}
.gg-info-card a { color: var(--gg-success, #22c55e); font-weight: 600; }

/* Numbered steps — connector line between circles for visual flow */
.gg-info-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0;
    position: relative;
}
.gg-info-steps > li {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.15rem 1.1rem 1rem;
    border: 1px solid rgba(127, 127, 127, .18);
    border-radius: .55rem;
    background: var(--gg-surface, rgba(255, 255, 255, .5));
    margin-bottom: .65rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.gg-info-steps > li:hover {
    border-color: rgba(34, 197, 94, .35);
    box-shadow: 0 4px 14px rgba(34, 197, 94, .06);
}
[data-theme="dark"] .gg-info-steps > li { background: rgba(255, 255, 255, .03); }
.gg-info-steps > li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: calc(1rem + 1.15rem);
    top: 100%;
    width: 2px;
    height: .65rem;
    background: linear-gradient(to bottom, rgba(34, 197, 94, .55), rgba(34, 197, 94, 0));
    z-index: 1;
}
.gg-info-steps__num {
    flex: 0 0 2.3rem;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(34, 197, 94, .25);
}
.gg-info-steps__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: .15rem 0 .3rem;
    line-height: 1.3;
}
.gg-info-steps > li > div { flex: 1; min-width: 0; }
.gg-info-steps > li > div > p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    opacity: .82;
}

/* FAQ accordion */
.gg-faq {
    display: grid;
    gap: .55rem;
    max-width: 50rem;
}
.gg-faq__item {
    border: 1px solid rgba(127, 127, 127, .18);
    border-radius: .5rem;
    background: var(--gg-surface, rgba(255, 255, 255, .5));
    padding: 0 1.1rem;
    transition: border-color .15s ease;
}
.gg-faq__item:hover { border-color: rgba(34, 197, 94, .25); }
.gg-faq__item[open] {
    border-color: rgba(34, 197, 94, .4);
    background: linear-gradient(180deg, rgba(34, 197, 94, .04), transparent);
}
[data-theme="dark"] .gg-faq__item { background: rgba(255, 255, 255, .03); }
.gg-faq__item > summary {
    cursor: pointer;
    list-style: none;
    padding: .9rem 0;
    font-weight: 600;
    font-size: .98rem;
    position: relative;
    padding-right: 2rem;
    color: var(--gg-text);
}
.gg-faq__item > summary:hover { color: var(--gg-success, #22c55e); }
.gg-faq__item > summary::-webkit-details-marker { display: none; }
.gg-faq__item > summary::after {
    content: '';
    position: absolute;
    right: .15rem;
    top: 50%;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: -.7rem;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, .12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: .85rem;
    transition: transform .2s ease;
}
.gg-faq__item[open] > summary::after { transform: rotate(180deg); }
.gg-faq__item > p {
    margin: 0;
    padding: 0 0 1.1rem;
    font-size: .94rem;
    line-height: 1.65;
    opacity: .85;
}
.gg-faq__item a { color: var(--gg-success, #22c55e); font-weight: 600; }

/* Bottom CTA strip */
.gg-info-cta {
    position: relative;
    overflow: hidden;
    margin: 2.5rem 0 3rem;
    padding: 2.25rem 1.25rem;
    text-align: center;
    border-radius: .65rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(99, 102, 241, .06));
    border: 1px solid rgba(34, 197, 94, .25);
}
.gg-info-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, .25);
    filter: blur(56px);
    pointer-events: none;
}
.gg-info-cta > * { position: relative; z-index: 1; }
.gg-info-cta__title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}
.gg-info-cta__lead {
    max-width: 36rem;
    margin: 0 auto 1.1rem;
    font-size: .95rem;
    line-height: 1.55;
    opacity: .85;
}
.gg-info-cta__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: center;
}

/* Contact form (gg-styled, replaces the previous Tailwind form) */
.gg-contact-form {
    max-width: 44rem;
    padding: 1.5rem;
    border: 1px solid rgba(127, 127, 127, .18);
    border-radius: .65rem;
    background: var(--gg-surface, rgba(255, 255, 255, .5));
}
[data-theme="dark"] .gg-contact-form { background: rgba(255, 255, 255, .03); }
.gg-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.gg-contact-form__field { display: block; margin-bottom: 1rem; }
.gg-contact-form__field label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--gg-text);
    opacity: .9;
}
.gg-contact-form__input,
.gg-contact-form__textarea {
    width: 100%;
    padding: .7rem .95rem;
    border: 1.5px solid rgba(127, 127, 127, .25);
    border-radius: .5rem;
    background: var(--gg-bg, rgba(127, 127, 127, .03));
    color: inherit;
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.gg-contact-form__textarea { resize: vertical; min-height: 10rem; line-height: 1.55; }
.gg-contact-form__input:hover,
.gg-contact-form__textarea:hover {
    border-color: rgba(127, 127, 127, .4);
}
.gg-contact-form__input:focus,
.gg-contact-form__textarea:focus {
    outline: none;
    border-color: rgba(34, 197, 94, .65);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
    background: var(--gg-bg, #fff);
}
[data-theme="dark"] .gg-contact-form__input:focus,
[data-theme="dark"] .gg-contact-form__textarea:focus {
    background: rgba(0, 0, 0, .25);
}
.gg-contact-form__input.is-invalid,
.gg-contact-form__textarea.is-invalid {
    border-color: rgba(239, 68, 68, .65);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}
.gg-contact-form__error {
    display: block;
    margin-top: .4rem;
    font-size: .82rem;
    color: #ef4444;
}
.gg-contact-form__success {
    display: block;
    padding: .85rem 1.1rem;
    margin-bottom: 1.1rem;
    border-radius: .5rem;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: var(--gg-text);
    font-size: .92rem;
}
.gg-contact-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .5rem;
}
.gg-contact-form__submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.gg-contact-form__submit svg {
    width: 16px;
    height: 16px;
}
.gg-contact-form__note {
    font-size: .82rem;
    opacity: .65;
    line-height: 1.4;
}
.gg-contact-form__note a { color: inherit; text-decoration: underline; }

@media (max-width: 600px) {
    .gg-page-hero { padding: 1.6rem 1rem 1.25rem; }
    .gg-info-section { margin: 1.5rem 0; }
    .gg-info-section__title { font-size: 1.15rem; }
    .gg-info-cards { grid-template-columns: 1fr; }
    .gg-info-steps > li { padding: .85rem .9rem; gap: .7rem; }
    .gg-contact-form__row { grid-template-columns: 1fr; }
}

/* ── Announcement banner ───────────────────────────────────────────────── */
:root {
    --ann-info-bg: #eff6ff;    --ann-info-text: #1e40af;
    --ann-success-bg: #f0fdf4; --ann-success-text: #166534;
    --ann-warning-bg: #fffbeb; --ann-warning-text: #92400e;
    --ann-danger-bg: #fef2f2;  --ann-danger-text: #991b1b;
}
[data-theme="dark"] {
    --ann-info-bg: #1e3a5f;    --ann-info-text: #bfdbfe;
    --ann-success-bg: #14532d; --ann-success-text: #bbf7d0;
    --ann-warning-bg: #451a03; --ann-warning-text: #fde68a;
    --ann-danger-bg: #450a0a;  --ann-danger-text: #fecaca;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ann-info-bg: #1e3a5f;    --ann-info-text: #bfdbfe;
        --ann-success-bg: #14532d; --ann-success-text: #bbf7d0;
        --ann-warning-bg: #451a03; --ann-warning-text: #fde68a;
        --ann-danger-bg: #450a0a;  --ann-danger-text: #fecaca;
    }
}
.gg-announcement {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1rem;
    font-size: .875rem;
    line-height: 1.4;
    margin-top: var(--gg-navbar-h);
    border-bottom: 1px solid rgba(127,127,127,.15);
    position: relative;
    z-index: 1029;
}
.gg-announcement--info    { background: var(--ann-info-bg);    color: var(--ann-info-text); }
.gg-announcement--success { background: var(--ann-success-bg); color: var(--ann-success-text); }
.gg-announcement--warning { background: var(--ann-warning-bg); color: var(--ann-warning-text); }
.gg-announcement--danger  { background: var(--ann-danger-bg);  color: var(--ann-danger-text); }
.gg-announcement__msg  { flex: 1; text-align: center; }
.gg-announcement__link {
    white-space: nowrap;
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
    margin-left: .4rem;
}
.gg-announcement__link:hover { opacity: .8; color: inherit; }
.gg-announcement__dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: .55;
    padding: .2rem .35rem;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: .25rem;
}
.gg-announcement__dismiss:hover { opacity: 1; background: rgba(127,127,127,.15); }

/* ── Tom Select (tag picker on the group submit page) ──────────────────── */
.ts-wrapper.multi .ts-control,
.ts-wrapper .ts-control {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border-strong);
    border-radius: var(--gg-radius-sm);
    color: var(--gg-text);
    padding: .45rem .6rem;
    min-height: 42px;
    box-shadow: none;
    cursor: text;
}
.ts-wrapper.multi .ts-control:focus-within,
.ts-wrapper .ts-control:focus-within { border-color: var(--gg-primary); box-shadow: 0 0 0 2px rgba(255,85,31,.2); }
.ts-wrapper.multi .ts-control .item {
    background: var(--gg-primary);
    color: #fff;
    border-radius: var(--gg-radius-pill);
    border: none;
    padding: .15rem .55rem;
    font-size: .82rem;
    font-weight: 600;
}
.ts-wrapper.multi .ts-control .item .remove {
    color: rgba(255,255,255,.8);
    border-left: 1px solid rgba(255,255,255,.35);
    margin-left: .3rem;
    padding-left: .3rem;
}
.ts-wrapper.multi .ts-control .item .remove:hover { color: #fff; }
.ts-control input { color: var(--gg-text) !important; }
.ts-control input::placeholder { color: var(--gg-text-subtle); }
.ts-dropdown {
    background: var(--gg-surface);
    border: 1px solid var(--gg-border);
    border-top: none;
    border-radius: 0 0 var(--gg-radius-sm) var(--gg-radius-sm);
    color: var(--gg-text);
    box-shadow: var(--gg-shadow);
}
.ts-dropdown .option { padding: .45rem .75rem; cursor: pointer; }
.ts-dropdown .option:hover,
.ts-dropdown .option.active { background: var(--gg-surface-alt); color: var(--gg-text); }
.ts-dropdown .no-results { padding: .5rem .75rem; color: var(--gg-text-muted); font-size: .9rem; }
