@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #1a1a1a;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.navbar-scroll::-webkit-scrollbar,
textarea::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.navbar-scroll::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
    background: #1a1a1a;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.navbar-scroll::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 20px;
    border: 2px solid #1a1a1a;
}

body {
    background-color: #121212;
    color: #ffffff;
    overflow-x: hidden;
}

.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #1a1a1a 0%, #000000 100%);
}

.login-box {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 400px;
    border-top: 5px solid #d4af37;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #d4af37;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    padding-right: 58px;
    background: #2a2a2a;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.eye-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon:hover {
    color: #fff;
}

.btn {
    width: 100%;
    padding: 15px;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #f1c40f;
}

.rank-down-btn,
.rank-up-btn,
.btn-small,
.danger-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.btn-small {
    background: #d4af37;
    color: #000;
}

.danger-btn {
    background: #ff4757;
    color: #fff;
    margin-top: 8px;
}

.rank-down-btn {
    background: #d4af37;
    color: #fff;
    margin-top: 8px;
}

.rank-up-btn {
    background: #1a6426;
    color: #fff;
    margin-top: 8px;
}

.navbar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1500;
    top: 0;
    left: 0;
    background-color: #1a1a1a;
    overflow-x: hidden;
    overflow-y: hidden;
    transition: width 0.4s ease;
    border-right: 2px solid #d4af37;
}

.navbar.open {
    width: var(--nav-width, 280px);
}

.navbar-top {
    height: 64px;
    display: flex;
    align-items: center;
    padding-left: 18px;
    padding-right: 60px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.navbar-logo-fixed {
    font-size: 24px;
    font-weight: 800;
    color: #d4af37;
    text-shadow: 0 0 12px rgba(212,175,55,0.5);
    white-space: nowrap;
}

.hamburger {
    width: 44px;
    height: 44px;
    font-size: 28px;
    cursor: pointer;
    color: #d4af37;
    position: fixed;
    top: 10px;
    left: 14px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: left 0.4s ease, color 0.3s ease, background 0.3s ease;
    user-select: none;
}

.hamburger:hover {
    color: #fff;
    background: #2a2a2a;
}

body.nav-open .hamburger {
    left: calc(var(--nav-width, 280px) - 58px);
}

.navbar-scroll {
    overflow-y: auto;
    height: calc(100vh - 64px);
    padding-bottom: 25px;
}

.navbar a,
.dropbtn {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    color: #818181;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.25s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.navbar a:hover,
.dropbtn:hover {
    color: #f1c40f;
    background-color: #2a2a2a;
}

.navbar a i,
.dropbtn i {
    width: 24px;
    color: #d4af37;
    text-align: center;
}

.dropbtn {
    justify-content: space-between;
}

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

.dropdown-arrow {
    margin-left: auto;
    transition: 0.25s ease;
}

.dropbtn.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-container {
    display: none;
    background-color: #262626;
    padding-left: 10px;
}

.dropdown-container.open {
    display: block;
}

.badge {
    background: #ff4757;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .navbar.open {
        --nav-width: 86vw;
    }

    body.nav-open .hamburger {
        left: calc(var(--nav-width, 86vw) - 58px);
    }
}

.dropbtn {
    justify-content: space-between;
}

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

.dropdown-arrow {
    margin-left: auto;
    transition: 0.25s ease;
}

.dropbtn.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-container {
    display: none;
    background-color: #262626;
    padding-left: 10px;
}

.dropdown-container.open {
    display: block;
}

.badge {
    background: #ff4757;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: auto;
}

.dropbtn {
    justify-content: space-between;
}

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

.dropdown-arrow {
    margin-left: auto;
    transition: 0.25s ease;
}

.dropbtn.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-container {
    display: none;
    background-color: #262626;
    padding-left: 10px;
}

.dropdown-container.open {
    display: block;
}

.badge {
    background: #ff4757;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: auto;
}

#main-content {
    transition: margin-left .5s;
    padding: 20px;
    margin-top: 60px;
    min-height: calc(100vh - 110px);
}

.bcmu-logo-text {
    text-align: center;
    font-size: 50px;
    font-weight: 800;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    margin-bottom: 40px;
}

.notification-window {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    max-width: 900px;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-left: 5px solid #d4af37;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #333;
    animation: fadeIn 0.5s ease-in-out;
}

.notification-item:last-child {
    border-bottom: none;
}

.page-title {
    color: #d4af37;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.data-table th {
    background: #d4af37;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
}

.data-table tr:hover {
    background: #2a2a2a;
}

.admin-form-container {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid #d4af37;
    max-width: 650px;
    margin: 20px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
    outline: none;
}

.form-control:focus {
    border-color: #d4af37;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: #d4af37;
}

.row-green {
    color: #2ecc71;
    font-weight: bold;
}

.row-yellow {
    color: #f1c40f;
    font-weight: bold;
}

.row-red {
    color: #ff4757;
    font-weight: bold;
}

.rider-badge {
    background: #2ecc71;
    color: #000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    text-transform: uppercase;
}

.infobox {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    padding: 16px 20px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    animation: infoboxIn 0.35s ease forwards;
    box-shadow: 0 8px 25px rgba(0,0,0,0.45);
}

.infobox.success {
    background: #2ecc71;
    color: #000;
}

.infobox.error {
    background: #ff4757;
}

.infobox.info {
    background: #d4af37;
    color: #000;
}

.post-card {
    animation: fadeIn 0.5s ease-in-out;
}

.admin-reply {
    color: #d4af37;
    margin-top: 12px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.admin-card {
    display: block;
    background: #1e1e1e;
    color: #d4af37;
    padding: 25px;
    text-decoration: none;
    border-radius: 10px;
    border-top: 5px solid #d4af37;
    box-shadow: 0 5px 15px rgba(0,0,0,0.35);
    transition: 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
    background: #2a2a2a;
}

.inline-actions {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.summary-copy {
    margin-top: 35px;
}

.footer-credit {
    color: #666;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

.fade-page {
    animation: fadeIn 0.45s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes infoboxIn {
    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .navbar.open {
        width: 86vw;
    }

    #main-content {
        margin-top: 75px;
        padding: 15px;
    }

    .bcmu-logo-text {
        font-size: 38px;
    }

    .login-box {
        width: calc(100% - 30px);
        padding: 28px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .admin-form-container,
    .notification-window {
        max-width: 100%;
    }
}

.lockdown-page {
    min-height: 100vh;
    background: radial-gradient(circle, #1a1a1a 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lock-card {
    background: rgba(30, 30, 30, 0.94);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #d4af37;
    z-index: 10;
    position: relative;
    max-width: 620px;
    width: calc(100% - 30px);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.25);
    animation: lockFloat 4s infinite ease-in-out, lockGlow 2s infinite ease-in-out;
}

.lock-card h1 {
    margin-bottom: 18px;
    font-size: 32px;
}

.lock-card p {
    margin-bottom: 18px;
    font-size: 17px;
}

.countdown-box {
    font-size: 2rem;
    color: #d4af37;
    margin: 20px 0;
    font-weight: bold;
}

.alert-mode .lock-card h1 {
    color: #e74c3c;
}

.winter-mode .lock-card h1 {
    color: #3498db;
}

.snow {
    position: fixed;
    top: -10px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    z-index: 1;
}

@keyframes fall {
    to {
        transform: translateY(105vh);
    }
}

@keyframes lockFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes lockGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 45px rgba(255, 71, 87, 0.35);
    }
}

.notification-item {
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.notification-fade {
    opacity: 0.35 !important;
    transform: scale(0.98);
}

.notification-hidden {
    display: none !important;
}

.command-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.command-modal-overlay.open {
    display: flex !important;
}

.command-open-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #d4af37, #f1c40f);
    color: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 0 18px rgba(212,175,55,0.35);
    transition: 0.25s ease;
}

.command-open-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 28px rgba(212,175,55,0.65);
}

.command-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(9px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.command-modal-overlay.open {
    display: flex !important;
}

.command-modal {
    width: 430px;
    max-width: calc(100% - 30px);
    background: #1e1e1e;
    border-radius: 18px;
    border-top: 5px solid #d4af37;
    padding: 38px;
    position: relative;
    box-shadow: 0 20px 55px rgba(0,0,0,0.75), 0 0 30px rgba(212,175,55,0.22);
    animation: commandPop 0.28s ease;
}

.command-modal h2 {
    color: #d4af37;
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    text-shadow: 0 0 14px rgba(212,175,55,0.35);
}

.command-modal .form-control {
    border: 1px solid #555;
    background: #151515;
}

.command-modal .form-control:focus {
    border-color: #d4af37;
    box-shadow: 0 0 12px rgba(212,175,55,0.25);
}

.command-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #2a2a2a;
    color: #d4af37;
    cursor: pointer;
    font-size: 17px;
    transition: 0.25s ease;
}

.command-close-btn:hover {
    background: #ff4757;
    color: #fff;
}

@keyframes commandPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#deleteModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

#deleteModal > div {
    background: #1e1e1e !important;
    border-top: 4px solid #ff4757;
    border-radius: 10px;
    padding: 25px;
    width: 340px;
    max-width: calc(100% - 30px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    text-align: center;
}

#deleteModal p {
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
}

#deleteModal button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
    transition: 0.2s ease;
}

#deleteModal .danger-btn {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
}

#deleteModal .danger-btn:hover {
    background: #ff6b81;
    border-color: #ff6b81;
}

#deleteModal button[type="button"] {
    background: #2a2a2a;
    border: 1px solid #444;
}

#deleteModal button[type="button"]:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.profile-menu {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 5000;
}

.profile-icon {
    width: 44px;
    height: 44px;
    background: #1e1e1e;
    color: #d4af37;
    border: 2px solid #d4af37;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 0 18px rgba(212,175,55,0.25);
    transition: 0.25s;
}

.profile-icon:hover {
    background: #d4af37;
    color: #000;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: 55px;
    width: 230px;
    background: #1e1e1e;
    border-top: 4px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
    display: none;
    overflow: hidden;
}

.profile-dropdown.open {
    display: block;
    animation: fadeIn 0.25s ease;
}

.profile-dropdown a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #818181;
    text-decoration: none;
    padding: 14px 18px;
    transition: 0.25s;
}

.profile-dropdown a i {
    color: #d4af37;
    width: 22px;
}

.profile-dropdown a:hover {
    color: #f1c40f;
    background: #2a2a2a;
}

.password-strength {
    width: 100%;
    height: 12px;
    background: #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 20px;
    transition: 0.3s;
}

.password-strength-bar.weak {
    background: #ff4757;
}

.password-strength-bar.medium {
    background: #f1c40f;
}

.password-strength-bar.good {
    background: #2ecc71;
}

.password-strength-bar.strong {
    background: #00ff9d;
    box-shadow: 0 0 15px rgba(0,255,157,0.5);
}

.password-strength-text {
    color: #818181;
    margin-bottom: 20px;
    font-size: 14px;
}

.chatbox {
    background: #1e1e1e;
    border-radius: 18px;
    border-top: 5px solid #d4af37;
    max-width: 1100px;
    height: 72vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 35px rgba(0,0,0,0.55);
    overflow: hidden;
}
 
.chatbox-header {
    height: 70px;
    padding: 0 22px;
    background: #181818;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
 
.chatbox-header strong {
    color: #d4af37;
    font-size: 20px;
}
 
.chatbox-header span {
    display: block;
    color: #818181;
    font-size: 13px;
    margin-top: 4px;
}
 
.chatbox-header i {
    color: #d4af37;
    font-size: 26px;
}
 
.chatbox-body {
    flex: 1;
    padding: 22px;
    overflow-y: auto;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,0.08), transparent 30%),
        #121212;
}
 
.chat-message {
    background: #242424;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    max-width: 75%;
    border-left: 4px solid #d4af37;
    animation: fadeIn 0.25s ease;
}
 
.chat-message-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}
 
.chat-message-top strong {
    color: #d4af37;
}
 
.chat-message-top small {
    color: #777;
}
 
.chat-message p {
    color: #fff;
    line-height: 1.5;
}
 
.chat-reactions {
    margin-top: 10px;
}
 
.chat-reactions form {
    display: flex;
    gap: 6px;
}
 
.chat-reactions button {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 5px 8px;
    cursor: pointer;
    transition: 0.2s;
}
 
.chat-reactions button:hover {
    transform: scale(1.15);
    background: #2a2a2a;
}
 
.chatbox-footer {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #181818;
    border-top: 1px solid #333;
}
 
.chatbox-footer input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 25px;
    padding: 13px 18px;
    outline: none;
}
 
.chatbox-footer input:focus {
    border-color: #d4af37;
}
 
.chatbox-footer button,
.emoji-toggle {
    width: 46px;
    height: 46px;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: 0.25s;
}
 
.chatbox-footer button:hover,
.emoji-toggle:hover {
    background: #f1c40f;
    transform: scale(1.05);
}
 
.emoji-panel {
    position: absolute;
    left: 15px;
    bottom: 75px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-top: 4px solid #d4af37;
    border-radius: 15px;
    padding: 12px;
    display: none;
    grid-template-columns: repeat(4, 40px);
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.55);
}
 
.emoji-panel.open {
    display: grid;
}
 
.emoji-panel button {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 10px;
    font-size: 20px;
}

.profile-menu {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 5000;
}

.profile-icon {
    width: 44px;
    height: 44px;
    background: #1e1e1e;
    color: #d4af37;
    border: 2px solid #d4af37;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 0 18px rgba(212,175,55,0.25);
    transition: 0.25s;
}

.profile-icon:hover {
    background: #d4af37;
    color: #000;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: 55px;
    width: 230px;
    background: #1e1e1e;
    border-top: 4px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
    display: none;
    overflow: hidden;
}

.profile-dropdown.open {
    display: block;
    animation: fadeIn 0.25s ease;
}

.profile-dropdown a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #818181;
    text-decoration: none;
    padding: 14px 18px;
    transition: 0.25s;
}

.profile-dropdown a i {
    color: #d4af37;
    width: 22px;
}

.profile-dropdown a:hover {
    color: #f1c40f;
    background: #2a2a2a;
}

.password-strength {
    width: 100%;
    height: 12px;
    background: #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 20px;
    transition: 0.3s;
}

.password-strength-bar.weak {
    background: #ff4757;
}

.password-strength-bar.medium {
    background: #f1c40f;
}

.password-strength-bar.good {
    background: #2ecc71;
}

.password-strength-bar.strong {
    background: #00ff9d;
    box-shadow: 0 0 15px rgba(0,255,157,0.5);
}

.password-strength-text {
    color: #818181;
    margin-bottom: 20px;
    font-size: 14px;
}

.chatbox-container {
    max-width: 1000px;
    height: 72vh;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 18px;
    border-top: 5px solid #d4af37;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.55);
}

.chatbox-messages {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,0.08), transparent 30%),
        #121212;
}

.chat-message {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chat-message.own {
    align-items: flex-end;
}

.chat-bubble {
    background: #242424;
    padding: 14px 16px;
    border-radius: 16px;
    max-width: 70%;
    border-left: 4px solid #d4af37;
    box-shadow: 0 5px 14px rgba(0,0,0,0.25);
}

.chat-message.own .chat-bubble {
    background: #d4af37;
    color: #000;
    border-left: none;
}

.chat-bubble strong {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
}

.chat-message.own .chat-bubble strong {
    color: #000;
}

.chat-bubble p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.chat-bubble small {
    opacity: 0.7;
}

.chat-reactions {
    display: flex;
    gap: 6px;
    margin-top: 7px;
}

.chat-reactions button {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 5px 8px;
    cursor: pointer;
    transition: 0.2s;
}

.chat-reactions button:hover {
    transform: scale(1.15);
    background: #2a2a2a;
}

.chatbox-footer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #181818;
    border-top: 1px solid #333;
}

.chatbox-footer input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 25px;
    padding: 13px 18px;
    outline: none;
}

.chatbox-footer input:focus {
    border-color: #d4af37;
}

.chatbox-footer button,
.emoji-btn {
    width: 46px;
    height: 46px;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: 0.25s;
}

.chatbox-footer button:hover,
.emoji-btn:hover {
    background: #f1c40f;
    transform: scale(1.05);
}

.emoji-panel {
    position: absolute;
    left: 15px;
    bottom: 75px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-top: 4px solid #d4af37;
    border-radius: 15px;
    padding: 12px;
    display: none;
    grid-template-columns: repeat(4, 40px);
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.55);
    z-index: 20;
}

.emoji-panel.open {
    display: grid;
}

.emoji-panel button {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border-radius: 10px;
    font-size: 20px;
}

.emoji-panel {
    position: absolute;
    left: 15px;
    bottom: 75px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-top: 4px solid #d4af37;
    border-radius: 15px;
    padding: 12px;
    display: none;
    grid-template-columns: repeat(4, 40px);
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.55);
    z-index: 9999;
}

.emoji-panel.open {
    display: grid !important;
}

.emoji-panel button {
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
}

.emoji-panel button:hover {
    background: #d4af37;
    color: #000;
}

.maintenance-real {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(to bottom, #050505 0%, #111 45%, #050505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-sky-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(212,175,55,0.16), transparent 30%),
        radial-gradient(circle at 80% 30%, rgba(255,71,87,0.12), transparent 25%);
    animation: glowMove 8s ease-in-out infinite;
}

.maintenance-board {
    position: relative;
    z-index: 30;
    width: 680px;
    max-width: calc(100% - 30px);
    padding: 48px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(35,35,35,0.96), rgba(18,18,18,0.96));
    border-radius: 24px;
    border: 1px solid rgba(212,175,55,0.55);
    border-top: 6px solid #d4af37;
    box-shadow:
        0 30px 90px rgba(0,0,0,0.85),
        0 0 45px rgba(212,175,55,0.2),
        inset 0 0 18px rgba(255,255,255,0.03);
    animation: boardFloat 4.5s ease-in-out infinite;
}

.board-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #d4af37;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 0 25px rgba(212,175,55,0.55);
    animation: iconPulse 1.7s ease-in-out infinite;
}

.maintenance-board h1 {
    color: #d4af37;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-shadow: 0 0 18px rgba(212,175,55,0.5);
}

.maintenance-board p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
}

.maintenance-board small {
    color: #aaa;
}

.progress-track {
    width: 100%;
    height: 13px;
    border-radius: 30px;
    background: #080808;
    border: 1px solid #333;
    overflow: hidden;
    margin: 25px 0;
}

.progress-track span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: 30px;
    background: linear-gradient(90deg, #d4af37, #f1c40f, #d4af37);
    box-shadow: 0 0 18px rgba(212,175,55,0.5);
    animation: progressMove 2s ease-in-out infinite;
}

.real-crane {
    position: absolute;
    left: 7%;
    top: 9%;
    width: 420px;
    height: 420px;
    z-index: 10;
    opacity: 0.95;
}

.crane-mast {
    position: absolute;
    left: 82px;
    top: 95px;
    width: 18px;
    height: 310px;
    background:
        repeating-linear-gradient(
            45deg,
            #d4af37 0 9px,
            #111 9px 18px
        );
    box-shadow: 0 0 12px rgba(212,175,55,0.25);
}

.crane-jib {
    position: absolute;
    left: 82px;
    top: 95px;
    width: 340px;
    height: 16px;
    background:
        repeating-linear-gradient(
            90deg,
            #d4af37 0 24px,
            #b68d1f 24px 48px
        );
    transform-origin: left center;
    animation: craneSwingReal 6s ease-in-out infinite;
}

.crane-counter {
    position: absolute;
    left: 10px;
    top: 88px;
    width: 80px;
    height: 28px;
    background: #8a6b18;
    border: 2px solid #d4af37;
}

.crane-cable-real {
    position: absolute;
    left: 345px;
    top: 111px;
    width: 3px;
    height: 120px;
    background: #d4af37;
    animation: cableReal 3.2s ease-in-out infinite;
}

.crane-load-real {
    position: absolute;
    left: 326px;
    top: 225px;
    width: 42px;
    height: 36px;
    background: #2a2a2a;
    border: 3px solid #d4af37;
    box-shadow: 0 8px 18px rgba(0,0,0,0.55);
    animation: loadReal 3.2s ease-in-out infinite;
}

.site-light {
    position: absolute;
    bottom: 75px;
    width: 55px;
    height: 120px;
    background: #222;
    z-index: 8;
}

.site-light::before {
    content: '';
    position: absolute;
    top: -35px;
    left: -18px;
    width: 90px;
    height: 45px;
    background: #d4af37;
    border-radius: 8px;
    box-shadow: 0 0 35px rgba(212,175,55,0.65);
    animation: lightBlink 1.3s infinite;
}

.light-left {
    left: 18%;
}

.light-right {
    right: 18%;
}

.worker-real {
    position: absolute;
    bottom: 78px;
    width: 42px;
    height: 86px;
    z-index: 15;
    animation: workerWalkReal 10s linear infinite;
}

.worker-b {
    animation-duration: 13s;
    animation-delay: 2s;
}

.helmet {
    position: absolute;
    top: 0;
    left: 8px;
    width: 26px;
    height: 18px;
    background: #d4af37;
    border-radius: 14px 14px 4px 4px;
}

.body {
    position: absolute;
    top: 25px;
    left: 9px;
    width: 24px;
    height: 34px;
    background: #2a2a2a;
    border: 2px solid #d4af37;
    border-radius: 6px;
}

.leg {
    position: absolute;
    top: 60px;
    width: 8px;
    height: 28px;
    background: #777;
    transform-origin: top center;
}

.leg-one {
    left: 11px;
    animation: legMoveOne 0.55s infinite;
}

.leg-two {
    right: 11px;
    animation: legMoveTwo 0.55s infinite;
}

.worker-a {
    left: -70px;
}

.worker-b {
    left: -140px;
}

.welding-area {
    position: absolute;
    right: 28%;
    bottom: 118px;
    width: 110px;
    height: 90px;
    z-index: 12;
}

.welder {
    position: absolute;
    bottom: 0;
    width: 48px;
    height: 55px;
    background: #252525;
    border: 2px solid #d4af37;
    border-radius: 10px;
    animation: weldMove 0.8s ease-in-out infinite;
}

.spark-real {
    position: absolute;
    left: 55px;
    bottom: 35px;
    width: 7px;
    height: 7px;
    background: #f1c40f;
    border-radius: 50%;
    box-shadow: 0 0 15px #f1c40f;
    animation: sparkReal 0.9s ease-out infinite;
}

.s2 {
    animation-delay: 0.15s;
}

.s3 {
    animation-delay: 0.3s;
}

.s4 {
    animation-delay: 0.45s;
}

.barrier {
    position: absolute;
    bottom: 62px;
    width: 260px;
    height: 34px;
    background:
        repeating-linear-gradient(
            45deg,
            #d4af37 0 18px,
            #151515 18px 36px
        );
    border: 2px solid #333;
    z-index: 9;
}

.barrier-left {
    left: 9%;
}

.barrier-right {
    right: 9%;
}

.road-floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 82px;
    background:
        linear-gradient(#1a1a1a, #080808);
    border-top: 4px solid #333;
}

.road-floor::after {
    content: '';
    position: absolute;
    left: 0;
    top: 38px;
    width: 100%;
    height: 5px;
    background:
        repeating-linear-gradient(
            90deg,
            #d4af37 0 60px,
            transparent 60px 110px
        );
    animation: roadLine 4s linear infinite;
}

@keyframes glowMove {
    0%, 100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes boardFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes progressMove {
    0% {
        transform: translateX(-120%);
    }

    50% {
        transform: translateX(80%);
    }

    100% {
        transform: translateX(260%);
    }
}

@keyframes craneSwingReal {
    0%, 100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(4deg);
    }
}

@keyframes cableReal {
    0%, 100% {
        height: 95px;
    }

    50% {
        height: 150px;
    }
}

@keyframes loadReal {
    0%, 100% {
        top: 200px;
        transform: translateX(0);
    }

    50% {
        top: 255px;
        transform: translateX(22px);
    }
}

@keyframes lightBlink {
    0%, 100% {
        opacity: 0.65;
    }

    50% {
        opacity: 1;
    }
}

@keyframes workerWalkReal {
    from {
        left: -80px;
    }

    to {
        left: 110%;
    }
}

@keyframes legMoveOne {
    0%, 100% {
        transform: rotate(18deg);
    }

    50% {
        transform: rotate(-18deg);
    }
}

@keyframes legMoveTwo {
    0%, 100% {
        transform: rotate(-18deg);
    }

    50% {
        transform: rotate(18deg);
    }
}

@keyframes weldMove {
    0%, 100% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(6deg);
    }
}

@keyframes sparkReal {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(55px, -42px) scale(0.2);
    }
}

@keyframes roadLine {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 110px 0;
    }
}

@media (max-width: 768px) {
    .maintenance-board {
        padding: 32px 22px;
    }

    .maintenance-board h1 {
        font-size: 30px;
    }

    .real-crane {
        transform: scale(0.65);
        left: -60px;
        top: 5%;
    }

    .site-light,
    .barrier,
    .welding-area {
        display: none;
    }
}