/* Shared action buttons only: tabs, plan selectors and editor controls retain their own states. */
:root {
    --action-fill:#087c90;
    --action-hover:#096a7c;
    --action-text:#eef3f5;
    --action-line:#526068;
    --action-soft:#20292d;
    --action-focus:#61c9df;
}
html[data-theme="light"] {
    --action-text:#263b45;
    --action-line:#a6b5bd;
    --action-soft:#e8eff2;
    --action-focus:#087c90;
}
html[data-theme] body :is(.button:not(.menu-toggle):not(.theme-toggle), .vps-button, .billing-button, .crm-button,
    .affiliate-login-panel form > button[type="submit"], .affiliate-profile-card form button[type="submit"],
    .contact-form-footer > button, [data-cart-coupon-apply]) {
    --button-bg:transparent;
    --button-fg:var(--action-text);
    --button-border:var(--action-line);
    --button-hover:var(--action-soft);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    max-width:100%;
    box-sizing:border-box;
    padding:10px 16px;
    border:1px solid var(--button-border) !important;
    border-radius:5px !important;
    background:var(--button-bg) !important;
    color:var(--button-fg) !important;
    font-family:Inter,Arial,sans-serif !important;
    font-size:13px !important;
    font-weight:600 !important;
    line-height:1.4;
    letter-spacing:0 !important;
    text-transform:none !important;
    text-decoration:none !important;
    text-align:center;
    white-space:normal;
    box-shadow:none !important;
    transform:none !important;
    filter:none !important;
    transition:background-color .15s ease,border-color .15s ease,color .15s ease !important;
    cursor:pointer;
}
html[data-theme] body :is(.button:not(.ghost):not(.menu-toggle):not(.theme-toggle),
    .vps-button.is-primary,.billing-button.is-primary,.crm-button.is-primary,
    .affiliate-login-panel form > button[type="submit"],.affiliate-profile-card form button[type="submit"],
    .contact-form-footer > button) {
    --button-bg:var(--action-fill);
    --button-fg:#fff;
    --button-border:var(--action-fill);
    --button-hover:var(--action-hover);
}
html[data-theme] body :is(.button:not(.menu-toggle):not(.theme-toggle),.vps-button,.billing-button,.crm-button,
    .affiliate-login-panel form > button[type="submit"],.affiliate-profile-card form button[type="submit"],
    .contact-form-footer > button,[data-cart-coupon-apply]):not(:disabled):not([aria-disabled="true"]):hover {
    background:var(--button-hover) !important;
    color:var(--button-fg) !important;
    box-shadow:none !important;
    transform:none !important;
    filter:none !important;
}
html[data-theme] body :is(.button:not(.menu-toggle):not(.theme-toggle),.vps-button,.billing-button,.crm-button,
    .affiliate-login-panel form > button[type="submit"],.affiliate-profile-card form button[type="submit"],
    .contact-form-footer > button,[data-cart-coupon-apply]):focus-visible {
    outline:2px solid var(--action-focus) !important;
    outline-offset:3px !important;
}
html[data-theme] body :is(.button,.vps-button,.billing-button,.crm-button,
    .affiliate-login-panel form > button,.affiliate-profile-card form button[type="submit"],
    .contact-form-footer > button,[data-cart-coupon-apply]):is(:disabled,[aria-disabled="true"]) {
    opacity:.5 !important;
    cursor:not-allowed !important;
}
html[data-theme] body :is(.button,.vps-button,.billing-button,.crm-button)[aria-busy="true"] { cursor:progress; }
html[data-theme] body :is(.vps-button,.billing-button,.crm-button).is-icon { width:42px; min-width:42px; height:42px; padding:10px; }
html[data-theme] body :is(.button,.vps-button,.billing-button,.crm-button) .ui-icon { flex-shrink:0; width:16px; height:16px; color:inherit !important; }
html[data-theme] body :is(.vps-button,.billing-button,.crm-button).is-restore {
    --button-bg:transparent; --button-fg:#e3bc75; --button-border:#866837; --button-hover:#302a20;
}
html[data-theme] body .affiliate-profile-card .two-factor-cancel button[type="submit"] {
    --button-bg:transparent; --button-fg:var(--action-text); --button-border:var(--action-line); --button-hover:var(--action-soft);
}
/* Photographic sections remain dark in both themes. */
html[data-theme] body :is(.hero,.page-hero) .hero-actions .button.ghost,
html[data-theme] body #rete .network-actions .button.ghost {
    --button-fg:#eef3f5; --button-border:#697981; --button-hover:#20292d;
    color:#eef3f5 !important;
    border-color:#697981 !important;
}
html[data-theme] body :is(.vps-button,.billing-button,.crm-button):is(.is-danger,.danger),
html[data-theme] body .affiliate-profile-card .affiliate-danger-form button[type="submit"] {
    --button-bg:transparent; --button-fg:#ffadb3; --button-border:#97505c; --button-hover:#3c2228;
}
html[data-theme="light"] body :is(.vps-button,.billing-button,.crm-button).is-restore {
    --button-fg:#80570b; --button-border:#b69759; --button-hover:#faf0dd;
}
html[data-theme="light"] body :is(.vps-button,.billing-button,.crm-button):is(.is-danger,.danger),
html[data-theme="light"] body .affiliate-profile-card .affiliate-danger-form button[type="submit"] {
    --button-fg:#ae293d; --button-border:#ce8590; --button-hover:#fae9ec;
}
html[data-theme] body .affiliate-sidebar-bottom .affiliate-signout {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    width:100%;
    min-height:42px;
    padding:10px 12px;
    border:0 !important;
    border-radius:5px;
    background:transparent !important;
    color:var(--action-text) !important;
    font:500 13px/1.4 Inter,Arial,sans-serif !important;
    text-transform:none !important;
    letter-spacing:0;
    box-shadow:none !important;
    transform:none !important;
    cursor:pointer;
}
html[data-theme] body .affiliate-signout .ui-icon { width:18px; height:18px; flex-shrink:0; color:inherit; }
html[data-theme] body .affiliate-sidebar-bottom .affiliate-signout:hover:not(:disabled) { background:var(--action-soft) !important; }
html[data-theme] body .affiliate-signout:focus-visible { outline:2px solid var(--action-focus); outline-offset:2px; }
html[data-theme] body .affiliate-signout:disabled { opacity:.5; cursor:wait; }

/* Custom purchase controls share action typography without changing their states or geometry. */
html[data-theme][data-theme] body [data-public-content] :is(
    .vps-plan-choose, .config-card button, .vps-addon-action button, .addon-action button,
    .config-coupon-form button, .cart-checkout-open, [data-cart-button],
    [data-plan-advisor-open], [data-advisor-apply], .fivem-advisor-action
) {
    font-family:var(--font-ui) !important;
    font-size:13px !important;
    font-weight:600 !important;
    line-height:1.4 !important;
    letter-spacing:0 !important;
    text-transform:none !important;
}
@media(prefers-reduced-motion:reduce) {
    html[data-theme] body :is(.button,.vps-button,.billing-button,.crm-button) { transition:none !important; }
}
