.card {
    border-radius: var(--app-radius-lg);
    border: 1px solid var(--bs-border-color);
    background: var(--app-surface);
    box-shadow: var(--app-card-shadow);
    overflow: hidden;
}

.card.shadow-sm {
    box-shadow: var(--app-card-shadow);
}

.card-header {
    border-bottom: 1px solid var(--bs-border-color);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(14, 116, 144, 0.04));
    font-weight: 600;
}

[data-bs-theme='dark'] .card-header {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.28), rgba(14, 116, 144, 0.16));
}

.card-header.bg-body-secondary-subtle {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.09), rgba(14, 116, 144, 0.05));
}

[data-bs-theme='dark'] .card-header.bg-body-secondary-subtle {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.28), rgba(14, 116, 144, 0.18));
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--bs-border-color);
}

.effects-create-card {
    border: 1px solid rgba(37, 99, 235, 0.3);
    background:
        linear-gradient(145deg, rgba(37, 99, 235, 0.14), rgba(14, 116, 144, 0.08) 42%, var(--app-surface) 100%);
}

.effects-create-intro {
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.56);
}

.effects-create-cta {
    min-width: 190px;
    box-shadow:
        0 16px 32px rgba(37, 99, 235, 0.32),
        0 0 0 4px rgba(37, 99, 235, 0.13);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.effects-create-cta:hover,
.effects-create-cta:focus-visible {
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow:
        0 18px 36px rgba(37, 99, 235, 0.35),
        0 0 0 5px rgba(37, 99, 235, 0.18);
}

.effects-create-form-shell {
    border-color: rgba(37, 99, 235, 0.24) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(248, 250, 252, 0.68));
}

.engine-description-panel {
    border-color: rgba(37, 99, 235, 0.2) !important;
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 0.48), rgba(239, 246, 255, 0.42));
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.engine-description-content {
    white-space: pre-line;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.7rem;
    background: var(--app-surface);
    padding: 0.7rem 0.8rem;
    line-height: 1.45;
}

.engine-description-content-info {
    border-color: rgba(37, 99, 235, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.72));
    border-left: 4px solid rgba(37, 99, 235, 0.58);
}

@media (prefers-reduced-motion: no-preference) {
    .effects-create-cta[aria-expanded='false'] {
        animation: effects-cta-pulse 2.2s ease-in-out infinite;
    }

    .effects-create-cta[aria-expanded='true'] {
        animation: none;
    }
}

@keyframes effects-cta-pulse {
    0%,
    100% {
        box-shadow:
            0 16px 32px rgba(37, 99, 235, 0.32),
            0 0 0 4px rgba(37, 99, 235, 0.13);
    }

    50% {
        box-shadow:
            0 20px 40px rgba(37, 99, 235, 0.36),
            0 0 0 7px rgba(37, 99, 235, 0.18);
    }
}

[data-bs-theme='dark'] .effects-create-card {
    border-color: rgba(96, 165, 250, 0.48);
    background:
        linear-gradient(145deg, rgba(30, 64, 175, 0.4), rgba(14, 116, 144, 0.28) 44%, var(--app-surface) 100%);
}

[data-bs-theme='dark'] .effects-create-intro {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(8, 19, 37, 0.66);
}

[data-bs-theme='dark'] .effects-create-form-shell {
    border-color: rgba(96, 165, 250, 0.34) !important;
    background:
        linear-gradient(180deg, rgba(8, 19, 37, 0.78), rgba(15, 23, 42, 0.66));
}

[data-bs-theme='dark'] .engine-description-content {
    background: rgba(15, 23, 42, 0.62);
}

[data-bs-theme='dark'] .engine-description-panel {
    border-color: rgba(96, 165, 250, 0.4) !important;
    background:
        linear-gradient(180deg, rgba(30, 64, 175, 0.22), rgba(15, 23, 42, 0.58));
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2);
}

[data-bs-theme='dark'] .engine-description-content-info {
    border-color: rgba(96, 165, 250, 0.46);
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.76));
    border-left-color: rgba(125, 211, 252, 0.72);
}

[data-bs-theme='dark'] .effects-create-cta {
    box-shadow:
        0 16px 34px rgba(14, 116, 144, 0.4),
        0 0 0 4px rgba(96, 165, 250, 0.2);
}

.info-card {
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.info-facts {
    display: grid;
    gap: 0;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.info-fact-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-bottom: 1px solid var(--bs-border-color);
    border-radius: 0;
    background: transparent;
}

.info-fact-item:last-child {
    border-bottom: 0;
}

.info-fact-label {
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.35;
    text-transform: uppercase;
}

.info-fact-value {
    font-weight: 500;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: anywhere;
}

.info-contact-form .form-label {
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.info-contact-form textarea.form-control {
    min-height: 128px;
}

.instructions-card {
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.instructions-card .card-body {
    background:
        linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(14, 116, 144, 0.06) 34%, transparent 100%);
}

.instructions-video-shell {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.9rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.05);
}

.instructions-video-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.instructions-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    text-align: center;
    font-weight: 500;
    color: var(--app-muted);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.62), rgba(226, 232, 240, 0.58));
}

.instructions-subsection {
    margin-top: 1.5rem;
}

.instructions-subsection + .instructions-subsection {
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color);
}

[data-bs-theme='dark'] .info-card {
    border-color: rgba(96, 165, 250, 0.24);
}

[data-bs-theme='dark'] .info-fact-item {
    background: transparent;
}

[data-bs-theme='dark'] .info-facts {
    background: rgba(8, 19, 37, 0.64);
}

[data-bs-theme='dark'] .instructions-card {
    border-color: rgba(96, 165, 250, 0.34);
}

[data-bs-theme='dark'] .instructions-card .card-body {
    background:
        linear-gradient(165deg, rgba(30, 64, 175, 0.34), rgba(14, 116, 144, 0.24) 38%, rgba(8, 19, 37, 0.16) 100%);
}

[data-bs-theme='dark'] .instructions-video-shell {
    border-color: rgba(148, 163, 184, 0.34);
    background: rgba(8, 19, 37, 0.74);
}

[data-bs-theme='dark'] .instructions-video-placeholder {
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.8));
}

@media (max-width: 575.98px) {
    .effects-create-intro {
        gap: 0.75rem;
    }

    .effects-create-cta {
        width: 100%;
        min-width: 0;
    }

    .info-fact-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .info-card .btn.btn-sm {
        width: 100%;
    }
}

.table-responsive {
    border-radius: var(--app-radius-lg);
    border: 1px solid var(--bs-border-color);
    background: var(--app-surface);
    overflow: hidden;
}

.card > .card-body.p-0 > .table-responsive {
    border: 0;
    border-radius: 0;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    border-color: var(--bs-border-color);
    vertical-align: middle;
}

.table thead th {
    background: var(--app-table-head-bg);
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.table-light {
    --bs-table-bg: var(--app-table-head-bg);
    --bs-table-color: var(--app-text);
    --bs-table-border-color: var(--bs-border-color);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: var(--app-table-hover-bg);
    color: var(--app-text);
}

.admin-toolbar-card {
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(14, 116, 144, 0.04));
}

[data-bs-theme='dark'] .admin-toolbar-card {
    border-color: rgba(96, 165, 250, 0.28);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.2), rgba(8, 145, 178, 0.12));
}

.admin-toolbar-card .form-label {
    color: var(--app-muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-toolbar-meta {
    color: var(--app-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-records-table-wide {
    min-width: 1180px;
}

.admin-records-table > :not(caption) > * > * {
    padding: 0.85rem 0.8rem;
}

.admin-cell-stack {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.admin-cell-primary {
    color: var(--app-text);
    font-weight: 600;
    line-height: 1.32;
    min-width: 0;
}

.admin-cell-secondary {
    color: var(--app-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    min-width: 0;
}

.admin-cell-caption {
    color: var(--app-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-cell-value {
    color: var(--app-text);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
}

.admin-cell-id {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.5rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
    background: rgba(var(--bs-primary-rgb), 0.06);
    color: var(--app-text);
    font-family: var(--bs-font-monospace);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

[data-bs-theme='dark'] .admin-cell-id {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(37, 99, 235, 0.18);
}

.admin-cell-mono {
    font-family: var(--bs-font-monospace);
    overflow-wrap: anywhere;
}

.admin-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.admin-info-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.54rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.18);
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary-text-emphasis);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-info-pill--image {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.admin-info-pill--video {
    border-color: rgba(217, 119, 6, 0.28);
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.admin-info-pill--muted {
    border-color: rgba(100, 116, 139, 0.24);
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
}

.admin-info-pill--stripe {
    border-color: rgba(22, 163, 74, 0.34);
    background: rgba(34, 197, 94, 0.18);
    color: #166534;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.admin-info-pill--manual {
    border-color: rgba(8, 145, 178, 0.28);
    background: rgba(6, 182, 212, 0.14);
    color: #0f766e;
}

.admin-info-pill--starter {
    border-color: rgba(217, 119, 6, 0.28);
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

[data-bs-theme='dark'] .admin-info-pill {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

[data-bs-theme='dark'] .admin-info-pill--image {
    border-color: rgba(96, 165, 250, 0.36);
    background: rgba(37, 99, 235, 0.24);
    color: #bfdbfe;
}

[data-bs-theme='dark'] .admin-info-pill--video {
    border-color: rgba(251, 191, 36, 0.34);
    background: rgba(217, 119, 6, 0.24);
    color: #fde68a;
}

[data-bs-theme='dark'] .admin-info-pill--muted {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(71, 85, 105, 0.28);
    color: #cbd5e1;
}

[data-bs-theme='dark'] .admin-info-pill--stripe {
    border-color: rgba(74, 222, 128, 0.38);
    background: rgba(22, 163, 74, 0.28);
    color: #bbf7d0;
    box-shadow: inset 0 0 0 1px rgba(187, 247, 208, 0.08);
}

[data-bs-theme='dark'] .admin-info-pill--manual {
    border-color: rgba(103, 232, 249, 0.32);
    background: rgba(8, 145, 178, 0.24);
    color: #a5f3fc;
}

[data-bs-theme='dark'] .admin-info-pill--starter {
    border-color: rgba(251, 191, 36, 0.34);
    background: rgba(217, 119, 6, 0.24);
    color: #fde68a;
}

.admin-actions-stack {
    display: grid;
    gap: 0.55rem;
    min-width: 12rem;
}

.admin-actions-stack > .btn,
.admin-actions-stack > form,
.admin-actions-stack .btn,
.admin-actions-stack .form-control,
.admin-actions-stack .form-select {
    width: 100%;
}

.admin-actions-stack form {
    margin: 0;
}

.admin-actions-stack .form-check {
    margin: 0;
}

.admin-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-actions-row form {
    margin: 0;
}

.admin-actions-row > * {
    flex: 1 1 0;
}

.admin-records-table-stripe .stripe-col-date {
    width: 10rem;
    min-width: 10rem;
}

.admin-records-table-stripe .stripe-col-date .admin-cell-primary,
.admin-records-table-stripe .stripe-col-date .admin-cell-secondary {
    white-space: nowrap;
}

.admin-records-table-stripe .stripe-col-actions {
    width: 8rem;
    min-width: 8rem;
}

.admin-records-table-stripe .stripe-col-actions .admin-actions-stack {
    min-width: 8rem;
}

.admin-empty-state {
    color: var(--app-muted);
    font-size: 0.92rem;
}

.admin-engines-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.admin-engines-table {
    min-width: 1760px;
    table-layout: fixed;
}

.admin-engines-table > :not(caption) > * > * {
    vertical-align: top;
    padding: 0.75rem 0.7rem;
}

.admin-engines-col-type {
    width: 90px;
}

.admin-engines-col-engine {
    width: 290px;
}

.admin-engines-col-enabled {
    width: 110px;
}

.admin-engines-col-price {
    width: 150px;
}

.admin-engines-col-comment {
    width: 240px;
}

.admin-engines-col-description {
    width: 520px;
}

.admin-engines-col-params {
    width: 360px;
}

.admin-engines-engine-label {
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.admin-engines-engine-path {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    line-height: 1.35;
    word-break: break-word;
}

.admin-engines-enabled-cell .form-check {
    display: flex;
    justify-content: center;
    min-height: 2.25rem;
    margin: 0;
}

.admin-engines-price-input {
    max-width: 100%;
}

.admin-engines-comment-input {
    min-height: 4.8rem;
    resize: vertical;
}

.admin-engines-description-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.admin-engines-locale-block {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.6rem;
    background: rgba(148, 163, 184, 0.06);
    padding: 0.45rem;
}

.admin-engines-locale-label {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-muted);
}

.admin-engines-description-input {
    min-height: 4.8rem;
    resize: vertical;
}

.admin-engines-params-input {
    min-height: 6.25rem;
    resize: vertical;
    line-height: 1.35;
}

[data-bs-theme='dark'] .admin-engines-locale-block {
    background: rgba(30, 41, 59, 0.5);
}

.admin-users-billing-col {
    min-width: 260px;
}

.admin-users-tax-id {
    white-space: nowrap;
}

.admin-nav-alert-badge {
    min-width: 1.6rem;
    font-size: 0.66rem;
    line-height: 1;
}

.admin-log-metric-card {
    border: 1px solid var(--bs-border-color);
    background: linear-gradient(140deg, rgba(37, 99, 235, 0.08), rgba(2, 132, 199, 0.06));
}

[data-bs-theme='dark'] .admin-log-metric-card {
    background: linear-gradient(145deg, rgba(30, 64, 175, 0.24), rgba(8, 145, 178, 0.2));
    border-color: rgba(96, 165, 250, 0.25);
}

.admin-log-context {
    font-size: 0.84rem;
}

.admin-log-context summary {
    cursor: pointer;
    color: var(--app-muted);
}

.admin-log-context pre {
    max-height: 220px;
    overflow: auto;
    margin-top: 0.5rem;
    padding: 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid var(--bs-border-color);
    background: rgba(15, 23, 42, 0.04);
}

[data-bs-theme='dark'] .admin-log-context pre {
    background: rgba(148, 163, 184, 0.08);
}

.alert {
    border-radius: 0.8rem;
    border-width: 1px;
}

.dropdown-menu {
    border-radius: 0.75rem;
    border-color: var(--bs-border-color);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.navbar .dropdown-menu {
    z-index: 1100;
}

.dropdown-menu .dropdown-item-text {
    font-size: 0.875rem;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
}

.app-hero .badge {
    letter-spacing: 0.09em;
}

.app-hero .btn {
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);
}

.engine-params-group {
    padding: 0.75rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.75rem;
    background: var(--app-surface);
}

.engine-price-select {
    font-family: var(--bs-font-monospace);
    font-size: 0.92rem;
    white-space: pre;
}

.engine-price-select option {
    font-family: inherit;
    white-space: pre;
}

