*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial,sans-serif;
  background:#0b0f17;
  color:#fff;
}

.cex-header{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
  background:#111827;
  border-bottom:1px solid #273244;
}

.cex-logo{
  font-size:24px;
  font-weight:700;
  white-space:nowrap;
}

.cex-status{
  color:#22c55e;
  font-size:14px;
}

.cex-menu-btn{
  padding:8px 12px;
  border:1px solid #273244;
  border-radius:8px;
  background:#151d2b;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

.cex-container{
  max-width:1100px;
  margin:auto;
  padding:24px 20px;
}

.cex-panel,
.cex-card{
  background:#151d2b;
  border:1px solid #273244;
  border-radius:14px;
  padding:20px;
}

.cex-panel{margin-bottom:16px}

.cex-title{
  margin:0 0 8px;
  font-size:28px;
}

.cex-subtitle{
  color:#9ca3af;
  margin:0 0 20px;
}

.cex-btn{
  display:inline-block;
  padding:11px 16px;
  border:1px solid #273244;
  border-radius:8px;
  background:#151d2b;
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
}

.cex-btn-primary{
  background:#2563eb;
  border-color:#2563eb;
}

.cex-input,
.cex-select{
  width:100%;
  padding:12px;
  border:1px solid #273244;
  border-radius:8px;
  background:#0b0f17;
  color:#fff;
}

@media(max-width:700px){
  .cex-header{
    min-height:68px;
    padding:0 16px;
  }

  .cex-logo{
    font-size:22px;
  }

  .cex-container{
    padding:20px 16px;
  }

  .cex-title{
    font-size:25px;
  }
}

/* ===== VOPZA GLOBAL UI OVERRIDES ===== */

.main-nav a{
  display:block;
  color:#fff;
  text-decoration:none;
  padding:11px 12px;
  border-radius:8px;
}

.main-nav a:hover{
  background:#1f2937;
}

header{
  min-height:72px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:0 20px !important;
  background:#111827 !important;
  border-bottom:1px solid #273244 !important;
}

header .logo,
.logo{
  font-size:24px !important;
  font-weight:700 !important;
  white-space:nowrap !important;
}

.container{
  max-width:1100px !important;
  margin:0 auto !important;
  padding:24px 20px !important;
}

.card,
.panel{
  border-radius:14px !important;
}

@media(max-width:700px){
  header{
    min-height:68px !important;
    padding:0 16px !important;
  }

  .logo{
    font-size:22px !important;
  }

  .container{
    padding:20px 16px !important;
  }
}

.demo-popup{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:16px;
}

.demo-popup-box{
  width:100%;
  max-width:340px;
  background:#111827;
  border:1px solid #374151;
  border-radius:12px;
  padding:16px;
  box-sizing:border-box;
}

.demo-popup-box h3{
  margin:0 0 12px;
  font-size:18px;
}

.demo-popup-box select,
.demo-popup-box input{
  width:100%;
  box-sizing:border-box;
  padding:10px;
  margin-bottom:10px;
  border-radius:8px;
}

.demo-popup-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}


.demo-popup-box select,
.demo-popup-box input{
  background:#0b111c;
  color:#fff;
  border:1px solid #374151;
  font-size:15px;
  height:44px;
}

.demo-popup-box select{
  appearance:auto;
}

.demo-popup-box button{
  min-height:44px;
  font-size:15px;
  font-weight:600;
}


.coin-selector{
  position:relative;
  width:100%;
  margin-bottom:10px;
  cursor:pointer;
}

.coin-selected{
  height:44px;
  padding:0 12px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:9px;
  background:#0b111c;
  border:1px solid #374151;
  border-radius:8px;
  color:#fff;
}

.coin-selected img,
.coin-options img{
  width:24px;
  height:24px;
}

.coin-options{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:48px;
  background:#111827;
  border:1px solid #374151;
  border-radius:8px;
  overflow:hidden;
  z-index:10001;
}

.coin-options div{
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  color:#fff;
}

.coin-options div:hover{
  background:#1f2937;
}

.coin-options.open{
  display:block;
}


.coin-selected{
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  height:44px;
  padding:0 12px;
  box-sizing:border-box;
  background:#0b111c;
  border:1px solid #374151;
  border-radius:8px;
  color:#fff;
  cursor:pointer;
}

.coin-selected img,
.coin-options img{
  width:24px;
  height:24px;
  flex-shrink:0;
}

.coin-options{
  display:none;
  position:relative;
  width:100%;
  margin-top:5px;
  background:#111827;
  border:1px solid #374151;
  border-radius:8px;
  overflow:hidden;
  z-index:10002;
}

.coin-options.open{
  display:block;
}

.coin-options div{
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  color:#fff;
  cursor:pointer;
}

.coin-options div:hover{
  background:#1f2937;
}


.demo-popup-box .coin-selector{
  position:relative;
  width:100%;
  margin-bottom:10px;
}

.demo-popup-box .coin-selected{
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  min-height:44px;
  padding:0 12px;
  box-sizing:border-box;
  background:#0b111c;
  border:1px solid #374151;
  border-radius:8px;
  color:#fff;
  cursor:pointer;
}

.demo-popup-box .coin-selected img,
.demo-popup-box .coin-options img{
  width:24px;
  height:24px;
  flex-shrink:0;
}

.demo-popup-box .coin-options{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:49px;
  background:#111827;
  border:1px solid #374151;
  border-radius:8px;
  overflow:hidden;
  z-index:10001;
}

.demo-popup-box .coin-options.open{
  display:block;
}

.demo-popup-box .coin-options div{
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  color:#fff;
  cursor:pointer;
}

.demo-popup-box .coin-options div:hover{
  background:#1f2937;
}


/* Unified VOPZA Header */
header{
  min-height:58px;
  padding:0 16px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

header .logo{
  font-size:18px;
  font-weight:700;
  white-space:nowrap;
}

header .status{
  font-size:12px;
  color:#9ca3af;
}

.unified-menu-btn{
  width:40px;
  height:40px;
  padding:0;
  border:1px solid #273244;
  border-radius:8px;
  background:#151d2b;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

.unified-menu{
  display:none;
  position:absolute;
  top:58px;
  right:12px;
  min-width:210px;
  padding:8px;
  background:#111827;
  border:1px solid #273244;
  border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  z-index:10000;
}

.unified-menu.open{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.unified-menu a,
.unified-menu button{
  display:block;
  width:100%;
  box-sizing:border-box;
  padding:10px 12px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#e5e7eb;
  text-align:left;
  text-decoration:none;
  font-size:14px;
  cursor:pointer;
}

.unified-menu a:hover,
.unified-menu button:hover{
  background:#1f2937;
}

.unified-menu .logout{
  color:#f87171;
}

@media (max-width:600px){
  header{
    min-height:54px;
    padding:0 12px;
  }

  header .logo{
    font-size:17px;
  }

  .unified-menu{
    top:54px;
    right:10px;
    left:10px;
    min-width:0;
  }
}


header .status{
  font-size:12px;
  color:#22c55e;
  font-weight:600;
}

header .status::first-letter{
  color:#22c55e;
}


/* VOPZA Final UI Polish */
.cex-panel,
.cex-card,
.panel,
.card{
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

button,
.cex-btn,
input,
select{
  transition:all .18s ease;
}

button:hover,
.cex-btn:hover{
  transform:translateY(-1px);
}

input:focus,
select:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,.15);
}

.unified-menu{
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  backdrop-filter:blur(10px);
}

@media(max-width:600px){
  .panel,
  .card{
    padding:15px;
  }
}
