* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #000;
    min-height: 100vh;
    width: 100%;
}

.header {
    background-color: #000;
    border-bottom: 1px solid #262626;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header > div {
    max-width: 935px;
    margin: 0 auto;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #262626;
}

.profile-username {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-right: auto;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.save-icon {
    width: 22px;
    height: 28px;
    cursor: pointer;
    margin-left: 8px;
    opacity: 0.9;
    margin-top:6px;
}

.btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    border: none;
    background-color: #262626;
    color: #fff;
}

.insta-logo {
    color: #fff;
    font-family: 'Instagram Sans', sans-serif;
    font-size: 25px;
    font-weight: 600;
    text-align: center;
        margin-right: 120px;
}

.header-actions {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: flex-end;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #000;
    border-bottom: 1px solid #262626;
    display: flex;
    justify-content: center;
    padding: 5px 0;
    z-index: 1;
}

.nav-wrapper {
    width: 70%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-img {
    height: 100%;
    margin-top: 5px;
}

.nav-items {
    display: flex;
    align-items: center;
}

.icon {
    height: 24px;
    margin: 0 10px;
    cursor: pointer;
}

.user-profile {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #555;
}        body {
            background-color: #000;
            font-family: Arial, sans-serif;
            min-height: 100vh;
        }

        .phone-container {
            background-color: #000;
            width: 100%;
            min-height: 100vh;
            position: relative;
        }

        
        @media screen and (min-width: 768px) {
            body {
                background-color: #1a1a1a;
                padding: 20px;
                min-height: 100vh;
                display: flex;
                justify-content: center;
                align-items: center;
            }
            
            .phone-container {
                width: 375px;
                height: 812px;
                border-radius: 25px;
                overflow: hidden;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
                min-height: auto;
            }
        }

        .status-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
            color: white;
            font-size: 14px;
            font-weight: 500;
        }

        .status-left {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .status-right {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .page {
    
            height: calc(100% - 40px);
            overflow-y: auto;
        }

        .page.active {
            display: block;
        }

.profile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            background-color: #000;
            border-bottom: 1px solid #262626;
        }

        .username-container {
            flex: 1;
            text-align: center;
        }

        .profile-username {
            color: #fff;
            font-size: 16px;
            font-weight: 600;
        }

        .header-icon {
            width: 24px;
            height: 24px;
            cursor: pointer;
            filter: brightness(1.1) contrast(1.1);
        }        .insta-logo {
            color: #fff;
            font-family: 'Instagram Sans', sans-serif;
            font-size: 25px;
            font-weight: 600;
        }

        .header-actions {
            display: flex;
            gap: 22px;
            align-items: center;
        }

        .header-icon {
            width: 24px;
            height: 24px;
            cursor: pointer;
        }

        .username {
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .icon {
            width: 24px;
            height: 24px;
            cursor: pointer;
        }

        .profile-section {
            padding: 20px;
            color: white;
        }

        .profile-top {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 15px;
        }

        .profile-pic {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
            padding: 3px;
        }

        .profile-avatar {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background-color: #262626;
            border: 3px solid #000;
        }

.username-display {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 0 16px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 12px;
}        .stat {
            text-align: center;
        }

        .stat-number {
            font-size: 18px;
            font-weight: bold;
        }

        .stat-label {
            font-size: 12px;
            color: #999;
        }

        .profile-info h3 {
            font-size: 16px;
            margin-bottom: 5px;
        }

        .profile-info p {
            font-size: 14px;
            color: #ccc;
        }

        .profile-buttons {
            display: flex;
            gap: 10px;
            margin: 20px 0;
        }

        .btn {
            padding: 8px 16px;
          
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            flex: 1;
        }

        .btn-primary {
            background-color: #444;
            color: white;
        }

        .btn-secondary {
            background-color: #333;
            color: white;
        }

        .profile-tabs {
            display: flex;
            justify-content: space-around;
            border-top: 1px solid #333;
            padding: 15px 0;
            margin-top: 20px;
        }

        .tab-icon {
            width: 20px;
            height: 20px;
            opacity: 0.5;
        }

        .tab-icon.active {
            opacity: 1;
        }

        .no-posts {
            text-align: center;
            padding: 50px 20px;
            color: white;
        }

        .camera-icon {
            width: 60px;
            height: 60px;
            border: 2px solid #333;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
        }

        .stories-section {
            padding: 15px 20px;
            border-bottom: 1px solid #333;
        }

        .stories {
            display: flex;
            gap: 15px;
            overflow-x: auto;
        }

        .story {
            text-align: center;
            min-width: 70px;
        }

        .story-pic {
            width: 66px;
            height: 66px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 5px;
            position: relative;
            padding: 2px;
        }

        .story-pic.has-story {
            background: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
            padding: 3px;
        }

        .story-avatar {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 3px solid #000;
            object-fit: cover;
        }

        .post-user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 10px;
        }

        .user-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .story-pic.add-story {
            border: 1px dashed #666;
        }

        .story-name {
            font-size: 12px;
            color: white;
            text-align: center;
        }

        .post {
            margin-bottom: 20px;
        }

        .post-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 20px;
        }

        .post-user {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .post-user img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }

        .post-username {
            font-size: 14px;
            font-weight: 600;
            color: white;
        }

        .post-location {
            font-size: 12px;
            color: #999;
        }

        .post-image {
            width: 100%;
            height: 300px;
            object-fit: cover;
        }

        .post-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
        }

        .post-actions-left {
            display: flex;
            gap: 16px;
        }

        .action-icon {
            width: 24px;
            height: 24px;
            cursor: pointer;
            filter: brightness(1.1) contrast(1.1);
        }

        .more-options {
          
            cursor: pointer;
            filter: brightness(1.1) contrast(1.1);
        }

        .header-icon {
            width: 24px;
            height: 24px;
            cursor: pointer;
            filter: brightness(1.1) contrast(1.1);
        }

        .post-content {
            padding: 0 16px 16px 16px;
            color: white;
        }

        .profile-top {
            display: flex;
            align-items: flex-start;
          
            gap: 30px;
        }

.story-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    background-color: #262626;
}        .has-story {
            padding: 2px;
            border: 3px solid #ff3040;
            border-radius: 50%;
        }

        .story-avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            border: 2px solid #000;
        }

        .story-name {
            color: #fff;
            font-size: 14px;
            text-align: center;
            margin-top: 4px;
        }
       
        .profile-left {
            flex-shrink: 0;
        }

        .profile-right {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
       
        }

        .username-display {
            color: #fff;
            font-size: 20px;
            font-weight: 600;
            margin-top: 8px;
        }

        .profile-stats {
            display: flex;
            gap: 24px;
        }

        .stat {
            text-align: center;
        }

        .post-likes {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 8px;
        }

        .post-description {
            font-size: 14px;
            margin-bottom: 8px;
        }

        .username {
            font-weight: 600;
            margin-right: 6px;
        }

        .caption {
            color: #f5f5f5;
        }

        .post-time {
            font-size: 10px;
            color: #8e8e8e;
            text-transform: uppercase;
            letter-spacing: 0.2px;
        }

        .post-actions-left {
            display: flex;
            gap: 15px;
        }

        .bottom-nav {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: #000;
            border-top: 1px solid #333;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 15px 0;
            height: 70px;
        }

        .nav-icon {
            width: 24px;
            height: 24px;
            cursor: pointer;
            opacity: 0.6;
        }

        .nav-icon.active {
            opacity: 1;
        }

       