/* Heading typography (h1-h6, .display/.heading-*) now lives entirely in
   riseax-global-typography.css — the one canonical system file, loaded
   alongside this one. Nothing heading-related belongs here anymore; this
   file keeps only the non-heading text sizing below plus the motion/
   animation and button-color systems further down. */
table {
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p,
li,
dd,
.summary,
.input-help,
.campaign-field-note,
.campaign-keyword-hint,
.campaign-budget-note,
.campaign-wallet-warning,
.wallet-help,
.support-help,
.reply-muted {
    font-family: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

.hero-text,
.hero-copy > p:not(.eyebrow),
.contact-intro,
.support-intro-copy > p,
.campaign-heading > p:last-child {
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

.sidebar-help p,
.campaign-footer p,
.footer-bottom p,
.input-help,
.campaign-field-note,
.campaign-keyword-hint,
.campaign-budget-note,
.campaign-wallet-warning,
.step p,
.views-notice,
.video_title,
.payment_info {
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.video_title {
    font-weight: 600 !important;
}

button,
input[type='button'],
input[type='submit'],
.button,
.btn,
.nav-cta,
.new-campaign-btn,
.campaign-primary-btn,
.campaign-secondary-btn,
.wallet-submit,
.reply-link {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
}

label,
legend,
.form-label,
.tp-mail label,
.tp-password label,
.campaign-entry-card label {
    font-family: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
}

input,
select,
textarea,
.form-control,
.campaign-select,
.campaign-token-input {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

.primary-nav a,
.account-nav a,
.nav-links a,
.sidebar-nav a,
.sidebar-logout,
.campaign-footer a,
.footer-column a,
header nav a,
nav a {
    font-family: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
}

table,
table td,
.wallet-table td,
.support-table td,
#campaigns_list_datatable tbody td {
    font-family: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

table th,
.wallet-table th,
.support-table th,
#campaigns_list_datatable thead th {
    font-family: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
}

.eyebrow,
.overline,
.section-tag,
.campaign-kicker,
.list-kicker,
.section-pill,
.safe-chip,
.safe-badge,
.status-pill,
.type-pill,
.amount-pill,
.footer-column h4 {
    font-family: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
}

.button-primary,
.nav-cta,
.new-campaign-btn,
.video-input-row button[type='submit'],
.campaign-primary-btn,
.wallet-submit,
.support-form-actions button[type='submit'],
.login-btn,
.cta,
.tp-btn-yellow,
.proccedBtn,
.dv_pay_btn {
    background-color: #d53a42 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #d53a42 !important;
}

.button-primary:hover,
.nav-cta:hover,
.new-campaign-btn:hover,
.video-input-row button[type='submit']:hover,
.campaign-primary-btn:hover,
.wallet-submit:hover,
.support-form-actions button[type='submit']:hover,
.login-btn:hover,
.cta:hover,
.tp-btn-yellow:hover,
.proccedBtn:hover,
.dv_pay_btn:hover {
    background-color: #b2202d !important;
    color: #ffffff !important;
    border-color: #b2202d !important;
}

.button-primary:active,
.nav-cta:active,
.new-campaign-btn:active,
.video-input-row button[type='submit']:active,
.campaign-primary-btn:active,
.wallet-submit:active,
.support-form-actions button[type='submit']:active,
.login-btn:active,
.cta:active,
.tp-btn-yellow:active,
.proccedBtn:active,
.dv_pay_btn:active {
    background-color: #93001a !important;
    border-color: #93001a !important;
}

.contact-form button[type='submit'] {
    background-color: #fea619 !important;
    background-image: none !important;
    color: #684000 !important;
    border-color: #fea619 !important;
}

.contact-form button[type='submit']:hover {
    background-color: #ffb95f !important;
    color: #684000 !important;
    border-color: #ffb95f !important;
}

.reply-link {
    background-color: #0058bd !important;
    color: #ffffff !important;
    border-color: #0058bd !important;
}

.reply-link:hover {
    background-color: #0c70ea !important;
    color: #ffffff !important;
    border-color: #0c70ea !important;
}

@media (prefers-reduced-motion: no-preference) {
    .rx-motion-enabled .rx-page-enter {
        animation: rx-page-enter 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .rx-motion-enabled .rx-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition:
            opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
            transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .rx-motion-enabled .rx-reveal.rx-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .rx-motion-enabled .rx-reveal .rx-stagger-item {
        opacity: 0;
        transform: translateY(20px);
    }

    .rx-motion-enabled .rx-reveal.rx-visible .rx-stagger-item {
        animation: rx-slide-up-fade 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-delay: 0ms;
    }

    button,
    input[type='button'],
    input[type='submit'],
    .button,
    .btn,
    .nav-cta,
    .new-campaign-btn,
    .campaign-primary-btn,
    .campaign-secondary-btn,
    .wallet-submit,
    .reply-link {
        transition-property: transform, box-shadow, opacity, background-color, color, border-color !important;
        transition-duration: 300ms !important;
        transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        will-change: transform;
    }

    button:hover,
    input[type='button']:hover,
    input[type='submit']:hover,
    .button:hover,
    .btn:hover,
    .nav-cta:hover,
    .new-campaign-btn:hover,
    .campaign-primary-btn:hover,
    .campaign-secondary-btn:hover,
    .wallet-submit:hover,
    .reply-link:hover {
        transform: scale(1.05);
    }

    button:active,
    input[type='button']:active,
    input[type='submit']:active,
    .button:active,
    .btn:active,
    .nav-cta:active,
    .new-campaign-btn:active,
    .campaign-primary-btn:active,
    .campaign-secondary-btn:active,
    .wallet-submit:active,
    .reply-link:active {
        transform: scale(.95);
        transition-duration: 150ms !important;
    }

    .button span:last-child,
    .new-campaign-btn span:last-child,
    .campaign-primary-btn span:last-child,
    .wallet-submit span:last-child,
    .video-input-row button span:last-child {
        transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .button:hover span:last-child,
    .new-campaign-btn:hover span:last-child,
    .campaign-primary-btn:hover span:last-child,
    .wallet-submit:hover span:last-child,
    .video-input-row button:hover span:last-child {
        transform: translateX(4px);
    }

    .cards article,
    .policy-grid article,
    .dark-cards article,
    .campaign-entry-card,
    .campaign-list-card,
    .campaign-config-card,
    .campaign-preview-card,
    .campaign-views-card,
    .setup-selected-card,
    .setup-panel,
    .setup-summary-card,
    .setup-help-card,
    .wallet-topup-card,
    .wallet-history-card,
    .support-form-card,
    .support-contact-card,
    .support-list-card,
    .visual-card,
    .form-card {
        transition-property: transform, box-shadow, border-color !important;
        transition-duration: 400ms !important;
        transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        will-change: transform;
    }

    .cards article:hover,
    .policy-grid article:hover,
    .dark-cards article:hover,
    .campaign-entry-card:hover,
    .campaign-list-card:hover,
    .campaign-config-card:hover,
    .campaign-preview-card:hover,
    .campaign-views-card:hover,
    .setup-selected-card:hover,
    .setup-panel:hover,
    .setup-summary-card:hover,
    .setup-help-card:hover,
    .wallet-topup-card:hover,
    .wallet-history-card:hover,
    .support-form-card:hover,
    .support-contact-card:hover,
    .support-list-card:hover,
    .visual-card:hover,
    .form-card:hover {
        transform: translateY(-8px);
    }

    .category-group,
    .section-pill,
    .safe-chip,
    .safe-badge,
    .status-pill,
    .type-pill,
    .amount-pill,
    .filter-pills button,
    .quick-amounts button {
        transition-property: transform, box-shadow !important;
        transition-duration: 300ms !important;
        transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        will-change: transform;
    }

    .category-group:hover,
    .section-pill:hover,
    .safe-chip:hover,
    .safe-badge:hover,
    .status-pill:hover,
    .type-pill:hover,
    .amount-pill:hover,
    .filter-pills button:hover,
    .quick-amounts button:hover {
        transform: scale(1.1) translateY(-2px);
    }

    a,
    summary,
    input,
    select,
    textarea,
    .sidebar-nav a,
    .history-filter {
        transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
        transition-duration: 300ms !important;
    }

    .eyebrow,
    .safe-chip,
    .safe-badge {
        animation: rx-soft-pulse 2s ease-in-out infinite;
    }

    .reply-modal.show .reply-modal-panel {
        animation: rx-modal-enter 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@keyframes rx-page-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rx-slide-up-fade {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rx-soft-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes rx-modal-enter {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
