:root {
    /* Hintergrundfarben */
    --bg-main: #0a0a0a;
    --bg-category: #050505;
    --bg-header: #000000;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --bg-border: #1e1e1e;
    /* Akzentfarben */
    --accent: #f30707;
    --accent-hover: #ff3333;
    --accent-r: 243;
    --accent-g: 7;
    --accent-b: 7;
    /* Textfarben */
    --text-main: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER / NAV ===== */
header {
    background-color: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/header_img.png');
    background-size: cover;
    background-position: center;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero.hero-donations {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/prison_bg.png');
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 70%;
    background: radial-gradient(circle, rgba(194, 30, 30, 0) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -25%;
    left: -25%;
    animation: pulse 10s infinite;
    z-index: 0;
}

.hero h1 {
    position: relative;
    z-index: 2;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.server-ip {
    display: inline-block;
    background-color: var(--bg-card);
    padding: 15px 30px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 24px;
    margin-top: 30px;
    color: var(--accent);
    box-shadow: 0 0 30px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* ===== HEADINGS ===== */
h1, .section-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2, h3 {
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.section-title {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
}

h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
    position: relative;
}

/* ===== ABOUT US ===== */
.about-us {
    background-color: var(--bg-category);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* ===== GAMEMODES ===== */
.gamemodes {
    background: var(--bg-category);
    position: relative;
    overflow: hidden;
}

.gamemodes::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 113, 227, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: 0;
    left: 0;
}

.gamemode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.gamemode-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--bg-border);
}

.gamemode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: var(--bg-card-hover);
}

.gamemode-image {
    height: 200px;
    overflow: hidden;
}

.gamemode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gamemode-info {
    padding: 25px;
}

.gamemode-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.gamemode-info p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
}

/* ===== VOTE SECTION ===== */
.vote-section {
    background-color: var(--bg-main);
    color: var(--text-main);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vote-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: -50%;
    left: -50%;
    animation: rotatePulse 20s infinite linear;
}

@keyframes rotatePulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vote-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.vote-content h2 {
    color: var(--accent);
}

.vote-content p {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vote-button {
    display: inline-block;
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--bg-border);
    box-shadow: 0 0 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.3);
}

.vote-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
}

/* ===== TEAM SECTION ===== */
.team-section {
    background-color: var(--bg-category);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    position: relative;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-category);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-avatar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(50, 172, 194, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
    top: 0;
    left: 0;
    z-index: -1;
    filter: blur(15px);
}

.team-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.team-info p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.7);
}

/* ===== GLOW EFFECT ===== */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(70px);
    background: radial-gradient(circle at center, rgba(138, 139, 219, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: var(--text-main);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--bg-border);
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== LEGAL PAGES (Impressum, Datenschutz) ===== */
.legal-page {
    background-color: var(--bg-category);
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-page .legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 40px 50px;
    color: var(--text-main);
}

.legal-page .legal-content h1 {
    font-size: 42px;
    margin-bottom: 30px;
}

.legal-page .legal-content h2 {
    font-size: 26px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-page .legal-content h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-page .legal-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.legal-page .legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-page .legal-content a:hover {
    text-decoration: underline;
}

.legal-page .legal-content strong {
    color: var(--text-main);
}

.legal-page .legal-section {
    margin-bottom: 25px;
}

.legal-page .highlight-box {
    background-color: var(--bg-card-hover);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.legal-page .source {
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .about-content {
        flex-direction: column;
    }

    .section-title {
        font-size: 32px;
    }

    .legal-page .legal-content {
        padding: 25px 20px;
    }

    .legal-page {
        padding: 120px 0 60px;
    }

    .hero.hero-small {
        height: 50vh;
        min-height: 280px;
    }

    .hero.hero-small h1 {
        font-size: 32px;
    }

    .hero.hero-small p {
        font-size: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 36px;
    }
}

/* ===== HERO SMALL (Unterseiten) ===== */
.hero.hero-small {
    height: 60vh;
    min-height: 350px;
}

.hero.hero-small h1 {
    font-size: 48px;
}

.hero.hero-small p {
    font-size: 20px;
    margin-bottom: 0;
}

/* ===== INFO SECTION (Feature-Cards) ===== */
.info-section {
    background-color: var(--bg-main);
    padding: 100px 0;
    position: relative;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--bg-border);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
}

.info-card-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.info-card-link:hover {
    border-color: var(--accent);
}

.info-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== STATS SECTION ===== */
.stats-section {
    background-color: var(--bg-category);
    padding: 100px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 30px 20px;
}

.stat-number {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    line-height: 1.2;
}

.stat-label {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FLOATING BUTTONS ===== */
.theme-fab,
.lang-fab {
    position: fixed;
    bottom: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.theme-fab {
    right: 30px;
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.5);
}

.theme-fab:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.7);
}

.lang-fab {
    left: 30px;
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--bg-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-size: 14px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lang-fab:hover {
    transform: scale(1.15);
    background-color: var(--bg-card-hover);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

/* ===== THEME EDITOR PAGE ===== */
.te-page {
    background-color: var(--bg-main);
    padding: 120px 0 80px;
    min-height: 100vh;
}

.te-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

.te-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.te-breadcrumb a:hover {
    text-decoration: underline;
}

.te-breadcrumb .sep {
    color: var(--text-muted);
}

.te-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.te-layout-cp {
    grid-template-columns: 1fr 350px;
}

@media (max-width: 1100px) {
    .te-layout-cp {
        grid-template-columns: 1fr;
    }
}

/* --- Form Panel --- */
.te-panel {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bg-border);
}

.te-panel-header {
    background-color: var(--bg-category);
    padding: 18px 25px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.te-panel-header i {
    font-size: 18px;
}

.te-panel-body {
    padding: 25px;
}

.te-input-group {
    margin-bottom: 20px;
}

.te-input-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.te-input-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-main);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.te-input-group input[type="text"]:focus {
    border-color: var(--accent);
}

.te-section-title {
    font-size: 15px;
    font-weight: 600;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--accent);
}

.te-color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.te-color-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.te-color-pick {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    padding: 6px 10px;
}

.te-color-pick input[type="color"] {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
    padding: 0;
}

.te-color-pick input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.te-color-pick input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.te-color-pick input[type="text"] {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: monospace;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.te-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0 20px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.te-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.te-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.te-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.te-btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.te-btn-primary:hover {
    background-color: var(--accent-hover);
}

.te-btn-secondary {
    background-color: var(--bg-category);
    color: var(--text-secondary);
    border: 1px solid var(--bg-border);
}

.te-btn-secondary:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.te-btn-reset {
    background-color: var(--bg-category);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.te-btn-reset:hover {
    background-color: var(--accent);
    color: #fff;
}

/* --- Preview Panel --- */
.te-preview-panel {
    position: sticky;
    top: 110px;
}

.te-preview-box {
    padding: 15px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Mini-Header */
.te-pv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px 8px 0 0;
}

.te-pv-logo {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.te-pv-nav {
    display: flex;
    gap: 10px;
}

.te-pv-nav span {
    font-size: 11px;
}

/* Mini-Hero */
.te-pv-hero {
    text-align: center;
    padding: 22px 14px 18px;
}

.te-pv-hero-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.te-pv-hero-sub {
    font-size: 11px;
    margin-bottom: 10px;
}

.te-pv-ip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

/* Mini-Section with Cards */
.te-pv-section {
    padding: 14px;
    margin-top: 2px;
}

.te-pv-section-title {
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.te-pv-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.te-pv-card {
    padding: 12px 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid;
}

.te-pv-card i {
    font-size: 20px;
    margin-bottom: 5px;
    display: block;
}

.te-pv-card-title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
}

.te-pv-card-desc {
    font-size: 10px;
}

/* Mini-Stats */
.te-pv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px 14px;
    text-align: center;
    margin-top: 2px;
}

.te-pv-stat-num {
    font-size: 18px;
    font-weight: 800;
}

.te-pv-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mini-CTA */
.te-pv-cta {
    padding: 14px;
    text-align: center;
    margin-top: 2px;
}

.te-pv-cta-text {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.te-pv-btn {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: default;
}

.te-pv-btn-outline {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
    margin-left: 6px;
    cursor: default;
}

/* Mini-Footer */
.te-pv-footer {
    padding: 10px 14px;
    text-align: center;
    margin-top: 2px;
    border-top: 1px solid;
    border-radius: 0 0 8px 8px;
}

.te-pv-footer span {
    font-size: 10px;
}

/* --- Saved Themes List --- */
.te-saved-panel {
    margin-top: 25px;
}

.te-saved-list {
    list-style: none;
    padding: 0;
}

.te-saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--bg-border);
    transition: background-color 0.2s;
}

.te-saved-item:hover {
    background-color: var(--bg-card-hover);
}

.te-saved-name {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.te-saved-actions {
    display: flex;
    gap: 8px;
}

.te-saved-actions button {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--bg-border);
    background-color: var(--bg-category);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.te-saved-actions button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.te-saved-actions .te-delete-btn:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.te-empty-msg {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Theme Editor Responsive --- */
@media (max-width: 900px) {
    .te-layout {
        grid-template-columns: 1fr;
    }

    .te-preview-panel {
        position: static;
    }

    .te-color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .te-color-grid {
        grid-template-columns: 1fr;
    }

    .te-actions {
        flex-direction: column;
    }

    .te-btn {
        width: 100%;
        justify-content: center;
    }

    .theme-fab {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .lang-fab {
        bottom: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
        font-size: 12px;
    }
}

/* ===== NAV AVATAR ===== */
.nav-avatar-link {
    display: flex;
    align-items: center;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    transition: border-color 0.3s, transform 0.3s;
    image-rendering: pixelated;
}

.nav-avatar:hover {
    border-color: var(--accent-hover);
    transform: scale(1.1);
}

/* ===== CP LOGIN PAGE ===== */
/* ===== CP LOGIN PAGE (fullscreen bg) ===== */
.cp-login-bg {
    position: relative;
    min-height: 100vh;
    background: url('../img/login-bg.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.cp-login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.cp-login-center {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.cp-login-card {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.cp-login-sub {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

.cp-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.cp-login-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    image-rendering: pixelated;
    margin-bottom: 16px;
}

.cp-login-header h2 {
    color: var(--text-main);
    font-size: 22px;
}

.cp-login-error {
    background: rgba(243, 7, 7, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.cp-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cp-login-field label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}

.cp-login-field input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-main);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.cp-login-field input:focus {
    border-color: var(--accent);
}

.pw-wrapper {
    position: relative;
}
.pw-wrapper input {
    padding-right: 42px !important;
}
.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #888);
    font-size: 16px;
    padding: 0;
    line-height: 1;
}
.pw-toggle:hover { color: var(--accent); }

.cp-login-btn {
    width: 100%;
    text-align: center;
    margin-top: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.cp-login-footer {
    margin-top: 24px;
    text-align: center;
}

.cp-login-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.cp-login-footer a:hover {
    color: var(--accent);
}

/* ===== CP LAYOUT ===== */
.cp-body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.cp-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--bg-header);
    border-right: 1px solid var(--bg-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.cp-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--bg-border);
    position: relative;
}

.cp-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    font-family: inherit;
}

.cp-account-chevron {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.cp-logo-link.open .cp-account-chevron {
    transform: rotate(180deg);
}

.cp-account-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    z-index: 1100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.cp-account-dropdown.open {
    display: flex;
}

.cp-account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
}

.cp-account-item.cp-account-active {
    background: rgba(var(--accent-rgb, 76,175,80), .12);
}

.cp-account-head {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.cp-account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cp-account-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-account-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 4px;
    width: fit-content;
}

.cp-badge-active {
    background: var(--accent);
    color: #fff;
}

.cp-badge-valid {
    background: #4caf50;
    color: #fff;
}

.cp-account-divider {
    height: 1px;
    background: var(--bg-border);
    margin: 4px 0;
}

.cp-account-add {
    color: var(--text-muted);
    font-size: 13px;
    gap: 8px;
    padding: 10px 16px;
}

.cp-account-add:hover {
    color: var(--accent);
    background: rgba(255,255,255,.04);
}

.cp-account-add i {
    font-size: 18px;
}

.cp-account-switch {
    display: flex;
    align-items: center;
    padding: 0;
}

.cp-account-switch-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 10px 16px;
    text-decoration: none;
    color: var(--text-main);
    flex: 1;
    min-width: 0;
}

.cp-account-switch-link:hover {
    background: rgba(255,255,255,.06);
}

.cp-account-remove-form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.cp-account-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1;
    opacity: .5;
    transition: color .2s, opacity .2s;
}

.cp-account-remove:hover {
    color: #e53935;
    opacity: 1;
}

.cp-logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.cp-logo-head {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    image-rendering: pixelated;
    flex-shrink: 0;
}

.cp-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.cp-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.cp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    border: none;
    border-bottom: 1px solid var(--bg-border);
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.cp-nav-item:hover {
    background: var(--bg-card);
    color: var(--text-main);
}

.cp-nav-item.active {
    color: var(--accent);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1);
}

.cp-sidebar-footer .cp-nav-item {
    border-bottom: none;
}

/* Expandable nav groups */
.cp-nav-toggle {
    position: relative;
}

.cp-chevron {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.cp-nav-group.open .cp-chevron {
    transform: rotate(180deg);
}

.cp-nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.cp-nav-group.open .cp-nav-sub {
    max-height: 200px;
}

.cp-nav-subitem {
    display: block;
    padding: 8px 20px 8px 50px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s, background 0.2s;
}

.cp-nav-subitem:hover {
    color: var(--text-main);
    background: var(--bg-card);
}

.cp-nav-subitem.active {
    color: var(--accent);
}

.cp-sidebar-footer {
    border-top: 1px solid var(--bg-border);
    padding: 8px 0;
}

.cp-logout {
    color: var(--text-muted) !important;
}

.cp-logout:hover {
    color: var(--accent) !important;
}

/* Main area */
.cp-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cp-topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.cp-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

.cp-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.cp-topbar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.cp-topbar-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.cp-content {
    flex: 1;
    padding: 30px;
    background: var(--bg-main);
}

/* Page headers */
.cp-page-header {
    margin-bottom: 30px;
}

.cp-page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
}

.cp-page-sub {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

/* Dashboard profile section */
.cp-profile-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.cp-skin-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-skin-img {
    height: 200px;
    image-rendering: pixelated;
}

.cp-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.cp-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cp-stat-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.cp-stat-value {
    font-size: 22px;
    font-weight: 800;
}

.cp-stat-value.accent {
    color: var(--accent);
}

/* Quick actions */
.cp-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.cp-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.cp-action-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 24px 20px;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cp-action-card i {
    font-size: 28px;
    color: var(--accent);
}

.cp-action-card span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.cp-action-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
}

/* Placeholder page */
.cp-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.cp-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.cp-placeholder h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.cp-placeholder p {
    font-size: 14px;
}

/* ===== CP OPTIONS PAGE ===== */
.cp-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cp-option-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 12px;
    padding: 28px;
}

.cp-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cp-option-header i {
    font-size: 22px;
    color: var(--accent);
}

.cp-option-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.cp-option-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.cp-option-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cp-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.cp-option-btn-outline {
    background: transparent !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
}

.cp-option-btn-outline:hover {
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.1) !important;
}

/* Theme list in options */
.cp-theme-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-empty {
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

.cp-theme-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-main);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    padding: 12px 16px;
}

.cp-theme-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cp-theme-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.cp-theme-dots {
    display: flex;
    gap: 4px;
}

.cp-theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--bg-border);
}

.cp-theme-activate {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cp-theme-activate:hover {
    background: var(--accent-hover);
}

/* Language choices */
.cp-lang-choices {
    display: flex;
    gap: 12px;
}

.cp-lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-main);
    border: 2px solid var(--bg-border);
    border-radius: 10px;
    padding: 14px 24px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s, background 0.2s;
}

.cp-lang-btn:hover {
    border-color: var(--text-muted);
}

.cp-lang-btn.active {
    border-color: var(--accent);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
}

.cp-lang-flag {
    font-size: 22px;
}

/* ===== CP RESPONSIVE ===== */
@media (max-width: 900px) {
    .cp-sidebar {
        transform: translateX(-100%);
    }

    .cp-sidebar.open {
        transform: translateX(0);
    }

    .cp-main {
        margin-left: 0;
    }

    .cp-sidebar-toggle {
        display: block;
    }

    .cp-profile-section {
        flex-direction: column;
        align-items: center;
    }

    .cp-stats-grid {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cp-content {
        padding: 20px 16px;
    }

    .cp-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-lang-choices {
        flex-direction: column;
    }

    .cp-option-actions {
        flex-direction: column;
    }

    .cp-option-btn {
        justify-content: center;
    }
}

/* ===== COOKIE CONSENT BANNER (DSGVO) ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--bg-header);
    border-top: 1px solid var(--bg-border);
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 30px;
}

.cookie-banner-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.cookie-banner-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cookie-btn-all {
    background: var(--accent);
    color: #fff;
}

.cookie-btn-all:hover {
    background: var(--accent-hover);
}

.cookie-btn-essential {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--bg-border);
}

.cookie-btn-essential:hover {
    border-color: var(--text-muted);
}

.cookie-btn-details {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--bg-border);
}

.cookie-btn-details:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.cookie-btn-save {
    background: var(--accent);
    color: #fff;
    margin-top: 14px;
}

.cookie-btn-save:hover {
    background: var(--accent-hover);
}

/* Cookie detail toggles */
.cookie-details {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--bg-border);
}

.cookie-details.show {
    display: block;
}

.cookie-detail-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.cookie-detail-item strong {
    font-size: 14px;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.cookie-detail-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    min-width: 44px;
    height: 24px;
    margin-top: 2px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-border);
    border-radius: 24px;
    transition: background 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-main);
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: default;
}

/* Login remember-me */
.cp-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
}

.cp-checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.cp-remember-hint {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== REGISTER PAGE ===== */
.cp-register-card {
    max-width: 480px;
}

.cp-login-register-link {
    display: block;
    color: var(--accent) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: opacity 0.2s;
}

.cp-login-register-link:hover {
    opacity: 0.8;
}

/* Step indicator */
.cp-reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px 0 24px;
}

.cp-reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.cp-reg-step.active {
    opacity: 1;
}

.cp-reg-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.cp-reg-step.active .cp-reg-step-num {
    background: var(--accent);
    color: #fff;
}

.cp-reg-step span:last-child {
    font-size: 11px;
    color: var(--text-muted);
}

.cp-reg-step-line {
    width: 40px;
    height: 2px;
    background: var(--bg-border);
    margin: 0 8px;
    margin-bottom: 18px;
}

/* Tutorial steps */
.cp-reg-tutorial {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.cp-reg-tutorial-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cp-reg-tutorial-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cp-reg-tutorial-step strong {
    font-size: 14px;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.cp-reg-tutorial-step p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 6px;
}

.cp-reg-cmd {
    display: inline-block;
    background: var(--bg-main);
    border: 1px solid var(--bg-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    color: var(--accent);
    user-select: all;
}

.cp-reg-cmd-alt {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Code input */
.cp-reg-code-input {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.cp-reg-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    font-family: monospace;
    background: var(--bg-main);
    border: 2px solid var(--bg-border);
    border-radius: 10px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

.cp-reg-digit:focus {
    border-color: var(--accent);
}

.cp-reg-code-dash {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 700;
}

.cp-reg-code-timer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cp-reg-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* Buttons */
.cp-reg-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.cp-reg-back-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--bg-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.cp-reg-back-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

.cp-reg-next-btn {
    flex: 1;
}

.cp-reg-next-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cp-reg-panel h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.cp-reg-error {
    background: rgba(243, 7, 7, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

.cp-reg-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #22c55e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 500px) {
    .cp-reg-digit {
        width: 36px;
        height: 44px;
        font-size: 18px;
    }

    .cp-reg-btn-row {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        padding: 20px 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* Skull icon (bi-skull does not exist in Bootstrap Icons) */
.gc-skull {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a5 5 0 00-5 5c0 1.86.88 3.36 2 4.31V11h1.5v2H5v1h6v-1H9.5v-2H11V9.31c1.12-.95 2-2.45 2-4.31a5 5 0 00-5-5zM6 7.5a1.25 1.25 0 110-2.5 1.25 1.25 0 010 2.5zm4 0a1.25 1.25 0 110-2.5 1.25 1.25 0 010 2.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a5 5 0 00-5 5c0 1.86.88 3.36 2 4.31V11h1.5v2H5v1h6v-1H9.5v-2H11V9.31c1.12-.95 2-2.45 2-4.31a5 5 0 00-5-5zM6 7.5a1.25 1.25 0 110-2.5 1.25 1.25 0 010 2.5zm4 0a1.25 1.25 0 110-2.5 1.25 1.25 0 010 2.5z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ===== VOTE CARDS ===== */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.vote-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--bg-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vote-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.vote-card-bg {
    position: absolute;
    inset: 0;
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.vote-card:hover .vote-card-bg {
    transform: scale(1.04);
}

.vote-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}

.vote-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.vote-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.vote-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 14px;
    line-height: 1.5;
}

.vote-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.vote-card-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
    color: #fff;
}

.vote-card-admin-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.vote-admin-btn {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 7px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.vote-admin-btn:hover {
    background: rgba(255,255,255,0.18);
}

.vote-admin-btn.del:hover {
    background: rgba(220,38,38,0.65);
}

.vote-card-add {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 2px dashed var(--bg-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    color: var(--text-muted);
}

.vote-card-add:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.05);
    color: var(--accent);
}

.vote-card-add i {
    font-size: 30px;
}

.vote-card-add span {
    font-size: 14px;
    font-weight: 600;
}

.vote-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.vote-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* Vote edit modal */
.vote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.vote-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.vote-modal {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 490px;
    transform: scale(0.94);
    transition: transform 0.2s;
}

.vote-modal-overlay.open .vote-modal {
    transform: scale(1);
}

.vote-modal h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.vote-modal-field {
    margin-bottom: 14px;
}

.vote-modal-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vote-modal-field input,
.vote-modal-field textarea {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.vote-modal-field input:focus,
.vote-modal-field textarea:focus {
    border-color: var(--accent);
}

.vote-modal-field textarea {
    resize: vertical;
    min-height: 72px;
}

.vote-img-preview {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 8px;
    display: none;
}

.vote-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.vote-modal-save {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.vote-modal-save:hover {
    background: var(--accent-hover);
}

.vote-modal-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.vote-modal-cancel:hover {
    border-color: var(--text-secondary);
    color: var(--text-main);
}

/* ===== VOTE IMAGE DROP-ZONE ===== */
.vote-img-drop-zone {
    border: 2px dashed var(--bg-border);
    border-radius: 10px;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    user-select: none;
}

.vote-img-drop-zone:hover,
.vote-img-drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.08);
    color: var(--accent);
}

.vote-img-drop-zone.uploading {
    opacity: 0.6;
    pointer-events: none;
}

.vote-img-drop-zone i {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
}

.vote-img-drop-zone span {
    font-size: 13px;
}

/* ===== 2FA STYLES ===== */
.cp-2fa-active {
    margin-bottom: 4px;
}

.cp-2fa-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.35);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
}

.cp-option-btn-danger {
    background: rgba(239,68,68,0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239,68,68,0.4) !important;
}

.cp-option-btn-danger:hover {
    background: rgba(239,68,68,0.3) !important;
}

/* ===== MANAGE USERS ===== */
.mu-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.mu-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.mu-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.mu-search {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mu-search:focus {
    border-color: var(--accent);
}

.mu-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--bg-border);
}

.mu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mu-table thead th {
    background: var(--bg-category);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--bg-border);
}

.mu-table tbody .mu-row td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--bg-border);
    vertical-align: middle;
    color: var(--text-main);
}

.mu-table tbody .mu-row:last-child td {
    border-bottom: none;
}

.mu-table tbody .mu-row:hover {
    background: var(--bg-card-hover);
}

.mu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    image-rendering: pixelated;
    display: block;
}

.mu-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mu-username {
    font-weight: 600;
    color: var(--text-main);
}

.mu-rank {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mu-mc {
    color: var(--text-secondary);
}

.mu-role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mu-role-admin {
    background: rgba(243,7,7,0.15);
    color: var(--accent);
    border: 1px solid rgba(243,7,7,0.3);
}

.mu-role-player {
    background: var(--bg-category);
    color: var(--text-secondary);
    border: 1px solid var(--bg-border);
}

.mu-totp-on {
    color: #22c55e;
    font-size: 16px;
}

.mu-totp-off {
    color: var(--text-muted);
    font-size: 16px;
}

.mu-date {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.mu-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mu-btn-edit,
.mu-btn-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1px solid var(--bg-border);
    background: var(--bg-category);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mu-btn-edit {
    color: var(--text-secondary);
}

.mu-btn-edit:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.mu-btn-del {
    color: var(--text-muted);
}

.mu-btn-del:hover {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.4);
    color: #ef4444;
}

.mu-count {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 10px;
}

.mu-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.mu-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    cursor: pointer;
}

.mu-select:focus {
    border-color: var(--accent);
}

.mu-add-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== FLOATING PASSWORD GENERATOR ===== */
.fpg-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(243,7,7,0.4);
    transition: background 0.2s, transform 0.15s;
    position: relative;
    z-index: 1;
}
.fpg-fab:hover { background: var(--accent-hover); transform: scale(1.08); }

.fpg-panel {
    display: none;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: 14px;
    padding: 18px;
    width: 300px;
    margin-bottom: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.fpg-panel.open { display: flex; }

.fpg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}
.fpg-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    transition: color 0.15s;
}
.fpg-close:hover { color: var(--text-main); }

.fpg-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fpg-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.fpg-range {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.fpg-checks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.fpg-chk {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.fpg-chk input { accent-color: var(--accent); cursor: pointer; }

.fpg-output-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
}
.fpg-output {
    flex: 1;
    background: var(--bg-category);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    padding: 8px 10px;
    outline: none;
    min-width: 0;
}
.fpg-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--bg-border);
    background: var(--bg-category);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
}
.fpg-icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.fpg-use-btn {
    width: 100%;
    padding: 9px 14px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.2s;
}
.fpg-use-btn:hover { background: var(--accent-hover); }