﻿/* Star India - app style inner pages (Messages, Subscription). Scoped with sa- */
html { background: #fff !important; }
.sa { position: relative; z-index: 2; min-height: 100vh; background: #fff; color: #111; font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif; padding-bottom: 96px; }
.sa * { box-sizing: border-box; }
.sa a { text-decoration: none; }

.sa-top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #eee; }
.sa-bar { max-width: 760px; margin: 0 auto; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.sa-back { width: 36px; height: 36px; border-radius: 50%; background: #eceff1; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sa-back svg { width: 20px; height: 20px; fill: #111; }
.sa-h1 { margin: 0; font: 700 20px 'Poppins', sans-serif; color: #000; letter-spacing: 0; text-shadow: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #14141f; border: 2px solid #000; flex: 0 0 auto; }
.sa-av.sa-fallback { object-fit: contain; padding: 20%; }

.sa-wrap { max-width: 760px; margin: 0 auto; padding: 0 14px; }
.sa-sub { margin: 18px 0 8px; font: 700 16px 'Poppins', sans-serif; color: #000; }
.sa-note { padding: 10px 14px; border-radius: 12px; margin: 12px 0 0; font: 500 13px 'Poppins', sans-serif; }
.sa-note.err { background: #fdecea; color: #b3261e; }
.sa-note.ok { background: #e8f5e9; color: #1b5e20; }
.sa-empty { text-align: center; color: #666; padding: 18px 8px; font-size: 14px; }

.sa-list { list-style: none; margin: 0; padding: 0; }
.sa-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #f0f0f0; color: #111 !important; }
.sa-row .mid { flex: 1; min-width: 0; }
.sa-row .nm { font: 600 15px 'Poppins', sans-serif; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-row .ln { font: 400 13px 'Poppins', sans-serif; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-row .rt { text-align: right; font: 400 11px 'Poppins', sans-serif; color: #888; flex: 0 0 auto; }
.sa-badge { display: inline-block; min-width: 20px; padding: 1px 6px; margin-top: 3px; border-radius: 999px; background: #e50914; color: #fff; font: 700 11px 'Poppins', sans-serif; text-align: center; }
.sa-find { width: 100%; border: 1px solid #ddd; border-radius: 999px; padding: 10px 16px; font: 400 14px 'Poppins', sans-serif; outline: none; background: #fff; color: #111; margin-bottom: 4px; }
.sa-find:focus { border-color: #2e8b3d; }

/* chat */
.sa-thread { max-width: 760px; margin: 0 auto; padding: 14px 14px 150px; display: flex; flex-direction: column; gap: 8px; }
.sa-msg { max-width: 78%; padding: 9px 13px; border-radius: 18px; font: 400 14px/1.4 'Poppins', sans-serif; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.sa-msg time { display: block; margin-top: 3px; font-size: 10px; opacity: .65; }
.sa-msg.me { align-self: flex-end; background: #2e8b3d; color: #fff; border-bottom-right-radius: 5px; }
.sa-msg.them { align-self: flex-start; background: #eceff1; color: #111; border-bottom-left-radius: 5px; }
.sa-compose { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid #eee; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.sa-compose form { max-width: 760px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.sa-compose textarea { flex: 1; resize: none; border: 1px solid #ddd; border-radius: 20px; padding: 10px 14px; font: 400 14px 'Poppins', sans-serif; max-height: 110px; outline: none; background: #fff; color: #111; }
.sa-compose textarea:focus { border-color: #2e8b3d; }
.sa-send { border: 0; border-radius: 999px; background: #2e8b3d; color: #fff; padding: 11px 18px; font: 600 14px 'Poppins', sans-serif; cursor: pointer; }

/* subscription */
.sa-plans { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.sa-plan { border: 3px solid #000; border-radius: 18px; padding: 18px 16px; background: #fff; }
.sa-plan.pro { background: #000; color: #fff; border-color: #f7941d; }
.sa-plan h3 { margin: 0 0 4px; font: 700 20px 'Poppins', sans-serif; color: inherit; letter-spacing: 0; text-shadow: none; }
.sa-plan .tag { font: 500 13px 'Poppins', sans-serif; opacity: .75; }
.sa-plan ul { list-style: none; margin: 12px 0 14px; padding: 0; }
.sa-plan li { font: 400 14px 'Poppins', sans-serif; padding: 4px 0 4px 22px; position: relative; }
.sa-plan li:before { content: "\2713"; position: absolute; left: 0; color: #4cb050; font-weight: 700; }
.sa-plan.pro li:before { color: #f7941d; }
.sa-cur { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #eceff1; color: #111; font: 600 13px 'Poppins', sans-serif; }
.sa-buy { border: 0; border-radius: 999px; padding: 12px 20px; background: #f7941d; color: #fff; font: 600 15px 'Poppins', sans-serif; cursor: pointer; width: 100%; }

/* bottom tabs + toast (same as home) */
.sa-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #000; border-radius: 22px 22px 0 0; max-width: 620px; margin: 0 auto; display: flex; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); }
.sa-tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; padding: 4px 1px; color: #fff !important; font: 500 12px/1.15 'Poppins', sans-serif; background: none; border: 0; cursor: pointer; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sa-tab svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 auto; }
.sa-tab.on { color: #ff2d2d !important; }
.sa-toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(20px); background: #111; color: #fff; padding: 10px 18px; border-radius: 999px; font: 500 14px 'Poppins', sans-serif; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 70; max-width: 92vw; text-align: center; }
.sa-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#si-translate { bottom: 84px !important; left: 10px !important; }
.sa-chatpage #si-translate { display: none !important; }

@media (min-width: 640px) { .sa-plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) {
    .sa-tab { font-size: 10px; }
    .sa-tab svg { width: 22px; height: 22px; }
    #si-translate { left: 6px !important; bottom: 76px !important; padding: 4px 6px 4px 8px !important; transform: scale(.85); transform-origin: left bottom; }
}

/* ===== Feed / Tasks / Wallet / Hub / Profile (added 02-Nov-2026) ===== */
.sa-seg { display: flex; gap: 6px; background: #eceff1; border-radius: 999px; padding: 4px; margin: 12px 0; }
.sa-seg a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 999px; font: 600 14px 'Poppins', sans-serif; color: #111 !important; }
.sa-seg a.on { background: #000; color: #fff !important; }

.sa-card2 { border: 2px solid #000; border-radius: 16px; padding: 14px; margin: 12px 0; background: #fff; }
.sa-card2 h3 { margin: 0 0 4px; font: 700 17px 'Poppins', sans-serif; color: #000; letter-spacing: 0; text-shadow: none; }
.sa-card2 p { margin: 4px 0; font: 400 14px/1.45 'Poppins', sans-serif; color: #333; }

.sa-btn { display: inline-block; border: 0; border-radius: 999px; padding: 10px 18px; background: #2e8b3d; color: #fff !important; font: 600 14px 'Poppins', sans-serif; cursor: pointer; text-align: center; }
.sa-btn.alt { background: #f7941d; }
.sa-btn.dark { background: #000; }
.sa-btn.ghost { background: #eceff1; color: #111 !important; }
.sa-btn.on { background: #eceff1; color: #111 !important; }
.sa-btn.sm { padding: 6px 12px; font-size: 12px; }
.sa-btn.block { display: block; width: 100%; }
.sa-btn[disabled] { opacity: .5; cursor: default; }
.sa-row2 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.sa-field { width: 100%; border: 1px solid #ddd; border-radius: 12px; padding: 10px 14px; font: 400 14px 'Poppins', sans-serif; background: #fff; color: #111; margin: 4px 0 10px; outline: none; }
.sa-field:focus { border-color: #2e8b3d; }
.sa-label { display: block; font: 600 13px 'Poppins', sans-serif; color: #333; }
.sa-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.sa-money { font: 700 34px 'Poppins', sans-serif; color: #000; line-height: 1.1; }
.sa-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.sa-stat { background: #f5f5f5; border-radius: 14px; padding: 10px 12px; font: 500 12px 'Poppins', sans-serif; color: #555; }
.sa-stat b { display: block; font: 700 18px 'Poppins', sans-serif; color: #000; }
.sa-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eceff1; font: 600 11px 'Poppins', sans-serif; color: #333; }
.sa-tag.ok { background: #e8f5e9; color: #1b5e20; }
.sa-tag.wait { background: #fff3e0; color: #e65100; }
.sa-tag.no { background: #fdecea; color: #b3261e; }
.sa-pay { font: 700 22px 'Poppins', sans-serif; color: #2e8b3d; }
.sa-plus { color: #1b5e20; font-weight: 700; }
.sa-minus { color: #b3261e; font-weight: 700; }
.sa-copy { display: flex; gap: 8px; align-items: center; }
.sa-copy input { flex: 1; min-width: 0; margin: 0; }

/* reels */
.sf-reels { height: calc(100vh - 215px); height: calc(100dvh - 215px); min-height: 360px; overflow-y: auto; scroll-snap-type: y mandatory; border-radius: 16px; background: #000; -webkit-overflow-scrolling: touch; }
.sf-reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000; overflow: hidden; }
.sf-reel video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.sf-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.sf-info { position: absolute; left: 12px; right: 70px; bottom: 14px; color: #fff; }
.sf-info a { color: #fff !important; display: flex; align-items: center; gap: 8px; font: 600 15px 'Poppins', sans-serif; }
.sf-info p { margin: 6px 0 0; font: 400 13px/1.35 'Poppins', sans-serif; color: #fff; }
.sf-info small { opacity: .8; font-size: 11px; }
.sf-side { position: absolute; right: 10px; bottom: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.sf-act { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff !important; font: 700 10px 'Poppins', sans-serif; }
.sf-act svg { width: 22px; height: 22px; fill: #fff; }
.sf-act.on { background: #2e8b3d; }
.sf-fab { position: fixed; right: 16px; bottom: 90px; z-index: 62; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.sf-news { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.sf-news img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; background: #14141f; flex: 0 0 auto; }
.sf-news h4 { margin: 0 0 3px; font: 600 15px/1.3 'Poppins', sans-serif; color: #000; letter-spacing: 0; text-shadow: none; }
.sf-news small { color: #777; font: 400 12px 'Poppins', sans-serif; }
.sf-news .sa-row2 { margin-top: 8px; }

/* profile */
.sp-head { text-align: center; padding: 18px 0 6px; }
.sp-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #000; background: #14141f; }
.sp-photo.sa-fallback { object-fit: contain; padding: 22%; }
.sp-name { margin: 10px 0 2px; font: 700 22px 'Poppins', sans-serif; color: #000; letter-spacing: 0; text-shadow: none; }
.sp-nums { display: flex; justify-content: center; gap: 26px; margin: 12px 0; }
.sp-nums div { text-align: center; font: 500 12px 'Poppins', sans-serif; color: #555; }
.sp-nums b { display: block; font: 700 18px 'Poppins', sans-serif; color: #000; }
.sp-kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font: 400 14px 'Poppins', sans-serif; }
.sp-kv span:nth-child(odd) { color: #777; }
.sp-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sp-reels video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 10px; }

/* hub */
.sh-card { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.sh-card img { width: 64px; height: 80px; object-fit: cover; border-radius: 12px; background: #14141f; flex: 0 0 auto; }
.sh-card img.sa-fallback { object-fit: contain; padding: 14%; }
.sh-card .mid { flex: 1; min-width: 0; font: 400 13px/1.4 'Poppins', sans-serif; color: #555; }
.sh-card .mid b { display: block; font: 600 15px 'Poppins', sans-serif; color: #000; }
.sh-star { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #eceff1; font-size: 20px; cursor: pointer; color: #999; }
.sh-star.on { background: #fff3cd; color: #f7941d; }

/* more menu */
.sm-list a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid #f0f0f0; color: #111 !important; font: 600 15px 'Poppins', sans-serif; }
.sm-list a small { display: block; font: 400 12px 'Poppins', sans-serif; color: #777; }
.sm-list svg { width: 24px; height: 24px; fill: #111; flex: 0 0 auto; }

/* social icons */
.ss-row { display: flex; justify-content: center; gap: 12px; margin: 18px 0 6px; }
.ss-row a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff !important; font-size: 20px; }
.ss-fb { background: #1877f2; } .ss-ig { background: #e1306c; } .ss-yt { background: #ff0000; } .ss-wa { background: #25d366; }

/* join banner on home */
.sa-join { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #000; color: #fff; border-radius: 16px; padding: 12px 14px; margin: 12px 0 0; font: 500 13px/1.35 'Poppins', sans-serif; }
.sa-join b { color: #f7941d; }
