/* =========================================================
   USER PAGE (orgete_box.html)
========================================================= */

/* Bada card: pager (4 page, swipe) + dots */

.bx-big{
    flex:1;
    min-height:0;
    background:#e0e0e0;
    border-radius:28px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}

.bx-pager{
    flex:1;
    min-height:0;
    display:flex;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}

.bx-pager::-webkit-scrollbar{ display:none; }

.bx-pg{
    flex:0 0 100%;
    min-width:0;
    scroll-snap-align:start;
    scroll-snap-stop:always;
    overflow-y:auto;
    overscroll-behavior-y:contain;
    padding:12px 12px 6px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.bx-pg > *{ flex-shrink:0; }

.bx-thread{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding-bottom:12px;
}

.bx-thread + .bx-thread{
    border-top:2px dashed #cdcdcd;
    padding-top:12px;
}

.bx-comp{
    display:flex;
    flex-direction:column;
}

.bx-comp:not(:empty){
    animation:bx-fade .18s ease;
}

.bx-dots{
    flex-shrink:0;
    display:flex;
    justify-content:center;
    gap:7px;
    padding:8px 0 12px;
}

.bx-pdot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#bdbdbd;
    transition:width .2s ease, background .2s ease;
}

.bx-pdot.on{
    width:22px;
    border-radius:8px;
    background:#111;
}

/* Neeche ke square cards */

.bx-page.kb .bx-squares.user{
    display:none !important;
}

.bx-sq.active{
    background:#fff;
    box-shadow:inset 0 0 0 3px #111;
}

.bx-mini{
    width:74%;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.bx-mini i{
    display:block;
    height:4px;
    border-radius:3px;
    background:#c6c6c6;
}

.bx-mini i.s{ width:60%; }
.bx-mini i.t{ height:11px; }

.bx-mini b{
    display:block;
    height:5px;
    border-radius:3px;
    background:#111;
    margin-top:1px;
}

.bx-dot{
    position:absolute;
    top:7px;
    right:7px;
    width:11px;
    height:11px;
    border-radius:50%;
    background:#e03030;
}

/* Bheja hua card: date left, "Successfully sent" pill right */

.bx-sentrow{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.bx-sentrow .bx-sent{
    font-size:12px;
    color:#999;
    flex-shrink:0;
}

.bx-sentrow .bx-pill{
    white-space:normal;
    flex-shrink:1;
    text-align:left;
    line-height:1.3;
}

/* Form ke chhote hisse */

.bx-lock{
    color:#ff5a5a;
    font-size:15px;
}

.bx-err{
    color:#e03030 !important;
    font-size:13px !important;
}

.bx-err:empty{ display:none; }

.bx-copy{
    border:none;
    background:#fff;
    color:#111;
    font-family:inherit;
    font-size:13px;
    font-weight:700;
    padding:9px 16px;
    border-radius:50px;
    cursor:pointer;
    flex-shrink:0;
    transition:transform .1s ease;
}

.bx-copy:active{ transform:scale(.94); }

/* Clear button */

.bx-clearrow{
    display:flex;
    justify-content:center;
}

.bx-clear{
    border:none;
    background:#d3d3d3;
    color:#333;
    font-family:inherit;
    font-size:12px;
    font-weight:700;
    padding:8px 14px;
    border-radius:50px;
    display:flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
    transition:transform .1s ease;
}

.bx-clear:active{ transform:scale(.95); }

/* Skeleton (user page) */

.bx-sk-block{
    pointer-events:none;
    color:transparent;
    background:linear-gradient(90deg,#d4d4d4 0px,#e6e6e6 40px,#d4d4d4 80px);
    background-size:600px 100%;
    animation:bx-shimmer 1.4s ease-in-out infinite;
    border-radius:22px;
    width:92%;
    flex-shrink:0;
    margin-bottom:8px;
}

/* Detailed skeleton: card ke andar ki har line shimmer karti hai */
.sk-l{
    display:block;
    flex-shrink:0;
    border-radius:8px;
    background:linear-gradient(90deg,#e4e4e4 0px,#f3f3f3 40px,#e4e4e4 80px);
    background-size:600px 100%;
    animation:bx-shimmer 1.4s ease-in-out infinite;
}

.bx-skcard{
    pointer-events:none;
}

/* Neeche ke squares ka skeleton */
.bx-sksq{
    pointer-events:none;
    align-items:center;
}

.bx-sksq .sk-ic{
    width:18px;
    height:18px;
    border-radius:50%;
}

.bx-sksq .sk-mini{
    width:74%;
    height:20px;
    border-radius:6px;
}

.bx-sksq .sk-lb{
    width:60%;
    height:9px;
}

/* ORGETE KE CARDS (user page): admin jaisa gray (color common.css se), chhote */
.bx-bub.org{
    padding:12px 14px;
    gap:6px;
}

.bx-bub.org h2{ font-size:15px; }

/* TIMELINE CARD (bade box ke andar) */
.bx-tl{
    background:#f6f6f6;
    border-radius:22px;
    padding:12px 14px 12px;
}

.bx-tl-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.bx-tl-top{
    font-size:13px;
    font-weight:800;
    color:#111;
}

.bx-tl-more{
    width:30px;
    height:30px;
    flex-shrink:0;
    border:none;
    border-radius:50%;
    background:#e6e6e6;
    color:#111;
    font-size:13px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:transform .1s ease;
}

.bx-tl-more:active{ transform:scale(.9); }

.bx-tl-track{
    display:flex;
    align-items:center;
    padding:14px 22px 26px;
}

.bx-tl-node{
    position:relative;
    width:14px;
    height:14px;
    flex-shrink:0;
    border-radius:50%;
    background:#cfcfcf;
    transition:background .4s ease, box-shadow .4s ease;
}

.bx-tl-node.done{ background:#111; }

.bx-tl-node.now{
    background:#fff;
    box-shadow:0 0 0 3px #111;
}

.bx-tl-nl{
    position:absolute;
    top:24px;
    left:50%;
    transform:translateX(-50%);
    font-size:11px;
    font-weight:700;
    color:#999;
    white-space:nowrap;
}

.bx-tl-node.done .bx-tl-nl,
.bx-tl-node.now .bx-tl-nl{ color:#111; }

.bx-tl-line{
    flex:1;
    height:3px;
    border-radius:3px;
    background:#d4d4d4;
    margin:0 8px;
    transition:background .4s ease;
}

.bx-tl-line.fill{ background:#111; }

.bx-tl-cap{
    font-size:12px;
    line-height:1.4;
    color:#777;
}