:root {
    --primary-color: #ff6b3d;
    --primary-hover: #e55a2b;
    --secondary-color: #ffe8e0;
    --text-dark: #111827;
    --text-medium: #4b5563;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
    --font-inter: 'Inter', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-inter);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: 80px;
    /* Space for sticky footer/CTA */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 600px;
    /* Mobile-focused layout max-width */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.promo-bar {
    background: var(--primary-color);
    color: white;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem;
}

.navbar {
    padding: 0.75rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary-sm {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

.btn-primary-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Profile Hero */
.profile-hero {
    background: white;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.cover-wrapper {
    position: relative;
    height: 180px;
    background: #eee;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.profile-header {
    text-align: center;
    margin-top: -60px;
    /* Negative margin to pull avatar up */
    position: relative;
    z-index: 10;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 3px solid white;
    border-radius: 50%;
}

.profile-details {
    margin-bottom: 1.5rem;
}

.profile-name {
    font-family: var(--font-montserrat);
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.verified-badge {
    color: var(--primary-color);
}

.profile-handle {
    display: block;
    color: var(--text-medium);
    font-weight: 500;
    margin-top: 0.25rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bio Section */
.bio-section {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-medium);
}

.bio-text p {
    margin-bottom: 0.5rem;
}

.hidden-bio {
    display: none;
}

.bio-text.expanded .hidden-bio {
    display: block;
    animation: fadeIn 0.3s ease;
}

.bio-toggle-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

/* Subscription Plans */
.subscription-section {
    margin: 2rem auto;
}

.plans-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.plans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.plans-header h3 {
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 1.25rem;
}

.badge-promo {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
}

/* Featured Plan Card */
.plan-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card.featured {
    background: linear-gradient(135deg, #ff8f5f 0%, #ff6b3d 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 107, 61, 0.3);
}

.plan-card.featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 107, 61, 0.4);
}

/* Shimmer Animation */
.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        transform: skewX(-20deg) translateX(150%);
    }
}

.plan-info {
    display: flex;
    flex-direction: column;
}

.plan-duration {
    font-weight: 700;
    font-size: 1.125rem;
}

.plan-pricing {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.8;
    font-size: 0.75rem;
}

.current-price {
    font-weight: 800;
}

.plan-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Secondary Plans */
.plan-card.secondary {
    background: white;
    border: 1px solid #e5e7eb;
    color: var(--text-dark);
}

.plan-card.secondary:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.badge-discount {
    background: #dcfce7;
    color: #166534;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.more-plans-btn {
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.plans-list.hidden {
    display: none;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
}

.trust-badges i {
    color: #10b981;
    margin-right: 0.25rem;
}

/* Gallery Section */
.gallery-section {
    margin: 2rem auto;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: var(--radius-lg);
    display: inline-flex;
    /* Center the group */
    width: 100%;
}

.gallery-section .gallery-tabs {
    display: flex;
    /* Override inline-flex for full width on mobile if needed, or keep centered */
}

.tab-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.media-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #f3f4f6;
}

.media-preview {
    position: relative;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

.preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.media-preview .blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.lock-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
}

.media-info {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.media-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 600;
}

.btn-unlock {
    background: var(--text-dark);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    margin: 3rem auto;
}

.faq-section h2 {
    font-family: var(--font-montserrat);
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 1rem 1rem 1rem;
    color: var(--text-medium);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Footer & CTA */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.floating-cta {
    position: fixed;
    bottom: 20px;
    /* Raised up a bit */
    left: 0;
    width: 100%;
    padding: 0 1rem;
    background: transparent;
    border-top: none;
    z-index: 1000;
    box-shadow: none;
    pointer-events: none;
    /* Let clicks pass through the container */
}

.floating-cta .btn-primary-block {
    pointer-events: auto;
    /* Re-enable clicks on the button */
    box-shadow: 0 8px 20px rgba(255, 107, 61, 0.5);
    /* Enhanced shadow for floating feel */
}

.btn-primary-block {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(255, 107, 61, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}