:root {
    --bg1: #000000;
    --bg2: #1a1a1a;
    --card: #0d0d0d;
    --accent: #B6F500;
    --text: #ffffff;
    --muted: #aaaaaa;
    --glass: rgba(255, 255, 255, 0.05);
  }
  body {
    font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
    margin: 0;
    background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.5s ease;
  }
  .wrap {
    max-width: 960px;
    margin: auto;
    padding: 0px;
    animation: fadeIn 0.6s ease forwards;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  header {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;   
flex-wrap: wrap;
margin-bottom: 24px;
padding: 14px 20px;
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(8px);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 0 10px rgba(182, 245, 0, 0.05);
transition: all 0.3s ease;
}

body.scrolled header {
background: rgba(0, 0, 0, 0.85);
box-shadow: 0 2px 15px rgba(182, 245, 0, 0.15);
}

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #111, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--accent);
    font-size: 18px;
    box-shadow: 0 0 10px rgba(182, 245, 0, 0.2);
    transition: 0.4s ease;
  }

  .logo:hover {
    box-shadow: 0 0 18px rgba(182, 245, 0, 0.4);
    transform: scale(1.05);
  }
  
  h1 {
    margin: 0;
    font-size: 22px;
    color: var(--accent);
  }
  .note {
    font-size: 13px;
    color: var(--muted);
  }
  .card {
    background: var(--card);
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  .card:hover {
    box-shadow: 0 0 25px rgba(182, 245, 0, 0.15);
    transform: translateY(-2px);
  }
  .rates {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  .rate {
    flex: 1;
    background: var(--glass);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .rate:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
  }
  .rate small {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .rate-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.3s ease;
  }
  .controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
  }
  input, select, button {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    transition: border 0.3s ease, background 0.3s ease;
  }
  input:focus, select:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(255,255,255,0.03);
  }
  input::placeholder {
    color: #777;
  }
  button {
    cursor: pointer;
    background: var(--accent);
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(182, 245, 0, 0.3);
  }
  .result {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.4s ease;
  }
  .result.active {
    background: rgba(182, 245, 0, 0.05);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(182, 245, 0, 0.15);
  }
  footer {
text-align: center;
font-size: 13px;
color: var(--muted);
margin-top: 60px; /* jarak dari konten */
padding: 20px 0;
opacity: 0.8;
background: rgba(255, 255, 255, 0.02);
border-top: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 12px;
max-width: 960px;
margin-left: auto;
margin-right: auto;
}

  .admin-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: 0.3s ease;
  }
  .admin-btn:hover {
    color: black;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(182, 245, 0, 0.2);
  }

  /* Modal Animations */
  .modal {
position: fixed;
inset: 0; /* sama seperti top:0; left:0; right:0; bottom:0 */
display: none;
justify-content: center;
align-items: center;
z-index: 999;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
}

.modal.show {
display: flex;
animation: fadeBg 0.3s ease;
}


.modal-card {
background: linear-gradient(145deg, #0f0f0f, #111111);
border: 1px solid #b6f500;
padding: 24px;
border-radius: 16px;
width: 340px;
box-shadow: 0 0 20px rgba(182, 245, 0, 0.15);
color: #fff;
animation: scaleUp 0.3s ease;
text-align: left;
}

  .modal-card h3 {
  text-align: center;
  color: #b6f500;
  margin-bottom: 16px;
  font-weight: 600;
  }

  @keyframes scaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
  }

  .modal h3 {
    color: var(--accent);
    margin-top: 0;
  }

  .field {
  margin-bottom: 12px;
  }

  .field label {
  display: block; 
  font-size: 13px;
  color: #aaa;
  margin-bottom: 4px;
  }

  .field input {
  width: 94%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1b1b1b;
  border: 1px solid #333;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease;
  font-family: monospace;
  }

  .field input:focus {
  border-color: #b6f500;
  }

  /* Tombol */
.admin-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.admin-btn {
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-btn.cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.admin-btn.save {
  background: #b6f500;
  color: #000;
  border: none;
  box-shadow: 0 0 12px rgba(182, 245, 0, 0.4);
}

.admin-btn.save:hover {
  background: #d0ff33;
  box-shadow: 0 0 18px rgba(182, 245, 0, 0.6);
}

  .save {
    background: var(--accent);
    border: none;
    color: #000;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
  }
  .save:hover {
    background: #d0ff33;
    box-shadow: 0 0 10px rgba(182, 245, 0, 0.3);
  }

  @media(max-width: 700px) {
    h1 { font-size: 18px; }
    .controls { flex-direction: column; }
    .rate-value { font-size: 30px; }
  }

  #lastUpdated {
color: var(--muted);
text-align: right;
font-size: 12px;
margin-top: 6px;
transition: color 0.3s ease;
}
#lastUpdated.updated {
color: var(--accent);
text-shadow: 0 0 5px rgba(182, 245, 0, 0.4);
}

.admin-btn {
background: var(--accent);
color: #000;
border: none;
padding: 8px 14px;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}

.admin-actions {
display: flex;
align-items: center;
gap: 10px;
}

.admin-btn:hover {
background: #c0ff00;
transform: scale(1.05);
}

/* Popup Styling */
.popup {
display: none;
position: fixed;
z-index: 999;
inset: 0;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
justify-content: center;
align-items: center;
}

.popup-content {
background: linear-gradient(145deg, #111, #1e1e1e);
border: 1px solid var(--accent);
border-radius: 16px;
padding: 24px;
width: 320px;
text-align: center;
color: #fff;
box-shadow: 0 0 20px rgba(182, 245, 0, 0.2);
animation: fadeIn 0.3s ease;
}

.popup-content h3 {
color: var(--accent);
margin-bottom: 10px;
}

.contact-item {
background: #222;
border-radius: 10px;
padding: 10px;
margin-top: 12px;
display: flex;
justify-content: space-between;
align-items: center;
font-family: monospace;
}

.copy-tg {
background: var(--accent);
color: #000;
border: none;
border-radius: 6px;
padding: 4px 8px;
cursor: pointer;
transition: all 0.2s ease;
}

.copy-tg:hover {
background: #d6ff40;
}

.close-popup {
margin-top: 16px;
background: rgba(255, 255, 255, 0.08);
color: #ccc;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
padding: 6px 12px;
cursor: pointer;
transition: all 0.3s ease;
}

.close-popup:hover {
background: rgba(255, 255, 255, 0.15);
color: #fff;
}

.copy-msg {
margin-top: 8px;
font-size: 13px;
color: var(--accent);
opacity: 0;
transition: opacity 0.3s ease;
}

@keyframes fadeIn {
from {opacity: 0; transform: scale(0.95);}
to {opacity: 1; transform: scale(1);}
}

/* Tombol emoji setting */
.admin-icon-btn {
background: transparent;
border: 0px solid rgba(255, 255, 255, 0.15);
border-radius: 50%;
width: 42px;
height: 42px;
font-size: 20px;
cursor: pointer;
color: var(--accent);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
box-shadow: 0 0 8px rgba(182, 245, 0, 0.15);
}

.admin-icon-btn:hover {
background: var(--bg1);
color: #000;
box-shadow: 0 0 15px rgba(184, 245, 0, 0);
transform: rotate(90deg) scale(1.1);
}

/* Font khusus untuk angka */
.rate-value,
.result h1 b,
.result h1,
#buyRate,
#sellRate {
font-family: 'Orbitron', sans-serif;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--accent);
text-shadow: 0 0 8px rgba(182, 245, 0, 0.25);
}

/* Neon green scrollbar style */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}

/* Track (area di belakang scroll) */
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.4);
border-radius: 10px;
}

/* Thumb (batang scroll) */
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #B6F500, #7FBF00);
border-radius: 10px;
box-shadow: 0 0 10px #B6F500;
transition: all 0.3s ease;
}

/* Hover effect */
::-webkit-scrollbar-thumb:hover {
background: #C9FF00;
box-shadow: 0 0 15px #B6F500;
}