
:root {
    --blue: #19b8ff;
    --blue-dark: #087bb5;
    --green: #b9e6bd;
    --green-dark: #173b2a;
    --white: #f8fcff;
    --text: #17323a;
    --muted: #587078;
    --card: rgba(255, 255, 255, 0.82);
    --border: rgba(25, 184, 255, 0.20);
    --shadow: 0 20px 60px rgba(20, 80, 100, 0.14);
    --radius: 24px;
}

[data-theme="dark"] {
    --white: #071317;
    --text: #e9fbff;
    --muted: #a5bdc4;
    --card: rgba(12, 29, 34, 0.86);
    --border: rgba(25, 184, 255, 0.25);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 10%, rgba(25, 184, 255, 0.16), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(115, 220, 155, 0.18), transparent 28%),
        linear-gradient(135deg, #f7fffb 0%, #eefaf2 48%, #edf9ff 100%);
    min-height: 100vh;
    transition: background .35s ease, color .35s ease;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at 10% 10%, rgba(25, 184, 255, 0.12), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(55, 145, 85, 0.10), transparent 28%),
        linear-gradient(135deg, #071317 0%, #0b1d17 48%, #07151c 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(248, 252, 255, 0.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(25, 184, 255, 0.12);
}

[data-theme="dark"] .site-header {
    background: rgba(7, 19, 23, 0.78);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: .4px;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
}

.brand span {
    color: var(--blue-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 10px 13px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 700;
    transition: .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue-dark);
    background: rgba(25, 184, 255, 0.10);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn,
.menu-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: .25s ease;
}

.icon-btn:hover,
.menu-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(25, 184, 255, .55);
}

.menu-btn {
    display: none;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    place-items: center;
    padding: 130px 0 80px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    background: rgba(25, 184, 255, 0.15);
    top: 12%;
    left: -150px;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    width: 360px;
    height: 360px;
    background: rgba(120, 218, 146, 0.18);
    right: -120px;
    bottom: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-24px) translateX(14px); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(25,184,255,.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25,184,255,.10) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    animation: gridMove 18s linear infinite;
}

@keyframes gridMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 55px 55px, 55px 55px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-logo {
    width: min(430px, 75vw);
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(25, 184, 255, .42));
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(25,184,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.60);
    color: var(--blue-dark);
    font-weight: 800;
    margin-bottom: 18px;
}

[data-theme="dark"] .badge {
    background: rgba(10, 28, 34, .75);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5.3rem);
    line-height: .95;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.gradient-text {
    background: linear-gradient(90deg, #0797df, #19c9ff, #55b979);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 900;
    transition: .25s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #079fe5, #19c9ff);
    box-shadow: 0 12px 30px rgba(25,184,255,.25);
}

.btn-secondary {
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
}

.btn:hover {
    transform: translateY(-3px);
}

section {
    padding: 90px 0;
}

.page-top {
    padding-top: 150px;
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--muted);
    line-height: 1.7;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(25,184,255,.42);
}

.card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(25,184,255,.12);
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    line-height: 1.65;
}

.server-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.server-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.server-box h3 {
    margin-bottom: 16px;
}

.ip-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.ip-field {
    flex: 1;
    min-width: 0;
    padding: 14px;
    border-radius: 13px;
    background: rgba(25,184,255,.08);
    border: 1px solid var(--border);
    color: var(--blue-dark);
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(100, 180, 120, .12);
    color: #2d8a4a;
    font-weight: 900;
}

.status.offline {
    background: rgba(220, 80, 80, .10);
    color: #b63e3e;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-item strong {
    display: block;
    margin-bottom: 3px;
}

.feature-item span {
    color: var(--muted);
    line-height: 1.5;
}

.callout {
    padding: 30px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(25,184,255,.12), rgba(120,218,146,.14)),
        var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.callout h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.callout p {
    color: var(--muted);
    line-height: 1.7;
}

.rules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rule {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
}

.rule-number {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(25,184,255,.12);
    color: var(--blue-dark);
    font-weight: 900;
}

.rule p {
    color: var(--muted);
    line-height: 1.55;
}

.support-box {
    max-width: 850px;
    margin: auto;
    text-align: center;
    padding: 50px 30px;
}

.support-box .emoji {
    font-size: 4rem;
    margin-bottom: 15px;
}

footer {
    padding: 35px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
}

.footer-small {
    font-size: .9rem;
    margin-top: 7px;
}

.site-url {
    color: var(--blue-dark);
    font-weight: 800;
}

.site-url:hover {
    text-decoration: underline;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    padding: 13px 18px;
    border-radius: 13px;
    background: #10282e;
    color: white;
    font-weight: 800;
    transition: .25s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* WERBUNG / AD-ROTATOR */
.werbung-section {
    padding-top: 40px;
}

.ad-rotator {
    max-width: 520px;
    margin: 0 auto;
}

.ad-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 20% 10%, rgba(25, 184, 255, 0.18), transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(85, 185, 121, 0.16), transparent 40%),
        var(--card);
    box-shadow: var(--shadow);
    aspect-ratio: 1122 / 1402;
}

.ad-slide {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .45s ease, transform .45s ease;
}

.ad-slide.is-visible {
    opacity: 1;
    transform: scale(1);
}

.ad-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: rgba(7, 25, 32, 0.35);
}

.ad-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #079fe5, #19c9ff, #55b979);
}

.ad-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.ad-btn {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: .25s ease;
}

.ad-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(25, 184, 255, .55);
}

.ad-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 280px;
}

.ad-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(25, 184, 255, 0.28);
    cursor: pointer;
    transition: .25s ease;
}

.ad-dot.active {
    background: linear-gradient(135deg, #079fe5, #19c9ff);
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(25, 184, 255, 0.16);
}

.ad-caption {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

/* AUTH / 3FA */
.auth-wrap {
    max-width: 640px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.auth-now {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(25, 184, 255, 0.35);
    background: rgba(25, 184, 255, 0.12);
    color: var(--blue-dark);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.auth-now[hidden] {
    display: none !important;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    font-weight: 800;
    font-size: .92rem;
    transition: .2s ease;
}

.btn-nav:hover,
.btn-nav.active {
    color: var(--blue-dark);
    border-color: rgba(25, 184, 255, .45);
    background: rgba(25, 184, 255, 0.12);
}

.check-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: 700 !important;
    grid-template-columns: none !important;
}

.check-row input {
    width: auto !important;
    accent-color: #079fe5;
}

.pw-rules {
    list-style: none;
    display: grid;
    gap: 4px;
    margin: -4px 0 4px;
    padding: 0;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.pw-rules li.ok {
    color: #2f9e6a;
}

.auth-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
    color: var(--text);
}

.auth-form input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    font: inherit;
}

[data-theme="dark"] .auth-form input {
    background: rgba(8, 22, 28, 0.8);
}

.auth-form input:focus {
    outline: 2px solid rgba(25, 184, 255, 0.35);
    border-color: rgba(25, 184, 255, 0.55);
}

.auth-help,
.auth-foot {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}

.auth-foot {
    margin-top: 16px;
    text-align: center;
}

.auth-foot a,
.auth-help a {
    color: var(--blue-dark);
    font-weight: 800;
}

.auth-status {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(25, 184, 255, 0.1);
    border: 1px solid rgba(25, 184, 255, 0.22);
    font-weight: 700;
}

.auth-status[data-type="ok"] {
    background: rgba(85, 185, 121, 0.14);
    border-color: rgba(85, 185, 121, 0.35);
}

.auth-status[data-type="err"] {
    background: rgba(224, 122, 95, 0.14);
    border-color: rgba(224, 122, 95, 0.35);
}

.konto-grid {
    display: grid;
    gap: 16px;
}

.konto-grid dt {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.konto-grid dd {
    font-weight: 800;
    font-size: 1.05rem;
}

.table-title {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.auth-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.auth-table th,
.auth-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: .92rem;
}

.auth-table th {
    color: var(--muted);
    font-weight: 800;
    background: rgba(25, 184, 255, 0.06);
}

.auth-table tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 900px) {
    .cards,
    .server-panel {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        position: absolute;
        top: 76px;
        left: 4%;
        right: 4%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: var(--card);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        text-align: center;
    }

    .menu-btn {
        display: block;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 10px 0;
    }

    .brand span {
        display: none;
    }

    .hero {
        min-height: 88vh;
        padding-top: 110px;
    }

    section {
        padding: 65px 0;
    }

    .page-top {
        padding-top: 120px;
    }

    .ip-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .actions {
        flex-direction: column;
    }

    .ad-rotator {
        max-width: 100%;
    }

    .ad-frame {
        border-radius: 20px;
    }
}

/* —— Freunde-Dashboard —— */
.friends-wrap {
    padding-bottom: 48px;
}

.friends-loading,
.friends-gate {
    margin-bottom: 18px;
}

.friends-you {
    margin-bottom: 22px;
}

.friends-you-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.friends-eyebrow {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.friends-meta {
    color: var(--muted);
    margin-top: 6px;
    font-size: .95rem;
}

.friends-you-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.friends-you-stats > div,
.friends-stat {
    min-width: 110px;
}

.friends-you-stats span,
.friends-stat span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.friends-you-stats strong,
.friends-stat strong {
    font-size: 1.15rem;
}

.friends-stat small {
    display: block;
    margin-top: 2px;
    font-weight: 700;
    font-size: .8rem;
}

.friends-stat.up small { color: #1f8a4c; }
.friends-stat.down small { color: #c2410c; }
.friends-stat.neutral small { color: var(--muted); }

.friends-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 16px;
}

.friends-count {
    font-weight: 900;
    font-size: 1.05rem;
}

.friends-sort {
    color: var(--muted);
    font-size: .9rem;
    flex: 1;
    min-width: 180px;
}

.friends-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .8rem;
    font-weight: 800;
    color: var(--muted);
}

.friends-filter input {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 14px;
    padding: 10px 14px;
    min-width: 200px;
}

.friends-list {
    display: grid;
    gap: 14px;
}

.friends-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.friends-card-main {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
    flex: 1;
}

.friends-card h3 {
    font-size: 1.15rem;
}

.friends-card-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.friends-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    background: rgba(25, 184, 255, 0.12);
    color: var(--blue-dark);
}

.friends-pill.rich {
    background: rgba(31, 138, 76, 0.14);
    color: #1f8a4c;
}

[data-theme="dark"] .friends-pill {
    color: var(--blue);
}

.friends-inv-label {
    margin: 18px 0 10px;
    font-weight: 800;
}

.friends-inv-grid,
.friends-inv-row .friends-inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.friends-inv-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(25, 184, 255, 0.04);
}

.friends-inv-card header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.friends-inv-card h4 {
    font-size: .95rem;
}

.friends-inv-card header span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.friends-inv-card ul {
    list-style: none;
    display: grid;
    gap: 4px;
}

.friends-inv-card li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: .88rem;
}

.friends-empty,
.friends-empty-state {
    color: var(--muted);
    font-weight: 700;
}

.friends-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(7, 19, 23, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.friends-modal[hidden] {
    display: none !important;
}

.friends-modal-card {
    width: min(760px, 100%);
    max-height: min(80vh, 900px);
    overflow: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.friends-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.friends-gate strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.friends-gate p + p {
    margin-top: 8px;
}

@media (max-width: 700px) {
    .friends-card-main {
        flex-direction: column;
        gap: 12px;
    }

    .friends-filter input {
        min-width: 0;
        width: 100%;
    }

    .friends-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* —— Spielerbereich (Adora / Pandora) —— */
.panel-main {
    padding-bottom: 56px;
}

.panel-profile-bar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.panel-eyebrow {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.panel-meta {
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ucp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8b86d;
    display: inline-block;
}

.ucp-dot.live {
    background: #2f9e64;
    box-shadow: 0 0 0 3px rgba(47, 158, 100, 0.18);
}

.panel-world-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.panel-world-chips span {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    border: 1px solid var(--border);
    background: rgba(25, 184, 255, 0.08);
    color: var(--blue-dark);
}

.panel-world-chips .chip-pandora {
    background: rgba(61, 180, 140, 0.14);
    border-color: rgba(61, 180, 140, 0.35);
    color: #1d6b52;
}

[data-theme="dark"] .panel-world-chips span {
    color: var(--blue);
}

[data-theme="dark"] .panel-world-chips .chip-pandora {
    color: #8fe0c0;
}

.panel-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.panel-tab {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    font-weight: 800;
    font-size: .9rem;
    padding: 11px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: .2s ease;
}

.panel-tab:hover {
    color: var(--text);
    border-color: rgba(25, 184, 255, 0.4);
}

.panel-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #2f9e64);
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(25, 184, 255, 0.22);
}

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

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

.panel-card-title {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.panel-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.panel-hint {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 4px;
}

.panel-search {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    border-radius: 14px;
    padding: 10px 14px;
    min-width: 200px;
}

[data-theme="dark"] .panel-search {
    background: rgba(0, 0, 0, 0.22);
}

.panel-stat {
    font-size: 2rem;
    font-weight: 900;
    margin: 8px 0 14px;
    background: linear-gradient(120deg, var(--blue-dark), #2f9e64);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.panel-jump .btn {
    width: auto;
}

.panel-bag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.panel-bag,
.ucp-bag {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    background: rgba(25, 184, 255, 0.04);
}

.panel-bag header,
.ucp-bag header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.panel-bag header span,
.ucp-bag header span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.ucp-mat {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem;
    color: var(--blue-dark);
}

[data-theme="dark"] .ucp-mat {
    color: var(--blue);
}

.ucp-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
    word-break: break-all;
}

.ucp-ol {
    margin-left: 1.1rem;
    display: grid;
    gap: 6px;
}

.ucp-hint {
    color: var(--muted);
    font-size: .92rem;
}

@media (max-width: 900px) {
    .panel-grid-2,
    .panel-grid-3 {
        grid-template-columns: 1fr;
    }

    .panel-search {
        min-width: 0;
        width: 100%;
    }
}
