/* EchoMateLite shared styles */
:root {
  --bg-dark: #0b1120;
  --bg-soft: #0f1b38;
  --bg-panel: #ffffff;
  --text-primary: #0f172a;
  --text-muted: #475569;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --border: rgba(15, 23, 42, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body{
    margin:0;
    min-height:100vh;
    font-family:'Plus Jakarta Sans',sans-serif;
    background:#0f0f10;
    color:#fff;
    padding-bottom:120px;
    -webkit-font-smoothing:antialiased;
}

body::before,
body::after{
    content:"";
    position:fixed;
    width:420px;
    height:420px;
    border-radius:50%;
    filter:blur(120px);
    z-index:-1;
    opacity:.35;
}

body::before{
    background:#60a5fa;
    top:-180px;
    left:-180px;
}

body::after{
    background:#22d3ee;
    bottom:-180px;
    right:-180px;
}
.auth-card{
    background:rgba(255,255,255,.97);
    border-radius:30px;
    padding:40px;
    box-shadow:0 25px 70px rgba(0,0,0,.18);
}
@media(max-width:768px){

.container{
    max-width:700px;
    margin:auto;
    padding:0;
}

.auth-card{
    width:100%;
    padding:28px;
    border-radius:25px;
}

.brand-title{
    font-size:2rem;
}

.brand-subtitle{
    font-size:15px;
}

}
.container-hero{
    min-height:100vh;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px 20px;
    position:relative;
    overflow:hidden;
}
.container-hero::before{
    content:"";
    position:absolute;
    width:320px;
    height:320px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    top:-100px;
    right:-100px;
    filter:blur(30px);
}

.container-hero::after{
    content:"";
    position:absolute;
    width:260px;
    height:260px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    bottom:-80px;
    left:-80px;
    filter:blur(25px);
}

.hero-card,
.auth-card {
  width: min(100%, 560px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.08);
  padding: 2.5rem;
}

.hero-card {
  padding: 3rem;
}



.brand-header {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #7dd3fc);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.brand-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

.brand-subtitle {
  margin: 0.75rem 0 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 40rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.cta-group .btn {
  min-width: 140px;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7dd3fc);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta-group .btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
}

.btn-secondary {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.1);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.w-100 {
  width: 100%;
}

.feature-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: #f8fbff;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 18px;
}

.feature-item span {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.auth-card h1 {
  margin-bottom: 1rem;
}

.auth-card .form-label {
  font-weight: 600;
}

.auth-card .form-control,
.auth-card .form-select,
.auth-card .form-control:focus {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: none;
}

.auth-card .btn {
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.auth-card .btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
}

.auth-card .btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1d4ed8, #22d3ee);
}

.auth-card .btn-secondary {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

.auth-card .btn-secondary:hover {
  background: #e2e8f0;
}

.auth-card .aux-link {
  color: #64748b;
  text-decoration: none;
}

.auth-card .aux-link:hover {
  color: #2563eb;
}

.auth-card .page-note {
  text-align: center;
  margin-top: 1.5rem;
  color: #64748b;
  font-size: 0.95rem;
}

/* Bottom Navbar */

.bottom-nav-container{
    position:fixed;

    left:50%;
    bottom:18px;

    transform:translateX(-50%);

    width:min(92%,430px);

    height:74px;

    display:flex;
    justify-content:space-around;
    align-items:center;

    background:rgba(20,20,20,.92);

    backdrop-filter:blur(24px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:999px;

    box-shadow:
        0 15px 45px rgba(0,0,0,.45);

    z-index:9999;
}

.nav-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:4px;

    color:#8e8e8e;

    text-decoration:none;

    transition:.25s;
}

.nav-item span{
    font-size:22px;
}

.nav-item:hover{
    color:#ffffff;

    transform:translateY(-4px);
}

.nav-icon{
    font-size:23px;

    line-height:1;
}

@media(max-width:768px){

.bottom-nav{
    width:96%;
    bottom:10px;
    border-radius:16px;
    padding:10px 4px;
}

.nav-item span{
    font-size:20px;
}

.nav-item small{
    font-size:11px;
}

}

input[type="file"]{
    width:100%;
    background:#fff;
    border-radius:15px;
    padding:10px;
    margin:15px 0;
}

.upload-btn{
    width:100%;
    border-radius:15px;
    padding:12px;
    font-weight:600;
}
.post-card img{
    width:100%;
    height:auto;
    border-radius:18px;
    display:block;
}
.post-card{
    margin:20px 10px;
    border-radius:20px;
}

/* ===== PROFILE PAGE ===== */

.profile-card{
    max-width:900px;
    margin:40px auto;
    background:#ffffff;
    border-radius:30px;
    padding:35px;
    box-shadow:0 20px 60px rgba(15,23,42,.10);
}
.profile-header{
    background:linear-gradient(135deg,#2563eb,#38bdf8);
    border-radius:25px;
    padding:35px 20px;
    margin-bottom:30px;
    text-align:center;
    color:#fff;
}
.profile-pic{
    width:140px;
    height:140px;
    object-fit:cover;
    border-radius:50%;
    border:5px solid #fff;
    box-shadow:0 12px 35px rgba(0,0,0,.18);
    margin-bottom:15px;
}
.stats{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin:30px 0;
}

.stat-item{
    flex:1;
    background:#ffffff;
    border-radius:20px;
    padding:18px 10px;
    text-align:center;
    text-decoration:none;
    color:#1e3a8a;
    box-shadow:0 10px 25px rgba(37,99,235,.12);
    transition:.3s;
    border:1px solid rgba(37,99,235,.08);
}

.stat-item:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 35px rgba(37,99,235,.18);
}

.stat-item h4{
    margin:0;
    font-size:30px;
    font-weight:800;
    color:#2563eb;
}

.stat-item span{
    display:block;
    margin-top:6px;
    color:#64748b;
    font-size:15px;
    font-weight:600;
}

@media(max-width:768px){

.stats{
    gap:10px;
}

.stat-item{
    padding:15px 8px;
}

.stat-item h4{
    font-size:24px;
}

.stat-item span{
    font-size:13px;
}

}
.bio{
    background:#ffffff;
    border-radius:25px;
    padding:25px;
    margin:25px 0;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.bio h5{
    color:#1e3a8a;
    font-weight:700;
}

.bio p{
    color:#475569;
    margin-bottom:20px;
}

/* ===== TOP NAV ===== */

.navbar{
    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 22px;

    background:#111;
}

.brand h2{
    margin:0;
    font-size:34px;
    font-weight:900;
    letter-spacing:-1px;

    background:linear-gradient(90deg,#7c3aed,#4f46e5);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.notify-btn{
    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;
    text-decoration:none;

    background:#1a1a1a;
    color:#fff;

    transition:.25s;
}

.notify-btn:hover{
    background:#2b2b2b;
    color:#fff;
}

.notify-btn i{
    font-size:20px;
}

.stories-container{
    display:flex;
    gap:18px;

    overflow-x:auto;
    overflow-y:hidden;

    padding:12px 22px 26px;

    scroll-behavior:smooth;

    -ms-overflow-style:none;
    scrollbar-width:none;
}

.stories-container::-webkit-scrollbar{
    display:none;
}

.story-wrapper{
    display:flex;
    flex-direction:column;
    align-items:center;

    min-width:78px;

    text-decoration:none;
}

.story-avatar{
    width:74px;
    height:74px;

    padding:3px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        #ffdc80,
        #fc466b,
        #8b5cf6
    );

    display:flex;
    justify-content:center;
    align-items:center;

    flex-shrink:0;
}

.story-avatar img{
    width:100%;
    height:100%;

    border-radius:50%;

    border:3px solid #090909;

    object-fit:cover;

    display:block;
}

.story-name{
    margin-top:8px;

    color:#ffffff;

    font-size:12px;

    font-weight:600;

    text-align:center;

    max-width:76px;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.post-gradient{
    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:180px;

    z-index:2;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.88),
        rgba(0,0,0,.45),
        transparent
    );

    pointer-events:none;
}

.post-media-overlay{
    position:absolute;

    top:0;
    left:0;
    right:0;

    z-index:5;

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    padding:20px;

    background:linear-gradient(
        to bottom,
        rgba(0,0,0,.70),
        transparent
    );
}

.post-image,
.post-video{
    width:100%;

    height:640px;

    object-fit:cover;

    display:block;

    background:#000;
}

.post-media-wrapper{
    position:relative;

    overflow:hidden;

    border-radius:34px;

    background:#151515;

    box-shadow:
        0 15px 45px rgba(0,0,0,.55);

    isolation:isolate;
}

.feed-card{
    width:min(100%,640px);

    margin:0 auto 38px;

    padding:0 16px;

    background:transparent;

    border:none;

    overflow:visible;
}
.comment-input{
    flex:1;
    height:48px;
    border:none;
    outline:none;
    border-radius:999px;
    background:#1b1b1b;
    color:#fff;
    padding:0 20px;
    font-size:14px;
}

.comment-input::placeholder{
    color:#8d8d8d;
}

.comment-input:focus{
    background:#242424;
}

.comment-btn{
    height:48px;
    padding:0 24px;
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg,#3b82f6,#8b5cf6);
    color:#fff;
    font-weight:700;
}

.comment-btn:hover{
    opacity:.95;
}
/* --- INSTAGRAM STYLE LIVE RING & BADGE --- */
.story-avatar.is-live {
    /* Live stream ke liye ek solid red/pink animation ring */
    background: #FF3B30;
    animation: pulseLiveRing 1.5s infinite;
}

@keyframes pulseLiveRing {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.live-badge {
    position: absolute;
    bottom: 22px; /* Avatar ke theek neeche set karne ke liye */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #E2003D, #FF0055);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 2px solid #000000; /* Black border taaki overlap clean lage */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}
