@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Official OnlyFans Font Stack - Ghost Sans with fallbacks */
@font-face {
    font-family: 'Ghost Sans';
    src: local('Ghost Sans'), local('GhostSans');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Ghost Sans';
    src: local('Ghost Sans Medium'), local('GhostSans-Medium');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Ghost Sans';
    src: local('Ghost Sans Semibold'), local('GhostSans-Semibold');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Program Narrow';
    src: local('Program Narrow'), local('ProgramNarrow');
    font-weight: 500;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Use dynamic viewport height to account for mobile UI */
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for modern browsers */
    margin: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    /* Deep black for premium feel with subtle OnlyFans accent */
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    overflow: hidden;
    position: relative;
}

.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 50px;
    /* Glass effect using official OnlyFans blue */
    background: rgba(0, 175, 240, 0.08);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1px solid rgba(0, 175, 240, 0.2);
    max-width: 480px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px; /* 8px grid: bring profile info closer to PFP */
    position: relative;
    background: #00AFF0;
    padding: 3px;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000000;
}

.profile-picture::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: rgba(0, 175, 240, 0.6);
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.8; }
}


.profile-name {
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 600; /* Semibold */
    color: #FFFFFF;
    margin-bottom: 8px; /* 8px grid: tight coupling with verification */
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: none; /* Sentence case */
}

.response-time-text {
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400; /* Regular */
    color: rgba(0, 175, 240, 0.8); /* OnlyFans blue with transparency for elegance */
    margin-bottom: 16px;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.status-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px; /* 8px grid: comfortable spacing within profile group */
    /* Official OnlyFans White */
    color: #FFFFFF;
    font-family: 'Program Narrow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 500; /* Medium */
    text-transform: uppercase; /* All-caps */
    letter-spacing: -0.01em; /* -1% tracking */
    line-height: 0.85; /* 85% leading */
}

.status-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px; /* 8px grid: end profile group with good separation */
    /* Clean white with subtle transparency */
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400; /* Regular */
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: none; /* Sentence case */
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 175, 240, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 175, 240, 0.25);
    background-color: rgba(0, 0, 0, 0.8);
}

.verified-badge svg {
    width: 12px;
    height: 12px;
    /* Official OnlyFans Blue */
    fill: #00AFF0;
    flex-shrink: 0;
}

/* Fallback for SVG not loading */
.verified-badge::before {
    content: "✓";
    color: #00AFF0;
    font-weight: bold;
    font-size: 14px;
    display: none;
}

/* Show fallback if SVG fails to load */
.verified-badge svg:not([src]) + *::before,
.verified-badge:not(:has(svg))::before {
    display: inline;
}

.title {
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 500; /* Medium */
    /* Official OnlyFans White */
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: capitalize; /* Title Case */
}

.subtitle {
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    /* Official OnlyFans White with opacity */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    line-height: 1.2; /* 120% leading */
    font-weight: 400; /* Regular */
    letter-spacing: 0; /* 0% tracking */
    text-transform: none; /* Sentence case */
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.onlyfans-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* Official OnlyFans Blue */
    background: #00AFF0;
    color: #FFFFFF;
    padding: 20px 40px; /* 8px grid: rounded to multiples of 8 */
    border: none;
    border-radius: 50px;
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 500; /* Medium */
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: capitalize; /* Title Case */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 280px;
    justify-content: flex-start;
    margin-bottom: 16px; /* 8px grid: smaller gap before response time */
}

.onlyfans-button .button-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
    position: relative;
}

.onlyfans-button .onlyfans-logo {
    position: absolute;
    left: -16px;
}

.onlyfans-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.onlyfans-button:hover::before {
    left: 100%;
}

.onlyfans-button:hover {
    transform: translateY(-3px) scale(1.02);
    background: #FFFFFF;
    color: #000000;
}

.onlyfans-button:hover .onlyfans-logo {
    stroke: #00AFF0;
    stroke-width: 8;
}

.onlyfans-button:active {
    transform: translateY(-1px) scale(1.01) !important;
    background: #FFFFFF !important;
    color: #000000 !important;
}

.onlyfans-button:active .onlyfans-logo {
    stroke: #00AFF0 !important;
    stroke-width: 8 !important;
}

.onlyfans-logo {
    width: 36px;
    height: 36px;
    fill: #000000;
    flex-shrink: 0;
}

.response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px; /* 8px grid: section separator */
    /* Clean white with subtle transparency */
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400; /* Regular */
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: none; /* Sentence case */
}

.location-pin {
    width: 12px;
    height: 12px;
    fill: #00AFF0;
    flex-shrink: 0;
}

.time-icon {
    width: 12px;
    height: 12px;
    stroke: #00AFF0;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.online-indicator {
    width: 8px;
    height: 8px;
    /* Official OnlyFans Blue */
    background: #00AFF0;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.privacy-note {
    margin: 0;
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 400; /* Regular */
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: none; /* Sentence case */
    /* Subtle white for privacy messaging */
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Trial timer banner */
.trial-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #00AFF0;
    padding: 8px 20px;
    z-index: 1001;
    text-align: center;
}

.trial-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 300px;
    margin: 0 auto;
}

.trial-text {
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

.trial-timer {
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}

/* Notification popup (positioned at bottom) */
.notification-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 175, 240, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 175, 240, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
    margin: 0 auto;
}

.notification-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-avatar {
    width: 28px;
    height: 28px;
    background: #00AFF0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: #000000;
    font-weight: 600;
}

.notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.notification-message {
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 400; /* Regular */
    color: #FFFFFF;
    line-height: 1.2; /* 120% leading */
    letter-spacing: 0; /* 0% tracking */
    text-transform: none; /* Sentence case */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.notification-close {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 175, 240, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.notification-close:hover {
    background: rgba(0, 175, 240, 0.2);
}

/* Popup styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Official OnlyFans Black with transparency */
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

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

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Official OnlyFans Black background */
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(25px);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 175, 240, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    /* Official OnlyFans Blue */
    background: #00AFF0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 175, 240, 0.3);
}

.popup-icon svg {
    width: 36px;
    height: 36px;
    stroke: none;
}

.popup h3 {
    margin: 0 0 16px 0;
    /* Official OnlyFans White */
    color: #FFFFFF;
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 500; /* Medium */
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: capitalize; /* Title Case */
}

.popup p {
    /* Official OnlyFans White with opacity */
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px 0;
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400; /* Regular */
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: none; /* Sentence case */
    font-size: 16px;
}

.popup-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.popup-button {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 500; /* Medium */
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: capitalize; /* Title Case */
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.confirm-button {
    /* Official OnlyFans Blue */
    background: #00AFF0;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 175, 240, 0.3);
}

.confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 175, 240, 0.4);
}

/* Browser Modal Styles */
.browser-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.browser-modal.show {
    display: block;
}

.browser-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 175, 240, 0.08);
    backdrop-filter: blur(25px);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    border: 1px solid rgba(0, 175, 240, 0.2);
    animation: slideUp 0.3s ease;
}

.browser-modal-title {
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 700; /* Bold */
    color: #FFFFFF;
    margin-bottom: 8px; /* 8px grid: tight coupling with subtitle */
}

.browser-modal-subtitle {
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400; /* Regular */
    color: rgba(255, 255, 255, 0.7); /* Same gray as status info */
    margin-bottom: 32px; /* 8px grid: separation before buttons */
    letter-spacing: 0; /* 0% tracking */
    line-height: 1.2; /* 120% leading */
    text-transform: none; /* Sentence case */
}

.browser-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.browser-modal-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: none;
    border-radius: 50px; /* Same rounded style as Message Me */
    background: #00AFF0;
    color: #FFFFFF;
    font-family: 'Ghost Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 500; /* Medium like Message Me */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Same transition as Message Me */
    text-align: left;
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
}

.browser-modal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.browser-modal-button:hover {
    background: #FFFFFF;
    color: #000000;
    transform: translateY(-2px) scale(1.02);
}

.browser-modal-button:hover::before {
    left: 100%;
}

.browser-modal-button:hover .browser-icon svg {
    stroke: #00AFF0;
}

.browser-modal-button:active {
    background: #FFFFFF !important;
    color: #000000 !important;
    transform: translateY(0) scale(1.01) !important;
}

.browser-modal-button:active::before {
    left: 100% !important;
}

.browser-modal-button:active .browser-icon svg {
    stroke: #00AFF0 !important;
}

.browser-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.browser-icon svg {
    width: 16px;
    height: 16px;
    stroke: #FFFFFF;
}

@media (max-width: 480px) {
    body {
        /* Better mobile viewport handling */
        min-height: 100vh;
        min-height: 100svh; /* Small viewport height for mobile */
        align-items: safe center; /* Safe centering for mobile */
        padding: max(env(safe-area-inset-top), 10px) env(safe-area-inset-right) max(env(safe-area-inset-bottom), 10px) env(safe-area-inset-left);
    }
    
    .container {
        padding: 30px 20px;
        margin: 10px;
        /* Ensure container fits within available space */
        max-height: calc(100vh - 40px);
        max-height: calc(100svh - 40px);
        overflow-y: auto;
    }
    
    .onlyfans-button {
        padding: 16px 32px;
        font-size: 16px;
        min-width: 260px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .popup {
        padding: 30px 20px;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .popup-button {
        width: 100%;
        min-width: 160px;
    }
    
    .browser-modal-content {
        padding: 30px 20px;
        /* Account for mobile safe areas */
        max-height: calc(100vh - 40px);
        max-height: calc(100svh - 40px);
        overflow-y: auto;
    }
}

/* Additional mobile landscape support */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        min-height: 100vh;
        min-height: 100lvh; /* Large viewport height for landscape */
    }
    
    .container {
        padding: 20px;
        margin: 5px;
        max-height: calc(100vh - 20px);
        max-height: calc(100lvh - 20px);
    }
}