:root {
    --ab-orange: #ff6b00;
    --ab-orange-light: #ff8533;
    --ab-orange-glow: rgba(255, 107, 0, 0.35);
    --ab-navy: #0a1628;
    --ab-navy-light: #132238;
    --ab-slate: #64748b;
    --ab-bg: #f0f4f8;
    --ab-white: #ffffff;
    --ab-success: #10b981;
    --ab-warning: #f59e0b;
    --ab-danger: #ef4444;
    --ab-info: #3b82f6;
    --ab-radius: 16px;
    --ab-radius-sm: 10px;
    --ab-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
    --ab-shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.15);
    --ab-sidebar-w: 280px;
    --ab-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ab-font: IRANYekan, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--ab-font);
    background: var(--ab-bg);
    color: #1e293b;
    min-height: 100vh;
    margin: 0;
}

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--ab-sidebar-w);
    background: linear-gradient(180deg, var(--ab-navy) 0%, var(--ab-navy-light) 100%);
    color: #cbd5e1;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform var(--ab-transition);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.sidebar-brand img {
    width: 48px; height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--ab-orange);
}

.sidebar-brand span { font-weight: 700; font-size: 0.95rem; line-height: 1.4; }

.sidebar-nav { padding: 1rem 0.75rem; flex: 1; }

.sidebar-nav .nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.75rem 1rem 0.35rem;
    font-weight: 600;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: var(--ab-radius-sm);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    transition: all var(--ab-transition);
}

.sidebar-nav .nav-link i { font-size: 1.15rem; width: 1.5rem; text-align: center; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--ab-orange), var(--ab-orange-light));
    color: #fff;
    box-shadow: 0 4px 16px var(--ab-orange-glow);
}

.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ab-orange), #ff8533);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
}

.sidebar-user .info { flex: 1; min-width: 0; }
.sidebar-user .name { color: #fff; font-size: 0.85rem; font-weight: 600; }
.sidebar-user .role { color: #64748b; font-size: 0.75rem; }

.main-content {
    margin-right: var(--ab-sidebar-w);
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: var(--ab-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-body { padding: 1.75rem 2rem 2.5rem; flex: 1; min-width: 0; }

.page-hero {
    background: linear-gradient(135deg, var(--ab-navy) 0%, var(--ab-navy-light) 60%, #1e3a5f 100%);
    border-radius: var(--ab-radius);
    padding: 2rem 2.25rem;
    color: #fff;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(ellipse, var(--ab-orange-glow) 0%, transparent 70%);
}

.page-hero h1 { font-size: 1.65rem; font-weight: 700; margin: 0 0 0.35rem; position: relative; }
.page-hero p { margin: 0; opacity: 0.75; font-size: 0.95rem; position: relative; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--ab-white);
    border-radius: var(--ab-radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--ab-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform var(--ab-transition), box-shadow var(--ab-transition);
    border: 1px solid #f1f5f9;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--ab-shadow-lg); }

.stat-card .icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}

.stat-card .icon-wrap.orange { background: rgba(255,107,0,0.12); color: var(--ab-orange); }
.stat-card .icon-wrap.blue { background: rgba(59,130,246,0.12); color: var(--ab-info); }
.stat-card .icon-wrap.green { background: rgba(16,185,129,0.12); color: var(--ab-success); }
.stat-card .icon-wrap.purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: var(--ab-navy); }
.stat-card .label { font-size: 0.8rem; color: var(--ab-slate); margin-top: 0.2rem; }

.ab-card {
    background: var(--ab-white);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ab-card-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
}

.ab-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ab-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ab-card-body { padding: 0; min-width: 0; }
.ab-card-body.padded { padding: 1.25rem 1.5rem; }

.ab-table-search-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.ab-search-field {
    position: relative;
    flex: 1;
    max-width: 420px;
}
.ab-search-field .bi-search {
    position: absolute;
    left: 0.85rem;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.95rem;
    line-height: 1;
}
.ab-table-search-input {
    padding-left: 2.5rem;
    padding-right: 1rem;
    margin: 0;
}
.ab-search-count { white-space: nowrap; }

/* ── Tables ── */
.ab-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.ab-table-wrap::-webkit-scrollbar { height: 6px; }
.ab-table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.ab-table-wrap::-webkit-scrollbar-track { background: transparent; }

.ab-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.ab-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.9rem 1.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    text-align: right;
}

.ab-table tbody td {
    padding: 1rem 1.35rem;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    vertical-align: middle;
    line-height: 1.55;
}

.ab-table tbody tr { transition: background var(--ab-transition), box-shadow var(--ab-transition); }
.ab-table tbody tr:nth-child(even) { background: #fafbfc; }
.ab-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255,107,0,0.06) 0%, rgba(255,107,0,0.02) 100%);
    box-shadow: inset 3px 0 0 var(--ab-orange);
}
.ab-table tbody tr:last-child td { border-bottom: none; }

.ab-table .col-num {
    width: 52px;
    text-align: center;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}
.ab-table .col-actions {
    width: 1%;
    white-space: nowrap;
}
.ab-table-actions {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}
.ab-table .cell-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ab-table .cell-person .avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(255,133,51,0.08));
    color: var(--ab-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ab-table .cell-person .name { font-weight: 700; color: var(--ab-navy); display: block; }
.ab-table .cell-person .sub { font-size: 0.78rem; color: #94a3b8; margin-top: 0.1rem; }
.ab-table td.text-muted { color: #94a3b8 !important; font-size: 0.82rem; }
.ab-table .empty-row td { padding: 0; border: none; background: transparent !important; }
.ab-table .empty-row:hover { box-shadow: none; }

.ab-table.ab-table-wide { min-width: 960px; }
.ab-table .cell-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: block;
}
.ab-table .cell-thumb img.ab-doc-thumb {
    background: #f1f5f9;
}
.ab-table .cell-thumb img.ab-doc-thumb.is-loading {
    opacity: 0.65;
    animation: ab-thumb-pulse 1.2s ease-in-out infinite;
}
.ab-table .cell-thumb img.ab-doc-thumb.is-loaded {
    opacity: 1;
}
.ab-table .cell-thumb img.ab-doc-thumb.is-error {
    opacity: 0.5;
    border-color: #fca5a5;
    background: #fef2f2;
}
@keyframes ab-thumb-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.85; }
}
.ab-table .cell-thumb img.ab-thumb-zoom,
.ab-thumb-zoom {
    cursor: zoom-in;
    transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ab-table .cell-thumb img.ab-thumb-zoom:hover,
.ab-thumb-zoom:hover {
    opacity: 0.9;
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.15);
}

.ab-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 22, 40, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.ab-image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.ab-image-lightbox__img {
    max-width: min(94vw, 1280px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.ab-image-lightbox__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.ab-image-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.28);
}
.ab-table .cell-text-truncate {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab-table-compact thead th,
.ab-table-compact tbody td { padding: 0.7rem 1rem; }

/* Legacy / bootstrap table aliases inside new layout */
.page-body .table-alborz,
.page-body .subscription-table,
.ab-card .table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    margin-bottom: 0;
}
.page-body .table-alborz thead th,
.page-body .subscription-table thead th,
.ab-card .table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 0.9rem 1.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.page-body .table-alborz tbody td,
.page-body .subscription-table tbody td,
.ab-card .table tbody td {
    padding: 1rem 1.35rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}
.page-body .table-alborz tbody tr:nth-child(even),
.page-body .subscription-table tbody tr:nth-child(even),
.ab-card .table tbody tr:nth-child(even) { background: #fafbfc; }
.page-body .table-alborz tbody tr:hover,
.page-body .subscription-table tbody tr:hover,
.ab-card .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255,107,0,0.06) 0%, rgba(255,107,0,0.02) 100%);
}

.ab-badge {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.ab-badge.success { background: rgba(16,185,129,0.12); color: #059669; }
.ab-badge.warning { background: rgba(245,158,11,0.12); color: #d97706; }
.ab-badge.danger { background: rgba(239,68,68,0.12); color: #dc2626; }
.ab-badge.info { background: rgba(59,130,246,0.12); color: #2563eb; }
.ab-badge.neutral { background: #f1f5f9; color: #64748b; }

.btn-ab {
    background: linear-gradient(135deg, var(--ab-orange), var(--ab-orange-light));
    color: #fff; border: none;
    padding: 0.55rem 1.25rem;
    border-radius: var(--ab-radius-sm);
    font-size: 0.875rem; font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4rem;
    transition: all var(--ab-transition);
    cursor: pointer;
}
.btn-ab:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px var(--ab-orange-glow); }
.btn-ab-outline {
    background: transparent; color: var(--ab-orange);
    border: 1.5px solid var(--ab-orange);
    padding: 0.5rem 1.15rem;
    border-radius: var(--ab-radius-sm);
    font-size: 0.875rem; font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4rem;
    transition: all var(--ab-transition);
}
.btn-ab-outline:hover { background: var(--ab-orange); color: #fff; }
.btn-ab-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-ab-ghost {
    background: #f1f5f9; color: #475569; border: none;
    padding: 0.5rem 1rem; border-radius: var(--ab-radius-sm);
    font-size: 0.875rem; font-weight: 600; text-decoration: none;
}

.ab-input {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--ab-radius-sm);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-family: var(--ab-font);
    width: 100%;
}
select.ab-input,
.ab-input[type="select"],
select.ab-select {
    color: #1e293b;
    background-color: #fff;
    color-scheme: light;
    direction: rtl;
    text-align: right;
    cursor: pointer;
    /* فونت سیستمی برای نمایش درست آیتم‌های منوی بازشده در ویندوز */
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    line-height: 1.5;
    min-height: 2.75rem;
}
select.ab-input option,
select.ab-select option {
    color: #1e293b;
    background-color: #fff;
    font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}
select.ab-input:focus,
select.ab-select:focus {
    color: #1e293b;
    background-color: #fff;
}
select.ab-input option:checked,
select.ab-select option:checked {
    background-color: #e2e8f0;
    color: #0f172a;
}
.ab-custom-select {
    position: relative;
    width: 100%;
}
select.ab-native-select-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ab-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: right;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--ab-radius-sm);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-family: var(--ab-font);
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    min-height: 2.75rem;
    line-height: 1.5;
}
.ab-custom-select-trigger::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border: solid #64748b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -0.15rem;
}
.ab-custom-select.open .ab-custom-select-trigger {
    border-color: var(--ab-orange);
    box-shadow: 0 0 0 3px var(--ab-orange-glow);
}
.ab-custom-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 1060;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--ab-radius-sm);
    box-shadow: var(--ab-shadow-lg);
    max-height: 260px;
    overflow-y: auto;
}
.ab-custom-select-menu[hidden] {
    display: none !important;
}
.ab-custom-select-menu.ab-custom-select-menu-floating {
    right: auto;
    min-width: 10rem;
}
.ab-custom-select-option {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-family: var(--ab-font);
    color: #1e293b;
    cursor: pointer;
    text-align: right;
    line-height: 1.5;
}
.ab-custom-select-option:hover {
    background: rgba(255, 107, 0, 0.1);
    color: #0f172a;
}
.ab-custom-select-option.selected {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-weight: 600;
}
.ab-custom-select-option.disabled {
    color: #94a3b8;
    cursor: default;
}
.ab-custom-select-sm .ab-custom-select-trigger {
    min-height: auto;
    padding: 0.35rem 0.55rem;
    font-size: 0.82rem;
}
.ab-custom-select-sm .ab-custom-select-option {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
}
textarea.ab-input { min-height: 100px; resize: vertical; line-height: 1.6; }
.ab-input:focus { outline: none; border-color: var(--ab-orange); box-shadow: 0 0 0 3px var(--ab-orange-glow); }
.ab-input.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15); }
.ab-input-sm {
    min-width: 9.5rem;
    max-width: 12rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.82rem;
}
.ab-inline-team-assign {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.player-team-cell {
    min-width: 12rem;
}
.player-team-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.ab-team-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.ab-team-chip.locked {
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
    border-color: rgba(100, 116, 139, 0.2);
}
.ab-team-chip-remove-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}
.ab-team-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    cursor: pointer;
    font-size: 0.62rem;
    line-height: 1;
}
.ab-team-chip-remove:hover {
    background: #dc2626;
    color: #fff;
}
.ab-label { font-size: 0.85rem; font-weight: 600; color: #475569; margin-bottom: 0.4rem; display: block; }

.login-page { min-height: 100vh; display: flex; background: var(--ab-navy); }
.login-visual {
    flex: 1;
    background: linear-gradient(135deg, var(--ab-navy) 0%, #1e3a5f 50%, var(--ab-navy-light) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 3rem; position: relative; overflow: hidden;
}
.login-visual::before {
    content: ''; position: absolute; inset: 0;
    background: url('../img/figure/basketball.jpeg') center/cover;
    opacity: 0.15;
}
.login-visual .content { position: relative; text-align: center; color: #fff; max-width: 420px; }
.login-visual h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.login-visual p { opacity: 0.8; line-height: 1.8; }

.login-form-panel {
    width: 480px; max-width: 100%;
    background: #fff;
    display: flex; flex-direction: column; justify-content: center;
    padding: 3rem;
}
.login-form-panel .logo { text-align: center; margin-bottom: 2rem; }
.login-form-panel .logo img { max-height: 90px; border-radius: 16px; }
.login-form-panel h2 { text-align: center; font-size: 1.35rem; font-weight: 700; color: var(--ab-navy); }
.login-form-panel .subtitle { text-align: center; color: var(--ab-slate); font-size: 0.9rem; margin-bottom: 2rem; }

.notif-card {
    background: rgba(255,107,0,0.1);
    border: 1px solid rgba(255,107,0,0.25);
    border-radius: var(--ab-radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.team-card {
    background: var(--ab-white);
    border-radius: var(--ab-radius);
    box-shadow: var(--ab-shadow);
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    transition: all var(--ab-transition);
    position: relative; overflow: hidden;
}
.team-card::before {
    content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
    background: linear-gradient(90deg, var(--ab-orange), var(--ab-orange-light));
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--ab-shadow-lg); }
.team-card h5 { font-weight: 700; color: var(--ab-navy); }
.team-card .meta { color: var(--ab-slate); font-size: 0.85rem; margin-bottom: 1rem; }
.team-card .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.news-card {
    background: var(--ab-white);
    border-radius: var(--ab-radius);
    overflow: hidden;
    box-shadow: var(--ab-shadow);
    transition: all var(--ab-transition);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--ab-shadow-lg); }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card .body { padding: 1.25rem; }
.news-card h5 { font-weight: 700; color: var(--ab-navy); }
.news-card p { color: var(--ab-slate); font-size: 0.9rem; line-height: 1.7; }

.wizard-steps {
    display: flex; background: #f1f5f9;
    border-radius: 50px; padding: 0.35rem; margin-bottom: 2rem;
}
.wizard-step-indicator {
    flex: 1; text-align: center;
    padding: 0.65rem 1rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; color: var(--ab-slate);
}
.wizard-step-indicator.active {
    background: linear-gradient(135deg, var(--ab-orange), var(--ab-orange-light));
    color: #fff;
}
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.empty-state { text-align: center; padding: 3rem; color: var(--ab-slate); }
.empty-state i { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; display: block; }

.admin-shell .sidebar { background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 100%); }
.admin-shell .sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}
.admin-shell .page-hero { background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 60%, #4c1d95 100%); }
.admin-shell .ab-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(124,58,237,0.07) 0%, rgba(124,58,237,0.02) 100%);
    box-shadow: inset 3px 0 0 #7c3aed;
}

.ab-pagination { display: flex; gap: 0.35rem; justify-content: center; margin-top: 1.5rem; }
.ab-pagination a, .ab-pagination span {
    padding: 0.45rem 0.85rem; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.ab-pagination a { background: #fff; color: var(--ab-slate); border: 1px solid #e2e8f0; }
.ab-pagination a:hover { background: var(--ab-orange); color: #fff; }
.ab-pagination .active { background: var(--ab-orange); color: #fff; }

.sidebar-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ab-navy); cursor: pointer; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1030; }
.sidebar-overlay.show { display: block; }

@media (max-width: 991px) {
    .sidebar { transform: translateX(100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-right: 0; }
    .sidebar-toggle { display: block; }
    .page-body { padding: 1.25rem; }
    .login-visual { display: none; }
    .login-form-panel { width: 100%; }
}

.ab-alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--ab-radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.ab-alert.info { background: rgba(59,130,246,0.1); color: #2563eb; border: 1px solid rgba(59,130,246,0.2); }

.progress-bar-ab { background: linear-gradient(90deg, var(--ab-orange), var(--ab-orange-light)); }
