
/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fafafa;
}

.post-offers-list{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.post-offer-item{
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:14px;
    background:#fff;
}

.post-offer-left h4{
    margin:0 0 8px;
    font-size:15px;
    font-weight:700;
    color:#1f2937;
}

.post-offer-price{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}

.post-offer-actions{
    display:flex;
    gap:10px;
    margin-top:12px;
    flex-wrap:wrap;
}

.post-offer-actions .buy-btn,
.post-offer-actions .preview-btn{
    flex:1;
    min-width:130px;
}

@media (max-width: 768px){
    .modal-content{
        flex-direction:column;
        height:auto;
        max-height:90vh;
        overflow-y:auto;
    }

    .modal-img,
    .modal-side{
        flex:unset;
        width:100%;
    }

    .post-offer-actions{
        flex-direction:column;
    }
}
.action-cart{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-right:12px;
}

.cart-count{
    position:absolute;
    top:-8px;
    right:-10px;
    font-size:11px;
    padding:3px 6px;
    border-radius:20px;
}
/* ===== CART DRAWER ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1998;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 95%;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
}

.cart-drawer.show {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-drawer-header h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #111827;
}

.cart-close {
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.cart-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fff;
}

.cart-remove {
    color: #ef4444;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    margin-top: 2px;
}

.cart-item-content {
    flex: 1;
}

.cart-item-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
}

.cart-item-subtitle {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 15px;
}

.cart-item-prices {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-item-old {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 14px;
}

.cart-item-new {
    color: #2563eb;
    font-size: 17px;
    font-weight: 700;
}

.cart-drawer-summary {
    border-top: 1px solid #e5e7eb;
    padding: 18px 20px 22px;
    background: #fff;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #374151;
    font-size: 16px;
}

.total-row {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

#cartTotal {
    color: #2563eb;
}

.proceed-cart-btn {
    display: block;
    margin-top: 18px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 8px;
    background: #4f7df0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.proceed-cart-btn:hover {
    background: #3d69d9;
    color: #fff;
}

body.cart-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .cart-drawer {
        width: 100%;
        max-width: 100%;
    }
}


.cart-count {
    position: absolute;
    top: -13px;
    right: -10px;
    font-size: 18px;
    padding: 2px 6px;
    border-radius: 50px;
    left: 18px;
}
/* ================= ORDER NOW TAB ================= */
.order-online-wrap {
    padding: 24px 0;
}

.order-online-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #eceff3;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-left {
    flex: 1;
    min-width: 0;
}

.order-item-left h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.4;
}

.order-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.old-price {
    font-size: 15px;
    color: #9ca3af;
    text-decoration: line-through;
}

.save-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    background: #59b35c;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.order-item-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.buy-btn,
.preview-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:8px 14px;
    border-radius:10px;
    background:linear-gradient(135deg,#5ea0df,#3b6fa3);
    color:#fff;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
}

.buy-btn {
    background: linear-gradient(135deg, #5ea0df, #3b6fa3);
    color: #fff;
    border: none;
}

.buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 111, 163, 0.24);
}

.preview-btn {
    background: #fff;
    color: #5ea0df;
    border: 1.5px solid #5ea0df;
}

.preview-btn:hover {
    background: #f8fbff;
}

@media (max-width: 768px) {
    .container {
        margin: 80px 0;
        padding: 0 15px;
    }

    .profile {
        flex-direction: column;
        gap: 20px;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .stats {
        gap: 20px;
    }

    /* better post modal for mobile */
    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        flex-direction: column;
        width: 100%;
        height: 92vh;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
        overflow: hidden;
    }

    .modal-img {
        width: 100%;
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        padding: 0;
        background: #000;
    }

    .modal-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: none;
        max-height: none;
    }

    .modal-side {
        width: 100%;
        height: calc(92vh - 240px);
        padding: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-side h3 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .modal-side p {
        font-size: 14px;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .post-offers-list {
        gap: 12px;
        margin-top: 12px;
    }

    .post-offer-item {
        padding: 12px;
        border-radius: 14px;
    }

    .post-offer-left h4 {
        font-size: 14px;
        line-height: 1.4;
    }

    .post-offer-price {
        gap: 6px;
    }

    .sale-price {
        font-size: 16px;
    }

    .old-price {
        font-size: 13px;
    }

    .save-badge {
        font-size: 11px;
        padding: 4px 7px;
        border-radius: 999px;
    }

    .post-offer-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .post-offer-actions .buy-btn,
    .post-offer-actions .preview-btn {
        width: 100%;
        min-width: unset;
        min-height: 46px;
        font-size: 14px;
    }

    .close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 22px;
        background: rgba(0, 0, 0, 0.6);
    }

    .nav-arrow {
        top: 120px;
        font-size: 22px;
        width: 38px;
        height: 38px;
        padding: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    .nav-arrow.left {
        left: 8px;
    }

    .nav-arrow.right {
        right: 8px;
    }

    .screenshot {
        height: 320px;
        min-width: 180px;
    }

    .create-post-box {
        padding: 20px;
    }

    .app-card {
        flex-direction: column;
        text-align: left;
    }

    .app-icon {
        margin: 0 auto;
    }

    .tabs {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .profile-top {
        flex-wrap: wrap;
    }

    .stats {
        gap: 15px;
    }

    .tabs {
        gap: 20px;
    }

    .tab {
        font-size: 12px;
    }

    .screenshot {
        height: 280px;
        min-width: 150px;
    }

    .modal-content {
        height: 94vh;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
    }

    .modal-img {
        height: 210px;
        min-height: 210px;
        max-height: 210px;
    }

    .modal-side {
        height: calc(94vh - 210px);
        padding: 14px;
    }

    .modal-side h3 {
        font-size: 18px;
    }

    .modal-side p {
        font-size: 13px;
    }

    .post-offer-left h4 {
        font-size: 13px;
    }

    .post-offer-actions .buy-btn,
    .post-offer-actions .preview-btn {
        min-height: 44px;
        font-size: 13px;
    }

    .nav-arrow {
        display: none;
    }
}
#createPostModal textarea{
    width:100%;
    padding:12px 15px;
    border-radius:10px;
    border:1px solid #ddd;
    margin:15px 0;
    font-size:14px;
    resize:vertical;
    min-height:90px;
}
.no-reviews{
    text-align:center;
    padding:35px 20px;
}

.no-review-icon{
    font-size:40px;
    color:#f59e0b;
    margin-bottom:12px;
}

.no-review-title{
    font-size:18px;
    font-weight:600;
    color:#111827;
    margin-bottom:6px;
}

.no-review-text{
    font-size:14px;
    color:#6b7280;
    margin-bottom:18px;
}

.empty-review-btn{
    background:#2563eb;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    font-size:14px;
    cursor:pointer;
}

.empty-review-btn:hover{
    background:#1d4ed8;
}
.success-box{
    background:#fff;
    padding:40px 30px;
    border-radius:16px;
    text-align:center;
    box-shadow:0 20px 50px rgba(0,0,0,0.1);
    max-width:400px;
    width:90%;
}

.success-icon{
    font-size:60px;
    color:#16a34a;
    margin-bottom:15px;
}

.success-title{
    font-size:22px;
    font-weight:600;
    margin-bottom:10px;
    color:#111827;
}

.success-text{
    font-size:14px;
    color:#6b7280;
    margin-bottom:25px;
}

.back-btn{
    display:inline-block;
    padding:10px 20px;
    border-radius:10px;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.back-btn:hover{
    background:#1d4ed8;
}
.listing-rating{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
    flex-wrap:wrap;
}

.rating-stars{
    color:#f59e0b;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:2px;
}

.rating-info{
    font-size:14px;
    color:#475467;
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
}

.rating-score{
    font-weight:600;
}

.rating-count{
    color:#98a2b3;
}

.write-review,
.view-reviews{
    font-size:13px;
    color:#2563eb;
    text-decoration:none;
    white-space:nowrap;
}

.write-review{
    margin-left:auto;
}

.write-review:hover,
.view-reviews:hover{
    text-decoration:underline;
}

.review-popup,
.reviews-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
    padding:16px;
}

.review-popup-box,
.reviews-popup-box{
    background:#fff;
    width:460px;
    max-width:100%;
    max-height:85vh;
    overflow:auto;
    border-radius:16px;
    padding:22px;
    box-shadow:0 20px 50px rgba(0,0,0,0.15);
}

.review-popup-box h3,
.reviews-popup-box h3{
    margin:0 0 12px;
    font-size:20px;
    font-weight:600;
    line-height:1.3;
}

.review-popup-box textarea{
    width:100%;
    min-height:110px;
    margin-top:10px;
    padding:12px;
    border:1px solid #e5e7eb;
    border-radius:8px;
    resize:vertical;
    font-size:14px;
}

.review-popup-box input{
    width:100%;
    margin-top:10px;
    padding:12px;
    border:1px solid #e5e7eb;
    border-radius:8px;
    font-size:14px;
}

.popup-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:16px;
    flex-wrap:wrap;
}

.review-cancel,
.review-submit,
.reviews-close{
    border:none;
    padding:10px 16px;
    border-radius:8px;
    font-size:14px;
    cursor:pointer;
}

.review-cancel{
    background:#f3f4f6;
    color:#111827;
}

.review-submit,
.reviews-close{
    background:#2563eb;
    color:#fff;
}

.review-submit:hover,
.reviews-close:hover{
    background:#1d4ed8;
}

.review-cancel:hover{
    background:#e5e7eb;
}

.reviews-list{
    margin-top:10px;
}

.review-item{
    padding:12px 0;
    border-top:1px solid #eef2f6;
}

.review-item:first-child{
    border-top:none;
    padding-top:0;
}

.review-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    font-size:14px;
    font-weight:600;
}

.review-name{
    color:#344054;
    word-break:break-word;
}

.review-stars{
    color:#f59e0b;
    white-space:nowrap;
    flex-shrink:0;
    font-size: 28px;
}

.review-text{
    font-size:14px;
    margin-top:6px;
    color:#475467;
    line-height:1.5;
    word-break:break-word;
}

@media (max-width:768px){
    .listing-rating{
        gap:8px;
    }

    .write-review,
    .view-reviews{
        font-size:12px;
    }
}

@media (max-width:480px){
    .listing-rating{
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
        align-items:flex-start;
    }

    .rating-stars{
        display:flex;
        justify-content:center;
        align-items:center;
        width:100%;
        font-size:14px;
    }

    .rating-info{
        width:100%;
        justify-content:center;
        text-align:center;
        font-size:13px;
        gap:4px;
    }

    .write-review,
    .view-reviews{
        display:block;
        width:100%;
        margin:0;
        text-align:center;
        padding:10px 12px;
        border:1px solid #e5e7eb;
        border-radius:10px;
        background:#fff;
        font-size:13px;
    }

    .view-reviews{
        color:#111827;
    }

    .review-popup,
    .reviews-popup{
        padding:10px;
    }

    .review-popup-box,
    .reviews-popup-box{
        width:100%;
        max-width:100%;
        max-height:90vh;
        padding:16px;
        border-radius:12px;
    }

    .review-head{
        flex-direction:column;
        align-items:flex-start;
        gap:4px;
    }

    .popup-actions{
        flex-direction:column;
    }

    .review-cancel,
    .review-submit,
    .reviews-close{
        width:100%;
    }
}
/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.nav-inner {
    width: 100%;
    max-width: 935px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.shop-setup-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
}

.plus-symbol {
    font-size: 22px;
    font-weight: bold;
}

.setup-label {
    font-size: 11px;
}

.nav-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-icons img {
    width: 22px;
}

.chat-label {
    font-size: 11px;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 935px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

/* ================= PROFILE ================= */
.profile {
    display: flex;
    gap: 40px;
}

.profile-img {
    width: 150px;
    height: 150px;
    
    object-fit: cover;
   
}

.profile-info {
    flex: 1;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.verified-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.follow-btn {
    background: #0098db;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.bio {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

/* ================= TABS ================= */
.tabs {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid #ddd;
    margin-top: 20px;
    background: #fff;
}

.tab {
    padding: 15px 0;
    font-size: 13px;
    cursor: pointer;
    border-top: 2px solid transparent;
}

.tab.active {
    border-top: 2px solid black;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ================= POSTS GRID ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 10px;
}

.post-wrapper {
    display: flex;
    flex-direction: column;
}

.post {
    position: relative;
    cursor: pointer;
}

.post img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    transition: 0.3s;
    font-weight: bold;
}

.post:hover .overlay {
    opacity: 1;
}

.post-title {
    font-size: 13px;
    padding: 8px 6px 12px;
    font-weight: 600;
    color: #222;
    text-align: left;
}

/* ================= MODAL BASE ================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.show {
    display: flex;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 2200;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

/* ================= VIEW POST MODAL ================= */
.modal-content {
    background: #fff;
    display: flex;
    max-width: 900px;
    width: 90%;
    height: 80%;
    border-radius: 8px;
    overflow: hidden;
}

.modal-img {
    flex: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 10px;
}

.modal-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.modal-side {
    flex: 35%;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 13px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.wa-icon {
    width: 20px;
}

/* ================= NAVIGATION ARROWS (Shared) ================= */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    z-index: 3100;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left { 
    left: 20px; 
}

.nav-arrow.right { 
    right: 20px; 
}

/* Make sure arrows are above modal content */
#modal .nav-arrow,
#screenshotModal .nav-arrow {
    z-index: 3200;
}

/* ================= CREATE POST MODAL ================= */
.create-post-box {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    animation: scaleUp 0.25s ease;
    margin: 20px;
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.create-header h3 {
    margin-bottom: 6px;
    font-size: 22px;
}

.create-header p {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

/* Upload Area */
.upload-preview {
    width: 100%;
    min-height: 200px;
    border-radius: 15px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Upload Placeholder */
.upload-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    text-align: center;
    background: #f5f5f5;
    z-index: 5;
    transition: all 0.3s ease;
}

.upload-placeholder.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* Image Preview Container */
.image-preview-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: #fff;
    z-index: 10;
    display: none;
}

.image-preview-container.show {
    display: block !important;
}

#previewImage {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

/* Remove Image Button */
.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 20;
    border: 2px solid white;
}

.remove-image:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

#createPostModal input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin: 15px 0;
    font-size: 14px;
}

.publish-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0098db, #006fa1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
}

/* ================= SCREENSHOT MODAL ================= */
#screenshotModal {
    z-index: 3000;
}

.screenshot-modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

.screenshot-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* ================= SCREENSHOTS SECTION ================= */
.screenshot-section {
    margin-bottom: 40px;
    width: 100%;
}

.screenshot-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.screenshot-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
}

.screenshot-row::-webkit-scrollbar {
    height: 4px;
}

.screenshot-row::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.screenshot-row::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.screenshot {
    flex: 0 0 auto;
    height: 420px;
    min-width: 220px;
    background: #f8f8f8;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    overflow: hidden;
    padding: 10px;
    transition: 0.3s;
    cursor: pointer;
}

.screenshot img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.screenshot:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ================= APP CARD ================= */
.app-card {
    display: flex;
    align-items: left;
    gap: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 25px;
    border-radius: 20px;
    color: #fff;
    margin-top: 30px;
    width: 95%;
}

.app-icon {
    font-size: 50px;
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

/* Update the app-info section */
.app-info {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0; /* Important for flexbox to allow text wrapping */
}

.app-info h3 {
    margin-bottom: 5px;
    font-size: 20px;
    white-space: normal;
}

.app-info p {
    margin-bottom: 10px;
    opacity: 0.9;
    white-space: normal;
}

.apk-link {
    color: #fff;
    word-break: break-all; /* This will break long URLs */
    font-size: 13px;
    opacity: 0.8;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    line-height: 1.4;
}

/* ================= FOOTER ================= */
.footer {
    text-align: center;
    padding: 40px 20px 30px;
    color: #888;
    font-size: 13px;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    .container { margin: 80px 0; padding: 0 15px; }
    .profile { flex-direction: column; gap: 20px; }
    .profile-img { width: 100px; height: 100px; margin: 0 auto; }
    .stats { gap: 20px; }
    
    .modal-content {
        flex-direction: column;
        height: 100%;
        width: 100%;
        border-radius: 0;
    }
    
    .modal-img { 
        height: 60%; 
        width: 100%;
    }
    
    .modal-side { 
        height: 40%; 
    }
    
    .screenshot { 
        height: 320px; 
        min-width: 180px; 
    }
    
    .nav-arrow {
        font-size: 30px;
        width: 40px;
        height: 40px;
        padding: 0;
    }
    
    .nav-arrow.left { left: 5px; }
    .nav-arrow.right { right: 5px; }
    
    .create-post-box { padding: 20px; }
    .app-card { flex-direction: column; text-align: left; }
    .app-icon { margin: 0 auto; }
    .tabs { gap: 30px; }
}

@media (max-width: 480px) {
    .profile-top { flex-wrap: wrap; }
    .stats { gap: 15px; }
    .tabs { gap: 20px; }
    .tab { font-size: 12px; }
    .screenshot { height: 280px; min-width: 150px; }
}