:root {
    --primary-orange: #FF5E00;
    /* Privacy Orange approximation */
    --primary-orange-hover: #ff7b2e;
    --verified-green: #2ecc71;
    --bg-color: #F8F9FA;
    --text-color: #333;
    --text-secondary: #666;
    --white: #ffffff;
    --border-color: #eee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-bottom: 80px;
    /* Space for floating CTA */
}

/* Header */
.top-promo-bar {
    background-color: var(--primary-orange);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.main-header {
    background: white;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    height: 25px;
}

.search-bar {
    background: #f0f2f5;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    width: 60%;
}

.search-bar input {
    border: none;
    background: transparent;
    margin-left: 10px;
    outline: none;
    width: 100%;
}

.search-bar i {
    color: #aaa;
}

/* Profile Container */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Cover & Photo */
.cover-section {
    position: relative;
    height: 150px;
    background-color: #ddd;
}

.cover-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.profile-photo-container {
    position: absolute;
    bottom: -40px;
    left: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    background: white;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    width: 15px;
    height: 15px;
    background-color: var(--verified-green);
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

/* Profile Info */
.profile-info {
    padding: 50px 20px 20px;
}

.name-container h1 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.verified-icon {
    color: var(--verified-green);
    font-size: 0.9rem;
}

.handle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.stats-bar {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.stat-item i {
    margin-right: 5px;
}

.bio-content {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #444;
}

.bio-content.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 5px;
    cursor: pointer;
    font-weight: 500;
}

/* Subscriptions */
.subscription-section {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}

.subscription-header {
    margin-bottom: 15px;
}

.subscription-header h2 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.fire-badge {
    background: #FFF3E0;
    color: var(--primary-orange);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

.plan-card {
    border: 1px solid var(--primary-orange);
    border-radius: 12px;
    padding: 15px;
    background: linear-gradient(180deg, #fff 0%, #fffbf7 100%);
    box-shadow: 0 4px 10px rgba(255, 94, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-orange);
    color: white;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-weight: bold;
}

.plan-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.plan-duration {
    font-weight: bold;
    font-size: 1.1rem;
}

.plan-price {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-orange);
}

.subscribe-btn {
    width: 100%;
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.subscribe-btn:hover {
    background: var(--primary-orange-hover);
}

.plan-extra {
    text-align: center;
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}

.security-info {
    text-align: center;
    font-size: 0.7rem;
    color: #888;
    display: flex;
    justify-content: center;
    gap: 5px;
}

/* Other Plans */
.other-plans-container {
    margin-top: 15px;
}

.plans-header-static h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.plans-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--primary-orange);
    border-radius: 12px;
    padding: 15px;
    background: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.plan-card-item:hover {
    background: #fff8f5;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1rem;
}

.plan-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: black;
}

.plan-badge-pill {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: normal;
}

.plan-badge-pill.popular {
    background: #ffe0b2;
    color: #e65100;
}

.plan-badge-pill.best {
    background: #EFEBE9;
    color: #5D4037;
}

/* Beige tone */
.plan-badge-pill.exclusive {
    background: #E3F2FD;
    color: #1565C0;
}

/* Blue tone */

/* Content Feed */
.content-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.content-pill {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-bottom: 5px;
}

.content-pill.active {
    color: var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    font-weight: bold;
}

.feed-grid {
    background: #f0f2f5;
    padding-top: 10px;
}

.feed-item {
    background: white;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.post-header {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.post-meta {
    display: flex;
    flex-direction: column;
}

.post-user {
    font-size: 0.9rem;
    font-weight: bold;
}

.post-time {
    font-size: 0.75rem;
    color: #999;
}

.media-container {
    position: relative;
    width: 100%;
    height: auto;
    background: #000;
    cursor: pointer;
}

.blurred-media {
    width: 100%;
    height: auto;
    display: block;
    filter: blur(5px);
    opacity: 0.8;
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    border: 2px solid white;
}

.post-footer {
    padding: 10px 15px;
    display: flex;
    gap: 20px;
}

.action-btn {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* FAQ */
.faq-section {
    padding: 20px;
    background: white;
    margin-top: 20px;
}

.faq-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-orange);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
}

.faq-answer {
    display: none;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.faq-answer.open {
    display: block;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.8rem;
    color: #999;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 5px;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 1000;
}

.floating-cta button {
    width: 100%;
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.4);
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@media (min-width: 600px) {
    body {
        background-color: #f0f2f5;
    }
}

/* Age Gate Styles */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    /* or rgba(0,0,0,0.95) for dark */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.age-gate-content {
    max-width: 400px;
    width: 100%;
}

.age-gate-logo {
    height: 40px;
    margin-bottom: 30px;
}

.age-gate-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.age-gate-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

#btn-confirm-age {
    width: 100%;
    padding: 15px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 94, 0, 0.3);
}

#btn-confirm-age:hover {
    background: var(--primary-orange-hover);
}

/* Increased Blur for First Feed Item */
.feed-item:first-of-type .blurred-media {
    filter: blur(15px);
    /* Increased from 5px */
}