* {
    box-sizing: border-box;
}

:root {
    --bg: #070b12;
    --panel: #101826;
    --panel-2: #141f30;
    --border: #26364d;
    --text: #edf3ff;
    --muted: #8fa0b8;
    --accent: #f1b23e;
    --danger: #ff5c6c;
    --good: #3ee28a;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(241,178,62,.14), transparent 35%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 70px rgba(0,0,0,.35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), #9c5b12);
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
    color: #111;
}

.brand h1 {
    margin: 0;
    font-size: 28px;
}

.brand p {
    margin: 4px 0 0;
    color: var(--muted);
}

.form {
    display: grid;
    gap: 16px;
}

label span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

input {
    width: 100%;
    border: 1px solid var(--border);
    background: #0b1220;
    color: var(--text);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: var(--accent);
}

button {
    border: 0;
    background: var(--accent);
    color: #111;
    border-radius: 12px;
    padding: 13px 16px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.alert-error {
    background: rgba(255, 92, 108, .12);
    border: 1px solid rgba(255, 92, 108, .35);
    color: #ffd3d8;
}

.small {
    font-size: 13px;
}

.muted {
    color: var(--muted);
}

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #0a101b;
    border-right: 1px solid var(--border);
    padding: 22px;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--accent);
}

.sidebar nav {
    display: grid;
    gap: 8px;
}

.sidebar a {
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--muted);
}

.sidebar a.active,
.sidebar a:hover {
    background: var(--panel-2);
    color: var(--text);
}

.content {
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.topbar h1 {
    margin: 0;
    font-size: 34px;
}

.topbar p {
    margin: 5px 0 0;
    color: var(--muted);
}

.userbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #1e2a3d;
    color: #cbd8ee;
    font-size: 12px;
    font-weight: 700;
}

.logout {
    text-decoration: none;
    background: #1e2a3d;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--text);
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.card-head {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.card-head h2 {
    margin: 0 0 6px;
}

.card-head p {
    margin: 0;
    color: var(--muted);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(38,54,77,.75);
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    background: #0e1624;
}

.strong {
    font-weight: 800;
}

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

    .sidebar {
        position: static;
    }

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


.notifications-widget {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 20;
}

.notifications-widget summary {
    list-style: none;
}

.notifications-widget summary::-webkit-details-marker {
    display: none;
}

.notifications-button {
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #1e2a3d;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255,255,255,.06);
}

.notifications-button strong {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 20px;
}

.notifications-menu {
    position: absolute;
    right: 0;
    top: 50px;
    width: min(420px, calc(100vw - 32px));
    background: #0b1220;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 80px rgba(0,0,0,.48);
    overflow: hidden;
}

.notifications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.notifications-head form {
    margin: 0;
}

.notifications-head button,
.notifications-all-link {
    border: 1px solid var(--border);
    background: #101826;
    color: var(--text);
    border-radius: 10px;
    padding: 7px 9px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 800;
}

.notifications-empty {
    padding: 16px;
    color: var(--muted);
}

.notifications-list {
    max-height: 420px;
    overflow-y: auto;
}

.notification-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(38,54,77,.65);
}

.notification-row:last-child {
    border-bottom: 0;
}

.notification-row a {
    display: grid;
    gap: 4px;
    text-decoration: none;
}

.notification-row strong {
    font-size: 14px;
}

.notification-row span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.notification-row.is-read {
    opacity: .62;
}

.notification-row form {
    margin: 0;
}

.notification-row button {
    padding: 5px 8px;
    border-radius: 9px;
    font-size: 13px;
}

.notifications-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notifications-page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.notifications-page-actions form,
.notification-card-actions form {
    margin: 0;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 12px;
    background: #1e2a3d;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.button-link.active {
    background: var(--accent);
    color: #111;
    border-color: transparent;
}

.empty-state {
    padding: 22px;
    color: var(--muted);
}

.notifications-page-list {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.notification-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
    border: 1px solid rgba(38,54,77,.8);
    background: #0b1220;
    border-radius: 16px;
    padding: 14px;
}

.notification-card.is-read {
    opacity: .68;
}

.notification-card-top {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.notification-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.notification-card p {
    margin: 0 0 8px;
    color: #d6e1f5;
    line-height: 1.45;
}

.notification-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge-warn {
    background: rgba(255, 92, 108, .18);
    color: #ffd5da;
}

@media (max-width: 720px) {
    .notification-card {
        grid-template-columns: 1fr;
    }

    .notification-card-actions {
        justify-content: flex-start;
    }

    .notifications-page-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


:root {
    --bg: #070713;
    --panel: #101424;
    --panel-2: #17162c;
    --panel-3: #201b35;
    --border: #352f55;
    --border-soft: rgba(120, 91, 178, .34);
    --text: #f2f0ff;
    --muted: #a9a4c2;
    --accent: #f2a93b;
    --accent-2: #ffcf72;
    --purple: #8f6dff;
    --purple-soft: rgba(143, 109, 255, .16);
    --danger: #ff5d73;
    --good: #3ee28a;
}

html, body {
    background:
        radial-gradient(circle at 75% 0%, rgba(98, 62, 184, .16), transparent 34%),
        radial-gradient(circle at 0% 18%, rgba(242, 169, 59, .07), transparent 28%),
        linear-gradient(180deg, #070713 0%, #080b14 56%, #05070d 100%);
}

.layout {
    grid-template-columns: 250px 1fr;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(18, 16, 35, .98), rgba(8, 11, 20, .98)),
        #090d18;
    border-right: 1px solid rgba(143, 109, 255, .22);
    padding: 20px 18px;
    box-shadow: 12px 0 40px rgba(0,0,0,.18);
}

.sidebar-title {
    height: 54px;
    margin: 0 0 24px;
    font-size: 0;
    color: transparent;
    position: relative;
    border-radius: 14px;
}

.sidebar-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/img/logo.png') no-repeat left center / contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

.sidebar nav {
    gap: 7px;
}

.sidebar a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 11px 13px;
    border-radius: 13px;
    color: #c2bdd8;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    border: 1px solid transparent;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.sidebar a::before {
    content: "◆";
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(143, 109, 255, .12);
    color: var(--accent-2);
    font-size: 13px;
    flex: 0 0 22px;
}

.sidebar a[href*="statistics"]::before { content: "📊"; }
.sidebar a[href*="schedule"]::before { content: "🗓"; }
.sidebar a[href*="my.php"]::before { content: "🧙"; }
.sidebar a[href*="treasury"]::before { content: "💰"; }
.sidebar a[href*="fraps"]::before { content: "🎬"; }
.sidebar a[href*="admin"]::before { content: "⚙"; }
.sidebar a[href*="notifications"]::before { content: "🔔"; }
.sidebar a[href*="player"]::before { content: "👤"; }

.sidebar a:hover {
    background: linear-gradient(90deg, rgba(143, 109, 255, .18), rgba(242, 169, 59, .06));
    border-color: rgba(143, 109, 255, .28);
    color: #fff;
    transform: translateX(2px);
}

.sidebar a.active {
    background: linear-gradient(90deg, rgba(143, 109, 255, .28), rgba(242, 169, 59, .10));
    border-color: rgba(143, 109, 255, .48);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--accent), 0 8px 28px rgba(0,0,0,.14);
}

.sidebar a.active::before {
    background: rgba(242, 169, 59, .18);
    color: var(--accent-2);
}

.content {
    padding: 26px 30px 34px;
}

.topbar {
    min-height: 54px;
    align-items: flex-start;
}

.topbar h1 {
    font-size: 34px;
    letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
}

.topbar p {
    color: #aaa3c9;
}

.userbox {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 1px solid rgba(143, 109, 255, .26);
    border-radius: 16px;
    background: rgba(14, 15, 30, .72);
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
}

.userbox > span:not(.badge) {
    font-weight: 800;
    color: #fff;
    padding-left: 4px;
}

.badge {
    background: rgba(143, 109, 255, .18);
    border: 1px solid rgba(143, 109, 255, .30);
    color: #e7ddff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.logout,
.button-link,
.notifications-head button,
.notifications-all-link {
    background: rgba(143, 109, 255, .16);
    border-color: rgba(143, 109, 255, .32);
    color: #f4efff;
}

.logout:hover,
.button-link:hover,
.notifications-head button:hover,
.notifications-all-link:hover {
    background: rgba(143, 109, 255, .25);
}

.card {
    background: linear-gradient(180deg, rgba(18, 20, 36, .98), rgba(12, 18, 30, .98));
    border-color: rgba(143, 109, 255, .25);
    box-shadow: 0 16px 44px rgba(0,0,0,.16);
}

.card-head,
th {
    border-color: rgba(143, 109, 255, .22);
}

th {
    background: rgba(18, 17, 34, .88);
    color: #bcb4df;
}

th, td {
    border-bottom-color: rgba(143, 109, 255, .17);
}

input,
select,
textarea {
    border-color: rgba(143, 109, 255, .32);
    background: rgba(8, 12, 24, .88);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(242, 169, 59, .12);
}

button,
.button-link.active {
    background: linear-gradient(180deg, #ffc35f, #f0a629);
    color: #17100a;
    box-shadow: 0 10px 24px rgba(242, 169, 59, .14);
}

button:hover {
    filter: brightness(1.04);
}

.notifications-button {
    background: rgba(143, 109, 255, .18);
    border: 1px solid rgba(143, 109, 255, .34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.notifications-button strong {
    background: linear-gradient(180deg, #ff6c80, #e83f59);
    box-shadow: 0 6px 14px rgba(255, 92, 108, .25);
}

.notifications-menu {
    background: rgba(11, 13, 26, .98);
    border-color: rgba(143, 109, 255, .32);
}

.notifications-head,
.notification-row {
    border-color: rgba(143, 109, 255, .20);
}

.notification-card,
.notification-row:hover {
    background: rgba(143, 109, 255, .07);
}

.alert-error {
    background: rgba(255, 93, 115, .13);
    border-color: rgba(255, 93, 115, .42);
}

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

    .sidebar-title {
        width: 180px;
    }

    .userbox {
        margin-left: 0;
    }
}


:root {
    --field-bg: rgba(8, 13, 24, .88);
    --field-bg-focus: rgba(12, 20, 36, .96);
    --field-border: rgba(112, 87, 188, .36);
    --field-border-strong: rgba(241, 178, 62, .64);
    --form-panel: rgba(13, 18, 34, .52);
    --form-panel-border: rgba(112, 87, 188, .22);
}

input,
select,
textarea {
    background: var(--field-bg);
    border-color: var(--field-border);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus,
select:focus,
textarea:focus {
    background: var(--field-bg-focus);
    border-color: var(--field-border-strong);
    box-shadow: 0 0 0 3px rgba(241, 178, 62, .13);
}

input::placeholder,
textarea::placeholder {
    color: rgba(192, 201, 230, .45);
}

select option {
    background-color: #0b1020;
    color: #edf3ff;
}

.form-actions,
.action-row,
.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.form-strip {
    background: var(--form-panel);
    border: 1px solid var(--form-panel-border);
    border-radius: 16px;
}


/* Dodep separated sidebar button */
.sidebar {
    min-height: 100vh;
}

.sidebar-dodep {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(128, 91, 213, .28);
}

.sidebar-dodep-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 13px;
    border-radius: 13px;
    border: 1px solid rgba(255, 189, 66, .38);
    background:
        radial-gradient(circle at 12% 50%, rgba(255, 189, 66, .18), transparent 34%),
        linear-gradient(90deg, rgba(128, 91, 213, .18), rgba(20, 18, 36, .62));
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.sidebar-dodep-link span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 189, 66, .16);
}

.sidebar-dodep-link:hover,
.sidebar-dodep-link.active {
    border-color: rgba(255, 189, 66, .78);
    background:
        radial-gradient(circle at 12% 50%, rgba(255, 189, 66, .26), transparent 34%),
        linear-gradient(90deg, rgba(128, 91, 213, .28), rgba(42, 28, 48, .76));
    box-shadow: 0 0 0 1px rgba(255, 189, 66, .10), 0 14px 30px rgba(255, 189, 66, .10);
}


/* Zhir currency icon */
.zhir-inline-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 5px;
    vertical-align: -4px;
    display: inline-block;
    margin-right: 5px;
    image-rendering: -webkit-optimize-contrast;
}

.zhir-link .zhir-inline-icon,
.metric-card .zhir-inline-icon,
th .zhir-inline-icon,
h2 .zhir-inline-icon {
    vertical-align: -4px;
}

