html, body {
    height: 100%;
    background: #0D0D0D !important;
}

#loading-screen {
    background: #0D0D0D;
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    pointer-events: auto;
    opacity: 1;
    z-index: 999;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    font-size: 40px;
    display: inline-block;
    animation: spin 1.5s ease-in-out infinite;
    color: #078A38;
}

.navbar {
    background: #0D0D0D;
    border-bottom: 2px solid #078A38 !important;
    z-index: 500;
}

.nav-link {
    color: #E5E5E5;
    transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    transform-origin: center;
}

.nav-link:hover {
    transform: scale(1.05) rotate(-0.5deg);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dropdown-menu {
    background: #0D0D0D;
}

.dropdown-item {
    color: #E5E5E5;
    transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    transform-origin: center;
}

.dropdown-item:hover {
    background: transparent;
    transform: scale(1.05) rotate(-0.5deg);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.logout {
    transition: color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    transform-origin: center;
}

.logout:hover {
    background: transparent;
    transform: scale(1.05) rotate(-0.5deg);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: #dc3545 !important;
}

.navbar a img {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar a:hover img {
    transform: scale(1.05) rotate(-0.5deg);
}

.fw-almostbold {
    font-weight: 500 !important;
}

.icon-item {
    display: flex;
    align-items: center;
    width: 58px;
    padding: 6px 4px;
    font-size: 1.45rem;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.25s ease, color 0.25s ease;
    color: #E5E5E5;
}

.icon-item.nav-link {
    padding: 0.3rem 0.5rem;
}

.icon-item i {
    min-width: 28px;
    font-size: 1.15em;
    line-height: 1;
}

.icon-text {
    opacity: 0;
    margin-left: 6px;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 0.9rem;
}

.icon-item:hover {
    width: 110px;
    color: #078A38;
}

.icon-item:hover .icon-text {
    opacity: 1;
    transform: translateX(0);
}

.btn-outline-green {
    background-color: transparent;
    color: #E5E5E5;
    border: 2px solid #078A38;
    transition: all 0.25s ease-in-out;
}

.btn-outline-green:hover {
    background-color: #078A38;
    color: #E5E5E5;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 138, 56, 0.4);
}

.requests-badge {
    background-color: #078A38 !important;
    color: #E5E5E5 !important;
}

.nav-link .ticket-icon {
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

.announcement {
    background-color: #078A38;
    color: #E5E5E5;
    text-align: center;
    padding: 0.4rem;
    font-weight: 400;
    font-size: 0.95rem;
    position: sticky;
    width: 100% !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    color: #f5f5f5;
    font-size: 2.7rem;
}

.hero-text {
    color: #bbb;
    line-height: 1.6;
}

.r-logo {
    height: 40px;
    width: auto;
    position: relative;
    top: -3px;
}

.screenshot-showcase {
    position: relative;
    width: 520px;
    max-width: 100%;
    height: 340px;
}

.screenshot-showcase .screenshot {
    position: absolute;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.screenshot.left {
    transform: translateX(-180px) translateY(10px) rotate(-6deg) scale(0.9);
    z-index: 1;
}

.screenshot.middle {
    z-index: 2;
}

.screenshot.right {
    transform: translateX(180px) translateY(10px) rotate(6deg) scale(0.9);
    z-index: 1;
}

@media (max-width: 768px) {
    .screenshot-showcase {
        height: auto;
    }

    .screenshot.left {
        transform: translateX(-100px) translateY(10px) rotate(-4deg) scale(0.85);
    }

    .screenshot.right {
        transform: translateX(100px) translateY(10px) rotate(4deg) scale(0.85);
    }
}

.tiny-text {
    font-size: 0.75rem;
    color: #bbb;
    vertical-align: middle;
}

.hover-text {
    position: relative;
    color: #078A38;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hover-text::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #05692B;
    transition: width 0.3s ease, left 0.3s ease;
}

.hover-text:hover {
    color: #05692B;
}

.hover-text:hover::after {
    width: 100%;
    left: 0;
}

.with-note .tiny-text {
    display: block;
    font-size: 0.75em;
    color: #666;
    margin-top: -2px;
    margin-bottom: 1px;
}

.btn-success {
    background-color: #078A38 !important;
    border-color: #078A38 !important;
    color: #E5E5E5 !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-success:hover {
    background-color: #05692B !important;
    border-color: #05692B !important;
    color: #e6e6e6 !important;
    transform: scale(1.05) translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(7, 138, 56, 0.4) !important;
}

.document-card {
    background-color: rgba(27, 27, 27, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    color: #E5E5E5;
}

.document-title {
    color: #f5f5f5;
    font-size: 3rem;
}

.document-subtitle {
    color: #e6e6e6;
    font-size: 1.5rem;
}

.document-text {
    color: #bbb;
    line-height: 1.5;
}

ol.document-text,
ul.document-text {
    counter-reset: list-counter;
    list-style: none;
    padding-left: 0;
}

.document-text > li {
    counter-increment: list-counter;
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}

.document-text > li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    color: #888;
}

.document-text > li.golden::before {
    content: "\f005";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    color: #d4af37;
}

.document-text > li.golden {
    color: #d4af37;
    font-weight: 600;
}

.last-updated {
    color: #078A38;
}

.form-control,
.input-group-text {
    background-color: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E5E5E5;
}

.form-control::placeholder {
    color: #888;
}

.form-control:focus,
.input-group .form-control:focus {
    background-color: rgba(20, 20, 20, 0.85);
    border-color: #078A38;
    color: #E5E5E5;
    box-shadow: 0 0 0 0.15rem rgba(7, 138, 56, 0.35),
                0 0 12px rgba(7, 138, 56, 0.45);
}

.form-control.is-valid {
    border-color: #078A38;
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 0.15rem rgba(7, 138, 56, 0.35),
                0 0 14px rgba(7, 138, 56, 0.5);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.35),
                0 0 12px rgba(220, 53, 69, 0.45);
}

.form-check-input {
    background-color: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.form-check-input:checked {
    background-color: #078A38;
    border-color: #078A38;
}

.form-check-input:focus {
    border-color: #078A38;
    box-shadow: 0 0 0 0.15rem rgba(7, 138, 56, 0.35);
}

.glass-card {
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    color: #E5E5E5;
    max-width: 900px;
}

.btn-outline-discord {
    background-color: transparent;
    color: #fff;
    border: 2px solid #5865F2;
    transition: all 0.25s ease-in-out;
}

.btn-outline-discord:hover {
    background-color: #5865F2;
    color: #fff;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.hover-logout {
    position: relative;
    color: #dc3545;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hover-logout::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #b02a37;
    transition: width 0.3s ease, left 0.3s ease;
}

.hover-logout:hover {
    color: #b02a37;
}

.hover-logout:hover::after {
    width: 100%;
    left: 0;
}

.tooltip-dark {
    --bs-tooltip-bg: #1a1a1a;
    --bs-tooltip-color: #E5E5E5;
    --bs-tooltip-border-radius: 10px;
}