:root {
    --bg: #080a0d;
    --surface: rgba(18, 20, 25, .88);
    --surface-2: rgba(25, 27, 33, .88);
    --line: rgba(255,255,255,.08);
    --line-hot: rgba(255,153,0,.24);

    --text: #f6f7f9;
    --muted: #949aa6;

    --maroon: #991900;
    --maroon-deep: #4f0b00;
    --orange: #ff9900;
    --orange-soft: #ffc35c;

    --green: #54d69b;
    --danger: #ff6b6b;

    --sidebar: 272px;
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 0 0,
            rgba(153,25,0,.22),
            transparent 32rem
        ),
        radial-gradient(
            circle at 100% 0,
            rgba(255,153,0,.08),
            transparent 28rem
        ),
        var(--bg);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

/* LOGIN */

.admin-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
}

.login-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 58px clamp(38px, 6vw, 90px);
    border-right: 1px solid var(--line);
}

.login-visual::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -180px;
    bottom: -220px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255,153,0,.16),
            rgba(153,25,0,.06) 50%,
            transparent 70%
        );
    pointer-events: none;
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 17px;
}

.brand-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.brand-copy strong {
    display: block;
    font-size: 18px;
    letter-spacing: .02em;
}

.brand-copy span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.login-message {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 90px 0;
}

.eyebrow {
    color: var(--orange-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.login-message h1 {
    margin: 18px 0;
    max-width: 680px;
    font-size: clamp(44px, 5vw, 76px);
    line-height: .98;
    letter-spacing: -.055em;
}

.login-message p {
    max-width: 590px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.login-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.secure-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 16px rgba(84,214,155,.7);
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
}

.login-card {
    width: min(100%, 430px);
}

.login-card-header {
    margin-bottom: 32px;
}

.login-card-header span {
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
}

.login-card-header h2 {
    margin: 10px 0 8px;
    font-size: 32px;
    letter-spacing: -.035em;
}

.login-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.login-error {
    margin: 0 0 22px;
    padding: 13px 15px;
    color: #ffd6d6;
    background: rgba(255,107,107,.08);
    border: 1px solid rgba(255,107,107,.25);
    border-radius: 12px;
    font-size: 13px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #c8cbd1;
    font-size: 12px;
    font-weight: 700;
}

.field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    color: var(--text);
    outline: none;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: .2s ease;
}

.field input:focus {
    border-color: rgba(255,153,0,.65);
    box-shadow: 0 0 0 3px rgba(255,153,0,.08);
}

.login-submit {
    width: 100%;
    height: 54px;
    margin-top: 8px;
    color: #170b00;
    cursor: pointer;
    background:
        linear-gradient(135deg, #ffb326, var(--orange));
    border: 0;
    border-radius: 13px;
    font-weight: 900;
    box-shadow: 0 16px 38px rgba(255,153,0,.16);
}

.login-submit:hover {
    filter: brightness(1.06);
}

.login-note {
    margin-top: 22px;
    color: #686e79;
    font-size: 11px;
    line-height: 1.65;
    text-align: center;
}

/* ADMIN SHELL */

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    padding: 25px 18px 20px;
    background:
        linear-gradient(
            180deg,
            rgba(27,11,9,.97),
            rgba(10,11,14,.98) 28%
        );
    border-right: 1px solid var(--line);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 5px 8px 26px;
}

.sidebar-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.sidebar-brand strong {
    display: block;
    font-size: 14px;
}

.sidebar-brand span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .13em;
}

.nav-label {
    margin: 20px 10px 9px;
    color: #5f646e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .17em;
}

.admin-nav {
    display: grid;
    gap: 5px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 0 13px;
    color: #aeb3bc;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 650;
}

.admin-nav a:hover {
    color: white;
    background: rgba(255,255,255,.035);
}

.admin-nav a.active {
    color: white;
    background:
        linear-gradient(
            90deg,
            rgba(153,25,0,.36),
            rgba(255,153,0,.055)
        );
    border-color: rgba(255,153,0,.14);
}

.nav-icon {
    width: 23px;
    color: var(--orange-soft);
    text-align: center;
    font-size: 16px;
}

.nav-badge {
    margin-left: auto;
    padding: 3px 7px;
    color: #7c818a;
    background: rgba(255,255,255,.05);
    border-radius: 999px;
    font-size: 8px;
    letter-spacing: .08em;
}

.sidebar-bottom {
    margin-top: auto;
}

.user-mini {
    padding: 14px;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.user-mini strong {
    display: block;
    font-size: 12px;
}

.user-mini span {
    display: block;
    margin-top: 4px;
    color: var(--orange-soft);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.admin-main {
    min-height: 100vh;
    margin-left: var(--sidebar);
}

.admin-topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(24px, 4vw, 58px);
    background: rgba(8,10,13,.76);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.topbar-context span {
    display: block;
    color: var(--orange);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.topbar-context strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.topbar-link,
.logout-button {
    height: 37px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    color: #b8bdc6;
    cursor: pointer;
    background: rgba(255,255,255,.035);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 750;
}

.logout-button:hover,
.topbar-link:hover {
    color: white;
    border-color: var(--line-hot);
}

.logout-form {
    margin: 0;
}

.admin-content {
    width: min(100%, 1580px);
    margin: 0 auto;
    padding: 46px clamp(24px, 4vw, 58px) 70px;
}

.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.admin-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px, 4vw, 50px);
    letter-spacing: -.045em;
}

.admin-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: #bff4da;
    background: rgba(84,214,155,.06);
    border: 1px solid rgba(84,214,155,.18);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

.metric-card,
.command-card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.04),
            rgba(255,255,255,.018)
        );
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.metric-card {
    min-height: 154px;
    padding: 21px;
}

.metric-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.metric-value {
    margin-top: 17px;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.metric-foot {
    margin-top: 10px;
    color: #6f7580;
    font-size: 10px;
}

.command-section {
    margin-top: 34px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 15px;
}

.section-heading h2 {
    margin: 0;
    font-size: 18px;
}

.section-heading span {
    color: var(--muted);
    font-size: 10px;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}

.command-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 23px;
    transition: transform .2s ease, border-color .2s ease;
}

.command-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-hot);
}

.command-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(153,25,0,.12);
}

.command-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin: 16px 0 8px;
    font-size: 17px;
}

.command-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.command-tag {
    position: relative;
    z-index: 1;
    color: var(--orange);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
}

.command-arrow {
    position: absolute;
    z-index: 2;
    right: 21px;
    top: 20px;
    color: var(--orange-soft);
}

.mobile-toggle {
    display: none;
}

@media (max-width: 1050px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .command-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .admin-login {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 28px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }

    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .admin-topbar {
        padding: 0 18px;
    }

    .admin-content {
        padding: 30px 18px 50px;
    }
}

@media (max-width: 560px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-context strong {
        font-size: 12px;
    }

    .topbar-link {
        display: none;
    }
}
.hero-accent { color: var(--orange-soft); }

/* =========================================================
   USERS & ROLES · READ ONLY v0.1
   ========================================================= */

.users-panel {
    margin-top: 28px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background: rgba(16,18,21,.82);
    overflow: hidden;
}

.users-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.users-panel-head h2 {
    margin: 7px 0 0;
    font-size: 22px;
}

.admin-primary-button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255,164,0,.35);
    border-radius: 10px;
    background: linear-gradient(135deg,#ffb126,#ff9800);
    color: #090b0e;
    font-weight: 800;
}

.admin-primary-button:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.admin-table th {
    padding: 14px 20px;
    text-align: left;
    color: #7f8da3;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.admin-table td {
    padding: 18px 20px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,.018);
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-cell strong,
.admin-user-cell span {
    display: block;
}

.admin-user-cell span {
    margin-top: 4px;
    color: #718096;
    font-size: 11px;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(153,25,0,.24);
    border: 1px solid rgba(255,153,0,.20);
    color: #ffad18;
    font-weight: 900;
}

.role-chip,
.state-chip {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.035);
    color: #aab4c4;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
}

.role-chip {
    color: #ffad18;
    border-color: rgba(255,153,0,.18);
    background: rgba(255,153,0,.06);
}

.state-good {
    color: #65e6ad;
    border-color: rgba(69,214,153,.20);
    background: rgba(69,214,153,.06);
}

.state-warning {
    color: #ffb020;
    border-color: rgba(255,176,32,.22);
    background: rgba(255,176,32,.07);
}

.table-main {
    color: #d8dee8;
    font-size: 11px;
    font-weight: 600;
}

.security-meta {
    display: block;
    margin-top: 5px;
    color: #667286;
    font-size: 9px;
}

@media (max-width: 760px) {
    .users-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   USERS & ROLES · CREATE ADMIN v0.2
   ========================================================= */

a.admin-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-form-panel {
    margin-top: 28px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background: rgba(16,18,21,.82);
}

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

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.admin-field label {
    color: #d7dde7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
}

.admin-field input,
.admin-field select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 10px;
    outline: none;
    background: #0c0e11;
    color: #e9edf3;
    font: inherit;
}

.admin-field input:focus,
.admin-field select:focus {
    border-color: rgba(255,153,0,.55);
    box-shadow: 0 0 0 3px rgba(255,153,0,.07);
}

.admin-field small {
    color: #69768a;
    font-size: 10px;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.admin-secondary-button {
    display: inline-flex;
    min-height: 42px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    color: #aab4c4;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.admin-alert {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.6;
}

.admin-alert ul {
    margin: 7px 0 0 18px;
    padding: 0;
}

.admin-alert-error {
    color: #ffb7ac;
    border-color: rgba(255,86,65,.25);
    background: rgba(153,25,0,.10);
}

.admin-alert-success {
    color: #72e9b6;
    border-color: rgba(69,214,153,.20);
    background: rgba(69,214,153,.06);
}

@media (max-width: 760px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-field-full {
        grid-column: auto;
    }
}

/* ACCOUNT MANAGEMENT LINK · v0.3 */
.account-manage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255,153,0,.20);
    border-radius: 9px;
    background: rgba(255,153,0,.055);
    color: #ffad18;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.account-manage-link:hover {
    background: rgba(255,153,0,.10);
    border-color: rgba(255,153,0,.38);
    transform: translateY(-1px);
}

/* ACCOUNT STATUS CONTROL · v0.4 */
.account-status-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.account-status-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-status-copy > span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    color: rgba(255,255,255,.42);
}

.account-status-copy > strong {
    font-size: 13px;
    letter-spacing: .06em;
    color: #fff;
}

.account-status-copy > small {
    margin-top: 2px;
    color: rgba(255,255,255,.50);
    line-height: 1.5;
}

.account-status-form {
    flex: 0 0 auto;
    margin: 0;
}

.account-status-button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    cursor: pointer;
    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.account-status-button:hover {
    transform: translateY(-1px);
}

.account-status-button-danger {
    border: 1px solid rgba(255,90,90,.28);
    background: rgba(255,70,70,.07);
    color: #ff8b8b;
}

.account-status-button-danger:hover {
    border-color: rgba(255,90,90,.48);
    background: rgba(255,70,70,.12);
}

.account-status-button-active {
    border: 1px solid rgba(90,210,140,.28);
    background: rgba(70,190,120,.07);
    color: #79dca1;
}

.account-status-button-active:hover {
    border-color: rgba(90,210,140,.48);
    background: rgba(70,190,120,.12);
}

@media (max-width: 760px) {
    .account-status-control {
        align-items: stretch;
        flex-direction: column;
    }

    .account-status-button {
        width: 100%;
    }
}

/* RESET PASSWORD · v0.5 */
.password-target-card {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.password-target-card > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 88px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}

.password-target-card span,
.password-security-note strong {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
    color: rgba(255,255,255,.42);
}

.password-target-card strong {
    color: #fff;
}

.password-target-card small {
    color: rgba(255,255,255,.48);
}

.password-security-note {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(255,153,0,.14);
    border-radius: 12px;
    background: rgba(255,153,0,.035);
}

.password-security-note span {
    color: rgba(255,255,255,.56);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .password-target-card {
        grid-template-columns: 1fr;
    }
}

/* ACCOUNT SECURITY ACTION · v0.5 */
.account-security-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.account-security-action-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-security-action-copy > span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    color: rgba(255,255,255,.42);
}

.account-security-action-copy > strong {
    font-size: 13px;
    color: #fff;
}

.account-security-action-copy > small {
    margin-top: 2px;
    color: rgba(255,255,255,.50);
    line-height: 1.5;
}

.account-reset-password-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255,153,0,.25);
    border-radius: 10px;
    background: rgba(255,153,0,.055);
    color: #ffad18;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.account-reset-password-link:hover {
    border-color: rgba(255,153,0,.45);
    background: rgba(255,153,0,.10);
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .account-security-action {
        align-items: stretch;
        flex-direction: column;
    }

    .account-reset-password-link {
        width: 100%;
    }
}

/* =========================================================
   REPORT BUILDER · PAGINATION v0.1
   ========================================================= */

.report-pagination {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.012);
}

.report-pagination-summary,
.report-pagination-note {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.5;
}

.report-pagination-summary {
    justify-self: start;
}

.report-pagination-note {
    justify-self: end;
    text-align: right;
}

.report-page-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.report-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

a.report-page-link:hover {
    color: #ffffff;
    border-color: rgba(255, 153, 0, 0.42);
    background: rgba(255, 153, 0, 0.08);
    transform: translateY(-1px);
}

.report-page-link.is-active {
    color: #111111;
    border-color: #ff9900;
    background: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.09);
}

.report-page-link.is-disabled {
    color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
    cursor: default;
}

.report-page-direction {
    min-width: auto;
    padding-left: 13px;
    padding-right: 13px;
}

.report-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 36px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 14px;
    font-weight: 700;
    user-select: none;
}

/*
 * Medium viewport:
 * navigation mendapat satu baris penuh agar tidak terjepit.
 */
@media (max-width: 1280px) {
    .report-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .report-page-nav {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .report-pagination-summary {
        grid-column: 1;
        grid-row: 2;
    }

    .report-pagination-note {
        grid-column: 2;
        grid-row: 2;
    }
}

/*
 * Mobile / narrow viewport.
 */
@media (max-width: 760px) {
    .report-pagination {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .report-page-nav {
        order: 1;
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
    }

    .report-pagination-summary {
        order: 2;
    }

    .report-pagination-note {
        order: 3;
        justify-self: auto;
        text-align: left;
    }

    .report-page-link {
        flex: 0 0 auto;
    }

    .report-page-ellipsis {
        flex: 0 0 auto;
    }
}

/* END REPORT BUILDER · PAGINATION v0.1 */

