.resource-thumb {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid var(--bs-border-color);
    background: rgba(15, 23, 42, 0.05);
}

.resource-thumb-wrap {
    width: 44px;
    height: 44px;
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color);
    background: rgba(15, 23, 42, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.resource-thumb-fallback {
    font-size: 0.6rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--app-muted);
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0 0.25rem;
}

.package-card-option {
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-width: 2px !important;
}

.package-card-option:hover,
.package-card-option.active {
    border-color: rgba(var(--bs-primary-rgb), 0.65) !important;
    box-shadow: 0 12px 30px rgba(var(--bs-primary-rgb), 0.12);
}

.package-card-option .form-check-input {
    border-radius: 50%;
    cursor: pointer;
}

.package-card-option .form-check-input:checked {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

.credits-package-card {
    border: 1px solid rgba(37, 99, 235, 0.24);
    background:
        linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(14, 116, 144, 0.04) 35%, var(--app-surface) 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.credits-package-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.16);
}

.credits-package-card-highlight {
    border-width: 2px;
    border-color: rgba(37, 99, 235, 0.58);
    box-shadow: 0 24px 44px rgba(37, 99, 235, 0.2);
}

.credits-info-note {
    border: 1px solid rgba(14, 116, 144, 0.38);
    border-left: 4px solid rgba(14, 116, 144, 0.84);
    background:
        linear-gradient(135deg, rgba(14, 116, 144, 0.16), rgba(37, 99, 235, 0.08) 60%, rgba(255, 255, 255, 0.72) 100%);
    color: var(--app-text);
}

.credits-info-note-title {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.credits-pricing-mode-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    border: 1px dashed rgba(14, 116, 144, 0.36);
    border-radius: 0.75rem;
    padding: 0.5rem 0.65rem;
    background: rgba(15, 23, 42, 0.05);
}

.credits-pricing-mode-label {
    font-weight: 600;
}

.credits-pricing-mode-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.22rem 0.62rem;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.credits-pricing-mode-badge-gross {
    border-color: rgba(234, 88, 12, 0.4);
    background: rgba(234, 88, 12, 0.16);
    color: #9a3412;
}

.credits-pricing-mode-badge-net {
    border-color: rgba(22, 163, 74, 0.36);
    background: rgba(22, 163, 74, 0.16);
    color: #166534;
}

.credits-pricing-mode-badge-mixed {
    border-color: rgba(14, 116, 144, 0.36);
    background: rgba(14, 116, 144, 0.14);
    color: #155e75;
}

.credits-package-amount {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.credits-package-number {
    font-size: clamp(2rem, 3.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.credits-package-unit {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--app-muted);
    margin-top: 0.2rem;
}

.credits-package-price {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--app-text);
}

[data-bs-theme='dark'] .credits-package-card {
    border-color: rgba(96, 165, 250, 0.34);
    background:
        linear-gradient(160deg, rgba(37, 99, 235, 0.26), rgba(14, 116, 144, 0.14) 35%, rgba(8, 19, 37, 0.88) 100%);
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.42);
}

[data-bs-theme='dark'] .credits-package-card:hover {
    border-color: rgba(147, 197, 253, 0.58);
    box-shadow: 0 28px 48px rgba(2, 6, 23, 0.5);
}

[data-bs-theme='dark'] .credits-package-card-highlight {
    border-color: rgba(147, 197, 253, 0.72);
    box-shadow: 0 28px 52px rgba(37, 99, 235, 0.32);
}

[data-bs-theme='dark'] .credits-info-note {
    border-color: rgba(125, 211, 252, 0.45);
    border-left-color: rgba(125, 211, 252, 0.92);
    background:
        linear-gradient(135deg, rgba(14, 116, 144, 0.34), rgba(37, 99, 235, 0.24) 60%, rgba(8, 19, 37, 0.84) 100%);
    color: var(--app-text);
}

[data-bs-theme='dark'] .credits-pricing-mode-callout {
    border-color: rgba(125, 211, 252, 0.44);
    background: rgba(8, 19, 37, 0.64);
}

[data-bs-theme='dark'] .credits-pricing-mode-badge-gross {
    border-color: rgba(251, 191, 36, 0.48);
    background: rgba(180, 83, 9, 0.32);
    color: #fcd34d;
}

[data-bs-theme='dark'] .credits-pricing-mode-badge-net {
    border-color: rgba(74, 222, 128, 0.42);
    background: rgba(21, 128, 61, 0.34);
    color: #86efac;
}

[data-bs-theme='dark'] .credits-pricing-mode-badge-mixed {
    border-color: rgba(125, 211, 252, 0.42);
    background: rgba(14, 116, 144, 0.36);
    color: #bae6fd;
}

.hp {
    display: none !important;
}

.payment-element {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: var(--app-surface);
}

.payment-method-badge {
    background: var(--app-surface);
    border: 1px solid var(--bs-border-color);
    color: var(--app-text);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.9rem;
    text-transform: none;
}

[data-bs-theme='dark'] .payment-method-badge {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.35);
    color: var(--app-text);
}

.card-element {
    min-height: 52px;
}

#card-errors {
    min-height: 1.25rem;
    margin-top: 0.75rem;
}

.my-effects-actions-cell {
    white-space: nowrap;
}

.my-effects-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.effect-link-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.effect-link-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.effect-link-copy-btn {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.global-effects-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.global-effects-section {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    overflow: hidden;
    scroll-margin-top: 6.5rem;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.04);
}

.global-effects-section[open] {
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.08);
}

.global-effects-section-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.125rem;
    list-style: none;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.025), transparent);
}

.global-effects-section-summary::-webkit-details-marker {
    display: none;
}

.global-effects-section-summary:hover {
    background: rgba(15, 23, 42, 0.035);
}

.global-effects-section-summary:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.3);
    outline-offset: -2px;
}

.global-effects-section-summary-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.global-effects-section-summary-aside {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.global-effects-section-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.global-effects-section-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-emphasis-color);
}

.global-effects-section-description {
    display: block;
    max-width: 70ch;
    line-height: 1.45;
}

.global-effects-section-preview {
    position: relative;
    width: 132px;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    border-radius: 0.95rem;
    overflow: hidden;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(var(--bs-primary-rgb), 0.08));
    box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.global-effects-section-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.2));
    pointer-events: none;
}

.global-effects-section-summary:hover .global-effects-section-preview {
    transform: translateY(-1px);
    border-color: rgba(var(--bs-primary-rgb), 0.26);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.16);
}

.global-effects-section-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.global-effects-section-chevron {
    width: 0.8rem;
    height: 0.8rem;
    flex-shrink: 0;
    border-right: 2px solid var(--bs-secondary-color);
    border-bottom: 2px solid var(--bs-secondary-color);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.global-effects-section[open] .global-effects-section-chevron {
    transform: rotate(225deg);
    border-color: var(--bs-primary);
}

.global-effects-section-body {
    border-top: 1px solid var(--bs-border-color-translucent);
    background: var(--bs-body-bg);
}

.global-effects-section-body > .table-responsive {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.global-effects-section-body .table thead th {
    white-space: nowrap;
    border-radius: 0 !important;
}

.global-effects-section-body .table thead th:first-child,
.global-effects-section-body .table thead th:last-child {
    border-radius: 0 !important;
}

.global-effects-section-body .table tbody tr:last-child td {
    border-bottom: 0;
}

.global-effects-example-cell {
    min-width: 280px;
}

.global-effect-example-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.global-effect-example-pair-sm {
    max-width: 460px;
}

.global-effect-example-item {
    min-width: 0;
}

.global-effect-example-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.global-effect-example-thumb {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 3;
    border-radius: 0.75rem;
    border: 1px solid var(--bs-border-color);
    background: rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.global-effect-example-thumb-sm {
    max-width: 220px;
}

.global-effects-example-cell-admin {
    min-width: 240px;
}

.global-effects-admin-table {
    width: 100%;
    table-layout: fixed;
}

.global-effects-admin-col-effect {
    width: 51%;
}

.global-effects-admin-col-example {
    width: 28%;
}

.global-effects-admin-col-info {
    width: 21%;
}

.global-effects-admin-col-info,
.global-effects-admin-col-info .text-break {
    overflow-wrap: anywhere;
}

.global-effects-admin-col-info .form-select {
    max-width: 100%;
}

.global-effect-example-pair-admin {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    max-width: 280px;
}

.global-effect-example-thumb-admin {
    max-width: 280px;
    aspect-ratio: 4 / 3;
}

.global-effect-example-link {
    display: inline-block;
    border-radius: 0.75rem;
}

.global-effect-example-link:hover .global-effect-example-thumb {
    border-color: var(--bs-primary);
}

.global-effect-example-link:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.global-effect-example-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.global-effect-example-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 640px) {
    .global-effects-section-summary {
        grid-template-columns: minmax(0, 1fr);
        padding: 0.95rem 1rem;
    }

    .global-effects-section-summary-aside {
        justify-content: space-between;
    }

    .global-effects-section-preview {
        width: min(100%, 148px);
    }

    .global-effect-example-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .global-effects-example-cell {
        min-width: 220px;
    }
}

[data-bs-theme='dark'] .global-effects-section {
    background: rgba(15, 23, 42, 0.42);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 0.4rem 1rem rgba(2, 6, 23, 0.24);
}

[data-bs-theme='dark'] .global-effects-section[open] {
    box-shadow: 0 1rem 2rem rgba(2, 6, 23, 0.34);
}

[data-bs-theme='dark'] .global-effects-section-summary {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.08), transparent);
}

[data-bs-theme='dark'] .global-effects-section-summary:hover {
    background: rgba(148, 163, 184, 0.08);
}

[data-bs-theme='dark'] .global-effects-section-preview {
    border-color: rgba(96, 165, 250, 0.22);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(37, 99, 235, 0.24));
    box-shadow: 0 1rem 2rem rgba(2, 6, 23, 0.42);
}

[data-bs-theme='dark'] .global-effects-section-preview::after {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.36));
}

[data-bs-theme='dark'] .global-effects-section-summary:hover .global-effects-section-preview {
    border-color: rgba(125, 211, 252, 0.34);
}

[data-bs-theme='dark'] .global-effect-example-thumb {
    background: rgba(148, 163, 184, 0.12);
}

