:root {
    --bg: #111315;
    --bg-elevated: rgba(30, 33, 37, 0.78);
    --bg-elevated-strong: rgba(38, 42, 47, 0.92);
    --bg-soft: rgba(255, 255, 255, 0.05);
    --bg-soft-hover: rgba(255, 255, 255, 0.08);

    --text-main: #f5f7fa;
    --text-soft: #ccd3db;
    --text-muted: #9aa4af;

    --accent: #d7a86e;
    --accent-strong: #b88447;
    --accent-soft: rgba(215, 168, 110, 0.14);

    --border: rgba(255, 255, 255, 0.12);
    --border-soft: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(215, 168, 110, 0.3);

    --success: #45c486;
    --success-bg: rgba(69, 196, 134, 0.14);
    --success-border: rgba(69, 196, 134, 0.24);

    --danger: #ff7272;
    --danger-bg: rgba(255, 114, 114, 0.14);
    --danger-border: rgba(255, 114, 114, 0.24);

    --warning: #f0be6d;
    --warning-bg: rgba(240, 190, 109, 0.14);
    --warning-border: rgba(240, 190, 109, 0.24);

    --info: #d7a86e;
    --info-bg: rgba(215, 168, 110, 0.14);
    --info-border: rgba(215, 168, 110, 0.24);

    --discord: #5865f2;

    --glow-accent: 0 0 15px rgba(215, 168, 110, 0.25);
    --glow-accent-strong: 0 0 25px rgba(215, 168, 110, 0.4);
    --glow-text: 0 0 8px rgba(215, 168, 110, 0.6);
    --glow-danger: 0 0 15px rgba(255, 114, 114, 0.3);
    --glow-success: 0 0 15px rgba(69, 196, 134, 0.3);

    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.16);
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
    --shadow-inset: inset 0 2px 10px rgba(0, 0, 0, 0.2);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;

    --content-max: 1240px;
    --topbar-height: 74px;

    --transition: 200ms ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(215, 168, 110, 0.1), transparent 25%),
        radial-gradient(circle at bottom right, rgba(255, 122, 89, 0.08), transparent 30%),
        linear-gradient(180deg, #111315 0%, #171a1f 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 110px,
            rgba(255, 255, 255, 0.02) 111px,
            transparent 112px
        );
}

body > * {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    line-height: 1.18;
    font-weight: 700;
}

p {
    color: var(--text-soft);
}

strong {
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition);
}

button, input, textarea, select {
    font-family: inherit;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.text-white { color: #fff !important; }
.text-main { color: var(--text-main) !important; }
.text-soft { color: var(--text-soft) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-highlight { color: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: #5bb8ff !important; }
.text-discord { color: var(--discord) !important; }

.text-sm { font-size: 13px !important; }
.text-xs { font-size: 11px !important; }

.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-flex-between {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.w-100 { width: 100% !important; }
.full-width { grid-column: 1 / -1 !important; }

.p-0 { padding: 0 !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }

.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }

.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }

.ml-2 { margin-left: 8px !important; }

.border-top { border-top: 1px solid var(--border-soft) !important; }

.unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.float-right {
    margin-left: auto;
}

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

/* ===== LAYOUT ===== */
.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 28px 24px 64px;
}

/* ===== TOPBAR ===== */
.topbar,
nav {
    width: 100%;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    background: rgba(17, 19, 21, 0.85);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.topbar-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-nav {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: var(--glow-accent);
    flex-shrink: 0;
    transition: transform var(--transition), box-shadow var(--transition);
}

.brand:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: var(--glow-accent-strong);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-text strong {
    font-size: 15px;
    font-weight: 800;
}

.brand-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-link,
.topbar-auth a,
nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    border: 1px solid transparent;
    background: transparent;
}

.nav-link:hover,
.topbar-auth a:hover,
nav a:hover {
    color: var(--text-main);
    background: var(--bg-soft);
    border-color: var(--border-soft);
    text-shadow: 0 0 8px rgba(255,255,255,0.2);
}

.nav-link.active,
.topbar-auth a.active,
nav a.active,
.nav-link[aria-current="page"] {
    color: #fff;
    background: var(--accent-soft);
    border-color: var(--border-accent);
    box-shadow: var(--glow-accent);
    text-shadow: var(--glow-text);
}

/* ===== DROPDOWN ===== */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { appearance: none; -webkit-appearance: none; cursor: pointer; outline: none; }
.nav-dropdown-toggle::after { content: "▾"; margin-left: 8px; font-size: 11px; opacity: 0.85; }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(23, 26, 31, 0.96);
    box-shadow: var(--shadow), var(--glow-accent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    flex-direction: column;
    gap: 6px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; animation: fadeIn 0.2s ease; }

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    border: 1px solid transparent;
    background: transparent;
}
.nav-dropdown-menu a:hover { color: var(--text-main); background: var(--bg-soft); border-color: var(--border-soft); }
.nav-dropdown-menu a.active { color: #fff; background: var(--accent-soft); border-color: var(--border-accent); }

/* ===== SEARCH / USER ===== */
.nav-search,
nav form {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search input,
nav input[type="search"],
nav input[type="text"] {
    width: 240px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    outline: none;
    transition: all var(--transition);
}

.nav-search input::placeholder,
nav input[type="search"]::placeholder,
nav input[type="text"]::placeholder {
    color: var(--text-muted);
}

.nav-search input:focus,
nav input[type="search"]:focus,
nav input[type="text"]:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--glow-accent);
}

.topbar-userbox {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.topbar-userbox:hover {
    border-color: var(--border-accent);
    box-shadow: var(--glow-accent);
}

.topbar-userbox__name {
    font-size: 14px;
    font-weight: 700;
}

.topbar-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== SUBNAV ===== */
.subnav,
.forum-subnav {
    width: 100%;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.subnav a,
.forum-subnav a { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.subnav a:hover,
.forum-subnav a:hover { color: var(--accent); text-shadow: var(--glow-text); }

/* ===== BUTTONS ===== */
.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition:
        transform var(--transition),
        filter var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.btn.primary,
button {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 4px 15px rgba(215, 168, 110, 0.2);
}

.btn.primary:hover,
button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--glow-accent-strong);
}

.btn.secondary {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-soft);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-accent);
    box-shadow: var(--glow-accent);
    color: var(--accent);
}

.btn.small {
    padding: 9px 14px;
    font-size: 12px;
    border-radius: 10px;
}

.btn.large {
    padding: 14px 24px;
    font-size: 15px;
}

.btn.outline {
    background: transparent;
}

.btn.secondary.outline {
    background: rgba(255, 255, 255, 0.01);
}

.btn.outline-accent {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn.outline-accent:hover {
    background: var(--accent-soft);
    box-shadow: var(--glow-accent);
}

.btn.outline-light {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-soft);
}
.btn.outline-light:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-soft);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    width: auto;
}

.btn-text:hover {
    color: #fff;
    transform: none;
    filter: none;
    text-shadow: var(--glow-text);
}

/* ===== ORIGINAL HERO LANDING ===== */
.hero-landing {
    min-height: calc(100vh - var(--topbar-height) - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.hero-landing::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 168, 110, 0.15), transparent 60%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-accent);
    background: rgba(215, 168, 110, 0.08);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title-top {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 2px;
    margin-bottom: 0;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 220px;
    margin: 10px 0;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

.hero-title-bottom {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 32px;
    text-transform: uppercase;
    text-shadow: var(--glow-accent);
}

.hero-landing p {
    max-width: 650px;
    margin: 0 auto 36px auto;
    font-size: 18px;
    color: var(--text-soft);
    line-height: 1.6;
}

.hero-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-btn-group-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-btn-group .btn {
    min-width: 180px;
    font-size: 15px;
    padding: 14px 24px;
}

.hero-scroll-down {
    margin-top: 60px;
    color: var(--accent);
    font-size: 28px;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
}

.hero-scroll-down:hover {
    opacity: 1;
    text-shadow: var(--glow-accent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* ===== NEW HOMEPAGE CARD LAYOUT ===== */
.landing-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.hero-card,
.main-card,
.info-card,
.cta-card,
.stat-box,
.feature-card,
.dash-card,
.content-box,
.form,
.ped-preview-card,
.clothing-card,
.mini-card,
.topic-card,
.forum-card,
.thread-card,
.post-card,
.panel,
.widget-card,
.profile-card,
.profile-header,
.company-card,
.company-highlight,
.company-stat,
.company-info-box,
.company-cta,
.settings-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.hero-card:hover,
.main-card:hover,
.info-card:hover,
.cta-card:hover,
.feature-card:hover,
.stat-box:hover,
.dash-card:hover,
.content-box:hover,
.ped-preview-card:hover,
.clothing-card:hover,
.mini-card:hover,
.topic-card:hover,
.forum-card:hover,
.thread-card:hover,
.panel:hover,
.widget-card:hover,
.company-card:hover,
.company-highlight:hover,
.company-stat:hover,
.company-info-box:hover,
.settings-card:hover {
    background: var(--bg-elevated-strong);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow), var(--glow-accent);
}

.hero-card {
    padding: 42px 32px;
    border-radius: var(--radius-lg);
    border-color: var(--border-accent);
    background:
        radial-gradient(circle at top right, rgba(215, 168, 110, 0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 122, 89, 0.10), transparent 30%),
        rgba(30, 33, 37, 0.88);
    box-shadow: var(--shadow-sm), var(--glow-accent);
}

.hero-card::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 168, 110, 0.2), transparent 70%);
    filter: blur(12px);
    pointer-events: none;
}

.hero-card__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    margin: 0 auto 22px;
    border-radius: 999px;
    border: 1px solid var(--border-accent);
    background: rgba(215, 168, 110, 0.08);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: inset 0 0 10px rgba(215, 168, 110, 0.06);
}

.hero-card__eyebrow {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero-card__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 6px;
}

.hero-card__logo-img {
    max-width: 100%;
    width: min(460px, 90%);
    height: auto;
    max-height: 220px;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.42));
}

.hero-card__title {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    margin-bottom: 18px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.45);
}

.hero-card__text {
    max-width: 720px;
    margin: 0 auto 30px;
    font-size: 17px;
    color: var(--text-soft);
}

.hero-card__actions,
.hero-card__subactions,
.cta-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero-card__actions {
    margin-bottom: 16px;
}

.hero-card__actions .btn,
.hero-card__subactions .btn,
.cta-card__actions .btn {
    min-width: 180px;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-heading--center {
    align-items: center;
    text-align: center;
}

.section-heading__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(215, 168, 110, 0.09);
    border: 1px solid var(--border-accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading--center .section-heading__badge {
    align-self: center;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.section-heading p {
    max-width: 760px;
    color: var(--text-soft);
    font-size: 15px;
}

.main-card {
    padding: 34px 30px;
}

.main-card__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 920px;
}

.main-card__content p {
    font-size: 15px;
    margin: 0;
}

.main-card--accent {
    border-color: var(--border-accent);
    background:
        radial-gradient(circle at top right, rgba(215, 168, 110, 0.12), transparent 28%),
        rgba(30, 33, 37, 0.88);
}

.stats-section {
    display: flex;
    flex-direction: column;
}

.card-grid,
.feature-grid,
.stats-grid,
.card-stack,
.company-grid,
.company-highlights,
.company-stats-grid,
.company-info-grid,
.settings-grid {
    display: grid;
    gap: 18px;
}

.card-grid--three,
.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.card-stack,
.company-highlights,
.settings-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.company-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.company-stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.company-info-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.info-card {
    padding: 24px;
}

.stat-card {
    text-align: center;
    padding: 28px 24px;
}

.stat-card__value {
    display: block;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: var(--glow-text);
}

.stat-card__label {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 700;
}

.feature-card,
.system-card,
.mini-feature-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-card__icon,
.mini-feature-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(215, 168, 110, 0.08);
    border: 1px solid var(--border-accent);
    box-shadow: var(--glow-accent);
}

.feature-card h3,
.system-card h3,
.mini-feature-card h3 {
    font-size: 19px;
    margin: 0;
    color: var(--accent);
}

.system-card h3 {
    color: var(--text-main);
}

.feature-card p,
.system-card p,
.mini-feature-card p {
    font-size: 14px;
    margin: 0;
}

.cta-card {
    padding: 42px 28px;
    text-align: center;
    border-color: var(--border-accent);
    background:
        radial-gradient(circle at top right, rgba(215, 168, 110, 0.16), transparent 28%),
        rgba(30, 33, 37, 0.9);
    box-shadow: var(--shadow-sm), var(--glow-accent);
}

/* ===== ORIGINAL HERO CONTAINER ===== */
.hero { padding: 6px 0; }
.hero-container {
    position: relative;
    margin: 0 auto;
    padding: 38px 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-accent);
    background:
        radial-gradient(circle at top right, rgba(215, 168, 110, 0.22), transparent 35%),
        radial-gradient(circle at bottom left, rgba(255, 122, 89, 0.12), transparent 30%),
        rgba(30, 33, 37, 0.85);
    box-shadow: var(--shadow-sm), var(--glow-accent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.hero-container::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 168, 110, 0.25), transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}
.hero h1 { font-size: 42px; margin-bottom: 10px; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.hero h2 { font-size: 28px; margin-bottom: 10px; color: var(--accent); }
.hero p, .hero-subtitle { max-width: 760px; font-size: 16px; color: var(--text-soft); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ===== COMMON SURFACES ===== */
.join-server, .community, .company-section { margin-top: 24px; padding: 6px 0; }
.features, .server-stats { margin-top: 24px; padding: 6px 0; }

.features h2,
.server-stats h2,
.join-server h2,
.community h2,
.content-box h2,
.dash-card h2,
.dash-card h3,
.company-section__title,
.settings-card h2,
.settings-card h3 {
    margin-bottom: 12px;
    font-size: 28px;
    border-bottom: 2px solid var(--border-soft);
    padding-bottom: 8px;
    display: inline-block;
}

.join-server p, .community p, .content-box p { max-width: 860px; margin: 0 0 18px; }

/* ===== CARDS ===== */
.feature-card h3 { font-size: 19px; margin-bottom: 0; }
.feature-card p, .mini-card p { font-size: 14px; }
.stat-box { text-align: left; padding: 24px; }
.stat-box span { display: block; font-size: 34px; font-weight: 800; margin-bottom: 6px; text-shadow: var(--glow-text); }
.stat-box p { font-size: 14px; }
.mini-card { padding: 20px; }
.mini-card h4 { font-size: 17px; margin-bottom: 8px; }
.join-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ===== FORMS ===== */
.form { width: 100%; max-width: 560px; margin: 44px auto 0; padding: 30px 26px; border-top: 3px solid var(--accent); }
.form h2 { margin-bottom: 18px; font-size: 28px; border-bottom: none; }
form { width: 100%; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
input, textarea, select {
    width: 100%;
    margin-top: 10px;
    padding: 13px 14px;
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    color: var(--text-main);
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: var(--shadow-inset);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.05); box-shadow: var(--glow-accent); }
textarea { resize: vertical; min-height: 120px; }

input[type="range"] {
    padding: 0;
    height: 16px;
    margin-top: 14px;
    background: transparent;
    border: none;
    box-shadow: none;
    accent-color: var(--accent);
}

.form-section {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.02);
}

.form-section:first-child { margin-top: 0; }
.form-section h4 { margin-bottom: 14px; font-size: 18px; color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 4px; }
.form-group { margin-bottom: 14px; }
.form-footer { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-soft); }
.form-footer a { color: var(--accent); font-weight: 700; }
.form-footer a:hover { color: #fff; text-shadow: var(--glow-text); }

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); box-shadow: none; }
.checkbox-group label, .checkbox-label { display: flex; align-items: center; gap: 10px; margin-bottom: 0; font-weight: 600; font-size: 13px; color: var(--text-muted); cursor: pointer; }

/* ===== SETTINGS ===== */
.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.settings-main,
.settings-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-card {
    padding: 0;
}

.settings-card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-soft);
}

.settings-card-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--accent);
    border-bottom: none;
    padding-bottom: 0;
}

.settings-card-body {
    padding: 24px;
}

.settings-profile-preview {
    display: flex;
    align-items: center;
    gap: 16px;
}

.settings-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-accent);
    box-shadow: var(--glow-accent);
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
}

.settings-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.settings-profile-meta h4 {
    margin-bottom: 6px;
    font-size: 20px;
}

.settings-profile-meta p {
    font-size: 14px;
    color: var(--text-muted);
}

.settings-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-info-list li {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
}

.settings-info-list strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.settings-note {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(215, 168, 110, 0.08);
    border: 1px solid var(--border-accent);
    color: var(--text-soft);
    font-size: 14px;
}

/* ========================================================================== */
/* DASHBOARD BEREICH */
/* ========================================================================== */

.rp-dashboard-container {
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-in-out;
}

/* Hero Header */
.dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 32px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-accent);
    background:
        radial-gradient(circle at top right, rgba(215, 168, 110, 0.15), transparent 40%),
        var(--bg-elevated);
    box-shadow: var(--shadow-sm), var(--glow-accent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dash-hero-main {
    flex: 1 1 520px;
}

.dash-hero-main h2 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-main);
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-bottom: none;
    padding-bottom: 0;
}

.dash-hero-main p {
    color: var(--text-soft);
    max-width: 600px;
    margin-bottom: 16px;
}

.dash-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: stretch;
}

.stat-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-soft);
    padding: 16px 18px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 190px;
    box-shadow: var(--shadow-inset);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-soft);
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

.stat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-item .stat-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
    text-shadow: var(--glow-text);
}

.progress-bar-mini {
    width: 100%;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: var(--glow-accent);
    transition: width 240ms ease-in-out;
}

/* Dashboard Grid */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dash-grid-half {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.dash-col-main { display: flex; flex-direction: column; gap: 24px; }
.dash-col-side { display: flex; flex-direction: column; gap: 24px; }

/* Dashboard Cards Overrides */
.dash-card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-soft);
}

.dash-card-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--accent);
    border-bottom: none;
    padding-bottom: 0;
}

.dash-card-body { padding: 24px; }
.dash-card-body.p-0 { padding: 0; }
.card-text { color: var(--text-soft); }

.card-featured {
    border-color: var(--border-accent);
}

/* News Tabs */
.news-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
}

.btn-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
    transition: all var(--transition);
}

.btn-tab:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    transform: none;
    filter: none;
    box-shadow: none;
}

.btn-tab.active {
    color: #fff;
    background: var(--accent-soft);
    border-color: var(--border-accent);
    box-shadow: var(--glow-accent);
}

/* Character Slots */
.slot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.slot-item {
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: var(--transition);
}

.slot-item.active {
    background: var(--bg-soft);
    border: 1px solid var(--border-accent);
    box-shadow: inset 0 0 20px rgba(215, 168, 110, 0.05);
}
.slot-item.active:hover {
    border-color: var(--accent);
    background: var(--bg-soft-hover);
}

.slot-item.empty {
    background: transparent;
    border: 1px dashed var(--border-soft);
    opacity: 0.8;
}
.slot-item.empty:hover {
    border-style: solid;
    border-color: var(--text-muted);
    opacity: 1;
}

.slot-item.has-character {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 190px;
    gap: 18px;
    align-items: start;
}

.char-avatar {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-accent);
    background: rgba(255,255,255,0.04);
    box-shadow: var(--glow-accent);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.char-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
    gap: 12px;
}

.slot-header h4 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
    word-break: break-word;
}

.slot-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-details-grid p,
.slot-details p {
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 4px;
    line-height: 1.55;
    word-break: break-word;
}

.slot-details-grid strong,
.slot-details strong {
    color: var(--text-muted);
}

.char-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch;
}

.char-actions .btn {
    justify-content: center;
}

.empty-slot-content {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px dashed var(--border-soft);
    color: var(--text-muted);
    font-size: 24px;
}

/* Erweiterte Character Sections */
.char-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.char-section-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-soft);
}

.char-section-card h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--accent);
}

.char-section-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.char-section-list p {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
}

.char-section-list strong {
    color: var(--text-muted);
}

.char-profile-box {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-soft);
}

.char-profile-box p {
    margin: 0;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
}

/* Modern Form inside Dashboard */
.modern-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modern-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 18px;
    color: var(--accent);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 42px;
}

.job-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.job-card {
    display: block;
    cursor: pointer;
}

.job-card input[type="radio"] {
    display: none;
}

.job-card-content {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,0.02);
    color: var(--text-soft);
    text-align: center;
    transition: var(--transition);
}

.job-card-content i {
    font-size: 22px;
    color: var(--accent);
}

.job-card:hover .job-card-content {
    border-color: var(--border-accent);
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
}

.job-card input[type="radio"]:checked + .job-card-content {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
    color: #fff;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,0.03);
    position: relative;
    transition: all var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

/* Data Lists & Status Tables */
.data-list, .status-list { list-style: none; padding: 0; margin: 0; }
.data-list li, .status-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    gap: 14px;
}
.data-list li:hover, .status-list li:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--border-accent); }
.data-list li span, .status-list li span:first-child { font-size: 14px; color: var(--text-muted); font-weight: 700; }
.data-list li strong { font-size: 14px; color: var(--text-main); }

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.dash-table th { background: rgba(0, 0, 0, 0.2); color: var(--text-muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; }
.dash-table tbody tr { transition: var(--transition); }
.dash-table tbody tr:hover { background: var(--bg-soft); }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.status-dot.erfolgreich, .status-dot.success { background: var(--success); box-shadow: var(--glow-success); }
.status-dot.fehler, .status-dot.error { background: var(--danger); box-shadow: var(--glow-danger); }
.status-dot.ausstehend, .status-dot.pending { background: var(--info); box-shadow: var(--glow-accent); }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,0.04);
}

.status-pill.success,
.status-pill.erfolg {
    color: var(--success);
    background: var(--success-bg);
    border-color: var(--success-border);
}

.status-pill.error,
.status-pill.fehler {
    color: var(--danger);
    background: var(--danger-bg);
    border-color: var(--danger-border);
}

.status-pill.pending,
.status-pill.ausstehend {
    color: #5bb8ff;
    background: rgba(91, 184, 255, 0.14);
    border-color: rgba(91, 184, 255, 0.24);
}

/* Badges / Status Pillen global */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-success { color: var(--success); background: var(--success-bg); border: 1px solid var(--success-border); }
.badge-info { color: #5bb8ff; background: rgba(91, 184, 255, 0.14); border: 1px solid rgba(91, 184, 255, 0.24); }
.badge-dark { color: var(--text-muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-soft); }
.badge-danger { color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-border); }
.badge-warning { color: var(--warning); background: var(--warning-bg); border: 1px solid var(--warning-border); }

/* Dashboard Extras */
.dev-feature-list li {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-soft);
    margin-bottom: 10px;
}

.dev-feature-list li:last-child {
    margin-bottom: 0;
}

.news-item h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.news-item p {
    font-size: 14px;
}

.faction-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    font-size: 14px;
}

.ticket-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.t-stat {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
}

.t-stat h2 {
    font-size: 30px;
    margin: 0 0 4px;
    color: var(--accent);
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.profile-avatar-large {
    width: 86px;
    height: 86px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: var(--glow-accent);
}

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

.wealth-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-soft);
}

.wealth-item i {
    font-size: 22px;
}

.wealth-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wealth-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.wealth-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: var(--glow-text);
}

.status-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}

.status-indicator.is-online {
    color: var(--success);
}

.status-indicator.is-offline {
    color: var(--danger);
}

.ping-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.quick-links-card .dash-card-body h3 {
    border-bottom: none;
    padding-bottom: 0;
}

.bg-accent-dark {
    background:
        radial-gradient(circle at top right, rgba(215, 168, 110, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(33, 27, 21, 0.96), rgba(20, 20, 20, 0.96)) !important;
    border-color: var(--border-accent);
}

.action-grid { display: grid; gap: 12px; }

.action-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 16px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--border-soft);
    transition: var(--transition);
    font-weight: 600;
}
.action-btn .icon { font-size: 20px; background: rgba(255, 255, 255, 0.05); padding: 8px; border-radius: 8px; border: 1px solid var(--border-soft); }
.action-btn:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.action-btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.action-btn.light {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.12);
}

.action-btn.gold {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #fff;
    border-color: transparent;
}

.action-btn.gold:hover {
    color: #fff;
    box-shadow: var(--glow-accent-strong);
}

.action-btn.danger {
    background: rgba(255, 114, 114, 0.12);
    color: #ffdede;
    border-color: var(--danger-border);
}

.action-btn.danger:hover {
    color: #fff;
    border-color: var(--danger);
    box-shadow: var(--glow-danger);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    overflow: auto;
    border-radius: 22px;
    border: 1px solid var(--border-accent);
    background:
        radial-gradient(circle at top right, rgba(215,168,110,0.14), transparent 32%),
        rgba(24, 27, 31, 0.97);
    box-shadow: var(--shadow), var(--glow-accent);
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 22px 24px;
}

.modal-header {
    border-bottom: 1px solid var(--border-soft);
}

.modal-header h3 {
    margin: 0;
    color: var(--accent);
    font-size: 22px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.modal-body {
    line-height: 1.75;
}

.modal-footer {
    border-top: 1px solid var(--border-soft);
}

.btn-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    box-shadow: none;
}

.btn-close:hover {
    transform: none;
    filter: none;
    border-color: var(--border-accent);
    box-shadow: var(--glow-accent);
}

/* ===== PREVIEW (Ped / Clothing) ===== */
.ped-preview-grid,
.clothing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.ped-preview-card,
.clothing-card {
    padding: 18px;
}

.ped-preview-card__image {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.ped-preview-card__body { margin-top: 14px; }
.ped-preview-card__body h5, .clothing-card h5 { margin-bottom: 6px; font-size: 16px; }
.ped-preview-card__body p, .clothing-card p { font-size: 14px; }

/* ===== FLASH ===== */
.flash-messages {
    max-width: 860px;
    margin: 12px auto 0;
}

.flash {
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    color: var(--text-main);
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.flash.error { color: #ffdede; background: var(--danger-bg); border-color: var(--danger-border); box-shadow: var(--glow-danger); }
.flash.info { color: #fff1df; background: var(--info-bg); border-color: var(--info-border); }
.flash.success { color: #ddffea; background: var(--success-bg); border-color: var(--success-border); box-shadow: var(--glow-success); }

/* ===== FORUM ===== */
.forum-page { margin-top: 10px; }
.forum-hero .hero-container { padding-bottom: 30px; }

.forum-toolbar {
    margin-top: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(30, 33, 37, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
}

.forum-toolbar__left,
.forum-toolbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.forum-layout { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.forum-main { min-width: 0; }
.forum-sidebar { display: flex; flex-direction: column; gap: 18px; }

.forum-section {
    margin-top: 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.forum-section:first-child { margin-top: 0; }

.forum-section__head { padding: 16px 20px; background: rgba(0, 0, 0, 0.2); border-bottom: 1px solid var(--border-soft); }
.forum-section__head h2 { font-size: 22px; margin-bottom: 2px; color: var(--accent); }
.forum-section__head p { font-size: 13px; color: var(--text-muted); }

.forum-table {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 100px 100px minmax(220px, 0.9fr);
    align-items: stretch;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.01);
    transition: all var(--transition);
}
.forum-table:last-child { border-bottom: none; }
.forum-table:hover:not(.forum-table--header) { background: rgba(215, 168, 110, 0.04); box-shadow: inset 4px 0 0 var(--accent); }
.forum-table--header { background: rgba(0, 0, 0, 0.3); border-bottom: 2px solid var(--border-soft); }

.forum-table__forum,
.forum-table__topics,
.forum-table__posts,
.forum-table__latest { padding: 18px 16px; min-width: 0; }

.forum-table--header .forum-table__forum,
.forum-table--header .forum-table__topics,
.forum-table--header .forum-table__posts,
.forum-table--header .forum-table__latest {
    font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); padding-top: 14px; padding-bottom: 14px;
}

.forum-table__topics,
.forum-table__posts,
.forum-table__latest { border-left: 1px solid rgba(255, 255, 255, 0.03); }

.forum-table__topics,
.forum-table__posts { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--accent); font-weight: bold; }
.forum-table__latest { display: flex; align-items: center; }

.forum-forum { display: flex; align-items: flex-start; gap: 14px; }
.forum-forum__icon {
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: rgba(215, 168, 110, 0.08); border: 1px solid var(--border-accent); font-size: 18px; flex-shrink: 0; box-shadow: var(--glow-accent);
}
.forum-forum__content h3 { font-size: 18px; margin-bottom: 4px; }
.forum-forum__content p { font-size: 13px; max-width: 720px; }

.forum-latest { display: flex; flex-direction: column; gap: 4px; }
.forum-latest strong { font-size: 14px; color: var(--text-main); }
.forum-latest span { font-size: 13px; color: var(--text-soft); }
.forum-latest small { font-size: 11px; color: var(--text-muted); }

.forum-subforum-list { margin-top: 4px; }
.forum-subforum-placeholder {
    min-height: 120px; border: 1px dashed var(--border-accent); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; padding: 18px;
    text-align: center; background: rgba(215, 168, 110, 0.04);
}
.forum-subforum-placeholder span { max-width: 560px; font-size: 14px; }

.breadcrumbs,
.forum-breadcrumbs {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 14px; font-size: 14px; color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2); padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-soft);
}
.breadcrumbs a, .forum-breadcrumbs a { color: var(--accent); font-weight: bold; }
.breadcrumbs a:hover, .forum-breadcrumbs a:hover { color: #fff; text-shadow: var(--glow-text); }

.topic-header, .thread-header { margin-top: 12px; margin-bottom: 16px; }
.topic-header h1, .thread-header h1 { font-size: 22px; margin-bottom: 6px; }
.topic-meta, .thread-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }

.alert-bar {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 14px 0;
    border-radius: 12px; border: 1px solid transparent; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.alert-bar.danger { background: var(--danger-bg); border-color: var(--danger-border); color: #ffe2e3; }
.alert-bar.info { background: var(--info-bg); border-color: var(--info-border); color: #fff0dc; }
.alert-bar.success { background: var(--success-bg); border-color: var(--success-border); color: #defce8; }

/* ===== POST DESIGN ===== */
.post-card { padding: 0; margin-top: 16px; overflow: hidden; border-radius: 16px; border-top: 2px solid var(--border-soft); }
.post-card:hover { border-top-color: var(--accent); }
.post-layout { display: grid; grid-template-columns: 180px 1fr; min-height: 160px; }

.post-user {
    padding: 22px 14px; text-align: center; background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid var(--border-soft); box-shadow: inset -5px 0 10px rgba(0,0,0,0.1);
}
.post-avatar {
    width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 4px 15px rgba(215, 168, 110, 0.3); border: 2px solid rgba(255,255,255,0.1);
}
.post-username { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 800; color: var(--accent); }
.post-role { font-size: 12px; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 8px; display: inline-block; }

.post-content { padding: 16px 24px 24px; background: rgba(255, 255, 255, 0.01); }
.post-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px;
    margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; color: var(--text-muted);
}
.post-body { font-size: 15px; color: var(--text-soft); line-height: 1.7; }
.post-body p + p { margin-top: 14px; }

/* ===== PROFILE ===== */
.profile-header {
    margin-top: 10px;
    padding: 0;
}

.profile-banner {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(215, 168, 110, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(184, 132, 71, 0.90), rgba(92, 61, 42, 0.65));
    border-bottom: 1px solid var(--border-soft);
}

.profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-main {
    position: relative;
    padding: 0 24px 24px;
}

.profile-avatar {
    width: 136px;
    height: 136px;
    position: absolute;
    left: 24px;
    top: -68px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(17, 19, 21, 0.95);
    background: rgba(30, 33, 37, 0.95);
    box-shadow: var(--shadow), var(--glow-accent);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.profile-topbar {
    min-height: 88px;
    padding-top: 82px;
    padding-left: 160px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.profile-identity {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.profile-identity h1 {
    font-size: 34px;
    line-height: 1.08;
    word-break: break-word;
}

.profile-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(215, 168, 110, 0.10);
    border: 1px solid var(--border-accent);
    box-shadow: inset 0 0 10px rgba(215,168,110,0.1);
}

.role-projectlead { color: #ff7878; background: rgba(255, 120, 120, 0.12); border-color: rgba(255, 120, 120, 0.24); }
.role-admin { color: #ffb76e; background: rgba(255, 183, 110, 0.12); border-color: rgba(255, 183, 110, 0.24); }
.role-mod { color: var(--accent); background: rgba(215, 168, 110, 0.12); border-color: rgba(215, 168, 110, 0.24); }

.profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 18px;
    align-items: start;
}

.profile-card {
    padding: 22px;
}

.profile-card h2 {
    margin-bottom: 16px;
    font-size: 22px;
    display: inline-block;
    border-bottom: 2px solid var(--border-soft);
    padding-bottom: 8px;
}

.profile-card p {
    font-size: 15px;
    color: var(--text-soft);
    white-space: pre-line;
}

.profile-card-wide {
    grid-column: 1 / -1;
}

.profile-characters {
    grid-column: 1 / -1;
}

.profile-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-soft);
    word-break: break-word;
}

.profile-info li span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile-info a {
    color: var(--accent);
}

.profile-info a:hover {
    color: #fff;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat {
    padding: 18px 14px;
    border-radius: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-soft);
    transition: all var(--transition);
}

.stat:hover {
    background: rgba(215, 168, 110, 0.05);
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: var(--glow-text);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
}

.character-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.character-item {
    padding: 18px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-soft);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.character-item:hover {
    background: var(--bg-soft-hover);
    border-color: var(--border);
    transform: translateY(-1px);
}

.character-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.character-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.profile-empty {
    text-align: center;
    padding: 26px 18px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px dashed var(--border-soft);
}

.profile-empty-icon {
    font-size: 32px;
    opacity: 0.45;
    display: block;
    margin-bottom: 10px;
}

.profile-side-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.muted { color: var(--text-muted) !important; }

/* ===== UNTERNEHMEN PAGE ===== */
.page-unternehmen { display: flex; flex-direction: column; gap: 28px; }
.company-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 16px; border-radius: 999px;
    font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
    background: rgba(215, 168, 110, 0.10); border: 1px solid var(--border-accent);
}
.company-hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.company-hero-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 10px 14px; border-radius: 999px; color: var(--text-main); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-soft); font-size: 14px; font-weight: 700; }
.company-section__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.company-section__subtitle { max-width: 760px; color: var(--text-muted); font-size: 15px; }

.company-card { padding: 0; }
.company-card__inner { padding: 24px; }
.company-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.company-card__icon {
    width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: rgba(215, 168, 110, 0.12); border: 1px solid var(--border-accent); font-size: 24px; flex-shrink: 0; box-shadow: var(--glow-accent);
}
.company-card__tag {
    display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}
.company-card h3 { font-size: 22px; margin-bottom: 8px; }
.company-card p { font-size: 14px; color: var(--text-soft); }
.company-card__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.company-card__meta span {
    display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft); color: var(--text-soft); font-size: 13px; font-weight: 700;
}

.company-highlight h4, .company-info-box h4 { font-size: 18px; margin-bottom: 10px; }
.company-highlight p, .company-info-box p { font-size: 14px; color: var(--text-soft); }
.company-stat { text-align: center; padding: 24px 18px; }
.company-stat strong { display: block; font-size: 34px; line-height: 1; margin-bottom: 8px; color: var(--accent); text-shadow: var(--glow-text); }
.company-stat span { display: block; font-size: 14px; color: var(--text-soft); font-weight: 700; }
.company-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.company-list li { position: relative; padding-left: 18px; color: var(--text-soft); font-size: 14px; }
.company-list li::before { content: ""; position: absolute; top: 9px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.company-cta { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: radial-gradient(circle at top right, rgba(215, 168, 110, 0.14), transparent 28%), rgba(30, 33, 37, 0.88); }
.company-cta h3 { font-size: 26px; margin-bottom: 4px; }
.company-cta p { max-width: 780px; }
.company-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.company-cta__actions .btn, .company-cta__actions a { width: auto; }

/* ===== SERVER MAP ===== */
.server-map-hero {
    margin-top: 20px;
    margin-bottom: 40px;
}

.server-map-hero-container {
    text-align: center;
    padding: 60px 32px;
}

.server-map-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-accent);
    background: rgba(215, 168, 110, 0.08);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.server-map-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.server-map-subtitle {
    margin: 0 auto;
    font-size: 18px;
    max-width: 800px;
    line-height: 1.8;
}

.server-map-wrapper {
    margin-bottom: 40px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-accent);
}

.server-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-accent);
    background: rgba(10, 10, 10, 0.55);
}

.server-map-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.map-filter-btn {
    border: 1px solid var(--border-accent);
    background: rgba(215, 168, 110, 0.08);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition);
}

.map-filter-btn:hover,
.map-filter-btn.active {
    color: var(--accent);
    box-shadow: var(--glow-accent);
    background: rgba(215, 168, 110, 0.16);
}

.server-map-status {
    font-size: 13px;
    color: var(--text-soft);
}

#server-map {
    width: 100%;
    height: 700px;
    background: rgba(0, 0, 0, 0.35);
}

.custom-map-popup {
    color: #111;
    line-height: 1.5;
}

.custom-map-popup strong {
    font-size: 15px;
}

.leaflet-container {
    background: rgba(0, 0, 0, 0.3);
    font-family: inherit;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #f4efe8;
    color: #111;
}

.leaflet-control-zoom a {
    background: rgba(20, 20, 20, 0.9) !important;
    color: var(--accent) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaflet-control-zoom a:hover {
    background: rgba(35, 35, 35, 0.95) !important;
}

.map-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
    border-top: 1px solid var(--border-accent);
    background: rgba(10, 10, 10, 0.4);
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    font-size: 14px;
}

.map-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.legend-fraktion {
    background: #5bb8ff;
}

.legend-unternehmen {
    background: #d7a86e;
}

.legend-oeffentlich {
    background: #57d38c;
}

.legend-hotspot {
    background: #ff6b81;
}

.map-empty-note {
    padding: 14px 20px 20px;
    color: var(--text-soft);
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(0, 0, 0, 0.18);
}

.server-map-feature-grid {
    margin-bottom: 60px;
}

.server-map-feature-card {
    text-align: center;
    padding: 32px 24px;
}

.server-map-feature-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.feature-icon-fraktion {
    text-shadow: 0 0 15px rgba(91, 184, 255, 0.4);
}

.feature-icon-unternehmen {
    text-shadow: var(--glow-accent);
}

.feature-icon-marker {
    text-shadow: var(--glow-success);
}

.server-map-feature-title {
    margin-bottom: 12px;
    font-size: 20px;
}

.feature-title-fraktion {
    color: #5bb8ff;
}

.feature-title-unternehmen {
    color: var(--accent);
}

.feature-title-marker {
    color: var(--success);
}

.server-map-feature-text {
    color: var(--text-soft);
    font-size: 14px;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #111315; border-left: 1px solid var(--border-soft); }
::-webkit-scrollbar-thumb { background: #3a3d42; border-radius: 20px; border: 2px solid #111315; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .topbar, nav { padding: 14px 20px; min-height: auto; align-items: flex-start; }
    .topbar-left, .topbar-right { width: 100%; justify-content: space-between; flex: none; }
    .main-nav { flex: none; width: 100%; }
    .container { padding: 24px 20px 56px; }
    .dash-grid, .forum-layout, .profile-grid, .dash-grid-half, .settings-layout { grid-template-columns: 1fr; }
    .clothing-grid { grid-template-columns: 1fr; }
    .forum-sidebar { order: 2; }
    .profile-characters { grid-column: auto; }

    .slot-item.has-character {
        grid-template-columns: 80px 1fr;
    }

    .char-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .topbar-left, .topbar-right { flex-direction: column; align-items: stretch; gap: 12px; }
    .nav-search input, nav input[type="search"], nav input[type="text"] { width: 100%; }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-toggle, .nav-link { width: 100%; justify-content: space-between; }
    .nav-dropdown-menu { position: static; margin-top: 8px; width: 100%; min-width: 100%; box-shadow: none; border: none; background: rgba(0,0,0,0.2); }

    .hero h1 { font-size: 34px; }
    .hero h2 { font-size: 26px; }
    .features h2, .server-stats h2, .join-server h2, .community h2, .content-box h2, .dash-card h2, .dash-card h3, .forum-section__head h2, .company-section__title, .settings-card h2, .settings-card h3 { font-size: 24px; }

    .post-layout { grid-template-columns: 100px 1fr; }
    .forum-table { grid-template-columns: 1fr; }
    .forum-table__topics, .forum-table__posts, .forum-table__latest { border-left: none; border-top: 1px solid var(--border-soft); justify-content: flex-start; text-align: left; }
    .forum-table--header { display: none; }

    .profile-topbar { padding-left: 0; padding-top: 94px; }
    .profile-avatar { width: 124px; height: 124px; top: -62px; }
    .profile-identity h1 { font-size: 30px; }

    .dash-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-hero-stats {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .topbar, nav { padding: 14px 16px; }
    .brand { width: 100%; }
    .main-nav, .topbar-auth { flex-direction: column; align-items: stretch; width: 100%; }
    .container { padding: 22px 14px 46px; }

    .hero { padding: 10px 0 4px; }
    .hero-container { padding: 24px 18px; border-radius: 18px; }
    .hero h1 { font-size: 28px; }
    .hero h2 { font-size: 22px; }
    .hero p, .hero-subtitle { font-size: 15px; }

    .hero-landing { padding: 40px 15px; }
    .hero-btn-group, .hero-btn-group-secondary { flex-direction: column; width: 100%; }
    .hero-btn-group .btn { width: 100%; }

    .hero-card { padding: 28px 18px; }
    .hero-card__title { font-size: 30px; }
    .hero-card__text { font-size: 15px; }

    .hero-card__actions,
    .hero-card__subactions,
    .cta-card__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-card__actions .btn,
    .hero-card__subactions .btn,
    .cta-card__actions .btn {
        width: 100%;
    }

    .main-card,
    .info-card,
    .cta-card {
        padding: 22px 18px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .dash-hero { padding: 24px 18px; flex-direction: column; align-items: flex-start; }
    .dash-hero-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .stat-item { min-width: auto; }

    .modern-form .form-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .modern-form .form-actions { flex-direction: column; align-items: stretch; gap: 16px; }
    .modern-form .form-actions button { width: 100%; }

    .feature-grid,
    .stats-grid,
    .slot-grid,
    .card-stack,
    .ped-preview-grid,
    .clothing-grid,
    .character-list,
    .company-grid,
    .company-highlights,
    .company-stats-grid,
    .company-info-grid,
    .settings-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .form-row { gap: 0; }

    .form, .dash-card, .content-box, .settings-card { padding: 0; }
    .dash-card-header, .dash-card-body, .form, .settings-card-header, .settings-card-body { padding: 18px; }
    .form-section { padding: 16px; }

    .forum-toolbar { flex-direction: column; align-items: stretch; }
    .forum-toolbar__left, .forum-toolbar__right { width: 100%; }
    .forum-toolbar__left .btn, .forum-toolbar__right .btn { width: 100%; }

    .post-layout { grid-template-columns: 1fr; }
    .post-user { border-right: none; border-bottom: 1px solid var(--border-soft); padding: 16px; }

    .slot-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .forum-forum { flex-direction: column; align-items: flex-start; }

    .slot-item.has-character {
        grid-template-columns: 1fr;
    }

    .char-avatar {
        width: 92px;
        height: 92px;
    }

    .slot-details-grid,
    .char-section-grid {
        grid-template-columns: 1fr;
    }

    .char-actions {
        grid-template-columns: 1fr;
    }

    .ticket-stats {
        grid-template-columns: 1fr;
    }

    .job-selector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-profile-preview {
        flex-direction: column;
        text-align: center;
    }

    .profile-banner { height: 190px; }
    .profile-main { padding: 0 18px 18px; }
    .profile-avatar { left: 18px; width: 108px; height: 108px; top: -54px; }
    .profile-topbar { padding-top: 66px; gap: 14px; }
    .profile-identity h1 { font-size: 26px; }
    .profile-card { padding: 18px; }
    .profile-stats { grid-template-columns: 1fr; }
    .profile-actions, .profile-actions .btn { width: 100%; }
    .profile-actions .btn { justify-content: center; }

    .company-cta { padding: 22px; }
    .company-cta h3 { font-size: 22px; }
    .company-card__top { flex-direction: column; align-items: flex-start; }

    .modal-overlay {
        padding: 14px;
    }

    #server-map {
        height: 520px;
    }

    .server-map-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .server-map-toolbar-left {
        width: 100%;
    }

    .map-filter-btn {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-logo { width: 40px; height: 40px; }
    .brand-text strong { font-size: 14px; }
    .brand-text span { font-size: 11px; }

    .btn, button { width: 100%; }
    .hero-buttons, .join-buttons, .company-cta__actions { flex-direction: column; }

    .features h2, .server-stats h2, .join-server h2, .community h2, .content-box h2, .dash-card h2, .dash-card h3, .forum-section__head h2, .company-section__title, .settings-card h2, .settings-card h3 { font-size: 22px; }
    .dash-hero-stats { grid-template-columns: 1fr; }
    .dash-card-header, .dash-card-body, .content-box, .settings-card-header, .settings-card-body { padding: 16px; }
    .dash-table th, .dash-table td { padding: 12px 16px; }
    .clothing-card, .ped-preview-card { padding: 14px; }
    .form-section h4 { font-size: 17px; }
    .ped-preview-card__image { height: 150px; font-size: 17px; }

    .topic-header h1, .thread-header h1 { font-size: 19px; }

    .job-selector-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar-large {
        width: 72px;
        height: 72px;
        font-size: 34px;
    }

    .profile-banner { height: 156px; }
    .profile-avatar { width: 94px; height: 94px; top: -47px; }
    .avatar-placeholder { font-size: 30px; }
    .profile-topbar { padding-top: 56px; }
    .profile-identity h1 { font-size: 22px; }
    .profile-role { font-size: 11px; padding: 6px 10px; }
    .profile-card h2 { font-size: 20px; }
    .stat-value { font-size: 26px; }

    .company-card__inner, .company-highlight, .company-info-box, .company-stat { padding: 18px; }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 18px;
    }

    .server-map-title {
        font-size: 34px;
    }

    .server-map-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    #server-map {
        height: 430px;
    }

    .map-legend {
        grid-template-columns: 1fr;
    }

    .map-filter-btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .server-map-feature-card {
        padding: 24px 18px;
    }
}

/* =========================================================
   RULES PAGE — Optimierungen für Regelwerk
   ========================================================= */

/* Quick Navigation Cards */
.card-grid--four {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    text-align: center;
    padding: 28px 22px;
}

.feature-card__icon {
    margin: 0 auto 14px;
    width: 64px;
    height: 64px;
    font-size: 26px;
}

/* Section Heading mit Icon */
.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(24px, 3.6vw, 34px);
    color: var(--accent);
}

/* Stack für Regelkarten */
.card-stack {
    margin-top: 18px;
}

/* Einzelne Regelkarte */
.mini-card {
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.mini-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
}

/* Titel innerhalb der Regelkarte */
.mini-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 800;
}

/* Text innerhalb */
.mini-card p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.65;
}

/* Danger Highlight (z.B. RDM/VDM) */
.mini-card[style*="danger"],
.mini-card.danger {
    border-left: 4px solid var(--danger);
}

/* Hero Badge Icon Alignment */
.hero-card__badge i {
    margin-right: 6px;
}

/* Smooth anchor offset for sticky header */
[id] {
    scroll-margin-top: calc(var(--topbar-height) + 20px);
}

/* =========================================================
   MOBILE OPTIMIERUNG — RULES PAGE
   ========================================================= */

@media (max-width: 768px) {
    .feature-card {
        padding: 22px 18px;
    }

    .feature-card__icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .mini-card {
        padding: 18px;
    }

    .section-heading h2 {
        font-size: 22px;
    }
}