:root {
    --bg: #09111f;
    --panel: rgba(18, 27, 46, 0.82);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #eef4ff;
    --muted: #a9bbd8;
    --primary: #68a4ff;
    --primary-2: #8f72ff;
    --success: #2ecc71;
    --danger: #ff6b6b;
    --shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    --body-background: linear-gradient(135deg, #08101c, #0d1729 55%, #09111f);
    --menu-bg: rgba(15, 24, 41, 0.96);
    --menu-link-hover: rgba(255, 255, 255, 0.06);
    --button-soft-bg: rgba(255, 255, 255, 0.04);
    --button-soft-hover: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--body-background);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        sans-serif;
}

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

.shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px;
}

/* =========================
   TOPBAR / HEADER
========================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 88px;
    padding: 16px 20px;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 12px;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 800;
    min-height: 48px;
    flex-wrap: wrap;
    max-width: 100%;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    max-width: 100%;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 14px;
    flex: 0 0 auto;
    filter: drop-shadow(0 8px 22px rgba(117, 136, 255, 0.28));
}

.brand-name {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 1.1rem;
    line-height: 1;
}

.brand-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-copy,
.brand-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    font-size: 0.84rem;
    line-height: 1;
    color: var(--muted);
}

.brand-version {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}


.brand-tarifs-pill {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
}

.help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1;
    vertical-align: middle;
}

.pricing-table th,
.pricing-table td {
    vertical-align: middle;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
    text-align: left;
}

.pricing-plan-column {
    text-align: center;
}

.pricing-plan-head {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    text-align: center;
}

.pricing-plan-action-cell {
    min-width: 190px;
}

.pricing-plan-action-cell form,
.pricing-plan-action-cell .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-current-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: var(--muted);
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-height: 48px;
    flex-wrap: wrap;
}

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

.mini-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.04);
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1;
}

.mini-pill.active,
.mini-pill:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}


.mini-pill-icon {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 1.02rem;
}

.mini-pill-icon span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    min-height: 40px;
}

.nav a {
    color: var(--muted);
    line-height: 1;
    transition:
        color 0.18s ease,
        opacity 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--muted);
    border: 1px solid var(--panel-border);
    background: rgba(255,255,255,0.04);
}

.nav-pill:hover,
.nav-pill.active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
}


/* =========================
   LAYOUT
========================= */
.container {
    padding: 28px 0;
}

.hero,
.panel,
.auth-card,
.glass {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    padding: 40px;
    border-radius: 32px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.02;
    margin: 0 0 12px;
}

.hero p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 720px;
}

.glass {
    border-radius: 28px;
    padding: 24px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
}

.btn-dark {
    background: var(--button-soft-bg);
    color: var(--text);
    border: 1px solid var(--panel-border);
}

.btn-dark:hover {
    background: var(--button-soft-hover);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 107, 107, 0.35);
}

.grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel,
.auth-card {
    padding: 28px;
    border-radius: 28px;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
    margin: 0 auto;
}

.center {
    text-align: center;
}

.form-card {
    display: grid;
    gap: 12px;
}

label {
    font-weight: 700;
    font-size: 0.95rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--panel-border);
    background: var(--button-soft-bg);
    color: var(--text);
    padding: 13px 14px;
    border-radius: 16px;
    outline: none;
    font: inherit;
}

textarea {
    resize: vertical;
}

small,
.muted {
    color: var(--muted);
}

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

.checkbox input {
    width: auto;
}

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

.metric {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
}

.metric strong {
    display: block;
    font-size: 1.5rem;
}

.metric span {
    color: var(--muted);
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
}

.alert.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.35);
}

.alert.error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.35);
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

th {
    text-align: left;
    color: var(--muted);
    font-weight: 700;
}

.truncate {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
}

.link-destination-cell {
    max-width: 380px;
}

.truncate-inline {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.links-table {
    min-width: 980px;
}

.links-table th,
.links-table td {
    vertical-align: middle;
}

.actions-nowrap form {
    margin: 0;
}

.user-table th,
.user-table td,
#subscriptions-table th,
#subscriptions-table td,
#features-table th,
#features-table td {
    vertical-align: middle;
}

.table-wrap td > .actions,
.table-wrap td > .table-flag,
.table-wrap td > .compact-checkbox,
.table-wrap td > .compact-checkbox-only {
    min-height: 100%;
}

.table-wrap td.actions-cell {
    text-align: center;
}

.nowrap {
    white-space: nowrap;
}

.cell-center,
.col-icon {
    text-align: center;
}

.head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    font-size: 1rem;
    line-height: 1;
}

.date-cell {
    cursor: help;
}

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

.actions-cell {
    vertical-align: middle;
}

.actions-cell .actions {
    justify-content: center;
}

.linklike {
    background: none;
    border: none;
    color: var(--danger);
    padding: 0;
    cursor: pointer;
}

.codebox {
    padding: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    overflow: auto;
}

.footer {
    padding: 24px 8px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.clean {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.ad-slot {
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
}

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

/* =========================
   KPI / METRICS
========================= */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.small {
    font-size: 12px;
}

.muted {
    opacity: 0.72;
}

.panel-spaced {
    margin-top: 28px;
}

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

/* =========================
   SORTABLE TABLES
========================= */
th.sortable-ready {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 28px;
}

th.sortable-ready::after {
    content: "⇅";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.35;
    font-size: 0.85rem;
}

th.sortable-ready[data-sort-state="desc"]::after {
    content: "↓";
    opacity: 0.9;
}

th.sortable-ready[data-sort-state="asc"]::after {
    content: "↑";
    opacity: 0.9;
}

/* =========================
   QR
========================= */
.qr-block {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.qr-block.center {
    text-align: center;
}

.qr-image {
    display: block;
    max-width: 240px;
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 10px;
}

.qr-image-large {
    max-width: 320px;
    margin: 12px auto 0;
}

.actions-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* =========================
   TABLE LINKS / CLICKABLE ROWS
========================= */
.table-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.table-link:hover {
    color: var(--primary);
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* =========================
   DANGER
========================= */
.danger-zone {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    background: rgba(255, 107, 107, 0.06);
}

/* =========================
   HOME FEATURES / MARKETING
========================= */
.hero-home {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: stretch;
}

.home-copy {
    display: grid;
    gap: 22px;
    align-content: center;
}

.home-lead {
    font-size: 1.16rem;
    line-height: 1.65;
    max-width: 62ch;
    margin-bottom: 0;
}

.home-secondary {
    margin-top: 14px;
    max-width: 62ch;
}

.home-hero-grid {
    margin-top: 4px;
}

.home-visuals {
    display: grid;
    gap: 18px;
    align-content: stretch;
}

.home-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(129, 107, 255, 0.24), transparent 55%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.home-logo-large {
    width: min(100%, 430px);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 26px 80px rgba(100, 125, 255, 0.28));
}

.home-banner-card {
    padding: 0;
    overflow: hidden;
}

.home-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.home-story-grid {
    margin-top: 22px;
    align-items: stretch;
}

.home-story-card {
    display: grid;
    gap: 18px;
}

.home-story-card h2 {
    margin: 0 0 12px;
    font-size: 1.8rem;
}

.home-story-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.home-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
}

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

.home-option {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
}

.home-option strong {
    font-size: 1.06rem;
}

.home-option span {
    color: var(--muted);
    line-height: 1.6;
}

.home-plugin-strip {
    margin-top: 22px;
    display: grid;
    gap: 18px;
}

.home-plugin-head {
    margin-bottom: 0;
}

.home-plugin-copy {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 74ch;
}

.feature-groups {
    display: grid;
    gap: 18px;
}

.feature-group-card h3 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

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

.home-plugin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================
   USER MENU
========================= */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.user-menu summary {
    list-style: none;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    cursor: pointer;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    line-height: 1;
}

.user-menu-toggle span,
.user-menu-toggle strong,
.user-menu-toggle small {
    line-height: 1;
}

.user-menu[open] .user-menu-toggle,
.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--panel-border);
    color: var(--text);
}

.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 180px;
    padding: 10px;
    background: var(--menu-bg);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    z-index: 30;
}

.user-menu-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
}

.user-menu-panel a:hover {
    background: var(--menu-link-hover);
}

/* =========================
   AVATARS
========================= */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 800;
    flex: 0 0 auto;
    line-height: 1;
}

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

.avatar-sm {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
}

.avatar-lg {
    width: 96px;
    height: 96px;
    font-size: 1.8rem;
}

.avatar-fallback {
    letter-spacing: 0.04em;
}

/* =========================
   PROFILE
========================= */
.profile-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-fields {
    flex: 1;
    min-width: 260px;
}

.profile-pub-block {
    display: grid;
    gap: 12px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1180px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero,
    .grid.two,
    .hero-home {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .topbar {
        position: static;
    }

    .topbar-right {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .kpi-grid,
    .metric-grid-compact,
    .feature-grid,
    .home-plugin-grid,
    .home-option-grid {
        grid-template-columns: 1fr;
    }

    .shell {
        padding: 14px;
    }

    .panel,
    .auth-card,
    .glass,
    .hero {
        border-radius: 22px;
        padding: 20px;
    }

    .topbar {
        padding: 14px 16px;
        border-radius: 22px;
    }

    .brand-meta {
        width: 100%;
    }

    .topbar-right {
        gap: 12px;
    }

    .toolbar-switchers {
        width: 100%;
    }

    .nav {
        gap: 10px;
    }

    .nav a {
        min-height: 36px;
    }

    .user-menu-panel {
        left: 0;
        right: auto;
        min-width: 160px;
    }

    .profile-header {
        flex-direction: column;
        align-items: stretch;
    }
}


.pagination {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}
.page-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    height:40px;
    padding:0 12px;
    border-radius:12px;
    border:1px solid var(--panel-border);
    background:rgba(255,255,255,0.04);
    color:var(--text);
}
.page-link.active {
    background:linear-gradient(135deg, var(--primary), var(--primary-2));
    color:#fff;
    border-color:transparent;
}


.separator {
    border: 0;
    height: 1px;
    background: var(--button-soft-hover);
    margin: 8px 0 4px;
}

.actions-icons {
    gap: 8px;
}

.actions-nowrap {
    flex-wrap: nowrap;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    background: var(--button-soft-bg);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
    line-height: 1;
    flex: 0 0 auto;
}

.icon-btn:hover {
    background: var(--button-soft-hover);
}

.icon-btn-danger {
    color: var(--danger);
}

.icon-btn-image,
.btn-icon-img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-icon-only {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
}

.btn-icon-only .btn-icon-img {
    width: 22px;
    height: 22px;
}

.btn-add-action {
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--panel-border);
    background: var(--button-soft-bg);
    color: var(--text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.btn-add-action:hover {
    background: var(--button-soft-hover);
}

.btn-add-action .btn-icon-img {
    width: 24px;
    height: 24px;
}

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


.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.subnav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.subnav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--muted);
    border: 1px solid var(--panel-border);
    background: rgba(255,255,255,0.04);
}

.subnav-link.active,
.subnav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

.plugin-fieldset {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--panel-border);
    background: rgba(255,255,255,0.035);
    display: grid;
    gap: 12px;
}

.plugin-fieldset-core {
    background: rgba(104, 164, 255, 0.08);
    border-color: rgba(104, 164, 255, 0.2);
}

.plugin-fieldset.is-disabled {
    opacity: 0.58;
}

.plugin-fieldset.is-disabled input,
.plugin-fieldset.is-disabled textarea,
.plugin-fieldset.is-disabled select,
.plugin-fieldset.is-disabled button {
    cursor: not-allowed;
}

.plugin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.plugin-head strong {
    display: block;
    font-size: 1rem;
}

.plugin-head small {
    display: block;
    margin-top: 4px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--panel-border);
}

.feature-pill.is-active,
.feature-pill.is-core {
    background: rgba(46, 204, 113, 0.14);
    color: #d7ffea;
    border-color: rgba(46, 204, 113, 0.28);
}

.feature-pill.is-core {
    background: rgba(104, 164, 255, 0.18);
    color: #eef4ff;
    border-color: rgba(104, 164, 255, 0.28);
}

.feature-pill.is-off {
    background: var(--menu-link-hover);
    color: var(--muted);
}

.compact-checkbox {
    gap: 8px;
}


.compact-checkbox-only {
    justify-content: center;
}

.table-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-flag-input,
.compact-checkbox-only input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.table-flag-input[disabled],
.compact-checkbox-only input[disabled] {
    opacity: 1;
    cursor: default;
}

@media (max-width: 680px) {
    .plugin-head {
        flex-direction: column;
        align-items: stretch;
    }
}


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

.subscription-row-deleted,
.subscription-column-deleted {
    display: none;
}


@media (max-width: 900px) {
    .topbar {
        align-items: flex-start;
    }

    .topbar-right {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .shell {
        padding: 14px;
    }

    .topbar {
        padding: 14px 16px;
        border-radius: 20px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-copy,
    .brand-version {
        font-size: 0.78rem;
    }
}

.hero-home-single {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.home-visuals-single {
    align-content: center;
}

.home-banner-card-large {
    min-height: 100%;
}

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

#campaigns-table textarea,
#features-table input[type="text"],
#subscriptions-table input[type="text"],
#subscriptions-table input[type="number"] {
    width: 100%;
}

#campaigns-table textarea {
    min-width: 280px;
}

#campaigns-table td,
#campaigns-table th {
    vertical-align: middle;
}

.table-wrap td.actions-cell > .actions,
.table-wrap td.actions-cell > .icon-btn,
.table-wrap td.actions-cell > button,
.table-wrap td.actions-cell form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.subscription-row-deleted {
    opacity: 0.4;
}

@media (max-width: 900px) {
    .hero-home-single {
        grid-template-columns: 1fr;
    }
}
