:root {
    --bg-main: #080c12;
    --bg-card: #111923;
    --bg-card-2: #162131;
    --border-soft: rgba(218, 174, 78, .18);
    --border-muted: rgba(157, 168, 182, .18);
    --gold: #d8aa44;
    --gold-soft: #f2d68a;
    --text-main: #f5f2ea;
    --text-muted: #a4afbd;
    --danger: #df5a5a;
    --success: #35b879;
    --warning: #e0b247;
    --radius: 12px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, .28);
}

.genesis-pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(245, 197, 87, .16);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13, 21, 35, .92), rgba(7, 11, 19, .92));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.genesis-pagination-info {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 700;
}

.genesis-pagination,
.genesis-page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.genesis-page-btn,
.genesis-page-current {
    display: inline-flex;
    min-width: 36px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(245, 197, 87, .2);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.genesis-page-btn:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #f4d56a, #c89122);
    color: #090b10;
    text-decoration: none;
}

.genesis-page-btn.active,
.genesis-page-btn[aria-current="page"] {
    border-color: transparent;
    background: linear-gradient(135deg, #f4d56a, #c89122);
    color: #090b10;
    box-shadow: 0 8px 18px rgba(200, 145, 33, .18);
}

.genesis-page-current {
    min-width: auto;
    border-color: rgba(245, 197, 87, .14);
    background: rgba(245, 197, 87, .06);
    color: #f4d56a;
    font-size: 11px;
}

.genesis-page-btn.disabled {
    cursor: not-allowed;
    opacity: .45;
    pointer-events: none;
}

nav[role="navigation"] svg,
.pagination svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    box-shadow: none;
}

@media (max-width: 640px) {
    .genesis-pagination-wrap {
        align-items: stretch;
    }

    .genesis-pagination-info {
        width: 100%;
        text-align: center;
    }

    .genesis-pagination {
        width: 100%;
        justify-content: space-between;
    }

    .genesis-page-numbers {
        display: none;
    }

    .genesis-page-btn,
    .genesis-page-current {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 8px;
        font-size: 12px;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

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

.genesis img,
.genesis svg,
.genesis video {
    max-width: 100%;
}

.genesis .form-control,
.genesis .custom-select,
.genesis .form-select {
    min-height: 38px;
    border-radius: 9px;
    border-color: var(--border-muted);
    background-color: rgba(255, 255, 255, .04);
    color: var(--text-main);
    box-shadow: none;
}

.genesis .form-control:focus,
.genesis .custom-select:focus,
.genesis .form-select:focus {
    border-color: rgba(216, 170, 68, .65);
    box-shadow: 0 0 0 3px rgba(216, 170, 68, .13);
}

.genesis label,
.genesis .form-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.genesis .btn {
    border-radius: 9px;
    font-weight: 700;
    letter-spacing: 0;
}

.genesis .btn-genesis {
    border-color: rgba(216, 170, 68, .85);
    background: linear-gradient(135deg, #f1d27a, #c8922e);
    color: #17110a;
}

.genesis .btn-outline-light {
    border-color: rgba(245, 242, 234, .24);
    color: var(--text-main);
}

.genesis .alert {
    border-radius: var(--radius);
    border: 1px solid var(--border-muted);
}

.genesis-table,
.genesis .table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-main);
}

.genesis-table thead th,
.genesis .table thead th {
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.genesis-table td,
.genesis-table th,
.genesis .table td,
.genesis .table th {
    vertical-align: middle;
    border-top-color: rgba(255, 255, 255, .06);
}

.ga-table-wrap,
.table-responsive,
.member-table-wrap,
.public-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
}

.ga-table-wrap::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.member-table-wrap::-webkit-scrollbar,
.public-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.ga-table-wrap::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.member-table-wrap::-webkit-scrollbar-thumb,
.public-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(216, 170, 68, .42);
}

.genesis .dropdown-menu {
    z-index: 1080;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: #101823;
    box-shadow: var(--shadow-soft);
}

.genesis .dropdown-item {
    color: var(--text-main);
    font-size: 13px;
}

.genesis .dropdown-item:hover,
.genesis .dropdown-item:focus {
    background: rgba(216, 170, 68, .12);
    color: var(--gold-soft);
}

.genesis .modal {
    z-index: 1060;
}

.genesis .modal-backdrop {
    z-index: 1050;
}

.genesis .modal-content {
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: #101823;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

.genesis .modal-header,
.genesis .modal-footer {
    border-color: rgba(255, 255, 255, .08);
}

.genesis-auth-admin {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 12%, rgba(216, 170, 68, .12), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(61, 115, 170, .12), transparent 24%),
        #070b10;
    color: var(--text-main);
}

.auth-admin-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-admin-card {
    width: min(100%, 440px);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(22, 33, 49, .96), rgba(11, 16, 23, .98));
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.auth-admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.auth-admin-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: #05070d;
    color: var(--gold-soft);
    overflow: hidden;
}

.auth-admin-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-admin-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.auth-admin-subtitle {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-admin-card .form-control {
    background: rgba(255, 255, 255, .055);
}

.auth-admin-footer {
    margin-top: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-admin-footer a {
    color: var(--gold-soft);
}

.public-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(216, 170, 68, .34);
    border-radius: 999px;
    color: var(--gold-soft);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.public-nav-login:hover,
.public-nav-login:focus,
.public-nav-login.is-active {
    border-color: rgba(216, 170, 68, .72);
    background: rgba(216, 170, 68, .12);
    color: var(--text-main);
    text-decoration: none;
    transform: translateY(-1px);
}

.public-nav-login.is-active {
    box-shadow: inset 0 0 0 1px rgba(216, 170, 68, .22);
}

.public-auth-shell {
    min-height: calc(100vh - 112px);
    display: grid;
    place-items: center;
    padding: 28px 16px 42px;
}

.public-auth-shell-wide {
    min-height: calc(100vh - 96px);
}

.public-auth-card {
    width: min(100%, 500px);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(22, 33, 49, .96), rgba(10, 15, 22, .98));
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.public-auth-card-wide {
    width: min(100%, 720px);
}

.public-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.public-auth-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(216, 170, 68, .12);
    color: var(--gold-soft);
}

.public-auth-title {
    margin: 0;
    color: var(--text-main);
    font-size: 25px;
    font-weight: 850;
    line-height: 1.15;
}

.public-auth-subtitle {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.public-auth-card .form-control {
    background: rgba(255, 255, 255, .055);
    min-height: 44px;
}

.public-auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.public-auth-field {
    min-width: 0;
}

.public-auth-field-full {
    grid-column: 1 / -1;
}

.public-auth-submit {
    margin-top: 2px;
}

.public-auth-optional {
    color: var(--text-muted);
    font-weight: 600;
}

.public-auth-footer {
    margin-top: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.public-auth-footer a {
    color: var(--gold-soft);
    font-weight: 800;
}

.member-login-shell {
    min-height: calc(100vh - 88px);
    place-items: start center;
    padding-top: clamp(24px, 7vh, 64px);
}

.member-login-card {
    position: relative;
    width: min(100%, 430px);
    padding: 22px;
    border-color: rgba(216, 170, 68, .24);
    border-radius: 20px;
    background:
        radial-gradient(circle at 18% 0%, rgba(216, 170, 68, .14), transparent 13rem),
        linear-gradient(180deg, rgba(16, 24, 36, .98), rgba(7, 10, 16, .99));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    overflow: hidden;
}

.member-login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 207, 122, .62), transparent);
}

.member-login-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #fff7e7;
    font-size: 13px;
    font-weight: 900;
}

.member-login-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(240, 207, 122, .28);
    border-radius: 50%;
    background: #05070d;
    color: #141007;
    overflow: hidden;
}

.member-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-login-heading {
    margin-bottom: 16px;
}

.member-login-mark {
    border-color: rgba(92, 225, 230, .22);
    background: rgba(92, 225, 230, .10);
    color: #8eeaf0;
}

.member-login-card .form-label {
    color: #e8decb;
    font-size: 12px;
    font-weight: 850;
}

.member-login-input-wrap {
    position: relative;
}

.member-login-input-wrap i {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: var(--gold-soft);
    font-size: 13px;
}

.member-login-input-wrap .form-control {
    min-height: 48px;
    padding-left: 38px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 13px;
    background: rgba(3, 7, 13, .72);
    color: #fffaf0;
    box-shadow: none;
}

.member-login-input-wrap .form-control:focus {
    border-color: rgba(240, 207, 122, .52);
    box-shadow: 0 0 0 3px rgba(216, 170, 68, .18);
}

.member-login-submit {
    min-height: 48px;
    border-radius: 13px;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(216, 170, 68, .20);
}

.feature-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.feature-status-card {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    padding: 12px;
}

.feature-status-card strong {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-main);
    font-size: 13px;
}

.feature-status-card span {
    color: var(--text-muted);
    font-size: 12px;
}

.feature-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

@media (max-width: 767.98px) {
    .genesis .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .genesis .modal-content {
        max-height: calc(100vh - 20px);
        overflow: auto;
    }

    .genesis .btn,
    .genesis .form-control,
    .genesis .custom-select,
    .genesis .form-select {
        min-height: 42px;
    }

    .auth-admin-shell {
        padding: 16px;
    }

    .auth-admin-card {
        padding: 20px;
    }

    .public-auth-shell {
        min-height: auto;
        place-items: start center;
        padding: 18px 14px 28px;
    }

    .public-auth-card {
        border-radius: 15px;
        padding: 18px;
    }

    .public-auth-brand {
        align-items: flex-start;
    }

    .public-auth-title {
        font-size: 23px;
    }

    .public-auth-subtitle {
        font-size: 12.5px;
    }

    .public-auth-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .public-auth-field-full {
        grid-column: auto;
    }
}

@media (max-width: 860px) {
    .public-nav-login {
        width: 100%;
        min-height: 40px;
        justify-content: flex-start;
        padding: 9px 12px;
        border-radius: 12px;
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .public-auth-shell {
        padding-top: 14px;
        padding-inline: 12px;
    }

    .public-auth-card {
        padding: 16px;
    }

    .member-login-shell {
        min-height: calc(100vh - 74px);
        padding-top: 12px;
        padding-bottom: 22px;
    }

    .member-login-card {
        padding: 17px;
        border-radius: 16px;
    }

    .member-login-logo-wrap {
        margin-bottom: 14px;
    }

    .member-login-logo {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 50%;
    }

    .public-auth-mark {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .public-auth-brand {
        gap: 10px;
        margin-bottom: 15px;
    }
}
