/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #0d0f14;
    --color-surface: #161a23;
    --color-primary: #6c63ff;
    --color-accent: #00d4ff;
    --color-text: #e2e8f0;
    --color-muted: #8892a4;
    --font-sans: 'Segoe UI', system-ui, sans-serif;
    --radius: 0.5rem;
    --max-w: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.7;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Layout ===== */
.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 15, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--color-primary);
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav li {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav a {
    color: var(--color-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--color-text);
    text-decoration: none;
}

.nav-members {
    color: var(--color-primary) !important;
    font-weight: 600;
}

.nav-logout {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-muted);
    padding: 0;
    transition: color 0.2s;
}

.nav-logout:hover {
    color: var(--color-text);
}

/* ===== Responsive Main Navigation ===== */
@media (max-width: 860px) {
    .site-header {
        padding: 0.75rem 0;
    }

    .site-header .container {
        flex-wrap: wrap;
        row-gap: 0.6rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .site-header.js-nav .site-nav {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }

    .site-header.js-nav.menu-open .site-nav {
        max-height: 320px;
        opacity: 1;
    }

    .site-header.menu-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.menu-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav a,
    .nav-logout {
        font-size: 0.9rem;
    }

    .site-nav form {
        display: flex;
    }
}

@media (max-width: 520px) {
    .site-header .container {
        align-items: center;
    }

    .logo {
        width: auto;
        font-size: 1.25rem;
    }

    .nav-toggle {
        margin-left: auto;
    }

    .site-nav ul {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav a,
    .nav-logout {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        text-align: left;
    }
}

/* ===== Hero ===== */
.hero {
    min-height: 82vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 4rem 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero h1 span {
    color: var(--color-primary);
}

.lead {
    font-size: 1.15rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto 2.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:disabled,
.btn-ghost:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

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

/* ===== Features ===== */
.features {
    padding: 5rem 0;
    text-align: center;
}

/* ===== Sections gemeinsam ===== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.features h2,
.tech-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.section-intro {
    text-align: center;
    color: var(--color-muted);
    max-width: 620px;
    margin: -1.5rem auto 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

/* ===== Tech-Section ===== */
.tech-section {
    padding: 5rem 0;
    background: var(--color-surface);
    text-align: center;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.tech-badge {
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: var(--color-text);
    border-radius: 2rem;
    padding: 0.4rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.tech-badge:hover {
    background: rgba(108, 99, 255, 0.25);
    border-color: var(--color-primary);
}

/* ===== FAQ ===== */
.faq-section {
    padding: 5rem 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.faq-list details {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
}

.faq-list summary {
    cursor: pointer;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.45;
}

.faq-list p {
    color: var(--color-muted);
    margin-top: 0.65rem;
}

/* ===== Contact ===== */
.contact {
    padding: 5rem 0;
    text-align: center;
    background: radial-gradient(ellipse at 50% 100%, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact p {
    color: var(--color-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.site-footer a.active,
.site-footer a[aria-current="page"] {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.debug-info {
    margin-top: 0.5rem;
    font-family: monospace;
    color: var(--color-primary);
    font-size: 0.75rem;
}

/* ===== Inner Pages ===== */
.inner-page {
    padding: 4rem 0 5rem;
    min-height: 70vh;
}

.inner-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section {
    max-width: 780px;
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 2rem 0 0.5rem;
}

.legal-section p {
    color: var(--color-muted);
    line-height: 1.8;
}

.legal-section a {
    word-break: break-all;
}

.legal-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1.25rem 0 0.4rem;
}

.legal-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--color-muted);
    line-height: 1.9;
}

.legal-list li+li {
    margin-top: 0.25rem;
}

.legal-list strong {
    color: var(--color-text);
}

/* ===== Auth (Login) ===== */
.auth-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: var(--color-bg);
}

.auth-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: min(100%, 420px);
    margin: 1rem;
}

.auth-logo {
    display: block;
    margin-bottom: 1.5rem;
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.auth-error {
    background: rgba(255, 70, 70, 0.12);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff9090;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.auth-back {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.auth-success {
    background: rgba(107, 203, 119, 0.12);
    border: 1px solid rgba(107, 203, 119, 0.3);
    color: #6bcb77;
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-error-list {
    background: rgba(255, 70, 70, 0.12);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff9090;
    border-radius: var(--radius);
    padding: 0.75rem 1rem 0.75rem 1.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.8;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.captcha-tools {
    margin-top: 0.65rem;
}

.btn-calc-toggle {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--color-accent);
    border-radius: var(--radius);
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.btn-calc-toggle:hover {
    border-color: var(--color-accent);
}

.captcha-calculator {
    margin-top: 0.6rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.captcha-calc-display {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--color-text);
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    font-family: inherit;
}

.captcha-calc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.calc-key {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    border-radius: calc(var(--radius) - 2px);
    padding: 0.35rem 0;
    font-size: 0.86rem;
    cursor: pointer;
}

.calc-key:hover {
    border-color: var(--color-primary);
}

.captcha-calc-actions {
    margin-top: 0.55rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.calc-action-key {
    min-width: 44px;
    padding: 0.35rem 0.7rem;
}

.captcha-calc-actions .btn-link {
    font-size: 0.8rem;
}

/* ===== Passwort-Stärke ===== */
.pw-strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 0.4rem;
    overflow: hidden;
}

.pw-strength-bar>div {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

.very-weak {
    background: #ff4444;
}

.weak {
    background: #ff8c00;
}

.medium {
    background: #ffd700;
}

.strong {
    background: #90ee90;
}

.very-strong {
    background: #6bcb77;
}

.pw-rules {
    list-style: none;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--color-muted);
    columns: 2;
    gap: 0.25rem;
}

.pw-rules li::before {
    content: '○ ';
}

.pw-rules li.ok::before {
    content: '✓ ';
    color: #6bcb77;
}

.pw-rules li.ok {
    color: #6bcb77;
}

.pw-rules li.fail::before {
    content: '✗ ';
}

.pw-rules li.fail {
    color: #ff9090;
}

/* ===== Forms ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.form-group small {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.form-check {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
}

.form-check label {
    color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--color-text);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0 1.25rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-muted);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.2s;
}

.btn-ghost:hover {
    border-color: var(--color-text);
    text-decoration: none;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
}

.btn-link.danger {
    color: #ff7070;
}

.btn-link:hover {
    opacity: 0.8;
}

/* ===== Admin Layout ===== */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg);
}

.admin-menu-toggle {
    position: fixed;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 230;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(22, 26, 35, 0.94);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.admin-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-body:not(.admin-sidebar-collapsed) .admin-menu-toggle span:nth-child(1),
.admin-body.admin-sidebar-open .admin-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.admin-body:not(.admin-sidebar-collapsed) .admin-menu-toggle span:nth-child(2),
.admin-body.admin-sidebar-open .admin-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.admin-body:not(.admin-sidebar-collapsed) .admin-menu-toggle span:nth-child(3),
.admin-body.admin-sidebar-open .admin-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(0, 0, 0, 0.48);
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--color-surface);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.22s ease, padding 0.22s ease, transform 0.22s ease;
}

.admin-logo {
    margin: 0 0 2rem 3.1rem;
}

.admin-body.admin-sidebar-collapsed .admin-sidebar {
    width: 64px;
    padding-inline: 0.7rem;
}

.admin-body.admin-sidebar-collapsed .admin-logo,
.admin-body.admin-sidebar-collapsed .admin-nav,
.admin-body.admin-sidebar-collapsed .admin-user-info {
    opacity: 0;
    pointer-events: none;
}

.admin-nav {
    list-style: none;
    flex: 1;
}

.admin-nav li+li {
    margin-top: 0.25rem;
}

.admin-nav li.admin-nav-child {
    margin-left: 0.7rem;
}

.admin-nav li.admin-nav-child a {
    position: relative;
    padding-left: 1.25rem;
}

.admin-nav li.admin-nav-child a::before {
    content: '';
    position: absolute;
    left: 0.55rem;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%);
}

.admin-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: var(--color-muted);
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(108, 99, 255, 0.15);
    color: var(--color-text);
    text-decoration: none;
}

.admin-user-info {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.admin-main {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    min-width: 0;
}

.admin-content {
    max-width: 1000px;
}

.admin-content>h1 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

/* ===== Admin Sections & Table ===== */
.admin-section {
    margin-bottom: 2.5rem;
}

.admin-section h2 {
    font-size: 1.05rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-form {
    max-width: 700px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table th {
    color: var(--color-muted);
    font-weight: 600;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.td-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.role-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-admin {
    background: rgba(108, 99, 255, 0.2);
    color: var(--color-primary);
}

.role-member {
    background: rgba(0, 212, 255, 0.12);
    color: var(--color-accent);
}

.role-granular {
    background: rgba(107, 203, 119, 0.12);
    border: 1px solid rgba(107, 203, 119, 0.25);
    color: #6bcb77;
}

/* ===== Rollen-Checkboxen ===== */
.role-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.role-check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
}

/* ===== Rollen-Verwaltungszeile (Account-Manager) ===== */
.role-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.role-row-user {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.role-row-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

/* ===== Account-User-Zuordnung ===== */
.account-user-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 600px;
}

.account-user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s;
}

.account-user-item:hover {
    border-color: var(--color-primary);
}

.account-user-item input {
    flex-shrink: 0;
}

.account-user-item span:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.account-user-item span small {
    color: var(--color-muted);
    font-size: 0.78rem;
}

/* ===== Account-Cards (Member-Ansicht) ===== */
.account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.account-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.account-card:hover {
    border-color: var(--color-primary);
}

.account-logo-name {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    max-width: 100%;
}

.account-logo {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
    max-height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2rem;
}

.account-logo--sm {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    max-height: 18px;
    flex: 0 0 18px;
    border-radius: 4px;
    padding: 0.08rem;
}

.account-logo--inline {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    max-height: 18px;
    flex: 0 0 18px;
    border-radius: 4px;
    padding: 0.08rem;
}

.account-logo-name>span,
.account-logo-name>strong,
.account-card-heading>h3 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-card-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.account-card h3 {
    font-size: 1.05rem;
    color: var(--color-accent);
    margin: 0;
}

.account-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Area-Type-Badges ===== */
.area-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.area-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    vertical-align: middle;
    object-fit: contain;
}

.area-type-azure {
    background: rgba(0, 120, 212, 0.18);
    color: #5ea8f5;
}

.area-type-aws {
    background: rgba(255, 153, 0, 0.18);
    color: #f5a742;
}

.area-type-onpremise {
    background: rgba(107, 203, 119, 0.18);
    color: #6bcb77;
}

.area-type-sonstiges {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-muted);
}

/* Area Breadcrumb */
/* ===== Info-Box (wiederverwendbares Hinweis-Element) ===== */
.info-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    padding: 1rem 2.6rem 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
    max-width: 780px;
    border: 1px solid transparent;
}

.info-box>.info-box__hide-form {
    position: absolute;
    top: .5rem;
    right: .5rem;
    left: auto;
    bottom: auto;
    margin: 0;
    z-index: 2;
}

.info-box>.info-box__hide-form>.info-box__hide-btn {
    width: 1.65rem;
    height: 1.65rem;
    border: 1px solid rgba(0, 212, 255, .35);
    border-radius: 999px;
    background: rgba(0, 212, 255, .10);
    color: var(--color-accent);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}

.info-box__hide-btn:hover,
.info-box__hide-btn:focus-visible {
    background: rgba(0, 212, 255, .22);
    color: var(--color-text);
    border-color: rgba(0, 212, 255, .7);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .18);
    transform: translateY(-1px);
    outline: none;
}

.info-box--info {
    background: rgba(107, 203, 119, 0.12);
    border-color: rgba(107, 203, 119, 0.35);
}

.info-box--tip {
    background: rgba(107, 203, 119, 0.12);
    border-color: rgba(107, 203, 119, 0.35);
}

.info-box--warning {
    background: rgba(255, 144, 0, 0.10);
    border-color: rgba(255, 144, 0, 0.35);
}

.info-box--success {
    background: rgba(107, 203, 119, 0.12);
    border-color: rgba(107, 203, 119, 0.35);
}

.info-box__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: .05rem;
}

.info-box__body {
    flex: 1;
}

.info-box__title {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .2rem;
    color: var(--color-text);
}

.info-box__text {
    font-size: .85rem;
    color: var(--color-muted);
    line-height: 1.65;
    margin: 0;
}

.area-breadcrumb {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.area-breadcrumb a {
    color: var(--color-accent);
}

/* ===== Zugangsbeschreibung ===== */
.guide-intro {
    color: var(--color-muted);
    max-width: 860px;
    margin-bottom: 1.5rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.guide-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1rem;
}

.guide-card h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
    color: var(--color-accent);
}

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

.guide-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin-top: 0.45rem;
}

.guide-list li+li {
    margin-top: 0.2rem;
}

.guide-note {
    margin-top: 1rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.screenshot-item {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
}

.screenshot-item img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-item figcaption {
    padding: 0.7rem 0.85rem;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.area-breadcrumb strong {
    color: var(--color-text);
}

.account-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* Textarea */
.form-group textarea {
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--color-text);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.status-on {
    color: #6bcb77;
    font-size: 0.8rem;
}

.status-off {
    color: #ff7070;
    font-size: 0.8rem;
}

.admin-notice {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.admin-notice.success {
    background: rgba(107, 203, 119, 0.12);
    border: 1px solid rgba(107, 203, 119, 0.3);
    color: #6bcb77;
}

.admin-notice.error {
    background: rgba(255, 70, 70, 0.12);
    border: 1px solid rgba(255, 70, 70, 0.3);
    color: #ff9090;
}

/* ===== Dashboard Stats ===== */
.dashboard-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 1.25rem 1.75rem;
    min-width: 130px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* ===== Dashboard Accounts & Areas ===== */
.dashboard-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-account-box {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.dash-account-box:hover {
    border-color: var(--color-primary);
}

.dash-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.9rem;
    background: rgba(108, 99, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 600;
    font-size: 0.9rem;
}

.dash-account-header a:first-child {
    color: var(--color-text);
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
}

.dash-account-header a:first-child:hover {
    color: var(--color-primary);
}

.dash-account-add {
    color: var(--color-primary);
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.dash-account-add:hover {
    opacity: 1;
    text-decoration: none;
}

.dash-areas {
    padding: 0.5rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dash-area-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text);
}

.dash-no-areas {
    padding: 0.5rem 0.75rem 0.75rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    font-style: italic;
}

/* ===== Area-Detailseite ===== */
.area-detail-card {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    max-width: 860px;
}

.area-detail-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
}

.area-detail-svg {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.area-detail-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.area-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.area-detail-account {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.area-detail-account a {
    color: var(--color-accent);
}

.area-detail-desc {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.area-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0.8rem 0 0.75rem;
}

.area-detail-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
}

.area-detail-stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--color-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.area-detail-stat-value {
    display: block;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.2;
}

.area-detail-ts {
    font-size: 0.78rem;
    color: var(--color-muted);
}

@media (max-width: 760px) {
    .area-detail-card {
        flex-direction: column;
    }

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

/* ===== Microsoft Login-Button ===== */
.oauth-edit-box {
    background: rgba(0, 120, 212, 0.06);
    border: 1px solid rgba(0, 120, 212, 0.2);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem 1rem;
    margin-bottom: 1.5rem;
    max-width: 620px;
}

.oauth-login-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.oauth-login-row:last-child {
    border-bottom: none;
}

.oauth-client-name {
    font-weight: 600;
    min-width: 130px;
    color: var(--color-text);
    font-size: 0.9rem;
}

.btn-ms-login {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #0078D4;
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.btn-ms-login:hover {
    background: #005a9e;
    text-decoration: none;
    transform: translateY(-1px);
    color: #fff;
}

/* ===== MS-User-Card (nach Azure-Login) ===== */
.ms-user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 120, 212, 0.08);
    border: 1px solid rgba(0, 120, 212, 0.25);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    max-width: 520px;
}

.ms-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0078D4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ms-user-info {
    flex: 1;
}

.ms-user-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.ms-user-email {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.ms-user-meta {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-top: 0.15rem;
}

/* ===== Entra PIM ===== */
.pim-section {
    margin-top: 1.5rem;
    max-width: 900px;
}

.pim-group {
    margin-bottom: 1.5rem;
}

.pim-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.pim-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pim-dot--active {
    background: #6bcb77;
    box-shadow: 0 0 6px #6bcb7780;
}

.pim-dot--eligible {
    background: #ffd700;
    box-shadow: 0 0 6px #ffd70060;
}

.pim-table {
    font-size: 0.84rem;
}

.pim-table th {
    font-size: 0.78rem;
}

.pim-type-badge {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.pim-type--direct,
.pim-type--assigned {
    background: rgba(107, 203, 119, .15);
    color: #6bcb77;
}

.pim-type--group {
    background: rgba(0, 212, 255, .12);
    color: var(--color-accent);
}

.pim-type--eligible {
    background: rgba(255, 215, 0, .12);
    color: #ffd700;
}

.pim-custom-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 2rem;
    font-size: 0.68rem;
    background: rgba(255, 255, 255, .08);
    color: var(--color-muted);
    margin-left: 0.3rem;
    vertical-align: middle;
}

/* ===== Token-Anzeige ===== */
.token-display-box {
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    width: 100%;
    max-width: 720px;
}

.token-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-muted);
}

.token-copy-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--color-accent);
    border-radius: var(--radius);
    padding: .2rem .65rem;
    font-size: .78rem;
    cursor: pointer;
    transition: border-color .15s;
}

.token-copy-btn:hover {
    border-color: var(--color-accent);
}

.token-textarea {
    width: 100%;
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 4px;
    color: #a8d8a8;
    font-family: monospace;
    font-size: .72rem;
    padding: .5rem .65rem;
    resize: none;
    word-break: break-all;
}

/* ===== Responsive Admin ===== */
@media (max-width: 760px) {
    .admin-body {
        display: block;
        padding-left: 0;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 210;
        width: min(82vw, 280px);
        height: 100vh;
        padding: 1.5rem 1rem;
        transform: translateX(-100%);
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.35);
    }

    .admin-body.admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-logo {
        margin: 0 0 2rem 3.1rem;
    }

    .admin-nav {
        display: block;
    }

    .admin-nav li+li {
        margin-top: 0.25rem;
    }

    .admin-user-info {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-left: none;
        padding: 1rem 0 0;
    }

    .admin-main {
        padding: 5rem 1rem 1.5rem;
    }

    .admin-body.admin-sidebar-mobile:not(.admin-sidebar-open) .admin-menu-toggle span:nth-child(1),
    .admin-body.admin-sidebar-mobile:not(.admin-sidebar-open) .admin-menu-toggle span:nth-child(2),
    .admin-body.admin-sidebar-mobile:not(.admin-sidebar-open) .admin-menu-toggle span:nth-child(3) {
        transform: none;
        opacity: 1;
    }
}

/* ===== Tab-Komponente ===== */
.tabs {
    margin-bottom: 2.5rem;
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-text);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tab-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.tab-btn.active img {
    opacity: 1;
}

.tab-panel {
    display: none;
    padding-top: 1.75rem;
}

.tab-panel.active {
    display: block;
}

/* ===== Management Group Tree ===== */
.mg-tree,
.mg-children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.5rem;
}

.mg-tree {
    padding-left: 0;
}

.mg-node {
    position: relative;
    padding: .15rem 0;
}

.mg-children {
    border-left: 1px dashed rgba(255, 255, 255, 0.15);
    margin-left: .6rem;
}

.mg-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .6rem;
    border-radius: 6px;
    font-size: .875rem;
    cursor: default;
}

.mg-item--group {
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.mg-item--sub {
    background: rgba(0, 120, 212, 0.07);
    border: 1px solid rgba(0, 120, 212, 0.2);
}

.mg-icon {
    font-size: 1rem;
    line-height: 1;
}

.mg-name {
    font-weight: 600;
    color: var(--color-text);
}

.mg-id {
    font-size: .75rem;
    color: var(--color-muted);
    font-family: monospace;
}

/* ===== Shared Resource Filter UI (all detail pages) ===== */
.resource-filter-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .85rem;
}

.resource-filter-label {
    font-size: .8rem;
    color: var(--color-muted);
    white-space: nowrap;
}

input[data-resource-search-input] {
    width: 100%;
    max-width: 560px;
    margin-bottom: .85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: var(--color-text);
    padding: .7rem .9rem;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

input[data-resource-search-input].resource-search-inline {
    margin-bottom: 0;
}

input[data-resource-search-input]::placeholder {
    color: var(--color-muted);
    opacity: .9;
}

input[data-resource-search-input]:focus {
    outline: none;
    border-color: rgba(64, 188, 212, .55);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 3px rgba(64, 188, 212, .12);
}

.subscription-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-bottom: .95rem;
}

.subscription-filter__toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: var(--color-accent);
    cursor: pointer;
    user-select: none;
    border: 0;
    background: transparent;
    padding: 0;
    font-weight: 600;
}

.subscription-filter__toggle:hover,
.subscription-filter__toggle:focus-visible {
    color: var(--color-text);
    outline: none;
}

.subscription-filter__panel {
    position: absolute;
    top: calc(100% + .45rem);
    left: 0;
    z-index: 50;
    width: min(760px, 92vw);
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(22, 26, 35, .98);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .35);
    padding: .75rem .85rem;
}

.subscription-filter__panel[hidden] {
    display: none !important;
}

.subscription-filter__actions {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-bottom: .55rem;
}

.subscription-filter__action-btn {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--color-text);
    font-size: .74rem;
    padding: .2rem .55rem;
    cursor: pointer;
}

.subscription-filter__action-btn:hover,
.subscription-filter__action-btn:focus-visible {
    border-color: rgba(64, 188, 212, .55);
    background: rgba(64, 188, 212, .12);
    outline: none;
}

.subscription-filter__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .45rem .7rem;
}

.subscription-filter__item {
    display: flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
    background: rgba(255, 255, 255, .02);
    padding: .35rem .5rem;
    font-size: .76rem;
    color: var(--color-text);
    cursor: pointer;
}

.subscription-filter__item input {
    accent-color: #40bcd4;
}

.subscription-filter__item small {
    color: var(--color-muted);
    font-size: .7rem;
}

.subscription-filter__hint {
    display: block;
    margin-top: .45rem;
    font-size: .74rem;
    color: var(--color-muted);
}

/* ===== Azure Query Type Picker ===== */
.az-type-picker {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-2);
}

.az-type-btn {
    padding: .45rem 1rem;
    background: none;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-muted);
    font-size: .85rem;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.az-type-btn:last-child {
    border-right: none;
}

.az-type-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.az-type-btn.active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}