:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #1d9bf0;
    --card-radius: 16px;
    --verified-color: #8A2BE2; /* Match the purple verified tick */
}

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

body {
    background-color: #1a1a1a; /* Dark background behind the app container */
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Mobile App Container Simulation */
.app-container {
    width: 100%;
    max-width: 480px; /* Mobile width */
    background-color: var(--bg-color);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Header & Profile */
.profile-header {
    position: relative;
    width: 100%;
    /* The top image area is quite tall in the screenshot */
    height: 400px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* User provided image */
    background-image: url('Mainpic.JPG');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.profile-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.profile-info {
    position: relative;
    z-index: 3;
    padding: 20px 20px 10px;
    text-align: center;
}

.name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* --- Admin Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #333;
    width: 85%;
    max-width: 320px;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #000;
    color: #fff;
    font-size: 16px;
}

.modal-content button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-content button:active {
    opacity: 0.8;
}

#admin-submit {
    background: var(--verified-color);
    color: white;
}

#admin-close {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #444;
}

/* --- Dashboard Overlay --- */
.dashboard-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.dashboard-overlay iframe {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
    background: #fff; /* Plausible UI is typically light */
}

.close-dashboard-btn {
    padding: 15px 20px;
    background: #111;
    color: white;
    border: none;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

/* Prevent zoom on badge double tap */
.verified-stack {
    font-size: 9px;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.verified-color {
    color: var(--verified-color);
}

.check-color {
    color: #ffffff;
}

.handle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Social Icons Row */
.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

/* Specific icon colors based on screenshot */
.icon-btn.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.icon-btn.of { background-color: #00AFF0; }
.icon-btn.tt { background-color: #000000; border: 1px solid #333; }
.icon-btn.x { background-color: #000000; border: 1px solid #333; }
.icon-btn.sc { background-color: #FFFC00; color: #000; }

.follower-count {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.follower-count:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.text-sm {
    font-size: 10px;
    margin-left: 4px;
}

.bio-details {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Links Grid */
.links-grid {
    padding: 10px 16px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease;
    background-color: #222; /* Placeholder if no image */
}

.card:hover {
    transform: scale(0.98);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Card Backgrounds */
.of-bg { 
    background-image: url('onlyfanspic.png'); 
}
.ig-bg { background-image: url('instagrampic.jpeg'); }
.tt-bg { background-image: url('Tiktokpic.PNG'); }
.tw-bg { background-image: url('twitterpic.PNG'); }
.sc-bg { background-image: url('snapchatpic.png'); }

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.card-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 24px;
    height: 24px;
    background-color: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.card-icon.ig-color { color: #E1306C; }
.card-icon.sc-color { color: #FFFC00; background-color: #000; }

.card-title {
    position: absolute;
    bottom: 12px;
    width: 100%;
    text-align: center;
    z-index: 3;
    font-weight: 600;
    font-size: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Card Sizes */
.card-large {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.card-small {
    height: 200px;
}

/* Responsive adjustments for extremely small screens */
@media (max-width: 350px) {
    .card-small {
        height: 160px;
    }
    .profile-header {
        height: 350px;
    }
}
