/* --- POWERPIX DARK CASINO DESIGN SYSTEM (styles-components.css) --- */

:root {
    /* 🎨 CORES */
    --color-bg-body: #050505;
    --color-bg-card: #0A0A0A;
    --color-bg-input: #151515;

    --color-primary: #FF4B1F;
    /* Laranja Power */
    --color-primary-gradient: linear-gradient(90deg, #FF4B1F 0%, #FF9068 100%);

    --color-gold: #F5C542;
    /* Ouro VIP */
    --color-gold-glow: rgba(245, 197, 66, 0.2);

    --color-text-white: #FFFFFF;
    --color-text-gray: #888888;

    /* 📐 ESPAÇAMENTO */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 999px;
}

/* --- BASE --- */
body {
    background-color: var(--color-bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--color-text-white);
    -webkit-font-smoothing: antialiased;
}

/* --- CONTAINER MÃE --- */
.pp-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 100px;
    /* Space for Navbar */
}

/* --- COMPONENTE: TYPOGRAPHY --- */
.pp-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.pp-subtitle {
    font-size: 14px;
    color: var(--color-text-gray);
    margin-bottom: 24px;
}

.pp-section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-gray);
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 700;
}

/* --- COMPONENTE: BOTÕES (BUTTONS) --- */
.pp-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.pp-btn:active {
    transform: scale(0.98);
}

/* Variação: Primário (Ação Principal) */
.pp-btn-primary {
    background: var(--color-primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 75, 31, 0.3);
}

/* Variação: Secundário (Cinza) */
.pp-btn-secondary {
    background: var(--color-bg-input);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Variação: Outline Gold (VIP) */
.pp-btn-gold {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.pp-btn-gold:hover {
    background: rgba(245, 197, 66, 0.1);
}

/* Variação: Ícone Redondo */
.pp-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    background: var(--color-bg-input);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pp-btn-pdf {
    background: linear-gradient(135deg, #d4af37, #f4e5b8);
    color: #1a1a2e;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
}

.pp-btn-pdf:active {
    transform: scale(0.95);
}

/* --- COMPONENTE: CARDS --- */
.pp-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

/* Variação: Highlight Card */
.pp-card-highlight {
    border: 1px solid var(--color-gold);
    box-shadow: inset 0 0 30px var(--color-gold-glow);
}

/* --- COMPONENTE: BALLS --- */
.pp-ball {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pp-ball-white {
    background: white;
    color: black;
    border-color: #ddd;
}

.pp-ball-red {
    background: #FF4B1F;
    color: white;
    border-color: #FF7043;
    box-shadow: 0 0 10px rgba(255, 75, 31, 0.3);
}

.pp-ball-gold {
    background: linear-gradient(135deg, #F5C542, #B8860B);
    color: black;
    border-color: #F5C542;
    box-shadow: 0 0 10px rgba(245, 197, 66, 0.3);
}

.pp-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pp-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-input);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-text-gray);
}

/* --- COMPONENTE: FORMS & INPUTS --- */
.pp-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.pp-label {
    display: block;
    color: var(--color-text-gray);
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 600;
}

.pp-input {
    width: 100%;
    background: var(--color-bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    /* Importante para não quebrar layout */
}

.pp-input:focus {
    border-color: var(--color-gold);
}

/* --- COMPONENTE: TOGGLE SWITCH --- */
.pp-toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pp-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.pp-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.pp-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-input);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pp-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.pp-slider {
    background: var(--color-primary-gradient);
    border-color: transparent;
}

input:checked+.pp-slider:before {
    transform: translateX(20px);
}

/* --- COMPONENTE: BADGES --- */
.pp-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.pp-badge-hot {
    background: var(--color-primary);
    color: white;
}

.pp-badge-vip {
    background: var(--color-gold);
    color: black;
}

.pp-badge-new {
    background: #00E5FF;
    color: black;
}

/* --- COMPONENTE: BOTTOM NAVBAR --- */
.pp-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 1000;
}

.pp-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-gray);
    text-decoration: none;
    font-size: 10px;
    gap: 4px;
    transition: color 0.2s;
}

.pp-nav-item.active {
    color: white;
}

.pp-nav-item.active i {
    color: var(--color-gold);
}

.pp-nav-fab {
    width: 50px;
    height: 50px;
    background: var(--color-primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-top: -24px;
    border: 4px solid #141414;
    box-shadow: 0 4px 10px rgba(255, 75, 31, 0.4);
}

/* --- ANIMATIONS & SKELETONS (Point 4) --- */
@keyframes pp-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.pp-skeleton {
    background: linear-gradient(90deg, #2A2A2A 25%, #353535 50%, #2A2A2A 75%);
    background-size: 200% 100%;
    animation: pp-shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.pp-skeleton-card {
    height: 120px;
    width: 100%;
    border-radius: var(--radius-lg);
    background: #222;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

@keyframes pp-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pp-fade-out {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

.pp-fade-in {
    animation: pp-fade-in 0.3s ease-out forwards;
}

/* --- PREMIUM PROFILE STYLES --- */
.profile-aura {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, var(--aura-color, #F5C542), transparent, var(--aura-color, #F5C542));
    animation: rotate-aura 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

@keyframes rotate-aura {
    to { transform: rotate(360deg); }
}

.xp-bar-shimmer {
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: xp-shimmer 2s infinite linear;
}

@keyframes xp-shimmer {
    from { transform: translateX(-200%); }
    to { transform: translateX(300%); }
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.streak-dot {
    width: 32px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fire-icon {
    font-size: 16px;
    filter: grayscale(1);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.fire-icon.active {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 75, 31, 0.6);
}

.perk-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s;
}

.perk-item.locked {
    opacity: 0.2;
    filter: saturate(0) blur(0.5px);
}

.perk-item i {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--color-gold);
}

.level-badge-float {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* --- REFINED UI ENHANCEMENTS --- */
.summary-balance-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.sub-balance-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.streak-track-container {
    position: relative;
    padding: 10px 0;
}

.streak-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    transform: translateY(-50%);
    z-index: 0;
}

.streak-progress {
    height: 100%;
    background: var(--color-primary-gradient);
    width: 0%;
    transition: width 1s ease;
}

.list-item-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    margin-bottom: 8px;
}

.list-item-clean:active {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(0.98);
}

.icon-box {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* --- FIX: CLIPPING DE NÚMEROS DE SALDO --- */
.balance-value-fix {
    line-height: 1.4 !important; /* Mais generoso */
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-top: 10px !important; /* Proteção extra para topos de números */
    padding-bottom: 8px !important;
    margin-top: -5px !important;
    margin-bottom: -5px !important;
    transform: translateZ(0); /* Força nova camada de renderização */
    letter-spacing: -0.05em !important; /* M-SENIOR: Maior densidade */
}
.balance-value-fix.centered {
    align-items: center !important;
}


/* Item 4: Responsive sizes with rem (M-SENIOR: Anti-Clipping) */
.text-balance-header { font-size: 0.8rem !important; }
.text-balance-large { font-size: 1.85rem !important; }
.text-balance-medium { font-size: 1.25rem !important; }
.text-balance-ultra { font-size: 2.5rem !important; }



/* ---------------------------------------------------------
 * 🎰 ODOMETER LUXURY ANIMATION (Rolling Digits)
 * --------------------------------------------------------- */
.odometer-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
    height: 1.25em;
    line-height: normal;
    text-align: center;
}

.odometer-digit {
    display: inline-block;
    height: 1.25em;
    width: 0.72em; /* M-SENIOR: Mais compacto para evitar clipping */
    overflow: hidden;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    letter-spacing: -0.02em; /* Melhorar densidade visual */
}

.odometer-digit[data-is-one="true"] { width: 0.55em; }

.odometer-column {
    display: flex;
    flex-direction: column;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    will-change: transform;
    width: 100%;
}

.odometer-column span {
    display: block;
    height: 1.25em;
    line-height: 1.25em;
    flex-shrink: 0;
}

.odometer-static {
    display: inline-block;
    padding: 0 0.05em;
    vertical-align: middle;
}

/* ---------------------------------------------------------
 * 🧪 SKELETON LOADING ENGINE
 * --------------------------------------------------------- */
.pp-skeleton {
    background: linear-gradient(90deg, #121212 25%, #1d1d1d 50%, #121212 75%);
    background-size: 200% 100%;
    animation: pp-skeleton-wave 1.5s infinite linear;
    border-radius: 6px;
    height: 1em;
    width: 80%;
    display: inline-block;
}

@keyframes pp-skeleton-wave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------------------------------------------------------
 * 💎 PREMIUM DUAL CURRENCY (BRL/USDT) 
 * --------------------------------------------------------- */
.usdt-dual-render {
    display: block !important;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.15);
    animation: pp-fade-in 0.5s ease-out;
    margin-top: 2px;
}


