/* ============================================================
   SBIX CERTIFY — SHELL.CSS (Premium Edition)
   Design System • Light/Dark • Responsive
   (c) 2025 GRX / Nova — SBIX
   ============================================================ */

/* ------------------------------------------------------------
   ROOT VARIABLES
   ------------------------------------------------------------ */
:root{
  --bg:#ffffff;
  --ink:#0a1628;
  --mut:#475569;
  --soft:#f2f5f9;
  --panel:#ffffff;
  --panel-2:#f8fafc;
  --stroke:#e5e7eb;

  /* Premium gradients (brand SBIX) */
  --grad1:linear-gradient(135deg, #00ffe7 0%, #b5faff 100%);
  --grad2:linear-gradient(135deg, #c4ffdd 0%, #f0ffb5 100%);

  /* Action accent colors */
  --acc1:#00ffe7;
  --acc2:#c4ffdd;
}

/* DARK THEME -------------------------------------------------- */
.theme-dark{
  --bg:#0b111e;
  --ink:#e5f0ff;
  --mut:#8893a8;
  --soft:#141b2b;
  --panel:#101726;
  --panel-2:#1a2133;
  --stroke:#2a3245;

  --acc1:#17f6ff;
  --acc2:#a4ffcf;
}

/* ------------------------------------------------------------
   GLOBAL RESET + TYPO
   ------------------------------------------------------------ */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:"Inter", system-ui, sans-serif;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* Links */
a{
  color:var(--ink);
  text-decoration:none;
  transition:.2s;
}
a:hover{
  color:var(--acc1);
}

/* ------------------------------------------------------------
   CONTAINER
   ------------------------------------------------------------ */
.container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:0 1rem;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn{
  padding:.8rem 1.3rem;
  background:var(--panel);
  border:1px solid var(--stroke);
  border-radius:12px;
  color:var(--ink);
  cursor:pointer;
  font-weight:700;
  text-decoration:none;
  display:inline-block;
  transition:.2s;
}

.btn:hover{
  background:var(--soft);
}

.btn.primary{
  background:var(--grad1);
  color:#000;
  border:none;
}
.btn.primary:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,240,220,.35);
}

/* ------------------------------------------------------------
   BADGES
   ------------------------------------------------------------ */
.badge{
  padding:.4rem .6rem;
  border-radius:8px;
  font-size:.75rem;
  font-weight:700;
  color:#000;
}

.badge.pending{ background:#fbbf24; }
.badge.anchored{ background:#34d399; }
.badge.none{ background:#9ca3af; color:#fff; }

/* ------------------------------------------------------------
   FLASH MESSAGES
   ------------------------------------------------------------ */
.sbix-flash{
  position:fixed;
  bottom:1rem;
  right:1rem;
  padding:1rem 1.4rem;
  border-radius:14px;
  font-weight:700;
  opacity:0;
  transform:translateY(20px);
  transition:.3s ease;
  z-index:9999;
  background:var(--panel);
  border:1px solid var(--stroke);
}

.sbix-flash.show{
  opacity:1;
  transform:translateY(0);
}

.sbix-flash-info{
  color:var(--ink);
}
.sbix-flash-error{
  background:#fee2e2;
  border-color:#fecaca;
  color:#991b1b;
}
.sbix-flash-success{
  background:#dcfce7;
  border-color:#bbf7d0;
  color:#065f46;
}

/* ------------------------------------------------------------
   NAV BAR (imported from nav_app.html, harmonized)
   ------------------------------------------------------------ */
.sbix-nav{
  background:var(--panel);
  border-bottom:1px solid var(--stroke);
  padding:.75rem 0;
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(10px);
}

.sbix-nav-inner{
  max-width:1100px;
  margin:0 auto;
  padding:0 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.sbix-nav-logo{
  display:flex;
  align-items:center;
  gap:.6rem;
}
.sbix-nav-logo img{
  width:34px;
}
.sbix-nav-title{
  font-weight:900;
  font-size:1.25rem;
  color:var(--ink);
}

.sbix-nav-actions{
  display:flex;
  align-items:center;
  gap:1rem;
}

.lang-btn{
  border:none;
  background:var(--soft);
  color:var(--ink);
  padding:.35rem .6rem;
  font-size:.85rem;
  border-radius:6px;
  cursor:pointer;
}
.lang-btn.active{
  background:var(--acc2);
  font-weight:700;
}
.lang-btn:hover{
  background:var(--acc1);
}

.theme-btn{
  border:none;
  background:var(--panel-2);
  color:var(--ink);
  padding:.45rem .7rem;
  font-size:1rem;
  border-radius:8px;
  cursor:pointer;
}
.theme-btn:hover{
  background:var(--soft);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.sbix-footer{
  margin-top:4rem;
  padding:2.5rem 1rem 1.5rem;
  background:var(--panel);
  border-top:1px solid var(--stroke);
  color:var(--ink);
}

.sbix-footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:2rem;
}

.sbix-footer-logo{
  width:44px;
  margin-bottom:.5rem;
}
.sbix-footer-title{
  font-size:1.4rem;
  font-weight:900;
}
.sbix-footer-desc{
  font-size:.9rem;
  color:var(--mut);
}

.sbix-footer-links{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.sbix-footer-links a:hover{
  color:var(--acc1);
}

.sbix-footer-bottom{
  max-width:1100px;
  margin:2rem auto 0;
  padding-top:1rem;
  border-top:1px solid var(--stroke);
  font-size:.85rem;
  color:var(--mut);
  display:flex;
  justify-content:space-between;
}

/* ------------------------------------------------------------
   HERO + UPLOAD BOX (index.html)
   ------------------------------------------------------------ */
.hero-title{
  font-size:2.3rem;
  font-weight:900;
  margin-bottom:.5rem;
}
.hero-sub{
  color:var(--mut);
  font-size:1.1rem;
  margin-bottom:2.5rem;
}

.upload-box{
  border:2px dashed var(--stroke);
  border-radius:22px;
  padding:4rem 1rem;
  text-align:center;
  background:var(--panel);
  cursor:pointer;
  transition:.25s;
}
.upload-box:hover{
  background:var(--soft);
  border-color:var(--acc1);
}

.upload-box input[type="file"]{
  display:none;
}

.upload-icon{
  font-size:3rem;
  margin-bottom:1rem;
  opacity:.7;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media(max-width:720px){
  .hero-title{
    font-size:1.8rem;
  }
  .sbix-footer-bottom{
    flex-direction:column;
    gap:.5rem;
    text-align:center;
  }
}