/* =========================================================
   RESET
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

/* =========================================================
   HTML + BODY
========================================================= */

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    overscroll-behavior:none;
}

/* =========================================================
   BODY
========================================================= */

body{
    background:#f4f4f4;
    font-family:Arial, Helvetica, sans-serif;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    overflow-x:hidden;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.main-container{
    width:100%;
    max-width:100%;
    height:100%;
    min-height:0;
    display:flex;
    flex-direction:column;
    padding-top:10px;
    padding-left:14px;
    padding-right:14px;
    padding-bottom:14px;
    overflow: hidden; 
}

/* =========================================================
   LOGO  — UPDATED
   Ab text nahi, SVG logo (O + cracks + rgete) hai.
   Splash ka logo yahin aakar fit hota hai.
========================================================= */

.logo{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:60px;
    font-weight:700;
    color:#000;
    line-height:1;
    margin-bottom:12px;
    user-select:none;
    flex-shrink:0;
}

/* splash khatam hone tak header logo chhupa rehta hai */
.logo .og-word{
    font-size:inherit;
    visibility:hidden;
}

/* =========================================================
   TOP BAR
========================================================= */

.top-bar{
    width:100%;
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:10px;
    flex-shrink:0;
}

/* =========================================================
   ICON BUTTON
========================================================= */

.icon-btn{
    width:64px;
    height:64px;
    min-width:64px;
    min-height:64px;
    border:none;
    outline:none;
    border-radius:50%;
    background:#ebebeb;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    flex-shrink:0;
    transition:0.15s ease;
}

.icon-btn:active{
    transform:scale(0.96);
}

.icon-btn i{
    font-size:28px;
    color:#000;
    pointer-events:none;
}

/* =========================================================
   SEARCH BOX
========================================================= */

.search-box{
    flex:1;
    min-width:0;
    height:64px;
    border:none;
    outline:none;
    border-radius:999px;
    background:#ebebeb;
    padding-left:22px;
    padding-right:22px;
    font-size:16px;
    color:#000;
    appearance:none;
    -webkit-appearance:none;
}

.search-box::placeholder{
    color:#888;
}

button:focus,
input:focus{
    outline:none;
}

/* =========================================================
   COMMUNITY BUTTON
========================================================= */

.community-btn{
    width:100%;
    height:56px;
    border:none;
    background:#ebebeb;
    color:#111;
    font-size:18px;
    font-weight:500;
    border-radius:999px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    flex-shrink:0;
    margin-bottom:10px;
    transition:transform 0.1s ease;
}

.community-btn:active{
    transform:scale(0.97);
}

/* =========================================================
   FEED BOX
========================================================= */

.feed-box{
    flex:1;
    width:100%;
    background:#c4c4c4;
    border-radius:42px;
    overflow-y:auto;
    overflow-x:hidden;
    display:flex;
    flex-direction:column;
    gap:10px;
    justify-content:flex-start;
    align-items:stretch;
    padding:12px;
    padding-bottom:20px;
    min-height:0;
   -webkit-mask-image:none;
}
    .feed-box::-webkit-scrollbar{
    display:none;
}


/* =========================================================
   MOBILE FIX
========================================================= */

input,
textarea,
select{
    font-size:16px !important;
}

/* =========================================================
   GENERIC ANIMATED MODAL
========================================================= */

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:999;
    padding:24px;
    visibility:hidden;
    pointer-events:none;
    transition:background 0.25s ease,
               visibility 0s linear 0.25s;
}

.modal-overlay.active{
    background:rgba(0,0,0,0.5);
    visibility:visible;
    pointer-events:auto;
    transition:background 0.25s ease;
}

.modal-box{
    width:100%;
    max-width:380px;
    background:#fff;
    border-radius:28px;
    padding:28px 24px;
    display:flex;
    flex-direction:column;
    gap:8px;
    transform:scale(0.8) translateY(16px);
    opacity:0;
    transition:transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
               opacity 0.2s ease;
}

.modal-overlay.active .modal-box{
    transform:scale(1) translateY(0);
    opacity:1;
}

.modal-name{
    font-size:22px;
    font-weight:900;
    color:#111;
    word-break:break-word;
}

.modal-name:empty{
    display:none;
}

.modal-text{
    font-size:14px;
    color:#888;
    margin-bottom:16px;
    line-height:1.4;
}

.modal-actions{
    display:flex;
    gap:10px;
}

.modal-delete-btn,
.modal-cancel-btn,
.modal-ok-btn{
    flex:1;
    height:54px;
    border-radius:999px;
    font-size:15px;
    font-weight:700;
    letter-spacing:1px;
    border:none;
    cursor:pointer;
    transition:transform 0.1s ease;
}

.modal-delete-btn{
    background:#e03030;
    color:#fff;
}

.modal-cancel-btn{
    background:#eee;
    color:#111;
}

.modal-ok-btn{
    background:#111;
    color:#fff;
}

.modal-delete-btn:active,
.modal-cancel-btn:active,
.modal-ok-btn:active{
    transform:scale(0.97);
}

/* =========================================================
   RESPONSIVE 480px
========================================================= */

@media screen and (max-width:480px){

    .logo{ font-size:54px; }

    .icon-btn{
        width:60px;
        height:60px;
        min-width:60px;
        min-height:60px;
    }

    .icon-btn i{ font-size:26px; }

    .search-box{ height:60px; }

    .feed-box{ border-radius:36px; }
}

/* =========================================================
   RESPONSIVE 360px
========================================================= */

@media screen and (max-width:360px){

    .logo{ font-size:46px; }

    .top-bar{ gap:10px; }

    .icon-btn{
        width:54px;
        height:54px;
        min-width:54px;
        min-height:54px;
    }

    .icon-btn i{ font-size:24px; }

    .search-box{
        height:54px;
        padding-left:18px;
        padding-right:22px;
    }

    .feed-box{ border-radius:32px; }
}

/* =========================================================
   LANDSCAPE BLOCK  — UPDATED
   Ab sirf phone landscape (chhoti height) par message aayega.
   Laptop par nahi aayega.
========================================================= */

@media screen and (orientation: landscape) and (max-height:500px){
    body::before{
        content: "Please rotate your phone";
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: #f4f4f4;
        font-size: 22px;
        font-weight: 600;
        color: #111;
        text-align: center;
        padding-top: 40vh;
    }
}


/* ye nya add kiay leptop per sahi dikhne ke liye ui */
@media screen and (min-width:600px){

    html{
        background:#dcdcdc;
    }

    body{
        max-width:480px;
        margin:0 auto;
        position:relative;
        transform:translateZ(0);
        background:#f4f4f4;
    }
}