.feature-set-admin {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fs-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fs-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fs-card-info {
    padding: 1.25rem;
}

.fs-card-list {
    gap: 1.5rem;
}

.fs-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.fs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.fs-table th,
.fs-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    text-align: left;
}

.fs-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(15, 23, 42, 0.6);
}

.fs-table-row {
    cursor: pointer;
}

.fs-table-row:hover {
    background: rgba(15, 118, 106, 0.03);
}

.fs-table-name {
    font-weight: 600;
}

.fs-table-modules,
.fs-table-prices {
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
}

.fs-table-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-end;
    position: relative;
}

.status-pill {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.status-pill.active {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.status-pill.inactive {
    background: rgba(148, 163, 184, 0.18);
    color: #4b5563;
}

.fs-context-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.3rem;
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
    padding: 0.25rem 0;
    z-index: 20;
}

.context-menu-item {
    display: block;
    width: 100%;
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.85rem;
    color: inherit;
    cursor: pointer;
}

.context-menu-item:hover {
    background: rgba(148, 163, 184, 0.3);
}

.context-menu-item.danger {
    color: #fecaca;
}

.fs-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fs-row-inline {
    align-items: flex-start;
}

.fs-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 118, 106, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.fs-block-compact {
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    background: rgba(15, 118, 106, 0.06);
    border-color: rgba(15, 118, 106, 0.18);
    color: inherit;
    align-self: flex-start;
    max-width: 100%;
}

.fs-block-compact h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f4f45;
}

.fs-block-compact p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.7);
}

.fs-block-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fs-item {
    border: 1px solid rgba(15, 118, 106, 0.16);
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fs-item-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fs-item-title {
    width: 100%;
}

.fs-item-title .fs-row {
    width: 100%;
}

.fs-subsection {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(15, 23, 42, 0.6);
    margin: 0;
}

.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.module-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 118, 106, 0.12);
    font-size: 0.85rem;
}

.module-pill .icon-button {
    font-size: 0.9rem;
    padding: 0.1rem 0.25rem;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

.price-item .ghost-btn {
    align-self: flex-start;
}

.price-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.price-interval {
    font-weight: 600;
}

.price-value {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
}

.fs-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 30;
}

.fs-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    z-index: 40;
}

.fs-modal-card {
    width: min(960px, 100%);
    max-height: 90vh;
    overflow-y: auto;
}

.dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 60;
}

.dialog {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    width: min(420px, 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.import-file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
}

.feature-set-admin .field input,
.feature-set-admin .field select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 118, 106, 0.18);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.feature-set-admin .field input:focus,
.feature-set-admin .field select:focus {
    outline: 2px solid rgba(15, 118, 106, 0.25);
    border-color: rgba(15, 118, 106, 0.35);
    box-shadow: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (min-width: 900px) {
    .fs-row-inline {
        flex-direction: row;
        align-items: flex-end;
    }

    .fs-row-inline .field {
        flex: 1;
    }

    .field-compact {
        flex: 0 0 auto;
        align-self: flex-end;
    }

    .fs-item-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .fs-item-title {
        flex: 1;
        min-width: 0;
    }
}
