/**
 * Giveaway Admin — Arabic RTL / soft dashboard (Bootstrap 5)
 */

:root {
    --ga-bg: #f4f6f8;
    --ga-bg-accent: linear-gradient(180deg, #f8fafb 0%, #f4f6f8 100%);
    --ga-surface: #ffffff;
    --ga-teal: #0d5c63;
    --ga-teal-dark: #084149;
    --ga-teal-muted: #1a7a85;
    --ga-primary: #0d9488;
    --ga-primary-rgb: 13, 148, 136;
    --ga-primary-dark: #0f766e;
    --ga-accent: #14b8a6;
    --ga-success: #10b981;
    --ga-warning: #f59e0b;
    --ga-danger: #ef4444;
    --ga-info: #0ea5e9;
    --ga-text: #0f172a;
    --ga-muted: #64748b;
    --ga-border: #e2e8f0;
    --ga-radius: 1.125rem;
    --ga-radius-sm: 0.75rem;
    --ga-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --ga-shadow-hover: 0 8px 30px rgba(15, 23, 42, 0.09);
    --sidebar-width: 17.5rem;
    --sidebar-collapsed-width: 4.75rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", system-ui, sans-serif;
    background: var(--ga-bg);
    background-image: var(--ga-bg-accent);
    background-attachment: fixed;
    color: var(--ga-text);
    min-height: 100vh;
}

/* ——— Admin button system: consistent size/structure ——— */
body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1.2;
    border-radius: var(--ga-radius-sm);
    font-weight: 600;
    min-height: 2.5rem;
    padding: 0.55rem 1.15rem;
}

body .btn.btn-sm {
    min-height: 2.125rem;
    padding: 0.32rem 0.85rem;
    font-size: 0.875rem;
}

body .btn.btn-lg {
    min-height: 3rem;
    padding: 0.75rem 1.35rem;
    font-size: 1rem;
}

body .btn i {
    line-height: 1;
    display: inline-block;
}

body .btn.rounded-pill {
    border-radius: 999px !important;
}

/* Icon-only buttons (trash, compact actions) */
body .btn.py-1.px-2,
body .btn.ga-btn-icon-trash,
body .btn.btn-campaign-delete-trash {
    min-width: 2.125rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Action button groups (tables): unify look/size */
.ga-table td .d-inline-flex .btn.btn-sm,
.ga-table td .ga-campaign-list-actions .btn.btn-sm,
.ga-table td .ga-campaign-list-actions .btn {
    min-height: 2.125rem;
    padding: 0.32rem 0.9rem;
    border-radius: 999px !important;
    font-weight: 600;
}

.ga-table td .ga-campaign-list-actions .btn.btn-outline-danger,
.ga-table td .ga-campaign-list-actions .btn.btn-outline-warning,
.ga-table td .ga-campaign-list-actions .btn.btn-outline-primary,
.ga-table td .ga-campaign-list-actions .btn.btn-primary,
.ga-table td .ga-campaign-list-actions .btn.ga-btn-ghost {
    box-shadow: none !important;
}

/* Icon-only delete in action groups */
.ga-table td .ga-campaign-list-actions .btn.btn-outline-danger i,
.ga-table td .d-inline-flex .btn.btn-outline-danger i {
    margin: 0 !important;
}

/* ——— Dashboard reference ——— */
.ga-page-title--dash {
    font-size: 1.5rem;
}

/* Wizard: clickable step badges */
button.ga-wiz-step-nav {
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
}

button.ga-wiz-step-nav:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

button.ga-wiz-step-nav:focus-visible {
    outline: 3px solid rgba(var(--ga-primary-rgb), 0.25);
    outline-offset: 2px;
}

.ga-section-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ga-text);
}

.ga-dash-layout {
    max-width: 100%;
}

.ga-dash-layout__title {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--ga-text);
    margin: 0 0 1.25rem;
}

.ga-dash-layout__section-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ga-text);
    margin: 0 0 1rem;
}

.ga-dash-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--ga-surface);
    border-radius: var(--ga-radius);
    padding: 1.25rem 1.35rem;
    border: 1px solid #e8ecf1;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.ga-dash-stat--ref {
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.045);
    padding: 1.1rem 1.15rem;
}

/* Dashboard stats: icon on visual left (RTL), text on right */
.ga-dash-layout .ga-dash-stat__meta {
    order: 1;
    flex: 1;
    min-width: 0;
    text-align: start;
}

.ga-dash-layout .ga-dash-stat__icon {
    order: 2;
}

.ga-dash-stat__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ga-dash-stat__icon--blue {
    background: #e0f2fe;
    color: #0369a1;
}

.ga-dash-stat__icon--mint {
    background: #d1fae5;
    color: #047857;
}

.ga-dash-stat__icon--peach {
    background: #ffedd5;
    color: #c2410c;
}

.ga-dash-stat__icon--green {
    background: #ccfbf1;
    color: #0f766e;
}

.ga-dash-stat__icon--teal {
    background: #ccfbf1;
    color: #0d9488;
}

.ga-dash-stat__icon--gold {
    background: #fef3c7;
    color: #b45309;
}

.ga-dash-stat__icon--trophy {
    background: #d1fae5;
    color: #047857;
}

.ga-dash-stat__icon--danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* Campaign view — stat row RTL (icon on visual start) */
.ga-campaign-view-stats .ga-dash-stat__meta {
    order: 1;
    flex: 1;
    min-width: 0;
    text-align: start;
}

.ga-campaign-view-stats .ga-dash-stat__icon {
    order: 2;
}

.ga-camp-view-tabs .nav-link {
    font-weight: 700;
    border-radius: 0.65rem;
    padding: 0.55rem 1.15rem;
    color: var(--ga-muted);
}

.ga-camp-view-tabs .nav-link.active {
    background: var(--ga-primary);
    color: #fff;
}

.ga-camp-view-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fafbfc;
    border: 1px solid var(--ga-border);
    border-bottom: none;
    border-radius: var(--ga-radius-sm) var(--ga-radius-sm) 0 0;
}

.ga-camp-view-search {
    min-width: 14rem;
    max-width: 22rem;
    flex: 1;
}

.table.ga-camp-view-participants tbody tr.duplicate-participant td {
    background: linear-gradient(
        270deg,
        rgba(254, 202, 202, 0.45) 0%,
        rgba(254, 226, 226, 0.88) 100%
    ) !important;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.22);
}

/* Dashboard ref tiles — squircle icon holder + neutral tile (reference) */
.ga-dash-stat--ref .ga-dash-stat__icon {
    width: 2.875rem;
    height: 2.875rem;
    border-radius: 0.75rem;
    background: #f0f4f7 !important;
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.45);
    font-size: 1.05rem;
}

.ga-dash-stat--ref .ga-dash-stat__icon--teal {
    color: #0d9488;
}

.ga-dash-stat--ref .ga-dash-stat__icon--gold {
    color: #ca8a04;
}

.ga-dash-stat--ref .ga-dash-stat__icon--trophy {
    color: #059669;
}

.ga-dash-stat--ref .ga-dash-stat__icon.ga-dash-stat__icon--danger {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.ga-dash-stat--ref .ga-dash-stat__icon i {
    display: block;
    line-height: 1;
}

.ga-dash-stat__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ga-muted);
    margin-bottom: 0.2rem;
}

.ga-dash-stat__value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ga-text);
}

.ga-dash-stat__sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ga-muted);
    margin-top: 0.2rem;
    line-height: 1.25;
}

.ga-campaign-card {
    display: block;
    position: relative;
    background: var(--ga-surface);
    border-radius: var(--ga-radius);
    padding: 1.5rem 1.35rem 1.25rem;
    border: 1px solid #e8ecf1;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 11rem;
}

.ga-campaign-card:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.ga-campaign-card--stacked {
    min-height: 0;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.045);
    padding: 1.25rem 1.25rem 1.1rem;
}

.ga-campaign-card--stacked:hover {
    transform: translateY(-1px);
}

.ga-dash-campaign-stack {
    margin-bottom: 0;
}

.ga-dash-empty-card {
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.045);
}

.ga-campaign-card__title {
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    padding-inline-end: 5rem;
    color: var(--ga-text);
}

.ga-campaign-card__desc {
    font-size: 0.9rem;
    color: var(--ga-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.ga-campaign-card__foot {
    font-size: 0.88rem;
    color: var(--ga-muted);
    font-weight: 600;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.ga-dash-badge {
    position: absolute;
    top: 1.1rem;
    inset-inline-end: 1.1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.ga-dash-badge--active {
    background: #e0f2fe;
    color: #0e7490;
}

.ga-dash-badge--completed {
    background: #d1fae5;
    color: #047857;
}

.ga-dash-badge--draft {
    background: #f1f5f9;
    color: #64748b;
}

/* Campaigns table — pill badges (reference: نشطة / مكتملة) */
.ga-table-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.ga-table-badge--active {
    background: #e0f2fe;
    color: #0e7490;
}

.ga-table-badge--completed {
    background: #d1fae5;
    color: #047857;
}

.ga-table-badge--draft {
    background: #f1f5f9;
    color: #64748b;
}

/* Campaigns list page — header row like prototype */
.ga-page-header-ref {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.35rem;
}

.ga-page-title--plain {
    font-size: 1.85rem;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.btn.ga-btn-ref-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #006666;
    border: none;
    color: #fff !important;
    font-weight: 800;
    font-size: 0.8125rem;
    line-height: 1.35;
    padding: 0.42rem 1rem;
    border-radius: 0.7rem;
    box-shadow: 0 2px 10px rgba(0, 51, 51, 0.2);
}

.btn.ga-btn-ref-create .fa-plus {
    font-size: 0.85em;
    font-weight: 700;
    opacity: 1;
}

.btn.ga-btn-ref-create:hover {
    color: #fff !important;
    background: #005858;
    filter: none;
}

.btn.ga-btn-ref-create.btn-sm {
    font-size: 0.75rem;
    padding: 0.34rem 0.8rem;
    border-radius: 0.55rem;
    gap: 0.3rem;
}

.btn.ga-btn-ref-create.btn-sm .fa-plus {
    font-size: 0.9em;
}

/* Campaigns index — table card (reference layout) */
.ga-card.ga-card--campaigns-list {
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
}

.ga-card--campaigns-list .table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

.table.ga-table--campaigns thead th {
    text-align: center;
    vertical-align: middle;
}

.table.ga-table--campaigns tbody td:first-child {
    font-weight: 700;
}

/* Tables: action buttons should match height/spacing */
.ga-table td .btn.btn-sm {
    border-radius: 0.65rem !important;
}

.ga-table td .btn.btn-sm.py-1.px-2 {
    min-width: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ga-card--campaigns-list .ga-campaign-view-btn {
    position: relative;
    z-index: 1;
}

.btn.btn-campaign-delete-trash {
    min-width: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
    cursor: pointer;
    touch-action: manipulation;
    pointer-events: auto;
}

/* DataTables wrapper can create stacking contexts; keep last column interactive */
.ga-card--campaigns-list .dataTables_wrapper tbody td:last-child {
    position: relative;
    z-index: 5;
    isolation: isolate;
}

.ga-card--campaigns-list .dataTables_wrapper tbody td:last-child .btn {
    position: relative;
    z-index: 1;
}

.ga-card--campaigns-list .dataTables_wrapper tbody td:last-child .btn-campaign-delete-trash {
    z-index: 20;
}

.btn.ga-btn-primary--teal {
    background: linear-gradient(135deg, var(--ga-teal-muted) 0%, var(--ga-primary) 100%);
    box-shadow: 0 4px 16px rgba(13, 92, 99, 0.25);
}

.btn.ga-btn-primary--teal:hover {
    filter: brightness(1.06);
}

/* ——— Create: Excel dropzone ——— */
.ga-dropzone {
    position: relative;
    min-height: 11rem;
    border: 2px dashed rgba(13, 148, 136, 0.35);
    border-radius: var(--ga-radius);
    background: linear-gradient(180deg, #f8fffe 0%, #f0fdfa 100%);
    transition: border-color 0.2s, background 0.2s;
}

.ga-dropzone.is-dragover {
    border-color: var(--ga-primary);
    background: #ecfdf5;
}

.ga-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.ga-dropzone__visual {
    position: relative;
    z-index: 1;
    pointer-events: none;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.ga-dropzone__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.12);
    color: var(--ga-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* ——— Layout shell ——— */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--sidebar-width);
    z-index: 1040;
    background: var(--ga-surface);
    border-inline-end: 1px solid var(--ga-border);
    box-shadow: var(--ga-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, width 0.28s ease;
}

.app-sidebar__brand {
    padding: 1.35rem 1.25rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ga-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid var(--ga-border);
}

.app-sidebar__brand:hover {
    color: var(--ga-primary);
}

.app-sidebar__brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--ga-radius-sm);
    background: linear-gradient(135deg, rgba(var(--ga-primary-rgb), 0.15), rgba(var(--ga-primary-rgb), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ga-primary);
    font-size: 1.1rem;
}

.app-sidebar__nav {
    padding: 1rem 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.app-sidebar__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ga-muted);
    padding: 0.5rem 1rem 0.35rem;
    margin-top: 0.5rem;
}

.app-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: var(--ga-radius-sm);
    color: var(--ga-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 0.2rem;
}

.app-sidebar__link:hover {
    background: rgba(var(--ga-primary-rgb), 0.08);
    color: var(--ga-primary-dark);
}

.app-sidebar__link.is-active {
    background: rgba(var(--ga-primary-rgb), 0.14);
    color: var(--ga-primary-dark);
    box-shadow: inset 3px 0 0 var(--ga-primary);
}

.app-sidebar__link i {
    width: 1.25rem;
    text-align: center;
    opacity: 0.9;
}

/* Dark sidebar (prototype: slate / deep teal rail) */
.app-sidebar.app-sidebar--teal {
    background: linear-gradient(195deg, #0f172a 0%, #0c1929 45%, #0a1628 100%);
    border-inline-end: none;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.35);
}

.app-sidebar.app-sidebar--teal .app-sidebar__brand,
.app-sidebar.app-sidebar--teal .app-sidebar__brand--teal {
    color: #f8fafc !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.app-sidebar.app-sidebar--teal .app-sidebar__brand:hover,
.app-sidebar.app-sidebar--teal .app-sidebar__brand--teal:hover {
    color: #e2e8f0 !important;
}

.app-sidebar.app-sidebar--teal .app-sidebar__brand-icon,
.app-sidebar.app-sidebar--teal .app-sidebar__brand-icon--teal {
    background: rgba(13, 148, 136, 0.25) !important;
    color: #5eead4 !important;
}

.app-sidebar.app-sidebar--teal .app-sidebar__label {
    color: rgba(248, 250, 252, 0.45);
}

.app-sidebar.app-sidebar--teal .app-sidebar__link {
    color: rgba(248, 250, 252, 0.88);
}

.app-sidebar.app-sidebar--teal .app-sidebar__link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.app-sidebar.app-sidebar--teal .app-sidebar__link.is-active {
    background: rgba(13, 148, 136, 0.35);
    color: #fff;
    box-shadow: inset 4px 0 0 #2dd4bf;
}

[dir="rtl"] .app-sidebar.app-sidebar--teal .app-sidebar__link.is-active {
    box-shadow: inset -4px 0 0 #2dd4bf;
}

.app-sidebar.app-sidebar--teal .app-sidebar__link i {
    color: rgba(255, 255, 255, 0.92);
}

.app-sidebar__footer {
    flex-shrink: 0;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: var(--ga-radius-sm);
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.app-sidebar__logout:hover {
    filter: brightness(1.07);
    color: #fff !important;
    transform: translateY(-1px);
}

#appShell.sidebar-collapsed .app-sidebar__logout-text {
    display: none;
}

#appShell.sidebar-collapsed .app-sidebar__logout {
    padding-inline: 0.45rem;
}

/* Desktop: collapse rail at bottom of sidebar */
.app-sidebar__rail-toggle {
    margin-top: auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.app-sidebar__rail-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

#appShell.sidebar-collapsed .app-sidebar__rail-toggle i {
    transform: scaleX(-1);
}

.app-main {
    flex: 1;
    margin-inline-start: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    transition: margin-inline-start 0.28s ease;
}

/* Mobile: open sidebar (no top bar) */
.app-mobile-menu-fab {
    position: fixed;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 1042;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: var(--ga-radius-sm);
    background: var(--ga-surface);
    color: var(--ga-text);
    box-shadow: var(--ga-shadow-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.app-mobile-menu-fab:hover {
    background: rgba(var(--ga-primary-rgb), 0.08);
    color: var(--ga-primary-dark);
}

@media (min-width: 992px) {
    /*
     * Use #appShell + child combinator + !important so collapsed width/margin always win
     * over any other .app-sidebar / .app-main rules (Bootstrap, order, etc.).
     */
    #appShell.sidebar-collapsed > .app-sidebar {
        width: var(--sidebar-collapsed-width) !important;
        min-width: var(--sidebar-collapsed-width);
        max-width: var(--sidebar-collapsed-width);
    }

    #appShell.sidebar-collapsed > .app-main {
        margin-inline-start: var(--sidebar-collapsed-width) !important;
    }

    #appShell.sidebar-collapsed .app-sidebar__brand-text {
        display: none;
    }

    #appShell.sidebar-collapsed .app-sidebar__brand {
        justify-content: center;
        padding-inline: 0.65rem;
        gap: 0;
    }

    #appShell.sidebar-collapsed .app-sidebar__nav {
        padding-inline: 0.5rem;
    }

    #appShell.sidebar-collapsed .app-sidebar__link {
        justify-content: center;
        padding-inline: 0.5rem;
        gap: 0;
    }

    #appShell.sidebar-collapsed .app-sidebar__link-text {
        display: none;
    }

    #appShell.sidebar-collapsed .app-sidebar__link i {
        margin: 0;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    [dir="rtl"] .app-sidebar {
        transform: translateX(100%);
    }

    .app-shell.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main {
        margin-inline-start: 0;
    }
}

.app-content {
    flex: 1;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

@media (max-width: 991.98px) {
    .app-main > .app-content {
        padding-top: 4rem;
    }
}

.app-footer {
    padding: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ga-muted);
    border-top: 1px solid var(--ga-border);
    background: rgba(255, 255, 255, 0.6);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1035;
}

.app-shell.sidebar-open .sidebar-backdrop {
    display: block;
}

/* ——— Page title ——— */
.ga-page-title {
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
    color: var(--ga-text);
    margin-bottom: 0.35rem;
}

.ga-page-sub {
    color: var(--ga-muted);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
    line-height: 1.55;
}

/* ——— Cards ——— */
.ga-card {
    background: var(--ga-surface);
    border-radius: var(--ga-radius);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--ga-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.ga-card:hover {
    box-shadow: var(--ga-shadow-hover);
}

.ga-card__head {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--ga-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: linear-gradient(180deg, #fafbfe 0%, #fff 100%);
}

.ga-card__title {
    font-weight: 800;
    font-size: 1rem;
    margin: 0;
    color: var(--ga-text);
}

.ga-card__body {
    padding: 1.35rem;
}

.ga-card__body--flush {
    padding: 0;
}

.ga-card__foot {
    padding: 1rem 1.35rem 1.25rem;
    border-radius: 0 0 var(--ga-radius) var(--ga-radius);
}

.ga-card--wizard-create .ga-dropzone--wizard .ga-dropzone__visual {
    padding: 2.25rem 1.5rem;
}

/* ——— Stat cards ——— */
.ga-stat {
    border-radius: var(--ga-radius);
    padding: 1.25rem 1.35rem;
    background: var(--ga-surface);
    border: 1px solid var(--ga-border);
    box-shadow: var(--ga-shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ga-stat::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    opacity: 0.85;
}

.ga-stat--primary::after {
    background: var(--ga-primary);
}

.ga-stat--amber::after {
    background: var(--ga-warning);
}

.ga-stat--emerald::after {
    background: var(--ga-success);
}

.ga-stat--sky::after {
    background: var(--ga-info);
}

.ga-stat__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ga-muted);
    margin-bottom: 0.35rem;
}

.ga-stat__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ga-text);
}

.ga-stat__hint {
    font-size: 0.8rem;
    color: var(--ga-warning);
    margin-top: 0.35rem;
    font-weight: 600;
}

/* ——— Badges ——— */
.ga-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.ga-badge--draft {
    background: #f1f5f9;
    color: #475569;
}

.ga-badge--ready {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.ga-badge--drawn {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.ga-badge--participant-ok {
    background: rgba(13, 148, 136, 0.14);
    color: #0f766e;
}

.ga-badge--participant-dup {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

/* Participants list — toolbar under card head (reference: campaigns table page) */
.ga-card__toolbar {
    padding: 0.85rem 1.35rem;
    border-bottom: 1px solid var(--ga-border);
    background: #fafbfc;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.25rem;
}

.ga-card__toolbar-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ga-muted);
    margin-bottom: 0.35rem;
    display: block;
}

.ga-card__toolbar-stats {
    font-size: 0.875rem;
    color: var(--ga-muted);
    font-weight: 600;
    padding-bottom: 0.15rem;
}

/* ——— Buttons ——— */
.btn.ga-btn-primary {
    background: linear-gradient(135deg, var(--ga-primary) 0%, var(--ga-accent) 100%);
    border: none;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: var(--ga-radius-sm);
    box-shadow: 0 4px 14px rgba(var(--ga-primary-rgb), 0.35);
}

.btn.ga-btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn.ga-btn-ghost {
    background: var(--ga-surface);
    border: 1px solid var(--ga-border);
    color: var(--ga-text);
    font-weight: 600;
    border-radius: var(--ga-radius-sm);
}

.btn.ga-btn-ghost:hover {
    border-color: var(--ga-primary);
    color: var(--ga-primary);
}

.btn.ga-btn-cta {
    font-size: 1.05rem;
    font-weight: 800;
    padding: 0.85rem 2rem;
    border-radius: var(--ga-radius-sm);
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    border: none;
    color: #fff;
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.35);
}

.btn.ga-btn-cta:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.btn.ga-btn-cta:disabled {
    opacity: 0.55;
    transform: none;
}

/* ——— Forms ——— */
.form-control,
.form-select {
    border-radius: var(--ga-radius-sm);
    border-color: var(--ga-border);
    padding: 0.55rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--ga-primary-rgb), 0.45);
    box-shadow: 0 0 0 0.2rem rgba(var(--ga-primary-rgb), 0.15);
}

.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ga-text);
    margin-bottom: 0.4rem;
}

/* ——— Search bar ——— */
.ga-search {
    background: var(--ga-surface);
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius-sm);
    padding: 0.35rem;
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
    box-shadow: var(--ga-shadow);
}

.ga-search .form-control {
    border: none;
    box-shadow: none;
}

.ga-search .form-control:focus {
    box-shadow: none;
}

/* ——— Tables + DataTables ——— */
.table {
    --bs-table-bg: transparent;
}

.table.ga-table thead th {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ga-muted);
    border-bottom-width: 1px;
    border-left: none;
    border-right: none;
    background: #f8fafc;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table.ga-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-color: var(--ga-border);
    border-left: none;
    border-right: none;
}

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter,
div.dataTables_wrapper .dataTables_info,
div.dataTables_wrapper .dataTables_paginate {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

div.dataTables_wrapper .dataTables_filter input {
    border-radius: var(--ga-radius-sm);
    border: 1px solid var(--ga-border);
    padding: 0.35rem 0.65rem;
    margin-inline-start: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--ga-primary) !important;
    border-color: var(--ga-primary) !important;
    color: #fff !important;
    border-radius: var(--ga-radius-sm) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(var(--ga-primary-rgb), 0.1) !important;
    border-color: transparent !important;
    color: var(--ga-primary-dark) !important;
}

/* Duplicate participant rows — strong warning */
table.dataTable tbody tr.duplicate-participant td {
    background: linear-gradient(
        90deg,
        rgba(245, 158, 11, 0.2) 0%,
        rgba(254, 243, 199, 0.55) 100%
    ) !important;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.35);
}

table.dataTable tbody tr.duplicate-participant td:first-child {
    box-shadow: inset 4px 0 0 0 #f59e0b, inset 0 0 0 1px rgba(217, 119, 6, 0.35);
}

[dir="rtl"] table.dataTable tbody tr.duplicate-participant td:first-child {
    box-shadow: inset -4px 0 0 0 #f59e0b, inset 0 0 0 1px rgba(217, 119, 6, 0.35);
}

/* Post-import preview table (not DataTables) — duplicate phone rows */
/* Duplicate phone — highlight the number itself (preview + lists) */
.ga-dup-phone-num {
    display: inline-block;
    padding: 0.2em 0.55em;
    border-radius: 0.4rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
    color: #713f12;
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.4);
}

.table.ga-import-preview-table tbody tr.duplicate-participant td {
    background: linear-gradient(
        270deg,
        rgba(254, 202, 202, 0.45) 0%,
        rgba(254, 226, 226, 0.85) 100%
    ) !important;
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28);
}

/* Import preview — summary stat cards */
.ga-import-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--ga-radius);
    border: 1px solid var(--ga-border);
    background: #fff;
    box-shadow: var(--ga-shadow);
    height: 100%;
}

.ga-import-stat-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ga-import-stat-card__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ga-muted);
    margin-bottom: 0.15rem;
}

.ga-import-stat-card__value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ga-text);
}

.ga-import-stat-card--total .ga-import-stat-card__icon {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.ga-import-stat-card--dup .ga-import-stat-card__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.ga-import-stat-card--ok .ga-import-stat-card__icon {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

/* Full-page import preview — larger table */
.table.ga-import-preview-table--wide tbody td,
.table.ga-import-preview-table--wide thead th {
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
}

.table.ga-import-preview-table--wide thead th {
    font-size: 0.85rem;
}

/* Campaign create wizard — prizes editor */
.ga-wiz-prizes-scroll {
    max-height: min(52vh, 480px);
    min-height: 220px;
    overflow: auto;
}

/* ——— Empty state ——— */
.ga-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ga-muted);
}

.ga-empty__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ga-muted);
}

.ga-empty__title {
    font-weight: 800;
    color: var(--ga-text);
    margin-bottom: 0.35rem;
}

/* ——— Giveaway hero ——— */
.ga-draw-hero {
    border-radius: var(--ga-radius);
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 40%, #5b21b6 100%);
    color: #fff;
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--ga-shadow-hover);
    position: relative;
    overflow: hidden;
}

.ga-draw-hero::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.ga-draw-hero h2 {
    font-weight: 800;
    font-size: 1.5rem;
    position: relative;
}

.ga-draw-hero .ga-stat-inline {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--ga-radius-sm);
    padding: 0.75rem 1rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* ——— Login ——— */
.ga-login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--ga-bg);
    background-image:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(124, 140, 232, 0.2), transparent),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(94, 234, 212, 0.12), transparent),
        var(--ga-bg-accent);
}

.ga-login-card {
    width: 100%;
    max-width: 26rem;
    background: var(--ga-surface);
    border-radius: var(--ga-radius);
    box-shadow: var(--ga-shadow-hover);
    border: 1px solid var(--ga-border);
    padding: 2.25rem 2rem;
}

.ga-login-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--ga-radius-sm);
    background: linear-gradient(135deg, var(--ga-primary), var(--ga-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(var(--ga-primary-rgb), 0.35);
}

/* ——— Quick section (campaign view) ——— */
.ga-quick {
    border-radius: var(--ga-radius-sm);
    border: 1px dashed var(--ga-border);
    padding: 1rem 1.15rem;
    height: 100%;
    background: #fafbfc;
    transition: border-color 0.2s, background 0.2s;
}

.ga-quick:hover {
    border-color: rgba(var(--ga-primary-rgb), 0.35);
    background: rgba(var(--ga-primary-rgb), 0.04);
}

.ga-quick__title {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.ga-quick__text {
    font-size: 0.85rem;
    color: var(--ga-muted);
    margin-bottom: 0.75rem;
}

/* ——— Alerts polish ——— */
.alert {
    border-radius: var(--ga-radius-sm);
    border: none;
    font-weight: 600;
}

/* ——— Modal ——— */
.modal-content {
    border-radius: var(--ga-radius);
    border: 1px solid var(--ga-border);
    box-shadow: var(--ga-shadow-hover);
}

.modal-header {
    border-bottom-color: var(--ga-border);
}

.modal-footer {
    border-top-color: var(--ga-border);
}

/* ——— Export toolbar ——— */
.ga-export-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.btn-ga-pdf {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    font-weight: 700;
    border-radius: var(--ga-radius-sm);
}

.btn-ga-pdf:hover {
    background: #fecaca;
    color: #991b1b;
}

.btn-ga-xlsx {
    background: #d1fae5;
    color: #047857;
    border: none;
    font-weight: 700;
    border-radius: var(--ga-radius-sm);
}

.btn-ga-xlsx:hover {
    background: #a7f3d0;
    color: #065f46;
}

/* ——— Utilities ——— */
.ga-muted {
    color: var(--ga-muted);
}

.code-hint {
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    font-family: ui-monospace, monospace;
}

/* Loading overlay */
.ga-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 252, 0.78);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.ga-loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ga-loading-overlay .spinner-border {
    color: var(--ga-primary) !important;
    border-width: 0.2em;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* SweetAlert2 — Cairo + teal / danger actions (html[dir=rtl] handled by Swal) */
.swal2-container {
    z-index: 12000 !important;
}

.swal2-popup.ga-swal-popup {
    font-family: "Cairo", system-ui, sans-serif !important;
    border-radius: var(--ga-radius) !important;
    padding: 1.5rem 1.35rem 1.2rem !important;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
}

.swal2-title {
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    color: var(--ga-text) !important;
    padding: 0 0 0.35rem !important;
}

.swal2-html-container,
.swal2-content {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    color: var(--ga-muted) !important;
}

.swal2-actions {
    gap: 0.65rem !important;
    margin-top: 1.15rem !important;
}

button.swal2-styled.ga-swal-confirm--solid {
    box-shadow: none !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.35rem !important;
    border-radius: 999px !important;
    min-width: 5.25rem;
    min-height: 2.5rem;
}

button.swal2-styled.ga-swal-confirm--solid:not(.ga-swal-confirm--danger) {
    background: var(--ga-primary) !important;
    color: #fff !important;
}

button.swal2-styled.ga-swal-confirm--danger {
    background: var(--ga-danger) !important;
    color: #fff !important;
}

button.swal2-styled.ga-swal-cancel {
    background: #f1f5f9 !important;
    color: var(--ga-text) !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.2rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--ga-border) !important;
    box-shadow: none !important;
    min-height: 2.5rem;
}

/* SweetAlert: custom checkboxes should be clear in RTL */
.swal2-popup .ga-check {
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
}

.swal2-popup .ga-check__mark {
    height: 1.55em;
    width: 1.55em;
    border-width: 2px;
}

.swal2-popup .ga-check__text {
    text-align: right;
}

.swal2-popup .ga-check__mark:after {
    left: 0.11em;
    top: 0.11em;
    width: 1.18em;
    height: 1.18em;
}

.swal2-popup .ga-check input:checked ~ .ga-check__mark:after {
    left: 0.52em;
    top: 0.3em;
    width: 0.3em;
    height: 0.62em;
    border-width: 0 0.2em 0.2em 0;
}

.ga-check input {
    display: none;
}

.ga-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.ga-check__mark {
    position: relative;
    top: 0.05rem;
    flex: 0 0 auto;
    height: 1.35em;
    width: 1.35em;
    background-color: rgba(33, 150, 243, 0);
    border: 2px solid rgba(15, 23, 42, 0.45);
    border-radius: 0.28em;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.08);
}

.ga-check__text {
    color: var(--ga-text);
    font-weight: 600;
    line-height: 1.45;
}

.ga-check__mark:after {
    content: "";
    position: absolute;
    transform: rotate(0deg);
    border: 0.12em solid rgba(15, 23, 42, 0.9);
    left: 0.09em;
    top: 0.09em;
    width: 1.02em;
    height: 1.02em;
    border-radius: 0.22em;
    transition: all 0.2s ease, border-width 0.1s ease;
}

.ga-check input:checked ~ .ga-check__mark {
    background-color: #2196f3;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.22);
}

.ga-check input:checked ~ .ga-check__mark:after {
    left: 0.46em;
    top: 0.26em;
    width: 0.28em;
    height: 0.55em;
    border-color: transparent #fff #fff transparent;
    border-width: 0 0.18em 0.18em 0;
    border-radius: 0;
    transform: rotate(45deg);
}

.ga-check:hover .ga-check__mark {
    border-color: rgba(33, 150, 243, 0.9);
}

.ga-check input:focus-visible ~ .ga-check__mark {
    outline: 3px solid rgba(33, 150, 243, 0.35);
    outline-offset: 2px;
}

.ga-swal-anim {
    animation-duration: 0.2s !important;
}

/* Wider delete campaign dialog */
.swal2-popup.ga-swal-popup--wide {
    max-width: 24rem;
}

/* Softer type — less heavy “bold” across admin */
.app-content strong,
.app-content b {
    font-weight: 600;
}

.app-sidebar__link {
    font-weight: 500;
}

.app-sidebar__link i,
.app-sidebar__brand-icon--teal i {
    font-size: 1.05rem;
    opacity: 0.88;
    width: 1.35rem;
    text-align: center;
    flex-shrink: 0;
}

.app-sidebar__brand {
    font-weight: 600;
}

.ga-page-title,
.ga-page-title--plain,
.ga-page-title--dash {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ga-page-sub {
    font-weight: 400;
}

.ga-section-title,
.ga-dash-layout__title,
.ga-dash-layout__section-title {
    font-weight: 600;
}

.ga-card__title,
.ga-campaign-card__title {
    font-weight: 600;
}

.ga-dash-stat__label {
    font-weight: 600;
}

.ga-dash-stat__value {
    font-weight: 600;
}

.ga-dash-stat__sub {
    font-weight: 500;
}

.ga-table-badge,
.ga-dash-badge {
    font-weight: 600;
}

.btn.ga-btn-ref-create,
.btn-ga-pdf,
.btn-ga-xlsx {
    font-weight: 600;
}

/* Icon-only / compact danger */
.btn.ga-btn-icon-trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    line-height: 1;
    border-width: 1px;
}

.btn.ga-btn-icon-trash i {
    font-size: 0.95rem;
    opacity: 0.9;
    display: block;
    line-height: 1;
}

/* Stat / card icons: calmer, aligned */
.ga-dash-stat__icon i,
.ga-dash-stat--ref .ga-dash-stat__icon i {
    line-height: 1;
    vertical-align: middle;
}

/* Collapsible name lists + dedicated scroll (DataTables-friendly) */
.ga-named-list {
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius-sm);
    background: var(--ga-surface);
    overflow: hidden;
}

.ga-named-list__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 1rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--ga-border);
    background: linear-gradient(180deg, #fafbfe 0%, #f8fafc 100%);
    color: var(--ga-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ga-named-list__toggle:hover {
    background: #f1f5f9;
}

.ga-named-list__toggle .ga-named-list__chev {
    flex-shrink: 0;
    font-size: 0.75rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.ga-named-list__toggle.collapsed .ga-named-list__chev {
    transform: rotate(180deg);
}

.ga-table-scroll {
    max-height: min(52vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.ga-table-scroll .table-responsive {
    overflow: visible;
}

.ga-table-scroll .table {
    margin-bottom: 0;
}

.ga-table-scroll .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    box-shadow: inset 0 -1px 0 var(--ga-border);
}

.ga-card__body--flush .ga-named-list--embed,
.ga-card__body--flush > .ga-named-list {
    border-radius: 0;
    border-inline: 0;
    border-bottom: 0;
}

.ga-card__body--flush .ga-named-list--embed .ga-named-list__toggle,
.ga-card__body--flush > .ga-named-list .ga-named-list__toggle {
    border-bottom: 1px solid var(--ga-border);
}

