:root {
    --bg-primary: #000000;
    --bg-card: #0A0A0A;
    --accent-orange: #FF6B35;
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --border-color: #1A1A1A;
    --discord-color: #5865F2;
    --azw-color: #FF393F;
    --forms-color: #6A3EB9;
    --notif-color: #F9F9F9;
    --dark-oat: #66461C;
    --new-text: #CCCCCC;
}


body.nether {
    --bg-primary: #2a1a2e;
    --bg-card: #1a0f1f;
    --accent-orange: #FF6B35;
    --text-primary: #ab5555;
    --text-secondary: #802e2e;
    --border-color: #4a2a3f;
    --new-text: #ab5555;
    --hover-btn: rgba(61, 26, 26, 0.5);
    --hover-border: #ab5555;
}

body.end {
    --bg-primary: #0a0a1a;
    --bg-card: #1a1a3f;
    --accent-orange: #d4af37;
    --text-primary: #7731bd;
    --text-secondary: #9044db;
    --border-color: #2a2a4f;
    --new-text: #7f30cf;
    --hover-btn: rgba(109, 82, 96, 0.3);
    --hover-border: #4E3A44;
}

@font-face {
    font-family: 'Minecraft';
    src: url('fonts/Minecraftia-Regular.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    line-height: 1.6;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.container, .container-regeln {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.azw-logo {
    height: 55px;
    width: auto;
    font-weight: 700;
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(2px);
    font-size: 14px;
}

.nav-link:hover {
    position: relative;
    border-color: var(--hover-border);
    background: var(--hover-btn);
    color: #fff;
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-primary);
}

.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-button:hover {
    border-color: var(--hover-border);
    background: var(--hover-btn);
    color: #fff;
}

.dropdown-button:active {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: auto;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    min-width: unset;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scaleY(0.95);
    transform-origin: top;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    overflow: hidden;
    width: 100%;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-family: Minecraft, sans-serif;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

body.nether .dropdown-item:hover {
    background-color: rgba(61, 26, 26, 0.5);
    color: #8b3a3a;
}

body.end .dropdown-item:hover {
    background-color: rgba(109, 82, 96, 0.3);
    color: #8b7a84;
}

.dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.2);
}

body.nether .dropdown-item:active {
    background-color: rgba(61, 26, 26, 0.7);
}

body.end .dropdown-item:active {
    background-color: rgba(109, 82, 96, 0.5);
}

.dropdown-item + .dropdown-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

header {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 2rem;
    margin-top: 3rem;
    margin-bottom: 0.5rem;
}

.minecraft-title, .regeln-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.minecraft-title {
    padding-top: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 650px;
    height: auto;
}

.regeln-title {
        margin-bottom: 0.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 900;
        margin-bottom: 0.25rem;
        font-size: 2.5rem;
        z-index: 1;
        color: var(--new-text);
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
        font-family: Minecraft, sans-serif;
        margin-top: 1.67rem;
}

.minecraft-title-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    margin: 0 auto;
    z-index: 1;
}

.subtitle {
    color: var(--new-text);
    margin-bottom: 1.4rem;
    font-size: 2rem;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    font-family: Minecraft, sans-serif;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem 2rem;
    flex: 1;
}

main .status-server {
    margin-top: 0;
}

.regeln-section {
    margin-top: 0.1rem;
}

.regeln-btn {
    margin: 0.3rem auto 2rem;
    display: inline-block;
}

.regeln-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.regeln-parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

[class^="div"] {
    border-radius: 12px;
    backdrop-filter: blur(4px);
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[class^="div"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

[class^="div"]:hover {
    border-color: var(--text-primary);
    background: rgba(10, 10, 10, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(255, 255, 255, 0.2);
}

[class^="div"]:hover::before {
    opacity: 1;
}

.rule-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1;
    font-family: Minecraft, sans-serif;
}

.rule-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.rule-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rule-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.status-server {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(1px);
    border-radius: 12px;
    padding: 2rem 7.5rem;
    max-width: 100%;
    width: min(100%, 900px);
    margin: 0 auto 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.server-ip {
    background: rgba(15, 15, 15, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    padding: 1.2rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.server-ip:hover {
    border-color: var(--text-primary);
    transition: all 0.3s ease;
}

.status-indicator {
    position: relative;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.btn-regeln {
    width: 280px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(2px);
    text-align: center;
    margin: 0 auto;
}

.btn-regeln:hover {
    position: relative;
    border-color: var(--hover-border);
    background: var(--hover-btn);
    color: #fff;
}

.copy-notification {
    position: fixed;
    top: 8rem;
    right: 2rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 5;
}

.copy-notification.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

footer {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    text-align: center;
    color: var(--text-primary);
    padding: 22px 32px;
    font-size: 12px;
    line-height: 1.6;
}

.form-container {
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 1.3rem 6rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    margin: 30px;
    position: relative;
    overflow: visible;
}

.erfolg-section {
    margin-top: 0.1rem;
}

.erfolg-btn {
    margin: 0.3rem auto 2rem;
    display: inline-block;
}

.btn-erfolg {
    width: 280px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 800;
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(2px);
    text-align: center;
    margin: 0 auto;
}

    .btn-erfolg:hover {
        position: relative;
        border-color: var(--hover-border);
        background: var(--hover-btn);
        color: #fff;
    }

.header-erfolg {
    min-height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 10rem;
    margin-bottom: 0.5rem;
    font-family: Minecraft, sans-serif;
    color: var(--new-text);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
    .erfolg-title {
        margin-bottom: 0.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 900;
        margin-bottom: 0.25rem;
        font-size: 3rem;
        z-index: 1;
        color: var(--new-text);
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
        font-family: Minecraft, sans-serif;
        margin-top: 1.67rem;
    }

    .subtitle-erfolg {
        color: var(--new-text);
        font-size: 1.67rem;
        z-index: 1;
        margin-top: 1.5rem;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
        font-family: Minecraft, sans-serif;
        margin-bottom: 1.5rem;
    }

@media (max-width: 1024px) {
    .regeln-parent {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    [class^="div"] {
        min-height: 260px;
        padding: 1.5rem;
    }

    .rule-number {
        font-size: 1.8rem;
    }

    .rule-title {
        font-size: 1rem;
    }

    .rule-content {
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .status-server {
        padding: 2rem 1.6rem;
    }

    .minecraft-title-img {
        max-height: 150px;
    }
}

@media (max-width: 768px) {
    header {
        min-height: 15vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 1rem 2rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 120px;
        right: 5px;
        width: 200px;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.2s ease;
        font-weight: 600;
        padding: 20px 0;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        background: rgba(10, 10, 10, 0.3);
        backdrop-filter: blur(2px);
    }

        .nav-links.active {
            display: flex;
        }

    .hamburger {
        display: block;
    }

    .dropdown-menu {
        left: auto;
        right: 0;
    }

    body {
        padding: 2rem 1rem;
    }

    .regeln-parent {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    [class^="div"] {
        min-height: 220px;
        padding: 1.5rem;
    }

    .rule-number {
        font-size: 1.5rem;
    }

    .rule-title {
        font-size: 0.95rem;
    }

    .rule-content {
        font-size: 0.8rem;
    }

    .btn-regeln {
        width: 100%;
        max-width: 320px;
    }

    .subtitle {
        color: var(--new-text);
        font-size: 1.18rem;
        z-index: 1;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
        font-family: Minecraft, sans-serif;
        white-space: nowrap;
    }

    .minecraft-title {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 115%;
    }

    .minecraft-title {
        margin-bottom: 1rem;
        flex-direction: column;
    }

    .regeln-title {
        margin-bottom: 0.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 900;
        margin-bottom: 0.25rem;
        font-size: 1.2rem;
        z-index: 1;
        color: var(--new-text);
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
        font-family: Minecraft, sans-serif;
        margin-top: 1.67rem;
    }

    .form-container {
        background: rgba(10, 10, 10, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(6px);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        padding: 2rem;
    }

    .erfolg-section {
        margin-top: 0.1rem;
    }

    .erfolg-btn {
        margin: 0.3rem auto 2rem;
        display: inline-block;
    }

    .btn-erfolg {
        width: 280px;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.2s ease;
        font-weight: 800;
        font-size: 1.5rem;
        padding: 1.5rem 3rem;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        background: rgba(10, 10, 10, 0.3);
        backdrop-filter: blur(2px);
        text-align: center;
        margin: 0 auto;
    }

        .btn-erfolg:hover {
            position: relative;
            border-color: var(--hover-border);
            background: var(--hover-btn);
            color: #fff;
        }

    .header-erfolg {
        min-height: 10vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 4rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle-erfolg {
        color: var(--new-text);
        font-size: 1.25rem;
        z-index: 1;
        margin-top: 1.5rem;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
        font-family: Minecraft, sans-serif;
        margin-bottom: 1.5rem;
    }
    
    .erfolg-title {
        font-size: 1.67rem;
    }

    .login-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 0.75rem;
    }

    [class^="div"] {
        min-height: auto;
        padding: 1.2rem;
    }

    .rule-number {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }

    .rule-title {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }

    .rule-content {
        font-size: 0.75rem;
    }
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: -1;
}

video.active {
    display: block;
}

.form-title  {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: 'Minecraft', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="text"],
input[type="text"],
input[type="text"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
}

    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="text"]:focus,
    input[type="text"]:focus,
    input[type="text"]:focus,
    input[type="text"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--hover-border);
        background: rgba(15, 15, 15, 0.7);
        box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
    }

input::placeholder {
    color: #666666;
}

.form-group, .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

button[type="submit"], select {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
}

    button[type="submit"]:hover select:hover {
        border-color: var(--hover-border);
        background: var(--hover-btn);
        color: #FFFFFF;
    }

    button[type="submit"]:active  select:active{
        background: rgba(255, 255, 255, 0.1);
    }

.form-note {
    font-size: 0.8rem;
    color: rgb(160 160 160);
    margin-top: 1rem;
    text-align: center;
}

/* ── Video Background ── */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

    video.active {
        display: block;
    }

.login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 2.5rem;
    width: min(90vw, 400px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: fadeUp .6s ease both;
}

.login-title {
        margin-bottom: 0.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 900;
        margin-bottom: 0.25rem;
        font-size: 2.5rem;
        z-index: 1;
        color: var(--new-text);
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
        font-family: Minecraft, sans-serif;
        margin-top: 1.67rem;
}

.login-sub {
    color: var(--text-secondary);
    font-size: .82rem;
    text-align: center;
    margin-bottom: 2rem;
}

.login-box input[type="password"] {
    width: 100%;
    padding: .8rem 1rem;
    background: rgba(15,15,15,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter',sans-serif;
    transition: all .2s;
    outline: none;
    margin-bottom: 1rem;
}

    .login-box input[type="password"]:focus {
        border-color: var(--hover-border);
        background: rgba(15,15,15,0.7);
    }

.login-box input::placeholder {
    color: #555;
}

.login-box button {
    width: 100%;
    padding: 1rem;
    background: rgba(10,10,10,0.3);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Inter',sans-serif;
}

    .login-box button:hover {
        border-color: var(--hover-border);
        background: var(--hover-btn);
        color: #fff;
    }

.error-msg {
    color: #FF393F;
    font-size: .8rem;
    margin-bottom: 1rem;
    padding: .6rem 1rem;
    background: rgba(255,57,63,0.08);
    border: 1px solid rgba(255,57,63,0.25);
    border-radius: 6px;
    text-align: center;
}

/* ── DASHBOARD ── */
.dash-header {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.brand-name {
    font-family: Minecraft,sans-serif;
    font-size: 1rem;
    color: var(--new-text);
    letter-spacing: 1px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    color: #39FF14;
    padding: 4px 10px;
    border: 1px solid rgba(57,255,20,0.2);
    border-radius: 20px;
    background: rgba(57,255,20,0.04);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #39FF14;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

.logout-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: .78rem;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    transition: all .2s;
}

    .logout-link:hover {
        border-color: #FF393F;
        color: #FF393F;
    }

.dash-main {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

/* stat cards */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
}

.stat-card1 {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color .25s,transform .25s;
    animation: fadeUp .5s ease both;
    --acc: var(--accent-orange);
    animation-delay: 0.05s;
}

.stat-card2 {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color .25s,transform .25s;
    animation: fadeUp .5s ease both;
    --acc: #9B59FF;
    animation-delay: 0.1s
}
.stat-card3 {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color .25s,transform .25s;
    animation: fadeUp .5s ease both;
    --acc: #39FF14;
    animation-delay: 0.15s;
}
.stat-card4 {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color .25s,transform .25s;
    animation: fadeUp .5s ease both;
    --acc: #FFD700;
    animation-delay: 0.2s;
}


.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--acc,var(--accent-orange));
}

    .stat-card:hover {
        border-color: rgba(255,255,255,0.22);
        transform: translateY(-3px);
    }

.stat-label {
    font-size: .68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: .6rem;
}

.stat-value {
    font-family: Minecraft,sans-serif;
    font-size: 2.2rem;
    color: var(--acc,var(--new-text));
    line-height: 1;
}

.stat-sub {
    font-size: .7rem;
    color: var(--text-secondary);
    margin-top: .4rem;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    width: auto;
}
    
.chart-grid > * {
     min-width: 0;
    }

.chart-card {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    animation: fadeUp .6s ease both;
}

.chart-card1 {
    animation-delay: .25s;
}

.chart-card2 {
    animation-delay: .3s;
}

.chart-full {
    grid-column: 1 / -1;
    animation-delay: .35s;
}

.chart-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    min-width: 0;
}

.chart-full .chart-wrap {
    height: 220px;
}

.chart-wrap canvas {
    display: block;
    max-width: 100%;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-family: Minecraft,sans-serif;
    font-size: .82rem;
    color: var(--new-text);
    letter-spacing: .5px;
}

.card-badge {
    font-size: .65rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255,107,53,0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(255,107,53,0.2);
}

.chart-wrap {
    position: relative;
    height: 220px;
}

.chart-full .chart-wrap {
    height: 170px;
}

/* empty chart */
.empty-chart {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: .78rem;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 8px;
    flex-direction: column;
    gap: .4rem;
}

/* table */
.table-card {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    overflow: hidden;
    animation: fadeUp .6s ease .45s both;
    overflow-x: auto;
    overflow-y: hidden;
    animation: fadeUp .6s ease .45s both;
    -webkit-overflow-scrolling: touch;
}

.table-head {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
    font-family: var(--font-mono);
}

    .dash-table th {
        padding: .65rem 1.5rem;
        text-align: left;
        font-size: .62rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-secondary);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        background: rgba(255,255,255,0.01);
    }

    .dash-table td {
        padding: .8rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        color: var(--text-primary);
    }

    .dash-table tr:last-child td {
        border-bottom: none;
    }

    .dash-table tr:hover td {
        background: rgba(255,255,255,0.02);
    }

.abt-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 600;
    background: rgba(155,89,255,0.1);
    color: #9B59FF;
    border: 1px solid rgba(155,89,255,0.2);
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-av {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: rgba(255,107,53,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent-orange);
    flex-shrink: 0;
    border: 1px solid rgba(255,107,53,0.2);
}

footer {
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    text-align: center;
    color: var(--text-primary);
    padding: 18px 32px;
    font-size: 12px;
    line-height: 1.6;
    margin-top: auto;
}


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

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

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

    50% {
        opacity: .4;
        transform: scale(.8)
    }
}


@media(max-width:1024px) {
    .stat-row {
        grid-template-columns: repeat(2,1fr)
    }

    .chart-grid {
        grid-template-columns: 1fr
    }

    .chart-full {
        grid-column: auto
    }
}

@media(max-width:768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 5px;
        width: 200px;
        padding: 20px 0;
        border: 1px solid rgba(255,255,255,0.25);
        border-radius: 10px;
        background: rgba(10,10,10,0.3);
        backdrop-filter: blur(2px)
    }

        .nav-links.active {
            display: flex
        }

    .hamburger {
        display: block
    }

    .dash-main {
        padding: 1rem
    }

    .stat-row {
        grid-template-columns: 1fr 1fr
    }

    .dash-table th,
    .dash-table td {
        padding: .65rem .9rem;
    }
}

@media(max-width:480px) {
    .stat-row {
        grid-template-columns: 1fr
    }
}

.stat-row, .table-card, .chart-grid {
    margin: 1.5rem;
    margin-bottom: 0.5rem;
}

.table-card {
    margin-bottom: 2rem;
}

#stats {
    font-size: 2.6rem;
}

#chart-span1 {
    font-size: 2rem;
    opacity: .3;
}

#chart-span2 {
    font-size: 2rem;
    opacity: .3
}

#chart-span3 {
    font-size: 1.5rem;
    opacity: .3;
}

#empty-chart{
    height: 170px;
}

#tr1 {
    animation: fadeUp .4s ease both;
}

#td1 {
    color: var(--accent-orange);
    font-weight: 600;
    animation-delay: 0.05s;
}

#td2 {
    color: var(--text-secondary);
    animation-delay: 0.05s;
}

#td3 {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    animation-delay: 0.05s;
}

.register {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px);
    text-decoration: none;
    margin-top: 15px;
}

    .register:hover {
        border-color: var(--hover-border);
        background: var(--hover-btn);
        color: #FFFFFF;
    }

    .register:active {
        background: rgba(255, 255, 255, 0.1);
    }

.error-message {
    position: absolute !important;
    top: 70px !important;
    left: 50% !important;
    right: auto !important;
    width: 320px !important;
    max-width: calc(100% - 40px) !important;

    background: #c62828 !important;
    color: #ffffff !important;
    border: 2px solid #be645c !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;

    z-index: 99999 !important;
    margin: 0 !important;
    opacity: 1 !important;
    pointer-events: none !important;

    transform: translateX(-50%) translateY(0) scale(1) !important;
    transition: opacity 0.35s ease, transform 0.35s ease !important;
    animation: errorPopIn 0.3s ease !important;
}

.error-message.hide {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(-10px) scale(0.96) !important;
}

@keyframes errorPopIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .error-message {
        top: 120px !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
}