* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #0a0a0a !important;
}

body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

/* =========================================================================
   HERO: BANNER FULL-WIDTH
   ========================================================================= */
.profile-edge-to-edge {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-banner-full {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #111;
    background-size: cover;
    background-position: center 50%;
    z-index: 0;
}

.banner-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.1) 0%, rgba(5,5,5,0.4) 60%, rgba(5,5,5,0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.banner-controls {
    position: absolute !important;
    top: auto !important;
    bottom: 200px !important;
    right: 40px !important;
    z-index: 9999 !important;
}

.btn-mini-edit {
    background: rgba(20, 20, 20, 0.8) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: 0.2s;
    backdrop-filter: blur(5px);
}
.btn-mini-edit:hover { background: var(--color-primary) !important; border-color: var(--color-primary); color: #000; }

.lock-icon-overlay {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
}

.profile-bottom-bar {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 0 20px 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.profile-header-flex {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    position: relative;
}

.profile-avatar-wrapper {
    margin-top: -90px;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

.p-avatar-box-sidebar {
    width: 140px;
    height: 140px;
    position: relative;
    overflow: visible;
}

.p-avatar-box-sidebar img:first-child {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.1);
    background: #111;
    position: relative;
    z-index: 1;
}

.frame-overlay-sidebar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--frame-size, 135%);
    height: auto;
    transform: translate(var(--frame-pos-x, -50%), var(--frame-pos-y, -52%));
    z-index: 5;
    pointer-events: none;
}

.pf-avatar-edit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.2s;
}
.profile-avatar-wrapper:hover .pf-avatar-edit { opacity: 1; }

.profile-user-info {
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.anim-text {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.xp-mini-container { width: 100%; min-width: 250px; }
.xp-info-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: #bbb; margin-bottom: 6px; }
.lvl-badge { font-weight: 700; color: #fff; }
.xp-bar-track { height: 6px; background: rgba(255,255,255,0.15); border-radius: 10px; overflow: hidden; }
.xp-bar-fill { height: 100%; background: var(--color-primary); border-radius: 10px; box-shadow: 0 0 10px var(--color-primary); }

.profile-quick-stats {
    margin-left: auto;
    padding-bottom: 5px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.vip-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.vip-stat-box:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}
.vip-stat-box i {
    color: #FFD700;
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}
.vip-text-container { display: flex; flex-direction: column; justify-content: center; }
.vip-label {
    font-size: 0.65rem;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.vip-days {
    font-size: 0.9rem;
    font-weight: 800;
    color: #FFD700;
}

.mini-stat-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    transition: 0.3s;
}
.mini-stat-box i { color: var(--color-primary); font-size: 1.2rem; }
.mini-stat-box:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }
.mini-stat-box.highlight { border-color: rgba(240,132,24,0.3); }

/* =========================================================================
   NAVEGAÇÃO HORIZONTAL E MAIN
   ========================================================================= */
.profile-main-content {
    flex: 1 0 auto !important;
    padding-top: 20px;
    padding-bottom: 60px !important;
}

.series-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
    z-index: 10;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.series-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    background: transparent;
    border: none;
    color: #777;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.tab-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.tab-btn.active { color: var(--color-primary); background: rgba(255,255,255,0.03); }

.ms-auto { margin-left: auto; }
.danger-link { color: #ff4444 !important; }
.danger-link:hover { background: rgba(255,68,68,0.1) !important; color: #ff4444 !important; }

.tab-pane { display: none; animation: fadeInSimple 0.4s ease; }
.tab-pane.active { display: block; }
@keyframes fadeInSimple { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.premium-content {
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 80vh;
}

.premium-promo-card {
    padding: 20px !important;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #141414;
    border: 1px solid rgba(240,132,24,0.2);
    border-radius: 16px;
    margin-bottom: 25px;
}
.promo-icon { font-size: 2rem; color: var(--color-primary); }
.promo-text strong { display: block; color: #fff; font-size: 1.1rem; }
.promo-text span { font-size: 0.8rem; color: #888; }
.btn-mega-premium {
    margin-left: auto;
    padding: 12px 20px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseGold 2s infinite;
    transition: 0.3s;
    white-space: nowrap;
}
.btn-mega-premium:hover { background: #fff; color: #000; animation: none; }
@keyframes pulseGold {
    0%   { box-shadow: 0 0 0 0 rgba(240,132,24,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(240,132,24,0); }
    100% { box-shadow: 0 0 0 0 rgba(240,132,24,0); }
}

/* =========================================================================
   SECTION HEADS
   ========================================================================= */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
}

.section-head h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 12px;
}

.section-head h3 i {
    color: var(--color-primary);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(240,132,24,0.5));
    transition: 0.3s ease;
}

.section-head h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
    opacity: 0.8;
}

.section-head:hover h3 i { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(240,132,24,0.7)); }

.mt-40 { margin-top: 40px; }

.btn-link-gold {
    background: transparent;
    border: 1px solid rgba(240,132,24,0.4);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    white-space: nowrap;
}
.btn-link-gold:hover { background: var(--color-primary); color: #000; }

/* =========================================================================
   CONTINUAR LENDO
   ========================================================================= */
.netflix-scroll-wrapper { width: 100%; overflow: hidden; }

.netflix-grid-fixed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.netflix-card {
    background: linear-gradient(145deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.netflix-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.15); }

.nc-cover-wrapper {
    width: 85px;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.nc-cover-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.netflix-card:hover .nc-cover-wrapper img { transform: scale(1.08); }

.nc-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nc-meta { font-size: 0.65rem; color: var(--color-primary); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.nc-title { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nc-progress-track {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    position: relative;
    margin-top: 8px;
}
.nc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
    border-radius: 4px;
    box-shadow: 0 0 8px var(--color-primary);
    position: relative;
}
.nc-progress-fill::after {
    content: '';
    position: absolute;
    right: -2px; top: -2px;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff, 0 0 10px var(--color-primary);
}

.nc-action {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #000;
    border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s;
    text-decoration: none;
}
.nc-action:hover { transform: scale(1.1); filter: brightness(1.2); }

@media (max-width: 768px) {
    .netflix-grid-fixed { grid-template-columns: 1fr; }
}

/* =========================================================================
   BIBLIOTECA / FAVORITOS
   ========================================================================= */
.library-preview-row,
.pf-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 15px;
}

.lib-card-sleek {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.lib-card-sleek:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}
.lib-card-sleek img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; opacity: 0.85; }
.lib-card-sleek:hover img { transform: scale(1.08); opacity: 1; }

.lib-sleek-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 35%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    z-index: 2;
    pointer-events: none;
}
.lib-sleek-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-remove-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: 0.2s;
    opacity: 0;
}
.lib-card-sleek:hover .btn-remove-fav { opacity: 1; }
.btn-remove-fav:hover { background: #ff4444; border-color: #ff4444; transform: scale(1.1); }

/* Busca */
.search-premium-wrapper {
    position: relative;
    width: 260px;
    z-index: 5;
}
.search-premium-wrapper input {
    width: 100%;
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 10px 20px 10px 40px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}
.search-premium-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(240,132,24,0.2);
    width: 300px;
}
.search-premium-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.3s;
}
.search-premium-wrapper:focus-within i { color: var(--color-primary); }
/* =========================================================================
   HISTÓRICO
   ========================================================================= */
.history-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #141414;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.history-search {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    width: 100%;
}

.pf-history-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.hist-card-premium {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 15px;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 15px;
    align-items: center;
    transition: 0.3s;
}
.hist-card-premium:hover { border-color: rgba(255,255,255,0.15); background: #1a1a1a; }

.h-cover-wrapper {
    width: 70px;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    cursor: pointer;
}
.h-cover-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.hist-card-premium:hover .h-cover-wrapper img { transform: scale(1.08); }s

.h-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.h-title { font-size: 0.95rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-meta { font-size: 0.75rem; color: #666; }
.h-chapter { font-size: 0.8rem; color: #aaa; }

.h-progress-track { height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.h-progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-primary)); border-radius: 4px; box-shadow: 0 0 8px var(--color-primary); }

.h-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.hc-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #aaa;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-decoration: none;
}
.hc-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #000; }
.hc-btn.danger:hover { background: #ff4444; border-color: #ff4444; color: #fff; }

.btn-load-more {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: #141414;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #888;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}
.btn-load-more:hover { background: #1a1a1a; color: #fff; border-color: rgba(255,255,255,0.15); }

/* =========================================================================
   PERSONALIZAR
   ========================================================================= */
.config-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.config-col {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    min-width: 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-title i { color: var(--color-primary); }

.badge-vip { background: linear-gradient(45deg,#FFD700,#FFA500); color: #000; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; margin-left: 8px; }

.visual-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    min-width: 0;
}

.visual-box label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-input {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: 0.2s;
}
.premium-input:focus { border-color: var(--color-primary); }

.premium-select {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: 0.2s;
}
.premium-select:focus { border-color: var(--color-primary); }

.btn-upload-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 18px;
    color: #ccc;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
}
.btn-upload-custom:hover { background: #222; color: #fff; border-color: rgba(255,255,255,0.2); }
.btn-upload-custom.disabled { opacity: 0.4; pointer-events: none; }

/* Assinatura dentro do config */
.subscription-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid rgba(240,132,24,0.2);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.sub-header { display: flex; align-items: center; gap: 15px; }
.sub-icon {
    width: 45px; height: 45px;
    background: rgba(240,132,24,0.1);
    border: 1px solid rgba(240,132,24,0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary); font-size: 1.3rem;
}
.sub-info h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 3px 0; }
.sub-info span { font-size: 0.8rem; color: #888; }
.sub-bar-track { height: 5px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.sub-bar-fill { height: 100%; background: var(--color-primary); border-radius: 10px; }
.sub-footer { display: flex; justify-content: space-between; align-items: center; }
.sub-footer span { font-size: 0.8rem; color: #888; }
.btn-renew {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(240,132,24,0.4);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}
.btn-renew:hover { background: var(--color-primary); color: #000; }

/* Preview do nome */
.name-preview-box {
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tema */
.theme-selector { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.theme-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.2s;
    flex-shrink: 0;
}
.theme-btn:hover, .theme-btn.active { border-color: #fff; transform: scale(1.15); }
.theme-input-native {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
    overflow: hidden;
}
.theme-input-native::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 50%;
}
.theme-input-native::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}
.theme-input-native::-moz-color-swatch {
    border: none;
    border-radius: 50%;
}

/* Moldura */
.frame-scroll-wrapper { overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.frame-scroll-wrapper::-webkit-scrollbar { display: none; }
.pf-frames-container { display: flex; gap: 12px; width: max-content; }
.frame-opt {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer; opacity: 0.6; transition: 0.2s; width: 70px;
}
.frame-opt:hover, .frame-opt.active { opacity: 1; }
.frame-opt.active .f-preview { border-color: var(--color-primary); box-shadow: 0 0 10px rgba(240,132,24,0.4); }
.f-preview {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: #1a1a1a;
}
.f-preview img { width: 100%; height: 100%; object-fit: cover; }
.frame-opt span { font-size: 0.7rem; color: #888; text-align: center; }

/* GIF */
.gif-upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.btn-gif-upload {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-gif-upload:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-gif-remove {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,50,50,0.15);
    border: 1px solid rgba(255,50,50,0.3);
    color: #ff4757;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}
.btn-gif-remove:hover {
    background: rgba(255,50,50,0.3);
}

.rc-card-preview {
    background: #111; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 15px;
    display: flex; align-items: center; gap: 12px;
    position: relative; overflow: hidden; min-height: 70px;
}
.rc-bg-layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.3; }
.rc-content-layer { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.rc-mini-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.rc-text-lines { display: flex; flex-direction: column; gap: 4px; }
.rc-name { font-size: 0.85rem; font-weight: 700; color: #fff; }
.rc-msg { font-size: 0.8rem; color: #888; }

/* Locked feature */
.locked-feature { position: relative; }
.locked-overlay {
    position: absolute; inset: 0;
    background: rgba(10,10,10,0.85);
    border-radius: 10px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; z-index: 5;
    color: #666; font-size: 1.5rem;
}
.locked-overlay span { font-size: 0.85rem; color: #888; font-weight: 600; }
.btn-unlock-gold {
    padding: 6px 14px;
    background: var(--color-primary);
    color: #000; font-weight: 800;
    border-radius: 6px; font-size: 0.8rem;
    text-decoration: none; transition: 0.2s;
}
.btn-unlock-gold:hover { filter: brightness(1.2); }
.pf-premium-badge {
    background: var(--color-primary); color: #000;
    font-size: 0.65rem; font-weight: 800;
    padding: 2px 8px; border-radius: 20px;
}

/* Botões de ação */
.config-actions-row { display: flex; gap: 12px; margin-top: 10px; }
.btn-save {
    flex: 1; padding: 14px;
    background: var(--color-primary);
    border: none; border-radius: 10px;
    color: #000; font-family: 'Poppins', sans-serif;
    font-size: 1rem; font-weight: 800;
    cursor: pointer; transition: 0.2s;
}
.btn-save:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-logout-danger {
    flex: 1; padding: 14px;
    background: transparent;
    border: 1px solid rgba(255,68,68,0.4);
    border-radius: 10px; color: #ff4444;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem; font-weight: 800;
    cursor: pointer; transition: 0.2s;
}
.btn-logout-danger:hover { background: #ff4444; color: #fff; }

/* Custom color picker */
.custom-color-maker { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.custom-color-maker small { font-size: 0.75rem; color: #888; }
.pickers-row { display: flex; gap: 15px; flex-wrap: wrap; }
.pickers-row input[type="color"] {
    width: 40px; height: 40px;
    border-radius: 50%; border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer; padding: 0; background: transparent;
}

/* Aba assinatura */
.pf-sub-note { color: #666; font-size: 0.85rem; padding: 15px 0 0; }

/* =========================================================================
   CROPPER MODAL
   ========================================================================= */
.pf-cropper-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-cropper-modal.hidden { display: none !important; }

.pf-cropper-content {
    background: #161616;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}
.pf-cropper-content h2 { color: #fff; margin-bottom: 8px; }
.pf-cropper-content p { color: #888; font-size: 0.9rem; margin-bottom: 20px; }

.pf-cropper-wrapper {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}
.pf-cropper-wrapper img { max-width: 100%; display: block; }

.pf-cropper-actions { display: flex; gap: 15px; justify-content: center; }
.pf-btn-cancel {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.pf-btn-cancel:hover { background: #333; color: #fff; }
.pf-btn-save {
    padding: 12px 25px;
    background: var(--color-primary);
    border: none;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}
.pf-btn-save:hover { filter: brightness(1.2); }

/* =========================================================================
   RESPONSIVO MOBILE
   ========================================================================= */
@media (max-width: 768px) {

    /* Hero */
    .profile-edge-to-edge { min-height: 280px; padding-top: 180px; }
    .banner-controls { top: 120px !important; bottom: auto !important; right: 15px !important; z-index: 9999 !important; }
    .profile-header-flex { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
    .profile-avatar-wrapper { margin-top: -60px; }
    .p-avatar-box-sidebar { width: 115px; height: 115px; }
    .anim-text { font-size: 1.6rem; }
    .xp-mini-container { width: 100%; min-width: 100%; max-width: 300px; margin: 0 auto; }

    /* Stats */
    .profile-quick-stats { margin: 15px 0 0 0; width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; }
    .vip-stat-box { width: 100%; justify-content: center; }
    .mini-stat-box { flex: 1; min-width: 30%; justify-content: center; font-size: 1rem; padding: 10px 5px; }

    /* Nav */
    .series-tabs { gap: 8px; padding-bottom: 10px; margin-bottom: 20px; }
    .tab-btn { padding: 8px 14px; font-size: 0.8rem; }

    /* Section heads */
    .section-head { flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-link-gold { width: 100%; justify-content: center; }
    .search-premium-wrapper, .search-premium-wrapper input { width: 100% !important; }

    /* Continuar lendo */
    .netflix-grid-fixed { grid-template-columns: 1fr; }
    .netflix-card { padding: 12px; gap: 15px; }
    .nc-cover-wrapper { width: 75px; }

    /* Biblioteca / Favoritos */
    .library-preview-row,
    .pf-favorites-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* Histórico */
    .pf-history-list { grid-template-columns: minmax(0, 1fr); width: 100%; }
    .hist-card-premium { padding: 12px; gap: 10px; width: 100%; box-sizing: border-box; }

    /* Personalizar */
    .config-container { grid-template-columns: 1fr; gap: 20px; }
    .config-col { padding: 20px 15px; gap: 15px; }
    .name-preview-box { padding: 15px; margin-bottom: 10px; }
    .theme-selector { justify-content: center; gap: 15px; padding: 10px 0; }
    .theme-btn, .theme-input-native { width: 45px; height: 45px; }
    .frame-scroll-wrapper { margin: 0 -15px; padding: 5px 15px 15px 15px; -webkit-overflow-scrolling: touch; }
    .frame-opt { width: 60px; }
    .pickers-row { justify-content: center; flex-wrap: wrap; gap: 20px; }
    .rc-card-preview { flex-direction: column; height: auto; text-align: center; padding: 20px 15px; gap: 10px; }
    .rc-mini-avatar { margin-bottom: 5px; width: 55px; height: 55px; }
    .config-actions-row { flex-direction: column; margin-top: 10px; }
    .btn-save { padding: 16px; font-size: 1.1rem; width: 100%; text-align: center; }
    .btn-logout-danger { width: 100%; text-align: center; }

    /* Promo card */
    .premium-promo-card { flex-direction: column; text-align: center; }
    .btn-mega-premium { margin-left: 0; width: 100%; }
}

@media (max-width: 1024px) {
    .config-container { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 480px) {
    .library-preview-row,
    .pf-favorites-grid { grid-template-columns: repeat(2, 1fr); }
    .config-col { padding: 15px; }
    .btn-save, .btn-logout-danger { font-size: 0.9rem; padding: 12px; }
}

/* =========================================================================
   EFEITOS DE NOME
   ========================================================================= */
.name-preview-box { background: #000; padding: 20px; text-align: center; border-radius: 8px; margin-bottom: 15px; border: 1px solid #222; }

@keyframes textShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes animePowerFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.anim-text {
    font-weight: 800;
    color: #fff;
    transition: 0.3s;
    position: relative;
    display: inline-block;
}

.effect-gold, .effect-neon, .effect-fire, .effect-ice, .effect-rainbow, .effect-custom {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    text-shadow: none !important;
}

.effect-gold {
    background-image: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #bf953f);
    animation: textShine 3s ease infinite;
}
.effect-neon {
    background-image: linear-gradient(135deg, #ff00cc, #3333ff, #00ffcc, #ff00cc);
    animation: textShine 3s ease infinite;
    filter: drop-shadow(0 0 5px rgba(0,255,204,0.8));
}
.effect-fire {
    background-image: linear-gradient(135deg, #ff0000, #ffae00, #ff4800, #ff0000);
    animation: textShine 3s ease infinite;
    filter: drop-shadow(0 0 8px rgba(255,69,0,0.8));
}
.effect-ice {
    background-image: linear-gradient(135deg, #00d2ff, #3a7bd5, #fff, #00d2ff);
    animation: textShine 3s ease infinite;
    filter: drop-shadow(0 0 5px rgba(0,210,255,0.8));
}
.effect-rainbow {
    background-image: linear-gradient(110deg, #ff0000, #00ff00, #0000ff, #ff0000);
    animation: animePowerFlow 2s linear infinite;
}
.effect-custom {
    background-image: linear-gradient(110deg, var(--c1, #fff), var(--c2, #fff), var(--c3, #fff), var(--c2, #fff), var(--c1, #fff));
    background-size: 200% auto;
    animation: animePowerFlow 1.5s linear infinite !important;
    filter: drop-shadow(0 0 5px var(--c1)) drop-shadow(0 0 10px var(--c3));
}


/* =========================================================================
   CONTROLES DE POSIÇÃO DE BANNER E GIF
   ========================================================================= */
.banner-position-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.banner-position-control i {
    color: var(--color-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.banner-position-control input[type=range] {
    flex: 1;
}

.gif-position-control {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gif-position-control label {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gif-position-control label i {
    color: var(--color-primary);
}
.gif-position-control input[type=range] {
    width: 100%;
}

.premium-range {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    height: 10px;
    border-radius: 5px;
    outline: none;
    margin-top: 5px;
}
.premium-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    border: 1px solid #333;
}
.premium-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    margin-top: -7px;
    box-shadow: 0 0 10px var(--color-primary);
}


.frame-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(255,255,255,0.05);
}
.frame-scroll-wrapper::-webkit-scrollbar { height: 4px; }
.frame-scroll-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.frame-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }