/* ============================================================
   PERFIL.CSS — ONLYFANS STYLE (BLACK & CYAN EDITION)
   ============================================================ */

:root {
    --brand-cyan: #00e5ff;
    --brand-blue-dark: #008fa3;
    --bg-dark: #000000;
    --bg-card: #0f0f0f;
    --bg-item: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #8e8e93;
    --line-color: rgba(255, 255, 255, 0.1);
    
    /* DEFINITIVE TIER COLORS (Diamond = Cyan, Standard = Blue) */
    --tier-diamond-color: #00e5ff; /* Diamond VIP (Cyan) */
    --tier-premium-color: #c5a059; /* Premium VIP (Gold) */
    --tier-standard-color: #008fdb; /* Standard VIP (OF Blue) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body.of-profile-body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === TOAST NOTIFICATION === */
.of-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #000;
    border: 1.5px solid var(--brand-cyan);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    box-shadow: none !important;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    width: auto;
    max-width: 90vw;
    white-space: nowrap;
}

.of-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.of-toast i {
    color: var(--brand-cyan);
    font-size: 1.1rem;
}

.of-toast span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* === HEADER (Sticky) === */
.of-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line-color);
}

.of-back-btn {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.of-header-title {
    flex: 1;
    margin-left: 8px;
}

.of-header-title h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.of-header-actions {
    position: relative;
    cursor: pointer;
}

.of-header-actions i {
    color: #fff;
    font-size: 1.2rem;
    padding: 10px;
}

/* === DROPDOWN === */
.of-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #1c1c1e;
    border: 1px solid var(--line-color);
    border-radius: 12px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.of-dropdown.active {
    display: flex;
}

.of-dropdown a {
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.of-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.of-dropdown a i {
    color: var(--brand-cyan);
    font-size: 1rem;
}

/* === COVER BANNER === */
.of-cover-container {
    width: 100%;
    height: 180px;
    position: relative;
    background: #111;
    overflow: hidden;
}

.of-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

.of-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* === PROFILE CARD === */
.of-profile-card {
    padding: 0 16px 20px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.of-avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.of-avatar-wrapper {
    width: 95px;
    height: 95px;
    position: relative;
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    background: var(--bg-dark);
}

.of-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.of-avatar-edit {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 30px;
    height: 30px;
    background: var(--brand-cyan);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 15;
}

.of-profile-main-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.of-btn-edit-profile {
    background: transparent;
    border: 1px solid var(--brand-cyan);
    color: var(--brand-cyan);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.of-btn-cancel-profile {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid #ff3b30;
    color: #ff3b30;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.of-inline-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    width: 100%;
    outline: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

/* AVATAR GALLERY STYLES */
.of-avatar-gallery {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--line-color);
    animation: fadeIn 0.3s ease;
}

.of-avatar-gallery p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.of-gallery-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.of-gallery-scroll::-webkit-scrollbar {
    height: 4px;
}

.of-gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--line-color);
    border-radius: 10px;
}

.of-gallery-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.of-gallery-item:hover {
    border-color: var(--brand-cyan);
    transform: scale(1.1);
}

/* Minimal Inline Edit Input */
.of-inline-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--brand-cyan);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 0;
    width: 100%;
    max-width: 250px;
    outline: none;
    margin-bottom: 5px;
}

.of-display-name {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.of-handle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.of-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d1d1d1;
    margin-bottom: 15px;
}

.of-user-data-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.of-user-data-grid i {
    color: var(--brand-cyan);
}

.of-stats-row {
    display: flex;
    gap: 20px;
}

.of-stat-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.of-stat-item strong {
    font-size: 1rem;
    font-weight: 900;
}

.of-stat-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === TABS NAVIGATION === */
.of-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--line-color);
    background: #050505;
}

.of-tab-item {
    flex: 1;
    text-align: center;
    padding: 18px 0;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.of-tab-item i {
    font-size: 1.2rem;
}

.of-tab-item.active {
    color: var(--brand-cyan);
    background: rgba(0, 229, 255, 0.03);
}

.of-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-cyan);
    border-radius: 3px 3px 0 0;
}

/* === CONTENT AREA (SLIDING TRACK) === */
.of-content-area {
    padding: 24px 0; /* Remove horizontal padding here to allow full-width sliding */
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.of-tabs-container {
    width: 100%;
    overflow: hidden;
}

.of-tabs-track {
    display: flex;
    width: 400%; /* 4 tabs = 400% */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.of-tab-pane {
    width: 25%; /* 1/4 of the track */
    flex-shrink: 0;
    padding: 0 16px; /* Add padding back to the individual panes */
    display: block !important; /* Always block, controlled by parent overflow */
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.of-tab-pane.active {
    opacity: 1;
}

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

/* Subscription Cards (DEFINITIVE TIER COLORS) */
.of-sub-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.of-creator-card {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    background: #0a0a0a;
    border-radius: 12px;
    border: 1px solid var(--line-color);
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
}

.tier-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 12px;
    font-size: 0.6rem;
    font-weight: 900;
    border-bottom-left-radius: 12px;
    letter-spacing: 1px;
}

/* Diamond VIP (ANUAL - CYAN) */
.tier-diamond {
    border: 1.5px solid var(--tier-diamond-color);
}
.tier-diamond .tier-badge {
    background: var(--tier-diamond-color);
    color: #000;
}
.tier-diamond .of-btn-view {
    background: var(--tier-diamond-color);
}
.tier-diamond .status-active {
    color: var(--tier-diamond-color);
}

/* Premium VIP (GOLD) */
.tier-premium {
    border: 1.5px solid var(--tier-premium-color);
}
.tier-premium .tier-badge {
    background: var(--tier-premium-color);
    color: #000;
}
.tier-premium .of-btn-view {
    background: var(--tier-premium-color);
}
.tier-premium .status-active {
    color: var(--tier-premium-color);
}

/* Standard VIP (MENSUAL - BLUE) */
.tier-standard {
    border: 1.5px solid var(--tier-standard-color);
}
.tier-standard .tier-badge {
    background: var(--tier-standard-color);
    color: #fff;
}
.tier-standard .of-btn-view {
    background: var(--tier-standard-color);
    color: #fff !important;
}
.tier-standard .status-active {
    color: var(--tier-standard-color);
}

.of-creator-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.of-creator-info {
    flex: 1;
}

.of-creator-info h3 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.contrato-tipo {
    font-size: 0.7rem;
    color: #fff;
    margin-bottom: 2px;
}

.of-creator-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.vence-text {
    margin-top: 2px;
    font-size: 0.65rem !important;
}

.of-btn-view {
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.7rem;
    cursor: pointer;
}

/* Settings Items */
.of-settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.of-settings-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--line-color);
    cursor: pointer;
    transition: background 0.3s;
}

.of-settings-item:active {
    background: rgba(255,255,255,0.05);
}

.of-settings-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--brand-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 16px;
}

.of-settings-text {
    flex: 1;
}

.of-settings-text h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    font-weight: 700;
}

.of-settings-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Inline Password Form */
.of-inline-form {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0a0a0a;
    border-radius: 0 0 18px 18px;
    margin-top: -10px;
}

.of-inline-form.active {
    max-height: 500px;
    padding: 20px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--line-color);
}

.pass-status {
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pass-status.error { color: #ff3b30; }
.pass-status.success { color: #34c759; }

input.pass-error { border-color: #ff3b30 !important; }
input.pass-success { border-color: #34c759 !important; }

/* Input Wrapper for Eyes */
.of-input-wrapper {
    position: relative;
    width: 100%;
}

.of-input-wrapper input {
    padding-right: 45px !important;
}

.toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
    z-index: 5;
}

.toggle-pass:hover {
    color: var(--brand-cyan);
}

/* Support Card VIP (PREMIUM REDESIGN) */
.of-support-card {
    text-align: center;
    padding: 50px 20px;
    background: #0a0a0a;
    border-radius: 15px;
    border: 2px solid var(--line-color);
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

.support-header {
    margin-bottom: 40px;
}

.support-main-icon {
    font-size: 3.5rem;
    color: var(--brand-cyan);
    margin-bottom: 25px;
}

.of-support-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
}

.of-support-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.support-actions {
    margin: 80px 0; /* Huge space around button */
}

.of-btn-support-main {
    width: 100%;
    background: var(--brand-cyan);
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: none !important;
}

.support-availability {
    margin-top: 80px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #34c759;
    text-transform: uppercase;
    display: block;
    text-align: center;
}

.of-form-group {
    margin-bottom: 20px;
}

.of-form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.of-form-group input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--line-color);
    padding: 14px;
    border-radius: 12px;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.of-form-group input:focus {
    border-color: var(--brand-cyan);
}

.of-btn-save {
    width: 100%;
    background: var(--brand-cyan);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* === ADMIN ACCESS CARD (FLAT & CLEAN) === */
.admin-access-card {
    text-align: center;
    padding: 50px 20px;
    background: #0a0a0a;
    border-radius: 12px;
    border: 1px solid var(--brand-cyan);
    box-shadow: none !important;
    margin-top: 20px;
}

.admin-access-card .support-main-icon {
    font-size: 3rem;
    color: var(--brand-cyan);
    margin-bottom: 25px;
}

.admin-access-card h3 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.admin-access-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.of-btn-admin-panel {
    width: 100%;
    background: var(--brand-cyan);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: none !important;
}

/* === MODAL DE RECORTE (CROPPER) === */
.of-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.of-modal-content {
    background: #1c1c1e;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line-color);
}

.of-modal-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line-color);
}

.of-modal-header h3 {
    font-size: 1rem;
    color: #fff;
}

.of-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.of-cropper-container {
    width: 100%;
    height: 350px;
    background: #000;
}

.of-cropper-container img {
    max-width: 100%;
}

.of-modal-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    background: #151517;
}

.of-control-btn {
    background: #2c2c2e;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.of-control-btn:hover {
    background: var(--brand-cyan);
    color: #000;
}

.of-modal-footer {
    padding: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.of-btn-primary {
    background: var(--brand-cyan);
    color: #000;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    flex: 1;
    max-width: 150px;
}

.of-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--line-color);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    flex: 1;
    max-width: 150px;
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 480px) {
    .of-cropper-container {
        height: 300px;
    }
}
