/* 
   Lumen Stream CSS Style
   Premium Dark & Golden Design
*/

:root {
    --bg-main: #0a0a0c;
    --bg-card: #141418;
    --bg-header: #0f0f12;
    --gold: #dfb021;
    --gold-hover: #cfa117;
    --gold-gradient: linear-gradient(135deg, #f3cd45 0%, #c49615 100%);
    --text-main: #ffffff;
    --text-sub: #9e9ea7;
    --text-gold: #dfb021;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-color: #222228;
    --red: #ff3344;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* LAYOUT PRINCIPAL */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 72px; /* Espaço para a barra de navegação inferior */
}

/* CABEÇALHO */
.main-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 30px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    display: flex;
    gap: 4px;
}

.logo-lumen {
    color: var(--text-main);
}

.logo-stream {
    color: var(--gold);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BOTÃO VIP NO CABEÇALHO */
.vip-badge {
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 750;
    font-size: 11px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.5px;
}

/* Estado: Não é VIP (Design elegante e vazado para atalho) */
.vip-badge.not-vip {
    background-color: rgba(223, 176, 33, 0.08);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 2px 8px rgba(223, 176, 33, 0.1);
}

.vip-badge.not-vip:active {
    transform: scale(0.95);
    background-color: rgba(223, 176, 33, 0.2);
}

.vip-badge.not-vip .vip-icon {
    stroke: var(--gold);
}

/* Estado: É VIP (Dourado pulsante metálico de luxo) */
.vip-badge.is-vip {
    background: var(--gold-gradient);
    color: #000000;
    box-shadow: 0 0 12px rgba(223, 176, 33, 0.5);
    animation: goldGlowPulse 2s infinite alternate;
}

.vip-badge.is-vip .vip-icon {
    stroke: #000000;
}

.vip-badge.is-vip:active {
    transform: scale(0.95);
}

/* Estado: Acesso Full (Púrpura Neon Metálico de Prestígio) */
.vip-badge.is-full {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: fullGlowPulse 2.5s infinite alternate;
}

.vip-badge.is-full .vip-icon {
    stroke: #ffffff;
}

.vip-badge.is-full:active {
    transform: scale(0.95);
}

@keyframes fullGlowPulse {
    0% {
        box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
    }
    100% {
        box-shadow: 0 0 18px rgba(124, 58, 237, 0.8);
    }
}

.vip-icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.5px;
}

@keyframes goldGlowPulse {
    0% {
        box-shadow: 0 0 8px rgba(223, 176, 33, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 16px rgba(223, 176, 33, 0.7);
        transform: scale(1.03);
    }
}

/* CONTEÚDO DAS ABAS */
.content-area {
    flex: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* BANNER DESTAQUE */
.featured-banner {
    position: relative;
    height: 380px;
    border-bottom: 2px solid rgba(223, 176, 33, 0.1);
    overflow: hidden;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
    padding: 24px 16px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.featured-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.banner-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -4px;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.2) 0%, rgba(10, 10, 12, 0.6) 50%, rgba(10, 10, 12, 1) 100%);
}

.banner-info {
    position: relative;
    z-index: 10;
    width: 100%;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.banner-desc {
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.banner-actions {
    display: flex;
    gap: 12px;
}

/* FILTROS */
.filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 12px;
}

.filter-pill-container {
    display: flex;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex-grow: 1;
}

.filter-pill-container::-webkit-scrollbar {
    display: none;
}

.mode-selector-container {
    flex-shrink: 0;
}

.mode-select-dropdown {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}

.mode-select-dropdown:focus {
    border-color: var(--text-main);
}

.filter-pill {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-sub);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-pill.active {
    background-color: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

/* BUSCA */
.search-container {
    padding: 0 16px 16px 16px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 28px;
    top: 13px;
    color: var(--text-sub);
    width: 18px;
    height: 18px;
}

.search-input-container {
    display: flex;
    align-items: center;
}

#search-input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 16px 12px 42px;
    border-radius: 25px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

#search-input:focus {
    border-color: var(--gold);
}

/* SEÇÕES DO CATÁLOGO */
.section-container {
    margin-bottom: 24px;
    padding-left: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.carousel-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-list {
    display: flex;
    gap: 12px;
    padding-right: 16px;
}

/* CARD DO DORAMA */
.dorama-card {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.poster-container {
    position: relative;
    width: 120px;
    height: 170px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #222;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.poster-container:active {
    transform: scale(0.96);
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-label {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.poster-label.dorama-category {
    background-color: var(--gold);
    color: black;
}

.poster-label.temporal-badge {
    left: auto;
    right: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.poster-label.temporal-badge.lancamento {
    background-color: #ff3b30;
    color: white;
}

.poster-label.temporal-badge.novo {
    background-color: #34c759;
    color: white;
}

.audio-badge {
    display: none !important;
}

.audio-badge.dublado {
    background-color: var(--gold);
    color: black;
}

.audio-badge.legendado {
    background-color: #0077ff;
    color: white;
}

.dorama-title {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.dorama-price {
    font-size: 11px;
    color: var(--gold);
    font-weight: 700;
    margin-top: 4px;
}

/* NAVEGAÇÃO INFERIOR */
.bottom-nav {
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-sub);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex: 1;
    height: 100%;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-item.active {
    color: var(--gold);
}

.cart-badge-count {
    position: absolute;
    top: 6px;
    right: 30%;
    background-color: var(--red);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* BOTÕES E ELEMENTOS GERAIS */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-main);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000000;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-top: 8px;
    display: inline-block;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-active {
    background-color: rgba(0, 153, 68, 0.2);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-inactive {
    background-color: rgba(255, 51, 68, 0.2);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.badge-full {
    background-color: rgba(124, 58, 237, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}


/* TELAS DE ESTADO VAZIO / ERRO */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.empty-icon {
    width: 48px;
    height: 48px;
    color: var(--text-sub);
    margin-bottom: 16px;
    stroke-width: 1.5px;
}

.empty-msg {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-sub {
    color: var(--text-sub);
    font-size: 13px;
    margin-bottom: 24px;
}

/* LISTAS EM GRADE */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    padding: 16px;
}

.grid-layout .dorama-card {
    flex: unset;
    width: 100%;
}

.grid-layout .poster-container {
    width: 100%;
    height: unset;
    aspect-ratio: 120 / 170;
}

.page-title-container {
    padding: 20px 16px 8px 16px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
}

/* TELA DE CARRINHO */
.cart-container {
    padding: 16px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cart-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-poster {
    width: 50px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--gold);
    font-size: 12px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--red) !important;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove svg {
    stroke: var(--red) !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
}

.cart-summary {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.summary-price {
    color: var(--gold);
    font-size: 20px;
}

/* TELA DE PERFIL */
.profile-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    background: var(--gold-gradient);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}

img.profile-avatar {
    background: none;
    object-fit: cover;
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 10px rgba(223, 176, 33, 0.2);
}

.profile-avatar i {
    width: 24px;
    height: 24px;
}

.profile-info h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.profile-id-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.profile-id {
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
}

.btn-copy-id {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--gold) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px !important;
    margin: 0 !important;
    transition: transform 0.2s ease;
}

.btn-copy-id:hover {
    transform: scale(1.15);
}

.btn-copy-id i,
.btn-copy-id svg {
    width: 13px !important;
    height: 13px !important;
    stroke: var(--gold) !important;
    stroke-width: 2.2px !important;
    fill: none !important;
    transition: stroke 0.2s ease, transform 0.2s ease;
}

.btn-copy-id.copied i,
.btn-copy-id.copied svg {
    stroke: #22c55e !important;
    transform: scale(1.25) !important;
}

.profile-info p {
    color: var(--text-sub);
    font-size: 12px;
    margin-top: 2px;
}

.vip-status-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

.vip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.vip-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
}

.vip-title i {
    width: 18px;
    height: 18px;
}

.vip-body p {
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* MODAIS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: flex-end;
    animation: fadeInModal 0.25s ease;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-card);
    border-top: 2px solid var(--border-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 24px 16px;
    animation: slideUp 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-close {
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.modal-close i {
    width: 18px;
    height: 18px;
}

/* DETALHE DO DORAMA MODAL */
.modal-content-detail {
    display: flex;
    flex-direction: column;
    max-height: 97vh;
    overflow: hidden;
    padding: 0 !important;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.modal-scroll-area {
    overflow-y: auto;
    flex: 1;
    padding: 24px 16px 12px 16px;
}

.modal-fixed-footer {
    padding: 16px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.35);
}

.modal-header-img {
    height: 340px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #0b0b0d;
    margin: -24px -16px 16px -16px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.header-img-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(20, 20, 24, 0) 0%, rgba(20, 20, 24, 0.4) 100%);
}

.detail-label-pill {
    background-color: #0077ff;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.detail-category {
    color: var(--text-sub);
    font-weight: 600;
    font-size: 13px;
}

.detail-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}

.detail-description-section {
    margin-bottom: 24px;
}

.detail-description-section h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.detail-description-section p {
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.5;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* MODAL PLANOS VIP */
.modal-vip-header {
    text-align: center;
    margin-bottom: 20px;
}

.gold-gem {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(223, 176, 33, 0.5));
}

.modal-vip-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.modal-vip-header p {
    color: var(--text-sub);
    font-size: 12px;
    max-width: 80%;
    margin: 0 auto;
}

.vip-plans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vip-plan-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.vip-plan-card:active {
    transform: scale(0.98);
}

.vip-plan-card.highlighted {
    border-color: var(--gold);
    background-color: rgba(223, 176, 33, 0.05);
}

.popular-tag {
    position: absolute;
    top: -9px;
    right: 16px;
    background: var(--gold-gradient);
    color: black;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.plan-details h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
}

.plan-details p {
    color: var(--text-sub);
    font-size: 11px;
    margin-top: 2px;
}

.plan-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold);
}

/* MODAL PAGAMENTO (PIX) */
.modal-payment-header {
    text-align: center;
    margin-bottom: 16px;
}

.modal-payment-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
}

.modal-payment-header p {
    color: var(--text-sub);
    font-size: 12px;
}

.payment-value {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 12px;
}

.payment-value span {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-heading);
}

.qr-code-container {
    background-color: white;
    width: 180px;
    height: 180px;
    padding: 10px;
    border-radius: 12px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.qr-code-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-help {
    color: var(--text-sub);
    font-size: 12px;
    max-width: 85%;
    margin: 0 auto 16px auto;
}

.copia-cola-container {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

#payment-copia-cola-input {
    flex: 1;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-sub);
    font-size: 12px;
    outline: none;
}

.payment-status-checker {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.payment-status-checker p {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}

.spinner {
    border: 2.5px solid rgba(223, 176, 33, 0.1);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border-left-color: var(--gold);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-center {
    text-align: center;
}

/* CAMPOS DE DADOS DE CONTATO NO PERFIL */
.profile-card-contact {
    margin-top: 16px;
}

.contact-fields-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-field {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.contact-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-field:first-child {
    padding-top: 4px;
}

.contact-field:active {
    opacity: 0.8;
}

.profile-card-contact .field-label {
    font-size: 14px !important;
    color: var(--gold) !important; /* E-mail: / Telefone: em amarelo */
    font-weight: 700 !important;
}

.profile-card-contact .field-value {
    font-size: 14px !important;
    color: var(--text-main) !important; /* Valor em branco */
    font-weight: 500 !important;
}

.profile-card-contact .btn-edit-field {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--gold) !important; /* Lápis em amarelo */
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 4px !important;
    margin: 0 !important;
    transition: transform 0.2s ease;
}

.profile-card-contact .btn-edit-field:hover {
    transform: scale(1.1);
}

.profile-card-contact .btn-edit-field i,
.profile-card-contact .btn-edit-field svg {
    width: 14px !important;
    height: 14px !important;
    stroke: var(--gold) !important; /* Ícone amarelo */
    stroke-width: 2.2px !important;
    fill: none !important;
}

/* --- ESTILOS DO MODAL DE UPSELL VIP --- */
.upsell-plans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.upsell-plan-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.upsell-plan-card.highlighted {
    border-color: rgba(223, 176, 33, 0.2) !important;
    background-color: rgba(223, 176, 33, 0.02) !important;
}

.upsell-plan-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.upsell-plan-card.selected {
    border-color: var(--gold) !important;
    border-width: 2px !important;
    background-color: rgba(223, 176, 33, 0.08) !important;
    box-shadow: 0 0 12px rgba(223, 176, 33, 0.25) !important;
}

.upsell-plan-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--gold);
}

.upsell-plan-details {
    flex: 1;
    padding-right: 12px;
}

.upsell-plan-details h3 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
    font-family: var(--font-heading);
}

.upsell-plan-desc {
    font-size: 10.5px;
    color: var(--text-sub);
    margin: 0 0 4px 0;
}

.upsell-plan-promo {
    font-size: 11px;
    font-weight: 600;
    margin: 0;
    color: #4cd964; /* Verde suave para economia */
}

/* Quando é um upgrade com acréscimo de valor */
.upsell-plan-promo.upgrade {
    color: var(--gold); /* Amarelo gold para complementação */
}

.upsell-plan-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    color: var(--gold);
    white-space: nowrap;
}

.upsell-actions {
    margin-top: 10px;
}

#btn-confirm-upsell.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* SPINNER DE LOADING GLOBAL */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(223, 176, 33, 0.1);
    border-left-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 8px rgba(223, 176, 33, 0.5));
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- PROVA SOCIAL DINÂMICA --- */
.social-proof-toast {
    position: fixed;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    width: 90%;
    max-width: 380px;
    transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-proof-toast.active {
    top: 16px;
}

.social-proof-content {
    background: rgba(16, 12, 30, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65), 0 0 14px rgba(168, 85, 247, 0.35);
}

.social-proof-icon {
    width: 18px;
    height: 18px;
    stroke: #c084fc !important;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.9));
    fill: none !important;
}

#social-proof-message {
    color: var(--text-main);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    font-family: var(--font-body);
}

#social-proof-message strong {
    color: #e9d5ff; /* Roxo/lilás neon super aceso */
    font-weight: 700;
    text-shadow: 0 0 4px rgba(168, 85, 247, 0.4);
}

/* ESTRUTURA PARA RESPONSIVIDADE E DESTAQUE BANNER (DESKTOP SPLIT) */
.banner-backdrop {
    display: none;
}
.banner-poster-container {
    display: none;
}

@media (min-width: 768px) {
    .featured-banner {
        height: 480px; /* Aumenta a altura no desktop para dar mais imponência */
        background-color: #141418 !important; /* Cor de fundo rebaixada (cinza escuro) */
    }
    
    .featured-slide {
        background-image: none !important; /* Remove a imagem de fundo esticada */
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 40px 8% !important;
        gap: 40px;
    }
    
    .banner-backdrop {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center center;
        filter: blur(45px);
        opacity: 0.38 !important; /* Aumentado para 0.38 para dar mais presença e cor rebaixada do dorama */
        z-index: 1;
        transform: scale(1.15); /* Elimina vinheta branca do blur nas bordas */
    }
    
    .banner-gradient {
        /* Gradiente horizontal cinza escuro rebaixado para misturar as cores e manter legibilidade */
        background: linear-gradient(90deg, rgba(20, 20, 24, 0.94) 0%, rgba(20, 20, 24, 0.8) 50%, rgba(20, 20, 24, 0.35) 100%) !important;
        z-index: 5;
    }
    
    .banner-info {
        max-width: 55% !important;
        margin-bottom: 0 !important;
        text-align: left;
    }
    
    .banner-title {
        font-size: 46px !important; /* Título bem grande e imersivo no desktop */
        margin-bottom: 16px !important;
        line-height: 1.15;
    }
    
    .banner-desc {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
        max-width: 100% !important;
        -webkit-line-clamp: 4 !important; /* Mostra mais texto no desktop */
    }
    
    .banner-poster-container {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 35% !important;
        max-width: 250px !important;
        height: auto;
        aspect-ratio: 150 / 220;
        z-index: 10;
        animation: posterFadeIn 0.8s ease-out;
    }
    
    .banner-poster-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(223, 176, 33, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .banner-poster-img:hover {
        transform: scale(1.04);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(223, 176, 33, 0.25);
    }
}

@keyframes posterFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* --- ESTILOS DE MINHA LISTA / FAVORITOS --- */

/* Botão Carregar da Lista no topo do Carrinho */
.btn-import-list {
    background: rgba(192, 132, 252, 0.08);
    border: 1.5px solid #c084fc;
    color: #c084fc;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 750;
    font-size: 11px;
    font-family: var(--font-heading);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(192, 132, 252, 0.1);
}

.btn-import-list:active {
    transform: scale(0.95);
    background: rgba(192, 132, 252, 0.2);
}

.btn-import-list i {
    width: 14px;
    height: 14px;
}

/* Badge personalizado para Minha Lista */
.badge-my-list {
    background-color: #c084fc;
    color: #000000;
    box-shadow: 0 2px 5px rgba(192, 132, 252, 0.25);
    transition: all 0.2s ease;
}

/* Botão de favoritar no modal de detalhes do dorama */
.btn-favorite {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-color);
    color: var(--text-sub);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-favorite:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(192, 132, 252, 0.5);
    color: #c084fc;
}

.btn-favorite:active {
    transform: scale(0.92);
}

.btn-favorite i {
    width: 20px;
    height: 20px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-favorite:active i {
    transform: scale(1.3);
}

.btn-favorite i.favoritado {
    fill: var(--red);
    stroke: var(--red);
    filter: drop-shadow(0 0 4px rgba(255, 51, 68, 0.4));
}

/* --- BANNER DE VISITANTE & CARD TELEGRAM --- */

/* Banner de Visitante no topo */
.visitor-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(43, 35, 17, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 16px 4px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideDownFade 0.5s ease-out, goldGlow 3s infinite alternate;
    z-index: 100;
}

.visitor-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.visitor-banner-icon {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
    flex-shrink: 0;
}

.visitor-banner-text {
    display: flex;
    flex-direction: column;
}

.visitor-banner-text strong {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--gold);
    font-weight: 700;
}

.visitor-banner-text span {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 2px;
    line-height: 1.3;
}

.btn-visitor-link {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.btn-visitor-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.btn-visitor-link i {
    width: 14px;
    height: 14px;
}

@keyframes goldGlow {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 8px rgba(212, 175, 55, 0.2);
    }
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .visitor-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
        margin: 12px 12px 4px 12px;
    }
    .visitor-banner-content {
        flex-direction: column;
        gap: 8px;
    }
    .btn-visitor-link {
        justify-content: center;
    }
}

/* Carrossel no modal de detalhes */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev-btn {
    left: 12px;
}

.carousel-btn.next-btn {
    right: 12px;
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 15;
}

.carousel-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-indicator-dot.active {
    background-color: var(--gold);
    transform: scale(1.2);
}

/* TOOLTIP PREMIUM CUSTOMIZADO */
.premium-tooltip {
    position: absolute;
    background-color: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    pointer-events: none;
    max-width: 250px;
    text-align: center;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
}

.premium-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}
