/* ==========================================================================
   AtomFive Checkout Master — Component Styles
   100% Themes.css, Template.css & .gmb-glass Design System Compliant
   100% Zero Emojis • Pure SVG Icons • Dynamic Glassmorphism
   Responsive & Accessible • Modal & Embedded Support
   ========================================================================== */

:root {
    /* Colors strictly mapped to AtomFive Themes (themes.css & template.css) */
    --af-chk-bg: var(--color-bg-base, #13151f);
    --af-chk-bg-top: var(--color-bg-top, #1d202e);
    --af-chk-surface: var(--color-surface, #1d202e);
    --af-chk-surface-alt: var(--color-surface-alt, rgba(255, 255, 255, 0.05));
    --af-chk-surface-block: var(--color-surface-block, #2e3142);
    --af-chk-surface-transparent: var(--color-surface-transparent, rgba(80, 80, 80, 0.3));

    --af-chk-border: var(--border-soft, rgba(255, 255, 255, 0.08));
    --af-chk-border-hover: var(--border-strong, rgba(255, 255, 255, 0.18));
    --af-chk-border-faint: var(--border-faint, rgba(255, 255, 255, 0.04));

    --af-chk-text: var(--color-text, #f1f1f1);
    --af-chk-text-muted: var(--color-text-muted, #a0a0c0);

    --af-chk-brand: var(--color-brand, #4f46e5);
    --af-chk-brand-hover: color-mix(in srgb, var(--color-brand, #4f46e5) 85%, #ffffff);
    --af-chk-brand-tint: var(--brand-tint, color-mix(in srgb, var(--color-brand, #4f46e5) 18%, transparent));
    --af-chk-brand-border: var(--color-brand-border, color-mix(in srgb, var(--color-brand, #4f46e5) 40%, transparent));

    --af-chk-accent: var(--green, var(--color-accent, #2ea76b));
    --af-chk-accent-bg: color-mix(in srgb, var(--green, var(--color-accent, #2ea76b)) 14%, transparent);
    --af-chk-accent-border: color-mix(in srgb, var(--green, var(--color-accent, #2ea76b)) 35%, transparent);

    --af-chk-danger: var(--color-danger, #FF3F3F);
    --af-chk-warning: var(--yellow, #ffdf38);

    --af-chk-shadow: var(--color-shadow, rgba(0, 0, 0, 0.35));
    --af-chk-shadow-elevation: var(--shadow-elevation, 0 16px 40px var(--color-shadow, rgba(0, 0, 0, 0.4)));

    --af-chk-radius: var(--radius, 12px);
    --af-chk-radius-sm: calc(var(--radius, 12px) * 0.65);
    --af-chk-radius-lg: calc(var(--radius, 12px) * 1.4);

    --af-chk-font: var(--font-family, var(--font-family-default, "Inter", sans-serif));
    --af-chk-focus-ring: var(--focus-ring, 0 0 0 3px color-mix(in srgb, var(--color-brand, #4f46e5) 25%, transparent));
}

/* Light Theme shadow adaptation */
html[data-theme="light"], body.light-theme {
    --af-chk-shadow: rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Modal Overlay & Premium Background
   ========================================================================== */
.af-chk-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: color-mix(in srgb, var(--color-bg-base, #13151f) 65%, transparent);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--af-chk-font);
    padding: 16px;
    box-sizing: border-box;
}

.af-chk-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Modal Window & Embedded Container (.gmb-glass Architecture)
   ========================================================================== */
.af-chk-modal,
.af-chk-embedded {
    background-color: color-mix(in srgb, var(--color-surface-block, #2e3142), transparent 32%) !important;
    backdrop-filter: blur(22px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(125%) !important;
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--af-chk-radius-lg);
    width: 100%;
    max-width: 540px;
    color: var(--af-chk-text);
    font-family: var(--af-chk-font);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: var(--af-chk-shadow-elevation), 0 0 35px color-mix(in srgb, var(--color-brand) 16%, transparent) !important;
}

.af-chk-modal {
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.af-chk-overlay.active .af-chk-modal {
    transform: scale(1) translateY(0);
}

.af-chk-embedded {
    margin: 40px auto;
    overflow: hidden;
}

/* ==========================================================================
   Header & Badges
   ========================================================================== */
.af-chk-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.af-chk-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.af-chk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: color-mix(in srgb, var(--color-brand) 16%, transparent);
    color: var(--color-brand);
    border: 1px solid color-mix(in srgb, var(--color-brand) 30%, transparent);
    font-size: var(--fs-caption, 11px);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.af-chk-badge.admin {
    background: color-mix(in srgb, var(--yellow, #ffdf38) 16%, transparent);
    color: var(--yellow, #ffdf38);
    border-color: color-mix(in srgb, var(--yellow, #ffdf38) 35%, transparent);
}

.af-chk-title {
    font-size: var(--fs-title-section, 20px);
    font-weight: 700;
    color: var(--af-chk-text);
    margin: 4px 0 0 0;
    letter-spacing: -0.5px;
}

.af-chk-subtitle {
    font-size: var(--fs-body, 13px);
    color: var(--af-chk-text-muted);
    margin: 2px 0 0 0;
}

.af-chk-close-btn {
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 40%, transparent);
    border: 1px solid var(--border-soft);
    color: var(--af-chk-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.af-chk-close-btn:hover {
    background: var(--color-surface-alt);
    border-color: var(--border-strong);
    color: var(--af-chk-text);
}

/* ==========================================================================
   Stepper Indicator
   ========================================================================== */
.af-chk-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 35%, transparent);
    border-bottom: 1px solid var(--border-soft);
    gap: 12px;
}

.af-chk-step-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-meta, 12px);
    font-weight: 600;
    color: var(--af-chk-text-muted);
    transition: color 0.2s ease;
}

.af-chk-step-item.active {
    color: var(--af-chk-brand);
}

.af-chk-step-item.completed {
    color: var(--af-chk-accent);
}

.af-chk-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-caption, 11px);
}

.af-chk-step-divider {
    flex: 1;
    max-width: 40px;
    height: 1px;
    background: var(--border-soft);
}

/* ==========================================================================
   Body Content
   ========================================================================== */
.af-chk-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ==========================================================================
   Segmented Toggle (PF vs PJ)
   ========================================================================== */
.af-chk-toggle-group {
    display: flex;
    gap: 6px;
    background: color-mix(in srgb, var(--color-surface-alt, rgba(255, 255, 255, 0.05)) 60%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px;
    border-radius: var(--af-chk-radius-sm);
    border: 1px solid var(--border-soft);
}

.af-chk-toggle-btn {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: calc(var(--af-chk-radius-sm) - 2px);
    color: var(--af-chk-text-muted);
    font-size: var(--fs-body, 13px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.af-chk-toggle-btn.active {
    background: var(--color-surface-block, #2e3142);
    color: var(--color-brand);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--color-brand) 20%, transparent);
    border: 1px solid var(--border-soft);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.af-chk-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.af-chk-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-meta, 12px);
    font-weight: 600;
    color: var(--af-chk-text-muted);
}

.af-chk-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.af-chk-input-wrapper .af-chk-input {
    padding-right: 40px;
}

.af-chk-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--af-chk-text-muted);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
    outline: none;
}

.af-chk-eye-btn:hover {
    color: var(--af-chk-text);
    background: color-mix(in srgb, var(--color-surface-alt, rgba(255, 255, 255, 0.08)) 60%, transparent);
}

.af-chk-eye-btn:focus-visible {
    box-shadow: var(--af-chk-focus-ring);
}

.af-chk-masked {
    -webkit-text-security: disc !important;
    text-security: disc !important;
    letter-spacing: 0.15em;
}

.af-chk-input {
    width: 100%;
    padding: 11px 14px;
    background: var(--color-surface-alt, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-soft);
    border-radius: var(--af-chk-radius-sm);
    color: var(--af-chk-text);
    font-size: var(--fs-body, 14px);
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.af-chk-input:focus {
    border-color: var(--color-brand);
    box-shadow: var(--af-chk-focus-ring);
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 75%, transparent);
}

.af-chk-input.af-chk-input-locked,
.af-chk-input[readonly] {
    opacity: 0.88;
    background: color-mix(in srgb, var(--color-surface-alt, rgba(255, 255, 255, 0.03)) 45%, transparent);
    cursor: not-allowed;
    border-color: var(--border-soft);
}

.af-chk-locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 90%, transparent);
    border: 1px solid var(--border-soft);
    color: var(--af-chk-text-muted);
    user-select: none;
}

.af-chk-locked-badge svg {
    width: 11px;
    height: 11px;
    stroke: var(--af-chk-text-muted);
}

.af-chk-input-row {
    display: flex;
    gap: 12px;
}

/* ==========================================================================
   Custom Dropdown for Teams (.gmb-glass compliant)
   ========================================================================== */
.af-chk-select-wrapper {
    position: relative;
    width: 100%;
}

.af-chk-select-trigger {
    width: 100%;
    padding: 11px 14px;
    background: var(--color-surface-alt, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-soft);
    border-radius: var(--af-chk-radius-sm);
    color: var(--af-chk-text);
    font-size: var(--fs-body, 13px);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.af-chk-select-trigger:hover {
    border-color: var(--border-strong);
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 50%, transparent);
}

.af-chk-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 95%, transparent);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid var(--border-strong);
    border-radius: var(--af-chk-radius-sm);
    box-shadow: var(--shadow-elevation, 0 16px 36px var(--color-shadow));
    z-index: 100;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.af-chk-select-menu.open {
    display: block;
}

.af-chk-select-option {
    padding: 10px 14px;
    font-size: var(--fs-body, 13px);
    color: var(--af-chk-text);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.af-chk-select-option:hover {
    background: color-mix(in srgb, var(--color-brand) 18%, transparent);
    color: var(--color-brand);
}

/* ==========================================================================
   Alert Boxes & Active Plan Notice (Glassmorphic)
   ========================================================================== */
.af-chk-alert-box {
    background: color-mix(in srgb, var(--green, var(--color-accent, #2ea76b)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--green, var(--color-accent, #2ea76b)) 35%, transparent);
    border-radius: var(--af-chk-radius-sm);
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--green, #2ea76b) 10%, transparent);
}

.af-chk-alert-title {
    font-size: var(--fs-title-nav, 15px);
    font-weight: 700;
    color: var(--af-chk-accent);
    margin: 0;
}

.af-chk-alert-desc {
    font-size: var(--fs-body, 13px);
    color: var(--af-chk-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Order Summary Box (Glassmorphic Card)
   ========================================================================== */
.af-chk-summary-box {
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 45%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-soft);
    border-radius: var(--af-chk-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 16px var(--color-shadow);
}

.af-chk-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--fs-body, 13px);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-faint);
}

.af-chk-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.af-chk-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.af-chk-item-title {
    font-weight: 600;
    color: var(--af-chk-text);
}

.af-chk-item-sub {
    font-size: var(--fs-caption, 11px);
    color: var(--af-chk-text-muted);
}

.af-chk-item-price {
    font-weight: 700;
    color: var(--af-chk-text);
    white-space: nowrap;
}

.af-chk-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
}

.af-chk-total-label {
    font-size: var(--fs-body, 14px);
    font-weight: 700;
    color: var(--af-chk-text);
}

.af-chk-total-val {
    font-size: var(--fs-title-section, 20px);
    font-weight: 800;
    color: var(--af-chk-accent);
}

/* ==========================================================================
   Payment Method Tabs
   ========================================================================== */
.af-chk-tabs {
    display: flex;
    gap: 8px;
}

.af-chk-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 10px;
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 40%, transparent);
    border: 1px solid var(--border-soft);
    border-radius: var(--af-chk-radius-sm);
    color: var(--af-chk-text-muted);
    font-size: var(--fs-body, 13px);
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.af-chk-tab-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.af-chk-tab-btn:hover {
    border-color: var(--border-strong);
    color: var(--af-chk-text);
    background: var(--color-surface-alt);
}

.af-chk-tab-btn.active {
    background: color-mix(in srgb, var(--color-brand) 18%, transparent);
    border-color: var(--color-brand);
    color: var(--color-brand);
    box-shadow: 0 0 16px color-mix(in srgb, var(--color-brand) 25%, transparent);
}

.af-chk-tab-btn.disabled,
.af-chk-tab-btn[disabled],
.af-chk-tabs button.disabled,
.af-chk-tabs button[disabled] {
    opacity: 0.38 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
    filter: grayscale(0.9) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: var(--af-chk-text-muted) !important;
    box-shadow: none !important;
}

.af-chk-tab-btn.disabled:hover,
.af-chk-tab-btn[disabled]:hover,
.af-chk-tabs button.disabled:hover,
.af-chk-tabs button[disabled]:hover {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--af-chk-text-muted) !important;
}

/* Tooltip elegante para abas desabilitadas */
.af-chk-tab-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-width: 5px;
    border-style: solid;
    border-color: #1e202e transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
    z-index: 1001;
}

.af-chk-tab-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 7px 12px;
    background: #181a26;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f1f5f9;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
    min-width: 140px;
    max-width: 240px;
    width: max-content;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1000;
}

.af-chk-tab-btn[data-tooltip]:hover::before,
.af-chk-tab-btn[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Payment Details (PIX QR Code, Card Box, Boleto Box)
   ========================================================================== */
.af-chk-qr-wrapper {
    background: #ffffff;
    padding: 12px;
    border-radius: calc(var(--af-chk-radius-sm) * 1.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 190px;
    height: 190px;
    margin: 0 auto;
    box-sizing: border-box;
}

.af-chk-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.af-chk-copy-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.af-chk-input-copy {
    flex: 1;
    background: var(--color-surface-alt, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-soft);
    border-radius: var(--af-chk-radius-sm);
    color: var(--af-chk-text);
    padding: 10px 12px;
    font-size: var(--fs-meta, 12px);
    font-family: var(--font-family-mono, monospace);
    outline: none;
}

.af-chk-btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 50%, transparent);
    border: 1px solid var(--border-soft);
    border-radius: var(--af-chk-radius-sm);
    color: var(--af-chk-text);
    font-size: var(--fs-meta, 12px);
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.af-chk-btn-copy:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    background: color-mix(in srgb, var(--color-brand) 12%, transparent);
}

.af-chk-btn-copy.copied {
    background: var(--af-chk-accent-bg);
    border-color: var(--af-chk-accent);
    color: var(--af-chk-accent);
}

/* ==========================================================================
   Actions & Buttons
   ========================================================================== */
.af-chk-footer {
    padding: 16px 24px 24px 24px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.af-chk-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-brand);
    color: #ffffff;
    border: none;
    border-radius: var(--af-chk-radius-sm);
    padding: 12px 20px;
    font-size: var(--fs-body, 14px);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-brand) 40%, transparent);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.af-chk-btn-primary:hover {
    background: var(--af-chk-brand-hover);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--color-brand) 55%, transparent);
    transform: translateY(-1px);
}

.af-chk-btn-primary:active {
    transform: scale(0.99);
}

.af-chk-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 50%, transparent);
    border: 1px solid var(--border-soft);
    border-radius: var(--af-chk-radius-sm);
    color: var(--af-chk-text);
    font-size: var(--fs-body, 13px);
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.af-chk-btn-secondary:hover {
    border-color: var(--border-strong);
    background: var(--color-surface-alt);
    color: var(--af-chk-text);
    transform: translateY(-1px);
}

/* ==========================================================================
   Live Polling Status Indicator
   ========================================================================== */
.af-chk-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-meta, 12px);
    color: var(--af-chk-text-muted);
}

.af-chk-status-dot {
    width: 8px;
    height: 8px;
    background: var(--af-chk-brand);
    border-radius: 50%;
    animation: af-chk-pulse 2s infinite ease-in-out;
}

@keyframes af-chk-pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

.af-chk-spinner {
    animation: af-chk-spin 1s linear infinite;
}

@keyframes af-chk-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Success Card (Celebration)
   ========================================================================== */
.af-chk-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    text-align: center;
    gap: 16px;
}

.af-chk-success-icon-box {
    width: 64px;
    height: 64px;
    background: var(--af-chk-accent-bg);
    border: 2px solid var(--af-chk-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--af-chk-accent);
    box-shadow: 0 0 24px color-mix(in srgb, var(--green, #2ea76b) 30%, transparent);
}

.af-chk-success-title {
    font-size: var(--fs-title-page, 22px);
    font-weight: 800;
    color: var(--af-chk-text);
    margin: 0;
}

.af-chk-success-desc {
    font-size: var(--fs-body, 14px);
    color: var(--af-chk-text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 400px;
}

/* ==========================================================================
   Admin Third Party Mode Specifics
   ========================================================================== */
.af-chk-admin-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.af-chk-btn-whatsapp {
    background: color-mix(in srgb, var(--green, #2ea76b) 12%, transparent);
    color: var(--af-chk-text);
    border: 1px solid color-mix(in srgb, var(--green, #2ea76b) 32%, transparent);
    border-radius: var(--af-chk-radius-sm);
    padding: 10px 16px;
    font-size: var(--fs-body, 13.5px);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.af-chk-btn-whatsapp svg {
    color: var(--green, #2ea76b);
    flex-shrink: 0;
}

.af-chk-btn-whatsapp:hover {
    background: color-mix(in srgb, var(--green, #2ea76b) 22%, transparent);
    border-color: color-mix(in srgb, var(--green, #2ea76b) 55%, transparent);
    color: var(--af-chk-text);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--green, #2ea76b) 20%, transparent);
}

/* ==========================================================================
   Modern Step Transition & Keyframe Animations
   ========================================================================== */
@keyframes afChkModernFadeScale {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.af-chk-step-transition {
    animation: afChkModernFadeScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Timer Badge & Expiration Card */
.af-chk-timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    width: 100%;
}

.af-chk-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: color-mix(in srgb, var(--yellow, #ffdf38) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--yellow, #ffdf38) 35%, transparent);
    border-radius: 999px;
    font-size: var(--fs-meta, 12px);
    font-weight: 600;
    color: var(--yellow, #ffdf38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--yellow, #ffdf38) 15%, transparent);
    transition: all 0.3s ease;
}

.af-chk-timer-badge.urgent {
    background: color-mix(in srgb, var(--color-danger, #FF3F3F) 14%, transparent);
    border-color: color-mix(in srgb, var(--color-danger, #FF3F3F) 45%, transparent);
    color: var(--color-danger, #FF3F3F);
    box-shadow: 0 2px 12px color-mix(in srgb, var(--color-danger, #FF3F3F) 25%, transparent);
    animation: afChkPulseUrgent 1.5s infinite ease-in-out;
}

.af-chk-timer-badge.boleto-mode {
    background: color-mix(in srgb, var(--af-chk-accent, #38bdf8) 12%, transparent);
    border-color: color-mix(in srgb, var(--af-chk-accent, #38bdf8) 35%, transparent);
    color: var(--af-chk-accent, #38bdf8);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--af-chk-accent, #38bdf8) 15%, transparent);
}

@keyframes afChkPulseUrgent {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.af-chk-timer-clock {
    font-family: var(--font-family-mono, monospace);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Validity & Release Grid */
.af-chk-validity-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: color-mix(in srgb, var(--color-surface-block, #2e3142) 50%, transparent);
    border: 1px solid var(--border-soft);
    border-radius: var(--af-chk-radius-sm);
    padding: 12px 16px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px var(--color-shadow);
}

.af-chk-validity-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.af-chk-validity-label {
    color: var(--af-chk-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.af-chk-validity-val {
    color: var(--af-chk-text);
    font-size: var(--fs-meta, 12.5px);
    font-weight: 700;
}

.af-chk-validity-val.accent {
    color: var(--af-chk-accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 480px) {
    .af-chk-validity-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ==========================================================================
   State Cards: Error, Unavailable & Status Notices (Light/Dark Balanced)
   ========================================================================== */
.af-chk-state-view {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.af-chk-state-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 20px 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.af-chk-state-card {
    padding: 24px 32px 42px 32px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.af-chk-state-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--af-chk-warning, #ffdf38) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--af-chk-warning, #ffdf38) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--af-chk-warning, #ffdf38);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .af-chk-state-icon-wrap,
body.light-theme .af-chk-state-icon-wrap {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.af-chk-state-title {
    font-size: var(--fs-title-sub, 18px);
    font-weight: 600;
    color: var(--af-chk-text);
    margin: 0 0 10px 0;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.af-chk-state-desc {
    font-size: var(--fs-body, 14px);
    color: var(--af-chk-text-muted);
    margin: 0 0 28px 0;
    line-height: 1.6;
    max-width: 400px;
}

.af-chk-code-pill {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-surface-alt);
    border: 1px solid var(--border-soft);
    border-radius: var(--af-chk-radius-sm);
    color: var(--af-chk-text);
    font-family: var(--af-chk-font);
    font-size: 0.94em;
    font-weight: 600;
    word-break: break-word;
}

.af-chk-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.af-chk-state-actions .af-chk-btn-close,
.af-chk-state-actions .af-chk-btn-back,
.af-chk-state-actions .af-chk-btn-whatsapp {
    flex: 0 1 auto;
    min-height: 42px;
    border-radius: var(--af-chk-radius);
}

.af-chk-btn-close,
.af-chk-btn-back {
    background: var(--color-brand);
    color: #ffffff;
    border: 1px solid color-mix(in srgb, var(--color-brand) 65%, transparent);
    border-radius: var(--af-chk-radius-sm);
    padding: 10px 22px;
    font-size: var(--fs-body, 13.5px);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-brand) 30%, transparent);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.af-chk-btn-close:hover,
.af-chk-btn-back:hover {
    background: var(--af-chk-brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--color-brand) 45%, transparent);
}

/* ==========================================================================
   Loading State & Shimmer Skeleton View
   ========================================================================== */
.af-chk-loading-view {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.af-chk-loading-header {
    border-bottom: 1px solid var(--af-chk-border-faint);
}

.af-chk-skeleton {
    background: linear-gradient(
        90deg,
        var(--color-surface-alt) 25%,
        color-mix(in srgb, var(--color-surface-alt) 75%, rgba(255, 255, 255, 0.08)) 50%,
        var(--color-surface-alt) 75%
    );
    background-size: 200% 100%;
    animation: afChkShimmer 1.8s infinite ease-in-out;
    border-radius: var(--radius-sm, 6px);
}

@keyframes afChkShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.af-chk-skeleton-title {
    width: 180px;
    height: 18px;
    margin-top: 8px;
    margin-bottom: 6px;
}

.af-chk-skeleton-subtitle {
    width: 260px;
    height: 12px;
}

.af-chk-stepper-skeleton {
    opacity: 0.6;
    pointer-events: none;
}

.af-chk-skeleton-step {
    width: 80px;
    height: 14px;
}

.af-chk-loading-body {
    padding: 48px 24px 54px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.af-chk-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
}

.af-chk-loader-spinner-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-brand) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-brand) 28%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand);
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.af-chk-loader-title {
    font-size: var(--fs-title-nav, 16px);
    font-weight: 600;
    color: var(--af-chk-text);
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.af-chk-loader-text {
    font-size: var(--fs-body, 13.5px);
    color: var(--af-chk-text-muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.af-chk-loader-lock-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--af-chk-text-muted);
    background: var(--color-surface-alt);
    border: 1px solid var(--border-soft);
    padding: 4px 10px;
    border-radius: var(--radius-full, 9999px);
    letter-spacing: 0.02em;
}

