
:root{
  --bg:#ffd1dc;
  --card:#ffffff;
  --accent:#ff4fa3;
  --text:#1f1f1f;
  --muted:#6b6b6b;
  --border:#f2a7c4;
}
*{box-sizing:border-box;}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);}
a{color:inherit;text-decoration:none;}
header{position:sticky;top:0;z-index:20;background:rgba(255,209,220,0.92);backdrop-filter:blur(8px);border-bottom:1px solid rgba(0,0,0,0.06);}
.container{max-width:1180px;margin:0 auto;padding:14px 16px;}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.brand{display:flex;align-items:center;gap:10px;}
.brand img{width:42px;height:42px;border-radius:10px;object-fit:cover;border:1px solid rgba(0,0,0,.1);}
.brand .title{font-weight:800;letter-spacing:.5px}
.rightControls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.langBtns button,.authBtns button{border:1px solid rgba(0,0,0,0.12);background:#fff;padding:6px 10px;border-radius:10px;cursor:pointer;font-weight:700;}
.langBtns button.active{background:var(--accent);color:#fff;border-color:var(--accent);}
.pills{display:flex;gap:8px;flex-wrap:wrap;}
.pill{background:#fff;border:1px solid rgba(0,0,0,0.12);padding:6px 10px;border-radius:999px;font-weight:700;cursor:pointer;}
.pill.active{background:var(--accent);color:#fff;border-color:var(--accent);}
.searchRow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px;}
.searchRow input, .searchRow select{border:1px solid rgba(0,0,0,.15);border-radius:12px;padding:10px 12px;background:#fff;}
.searchRow input{min-width:260px;flex:1;}
.main{display:flex;gap:14px;align-items:flex-start;margin-top:14px;}
.leftCol{width:310px;flex:0 0 310px;}
.rightCol{flex:1;}
.card{background:var(--card);border:1px solid rgba(0,0,0,.10);border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,.08);}
.adsGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}
.adItem{padding:10px;display:flex;gap:10px;align-items:center;min-height:74px;cursor:pointer;}
.adThumb{width:56px;height:56px;border-radius:12px;overflow:hidden;border:1px solid rgba(0,0,0,.10);background:#fff;display:flex;align-items:center;justify-content:center;}
.adThumb img{width:100%;height:100%;object-fit:cover;}
.adText{font-weight:800;line-height:1.1;}
.adSub{color:var(--muted);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px;}
.sectionTitle{font-weight:900;margin:12px 0 10px 0;}
.tickerBox{padding:12px;}
.tickerViewport{height:540px;overflow:hidden;position:relative;border-radius:14px;border:1px solid rgba(0,0,0,.08);background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75));}
.tickerTrack{position:absolute;left:0;right:0;top:0;will-change:transform;}
.tickerItem{display:flex;gap:10px;align-items:center;padding:10px 10px;border-bottom:1px dashed rgba(0,0,0,.08);font-weight:800;}
.tickerItem .meta{color:var(--muted);font-weight:700;font-size:12px;margin-top:2px;}
.tickerAvatar{width:36px;height:36px;border-radius:12px;background:rgba(255,79,163,.12);border:1px solid rgba(255,79,163,.25);display:flex;align-items:center;justify-content:center;font-weight:900;color:var(--accent);}
.projectsWrap{padding:12px;}
.projectsGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.projCard{overflow:hidden;display:flex;flex-direction:column;}
.projCover{height:140px;background:#fff;border-bottom:1px solid rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center;position:relative;}
.projCover img,.projCover video{width:100%;height:100%;object-fit:cover;}

.projCoverClickable{cursor:pointer;}
.carouselWrap{position:absolute;inset:0;overflow:hidden;border-radius:0;}
.carouselSlide{position:absolute;inset:0;opacity:0;transition:opacity .35s ease;will-change:opacity;}
.carouselSlide.active{opacity:1;}
.carouselSlide img,.carouselSlide video{width:100%;height:100%;object-fit:cover;}
.carouselDots{position:absolute;right:8px;bottom:8px;display:flex;gap:5px;background:rgba(0,0,0,.25);padding:4px 6px;border-radius:999px;backdrop-filter:blur(4px);}
.carouselDot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.55);}
.carouselDot.active{background:#fff;}

.imgViewerBackdrop{background:rgba(0,0,0,.82);z-index:120;}
.imgViewerBox{position:relative;max-width:96vw;max-height:96vh;}
.imgViewerBox img{max-width:96vw;max-height:96vh;border-radius:14px;border:1px solid rgba(255,255,255,.22);background:#000;}
.imgViewerClose{position:absolute;top:-10px;right:-10px;border:none;background:#fff;border-radius:999px;width:36px;height:36px;cursor:pointer;font-weight:900;box-shadow:0 8px 18px rgba(0,0,0,.35);}
.projBody{padding:10px 10px 12px 10px;display:flex;flex-direction:column;gap:6px;}
.projTitle{font-weight:900;line-height:1.1;min-height:36px;}
.projMeta{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;font-weight:700;}
.progressOuter{height:10px;border-radius:999px;background:rgba(0,0,0,.06);overflow:hidden;}
.progressInner{height:100%;background:var(--accent);width:0%;}
.projBtns{display:flex;gap:8px;margin-top:6px;}
.btn{flex:1;border:none;border-radius:12px;padding:9px 10px;font-weight:900;cursor:pointer;}
.btnPrimary{background:var(--accent);color:#fff;}
.btnGhost{background:#fff;border:1px solid rgba(0,0,0,.12);}
.pager{display:flex;gap:8px;justify-content:flex-end;margin-top:10px;align-items:center;}
.pager button{border:1px solid rgba(0,0,0,.12);background:#fff;border-radius:12px;padding:8px 10px;cursor:pointer;font-weight:800;}
.pager .info{color:var(--muted);font-weight:800;font-size:12px;}
footer{margin-top:14px;}
.footerBar{padding:14px 12px;text-align:center;border-radius:18px;border:1px solid rgba(0,0,0,.10);background:#fff;font-weight:900;}
.footerBar a{color:var(--accent);text-decoration:underline;}
.footerSmall{display:block;color:var(--muted);font-weight:700;font-size:12px;margin-top:6px;}
.modalBackdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;padding:16px;z-index:100;}
.modal{width:min(920px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;border:1px solid rgba(0,0,0,.12);box-shadow:0 10px 26px rgba(0,0,0,.25);}
.modalHeader{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid rgba(0,0,0,.08);}
.modalHeader h3{margin:0;font-weight:950;}
.modalClose{border:none;background:#fff;border-radius:12px;padding:8px 10px;cursor:pointer;font-weight:900;}
.modalBody{padding:12px 14px;}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.field label{display:block;font-weight:900;margin-bottom:6px;}
.field input,.field textarea,.field select{width:100%;border:1px solid rgba(0,0,0,.15);border-radius:12px;padding:10px 12px;}
.field textarea{min-height:110px;resize:vertical;}
.payBox{border:1px dashed rgba(0,0,0,.18);border-radius:14px;padding:10px 12px;background:rgba(255,79,163,.06);white-space:pre-wrap;font-weight:800;}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:rgba(255,79,163,.12);border:1px solid rgba(255,79,163,.22);color:var(--accent);font-weight:900;font-size:12px;}
.moreMedia{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px;}
.moreMedia img,.moreMedia video{width:100%;border-radius:12px;border:1px solid rgba(0,0,0,.10);background:#fff;max-height:180px;object-fit:cover;}
@media(max-width:1100px){
  .projectsGrid{grid-template-columns:repeat(3,1fr);}
  .leftCol{width:290px;flex-basis:290px;}
}
@media(max-width:920px){
  .main{flex-direction:column;}
  .leftCol{width:100%;flex-basis:auto;}
  .projectsGrid{grid-template-columns:repeat(2,1fr);}
  .tickerViewport{height:320px;}
  .adsGrid{grid-template-columns:repeat(2,1fr);}
}
