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

:root {
    /* Cool theme palette */
    --accent: #66d9ff;
    --accent-2: #2aa6ff;
    --accent-text: #001018;

    --accent-border: rgba(102, 217, 255, 0.35);
    --accent-border-soft: rgba(102, 217, 255, 0.22);
    --accent-bg: rgba(102, 217, 255, 0.12);
    --accent-bg-strong: rgba(102, 217, 255, 0.22);
    --accent-shadow: rgba(102, 217, 255, 0.28);
}

/* Account page: keep nav/buttons blue, but add some white accents */
.page-account .account-header h2,
.page-account .characters-section h2 {
    color: #f2fbff;
}

.page-account .character-name {
    color: #f2fbff;
}

.page-account .offline-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #001018;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Subtle white highlight on account cards */
.page-account .account-header,
.page-account .characters-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.00) 55%),
        rgba(0, 0, 0, 0.80);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-account .account-header,
.page-account .characters-section {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

html, body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background: transparent;
}

/* Background – full viewport, works on VPS and all browsers */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: #000;
    background-image: url("assets/web_bg.jpg") !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-border);
    overflow: visible;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu-left {
    justify-content: flex-start;
    z-index: 1002;
    position: relative;
}

.nav-menu-right {
    justify-content: flex-end;
    z-index: 1002;
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: var(--accent-bg);
}

/* Logout link - red hover */
.nav-link[href="logout.php"]:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Logout link underline - red */
.nav-link[href="logout.php"]:hover::after {
    background: #dc3545;
}

/* Navbar dropdown (Support) */
.nav-dropdown {
    position: relative;
}

/* Invisible hover bridge between toggle and menu (prevents flicker) */
.nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

button.nav-link {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    left: 0;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid var(--accent-border-soft);
    border-radius: 12px;
    padding: 0.35rem;
    display: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 1200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    color: #e6eef3;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    color: var(--accent);
    background: var(--accent-bg);
}

/* Main Content */
.main-content {
    margin-top: 90px;
    min-height: calc(100vh - 90px);
    padding: 2rem;
}

/* Homepage: fit in one viewport, no page scroll; overflow scrolls inside .main-content */
.page-home .main-content {
    height: calc(100vh - 90px);
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 2rem;
}

.page-home .hero-section {
    padding: 2rem 2rem;
}

.page-home .features-section {
    margin: 2rem auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.hero-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
    /* Cooler (blue) glow */
    filter:
        drop-shadow(0 8px 16px rgba(80, 180, 255, 0.55))
        drop-shadow(0 0 12px rgba(0, 170, 255, 0.35));
    animation: logoGlow 3.2s ease-in-out infinite;
}

.hero-logo img:hover {
    /* Hover effect removed (keep logo steady) */
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: var(--accent);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeIn 1.5s ease;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: var(--accent-text);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-shadow);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-bg-strong);
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.feature-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--accent-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-shadow);
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
}

/* Download page */
.download-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.download-title {
    color: var(--accent);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.download-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 2.5rem;
}

.download-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.download-or {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .download-cards {
        grid-template-columns: 1fr;
    }
    .download-or {
        margin: 0.5rem 0;
    }
}

.download-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--accent-border);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-card h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.download-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.download-card .download-btn {
    margin-top: auto;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--accent-border);
    backdrop-filter: blur(10px);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--accent-border);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: var(--accent-text);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-shadow);
}

.form-link {
    text-align: center;
    margin-top: 1rem;
    color: #ccc;
}

.form-link a {
    color: var(--accent);
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Bug tracker */
.bugtracker-page {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.bugtracker-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto 1.25rem auto;
    padding: 0 1rem;
}

.bugtracker-title {
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.bugtracker-subtitle {
    color: #cfd8df;
}

.bugtracker-filters {
    max-width: 1400px;
    margin: 0 auto 1.25rem auto;
    padding: 0 1rem;
}

.bugtracker-filter-row {
    display: grid;
    grid-template-columns: 1fr 180px 180px 200px auto auto;
    gap: 0.75rem;
    align-items: center;
}

.bugtracker-input,
.bugtracker-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.95rem;
}

.bugtracker-select[multiple] {
    height: auto;
}

.bugtracker-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1rem 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bugtracker-column {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    min-height: 300px;
}

.bugtracker-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bugtracker-column-title {
    font-weight: 700;
    color: #f2fbff;
    letter-spacing: 0.02em;
}

.bugtracker-column-count {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    color: #e6eef3;
    font-size: 0.85rem;
}

.bugtracker-cards {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bugtracker-empty {
    color: #9fb1bd;
    padding: 1rem;
    text-align: center;
}

.bugtracker-card {
    text-decoration: none;
    color: inherit;
    background: rgba(0, 0, 0, 0.80);
    border: 1px solid var(--accent-border-soft);
    border-radius: 10px;
    padding: 0.85rem;
    transition: all 0.2s ease;
}

.bugtracker-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.bugtracker-card-title {
    font-weight: 650;
    color: #f2fbff;
    margin-bottom: 0.35rem;
}

.bugtracker-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.bugtracker-card-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.bugtracker-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e6eef3;
    white-space: nowrap;
}

.bugtracker-pill-category {
    border-color: var(--accent-border);
    color: #cfefff;
}

.bugtracker-pill-status {
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.bugtracker-pill-priority-low {
    border-color: rgba(40, 167, 69, 0.5);
    color: #bdf5c7;
}

.bugtracker-pill-priority-medium {
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffe7a8;
}

.bugtracker-pill-priority-high {
    border-color: rgba(220, 53, 69, 0.6);
    color: #ffb6bf;
}

.bugtracker-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    color: #9fb1bd;
    font-size: 0.85rem;
}

.bugtracker-attach {
    color: #cfd8df;
    font-size: 0.8rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
}

.bugtracker-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.bugtracker-tag {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--accent-border-soft);
    background: rgba(0, 0, 0, 0.55);
    color: #cfefff;
    font-size: 0.75rem;
}

.bugreport-form {
    max-width: 960px;
}

.bugreport-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bugreport-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.95rem;
    resize: vertical;
}

.bugreport-help {
    color: #9fb1bd;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* Bug report uploads (previews + add one-by-one) */
.bt-upload-controls {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.4rem;
}

.bt-upload-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.bt-upload-note {
    color: #9fb1bd;
    font-size: 0.85rem;
}

.bt-upload-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.bt-upload-item {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--accent-border-soft);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.bt-upload-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.bt-upload-meta {
    color: #cfd8df;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bt-upload-remove {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e6eef3;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bt-upload-remove:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(102, 217, 255, 0.35);
}

/* Bug detail */
.bugdetail-page {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.bugdetail-header {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.bugdetail-card {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    margin: 0 1rem 1rem 1rem;
}

.bugdetail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f2fbff;
    margin-bottom: 0.6rem;
}

.bugdetail-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.bugdetail-id {
    color: #9fb1bd;
    font-weight: 700;
}

.bugdetail-tags {
    margin: 0.75rem 0 0.25rem 0;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.bugdetail-section {
    margin-top: 1.1rem;
}

.bugdetail-section-title {
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.bugdetail-text {
    color: #e6eef3;
    line-height: 1.6;
}

.bugdetail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bugdetail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.bugdetail-thumb {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.bugdetail-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    opacity: 0.95;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bugdetail-thumb:hover img {
    transform: scale(1.02);
    opacity: 1;
}

/* Attachment delete overlay (edit page) */
.bugdetail-thumb-wrap {
    position: relative;
}

.bt-attach-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.55);
    color: #f2fbff;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.bt-attach-remove:hover {
    transform: scale(1.06);
    background: rgba(220, 53, 69, 0.35);
    border-color: rgba(220, 53, 69, 0.75);
    color: #ffe5e9;
}

.bt-attach-remove:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.35);
}

.bugdetail-footer {
    margin-top: 1rem;
    color: #9fb1bd;
    font-size: 0.9rem;
}

.bugdetail-admin {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 0 1rem 2rem 1rem;
}

.bugdetail-admin-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bugdetail-admin-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cfd8df;
    font-weight: 600;
}

/* Modal viewer */
.bt-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.bt-modal.is-open {
    display: block;
}

.bt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.bt-modal-content {
    position: relative;
    max-width: min(1100px, calc(100vw - 2rem));
    max-height: min(90vh, 900px);
    margin: 5vh auto 0 auto;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.bt-modal-stage {
    display: grid;
    place-items: center;
    padding: 1rem;
}

.bt-modal-stage img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.bt-modal-caption {
    padding: 0.75rem 1rem 1rem 1rem;
    color: #cfd8df;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

.bt-modal-close,
.bt-modal-nav {
    position: absolute;
    top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.bt-modal-close {
    right: 0.75rem;
}

.bt-modal-prev {
    left: 0.75rem;
}

.bt-modal-next {
    left: 5.25rem;
}

.bt-modal-open {
    overflow: hidden;
}

/* Realm Selection */
.realm-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.realm-option {
    display: block;
    cursor: pointer;
}

.realm-option input[type="radio"] {
    display: none;
}

.realm-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--accent-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.realm-option input[type="radio"]:checked + .realm-card {
    border-color: var(--accent);
    background: var(--accent-bg);
    box-shadow: 0 0 20px var(--accent-shadow);
}

.realm-option:hover .realm-card {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.realm-name {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.realm-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.realm-pvp {
    background: #dc3545;
    color: #fff;
}

.realm-pve {
    background: #28a745;
    color: #fff;
}

.realm-info {
    color: #ccc;
    font-size: 0.9rem;
}

/* Account Panel */
.account-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.account-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--accent-border);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.account-header h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.account-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    color: #ccc;
}

.info-item strong {
    color: var(--accent);
    display: block;
    margin-bottom: 0.25rem;
}

.info-item-spacer {
    min-height: 1rem;
    visibility: hidden;
}

.characters-section {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--accent-border);
    backdrop-filter: blur(10px);
}

.characters-section h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.character-card {
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--accent-border-soft);
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-shadow);
}

.character-name {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.character-details {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.8;
}

.character-details span {
    color: var(--accent);
}

.character-money {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.money-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #ccc;
}

.currency-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.character-status {
    margin-top: 0.5rem;
}

.online-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #28a745;
    color: #fff;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.offline-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #6c757d;
    color: #fff;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.character-money .money-item {
    transition: all 0.3s ease;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.message-success {
    background: rgba(40, 167, 69, 0.3);
    border: 1px solid #28a745;
    color: #90ee90;
}

.message-error {
    background: rgba(220, 53, 69, 0.3);
    border: 1px solid #dc3545;
    color: #ff6b6b;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoGlow {
    0%,
    100% {
        filter:
            drop-shadow(0 8px 16px rgba(80, 180, 255, 0.45))
            drop-shadow(0 0 10px rgba(0, 170, 255, 0.28));
    }
    50% {
        filter:
            drop-shadow(0 10px 22px rgba(80, 180, 255, 0.75))
            drop-shadow(0 0 18px rgba(0, 170, 255, 0.55));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo img {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-logo img {
        max-width: 90%;
    }

    .nav-menu {
        gap: 1rem;
        justify-content: center;
    }

    .nav-menu-left,
    .nav-menu-right {
        justify-content: center;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .features-section {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .main-content {
        margin-top: 120px;
    }

    .bugtracker-board {
        grid-template-columns: 1fr;
    }

    .bugtracker-filter-row {
        grid-template-columns: 1fr;
    }

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