@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Noto+Kufi+Arabic:wght@400;600;700;800&family=Press+Start+2P&display=swap');
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#050b07;color:#eef5ef;font-family:Cairo,Tahoma,Arial,sans-serif}.topbar{height:68px;position:fixed;inset:0 0 auto 0;background:#050805ee;backdrop-filter:blur(10px);border-bottom:1px solid #17341d;z-index:20;display:flex;align-items:center;padding:0 18px}.menu-btn{width:46px;height:42px;border:1px solid #285b31;border-radius:9px;background:#0d1910;color:#62ed70;font-size:23px;cursor:pointer}.brand{margin-right:auto;text-decoration:none;color:white;font-weight:900;letter-spacing:2px;font-size:21px}.brand b{color:#55e967}.side{position:fixed;z-index:15;top:68px;right:0;bottom:0;width:245px;background:#070d08;border-left:1px solid #18351f;padding:25px 14px;transition:.25s}.side-title{color:#667b6b;font-size:12px;letter-spacing:3px;margin:0 10px 15px}.nav{width:100%;padding:15px;border:0;border-right:4px solid transparent;border-radius:9px;background:transparent;color:#c6d0c8;text-align:right;cursor:pointer;font-size:15px;margin:4px 0}.nav span{margin-right:8px}.nav.home.active,.nav.home:hover{background:#351414;color:#ff6262;border-right-color:#ff3d3d}.nav.mods.active,.nav.mods:hover{background:#0b3116;color:#5cec6b;border-right-color:#3ed953}.nav.packs.active,.nav.packs:hover{background:#3a300e;color:#ffe260;border-right-color:#ffd42e}.nav.admin.active,.nav.admin:hover{background:#16221a;color:#a4ffad;border-right-color:#7bea86}main{margin-right:245px;padding:92px 28px 55px;max-width:1400px;margin-left:auto}.page{display:none;max-width:1120px;margin:auto}.page.active{display:block}.hero{min-height:450px;border:1px solid #1d4826;border-radius:22px;padding:70px 55px;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 70% 15%,#16401f,#09130c 48%,#060a07);position:relative;overflow:hidden}.hero:after{content:"";position:absolute;inset:0;opacity:.12;background-image:linear-gradient(45deg,#4ee25d 25%,transparent 25%,transparent 75%,#4ee25d 75%);background-size:38px 38px}.hero>*{position:relative;z-index:1}.eyebrow{font-size:11px;letter-spacing:3px;color:#58e96a;font-weight:900;margin-bottom:10px}.purple{color:#c26aff}.yellow{color:#ffe05a}.green{color:#57e66b}.hero h1{font-size:clamp(36px,6vw,66px);margin:0 0 14px}.hero em{color:#55e667;font-style:normal}.hero p{color:#9aab9e;line-height:1.9;max-width:650px;font-size:17px}.primary{border:0;background:#43db58;color:#031006;font-weight:900;border-radius:8px;padding:13px 20px;cursor:pointer}.wide{width:100%;margin-top:10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:15px}.stats div{background:#0a130d;border:1px solid #193720;border-radius:14px;padding:20px;text-align:center}.stats strong{display:block;color:#55e967;font-size:25px}.stats span{color:#839487;font-size:12px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.heading h2{font-size:34px;margin:0}.tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:16px}.tab{border:1px solid #29412e;background:#0b150e;color:#c3cec6;border-radius:8px;padding:11px 17px;cursor:pointer}.tab.active.combat{background:#4c2163;color:#fff;border-color:#b35ce0}.tab.active.new{background:#75345a;color:#fff;border-color:#e86eaf}.tab.active.all{background:#165a25;color:#fff;border-color:#4bdb61}.search input,.auth input,.panel input,.panel select,.panel textarea{width:100%;background:#07100a;color:#edf4ee;border:1px solid #29452f;border-radius:8px;padding:12px;margin:5px 0}.search{margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{overflow:hidden;background:#0a130d;border:1px solid #1a3820;border-radius:14px}.thumb{height:155px;background:#102317;display:flex;align-items:center;justify-content:center;color:#54df67;font-size:42px}.thumb img{width:100%;height:100%;object-fit:cover}.body{padding:15px}.body h3{margin:9px 0}.body p{color:#91a095;font-size:13px;line-height:1.65;min-height:42px}.badge{font-size:10px;color:#dda0ff;background:#412255;padding:5px 8px;border-radius:5px}.download{display:block;background:#3dd853;color:#031006;text-decoration:none;text-align:center;font-weight:900;padding:10px;border-radius:7px;margin-top:12px}.empty{text-align:center;border:1px dashed #2b4831;border-radius:16px;padding:80px 20px;color:#85958a}.empty div{font-size:50px;color:#ffe05a}.auth,.panel{background:#0a130d;border:1px solid #1c3c23;border-radius:15px;padding:24px;margin-bottom:16px}.auth{max-width:470px;margin:60px auto}.auth h2{margin-top:0}.msg{min-height:18px;color:#ef7777;font-size:13px}.hidden{display:none!important}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.panel textarea{height:100px;resize:vertical}.upload{display:block;border:1px dashed #315938;padding:13px;border-radius:8px;color:#9aac9f;margin:7px 0}.upload input{border:0;padding:4px}.actions{display:flex;gap:8px;margin-top:8px}.secondary,.logout,.edit,.delete{border:1px solid #31583a;background:#101c13;color:#a9b9ad;padding:10px 15px;border-radius:8px;cursor:pointer}.logout{margin-right:auto}.adminrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #18331e}.adminrow:last-child{border-bottom:0}.adminrow small{display:block;color:#849589}.rowactions{display:flex;gap:6px}.delete{color:#ff7777;border-color:#663434}.edit{color:#70ee7c}#toast{position:fixed;bottom:20px;left:20px;background:#16231a;border:1px solid #3d6943;padding:12px 17px;border-radius:9px;display:none;z-index:50}@media(max-width:800px){.side{transform:translateX(100%)}.side.open{transform:translateX(0)}main{margin-right:0;padding:84px 13px 35px}.hero{padding:42px 24px}.grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.heading h2{font-size:27px}}

.authgate{min-height:100vh;display:grid;place-items:center;background:#050b07}.authgate .auth{margin:0;width:min(470px,92vw)}
.profile-wrap{margin-right:12px;position:relative}.profile{width:40px;height:40px;border-radius:50%;border:1px solid #285b31;background:#0d1910;color:#62ed70;cursor:pointer}.profile-menu{position:absolute;top:48px;left:0;width:220px;background:#07100a;border:1px solid #29452f;border-radius:10px;padding:12px;box-shadow:0 15px 35px #0008}.profile-menu div{font-size:12px;color:#aab7ad;word-break:break-all;margin-bottom:8px}.profile-menu button{width:100%;padding:9px;border:1px solid #31583a;background:#101c13;color:#fff;border-radius:7px;cursor:pointer}
.topbar{justify-content:flex-start}.profile-wrap{margin-right:auto}.nav.versions.active,.nav.versions:hover{background:#102e17;color:#70ee7c;border-right-color:#4ee25d}
.rail-section{margin-top:26px}.rail-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}.rail-title h3{margin:0;font-size:19px}.rail-title small{color:#839487}.rail{display:flex;direction:rtl;gap:14px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x mandatory}.rail .card{flex:0 0 250px;scroll-snap-align:start}.site-footer{text-align:center;margin-top:40px;padding-top:25px;border-top:1px solid #17341d;color:#839487}.qr-placeholder{width:110px;height:110px;margin:0 auto 8px;display:grid;place-items:center;background:repeating-conic-gradient(#050b07 0 25%,#fff 0 50%) 50%/16px 16px;border:7px solid white;color:#111;font-weight:900}

/* R-CY MOD typography */
body { font-family: "Cairo", Tahoma, Arial, sans-serif; }
.site-title { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.site-title .minecraft-title {
  font-family: "Press Start 2P", "Courier New", monospace;
  color:#55e667;
  letter-spacing:1px;
  text-shadow:2px 2px 0 #020602;
}
.site-title .kufi-title {
  font-family: "Noto Kufi Arabic", "Cairo", sans-serif;
  color:#f2f7f3;
  font-weight:700;
}
.hero .eyebrow { font-family:"Cairo",sans-serif; }
.rail-empty { min-width:250px; padding:35px 20px; }
.rail { direction:rtl; }
.profile-wrap { margin-right:0; margin-left:auto; }
.topbar .brand { position:absolute; left:50%; transform:translateX(-50%); margin:0; }
@media(max-width:800px){
  .topbar .brand { font-size:17px; }
  .site-title .minecraft-title { font-size:24px; }
  .site-title .kufi-title { font-size:25px; }
}

/* Final header layout: menu on the right, profile on the left */
.topbar {
  justify-content: flex-end;
  direction: ltr;
}
.topbar .menu-btn {
  order: 2;
  margin-left: 0;
  margin-right: 0;
}
.topbar .profile-wrap {
  position: absolute;
  left: 18px;
  margin: 0;
  order: 1;
}
.topbar .brand {
  font-family: "Cairo", Tahoma, Arial, sans-serif !important;
  font-weight: 800;
  letter-spacing: 1px;
}
