/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #f8f9fa;
    color: #222;
    font-family: monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Select (Network Dropdown) */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  user-select: none;
  font-family: "Inter", sans-serif;
}
.custom-select-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  transition: 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.custom-select-display:hover {
  border-color: #F0B90B;
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.15);
}
.custom-select-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-top: 4px;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.custom-select-list.show {
  display: block;
}
.custom-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.2s;
}
.custom-option:hover {
  background: linear-gradient(135deg, #F3D34A, #F0B90B);
  color: #000;
}
.option-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.bsc {
    width: 30px;
    border: solid 1px #ddd;
    padding: 1px;
    border-radius: 5px;
    background: #fff;
}

/* Header */
.header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 5%; 
    background: #fff; 
    border-bottom: 1px solid #e0e0e0;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.logo-img { 
    width: 40px; 
    height: 40px; 
    border-radius: 10px; 
    border: 2px solid #F0B90B; 
    box-shadow: 0 0 10px rgba(240, 185, 11, 0.3);
}
.logo-text { 
    font-size: 1.4rem; 
    font-weight: 700; 
    color: #F0B90B; 
    text-shadow: 0 0 8px rgba(240, 185, 11, 0.3); 
}
.nav ul { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
    align-items: center; 
}
.nav a { 
    color: #333; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color .3s; 
}
.nav a:hover { 
    color: #F0B90B; 
}
#connect-wallet, #mobile-connect-wallet {
    background: linear-gradient(135deg, #F3D34A, #F0B90B);
    color: #000; 
    border: none; 
    padding: 0.5rem 1rem;
    border-radius: 6px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: .3s;
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}
#connect-wallet:hover, #mobile-connect-wallet:hover { 
    background: linear-gradient(135deg, #F0B90B, #e6a800); 
    transform: translateY(-1px); 
    box-shadow: 0 6px 16px rgba(240, 185, 11, 0.4);
}

/* Hamburger */
.hamburger { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
    z-index: 1001; 
}
.hamburger span { 
    width: 25px; 
    height: 3px; 
    background: #F0B90B; 
    border-radius: 3px; 
    transition: 0.3s; 
    box-shadow: 0 0 6px rgba(240, 185, 11, 0.4);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 70%; 
    max-width: 300px; 
    height: 100vh;
    background: #fff; 
    padding: 5rem 2rem 2rem; 
    transition: right .4s ease; 
    z-index: 999;
    border-left: 1px solid #F0B90B;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-menu.active { right: 0; }
.mobile-menu ul { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}
.mobile-menu a, .mobile-menu button { 
    color: #333; 
    font-size: 1.1rem; 
    text-decoration: none; 
}
.mobile-menu a:hover { 
    color: #F0B90B; 
}

/* Container */
.container {
    width: 90%; 
    max-width: 600px; 
    margin: 2rem auto; 
    padding: 2rem;
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
h1 { 
    text-align: center; 
    color: #F0B90B; 
    margin-bottom: 1.5rem; 
    text-shadow: 0 0 8px rgba(240, 185, 11, 0.2); 
    font-size: 1.8rem;
}
label { 
    display: block; 
    margin-top: 1rem; 
    color: #F0B90B; 
    font-weight: 600; 
    font-size: 0.95rem;
}
input, textarea, select {
    width: 100%; 
    padding: 12px; 
    margin-top: 6px; 
    background: #fdfdfd;
    border: 1px solid #ddd; 
    color: #222; 
    border-radius: 6px; 
    transition: .3s;
    font-family: monospace;
}
input:focus, textarea:focus, select:focus {
    outline: none; 
    border-color: #F0B90B; 
    box-shadow: 0 0 0 3px rgba(240, 185, 11, 0.2);
    background: #fff;
}
button[type="button"], button[type="submit"] {
    width: 100%; 
    padding: 12px; 
    margin-top: 1.5rem; 
    background: linear-gradient(135deg, #F3D34A, #F0B90B);
    color: #000; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer;
    font-weight: bold; 
    font-size: 1rem; 
    transition: .3s;
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}
button[type="button"]:hover, button[type="submit"]:hover {
    background: linear-gradient(135deg, #F0B90B, #e6a800);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 185, 11, 0.4);
}

/* MODAL (Disconnect) */
.modal {
    display: none;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(8px);
    justify-content: center; 
    align-items: center; 
    z-index: 2000;
    opacity: 0; 
    transition: opacity 0.3s ease;
}
.modal.show { 
    display: flex; 
    opacity: 1; 
}
.modal-content {
    background: #fff; 
    padding: 2rem; 
    border-radius: 16px; 
    text-align: center;
    border: 1px solid #F0B90B; 
    box-shadow: 0 15px 40px rgba(240, 185, 11, 0.25);
    width: 90%; 
    max-width: 420px; 
    animation: modalPop 0.4s ease;
}
.modal-content h3 { 
    color: #F0B90B; 
    margin-bottom: 0.5rem; 
    font-size: 1.3rem; 
}
.modal-content p { 
    color: #555; 
    margin-bottom: 1.5rem; 
    font-size: 0.95rem; 
}
.modal-actions { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
}
.btn-danger {
    background: #e74c3c; 
    color: white; 
    padding: 0.7rem 1.5rem; 
    border: none;
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s;
}
.btn-danger:hover { 
    background: #c0392b; 
    transform: translateY(-2px); 
}
.btn-secondary {
    background: #f1f1f1; 
    color: #333; 
    padding: 0.7rem 1.5rem; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s;
}
.btn-secondary:hover { 
    background: #F0B90B; 
    color: #000; 
    border-color: #F0B90B; 
    transform: translateY(-2px); 
}
@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger { display: flex; }
    .container { width: 95%; padding: 1.5rem; }
    h1 { font-size: 1.6rem; }
}