* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: #0b0e14;
  color: #e5e7eb;
}

/* =====================
   HEADER
===================== */
.dashboard-header {
  background: linear-gradient(135deg, #1e1b4b, #020617);
  padding: 30px;
  border-radius: 0 0 18px 18px;
  margin: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-text h1 {
  margin: 0;
  font-size: 28px;
}

.header-text p {
  margin: 6px 0 0;
  color: #cbd5f5;
}

.header-menu {
  display: flex;
  gap: 10px;
}

/* =====================
   BUTTONS
===================== */
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s;
}

.btn-purple {
  background: #7c3aed;
  color: white;
}

.btn-dark {
  background: #1f2933;
  color: white;
}

.btn-red {
  background: #ef4444;
  color: white;
}

.btn-green {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  color: #022c22;
  border: none;
  width: 100%;
}

.btn-blue {
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
  color: #022c2e;
  border: none;
  width: 100%;
}

.btn:hover {
  opacity: 0.9;
}

/* =====================
   CONTENT GRID
===================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* =====================
   CARD
===================== */
.card {
  background: #111827;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 0 0 1px #1f2937;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

/* =====================
   FORM
===================== */
.form-group {
  margin-bottom: 14px;
}

label {
  font-size: 13px;
  color: #9ca3af;
}

input,
select {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #020617;
  color: #e5e7eb;
}

input::placeholder {
  color: #6b7280;
}

select {
  cursor: pointer;
}

pre {
  margin-top: 12px;
  background: #020617;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  overflow-x: auto;
}

/* ============================
   ADD SERVER PAGE
============================ */

/* HEADER ADD SERVER */
header {
  background: linear-gradient(135deg, #1e1b4b, #020617);
  margin: 20px;
  padding: 24px 30px;
  border-radius: 16px;
}

header h1 {
  margin: 0;
  font-size: 24px;
}

header nav {
  margin-top: 10px;
}

header nav a {
  display: inline-block;
  background: #1f2937;
  color: #e5e7eb;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}

header nav a:hover {
  opacity: 0.9;
}

.admin-header {
  border: 1px solid #1f2937;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
}

.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-header-inner p {
  margin: 6px 0 0;
  color: #cbd5f5;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.content-wrapper .form-card {
  grid-template-columns: 1fr;
}

.content-wrapper .form-card .form-group,
.content-wrapper .form-card .form-group:nth-last-child(2),
.content-wrapper .form-card .form-group:last-child {
  grid-column: span 1;
}

.content-wrapper .form-card button {
  grid-column: span 1;
}

.full-btn {
  width: 100%;
}

.checkbox-group {
  grid-column: span 1;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5f5;
  font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
  width: auto;
}

/* ============================
   FORM CARD
============================ */
main {
  padding: 20px;
}

.form-card {
  background: #111827;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 0 0 1px #1f2937;
}

/* GRID INPUT */
.form-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.form-card .form-group {
  display: flex;
  flex-direction: column;
}

/* FULL WIDTH */
.form-card .form-group:nth-last-child(2),
.form-card .form-group:last-child {
  grid-column: span 3;
}

/* LABEL */
.form-card label {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 6px;
}

/* INPUT */
.form-card input[type="text"],
.form-card input[type="number"] {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #020617;
  color: #e5e7eb;
}

.form-card input::placeholder {
  color: #6b7280;
}

/* ============================
   CHECKBOX
============================ */
.form-card input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.form-card .form-group label input[type="checkbox"] {
  accent-color: #7c3aed;
}

/* ============================
   BUTTON AREA
============================ */
.form-card button {
  grid-column: span 3;
  margin-top: 10px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.form-card button:hover {
  opacity: 0.9;
}

/* ============================
   ADMIN SERVER TABLE
============================ */
.table-container {
  overflow-x: auto;
  margin: 20px;
  border-radius: 12px;
  background: #111827;
  padding: 15px;
}

.card.table-card {
  padding: 0;
  overflow: hidden;
}

.card.table-card h3 {
  padding: 22px 22px 0 22px;
  margin-bottom: 10px;
}

.table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin-top: 10px;
}

.table thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
  padding: 12px 10px;
  border-bottom: 1px solid #1f2937;
}

.table tbody td {
  padding: 12px 10px;
  font-size: 14px;
  border-bottom: 1px solid #1f2937;
  color: #e5e7eb;
}

.table tbody tr:hover {
  background: rgba(124, 58, 237, 0.06);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================
   TABLE ACTION COLUMN
============================ */
.table td[data-label="Aksi"] {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 120px;
  max-width: 150px;
}

.table td[data-label="Aksi"] .action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

/* ============================
   SERVER ACTION BUTTONS
============================ */
.btn-action {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1 1 110px;
  text-align: center;
  min-width: 0;
}

.btn-edit {
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: white;
}

.btn-delete {
  background: linear-gradient(90deg, #ef4444, #f87171);
  color: white;
}

.btn-action:hover {
  opacity: 0.9;
}

/* ============================
   BADGE
============================ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ============================
   MODAL (FIXED & SCROLLABLE)
============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

.modal {
  background: #111827;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 0 0 1px #1f2937;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.modal h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

.modal .form-group {
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions button {
  flex: 1;
}

/* ============================
   RESPONSIVE
============================ */

/* DESKTOP & TABLET BESAR */
@media (min-width: 769px) {
  .table td[data-label="Aksi"] {
    justify-content: flex-start;
    padding-right: 15px;
  }
}

/* MOBILE & TABLET KECIL */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .auth-box {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 14px;
  }

  h2 {
    font-size: 22px;
    text-align: center;
  }

  input,
  button {
    font-size: 15px;
  }

  button {
    width: 100%;
  }

  .dashboard-header {
    margin: 10px;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }

  .header-menu {
    width: 100%;
    justify-content: center;
  }

  .content-grid {
    padding: 10px;
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  /* FORM CARD RESPONSIVE */
  .form-card {
    grid-template-columns: 1fr;
  }

  .form-card .form-group {
    grid-column: span 1 !important;
  }

  header {
    margin: 12px;
    padding: 18px;
  }

  .admin-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header nav {
    width: 100%;
  }

  .admin-header nav a {
    width: 100%;
    text-align: center;
  }

  .content-wrapper {
    padding: 0 12px 32px;
  }

  .form-card {
    padding: 20px;
  }

  .content-wrapper .form-card {
    grid-template-columns: 1fr;
  }

  .content-wrapper .form-card .form-group {
    grid-column: span 1;
  }

  .content-wrapper .checkbox-group {
    grid-column: span 1;
  }

  /* TABLE RESPONSIVE MOBILE */
  .table-container {
    margin: 10px;
    padding: 10px;
  }

  .table {
    min-width: 100%;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    background: #020617;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 0 0 1px #1f2937;
  }

  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border: none;
    gap: 12px;
    font-size: 14px;
  }

  .table td::before {
    content: attr(data-label);
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* AKSI BUTTON MOBILE */
  .table td[data-label="Aksi"] {
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #1f2937;
    min-width: 100%;
    max-width: 100%;
  }

  .table td[data-label="Aksi"] .action-buttons {
    flex-direction: column;
  }

  .btn-action {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 0;
    white-space: normal;
    word-wrap: break-word;
  }

  /* Styling khusus untuk Pilih akun di tablet */
  .table td[data-label="Pilih akun"] {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .table td[data-label="Pilih akun"] .btn-action {
    width: 100%;
    max-width: 100%;
  }

  /* Memastikan baris aksi tetap dalam satu baris */
  .table td[data-label="Aksi"]::before {
    display: none;
  }

  .card.table-card h3 {
    padding: 18px 18px 0 18px;
  }
}

/* Untuk ukuran sangat kecil */
@media (max-width: 480px) {
  .modal {
    padding: 18px;
    border-radius: 14px;
  }

  .modal h3 {
    font-size: 18px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .table td[data-label="Aksi"] {
    flex-direction: column;
    gap: 6px;
  }

  .table td[data-label="Aksi"] .action-buttons {
    width: 100%;
  }

  .btn-action {
    width: 100%;
    padding: 10px;
    white-space: normal;
    word-wrap: break-word;
    min-width: 0;
  }

  /* Pastikan Pilih akun full width di mobile kecil */
  .table td[data-label="Pilih akun"] {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .table td[data-label="Pilih akun"] .btn-action {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-header {
    padding: 15px;
  }

  .header-text h1 {
    font-size: 22px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Untuk tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-card .form-group:nth-last-child(2),
  .form-card .form-group:last-child {
    grid-column: span 2;
  }

  .form-card button {
    grid-column: span 2;
  }
}


/* ============================
   NAVIGASI SIDEBAR ADMIN
============================ */
.admin-nav {
  background: #111827;
  border-radius: 16px;
  margin: 20px;
  padding: 0;
  box-shadow: 0 0 0 1px #1f2937;
  overflow: hidden;
}

.nav-header {
  padding: 20px;
  border-bottom: 1px solid #1f2937;
}

.nav-header h2 {
  margin: 0;
  font-size: 20px;
  color: #e5e7eb;
}

.nav-menu {
  padding: 10px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.nav-item:hover {
  background: rgba(124, 58, 237, 0.1);
  color: #e5e7eb;
}

.nav-item.active {
  background: rgba(124, 58, 237, 0.15);
  color: #a855f7;
  border-left-color: #7c3aed;
}

.nav-item i {
  margin-right: 12px;
  font-size: 18px;
}

/* ============================
   STATISTIK CARD
============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background: #111827;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 0 1px #1f2937;
  text-align: center;
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  margin: 10px 0;
}

.stat-label {
  font-size: 14px;
  color: #9ca3af;
}

.stat-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #cbd5f5;
}

.reseller-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reseller-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.reseller-search input {
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 10px 12px;
  color: #e5e7eb;
  min-width: 180px;
}

.reseller-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #020617;
  border-radius: 10px;
  border: 1px solid #1f2937;
}

.reseller-name {
  color: #e5e7eb;
  font-weight: 600;
}

.reseller-amount {
  color: #22c55e;
  font-weight: 700;
}

.reseller-sales {
  color: #cbd5f5;
  font-size: 12px;
}

.stat-server {
  color: #7c3aed;
}

.stat-users {
  color: #22c55e;
}

.stat-sales {
  color: #f59e0b;
}

.stat-balance {
  color: #06b6d4;
}

/* ============================
   QUICK ACTIONS
============================ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.action-btn {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 15px;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  text-decoration: none;
}

.action-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: #7c3aed;
  transform: translateY(-2px);
}

.action-btn i {
  font-size: 24px;
  margin-bottom: 10px;
}

.action-btn.add-server i {
  color: #7c3aed;
}

.action-btn.refresh i {
  color: #22c55e;
}

.action-btn.manage-users i {
  color: #06b6d4;
}

.action-btn.logout i {
  color: #ef4444;
}

/* ============================
   CONTENT AREA
============================ */
.content-area {
  background: #111827;
  border-radius: 16px;
  padding: 25px;
  margin: 20px;
  box-shadow: 0 0 0 1px #1f2937;
}

.content-area h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #e5e7eb;
}

/* ============================
   FORM GRID LAYOUT
============================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* ============================
   RESPONSIVE NAVIGATION
============================ */
@media (max-width: 768px) {
  .admin-nav {
    margin: 10px;
  }
  
  .nav-header {
    padding: 15px;
  }
  
  .nav-header h2 {
    font-size: 18px;
  }
  
  .nav-item {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .content-area {
    margin: 10px;
    padding: 15px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .action-btn {
    min-height: 80px;
    padding: 12px;
  }
}
/* ============================
   ADMIN TOAST NOTIFICATION
============================ */
.admin-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #16a34a;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.3s ease;
  z-index: 9999;
}

.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}
/* ============================
   TABLE NUMBER ALIGNMENT
============================ */
.table th:nth-child(3),
.table td:nth-child(3),
.table th:nth-child(4),
.table td:nth-child(4),
.table th:nth-child(5),
.table td:nth-child(5),
.table th:nth-child(6),
.table td:nth-child(6) {
  text-align: center;
}
/* ============================
   SERVER TYPE BADGE
============================ */
.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  margin-left: 6px;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  margin-left: 6px;
}

/* ============================
   ADMIN CONTACT SETTINGS
============================ */
.card.contact-admin {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card.contact-admin label {
  font-size: 13px;
  color: #9ca3af;
}

.card.contact-admin input {
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 12px 14px;
  color: #e5e7eb;
  outline: none;
  transition: border 0.2s ease;
}

.card.contact-admin input:focus {
  border-color: #7c3aed;
}

.card.contact-admin button {
  margin-top: 6px;
}
.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
/* ============================
   SALDO USER MODAL
============================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.show {
  display: flex;
}

.modal-box {
  background: #020617;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.modal-box h3 {
  margin-bottom: 12px;
}

.modal-box p {
  margin-bottom: 8px;
  color: #e5e7eb;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
/* ============================
   ADMIN BROADCAST
============================ */
.broadcast-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.broadcast-form textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
}

.broadcast-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.broadcast-item {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 12px 14px;
}

.broadcast-item p {
  margin: 0;
  color: #e5e7eb;
}

.broadcast-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.broadcast-item small {
  color: #94a3b8;
}

.btn-broadcast-delete {
  padding: 6px 10px;
  font-size: 12px;
}
/* ============================
   SEARCH USER ADMIN
============================ */
.search-user {
  display: flex;
  gap: 10px;
}

.search-user input {
  flex: 1;
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 10px 14px;
  color: #e5e7eb;
}

.user-result {
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* ============================
   ADMIN DASHBOARD ENHANCEMENT
============================ */

/* Container & Layout */
.admin-container {
  padding: 0 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.content-section {
  background: transparent;
}

/* Card Enhancements */
.card {
  background: #111827;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid #1f2937;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1f2937;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  color: #e5e7eb;
}

.card-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Form Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

/* Input with Symbol */
.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-symbol {
  position: absolute;
  left: 12px;
  color: #9ca3af;
  font-weight: 600;
  z-index: 1;
}

.input-with-symbol input {
  padding-left: 36px;
}

/* Result Box Styling */
.result-box {
  margin-top: 20px;
  background: #020617;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #1f2937;
}

.result-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-processing {
  color: #fbbf24;
}

.result-error {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #ef4444;
}

.result-success {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #22c55e;
}

.success-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

.saldo-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saldo-details div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saldo-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #1f2937;
  font-weight: 600;
}

.saldo-total span {
  color: #22c55e;
  font-weight: 700;
}

.role-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  margin-top: 8px;
}

.role-before {
  color: #f59e0b;
  font-weight: 600;
}

.role-after {
  color: #22c55e;
  font-weight: 600;
}

.arrow {
  color: #9ca3af;
}

/* Search User */
.search-user {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: stretch;
}

.search-user input {
  flex: 1;
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 12px 16px;
  color: #e5e7eb;
  font-size: 14px;
  min-width: 0;
}

.search-user input:focus {
  outline: none;
  border-color: #7c3aed;
}

.search-result {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-user .btn,
.search-user .btn-blue {
  width: auto;
  padding: 12px 18px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.user-result {
  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: all 0.2s;
  gap: 12px;
}

.user-result:hover {
  border-color: #7c3aed;
}

.user-result > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-result b {
  font-size: 16px;
  color: #e5e7eb;
}

.user-result small {
  color: #9ca3af;
  font-size: 12px;
}

.user-result .btn-action {
  flex: 0 0 auto;
  min-width: auto;
  padding: 8px 12px;
  font-size: 13px;
}

.user-result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}

/* Server Name in Table */
.server-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.server-name .badge {
  font-size: 11px;
  padding: 3px 8px;
}

/* Action Buttons in Table */
.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Table Enhancements */
.table-card .card-header {
  margin-bottom: 0;
}

.table-info {
  color: #9ca3af;
  font-size: 14px;
  background: rgba(124, 58, 237, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-info span {
  color: #a855f7;
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
  border-radius: 0 0 16px 16px;
  margin-top: -1px;
}

.table {
  margin: 0;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Modal Enhancements */
.modal-box {
  max-width: 440px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #020617;
  border-radius: 10px;
  border: 1px solid #1f2937;
}

.info-item .label {
  color: #9ca3af;
  font-size: 14px;
}

.info-item .value {
  color: #e5e7eb;
  font-weight: 600;
}

.saldo-amount {
  color: #22c55e !important;
  font-size: 18px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions .btn {
  flex: 1;
  padding: 12px;
}

/* Contact Admin */
.contact-admin {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-text {
  margin-top: 8px;
  font-size: 13px;
  display: block;
}

/* Header Enhancements */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-badge {
  background: rgba(124, 58, 237, 0.2);
  color: #c084fc;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* Table Text States */
.loading-text {
  text-align: center;
  color: #9ca3af;
  padding: 40px !important;
  font-style: italic;
}

.empty-text {
  text-align: center;
  color: #f59e0b;
  padding: 40px !important;
}

.error-text {
  text-align: center;
  color: #f87171;
  padding: 40px !important;
}

/* HAPUS SEMUA STYLING IKON YANG MEMBUAT BULATAN */
.icon-dashboard,
.icon-logout,
.icon-server,
.icon-users,
.icon-sales,
.icon-balance,
.icon-refresh,
.icon-add,
.icon-settings,
.icon-role,
.icon-wallet,
.icon-save,
.icon-search,
.icon-whatsapp,
.icon-delete,
.icon-close {
  display: none !important; /* Hapus ikon visual */
}

/* Responsive */
@media (max-width: 768px) {
  .admin-container {
    padding: 0 10px 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .header-actions {
    width: 100%;
    justify-content: center;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .search-user {
    flex-direction: column;
  }
  
  .search-user button {
    width: 100%;
  }
  
  .user-result {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 16px;
  }
  
  .table-card {
    padding: 0;
  }
  
  .table-card .card-header {
    padding: 16px;
  }
}

/* ============================
   ADMIN DASHBOARD REFINEMENTS
============================ */
.admin-page {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(168, 85, 247, 0.1), transparent 60%),
    #0b0e14;
  color: #e5e7eb;
  min-height: 100vh;
}

.admin-page .dashboard-header {
  max-width: 1400px;
  margin: 20px 20px 0 270px;
  border: 1px solid #1f2937;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
  background: linear-gradient(135deg, #11162a, #0b0f1a);
}

.admin-page .header-text h1 {
  font-size: 30px;
  letter-spacing: 0.2px;
}

.admin-page .admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.admin-page .stats-grid {
  gap: 16px;
}

.admin-page .stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #1f2937;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(2, 6, 23, 0.95));
}

.admin-page .stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140px 90px at 20% 10%, rgba(148, 163, 184, 0.12), transparent 70%);
  pointer-events: none;
}

.admin-page .stat-value {
  font-size: 30px;
  letter-spacing: 0.3px;
}

.admin-page .quick-actions {
  gap: 12px;
}

.admin-page .action-btn {
  position: relative;
  min-height: 88px;
  background: #0f172a;
  border: 1px solid #1f2937;
  letter-spacing: 0.3px;
}

.admin-page .action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, #7c3aed);
}

.admin-page .action-btn.refresh {
  --accent: #22c55e;
}

.admin-page .action-btn.add-server {
  --accent: #7c3aed;
}

.admin-page .action-btn.manage-users {
  --accent: #06b6d4;
}

.admin-page .action-btn.logout {
  --accent: #ef4444;
}

.admin-page .dashboard-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.admin-page .content-section {
  display: none;
}

.admin-page .content-section.active {
  display: block;
}

.admin-page .dashboard-content .content-section {
  grid-column: 1 / -1;
}

.admin-page .dashboard-content .content-section:nth-child(2),
.admin-page .dashboard-content .content-section:nth-child(3) {
  grid-column: span 6;
}

.admin-page .card {
  border: 1px solid #1f2937;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(2, 6, 23, 0.98));
}

.admin-page .card-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-page input:focus,
.admin-page select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.admin-page .table-card .table-container {
  margin: 0;
  padding: 0 20px 20px;
  background: transparent;
}

.admin-page .table tbody tr {
  transition: background 0.2s ease;
}

.admin-page .table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.35);
}

.admin-page .table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

.admin-page .menu-toggle {
  width: 36px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: transparent;
  border: none;
  cursor: pointer;
}

.admin-page .menu-toggle span {
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: 0.3s;
}

.admin-page .sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: #111827;
  border-right: 1px solid #1f2937;
  z-index: 99;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-page .sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-page .sidebar-menu {
  padding: 20px 0;
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.65) rgba(17, 24, 39, 0.6);
}

.admin-page .sidebar-menu::-webkit-scrollbar {
  width: 8px;
}

.admin-page .sidebar-menu::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.6);
  border-radius: 999px;
}

.admin-page .sidebar-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.8), rgba(168, 85, 247, 0.7));
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 39, 0.6);
}

.admin-page .sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(124, 58, 237, 1), rgba(168, 85, 247, 0.9));
}

.admin-page .input-group {
  display: flex;
  gap: 10px;
}

.admin-page .input-group input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .admin-page .input-group {
    flex-direction: column;
  }
}

.admin-page .sidebar-btn {
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  color: #cbd5f5;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
  border-left: 4px solid transparent;
}

.admin-page .sidebar-btn:hover {
  background: rgba(124, 58, 237, 0.1);
}

.admin-page .sidebar-btn.active {
  background: rgba(124, 58, 237, 0.2);
  border-left-color: #7c3aed;
  color: #fff;
}

.admin-page .close-sidebar {
  display: none;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.admin-page .sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

.admin-page .main-content {
  margin-left: 250px;
  padding: 20px;
}

@media (max-width: 768px) {
  .admin-page .dashboard-header {
    margin: 12px 10px 0;
  }

  .admin-page .menu-toggle {
    align-self: flex-start;
  }

  .admin-page .reseller-search {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-page .reseller-search input {
    min-width: 0;
    width: 100%;
  }

  .admin-page .reseller-search .btn {
    width: 100%;
  }

  .admin-page .sidebar {
    transform: translateX(-100%);
  }

  .admin-page .sidebar.active {
    transform: translateX(0);
  }

  .admin-page .sidebar-overlay.active {
    display: block;
  }

  .admin-page .close-sidebar {
    display: inline-block;
  }

  .admin-page .main-content {
    margin-left: 0;
    padding: 20px 12px;
  }
}

@media (max-width: 1024px) {
  .admin-page .dashboard-content {
    grid-template-columns: 1fr;
  }

  .admin-page .dashboard-content .content-section:nth-child(2),
  .admin-page .dashboard-content .content-section:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .admin-page .dashboard-header {
    margin: 12px 10px 0;
  }

  .admin-page .admin-container {
    padding: 16px 12px 32px;
  }

  .admin-page .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .admin-page .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .action-btn {
    min-height: 72px;
  }
}
