.ads-page {
    padding-top: 56px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ads-page__back-link {
    align-self: flex-start;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ads-page__back-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.ads-page__module-top {
    display: block;
    margin-bottom: 2px;
}

.ads-page__module-rating {
    position: absolute;
    top: -14px;
    right: 20px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 10px;
    border-radius: 12px 12px 0 0;
    border: 1px solid #1d4ed8;
    border-bottom: none;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
    appearance: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ads-page__module-rating:empty {
    display: none;
}

.ads-page__module-rating:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.34);
}

.ads-page__module-rating:focus-visible {
    outline: 2px solid rgba(191, 219, 254, 0.95);
    outline-offset: 2px;
}

.ads-tools-single-wrap {
    position: relative;
    padding-top: 14px;
}

.ads-page__hero {
    max-width: 920px;
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe5ff;
    border-radius: 1.125rem;
    padding: 18px 20px;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(51, 102, 255, 0.14) 0%, rgba(51, 102, 255, 0) 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(255, 107, 154, 0.14) 0%, rgba(255, 107, 154, 0) 55%),
        #ffffff;
}

.ads-page__hero::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 15rem;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0));
    pointer-events: none;
}

.ads-page__subheader {
    margin-top: 10px;
    max-width: 700px;
}

.ads-page__nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ads-page__nav .action_button {
    text-decoration: none;
}

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

.ads-status:empty {
    display: none;
}

.ads-status.is-error {
    color: #b91c1c;
}

body[data-ads-view="module"] .ads-page {
    gap: 10px;
}

.ads-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.ads-tools-single {
    display: block;
    position: relative;
    z-index: 2;
}

.ads-tools-grid--catalog {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ads-tool-card {
    --ads-accent-a: #3366ff;
    --ads-accent-b: #7c3aed;
    position: relative;
    overflow: hidden;
    border: 1px solid #d9e2f2;
    border-radius: 1.125rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 255, 0.96) 100%),
        #ffffff;
    box-shadow: 0 16px 34px rgba(15, 21, 36, 0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ads-tool-card--catalog {
    min-height: 100%;
}

.ads-tool-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.1875rem;
    background: linear-gradient(120deg, var(--ads-accent-a), var(--ads-accent-b));
}

.ads-tool-card:hover {
    transform: translateY(-2px);
    border-color: #c5d2ee;
    box-shadow: 0 20px 38px rgba(15, 21, 36, 0.12);
}

body[data-ads-view="module"] .ads-tool-card:hover {
    transform: none;
    border-color: #d9e2f2;
    box-shadow: 0 16px 34px rgba(15, 21, 36, 0.08);
}

.ads-tool-card--unu {
    --ads-accent-a: #2f6bff;
    --ads-accent-b: #00b8ff;
}

.ads-tool-card--seo {
    --ads-accent-a: #7c3aed;
    --ads-accent-b: #ff4d8a;
}

.ads-tool-card--combo {
    --ads-accent-a: #2563eb;
    --ads-accent-b: #8b5cf6;
}

.ads-tool-card--subgram {
    --ads-accent-a: #0ea5e9;
    --ads-accent-b: #14b8a6;
}

.ads-tool-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ads-tool-card__module {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 62.4375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--ads-accent-a), var(--ads-accent-b));
}

.ads-tool-card__price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 62.4375rem;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 5px 10px;
    white-space: nowrap;
}

.ads-tool-card__catalog-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ads-catalog-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 62.4375rem;
    border: 1px solid #dbe4f4;
    background: #f8fbff;
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    line-height: 1.2;
}

.ads-catalog-stat--rating {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.ads-tool-card__rating {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5b677b;
}

.ads-tool-card__title {
    margin: 0;
    font-size: 1.375rem;
    line-height: 1.25;
    color: #0f172a;
}

.ads-tool-card__desc {
    margin: 0;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
    min-height: 2.625rem;
}

.ads-tool-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ads-meta-box {
    border: 1px solid #dbe4f4;
    border-radius: 0.75rem;
    padding: 10px 12px;
    background: #f8fbff;
}

.ads-meta-box__label {
    margin: 0;
    font-size: 0.6875rem;
    color: #64748b;
}

.ads-meta-box__value {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
}

.ads-tool-card__metrics {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ads-tool-card__metrics li {
    border: 1px solid #e2e8f4;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #334155;
    font-size: 0.8125rem;
    line-height: 1.35;
    padding: 8px 10px;
}

.ads-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ads-field span {
    font-size: 0.75rem;
    color: #475569;
}

.ads-field input,
.ads-field select,
.ads-field textarea {
    border: 1px solid #c9d5ea;
    border-radius: 0.625rem;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ads-field input:focus,
.ads-field select:focus,
.ads-field textarea:focus {
    outline: none;
    border-color: #7a9ef8;
    box-shadow: 0 0 0 3px rgba(80, 118, 255, 0.12);
}

.ads-field input[readonly] {
    background: #f4f6fb;
    color: #4b5565;
}

.ads-tool-card__calc {
    border: 1px dashed #c7d5ef;
    border-radius: 0.75rem;
    background: linear-gradient(140deg, rgba(47, 107, 255, 0.06), rgba(124, 58, 237, 0.06));
    padding: 10px 12px;
    font-size: 0.8125rem;
    color: #334155;
    line-height: 1.45;
}

.ads-tool-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.ads-tool-card__actions .action_button {
    min-height: 2.75rem;
    height: 2.75rem;
    flex: 1 1 0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0 14px;
}

.ads-tool-card--catalog .ads-tool-card__actions {
    margin-top: auto;
}

.ads-tool-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ads-orders {
    border-radius: 1.125rem;
    padding: 16px;
    border: 1px solid #dbe7ff;
    background:
        radial-gradient(140% 140% at 0% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 60%),
        #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.ads-orders__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ads-orders__title {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.ads-orders__refresh {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 0.6875rem;
    background: #ffffff;
    color: #1e293b;
    min-height: 2.25rem;
    padding: 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ads-orders__refresh:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    color: #1d4ed8;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.14);
}

.ads-orders__refresh:disabled {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.ads-orders__refresh:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.36);
    outline-offset: 2px;
}

.ads-orders__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ads-order-row {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe7ff;
    border-radius: 0.875rem;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 249, 255, 0.95) 100%),
        #ffffff;
}

.ads-order-row::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.125rem;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

.ads-order-row__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.ads-order-row__head {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.ads-order-row__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ads-order-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d7e3f7;
    border-radius: 62.4375rem;
    background: #f8fbff;
    color: #0f172a;
    font-size: 0.75rem;
    padding: 4px 10px;
    white-space: nowrap;
}

.ads-order-chip > span {
    color: #64748b;
}

.ads-order-row__seo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px dashed #cbd5e1;
    border-radius: 0.625rem;
    background: #f8fafc;
    padding: 8px 10px;
}

.ads-order-row__seo-item {
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.35;
}

.ads-order-row__seo-item > span {
    color: #64748b;
    margin-right: 6px;
}

.ads-order-row__date {
    font-size: 0.75rem;
    color: #64748b;
}

.ads-order-status {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 62.4375rem;
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.2;
}

.ads-order-status.completed {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.ads-order-status.progress {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.ads-order-status.canceled {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ads-empty {
    font-size: 0.875rem;
    color: #64748b;
}

.ads-modal[hidden] {
    display: none;
}

.ads-modal {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}

.ads-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.ads-modal__content {
    position: relative;
    margin: 0;
    width: min(620px, 100%);
    background: #ffffff;
    border-radius: 0.875rem;
    border: 1px solid #e2e8f0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(84vh, calc(100vh - 48px));
    overflow: auto;
}

.ads-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ads-modal__title {
    margin: 0;
    color: #0f172a;
    font-size: 1.125rem;
}

.ads-modal__close {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #0f172a;
    width: 30px;
    height: 1.875rem;
    cursor: pointer;
}

.ads-add-channel-modal__content {
    width: min(560px, 100%);
    padding: 0;
    border-radius: 1.25rem;
    border-color: #cddaf5;
    background:
        radial-gradient(130% 130% at 0% 0%, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 62%),
        #ffffff;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.ads-add-channel-modal__content .ads-modal__header {
    padding: 16px 18px 14px;
    border-bottom: 1px solid #dbe7ff;
}

.ads-add-channel-modal__content .ads-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ads-add-channel-modal__content .ads-modal__close {
    width: 34px;
    height: 2.125rem;
    border-radius: 0.625rem;
    border-color: #bfd2f6;
    background: #f3f7ff;
    color: #1d4ed8;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ads-add-channel-modal__content .ads-modal__close:hover {
    background: #e6efff;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.ads-add-channel-modal__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px 18px;
}

.ads-add-channel-modal__intro {
    border: 1px solid #dbe7ff;
    border-radius: 0.875rem;
    padding: 11px 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
}

.ads-add-channel-modal__intro-icon {
    width: 28px;
    height: 1.75rem;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.ads-add-channel-modal__intro-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #1f2937;
}

.ads-add-channel-modal__field {
    gap: 8px;
}

.ads-add-channel-modal__field > span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
}

.ads-add-channel-modal__field input {
    border-radius: 0.75rem;
    border-color: #b9ccee;
    background: #ffffff;
    min-height: 2.75rem;
    font-size: 0.875rem;
}

.ads-add-channel-modal__field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.ads-add-channel-modal__hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #475569;
}

.ads-add-channel-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.ads-add-channel-modal__actions #adsAddChannelSubmitBtn {
    height: 2.5rem;
    padding: 0 16px;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.ads-add-channel-modal__status {
    font-size: 0.8125rem;
    color: #475569;
    min-height: 1.125rem;
}

.ads-add-channel-modal__status.is-error {
    color: #b91c1c;
}

.ads-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 18.75rem;
    max-height: min(50vh, 500px);
    overflow: auto;
    padding: 14px;
    border: 1px solid #dbe7ff;
    border-radius: 0.875rem;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0) 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 60%),
        #f8fbff;
}

.ads-chat-loading {
    margin: auto;
    font-size: 0.8125rem;
    color: #475569;
}

.ads-chat-empty {
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #334155;
}

.ads-chat-empty__icon {
    border: 1px solid #bfdbfe;
    border-radius: 62.4375rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 8px 12px;
}

.ads-chat-empty__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.ads-chat-empty__subtitle {
    font-size: 0.8125rem;
    color: #64748b;
}

.ads-review-item {
    border: 1px solid #dbe7ff;
    border-radius: 16px 16px 16px 4px;
    padding: 9px 11px 10px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
    max-width: min(88%, 500px);
    align-self: flex-start;
}

.ads-review-item.is-mine {
    border-color: #93c5fd;
    border-radius: 16px 16px 4px 16px;
    background: #dbeafe;
    box-shadow: 0 8px 18px rgba(29, 78, 216, 0.12);
    align-self: flex-end;
}

.ads-review-item__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #334155;
    font-size: 0.6875rem;
    margin-bottom: 5px;
}

.ads-review-item__author {
    font-weight: 600;
}

.ads-review-item__time {
    color: #64748b;
    white-space: nowrap;
}

.ads-review-item__rating {
    color: #f59e0b;
    font-size: 0.6875rem;
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.ads-review-item__body {
    margin: 0;
    color: #0f172a;
    font-size: 0.875rem;
    white-space: pre-wrap;
}

.ads-review-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1px solid #dbe7ff;
    border-radius: 1rem;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.ads-review-form__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 1.125rem;
}

.ads-review-form__quota {
    margin: 0;
    font-size: 0.75rem;
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
}

.ads-review-composer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: end;
}

.ads-review-composer__rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 84px;
    margin: 0;
}

.ads-review-composer__label {
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1;
}

.ads-review-composer__rating select {
    height: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0 10px;
    outline: none;
}

.ads-review-composer__rating select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.ads-review-composer__input {
    margin: 0;
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 0.875rem;
    background: #ffffff;
    padding: 0 12px;
    min-height: 2.5rem;
}

.ads-review-composer__input:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.ads-review-composer__input textarea {
    width: 100%;
    border: none;
    background: transparent;
    color: #0f172a;
    font-size: 0.875rem;
    line-height: 1.35;
    resize: vertical;
    min-height: 1.375rem;
    max-height: 7rem;
    padding: 8px 0;
    outline: none;
}

.ads-review-composer__send {
    height: 2.5rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0 14px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.ads-review-composer__send:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.34);
}

.ads-review-composer__send:disabled {
    cursor: default;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.ads-review-composer__input textarea:disabled,
.ads-review-composer__rating select:disabled {
    cursor: not-allowed;
    color: #94a3b8;
}

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

.ads-review-form__status {
    font-size: 0.75rem;
    color: #475569;
}

.ads-review-form__status.is-error {
    color: #b91c1c;
}

.ads-field--channel {
    gap: 8px;
}

.ads-channel-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
    border: 1px solid #dbe7ff;
    border-radius: 1rem;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 56%),
        #f8fbff;
    padding: 8px;
}

.ads-channel-option {
    appearance: none;
    position: relative;
    overflow: hidden;
    border: 1px solid #d4deef;
    border-radius: 0.875rem;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    min-height: 4.375rem;
    padding: 10px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    column-gap: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.ads-channel-option::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 65%);
    transition: opacity 0.15s ease;
}

.ads-channel-option:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.ads-channel-option:hover::after {
    opacity: 1;
}

.ads-channel-option:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.35);
    outline-offset: 1px;
}

.ads-channel-option.is-active {
    border-color: #2563eb;
    background: linear-gradient(160deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.28);
    transform: none;
}

.ads-channel-option.is-active::after {
    opacity: 0;
}

.ads-channel-option__avatar {
    width: 42px;
    height: 2.625rem;
    border-radius: 50%;
    border: 1px solid #c7d2fe;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ads-channel-option__avatar.is-image {
    border-color: #bfdbfe;
    background: #ffffff;
}

.ads-channel-option__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ads-channel-option__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ads-channel-option__title {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ads-channel-option__slug {
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ads-channel-option.is-active .ads-channel-option__title,
.ads-channel-option.is-active .ads-channel-option__slug {
    color: #ffffff;
}

.ads-channel-option.is-active .ads-channel-option__avatar {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.ads-channel-option--add {
    border-style: dashed;
    border-color: #93c5fd;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0) 55%),
        #ffffff;
}

.ads-channel-option--add:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.14);
}

.ads-channel-option__avatar--add {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1;
}

.ads-channel-empty {
    grid-column: 1 / -1;
    border: 1px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 12px;
    text-align: center;
    color: #64748b;
    font-size: 0.8125rem;
}

.ads-tool-channel--native {
    display: none;
}

@media (max-width: 960px) {
    .ads-page {
        padding-top: 40px;
    }

    .ads-page__module-rating {
        top: -11px;
        right: 12px;
        font-size: 0.75rem;
        padding: 7px 10px 9px;
    }

    .ads-page__nav .action_button {
        flex: 1 1 auto;
        justify-content: center;
    }

    .ads-page__hero {
        padding: 14px 14px;
        border-radius: 0.875rem;
    }

    .ads-modal {
        padding: 16px 10px;
    }

    .ads-add-channel-modal__content .ads-modal__header {
        padding: 14px 14px 12px;
    }

    .ads-add-channel-modal__body {
        padding: 14px;
    }

    .ads-add-channel-modal__intro {
        grid-template-columns: 24px 1fr;
        gap: 8px;
    }

    .ads-add-channel-modal__intro-icon {
        width: 24px;
        height: 1.5rem;
        font-size: 1rem;
    }

    .ads-add-channel-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ads-add-channel-modal__actions #adsAddChannelSubmitBtn {
        width: 100%;
    }

    .ads-reviews-list {
        min-height: 15rem;
        max-height: min(42vh, 380px);
        padding: 10px;
    }

    .ads-review-item {
        max-width: 94%;
    }

    .ads-review-form__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ads-review-composer {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .ads-review-composer__rating {
        min-width: 0;
    }

    .ads-review-composer__send {
        width: 100%;
    }

    .ads-channel-picker {
        grid-template-columns: 1fr;
    }

    .ads-tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ads-tool-card {
        border-radius: 0.875rem;
        padding: 14px;
        gap: 12px;
    }

    .ads-tool-card__meta {
        grid-template-columns: 1fr;
    }

    .ads-tool-card__actions {
        flex-wrap: wrap;
    }

    .ads-tool-card__actions .action_button {
        flex: 1 1 100%;
    }

    .ads-orders__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ads-orders__refresh {
        width: 100%;
        justify-content: center;
    }

    .ads-order-row__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .ads-order-chip {
        white-space: normal;
    }
}
