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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    background: #2a2a2a;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #6200EE;
    font-size: 28px;
    font-weight: bold;
}

.logo p {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
}

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

.form-group label {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #6200EE;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #6200EE;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #7b1fa2;
}

.btn:disabled {
    background: #444;
    cursor: not-allowed;
}

.message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #ff6b6b;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
}

.loading {
    text-align: center;
    color: #888;
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    z-index: 100;
    padding: 0 20px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    color: #6200EE;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #6200EE;
}

/* Footer */
.main-footer {
    background: #111;
    border-top: 1px solid #333;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #6200EE;
}

.footer-copyright {
    color: #555;
    font-size: 12px;
}

/* Page body offset for fixed nav */
body {
    padding-top: 60px;
    padding-left: 240px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 240px;
    background: #1a1a1a;
    border-right: 1px solid #333;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 90;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: #2a2a2a;
    color: #6200EE;
}

.sidebar-link.active {
    background: #2a2a2a;
    color: #6200EE;
    border-left-color: #6200EE;
}

.sidebar-section {
    padding: 10px 20px 5px;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 10px 20px;
}

/* Centered page layout */
.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 40px 20px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.hero h1 {
    font-size: 48px;
    color: #6200EE;
    margin-bottom: 15px;
}

.hero p {
    color: #888;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: #2a2a2a;
    border-radius: 12px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News grid */
.news-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card-image {
    width: 100%;
    height: 180px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 12px;
}

.news-card-body {
    padding: 20px;
}

.news-card-date {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.news-card-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.news-card-excerpt {
    color: #888;
    font-size: 14px;
    line-height: 1.5;
}

/* Article page */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-page .back-link {
    color: #6200EE;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 30px;
}

.article-page .back-link:hover {
    text-decoration: underline;
}

.article-page h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.article-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.article-hero-image {
    width: 100%;
    height: 400px;
    background: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
}

.article-content {
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

/* Auth form layout */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 40px 20px;
}

.auth-card {
    background: #2a2a2a;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.auth-card.wide {
    max-width: 500px;
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .logo h1 {
    color: #6200EE;
    font-size: 28px;
    font-weight: bold;
}

.auth-card .logo p {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.auth-links a {
    color: #6200EE;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #444;
    margin: 30px 0;
}

/* Section within card */
.card-section {
    margin-bottom: 10px;
}

.card-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

/* Warning message */
.warning-message {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid #ff9800;
    color: #ffb74d;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Email verification warning */
.verify-warning {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid #ff9800;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.verify-warning-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.verify-warning-content p {
    color: #ffb74d;
    font-size: 14px;
    margin: 0;
}

.verify-email-line {
    font-size: 13px;
    color: #e0e0e0;
}

.verify-email-line strong {
    color: #ffb74d;
}

.btn-resend {
    padding: 8px 16px;
    background: transparent;
    color: #ff9800;
    border: 1px solid #ff9800;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-resend:hover {
    background: rgba(255, 152, 0, 0.2);
}

.btn-resend:disabled {
    background: #444;
    border-color: #444;
    color: #888;
    cursor: not-allowed;
}

/* Danger button */
.btn-danger {
    width: 100%;
    padding: 14px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-danger:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Confirmation modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.modal p {
    color: #888;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-actions .btn-cancel {
    background: #444;
    color: #fff;
}

.modal-actions .btn-cancel:hover {
    background: #555;
}

.modal-actions .btn-confirm-delete {
    background: #f44336;
    color: #fff;
}

.modal-actions .btn-confirm-delete:hover {
    background: #d32f2f;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.faq-section h1 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    background: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: #6200EE;
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 20px 18px;
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

/* Static pages */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.static-page h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.static-page .last-updated {
    color: #666;
    font-size: 13px;
    margin-bottom: 30px;
}

.static-page h2 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #6200EE;
}

.static-page p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.static-page ul {
    color: #ccc;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 25px;
}

.static-page li {
    margin-bottom: 8px;
}

/* Contact section */
.contact-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.contact-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-section p {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-section a {
    color: #6200EE;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Changelog */
.changelog-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.changelog-tab {
    padding: 10px 24px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.changelog-tab:hover {
    color: #fff;
    border-color: #6200EE;
}

.changelog-tab.active {
    background: #6200EE;
    border-color: #6200EE;
    color: #fff;
}

.launcher-download {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #6200EE;
    border: 1px solid #6200EE;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.download-btn:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.changelog-entries {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.changelog-entry {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 24px;
}

.changelog-entry-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.changelog-version {
    color: #6200EE;
    font-size: 14px;
    font-weight: bold;
}

.changelog-date {
    color: #666;
    font-size: 13px;
}

.changelog-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.changelog-changes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.changelog-group {
    /* no extra spacing needed */
}

.changelog-category {
    color: #aaa;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.changelog-items {
    list-style: none;
    padding: 0;
}

.changelog-items li {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}

.changelog-items li::before {
    content: '\2022';
    color: #6200EE;
    position: absolute;
    left: 0;
}

.changelog-loading,
.changelog-empty {
    color: #888;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}

/* Admin Dashboard */
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.admin-badge {
    background: #6200EE;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.back-link {
    color: #6200EE;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.admin-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #6200EE;
}

.btn-search {
    padding: 12px 24px;
    background: #6200EE;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background: #7b1fa2;
}

.btn-clear {
    padding: 12px 24px;
    background: #444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-clear:hover {
    background: #555;
}

/* Admin section */
.admin-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff;
    font-size: 16px;
}

.admin-section p {
    color: #888;
    font-size: 13px;
    margin-bottom: 15px;
}

.registration-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

#registration-status-text {
    font-size: 14px;
    font-weight: 600;
}

.btn-toggle {
    padding: 8px 16px;
    background: #6200EE;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-toggle:hover {
    background: #7b1fa2;
}

.btn-toggle:disabled {
    background: #444;
    cursor: not-allowed;
}

.admin-table-container {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.admin-table th {
    background: #1a1a1a;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table td {
    color: #ccc;
    font-size: 14px;
}

.user-id-cell {
    font-family: monospace;
    color: #666;
}

.btn-manage {
    padding: 6px 16px;
    background: #6200EE;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-manage:hover {
    background: #7b1fa2;
}

.no-results {
    text-align: center;
    color: #888;
    padding: 40px 20px;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.btn-pagination {
    padding: 10px 20px;
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pagination:hover:not(:disabled) {
    background: #6200EE;
    border-color: #6200EE;
    color: white;
}

.btn-pagination:disabled {
    background: #1a1a1a;
    color: #555;
    border-color: #333;
    cursor: not-allowed;
}

.page-info {
    color: #888;
    font-size: 14px;
}

.admin-modal {
    max-width: 450px;
    text-align: left;
}

.modal-user-info {
    background: #1a1a1a;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.modal-user-info p {
    margin: 5px 0;
    font-size: 13px;
    color: #ccc;
}

.checkbox-group {
    margin-bottom: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-save {
    padding: 12px 24px;
    background: #6200EE;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover {
    background: #7b1fa2;
}

.btn-save:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-left: 0;
    }

    .sidebar {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-image {
        height: 250px;
    }

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

    .nav-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .verify-warning-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-resend {
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* Launcher Login Page */
.confirm-text {
    text-align: center;
    color: #ccc;
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-text strong {
    color: #6200EE;
}

.form-container {
    text-align: center;
}

.form-container .auth-links {
    margin-top: 16px;
}
