/* ==========================================================================

   HARLEM CITY — TEAM WEBPANEL

   Completely rebuilt stylesheet

   Matches the current template/*.php markup 1:1

   Theme: Orange / Gold / Silver / Shadow

   ========================================================================== */



/* ---------- RESET ---------- */

*,

*::before,

*::after {

    box-sizing: border-box;

}



html {

    min-height: 100%;

    scroll-behavior: smooth;

    background: #0d0905;

}



body {

    min-height: 100vh;

    margin: 0;

    overflow-x: hidden;

    color: #e8edf5;

    background:

        radial-gradient(circle at 12% 0%, rgba(215, 160, 32,  .11), transparent 32rem),

        radial-gradient(circle at 92% 100%, rgba(155, 119, 59,  .06), transparent 28rem),

        #0d0905;

    font-family: Inter, "Segoe UI", Arial, sans-serif;

    font-size: 14px;

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;

}



body::before {

    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    content: "";

    opacity: .42;

    background-image:

        linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px),

        linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px);

    background-size: 42px 42px;

}



a {

    color: inherit;

    text-decoration: none;

}



button,

input,

select,

textarea {

    margin: 0;

    font: inherit;

}



button {

    cursor: pointer;

}



img {

    max-width: 100%;

}



h1,

h2,

h3,

p {

    margin-top: 0;

}



::selection {

    color: #fff;

    background: rgba(255, 193, 32,  .35);

}



/* ---------- APP SHELL ---------- */

.app-shell {

    position: relative;

    z-index: 1;

    display: flex;

    min-height: 100vh;

}



/* ---------- SIDEBAR ---------- */

.sidebar {

    position: fixed;

    inset: 0 auto 0 0;

    z-index: 100;

    width: 252px;

    height: 100vh;

    padding: 25px 16px 18px;

    display: flex;

    flex-direction: column;

    overflow-y: auto;

    background: rgba(17, 12, 6,  .97);

    border-right: 1px solid rgba(185, 201, 221, .11);

    box-shadow: 18px 0 55px rgba(0, 0, 0, .20);

    backdrop-filter: blur(20px);

}



.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 48px;

    padding: 0 5px;

}



.brand-mark {

    width: 46px;

    height: 46px;

    flex: 0 0 46px;

    display: grid;

    place-items: center;

    overflow: hidden;

    border: 1px solid rgba(255, 211, 97,  .24);

    border-radius: 13px;

    background: linear-gradient(145deg, #ac7715, #5e390b);

    box-shadow:

        0 0 28px rgba(221, 163, 22,  .17),

        inset 0 1px 0 rgba(255, 255, 255, .12);

}



.brand-mark img {

    width: 100%;

    height: 100%;

    display: block;

    padding: 5px;

    object-fit: contain;

}



.brand strong {

    display: block;

    color: #f7f9fc;

    font-size: 13px;

    font-weight: 850;

    letter-spacing: 1.6px;

}



.brand span {

    display: block;

    margin-top: 2px;

    color: #8a6834;

    font-size: 9px;

    font-weight: 750;

    letter-spacing: 2px;

}



/* ---------- NAV ---------- */

.nav {

    margin-top: 35px;

    display: grid;

    gap: 6px;

}



.nav-item {

    position: relative;

    min-height: 47px;

    padding: 8px 10px;

    display: flex;

    align-items: center;

    gap: 11px;

    color: #78879a;

    border: 1px solid transparent;

    border-radius: 11px;

    transition:

        color .18s ease,

        background .18s ease,

        border-color .18s ease,

        transform .18s ease;

}



.nav-item:hover {

    color: #dfe9f6;

    transform: translateX(2px);

    background: rgba(255, 255, 255, .028);

}



.nav-item.active {

    color: #fff;

    background: linear-gradient(90deg, rgba(236, 177, 24,  .16), rgba(236, 177, 24,  .035));

    border-color: rgba(255, 197, 47,  .22);

    box-shadow: inset 3px 0 0 #f4ba25;

}



.nav-icon {

    width: 30px;

    height: 30px;

    flex: 0 0 30px;

    display: grid;

    place-items: center;

    color: #8da0b7;

    background: rgba(255, 255, 255, .035);

    border: 1px solid rgba(255, 255, 255, .055);

    border-radius: 8px;

    font-size: 13px;

}



.nav-item.active .nav-icon {

    color: #ffd361;

    background: rgba(255, 192, 30,  .11);

    border-color: rgba(255, 201, 61,  .20);

}



.sidebar-footer {

    margin-top: auto;

    padding: 15px 9px 2px;

    display: flex;

    align-items: center;

    gap: 8px;

    color: #795a2e;

    font-size: 11px;

}



.status-dot,

.online-dot {

    width: 7px;

    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #45d891;

    box-shadow: 0 0 12px rgba(69, 216, 145, .65);

}



/* ---------- MAIN CONTENT ---------- */

.content {

    position: relative;

    z-index: 1;

    width: calc(100% - 252px);

    min-height: 100vh;

    margin-left: 252px;

    padding: 34px 42px 50px;

}



/*

   Important:

   Fragment pages are inserted into #app-content.

   They must NOT create another sidebar/content layout.

*/

#app-content > .page-content,

#app-content > .panel-page {

    width: 100%;

    max-width: 1440px;

    margin: 0 auto;

    padding: 0;

}



#app-content > .content {

    width: 100%;

    margin: 0;

    padding: 0;

}



/* ---------- TOPBAR ---------- */

.topbar {

    min-height: 62px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

}



.eyebrow {

    margin: 0 0 6px;

    color: #a47f3e;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 2px;

    line-height: 1.2;

    text-transform: uppercase;

}



.topbar h1 {

    margin: 0;

    color: #f8fafc;

    font-size: 31px;

    font-weight: 850;

    line-height: 1.05;

    letter-spacing: -.7px;

}



.muted,

.topbar > div > p:not(.eyebrow) {

    margin: 8px 0 0;

    color: #78879a;

    font-size: 13px;

    line-height: 1.55;

}



/* ---------- PROFILE ---------- */

.profile {

    flex: 0 0 auto;

    min-width: 260px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 7px 8px;

    background: rgba(27, 19, 11,  .86);

    border: 1px solid rgba(188, 203, 223, .10);

    border-radius: 13px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, .16);

}



.profile img,

.avatar-placeholder {

    width: 40px;

    height: 40px;

    flex: 0 0 40px;

    border-radius: 10px;

}



.profile img {

    display: block;

    object-fit: cover;

}



.avatar-placeholder {

    display: grid;

    place-items: center;

    color: #fff;

    background: linear-gradient(145deg, #ca9217, #663f0d);

    font-weight: 850;

}



.profile-text {

    min-width: 0;

    flex: 1;

}



.profile-text strong {

    display: block;

    overflow: hidden;

    color: #edf3fa;

    font-size: 12px;

    font-weight: 800;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.profile-text span {

    display: block;

    margin-top: 2px;

    overflow: hidden;

    color: #8a6834;

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.logout {

    padding: 7px 8px;

    color: #9a763b;

    font-size: 10px;

    font-weight: 700;

    border-radius: 7px;

    transition: .18s ease;

}



.logout:hover {

    color: #fff;

    background: rgba(255, 255, 255, .045);

}



/* ---------- DASHBOARD ---------- */

.hero-card {

    position: relative;

    isolation: isolate;

    overflow: hidden;

    margin-top: 28px;

    padding: 31px;

    background:

        linear-gradient(125deg, rgba(71, 45, 17,  .92), rgba(24, 17, 10,  .96));

    border: 1px solid rgba(228, 188, 87,  .17);

    border-radius: 18px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, .28);

}



.hero-card > div:first-child {

    position: relative;

    z-index: 2;

}



.hero-card h2 {

    margin: 9px 0 7px;

    color: #fff;

    font-size: 25px;

    font-weight: 850;

    line-height: 1.15;

}



.hero-card p {

    max-width: 680px;

    margin: 0;

    color: #8d9bad;

    font-size: 13px;

    line-height: 1.65;

}



.hero-glow {

    position: absolute;

    z-index: 0;

    width: 360px;

    height: 360px;

    top: -180px;

    right: -100px;

    border-radius: 50%;

    background: rgba(255, 192, 31,  .18);

    filter: blur(55px);

    pointer-events: none;

}



.badge {

    display: inline-flex;

    align-items: center;

    min-height: 24px;

    padding: 0 9px;

    color: #c8d8ea;

    background: rgba(255, 255, 255, .055);

    border: 1px solid rgba(255, 255, 255, .07);

    border-radius: 7px;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 1.5px;

}



.pill {

    display: inline-flex;

    align-items: center;

    min-height: 25px;

    padding: 0 9px;

    border-radius: 7px;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 1px;

}



.pill.blue {

    color: #ffd361;

    background: rgba(255, 193, 35,  .09);

    border: 1px solid rgba(255, 193, 35,  .18);

}



.pill.green {

    color: #67dfa0;

    background: rgba(67, 216, 137, .075);

    border: 1px solid rgba(67, 216, 137, .15);

}



.stats-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 12px;

    margin-top: 13px;

}



.stat-card,

.card {

    background: rgba(22, 16, 9,  .88);

    border: 1px solid rgba(185, 201, 221, .09);

    border-radius: 14px;

    box-shadow: 0 17px 48px rgba(0, 0, 0, .20);

}



.stat-card {

    min-width: 0;

    padding: 18px;

}



.stat-label {

    display: block;

    color: #876633;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 1.5px;

}



.stat-card strong {

    display: block;

    margin: 7px 0 3px;

    overflow: hidden;

    color: #f3f6fa;

    font-size: 18px;

    font-weight: 850;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.stat-card small {

    display: block;

    overflow: hidden;

    color: #8b6935;

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;

}



.section-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 13px;

    margin-top: 13px;

}



.panel-card {

    padding: 21px;

}



.card-header {

    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    margin-bottom: 16px;

}



.card-header h3 {

    margin: 0;

    color: #eaf0f7;

    font-size: 15px;

    font-weight: 820;

}



.card-header p {

    margin: 4px 0 0;

    color: #8c6a35;

    font-size: 11px;

    line-height: 1.45;

}



.info-row {

    min-height: 43px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 10px 0;

    border-top: 1px solid rgba(255, 255, 255, .045);

    font-size: 11px;

}



.info-row span {

    color: #957239;

}



.info-row strong {

    color: #dbe3ed;

    text-align: right;

    word-break: break-word;

}



.logs-card {

    margin-top: 13px;

}



.activity {

    display: flex;

    align-items: center;

    gap: 12px;

    padding-top: 2px;

}



.activity-dot {

    width: 8px;

    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: #ffc83a;

    box-shadow: 0 0 14px rgba(255, 200, 58,  .7);

}



.activity strong {

    display: block;

    color: #dce5ef;

    font-size: 12px;

}



.activity span {

    display: block;

    margin-top: 3px;

    color: #876633;

    font-size: 10px;

}



footer {

    margin-top: 26px;

    color: #654926;

    font-size: 10px;

    text-align: center;

}



/* ==========================================================================

   SUB PAGES — TEAM / EINREISE / SYSTEM / LOGS

   ========================================================================== */



.page-content {

    width: 100%;

    min-width: 0;

    animation: page-in .18s ease both;

}



.page-content > .topbar {

    margin-bottom: 23px;

}



.page-content > .topbar h1 {

    font-size: 32px;

}



.page-content > .topbar > div > p:not(.eyebrow) {

    margin-top: 9px;

}



/* ---------- SUBPAGE HERO ---------- */

.page-content > .hero-card {

    margin: 0 0 14px;

    padding: 27px 30px;

    min-height: 0;

}



.page-content > .hero-card h2 {

    font-size: 23px;

}



.page-content > .hero-card p {

    max-width: 620px;

}



/* ---------- SUBPAGE CARDS ---------- */

.page-content > .card {

    width: 100%;

    margin: 0 0 13px;

    padding: 19px 20px;

}



.page-content > .card:last-child {

    margin-bottom: 0;

}



.page-content > .card .card-header {

    margin-bottom: 14px;

}



/* ---------- ACTION BUTTONS ---------- */

.primary-btn,

.secondary-btn,

.discord-btn {

    min-height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 0 15px;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;

    transition:

        transform .16s ease,

        filter .16s ease,

        background .16s ease,

        border-color .16s ease,

        box-shadow .16s ease;

}



.primary-btn,

.discord-btn {

    color: #fff;

    background: linear-gradient(135deg, #ffc121, #ae760d);

    border: 1px solid rgba(255, 211, 97,  .20);

    box-shadow: 0 9px 24px rgba(230, 172, 22,  .18);

}



.primary-btn:hover,

.discord-btn:hover {

    transform: translateY(-1px);

    filter: brightness(1.06);

    box-shadow: 0 12px 29px rgba(230, 172, 22,  .25);

}



.secondary-btn {

    color: #cbd6e3;

    background: rgba(255, 255, 255, .035);

    border: 1px solid rgba(185, 201, 221, .10);

}



.secondary-btn:hover {

    color: #fff;

    background: rgba(255, 255, 255, .065);

    border-color: rgba(185, 201, 221, .18);

    transform: translateY(-1px);

}



/* ==========================================================================

   TEAM

   ========================================================================== */



.team-page .hero-card {

    border-color: rgba(244, 188, 44,  .18);

}



.team-page .card-header .primary-btn {

    min-width: 155px;

}



.team-page .section-grid {

    margin-top: 0;

}



.team-page .panel-card {

    padding: 18px;

    background: rgba(20, 14, 7,  .72);

    border: 1px solid rgba(185, 201, 221, .065);

    border-radius: 11px;

}



.team-page .panel-card h3 {

    margin: 0 0 6px;

    color: #e5ebf2;

    font-size: 13px;

}



.team-page .panel-card p {

    min-height: 38px;

    margin: 0 0 13px;

    color: #957239;

    font-size: 11px;

    line-height: 1.55;

}



.team-page .team-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}



/* ---------- TABLE ---------- */

.table-wrapper {

    width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    border: 1px solid rgba(185, 201, 221, .065);

    border-radius: 10px;

    background: rgba(14, 9, 4,  .38);

}



.data-table {

    width: 100%;

    min-width: 720px;

    border-collapse: collapse;

    table-layout: auto;

}



.data-table th {

    height: 42px;

    padding: 0 13px;

    color: #8a6834;

    background: rgba(13, 8, 3,  .82);

    border-bottom: 1px solid rgba(185, 201, 221, .07);

    font-size: 9px;

    font-weight: 850;

    letter-spacing: .9px;

    text-align: left;

    text-transform: uppercase;

    white-space: nowrap;

}



.data-table td {

    min-height: 48px;

    padding: 11px 13px;

    color: #cbd4df;

    border-bottom: 1px solid rgba(185, 201, 221, .045);

    font-size: 11px;

    vertical-align: middle;

}



.data-table tbody tr:last-child td {

    border-bottom: 0;

}



.data-table tbody tr {

    transition: background .14s ease;

}



.data-table tbody tr:hover {

    background: rgba(235, 179, 35,  .035);

}



.table-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

}



.table-actions .primary-btn,

.table-actions .secondary-btn {

    min-height: 30px;

    padding: 0 9px;

    font-size: 9px;

}



/* ---------- STATUS ---------- */

.status-badge {

    min-height: 23px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 8px;

    border-radius: 6px;

    font-size: 9px;

    font-weight: 850;

    white-space: nowrap;

}



.status-badge.success {

    color: #6be0a2;

    background: rgba(67, 216, 137, .08);

    border: 1px solid rgba(67, 216, 137, .14);

}



.status-badge.danger {

    color: #ff9090;

    background: rgba(255, 75, 75, .07);

    border: 1px solid rgba(255, 75, 75, .13);

}



.status-badge.warning {

    color: #f2cf73;

    background: rgba(244, 207, 112, .07);

    border: 1px solid rgba(244, 207, 112, .13);

}



.status-badge.info {

    color: #ffd361;

    background: rgba(255, 190, 23,  .08);

    border: 1px solid rgba(255, 190, 23,  .14);

}



/* ==========================================================================

   EINREISE

   ========================================================================== */



.einreise-page .hero-card {

    border-color: rgba(224, 179, 68,  .17);

}



.einreise-page .hero-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}



.einreise-page .hero-card .primary-btn {

    flex: 0 0 auto;

    min-width: 185px;

}



.einreise-page .data-table {

    min-width: 900px;

}



.einreise-page .data-table td {

    height: 52px;

}



.einreise-page .data-table tbody tr:hover {

    background: rgba(230, 181, 55,  .035);

}



/* ==========================================================================

   SYSTEM

   ========================================================================== */



.system-page .card {

    border-color: rgba(185, 201, 221, .075);

}



.system-page .card-header .primary-btn {

    min-width: 180px;

}



.system-post {

    padding: 15px 16px;

    margin-bottom: 8px;

    background: rgba(17, 11, 5,  .64);

    border: 1px solid rgba(185, 201, 221, .06);

    border-radius: 10px;

}



.system-post:last-child {

    margin-bottom: 0;

}



.system-post-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    margin-bottom: 7px;

}



.system-post-title {

    color: #e5ebf3;

    font-size: 12px;

    font-weight: 800;

}



.system-post-meta {

    color: #75562c;

    font-size: 9px;

}



.system-post-content {

    color: #7e8b9d;

    font-size: 11px;

    line-height: 1.65;

}



.teamleitung-section {

    border-left: 2px solid rgba(230, 188, 79,  .45);

}



.supportleitung-section {

    border-left: 2px solid rgba(67, 216, 137, .38);

}



/* ==========================================================================

   LOGS

   ========================================================================== */



.logs-page .card {

    border-color: rgba(185, 201, 221, .075);

}



.logs-list {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.log-item {

    min-height: 53px;

    display: grid;

    grid-template-columns: 68px 8px minmax(0, 1fr);

    align-items: center;

    gap: 11px;

    padding: 9px 12px;

    background: rgba(17, 11, 5,  .60);

    border: 1px solid rgba(185, 201, 221, .055);

    border-radius: 9px;

}



.log-item:hover {

    background: rgba(45, 30, 15,  .72);

    border-color: rgba(225, 178, 60,  .12);

}



.log-time {

    color: #74562c;

    font-size: 9px;

    font-weight: 750;

    white-space: nowrap;

}



.log-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #ffc737;

    box-shadow: 0 0 11px rgba(255, 199, 55,  .6);

}



.log-message {

    min-width: 0;

    color: #aeb9c8;

    font-size: 11px;

    line-height: 1.45;

}



.log-user {

    color: #ffd361;

    font-weight: 800;

}



/* ---------- EMPTY STATE ---------- */

.empty-state {

    min-height: 82px;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #7a5b2e;

    background: rgba(14, 9, 3,  .42);

    border: 1px dashed rgba(148, 163, 184, .10);

    border-radius: 9px;

    font-size: 11px;

    text-align: center;

}



/* ==========================================================================

   FORMS — ready for Team / Einreise / System dialogs

   ========================================================================== */



.form-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 13px;

}



.form-group {

    display: flex;

    flex-direction: column;

    gap: 6px;

}



.form-group.full {

    grid-column: 1 / -1;

}



.form-label {

    color: #8290a2;

    font-size: 10px;

    font-weight: 750;

}



.form-input,

.form-select,

.form-textarea {

    width: 100%;

    color: #e2e8f0;

    background: rgba(16, 10, 4,  .80);

    border: 1px solid rgba(148, 163, 184, .11);

    border-radius: 8px;

    outline: 0;

    transition: border-color .18s ease, box-shadow .18s ease;

}



.form-input,

.form-select {

    height: 39px;

    padding: 0 11px;

}



.form-textarea {

    min-height: 105px;

    padding: 10px 11px;

    resize: vertical;

}



.form-input::placeholder,

.form-textarea::placeholder {

    color: #6a4d28;

}



.form-input:focus,

.form-select:focus,

.form-textarea:focus {

    border-color: rgba(246, 194, 59,  .48);

    box-shadow: 0 0 0 3px rgba(235, 180, 37,  .07);

}



/* ---------- WARNINGS ---------- */

.warning-box,

.danger-box {

    padding: 12px 14px;

    border-radius: 8px;

    font-size: 10px;

    line-height: 1.6;

}



.warning-box {

    color: #f2d77c;

    background: rgba(234, 179, 8, .045);

    border: 1px solid rgba(234, 179, 8, .11);

}



.danger-box {

    color: #ff9a9a;

    background: rgba(239, 68, 68, .045);

    border: 1px solid rgba(239, 68, 68, .11);

}



/* ==========================================================================
   LOGIN / ERROR
   ========================================================================== */

.login-body,
.error-body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;

    margin: 0 !important;
    padding: 0 !important;

    position: fixed !important;
    inset: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    overflow: hidden !important;
}

.auth-card,
.error-card {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: min(520px, calc(100vw - 50px));

    margin: 0 !important;
    padding: 40px;

    transform: none !important;

    z-index: 2;

    box-sizing: border-box;

    text-align: center;

    background: rgba(22, 16, 9,  .93);

    border: 1px solid rgba(185, 201, 221, .12);

    border-radius: 20px;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, .58),
        0 0 55px rgba(255, 190, 23,  .07);

    backdrop-filter: blur(20px);
}

.auth-card,
.error-card {
    position: relative;
    z-index: 2;

    width: min(520px, 100%);

    margin: 0;

    padding: 40px;

    box-sizing: border-box;

    text-align: center;

    background: rgba(22, 16, 9,  .93);

    border: 1px solid rgba(185, 201, 221, .12);

    border-radius: 20px;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, .58),
        0 0 55px rgba(255, 190, 23,  .07);

    backdrop-filter: blur(20px);
}



.brand-center {

    justify-content: center;

}



.auth-icon {

    width: 70px;

    height: 70px;

    margin: 28px auto 20px;

    display: grid;

    place-items: center;

    border-radius: 18px;

    color: #fff;

    background: linear-gradient(145deg, #ffbe18, #8e5b0b);

    box-shadow: 0 0 35px rgba(255, 190, 23,  .25);

}



.auth-card h1,

.error-card h1 {

    margin: 0;

    color: #fff;

    font-size: 27px;

    font-weight: 850;

}



.auth-copy {

    margin: 12px auto 24px;

    color: #8996a7;

    font-size: 13px;

    line-height: 1.7;

}



.auth-note {

    margin-top: 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    color: #687688;

    font-size: 10px;

}



.auth-footer {

    position: fixed;

    bottom: 17px;

    color: #6c4f29;

    font-size: 10px;

}



/* ---------- ERROR ---------- */

.error-code {

    margin: 27px 0 9px;

    color: transparent;

    font-size: 72px;

    font-weight: 950;

    line-height: 1;

    letter-spacing: -5px;

    background: linear-gradient(#fff, #929dac);

    background-clip: text;

    -webkit-background-clip: text;

}



.error-note,

.error-details {

    margin: 19px 0;

    padding: 14px;

    text-align: left;

    background: rgba(255, 190, 23,  .045);

    border: 1px solid rgba(255, 190, 23,  .14);

    border-radius: 11px;

}



.error-note strong {

    display: block;

    color: #fff;

    font-size: 12px;

}



.error-note span {

    display: block;

    margin-top: 4px;

    color: #7e8999;

    font-size: 11px;

    line-height: 1.6;

}



.error-details {

    background: rgba(255, 255, 255, .022);

    border-color: rgba(255, 255, 255, .07);

}



.error-details div {

    padding: 7px 0;

    border-bottom: 1px solid rgba(255, 255, 255, .05);

}



.error-details div:last-child {

    border-bottom: 0;

}



.error-details span {

    display: block;

    color: #687587;

    font-size: 9px;

    letter-spacing: 1px;

    text-transform: uppercase;

}



.error-details strong {

    display: block;

    margin-top: 3px;

    color: #dbe2eb;

    font-size: 11px;

    word-break: break-word;

}



/* ---------- AJAX TRANSITION ---------- */

.page-loading {

    opacity: .48;

    pointer-events: none;

    transition: opacity .14s ease;

}



@keyframes page-in {

    from {

        opacity: 0;

        transform: translateY(5px);

    }



    to {

        opacity: 1;

        transform: translateY(0);

    }

}



/* ==========================================================================

   RESPONSIVE

   ========================================================================== */



@media (max-width: 1180px) {

    .content {

        padding-right: 30px;

        padding-left: 30px;

    }



    .stats-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

}



@media (max-width: 950px) {

    .app-shell {

        display: block;

    }



    .sidebar {

        position: relative;

        inset: auto;

        width: 100%;

        height: auto;

        min-height: 0;

        padding: 18px 20px;

        border-right: 0;

        border-bottom: 1px solid rgba(185, 201, 221, .10);

    }



    .nav {

        grid-template-columns: repeat(5, minmax(0, 1fr));

        margin-top: 18px;

    }



    .sidebar-footer {

        display: none;

    }



    .content {

        width: 100%;

        margin-left: 0;

        padding: 26px 25px 40px;

    }

}



@media (max-width: 760px) {

    .section-grid {

        grid-template-columns: 1fr;

    }



    .topbar,

    .page-content > .topbar {

        align-items: flex-start;

        flex-direction: column;

    }



    .profile {

        width: 100%;

        min-width: 0;

    }



    .page-content > .hero-card,

    .einreise-page .hero-card {

        align-items: flex-start;

        flex-direction: column;

    }



    .einreise-page .hero-card .primary-btn {

        width: 100%;

    }



    .page-content > .card {

        padding: 16px;

    }



    .page-content .card-header {

        align-items: flex-start;

        flex-direction: column;

    }



    .page-content .card-header .primary-btn {

        width: 100%;

    }



    .form-grid {

        grid-template-columns: 1fr;

    }



    .form-group.full {

        grid-column: auto;

    }

}



@media (max-width: 650px) {

    .sidebar {

        padding: 16px;

    }



    .nav {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }



    .nav-item {

        min-height: 43px;

        justify-content: flex-start;

        padding: 7px 9px;

    }



    .content {

        padding: 21px 15px 32px;

    }



    .topbar h1,

    .page-content > .topbar h1 {

        font-size: 26px;

    }



    .hero-card {

        padding: 23px;

    }



    .stats-grid {

        grid-template-columns: 1fr;

    }



    .info-row {

        align-items: flex-start;

        flex-direction: column;

        gap: 4px;

    }



    .info-row strong {

        text-align: left;

    }



    .log-item {

        grid-template-columns: 55px 7px minmax(0, 1fr);

        gap: 9px;

    }

}



@media (max-width: 430px) {

    .brand-mark {

        width: 42px;

        height: 42px;

        flex-basis: 42px;

    }



    .nav-item {

        font-size: 10px;

    }



    .nav-icon {

        width: 27px;

        height: 27px;

        flex-basis: 27px;

        font-size: 11px;

    }



    .content {

        padding-right: 12px;

        padding-left: 12px;

    }



    .auth-card,

    .error-card {

        padding: 28px 21px;

    }

}


/* ==========================================================================
   TEAM — KOMPAKTE MITGLIEDERZEILEN
   ========================================================================== */

/* Die Discord-Bilder waren vorher nur durch img { max-width: 100%; }
   begrenzt. Dadurch wurde das Originalbild in voller Höhe dargestellt. */
.team-page .team-member {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.team-page .team-avatar,
.team-page .team-avatar-placeholder {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    flex: 0 0 42px;
    border-radius: 9px;
}

.team-page .team-avatar {
    display: block;
    object-fit: cover;
}

.team-page .team-avatar-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #ac7715, #5e390b);
    border: 1px solid rgba(255, 211, 97,  .18);
    font-size: 11px;
    font-weight: 850;
}

.team-page .team-member-name {
    overflow: hidden;
    color: #e5ebf3;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-page .team-member-tag {
    margin-top: 2px;
    overflow: hidden;
    color: #8a6834;
    font-size: 9px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-page .discord-id {
    color: #8c6a35;
    font-size: 9px;
    white-space: nowrap;
}

/* Nur die Teamtabelle kompakt machen. Andere Tabellen bleiben unverändert. */
.team-page .table-wrapper {
    max-height: 390px;
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 199, 55,  .35) rgba(255, 255, 255, .025);
}

.team-page .data-table {
    min-width: 720px;
}

.team-page .data-table th {
    height: 38px;
    padding: 0 12px;
    font-size: 8px;
}

.team-page .data-table td {
    height: 58px;
    min-height: 58px;
    padding: 7px 12px;
    vertical-align: middle;
    font-size: 10px;
}

.team-page .data-table tbody tr {
    height: 58px;
}

.team-page .pill {
    min-height: 22px;
    padding: 0 8px;
    font-size: 8px;
}

.team-page .table-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-page .table-actions .primary-btn,
.team-page .table-actions .secondary-btn {
    min-height: 28px;
    height: 28px;
    padding: 0 9px;
    font-size: 8px;
    border-radius: 7px;
}

.team-page .empty-state {
    min-height: 58px;
    padding: 12px;
    font-size: 10px;
}

.team-page .table-wrapper::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.team-page .table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .025);
    border-radius: 10px;
}

.team-page .table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 199, 55,  .35);
    border-radius: 10px;
}

.team-page .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 199, 55,  .55);
}

@media (max-width: 760px) {
    .team-page .table-wrapper {
        max-height: 330px;
    }

    .team-page .data-table {
        min-width: 650px;
    }
}

/* =========================================================
   DASHBOARD HEADER
========================================================= */

.topbar {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 24px;
}

.topbar-content {
    min-width: 0;
    flex: 1;
}

.topbar .profile {
    margin-left: auto;
    flex-shrink: 0;
}



/* =====================================================================
   HARLEM CITY · SERVER ACTIVITY LOGS
   ===================================================================== */
.logs-page { --log-blue:#f5c039; --log-silver:#b9c7d9; }
.logs-topbar { margin-bottom:22px; }
.logs-live-indicator { display:inline-flex; align-items:center; gap:9px; padding:10px 13px; color:#a8bad0; background:rgba(44, 30, 16, .78); border:1px solid rgba(216, 176, 82, .16); border-radius:10px; font-size:9px; font-weight:850; letter-spacing:1.3px; white-space:nowrap; }
.logs-live-indicator span,.logs-footer-dot { width:7px; height:7px; border-radius:50%; background:#55d99a; box-shadow:0 0 12px rgba(85,217,154,.55); }
.logs-stats-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin:0 0 17px; }
.logs-stat-card { min-width:0; display:flex; align-items:center; gap:14px; padding:19px; background:linear-gradient(145deg,rgba(35, 24, 13, .96),rgba(21, 15, 8, .96)); border:1px solid rgba(220, 180, 84, .12); border-radius:14px; box-shadow:0 14px 35px rgba(0,0,0,.17); }
.logs-stat-icon { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:11px; font-size:22px; font-weight:700; }
.logs-stat-icon.blue { color:#ffd361; background:rgba(244, 187, 42, .13); border:1px solid rgba(255, 203, 68, .19); }
.logs-stat-icon.silver { color:#d0d9e5; background:rgba(176,192,212,.09); border:1px solid rgba(176,192,212,.16); }
.logs-stat-icon.green { color:#76e3ac; background:rgba(65,207,138,.09); border:1px solid rgba(65,207,138,.16); }
.logs-stat-label { display:block; color:#9b773b; font-size:9px; font-weight:850; letter-spacing:1.2px; }
.logs-stat-card strong { display:block; margin:3px 0 0; color:#f4f7fb; font-size:25px; line-height:1.2; font-weight:850; }
.logs-stat-card small { display:block; margin-top:3px; color:#967339; font-size:10px; }
.logs-main-card { overflow:hidden; }
.logs-card-header { align-items:center; }
.logs-total-chip { flex:0 0 auto; padding:7px 10px; color:#ffd361; background:rgba(244, 187, 42, .09); border:1px solid rgba(244, 187, 42, .19); border-radius:8px; font-size:10px; font-weight:800; }
.logs-toolbar { display:grid; grid-template-columns:minmax(220px,1fr) 165px 170px auto; gap:9px; padding:0 21px 18px; border-bottom:1px solid rgba(177,197,223,.08); }
.logs-search-wrap { min-width:0; display:flex; align-items:center; gap:9px; padding:0 12px; color:#b08a43; background:rgba(16, 10, 4, .78); border:1px solid rgba(168,190,219,.13); border-radius:9px; }
.logs-search-wrap:focus-within { border-color:rgba(255, 202, 64, .58); box-shadow:0 0 0 3px rgba(240, 184, 39, .08); }
.logs-search-wrap > span { font-size:22px; line-height:1; }
.logs-search-wrap input,.logs-toolbar select { width:100%; min-width:0; height:42px; color:#dfe8f4; background:rgba(16, 10, 4, .78); border:1px solid rgba(168,190,219,.13); border-radius:9px; outline:none; }
.logs-search-wrap input { height:40px; padding:0; background:transparent; border:0; }
.logs-search-wrap input::placeholder { color:#8a6834; }
.logs-toolbar select { padding:0 10px; color-scheme:dark; font-size:11px; }
.logs-toolbar select:focus { border-color:rgba(255, 202, 64, .58); }
.logs-reset-btn { min-height:42px; white-space:nowrap; }
.logs-list { padding:3px 21px 0; }
.log-entry { display:flex; gap:13px; padding:20px 0; border-bottom:1px solid rgba(177,197,223,.075); }
.log-entry:last-child { border-bottom:0; }
.log-entry-icon { width:39px; height:39px; flex:0 0 39px; display:grid; place-items:center; border-radius:11px; font-size:20px; font-weight:800; }
.log-entry-icon.blue { color:#ffd361; background:rgba(244, 188, 44, .13); border:1px solid rgba(244, 188, 44, .18); }
.log-entry-icon.success { color:#77e3ac; background:rgba(55,197,126,.10); border:1px solid rgba(55,197,126,.18); }
.log-entry-icon.silver { color:#c3d0df; background:rgba(170,190,214,.08); border:1px solid rgba(170,190,214,.13); }
.log-entry-icon.danger { color:#ff9eaa; background:rgba(236,75,95,.10); border:1px solid rgba(236,75,95,.18); }
.log-entry-body { flex:1; min-width:0; }
.log-entry-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.log-title-group { display:flex; align-items:center; flex-wrap:wrap; gap:9px; min-width:0; }
.log-actor { color:#edf3fa; font-size:13px; font-weight:800; }
.log-action-badge { display:inline-flex; align-items:center; min-height:23px; padding:3px 8px; border-radius:6px; font-size:9px; font-weight:800; }
.log-action-badge.blue { color:#ffd361; background:rgba(244, 188, 44, .10); }
.log-action-badge.success { color:#7be4ae; background:rgba(55,197,126,.09); }
.log-action-badge.silver { color:#c1ccda; background:rgba(170,190,214,.08); }
.log-action-badge.danger { color:#ff9eaa; background:rgba(236,75,95,.09); }
.log-time { flex:0 0 auto; color:#9c783b; font-size:10px; font-variant-numeric:tabular-nums; }
.log-target-line { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:7px; }
.log-category { color:#ffd361; font-size:10px; font-weight:800; }
.log-target { color:#9baabe; font-size:11px; }
.log-details { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.log-detail-item { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:7px 9px; color:#bac8d9; background:rgba(255,255,255,.025); border:1px solid rgba(175,195,221,.08); border-radius:7px; font-size:10px; }
.log-detail-label { color:#9a763b; font-weight:750; }
.log-detail-value { color:#d6e0ec; overflow-wrap:anywhere; }
.log-old-value { color:#d88d98; text-decoration:line-through; overflow-wrap:anywhere; }
.log-change-arrow { color:#9f7b3c; }
.log-new-value { color:#8bdab1; font-weight:750; overflow-wrap:anywhere; }
.log-meta { margin-top:10px; color:#806031; font-size:9px; }
.logs-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:56px 20px; text-align:center; }
.logs-empty-icon { width:48px; height:48px; display:grid; place-items:center; margin-bottom:13px; color:#ffd361; background:rgba(244, 187, 42, .10); border:1px solid rgba(244, 187, 42, .18); border-radius:14px; font-size:25px; }
.logs-empty strong { color:#dfe7f2; font-size:13px; }
.logs-empty p { margin:6px 0 0; color:#98743a; font-size:11px; }
.logs-footer { display:flex; align-items:center; gap:8px; padding:13px 21px; color:#8b6935; background:rgba(14, 9, 4, .35); border-top:1px solid rgba(177,197,223,.07); font-size:9px; }
.logs-footer-dot { width:6px; height:6px; flex:0 0 6px; }
@media (max-width: 1000px) { .logs-toolbar { grid-template-columns:1fr 1fr; } .logs-search-wrap { grid-column:1/-1; } .logs-reset-btn { min-height:40px; } }
@media (max-width: 700px) { .logs-stats-grid { grid-template-columns:1fr; } .logs-stat-card { padding:14px; } .logs-topbar { align-items:flex-start; flex-direction:column; } .logs-toolbar { grid-template-columns:1fr; padding:0 13px 14px; } .logs-search-wrap { grid-column:auto; } .logs-list { padding:0 13px; } .log-entry { gap:10px; } .log-entry-head { flex-direction:column; gap:7px; } .log-time { order:2; } .logs-card-header { align-items:flex-start; flex-direction:column; } }


/* ==========================================================================
   FIX: LOGS LAYOUT – höhere Spezifität gegen globale Panel-Styles
   ========================================================================== */
.page-content.logs-page .logs-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 13px !important;
    margin: 0 0 17px !important;
    width: 100% !important;
}
.page-content.logs-page .logs-stat-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 106px !important;
    padding: 19px !important;
    box-sizing: border-box !important;
}
.page-content.logs-page .logs-stat-card > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0 !important;
    gap: 3px !important;
}
.page-content.logs-page .logs-stat-label,
.page-content.logs-page .logs-stat-card strong,
.page-content.logs-page .logs-stat-card small {
    display: block !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}
.page-content.logs-page .logs-stat-card strong {
    margin-top: 2px !important;
    font-size: 25px !important;
}
.page-content.logs-page .logs-stat-card small {
    margin-top: 2px !important;
}
.page-content.logs-page .logs-stat-icon {
    display: grid !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
}
.page-content.logs-page .logs-main-card {
    display: block !important;
    padding: 0 !important;
}
.page-content.logs-page .logs-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 21px !important;
    margin: 0 !important;
}
.page-content.logs-page .logs-card-header > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.page-content.logs-page .logs-card-header h3 {
    margin: 0 0 6px !important;
}
.page-content.logs-page .logs-card-header p {
    margin: 0 !important;
}
.page-content.logs-page .logs-toolbar {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) 165px 170px auto !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 0 21px 18px !important;
}
.page-content.logs-page .logs-search-wrap {
    display: flex !important;
    align-items: center !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
}
.page-content.logs-page .logs-search-wrap input {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    color: #dfe8f4 !important;
    background: transparent !important;
    border: 0 !important;
}
.page-content.logs-page .logs-toolbar select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    color: #dfe8f4 !important;
    background-color: #171008 !important;
    border: 1px solid rgba(168,190,219,.2) !important;
    border-radius: 9px !important;
}
.page-content.logs-page .logs-reset-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    margin: 0 !important;
}
.page-content.logs-page .logs-list {
    display: block !important;
    padding: 3px 21px 0 !important;
}
@media (max-width: 1000px) {
    .page-content.logs-page .logs-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }
    .page-content.logs-page .logs-search-wrap {
        grid-column: 1 / -1 !important;
    }
}
@media (max-width: 760px) {
    .page-content.logs-page .logs-stats-grid {
        grid-template-columns: 1fr !important;
    }
    .page-content.logs-page .logs-card-header {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
    .page-content.logs-page .logs-toolbar {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 0 13px 14px !important;
    }
    .page-content.logs-page .logs-search-wrap {
        grid-column: auto !important;
    }
    .page-content.logs-page .logs-list {
        padding: 0 13px !important;
    }
}
