:root {
    --primary: #0095f6;
    --primary-gradient: linear-gradient(135deg, #FF0080 0%, #7928CA 100%);
    --bg-dark: #000000;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a8a8a8;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Premium Layout */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    background: #000;
    position: relative;
    min-height: 100vh;
}

/* Header Refinement */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 500px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: 64px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.logo img {
    filter: brightness(0) invert(1);
    height: 28px;
    width: auto;
}

.global-button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.global-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(15deg);
}

.global-button svg path {
    fill: #fff;
}

/* Profile Section */
.profile-header {
    position: relative;
    margin-top: 64px;
}

.cover-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.profile-avatar {
    position: absolute;
    bottom: -50px;
    left: 20px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 3px;
    background: var(--primary-gradient);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #000;
}

.profile-info {
    padding: 65px 20px 20px;
    animation: fadeIn 0.8s ease-out;
}

.name {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    color: #0095f6;
    font-size: 1.2rem;
}

.verified-badge-svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-left: 4px;
}

.username {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 1rem;
}

.bio {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

/* Subscriptions Section */
.subscription-section {
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

.subscription-section h2,
.subscription-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 20px;
    font-weight: 700;
}

.subscribe-button {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    width: 100%;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.2);
}

.subscribe-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 0, 128, 0.4);
}

.button-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.price {
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 14px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
}

/* Package Items */
.packages {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.package-item {
    position: relative;
    padding-top: 12px;
}

.discount-badge {
    position: absolute;
    top: 0;
    left: 12px;
    background: #FF0080;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 1;
    transform: translateY(-50%);
    box-shadow: 0 4px 10px rgba(255, 0, 128, 0.3);
}

.discount-badge.popular {
    background: #7928CA;
    animation: pulse 2s infinite;
}

/* Orange Highlight for 3-month plan */
.package-item.highlight .subscribe-button {
    background: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.package-item.highlight .subscribe-button:hover {
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.5);
}

.package-item.highlight .discount-badge {
    background: #FF4500;
}

/* Locked Grid */
.locked-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 2px;
}

.locked-content {
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    background: #111;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.locked-content:hover {
    transform: scale(1.05);
}

.content-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.92);
    transition: var(--transition);
}

.locked-content:hover .content-background {
    transform: scale(1.1);
}

.locked-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.view-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(4px);
}

.view-count span {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Modal Styling */
.subscription-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.subscription-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #121212;
    border-radius: 24px 24px 0 0;
    padding: 32px 24px 44px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--glass-border);
}

.subscription-modal.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-benefits {
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-dim);
}

.checkmark {
    width: 20px;
    height: 20px;
    background: #0095f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.modal-pricing {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    text-align: center;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-submit {
    width: 100%;
    background: var(--primary-gradient);
    padding: 20px;
    border-radius: var(--radius-lg);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.3);
}

/* Mobile Fixes & Desktop */
@media (min-width: 500px) {
    body {
        background: #111;
    }

    .home {
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

    .modal-card {
        border-radius: 24px;
        margin-bottom: 40px;
        width: 90%;
    }
}