/* css/components.css - Componentes UI ViziM */

/* === Botões === */
/* === Botões - Estilo Apple Liquid Glass Premium === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
    text-decoration: none;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Apple Liquid Glass: Dourado ViziM */
.btn-primary,
a.btn-primary,
button.btn-primary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.04) 100%), var(--taki-yellow);
    color: #111827 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 4px 14px rgba(245, 158, 11, 0.32);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus,
.btn-primary:active,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
a.btn-primary:visited {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.02) 100%), var(--taki-yellow-hover);
    transform: translateY(-1.5px);
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.8), 0 8px 22px rgba(245, 158, 11, 0.45);
    color: #111827 !important;
}

/* Apple Liquid Glass: Dark / Obsidian */
.btn-dark,
a.btn-dark,
button.btn-dark {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.15) 100%), #0f172a;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 1px solid rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-dark:hover:not(:disabled),
.btn-dark:focus,
.btn-dark:active,
a.btn-dark:hover,
a.btn-dark:focus,
a.btn-dark:active,
a.btn-dark:visited {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.1) 100%), #1e293b;
    transform: translateY(-1.5px);
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    color: #ffffff !important;
}

/* Apple Liquid Glass: Frosted Outline */
.btn-outline {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--taki-text);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
}

.btn-outline:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.35) 100%);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1.5px);
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.95), 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .btn-outline {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #f8fafc;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-outline:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.35), 0 6px 20px rgba(0, 0, 0, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--taki-text);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.04);
}

/* Apple Liquid Glass: Emerald WhatsApp */
.btn-whatsapp {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.08) 100%), #25D366;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 4px 14px rgba(37, 211, 102, 0.35);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.btn-whatsapp:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.04) 100%), #20ba5a;
    transform: translateY(-1.5px);
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.65), 0 8px 22px rgba(37, 211, 102, 0.45);
    color: #ffffff;
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === Formulários === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--taki-text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--taki-border);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--taki-text);
    background: var(--taki-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--taki-yellow);
    box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.2);
}

.form-control::placeholder {
    color: var(--taki-muted);
}

/* === Search Pill Bar (Hero e Busca) === */
.search-pill-wrapper {
    background: #ffffff;
    border-radius: var(--r-pill);
    padding: 7px 8px 7px 22px;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    max-width: 1040px;
    width: 100%;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-field-unit {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1.5;
    position: relative;
    padding: 6px 12px 6px 0;
}

.search-field-unit.city {
    flex: 1.1;
    padding-left: 12px;
}

.search-field-unit.category {
    flex: 1.1;
    padding-left: 12px;
}

.search-field-icon {
    font-size: 22px;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-field-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.search-field-title {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}

.search-field-input {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    color: #4b5563;
    background: transparent;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-field-select {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    color: #4b5563;
    background: transparent;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 20px;
}

.search-field-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.btn-hero-buscar {
    background-color: var(--taki-yellow);
    color: #111827;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 36px;
    border-radius: var(--r-pill);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    flex-shrink: 0;
    letter-spacing: -0.2px;
}

.btn-hero-buscar:hover {
    background-color: var(--taki-yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 184, 28, 0.4);
}

/* === Benefits Row (Hero) === */
.benefits-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--taki-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--taki-yellow);
    font-size: 16px;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 12.5px;
    color: #ffffff;
    line-height: 1.35;
    font-weight: 500;
}

.benefit-text strong {
    font-weight: 700;
    display: block;
}

.benefit-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
}

/* === Cards === */
.card {
    background: var(--taki-surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--taki-border);
    box-shadow: var(--sh-1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    box-shadow: var(--sh-2);
}

/* Business Card (List & Grid) */
.business-card-grid {
    background: var(--taki-surface);
    border-radius: 18px;
    border: 1px solid var(--taki-border);
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.business-card-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.business-card-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.business-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.business-card-grid:hover .business-card-img-wrap img {
    transform: scale(1.05);
}

.card-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s, background-color 0.2s;
    z-index: 2;
}

.card-fav-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
    background: #ffffff;
}

.card-fav-btn.active {
    color: #ef4444;
}

.card-badge-open {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(16, 185, 129, 0.92);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    z-index: 2;
}

.card-badge-closed {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(220, 38, 38, 0.92);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    z-index: 2;
}

.business-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.business-card-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--taki-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-verified-badge {
    color: #2563EB;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.business-card-meta {
    font-size: 13px;
    color: var(--taki-muted);
    margin-bottom: 10px;
}

.business-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 14px;
}

.business-card-rating i.star {
    color: var(--taki-yellow);
    font-size: 15px;
}

.business-card-rating strong {
    font-weight: 700;
    color: var(--taki-text);
}

.business-card-rating span {
    color: var(--taki-muted);
}

.business-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--taki-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* === Category Badge / Pill Cards === */
.category-card {
    background: var(--taki-surface);
    border: 1px solid var(--taki-border);
    border-radius: var(--r-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-2);
    border-color: var(--taki-yellow);
}

.category-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 4px;
}

.category-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--taki-text);
    margin: 0;
}

.category-card span.count {
    font-size: 12px;
    color: var(--taki-muted);
}

/* === Chips & Tags === */
.chip, .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--taki-surface);
    border: 1px solid var(--taki-border);
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--taki-text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.chip:hover, .tag:hover {
    border-color: var(--taki-muted);
}

.chip.active, .tag.active {
    background: var(--taki-ink-2);
    color: #ffffff;
    border-color: var(--taki-ink-2);
}

/* === Toasts === */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: var(--taki-ink-2);
    color: #ffffff;
    padding: 14px 22px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInUp 0.25s ease-out;
}

.toast.success { border-left: 4px solid var(--taki-success); }
.toast.error { border-left: 4px solid var(--taki-danger); }
.toast.info { border-left: 4px solid var(--taki-yellow); }

@keyframes slideInUp {
    from { transform: translateY(80%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* === Mercado Pago Status Radar Pulse === */
.mp-pulse-indicator {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: mpPulse 1.8s infinite;
}

@keyframes mpPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   VIZIM PRELOADER ULTRA-MODERNO: COMÉRCIO & PROFISSIONAIS DE TODAS AS ÁREAS
   ========================================================================== */
.vizim-preloader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: radial-gradient(ellipse at center, #ffffff 0%, #faf8f5 55%, #f4eee3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.vizim-preloader-overlay.preloader-fade-out {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

[data-theme="dark"] .vizim-preloader-overlay,
body.dark-mode .vizim-preloader-overlay {
    background: radial-gradient(ellipse at center, #1e293b 0%, #0f172a 100%);
}

.preloader-stage {
    position: relative;
    width: 100%;
    max-width: 660px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Brilho e anéis de órbita decorativos */
.preloader-ambient-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(251, 191, 36, 0.05) 50%, transparent 70%);
    animation: preloaderAuraPulse 3.2s ease-in-out infinite alternate;
    pointer-events: none;
}

.preloader-orbit-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.preloader-orbit-ring.ring-inner {
    width: 320px;
    height: 320px;
    border: 1.5px dashed rgba(245, 158, 11, 0.32);
    animation: preloaderSpinClockwise 35s linear infinite;
}

.preloader-orbit-ring.ring-outer {
    width: 460px;
    height: 460px;
    border: 1px dashed rgba(100, 116, 139, 0.18);
    animation: preloaderSpinCounterClockwise 50s linear infinite;
}

[data-theme="dark"] .preloader-orbit-ring.ring-outer,
body.dark-mode .preloader-orbit-ring.ring-outer {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Núcleo Central: Logo + Slogan */
.preloader-core {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 36px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 20px 45px -12px rgba(0, 0, 0, 0.08),
        0 0 30px rgba(245, 158, 11, 0.14);
    animation: preloaderCoreEntrance 0.7s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

[data-theme="dark"] .preloader-core,
body.dark-mode .preloader-core {
    background: rgba(30, 41, 59, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.preloader-logo {
    height: 88px;
    max-height: 88px;
    width: auto;
    max-width: 82vw;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(245, 158, 11, 0.22));
    transition: transform 0.3s ease;
    animation: preloaderLogoPulse 3s ease-in-out infinite;
}

.preloader-logo-dark {
    display: none;
}

[data-theme="dark"] .preloader-logo-light,
body.dark-mode .preloader-logo-light {
    display: none !important;
}

[data-theme="dark"] .preloader-logo-dark,
body.dark-mode .preloader-logo-dark {
    display: block !important;
}

.preloader-tagline {
    font-family: 'Poppins', 'Outfit', 'Montserrat', Inter, -apple-system, sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

[data-theme="dark"] .preloader-tagline,
body.dark-mode .preloader-tagline {
    color: #f8fafc;
}

.preloader-tagline .preloader-highlight {
    color: #d97706;
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-tagline .preloader-dots {
    color: #f59e0b;
    display: inline-block;
    animation: preloaderDotsWave 1.3s infinite ease-in-out;
}

.preloader-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 5px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    min-width: 210px;
    justify-content: center;
}

[data-theme="dark"] .preloader-sub-pill,
body.dark-mode .preloader-sub-pill {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fde68a;
}

.preloader-sub-pill .ticker-text {
    transition: opacity 0.18s ease, transform 0.18s ease;
    display: inline-block;
}

.preloader-progress-track {
    width: 140px;
    height: 3px;
    background: rgba(100, 116, 139, 0.14);
    border-radius: 999px;
    margin-top: 14px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .preloader-progress-track,
body.dark-mode .preloader-progress-track {
    background: rgba(255, 255, 255, 0.12);
}

.preloader-progress-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 999px;
    animation: preloaderProgressSweep 1.6s ease-in-out infinite;
}

/* Badges Flutuantes de Comércio e Profissionais */
.preloader-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 9px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    box-shadow: 
        0 8px 22px -4px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(245, 158, 11, 0.08);
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    will-change: transform;
}

[data-theme="dark"] .preloader-badge,
body.dark-mode .preloader-badge {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #f1f5f9;
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.45);
}

.preloader-badge .badge-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preloader-badge .badge-icon-box svg {
    width: 15px;
    height: 15px;
}

/* Posições das 8 áreas em órbita */
.badge-pos-1 { top: 25px; left: 60px; animation: preloaderFloat1 4.2s ease-in-out infinite alternate; }
.badge-pos-2 { top: 25px; right: 60px; animation: preloaderFloat2 4.6s ease-in-out infinite alternate; }
.badge-pos-3 { top: 195px; right: 10px; animation: preloaderFloat3 3.8s ease-in-out infinite alternate; }
.badge-pos-4 { bottom: 65px; right: 45px; animation: preloaderFloat1 4.4s ease-in-out infinite alternate; }
.badge-pos-5 { bottom: 18px; left: 50%; transform: translateX(-50%); animation: preloaderFloat2 4s ease-in-out infinite alternate; }
.badge-pos-6 { bottom: 65px; left: 45px; animation: preloaderFloat3 4.5s ease-in-out infinite alternate; }
.badge-pos-7 { top: 195px; left: 10px; animation: preloaderFloat2 3.9s ease-in-out infinite alternate; }
.badge-pos-8 { top: 12px; left: 50%; transform: translateX(-50%); animation: preloaderFloat1 4s ease-in-out infinite alternate; }

/* Animações e Keyframes */
@keyframes preloaderAuraPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes preloaderSpinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes preloaderSpinCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes preloaderCoreEntrance {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

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

@keyframes preloaderDotsWave {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes preloaderProgressSweep {
    0% { left: -50%; width: 30%; }
    50% { left: 35%; width: 60%; }
    100% { left: 100%; width: 30%; }
}

@keyframes preloaderFloat1 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-9px) scale(1.02); }
}

@keyframes preloaderFloat2 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(8px) scale(0.98); }
}

@keyframes preloaderFloat3 {
    0% { transform: translateX(0) scale(1); }
    100% { transform: translateX(-7px) scale(1.01); }
}

/* Responsividade Mobile */
@media (max-width: 640px) {
    .preloader-stage {
        max-width: 95vw;
        height: 480px;
    }
    .preloader-orbit-ring.ring-inner {
        width: 270px;
        height: 270px;
    }
    .preloader-orbit-ring.ring-outer {
        display: none;
    }
    .preloader-core {
        padding: 22px 20px;
        border-radius: 26px;
    }
    .preloader-logo {
        height: 74px;
        max-height: 74px;
    }
    .preloader-tagline {
        font-size: 19px;
        margin-top: 12px;
    }
    .preloader-sub-pill {
        font-size: 11px;
        padding: 4px 12px;
        min-width: 180px;
    }
    .preloader-badge {
        padding: 5px 9px 5px 7px;
        font-size: 11px;
        gap: 6px;
    }
    .preloader-badge .badge-icon-box {
        width: 22px;
        height: 22px;
    }
    .preloader-badge .badge-icon-box svg {
        width: 13px;
        height: 13px;
    }
    .badge-pos-1 { top: 15px; left: 8px; }
    .badge-pos-2 { top: 15px; right: 8px; }
    .badge-pos-3 { top: 125px; right: 4px; }
    .badge-pos-4 { bottom: 50px; right: 12px; }
    .badge-pos-5 { bottom: 10px; left: 50%; transform: translateX(-50%); }
    .badge-pos-6 { bottom: 50px; left: 12px; }
    .badge-pos-7 { top: 125px; left: 4px; }
    .badge-pos-8 { top: 0px; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 380px) {
    .preloader-logo {
        height: 64px;
        max-height: 64px;
    }
    .preloader-tagline {
        font-size: 17px;
    }
    .badge-pos-3, .badge-pos-7 {
        display: none;
    }
}


