
:root{
  --g3-bg:#080b10;
  --g3-panel:#101720;
  --g3-panel2:#141d27;
  --g3-border:#293543;
  --g3-text:#eef2f6;
  --g3-muted:#8e9aa8;
  --g3-gold:#d6a84f;
  --g3-gold2:#f0c76b;
  --g3-blue:#4f8fd8;
  --g3-green:#65d892;
  --g3-red:#e27d72;
  --g3-nav:#0c1118;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  background:var(--g3-bg);
  color:var(--g3-text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{
  padding-bottom:150px !important;
}

.g3-app-shell{
  min-height:100vh;
}

.g3-screen{
  display:none;
  min-height:calc(100vh - 40px);
  padding-bottom:25px;
}

.g3-screen.g3-active{
  display:block;
}

.g3-screen-inner{
  max-width:1200px;
  margin:0 auto;
  padding:20px;
}

.g3-screen-title{
  margin:0 0 5px;
  font-size:22px;
  letter-spacing:.8px;
}

.g3-screen-subtitle{
  margin:0 0 20px;
  color:var(--g3-muted);
}

.g3-coming{
  min-height:55vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.g3-coming-box{
  width:min(520px,100%);
  padding:35px 25px;
  border:1px solid var(--g3-border);
  border-radius:18px;
  background:linear-gradient(180deg,var(--g3-panel2),var(--g3-panel));
}

.g3-coming-icon{
  font-size:48px;
  margin-bottom:12px;
}

.g3-coming h2{
  margin:0 0 8px;
  color:var(--g3-gold2);
  letter-spacing:1px;
}

.g3-coming p{
  color:var(--g3-muted);
  margin:0;
}

.g3-bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:900;
  background:rgba(12,17,24,.97);
  border-top:1px solid var(--g3-border);
  backdrop-filter:blur(12px);
}

.g3-bottom-inner{
  width:min(1200px,100%);
  margin:auto;
  display:flex;
  overflow-x:auto;
  scrollbar-width:none;
}

.g3-bottom-inner::-webkit-scrollbar{
  display:none;
}

.g3-nav-button{
  flex:1 0 92px;
  min-width:92px;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:var(--g3-muted) !important;
  padding:9px 6px 10px !important;
  cursor:pointer;
  font-weight:700;
  font-size:11px;
  letter-spacing:.3px;
}

.g3-nav-icon{
  display:block;
  font-size:20px;
  line-height:22px;
  margin-bottom:3px;
}

.g3-nav-button.g3-selected{
  color:var(--g3-gold2) !important;
  background:rgba(214,168,79,.08) !important;
}

.g3-nav-button.g3-selected .g3-nav-icon{
  filter:drop-shadow(0 0 5px rgba(214,168,79,.25));
}

/* Compact G3 Admin / Bot secondary navigation */
header{position:relative;}
.g3-top-menu{
  position:fixed;
  top:10px;
  right:10px;
  z-index:950;
}
.g3-menu-button{
  width:34px !important;
  height:34px !important;
  min-width:34px;
  padding:7px !important;
  margin:0 !important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  border:1px solid var(--g3-border) !important;
  border-radius:8px !important;
  background:rgba(12,17,24,.88) !important;
  color:var(--g3-gold2) !important;
  box-shadow:none !important;
}
.g3-menu-button span{
  display:block;
  height:2px;
  width:100%;
  border-radius:2px;
  background:currentColor;
}
.g3-menu-panel{
  position:absolute;
  top:42px;
  right:0;
  min-width:150px;
  padding:6px;
  border:1px solid var(--g3-border);
  border-radius:10px;
  background:rgba(8,11,16,.98);
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}
.g3-menu-panel a{
  display:block;
  padding:9px 10px;
  border-radius:7px;
  color:var(--g3-muted);
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}
.g3-menu-panel a:hover,
.g3-menu-panel a.g3-selected{
  color:var(--g3-gold2);
  background:rgba(214,168,79,.08);
}

/* Responsive containment: content must never widen the viewport. */
html,body,#root,main,.g3-app-shell,.g3-screen,.g3-screen-inner{max-width:100%;min-width:0;}
html,body{overflow-x:hidden;}
.g3-screen-inner{width:100%;overflow-wrap:anywhere;word-break:break-word;}
.g3-screen-inner > *, .g3-screen-inner .card, .g3-screen-inner .panel, .g3-screen-inner .g3-verification-card, .g3-screen-inner pre, .g3-screen-inner table{max-width:100%;min-width:0;}
.g3-screen-inner pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;overflow-x:auto;}
.g3-screen-inner table{display:block;width:100%;overflow-x:auto;}
.g3-screen-inner td,.g3-screen-inner th{overflow-wrap:anywhere;word-break:break-word;}
input,button,select,textarea{max-width:100%;}

.g3-scroll-control{
  position:fixed;
  right:max(14px,env(safe-area-inset-right));
  bottom:calc(78px + env(safe-area-inset-bottom));
  z-index:980;
  width:38px;
  height:38px;
  border:1px solid rgba(214,168,79,.42) !important;
  border-radius:50% !important;
  background:rgba(8,11,16,.62) !important;
  color:var(--g3-gold2) !important;
  box-shadow:0 4px 18px rgba(0,0,0,.22) !important;
  backdrop-filter:blur(8px);
  font-size:20px;
  font-weight:900;
  line-height:1;
  padding:0 !important;
  opacity:.72;
  transition:opacity .18s,transform .18s;
}
.g3-scroll-control:hover{opacity:1;transform:translateY(-1px);}
.g3-scroll-control[hidden]{display:none !important;}

@media (max-width:600px){
  .g3-screen-inner{padding:16px 12px;}
  .g3-nav-button{min-width:0;flex:1 1 0;font-size:10px;padding-left:3px !important;padding-right:3px !important;}
  .g3-nav-icon{font-size:18px;}
  .g3-top-menu{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));}
  .g3-scroll-control{right:max(10px,env(safe-area-inset-right));}
}

.g3-verification-card{
  background:var(--g3-panel);
  border:2px solid var(--g3-gold);
  border-radius:14px;
  padding:18px;
  margin-bottom:18px;
}

.g3-verification-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--g3-border);
}

.g3-verification-row:last-child{
  border-bottom:0;
}

.g3-verification-row small{
  grid-column:1/-1;
  color:var(--g3-muted);
}

.g3-verification-row.match strong{
  color:var(--g3-green);
}

.g3-verification-row.mismatch strong{
  color:var(--g3-red);
}

.g3-verification-overall{
  margin-top:18px;
  padding:17px;
  border-radius:11px;
  text-align:center;
  font-size:19px;
  font-weight:900;
}

.g3-verification-overall.match{
  color:var(--g3-green);
  background:rgba(101,216,146,.08);
  border:2px solid #326c4b;
}

.g3-verification-overall.mismatch{
  color:var(--g3-red);
  background:rgba(226,125,114,.08);
  border:2px solid #713c36;
}

.g3-search{
  width:100%;
  padding:11px 13px;
  margin:0 0 12px;
  border:1px solid var(--g3-border);
  border-radius:9px;
  background:#090d12;
  color:var(--g3-text);
  font-size:14px;
}

.g3-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.g3-pagination button{
  width:auto !important;
}

.g3-page-label{
  color:var(--g3-muted);
  font-size:12px;
}

.g3-reserved{
  border:1px dashed var(--g3-border);
  border-radius:12px;
  padding:16px;
  color:var(--g3-muted);
}

@media(max-width:700px){
  body{
    padding-bottom:145px !important;
  }

  .g3-screen-inner{
    padding:14px;
  }

  .g3-nav-button{
    min-width:78px;
    flex-basis:78px;
    font-size:10px;
  }

  .g3-verification-row{
    grid-template-columns:1fr;
  }
}


/* G3 global identity/application header */
.g3-global-header{position:sticky;top:0;z-index:940;width:100%;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 14px;background:rgba(8,11,16,.96);border-bottom:1px solid var(--g3-border,#26303d);backdrop-filter:blur(14px);box-sizing:border-box;}
.g3-global-brand{display:flex;align-items:center;gap:10px;min-width:0;}
.g3-logo-placeholder{width:38px;height:38px;flex:0 0 38px;border-radius:10px;display:grid;place-items:center;border:1px solid var(--g3-gold,#d6a84f);color:var(--g3-gold2,#f0c96a);font-weight:900;font-size:13px;letter-spacing:.5px;background:linear-gradient(145deg,rgba(214,168,79,.14),rgba(49,109,190,.12));}
.g3-global-welcome{display:flex;flex-direction:column;min-width:0;line-height:1.15;}
.g3-global-welcome strong{font-size:13px;color:var(--g3-text,#f5f7fa);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.g3-global-welcome span{font-size:10px;color:var(--g3-muted,#8d99a8);margin-top:3px;}
.g3-global-current{display:flex;align-items:center;gap:8px;min-width:0;text-align:right;}
.g3-global-current-label{font-size:9px;letter-spacing:1px;color:var(--g3-muted,#8d99a8);}
.g3-global-current strong{font-size:14px;color:var(--g3-gold2,#f0c96a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.g3-has-global-header main{scroll-margin-top:74px;}
@media(max-width:700px){.g3-global-header{min-height:58px;padding:8px 10px;gap:10px}.g3-logo-placeholder{width:34px;height:34px;flex-basis:34px}.g3-global-welcome strong{font-size:12px}.g3-global-welcome span{display:none}.g3-global-current-label{display:none}.g3-global-current strong{font-size:12px}}
