/* Secure purchase message below buy button */
.secure-purchase-msg {
    font-size: 0.70rem;
    color: #9a9ca0;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
}
.secure-purchase-msg i {
    color: #9a9ca0 !important;
}
.secure-purchase-msg span {
    color: #9a9ca0 !important;
    font-weight: 400;
}
:root {
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Cores padrão atualizadas via JS */
    --main-color: #000000;
    --secondary-color: #00f2ff;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode {
    background-color: var(--main-color);
    color: #ffffff;
}

body.light-mode {
    background-color: #ffffff;
    color: var(--main-color);
}

.fw-black { font-weight: 800; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Efeitos de brilho (Glow) */
.blur-giant {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

/* Navbar Fixa */
.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1050;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(128,128,128,0.1);
    transition: background 0.3s ease;
}

/* Cards Premium */
.premium-card {
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(128,128,128,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.premium-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dark-mode .premium-card { background: rgba(20, 20, 20, 0.7); color: #fff; }
.light-mode .premium-card { background: #fff; color: #000; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }

.units:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color) !important;
}

.light-mode .units:hover {
    border-color: var(--main-color) !important;
}

.icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

.arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

/* Preços */
.pricing-box { display: flex; align-items: flex-start; }
.currency { font-size: 1.1rem; margin-top: 8px; margin-right: 4px; }
.price { line-height: 0.9; font-size: 4.2rem; letter-spacing: -0.03em; font-weight: 900; }
.cents { font-size: 1.1rem; }
.period { font-size: 0.7rem; line-height: 1; }

/* Suavizar adesão e manutenção */
.premium-card .mb-4.p-3 {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-weight: 400;
}
.premium-card .mb-4.p-3 .fw-bold,
.premium-card .mb-4.p-3 .fw-black {
    font-weight: 400 !important;
}
.light-mode .premium-card .mb-4.p-3 {
    color: #444;
}
.dark-mode .premium-card .mb-4.p-3 {
    color: #e0e0e0;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
}

.plan-description-wrapper {
    max-height: 300px;
    overflow-y: auto;
}
.plan-description-wrapper::-webkit-scrollbar { width: 3px; }
.plan-description-wrapper::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.2); }

.plan-description-content { line-height: 1.6; font-size: 0.85rem; }
.plan-description-content * { color: inherit !important; background: transparent !important; }

.btn-checkout {
    padding: 15px;
    border-radius: 1rem;
    border: none;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: filter 0.2s, transform 0.2s;
}
.btn-checkout:hover { filter: brightness(1.1); transform: scale(1.02); }

/* Estilo para Dropdown de Idioma */
.dropdown-menu {
    border-radius: 1.5rem;
    border: 1px solid rgba(128,128,128,0.1);
    backdrop-filter: blur(20px);
    padding: 0.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Padroniza tamanho dos botões de tema e idioma no header */
#theme-toggle, #lang-selector {
    font-size: 0.9rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
}
#theme-toggle i, #lang-selector .lang-flag-container {
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
}
#theme-text, #current-lang-code {
    font-size: 0.95em;
}
.dark-mode .dropdown-menu { background: rgba(30, 30, 30, 0.9); }
.light-mode .dropdown-menu { background: rgba(255, 255, 255, 0.9); }

.dropdown-item {
    border-radius: 0.8rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}
.dark-mode .dropdown-item { color: #fff; }
.dark-mode .dropdown-item:hover { background: rgba(255,255,255,0.1); }
.light-mode .dropdown-item:hover { background: rgba(0,0,0,0.05); }

.lang-flag-container { 
    display: inline-flex; 
    width: 22px; 
    height: 16px; 
    border-radius: 2px; 
    overflow: hidden; 
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.hidden { display: none !important; }

/* Unit Selector Dropdown */
.unit-selector-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.unit-selector-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 1.5rem;
    border: 1px solid rgba(128,128,128,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .unit-selector-btn { background: rgba(255,255,255,0.05); color: #fff; }
.light-mode .unit-selector-btn { background: rgba(0,0,0,0.03); color: var(--main-color); }
.unit-selector-btn:hover { transform: translateY(-2px); border-color: var(--secondary-color); }
.light-mode .unit-selector-btn:hover { border-color: var(--main-color); }
.unit-selector-btn.open { border-radius: 1.5rem 1.5rem 0 0; border-bottom-color: transparent; }
.dark-mode .unit-selector-btn.open { border-color: var(--secondary-color); border-bottom-color: transparent; }
.light-mode .unit-selector-btn.open { border-color: var(--main-color); border-bottom-color: transparent; }

.unit-selector-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.dark-mode .unit-selector-icon { background: var(--secondary-color); color: var(--main-color); }
.light-mode .unit-selector-icon { background: var(--main-color); color: #fff; }

.unit-selector-content { flex: 1; text-align: left; min-width: 0; }
.unit-selector-label { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; }
.unit-selector-value { display: block; font-size: 0.95rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.unit-selector-arrow {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
    background: rgba(128,128,128,0.1);
}
.unit-selector-btn.open .unit-selector-arrow { transform: rotate(180deg); }

.unit-dropdown-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 8px;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}
.dark-mode .unit-dropdown-menu { background: rgba(20,20,20,0.98); border: 1px solid var(--secondary-color); border-top: none; }
.light-mode .unit-dropdown-menu { background: rgba(255,255,255,0.98); border: 1px solid var(--main-color); border-top: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.unit-dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }

.unit-dropdown-header { padding: 10px 14px 6px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.4; }

.unit-dropdown-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-radius: 0.8rem;
    cursor: pointer; transition: background 0.2s ease;
    font-weight: 600; font-size: 0.9rem;
}
.dark-mode .unit-dropdown-item:hover { background: rgba(255,255,255,0.08); }
.light-mode .unit-dropdown-item:hover { background: rgba(0,0,0,0.04); }
.unit-dropdown-item.active { pointer-events: none; }
.dark-mode .unit-dropdown-item.active { background: rgba(255,255,255,0.1); }
.light-mode .unit-dropdown-item.active { background: rgba(0,0,0,0.05); }

.unit-dropdown-check { color: var(--secondary-color); }
.light-mode .unit-dropdown-check { color: var(--main-color); }

@keyframes slideDown { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-slide-down { animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-up { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }