*{margin:0;padding:0;box-sizing:border-box}
html,body{width:100%;overflow-x:hidden}
body{font-family:'Montserrat',sans-serif;background:#fff;color:#2d3748;padding-top:50px}
body.home-page{padding-top:0}
a{text-decoration:none;color:inherit}

/* Navbar */
.navbar{
  position:fixed;top:0;left:0;right:0;z-index:100;height:50px;display:flex;align-items:center;
  padding:0 20px;max-width:none;margin:0 auto;background:transparent;backdrop-filter:none
}
.nav-inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;width:100%;max-width:none;margin:0 auto;padding:0 10px}
.logo{display:flex;align-items:baseline;margin-right:30px;flex-shrink:0}
.logo-main{font-size:18px;font-weight:900;font-style:italic;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.3)}
.logo-sub{font-size:8px;font-weight:800;color:#22c55e;margin-left:2px;position:relative;top:6px}
.nav-links{display:flex;align-items:center;gap:2px;justify-content:flex-start;min-width:0;padding-left:0}
.nav-links a{padding:6px 10px;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.9);transition:color .2s;white-space:nowrap}
.nav-links a:hover{color:#fff}
.nav-links a.nav-active{position:relative}
.nav-links a.nav-active::after{
  content:"";position:absolute;left:10px;right:10px;bottom:-8px;height:3px;background:#22c55e;border-radius:999px
}
.nav-right{display:flex;align-items:center;justify-content:center;gap:8px;justify-self:end}
.btn-bedrock{
  padding:5px 16px;font-size:12px;font-weight:600;color:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.4);
  border-radius:6px;background:transparent;cursor:pointer;transition:background .2s
}
.btn-bedrock:hover{background:rgba(255,255,255,.1)}
.btn-java{
  padding:5px 16px;font-size:12px;font-weight:700;color:#fff;background:#22c55e;border:none;border-radius:6px;cursor:pointer;transition:filter .2s
}
.btn-java:hover{filter:brightness(1.1)}
.nav-login{padding:6px 12px;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.9)}
.nav-login:hover{color:#fff}

/* Account button in navbar */
.nav-account{
  padding:4px 10px 4px 6px;
  font-size:12px;
  font-weight:700;
  color:#fff;
  background:#22c55e;
  border:none;
  border-radius:6px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:220px;
  cursor:pointer;
  transition:filter .2s;
}
.nav-account:hover{filter:brightness(1.1)}
.nav-account-avatar{
  width:24px;
  height:24px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.35);
  image-rendering:pixelated;
  flex:0 0 auto;
}
.nav-account-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Navbar style for non-home pages */
body:not(.home-page) .navbar{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
}
body:not(.home-page) .logo-main{
  color:#111827;
  text-shadow:none;
}
body:not(.home-page) .nav-links a,
body:not(.home-page) .nav-login{
  color:#374151;
}
body:not(.home-page) .nav-links a:hover,
body:not(.home-page) .nav-login:hover{
  color:#111827;
}
body:not(.home-page) .btn-bedrock{
  color:#374151;
  border-color:#d1d5db;
  background:#fff;
}
body:not(.home-page) .btn-bedrock:hover{
  background:#f3f4f6;
}

/* Navbar style for home pages with background hero */
body.home-page .navbar{
  background:transparent;
  border-bottom:none;
}
body.home-page .logo-main{
  color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.3);
}
body.home-page .nav-links a,
body.home-page .nav-login{
  color:rgba(255,255,255,.9);
}
body.home-page .nav-links a:hover,
body.home-page .nav-login:hover{
  color:#fff;
}
body.home-page .btn-bedrock{
  color:rgba(255,255,255,.9);
  border-color:rgba(255,255,255,.4);
  background:transparent;
}
body.home-page .btn-bedrock:hover{
  background:rgba(255,255,255,.1);
}

/* keep account button green even on hero */
body.home-page .nav-account{
  color:#fff;
  background:#22c55e;
}

.mobile-toggle{display:none;margin-left:auto;background:none;border:none;color:#fff;font-size:24px;cursor:pointer}
.mobile-menu{display:none;position:fixed;top:50px;left:0;right:0;background:#1e293b;padding:16px 24px;z-index:99}
.mobile-menu.open{display:block}
.mobile-menu a{display:block;padding:10px 0;font-size:14px;font-weight:600;color:rgba(255,255,255,.8)}
.mobile-menu a:hover{color:#22c55e}
.mobile-btns{display:flex;gap:8px;margin-top:12px;align-items:center}
.mobile-menu .nav-account{
  display:inline-flex;
  margin-top:8px;
  padding:6px 10px 6px 6px;
  color:#fff;
}

@media (max-width: 768px) {
  .navbar {padding:0 12px; height:auto;min-height:50px;}
  .nav-inner {grid-template-columns:1fr auto; align-items:center; gap:8px;}
  .logo {margin-right:0;}
  .logo-main {font-size:16px;}
  .logo-sub {font-size:10px;}
  .nav-links, .nav-right, .btn-bedrock, .btn-java, .nav-login, .nav-account {display:none !important;}
  .mobile-toggle {display:block; color:#fff;}
  .mobile-menu {position:fixed;top:50px;left:0;right:0;background:#0f172a; padding:14px 16px; max-height:calc(100vh - 50px); overflow-y:auto;}
  .mobile-menu a {font-size:16px; padding:12px 0; color:#e2e8f0;}
  .mobile-menu a.nav-active {font-weight:700; color:#22c55e;}
  .mobile-menu .mobile-btns {flex-direction:column; gap:8px; margin-top:16px;}
  .mobile-menu .mobile-btns a {width:100%; text-align:center;}
  .mobile-menu .nav-account {margin-top:12px; padding:8px; border:1px solid rgba(255,255,255,.16); border-radius:8px;}
}


/* Layout helpers */
.container{width:100%;max-width:none;margin:0 auto;padding:0 0 24px}
.full-bleed{width:100%;margin:0;left:auto;right:auto}
.row{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.muted{color:#64748b}
.small{font-size:.92rem}

/* Auth pages (login/register) */
body.page-login,
body.page-register{
  background:#fff;
}
body.page-login .container,
body.page-register .container{
  max-width:none;
  padding:0;
}
.auth-hero{
  margin-bottom:22px;
  min-height:0;
  height:480px;
}
.auth-shell{
  width:100%;
  min-height:auto;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:0 16px 40px;
}
.auth-wrap{
  width:100%;
  max-width:420px;
  text-align:center;
}
.auth-title{
  margin:0 0 8px;
  font-size:44px;
  font-weight:900;
  letter-spacing:-.02em;
  color:#111827;
}
.auth-subtitle{
  margin:0 0 18px;
  font-size:13px;
  color:#22c55e;
  font-weight:600;
}
.auth-form{
  text-align:left;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(248,250,252,.92);
  border-radius:8px;
  padding:14px;
}
.auth-form label{
  margin:10px 0 6px;
  font-size:12px;
  color:#374151;
  font-weight:700;
}
.auth-form input{
  border-radius:4px;
  height:38px;
  padding:8px 10px;
  border:1px solid #d1d5db;
  background:#fff;
}
.auth-remember{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  font-size:12px;
  color:#374151;
}
.auth-remember input{
  width:auto;
  height:auto;
}
.auth-submit{
  width:100%;
  margin-top:12px;
  border:none;
  border-radius:4px;
  background:#22c55e;
  color:#fff;
  font-size:13px;
  font-weight:800;
  height:38px;
  cursor:pointer;
}
.auth-submit:hover{filter:brightness(1.06)}
.auth-links{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  text-align:center;
}
.auth-links a{
  font-size:12px;
  font-weight:700;
  color:#1f2937;
}
.auth-links a:hover{color:#111827}
.auth-resend{
  margin-top:10px;
  display:flex;
  justify-content:center;
}
.mc-inline-preview{
  display:grid;
  grid-template-columns:minmax(0,1fr) 44px;
  gap:8px;
  align-items:center;
}
.mc-inline-preview img{
  width:44px;
  height:44px;
  border-radius:6px;
  border:1px solid #d1d5db;
  background:#fff;
  image-rendering:pixelated;
}

/* Hero */
.hero{
  position:relative;width:100%;max-width:none;margin:0 0 28px 0;height:480px;overflow:hidden;border-radius:0
}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(30,41,59,.7),rgba(30,41,59,.2),rgba(30,41,59,.1))}
.hero-text-bg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.hero-text-bg h1{font-size:200px;font-weight:900;color:rgba(255,255,255,.08);letter-spacing:.1em;text-transform:uppercase;user-select:none;line-height:1}
.hero-cards{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:20px;pointer-events:none;padding:0 16px}
.pack-card{
  width:210px;height:280px;border-radius:16px;background:linear-gradient(135deg,rgba(56,149,175,.75),rgba(56,149,175,.5));
  backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.15);box-shadow:0 25px 50px -12px rgba(0,0,0,.25);padding:32px 20px
}
.pack-card:nth-child(1){transform:rotate(-12deg) translateY(24px)}
.pack-card:nth-child(2){z-index:10}
.pack-card:nth-child(3){transform:rotate(12deg) translateY(24px)}
.pack-card p{font-size:28px;font-weight:900;color:rgba(255,255,255,.65);line-height:1.15}
.pack-card:nth-child(2) p{color:rgba(255,255,255,.75)}
.hero-bottom{position:absolute;bottom:0;left:0;right:0;padding:20px 24px;display:flex;align-items:flex-end;justify-content:space-between;max-width:1400px;margin:0 auto}
.badge{display:inline-block;padding:2px 12px;border-radius:999px;border:1px solid #22c55e;color:#22c55e;font-size:11px;font-weight:700;margin-bottom:8px}
.hero-bottom h2{font-size:20px;font-weight:800;color:#fff}
.btn-discover{padding:10px 28px;border-radius:8px;background:#22c55e;color:#fff;font-weight:700;font-size:14px;border:none;cursor:pointer;transition:filter .2s}
.btn-discover:hover{filter:brightness(1.1)}

/* Register page — hero + skin preview */
.register-hero{
  min-height:min(92vh,900px);
  height:auto;
  margin-bottom:0;
}
.register-hero .hero-cards{display:none}
.register-hero-inner{
  position:relative;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:72px 20px 100px;
  min-height:420px;
}
.register-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(200px,300px);
  gap:28px 40px;
  align-items:start;
  max-width:960px;
  width:100%;
  background:rgba(15,23,42,.78);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:28px 32px 32px;
  box-shadow:0 28px 60px rgba(0,0,0,.4);
}
.register-form-side h2{
  color:#fff;
  font-size:clamp(24px,4vw,32px);
  font-weight:800;
  margin:0 0 18px;
  letter-spacing:-.02em;
}
.register-card .form{max-width:none}
.register-card label{color:rgba(255,255,255,.92)}
.register-card input{
  background:#fff;
  border-color:#cbd5e1;
  color:#1f2937;
}
.register-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:18px;
}
.register-login-link{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.25);
  color:#fff;
}
.register-login-link:hover{
  background:rgba(255,255,255,.2);
  filter:none;
}
.register-preview-side{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  gap:10px;
  padding-top:8px;
}
.mc-preview-label{
  color:#22c55e;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin:0;
}
.mc-preview-frame{
  width:min(280px,100%);
  aspect-ratio:1;
  max-width:280px;
  border-radius:18px;
  overflow:hidden;
  background:rgba(0,0,0,.25);
  border:3px solid rgba(34,197,94,.45);
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 20px 40px rgba(0,0,0,.35);
}
.mc-preview-frame img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  image-rendering:pixelated;
}
.mc-preview-name{
  color:#fff;
  font-size:clamp(20px,3vw,26px);
  font-weight:800;
  margin:0;
  word-break:break-word;
}
.mc-preview-hint{
  font-size:12px;
  color:rgba(226,232,240,.75);
  margin:0;
  max-width:240px;
  line-height:1.4;
}
.register-hero-bottom{
  z-index:6;
}
@media (max-width:840px){
  .register-card{
    grid-template-columns:1fr;
    padding:24px 20px 28px;
  }
  .register-preview-side{
    order:-1;
    padding-top:0;
  }
  .mc-preview-frame{
    max-width:220px;
  }
  .register-hero-inner{padding:64px 16px 88px}
}
@media (max-width:768px){
  .register-hero{min-height:520px}
}

/* Categories */
.categories{width:100%;max-width:none;margin:0 auto;padding:28px 24px 36px;text-align:center}
.categories .label{color:#22c55e;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px}
.categories h2{font-size:38px;font-weight:800;color:#2d3748;margin-bottom:28px}
.cat-grid{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-around;max-width:1500px;margin:0 auto}
.cat-item{display:flex;flex-direction:column;align-items:center;gap:12px;text-decoration:none;width:150px}
.cat-item:hover .cat-img{transform:translateY(-4px);box-shadow:0 12px 24px rgba(0,0,0,.15)}
.cat-item.active .cat-img{outline:3px solid #22c55e;transform:translateY(-2px)}
.cat-item.active .cat-name{color:#22c55e}
.cat-img{width:100%;aspect-ratio:1;border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:16px;box-shadow:0 4px 12px rgba(0,0,0,.1);transition:transform .2s,box-shadow .2s}
.cat-img img{width:80%;height:80%;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.15))}
.cat-icon{font-size:46px;line-height:1;color:#fff;filter:drop-shadow(0 4px 6px rgba(0,0,0,.15))}
.cat-name{font-size:13px;font-weight:700;color:#2d3748;transition:color .2s}
.cat-item:hover .cat-name{color:#22c55e}
.bg-orange{background:#f97316}.bg-sky{background:#38bdf8}.bg-red{background:#ef4444}.bg-rose{background:#f43f5e}.bg-pink{background:#ec4899}.bg-green{background:#22c55e}

/* Existing pages compatibility */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:stretch}
.card{border:1px solid #e2e8f0;border-radius:14px;padding:14px;background:#fff}
.card h3{margin:0 0 8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border-radius:10px;border:1px solid #d1d5db;background:#f8fafc;color:#334155;cursor:pointer}
.btn:hover{filter:brightness(1.02)}
.btn.primary{background:#22c55e;color:#fff;border-color:#22c55e}
.btn.danger{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.btn.ok{background:#dcfce7;color:#166534;border-color:#bbf7d0}
input,select,textarea{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #d1d5db;background:#fff;color:#1f2937}
label{display:block;margin:10px 0 6px}
.form{max-width:520px}
.flash{border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;margin:12px 0;background:#fff}
.flash.error{border-color:#fca5a5;color:#991b1b}
.flash.ok{border-color:#86efac;color:#166534}
table{width:100%;border-collapse:collapse}
th,td{padding:10px;border-bottom:1px solid #e2e8f0;text-align:left}
.footer{padding:24px 0;color:#64748b;text-align:center}

.flash-wrapper{position:fixed;bottom:20px;right:20px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none;max-width:min(340px,calc(100vw - 32px))}
.flash{border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;margin:0;background:#fff;box-shadow:0 10px 22px rgba(15,23,42,.2);pointer-events:auto;opacity:0;transform:translateX(100%);animation:flashIn .35s ease forwards}
.flash.error{border-color:#fca5a5;color:#991b1b}
.flash.ok{border-color:#86efac;color:#166534}
@keyframes flashIn{from{opacity:0;transform:translateX(100%)}to{opacity:1;transform:translateX(0)}}
@keyframes flashOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(120%)}}

/* Better default spacing on internal pages */
body:not(.home-page) .container{
  max-width:1200px;
  padding:20px 24px 28px;
}
body:not(.home-page) h2{
  font-size:34px;
  font-weight:800;
  color:#1f2937;
  margin-bottom:8px;
}
body:not(.home-page) .card{
  border:1px solid #e5e7eb;
  box-shadow:0 2px 10px rgba(15,23,42,.04);
}

/* Category products page cards */
.offer-tabs{display:flex;justify-content:center;gap:0;max-width:320px;margin:0 auto;background:#ececec;border-radius:999px;padding:3px}
.offer-tab{border:none;background:transparent;padding:8px 18px;border-radius:999px;font-weight:700;font-size:12px;color:#374151;display:inline-flex;align-items:center;justify-content:center}
.offer-tab.active{background:#ff7a00;color:#fff}

.shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;max-width:1200px;margin:0 auto}
.shop-card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;box-shadow:0 6px 16px rgba(15,23,42,.06)}
.shop-img-wrap{background:#1f7c2f;padding:10px}
.shop-img{display:block;width:100%;aspect-ratio:1.5/1;object-fit:cover;border-radius:6px}
.shop-body{padding:10px}
.shop-title{font-size:20px;font-weight:800;color:#2d3748;margin-bottom:6px}
.shop-sub{min-height:34px;margin-bottom:8px}
.shop-price-row{display:flex;align-items:flex-end;gap:6px;margin-bottom:10px}
.shop-price{font-size:30px;line-height:1;color:#ff7a00;font-weight:900}
.shop-price-meta{font-size:12px;color:#64748b;padding-bottom:4px}
.shop-buy{width:100%;border:none;border-radius:6px;background:#ff7a00;color:#fff;font-weight:800;padding:8px 10px;cursor:pointer}
.shop-buy:hover{filter:brightness(1.06)}

@media (max-width:1023px){
  .nav-links,.nav-right{display:none}
  .mobile-toggle{display:block}
  body:not(.home-page) .navbar{background:#1e293b}
}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:768px){
  .hero-text-bg h1{font-size:80px}
  .pack-card{width:140px;height:200px;padding:20px 12px}
  .pack-card p{font-size:20px}
  .hero-cards{gap:10px}
  .hero{height:360px}
  .cat-grid{justify-content:center;gap:20px}
  .cat-item{width:130px}
  .btn-discover{display:none}
}
@media (max-width:640px){.grid{grid-template-columns:1fr}}
@media (max-width:480px){
  .container{padding:0 0 16px}
  .hero-text-bg h1{font-size:50px}
  .pack-card{width:110px;height:160px;padding:16px 10px}
  .pack-card p{font-size:16px}
  .hero{height:280px}
  .cat-item{width:120px}
}

