/* ACBIZ GLOBAL — Trust & Activity Engine (Phase 2 widgets) */

#acbiz-trust-toast {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9998;
    max-width: 340px;
    width: calc(100% - 32px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}

#acbiz-trust-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#acbiz-trust-toast .att-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

#acbiz-trust-toast.att-signup .att-icon {
    background: #f0fdf4;
    color: #16a34a;
}

#acbiz-trust-toast .att-body {
    flex: 1;
    min-width: 0;
}

#acbiz-trust-toast .att-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 2px;
    overflow-wrap: break-word;
}

#acbiz-trust-toast .att-meta {
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

#acbiz-trust-toast .att-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

#acbiz-trust-toast .att-close:hover {
    color: #64748b;
}

@media (max-width: 640px) {
    #acbiz-trust-toast {
        left: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #acbiz-trust-toast {
        transition: opacity .15s linear;
        transform: none !important;
    }
}

/* ── Live stats counters (Phase 3) ───────────────────────── */

.att-stats-section {
    padding: 56px 0;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.att-stats { display: none; } /* shown by JS once real data arrives */

.att-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.att-stats-header h3 {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.att-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 4px;
}

.att-tab {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 7px;
    cursor: pointer;
}

.att-tab.is-active {
    background: #1d4ed8;
    color: #fff;
}

.att-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.att-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
}

.att-stat-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.att-stat-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}

.att-stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .att-stats-header { flex-direction: column; align-items: flex-start; }
    .att-tabs { width: 100%; overflow-x: auto; }
}

.att-stats-footer {
    text-align: center;
    margin-top: 22px;
}

.att-stats-footer a {
    font-size: 12.5px;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}

.att-stats-footer a:hover {
    text-decoration: underline;
}
