/**
 * Estilos modernos para o Manus Affiliate System
 */

:root {
    --mas-primary: #2563eb;
    --mas-primary-hover: #1d4ed8;
    --mas-bg: #ffffff;
    --mas-bg-alt: #f8fafc;
    --mas-text: #1e293b;
    --mas-text-muted: #64748b;
    --mas-border: #e2e8f0;
    --mas-radius: 8px;
    --mas-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --mas-success: #10b981;
    --mas-error: #ef4444;
    --mas-info: #3b82f6;
}

/* Container principal */
.mas-affiliate-register, 
.mas-affiliate-area,
.mas-affiliate-login {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--mas-bg);
    border-radius: var(--mas-radius);
    box-shadow: var(--mas-shadow);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--mas-text);
}

.mas-affiliate-login {
    max-width: 450px;
}

.mas-affiliate-register h2, 
.mas-affiliate-area h2,
.mas-affiliate-login h2 {
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--mas-text);
    text-align: center;
}

/* Notificações */
.mas-notice {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--mas-radius);
    font-size: 0.875rem;
    line-height: 1.5;
}

.mas-notice-success { background-color: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.mas-notice-error { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.mas-notice-info { background-color: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Formulário */
.mas-form-field {
    margin-bottom: 1.25rem;
}

.mas-form-row {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.mas-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .mas-form-row-half {
        grid-template-columns: 1fr;
    }
}

.mas-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mas-text);
}

.mas-form-field input[type="text"],
.mas-form-field input[type="email"],
.mas-form-field input[type="password"],
.mas-form-field input[type="url"],
.mas-form-field select,
.mas-form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--mas-border);
    border-radius: var(--mas-radius);
    background-color: var(--mas-bg-alt);
    color: var(--mas-text);
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mas-form-field input:focus {
    outline: none;
    border-color: var(--mas-primary);
    background-color: var(--mas-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


.mas-password-input-wrap {
    position: relative;
}

.mas-password-input-wrap input[type="password"],
.mas-password-input-wrap input[type="text"] {
    padding-right: 3.25rem;
}

.mas-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mas-text-light);
    cursor: pointer;
    border-radius: 999px;
}

.mas-password-toggle:hover {
    color: var(--mas-text);
    background: rgba(15, 23, 42, 0.06);
}

.mas-password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.mas-password-toggle-icon {
    position: relative;
    display: inline-block;
    width: 1.15rem;
    height: 0.75rem;
    border: 2px solid currentColor;
    border-radius: 999px / 75%;
    box-sizing: border-box;
}

.mas-password-toggle-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.3rem;
    height: 0.3rem;
    background: currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.mas-password-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -0.1rem;
    width: 1.35rem;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%) rotate(-32deg) scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.mas-password-toggle.is-visible .mas-password-toggle-icon::after {
    transform: translateY(-50%) rotate(-32deg) scaleX(1);
}

.mas-form-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.mas-form-links {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.mas-form-links a {
    color: var(--mas-primary);
    text-decoration: none;
}

.mas-form-links a:hover {
    text-decoration: underline;
}


.mas-inline-error {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mas-error);
}

.mas-field-invalid {
    border-color: var(--mas-error) !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}


/* Botões */
.mas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--mas-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    text-decoration: none;
}

.mas-btn-primary {
    background-color: var(--mas-primary);
    color: white;
}

.mas-btn-primary:hover {
    background-color: var(--mas-primary-hover);
    transform: translateY(-1px);
}

.mas-btn-outline {
    background: transparent;
    color: var(--mas-primary);
    border: 1px solid var(--mas-primary);
}

.mas-btn-outline:hover {
    background: var(--mas-bg-alt);
}

/* Dashboard */
.mas-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mas-border);
}

.mas-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.mas-stat-card {
    padding: 1.5rem;
    background: var(--mas-bg-alt);
    border-radius: var(--mas-radius);
    text-align: center;
    border: 1px solid var(--mas-border);
}

.mas-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mas-primary);
}

.mas-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mas-text-muted);
}

/* Seções */
.mas-section {
    margin-bottom: 2.5rem;
}

.mas-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--mas-text);
}

/* Affiliate Link Box */
.mas-link-copy {
    display: flex;
    gap: 0.5rem;
}

.mas-link-copy input {
    flex: 1;
}

/* Tabelas */
.mas-table-container {
    overflow-x: auto;
}

.mas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.mas-table th {
    background: var(--mas-bg-alt);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--mas-border);
}

.mas-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--mas-border);
}

.mas-status-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-approved, .status-active { background: #d1fae5; color: #065f46; }
.status-cancelled, .status-rejected { background: #fee2e2; color: #991b1b; }
.status-paid { background: #dbeafe; color: #1e40af; }


/* Navegação e tarefa otimizadas para mobile */

@media (min-width: 981px) {
    .mas-tabs-nav {
        gap: 0.5rem;
    }

    .mas-tab-trigger {
        padding: 0.625rem 0.95rem;
        font-size: 0.82rem;
        min-height: 42px;
    }
}

.mas-tabs-nav {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.875rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.mas-tab-trigger {
    appearance: none;
    border: 1px solid var(--mas-border);
    background: #fff;
    color: var(--mas-text);
    border-radius: 999px;
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    flex: 0 0 auto;
}

.mas-tab-trigger.active {
    background: var(--mas-primary);
    color: #fff;
    border-color: var(--mas-primary);
}

.mas-task-mobile-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--mas-border);
    border-radius: 14px;
    padding: 1rem;
}

.mas-task-mobile-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mas-task-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--mas-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.mas-task-badge-light {
    background: #e8f0ff;
    color: #1747b6;
}

.mas-task-mobile-text {
    margin: 0 0 0.875rem;
    color: var(--mas-text-muted);
}

.mas-step-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.mas-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #dbeafe;
    border: 2px solid #bfdbfe;
}

.mas-step-dot.is-current {
    background: #f59e0b;
    border-color: #fcd34d;
}

.mas-step-dot.is-done {
    background: #10b981;
    border-color: #6ee7b7;
}

.mas-task-history-mini {
    display: grid;
    gap: 0.625rem;
}

.mas-task-history-mini-item {
    padding: 0.75rem;
    border: 1px solid var(--mas-border);
    border-radius: 12px;
    background: #fff;
}

.mas-task-history-mini-item strong,
.mas-task-history-mini-item span {
    display: block;
}

.mas-task-history-mini-item span {
    color: var(--mas-text-muted);
    margin-top: 0.2rem;
    font-size: 0.9rem;
}


.mas-reward-history-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
}

.mas-reward-history-summary-card,
.mas-reward-history-group,
.mas-reward-history-item {
    border: 1px solid var(--mas-border);
    border-radius: 14px;
    background: #fff;
}

.mas-reward-history-summary-card {
    padding: 0.9rem 1rem;
}

.mas-reward-history-summary-card strong,
.mas-reward-history-summary-card span {
    display: block;
}

.mas-reward-history-summary-card span {
    margin-top: 0.3rem;
    font-size: 1.15rem;
    font-weight: 700;
}
.mas-reward-history-summary-card {
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mas-reward-history-summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.mas-reward-history-summary-card.is-active {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.mas-reward-history-summary-card.is-all {
    border-left: 4px solid #0f172a;
}

.mas-reward-history-summary-card.is-other {
    border-left: 4px solid #64748b;
}


.mas-reward-history-summary-card.is-task {
    border-left: 4px solid #2563eb;
}

.mas-reward-history-summary-card.is-referral {
    border-left: 4px solid #16a34a;
}

.mas-reward-history-summary-card.is-extra-bonus {
    border-left: 4px solid #7c3aed;
}

.mas-reward-history-groups {
    display: grid;
    gap: 1rem;
}

.mas-reward-history-group {
    padding: 1rem;
}
.mas-reward-history-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
    align-items: end;
}

.mas-reward-history-filter-field {
    display: grid;
    gap: 0.35rem;
}

.mas-reward-history-filter-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mas-text-muted);
}

.mas-reward-history-filter-field select {
    min-height: 46px;
    border: 1px solid var(--mas-border);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    background: #fff;
}

.mas-reward-history-filter-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.mas-reward-history-status {
    display: inline-flex;
    width: fit-content;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.mas-reward-history-status.is-approved {
    background: #ecfdf3;
    border-color: #abefc6;
    color: #067647;
}

.mas-reward-history-status.is-requested {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.mas-reward-history-status.is-paid {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.mas-reward-history-status.is-cancelled {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.mas-reward-history-pagination {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}


.mas-reward-history-group-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
}

.mas-reward-history-group-head h4 {
    margin: 0;
    font-size: 1rem;
}

.mas-reward-history-group-head p,
.mas-reward-history-count,
.mas-reward-history-item-main span,
.mas-reward-history-item-side span,
.mas-reward-history-empty {
    color: var(--mas-text-muted);
}

.mas-reward-history-group-head p {
    margin: 0.25rem 0 0;
    font-size: 0.92rem;
}

.mas-reward-history-count {
    font-size: 0.85rem;
    white-space: nowrap;
}

.mas-reward-history-list {
    display: grid;
    gap: 0.75rem;
}

.mas-reward-history-item {
    padding: 0.85rem 0.95rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.mas-reward-history-item-main,
.mas-reward-history-item-side {
    display: grid;
    gap: 0.22rem;
}

.mas-reward-history-item-side {
    text-align: right;
}

.mas-reward-history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.mas-reward-history-badge.is-task {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.mas-reward-history-badge.is-referral {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mas-reward-history-badge.is-extra_bonus {
    color: #6d28d9;
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.mas-reward-history-badge.is-other {
    color: #475569;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.mas-task-form-mobile .mas-form-field label {
    font-size: 0.95rem;
}

.mas-task-form-mobile input[type="text"],
.mas-task-form-mobile input[type="url"] {
    min-height: 52px;
    font-size: 16px;
}

.mas-form-submit-sticky {
    position: sticky;
    bottom: 12px;
    padding-top: 0.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 30%, rgba(255,255,255,1) 100%);
}

@media (max-width: 768px) {
    .mas-affiliate-register,
    .mas-affiliate-area,
    .mas-affiliate-login {
        margin: 1rem auto;
        padding: 1rem;
        border-radius: 14px;
    }

    .mas-dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .mas-dashboard-header h2 {
        text-align: left;
        margin: 0;
        font-size: 1.4rem;
    }

    .mas-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .mas-reward-history-summary {
        grid-template-columns: 1fr;
    }
    .mas-reward-history-filters {
        grid-template-columns: 1fr;
    }

    .mas-reward-history-filter-actions {
        flex-direction: column;
    }


    .mas-reward-history-group-head,
    .mas-reward-history-item {
        flex-direction: column;
        align-items: stretch;
    }

    .mas-reward-history-item-side {
        text-align: left;
    }

    .mas-reward-history-count {
        white-space: normal;
    }

    .mas-stat-card {
        padding: 1rem 0.75rem;
    }

    .mas-tabs-nav {
        padding-bottom: 0.75rem;
    }

    .mas-tab-trigger {
        min-height: 46px;
    }

    .mas-section {
        margin-bottom: 1.25rem;
    }

    .mas-table th,
    .mas-table td {
        padding: 0.625rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .mas-affiliate-register h2,
    .mas-affiliate-area h2,
    .mas-affiliate-login h2 {
        font-size: 1.35rem;
    }

    .mas-stats-grid {
        grid-template-columns: 1fr;
    }
}


.mas-cpf-warning{
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-left: 4px solid #f97316;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: #7c2d12;
    word-break: break-word;
}

.mas-cpf-warning-title{
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #c2410c;
}

.mas-cpf-warning p{
    margin: 0 0 10px;
}

.mas-cpf-warning p:last-child{
    margin-bottom: 0;
}

.mas-cpf-warning strong{
    color: #9a3412;
}

@media (max-width: 767px) {
    .mas-cpf-warning{
        padding: 14px 15px;
        font-size: 13px;
        line-height: 1.6;
    }

    .mas-cpf-warning-title{
        font-size: 15px;
    }
}


/* Destaque suave nos campos principais da tarefa */
.mas-highlighted-input-field {
    padding: 0.9rem;
    background: #fff8d9;
    border: 2px solid #facc15;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(250, 204, 21, 0.16);
}

.mas-highlighted-input-field label {
    font-weight: 700;
}

.mas-highlighted-input-field input[type="text"],
.mas-highlighted-input-field input[type="url"] {
    background: #ffffff;
    border: 2px solid #f5c542;
    min-height: 54px;
    font-size: 1.02rem;
}

.mas-highlighted-input-field input[type="text"]::placeholder,
.mas-highlighted-input-field input[type="url"]::placeholder {
    color: #6b7280;
    opacity: 1;
}

.mas-highlighted-input-field input[type="text"]:focus,
.mas-highlighted-input-field input[type="url"]:focus {
    border-color: #eab308;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.22);
}

@media (max-width: 640px) {
    .mas-highlighted-input-field {
        padding: 0.8rem;
        border-radius: 10px;
    }
}


.mas-verify-price-box {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #f2c94c;
    border-radius: 16px;
    background: #fff8db;
}

.mas-verify-price-text {
    margin: 0 0 1rem;
    font-weight: 700;
    color: #1f2937;
}

.mas-verify-price-feedback {
    margin: 0 0 .85rem;
    padding: .8rem .9rem;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.mas-verify-price-feedback.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.mas-price-informed-field small {
    display: block;
    margin-top: .6rem;
    color: #6b7280;
    line-height: 1.55;
}


.mas-task-category-highlight {
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.mas-task-category-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mas-task-category-name {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    background: #fff7bf;
    color: #1e3a8a;
    border: 1px solid #facc15;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.18);
}


/* Ajustes seguros de mobile para a área de tarefas */
@media (max-width: 640px) {
    .mas-task-mobile-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .mas-task-mobile-top {
        gap: 0.625rem;
        margin-bottom: 0.9rem;
    }

    .mas-task-badge {
        justify-content: center;
        text-align: center;
        width: auto;
        max-width: 100%;
    }

    .mas-task-category-highlight {
        margin-bottom: 0.875rem !important;
    }

    .mas-open-categories-box {
        margin: 0 0 0.875rem !important;
    }

    #mas-open-categories-toggle,
    #mas-open-category-link,
    .mas-task-reroll-form .mas-btn,
    .mas-task-form-mobile .mas-btn,
    .mas-form-submit-sticky .mas-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #mas-open-categories-panel {
        margin-top: 0.75rem !important;
        padding: 0.85rem !important;
    }

    #mas-open-categories-panel > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
    }

    #mas-category-chooser {
        width: 100% !important;
        flex: 1 1 auto !important;
    }

    .mas-task-reroll-box {
        margin: 0 0 0.875rem !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .mas-task-reroll-count {
        display: block;
        width: 100%;
        text-align: left;
    }

    .mas-task-reroll-form {
        width: 100%;
    }

    .mas-step-dots {
        margin-top: 0.25rem;
        margin-bottom: 0.875rem;
    }

    .mas-highlighted-input-field {
        padding: 0.85rem;
        margin-bottom: 0.9rem;
    }

    .mas-highlighted-input-field label {
        line-height: 1.45;
    }

    .mas-highlighted-input-field input[type="text"],
    .mas-highlighted-input-field input[type="url"] {
        width: 100%;
        box-sizing: border-box;
        min-height: 50px;
    }

    .mas-form-submit-sticky {
        position: static;
        bottom: auto;
        padding-top: 0.25rem;
        background: transparent;
    }
}


.mas-adblock-status-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.9rem;
}

.mas-adblock-reward-line,
.mas-adblock-warning-line {
    margin: 0;
}

.mas-adblock-reward-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.mas-adblock-reward-line strong {
    display: block;
    line-height: 1.45;
    font-size: 1rem;
    word-break: break-word;
}

.mas-adblock-reward-note {
    display: block;
    margin-top: 0;
    padding-left: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    font-style: italic;
    color: #1e293b;
}

.mas-adblock-reward-line-current .mas-adblock-reward-note {
    color: #1e293b;
}

.mas-adblock-warning-line {
    max-width: 42rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .mas-adblock-status-box {
        gap: 0.875rem;
        margin-bottom: 1rem;
    }

    .mas-adblock-reward-line {
        gap: 0.2rem;
    }

    .mas-adblock-reward-line strong {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .mas-adblock-reward-note,
    .mas-adblock-warning-line {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .mas-adblock-warning-line {
        margin-bottom: 0.9rem;
    }
}


.mas-form-consent-field {
    margin-top: 12px;
}

.mas-consent-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #2f3a4a;
}

.mas-consent-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mas-consent-label input[type="checkbox"] {
    margin: 0;
    flex: 0 0 auto;
}

.mas-consent-prefix,
.mas-consent-text {
    display: block;
}

.mas-consent-text {
    margin-left: 0;
}

.mas-consent-label a {
    word-break: break-word;
}

.mas-bonus-table th,
.mas-bonus-table td {
    text-align: center;
    padding: 0.42rem 0.48rem;
    font-size: 0.76rem;
    line-height: 1.22;
}

.mas-bonus-table th:nth-child(1),
.mas-bonus-table td:nth-child(1) {
    width: 58px;
}

.mas-bonus-table th:nth-child(2),
.mas-bonus-table td:nth-child(2) {
    text-align: left;
    width: 23%;
}

.mas-bonus-table th:nth-child(3),
.mas-bonus-table td:nth-child(3) {
    width: 96px;
}

.mas-bonus-table th:nth-child(4),
.mas-bonus-table td:nth-child(4) {
    width: 138px;
    white-space: nowrap;
}

.mas-bonus-table-wrapper[data-mas-bonus-scroll-wrapper="1"] {
    position: relative;
    scrollbar-width: thin;
}

.mas-bonus-scroll-hint {
    position: relative;
    padding-right: 1.5rem !important;
}

.mas-bonus-scroll-hint::after {
    content: "→";
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    line-height: 1;
    color: rgba(100, 116, 139, .85);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.mas-bonus-table-wrapper.is-scrollable .mas-bonus-scroll-hint::after {
    opacity: .95;
    animation: masBonusScrollHint 1.15s ease-in-out infinite alternate;
}

.mas-bonus-table-wrapper.has-scrolled .mas-bonus-scroll-hint::after,
.mas-bonus-table-wrapper:not(.is-scrollable) .mas-bonus-scroll-hint::after {
    opacity: 0;
    animation: none;
}

@keyframes masBonusScrollHint {
    from {
        transform: translateY(-50%) translateX(0);
    }
    to {
        transform: translateY(-50%) translateX(6px);
    }
}

.mas-bonus-highlight-row {
    background: #eff6ff;
}

.mas-bonus-separator-row td {
    background: #f8fafc;
    font-weight: 700;
    color: #1d4ed8;
}

.mas-bonus-table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.mas-bonus-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    .mas-bonus-table-wrapper {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .mas-bonus-table-wrapper .mas-bonus-table {
        width: max-content !important;
        min-width: 430px !important;
        max-width: none !important;
        table-layout: auto;
    }

    .mas-bonus-table-wrapper .mas-bonus-table th,
    .mas-bonus-table-wrapper .mas-bonus-table td {
        white-space: nowrap !important;
        font-size: 11px;
        padding: 0.38rem 0.42rem;
        line-height: 1.2;
        position: static !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .mas-bonus-table-wrapper .mas-bonus-table th:nth-child(1),
    .mas-bonus-table-wrapper .mas-bonus-table td:nth-child(1) {
        min-width: 52px;
    }

    .mas-bonus-table-wrapper .mas-bonus-table th:nth-child(2),
    .mas-bonus-table-wrapper .mas-bonus-table td:nth-child(2) {
        min-width: 128px;
        background: transparent !important;
    }

    .mas-bonus-table-wrapper .mas-bonus-table th:nth-child(3),
    .mas-bonus-table-wrapper .mas-bonus-table td:nth-child(3) {
        min-width: 88px;
    }

    .mas-bonus-table-wrapper .mas-bonus-table th:nth-child(4),
    .mas-bonus-table-wrapper .mas-bonus-table td:nth-child(4) {
        min-width: 142px;
    }

    .mas-bonus-highlight-row td,
    .mas-bonus-separator-row td {
        background-clip: padding-box;
    }
}
