* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #c026ff;
  --purple-light: #e879f9;
  --purple-dark: #7c1dff;
  --green: #22c55e;
  --green-bright: #4ade80;
  --green-dark: #16a34a;
  --bg: #0a0a0f;
  --card: #12121a;
  --card-border: #2a2a3a;
  --text: #f1f1f5;
  --muted: #a1a1aa;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== Falling Particles ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  opacity: 0.35;
  animation: fall linear infinite;
  font-size: 18px;
  user-select: none;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== Header ===== */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: linear-gradient(90deg, #1a0a2e 0%, #0f1a12 100%);
  border-bottom: 1px solid #2a1a4a;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: white;
  box-shadow: 0 0 20px rgba(192, 38, 255, 0.5);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.blink-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--green-bright), var(--purple-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: blinkGlow 1.6s ease-in-out infinite, gradientMove 3s linear infinite;
  text-shadow: 0 0 20px rgba(192, 38, 255, 0.8);
  filter: drop-shadow(0 0 8px var(--purple)) drop-shadow(0 0 12px var(--green));
}

@keyframes blinkGlow {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--purple)) drop-shadow(0 0 14px var(--green)) brightness(1.2);
  }
  50% {
    opacity: 0.55;
    filter: drop-shadow(0 0 4px var(--purple)) drop-shadow(0 0 6px var(--green)) brightness(0.7);
  }
}

@keyframes gradientMove {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

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

.header-link {
  color: var(--purple-light);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.header-link:hover {
  color: var(--green-bright);
}

.admin-btn {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(192, 38, 255, 0.4);
}

/* ===== Banner ===== */
.banner {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(90deg, rgba(124, 29, 255, 0.15), rgba(34, 197, 94, 0.1));
  border-bottom: 1px solid #2a1a4a;
}

.vip-badge {
  background: linear-gradient(135deg, var(--purple), var(--green));
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
}

.banner-right {
  color: var(--muted);
  font-size: 13px;
}

/* ===== Container & Cards ===== */
.container {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 18px;
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 25px rgba(192, 38, 255, 0.15);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-name {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-tag {
  background: linear-gradient(90deg, var(--purple), var(--green));
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.card-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.card-photos img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #2a2a3a;
  transition: transform 0.2s;
}

.card-photos img:hover {
  transform: scale(1.04);
}

.card-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green-bright);
  font-weight: 600;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.action-btns {
  display: flex;
  gap: 8px;
}

.btn-wa, .btn-call {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn-call {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
}

.btn-wa:hover, .btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(6px);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #16161f;
  border: 1px solid #2a2a3a;
  border-radius: 16px;
  padding: 28px;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-content.admin-panel {
  max-width: 720px;
}

.modal-content h2 {
  margin-bottom: 18px;
  font-size: 20px;
  background: linear-gradient(90deg, var(--purple-light), var(--green-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #0e0e14;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  outline: none;
}

.modal-content input:focus,
.modal-content select:focus {
  border-color: var(--purple);
}

.modal-content button {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

#loginSubmit, #saveBtn {
  background: linear-gradient(135deg, var(--purple), var(--green));
  color: white;
}

.close-modal, #cancelEdit, .logout-btn {
  background: #2a2a3a;
  color: #ccc;
  margin-top: 10px;
}

.error {
  color: #f87171;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.logout-btn {
  width: auto !important;
  padding: 6px 14px !important;
  font-size: 13px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  flex: 1;
  padding: 10px !important;
  background: #1e1e28 !important;
  color: var(--muted) !important;
  border: 1px solid #2a2a3a !important;
}

.tab.active {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple)) !important;
  color: white !important;
  border-color: transparent !important;
}

.tab-content.hidden {
  display: none;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.photo-preview img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #333;
}

.admin-listing-item {
  background: #1a1a24;
  border: 1px solid #2a2a3a;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-listing-item strong {
  font-size: 15px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions button {
  width: auto !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  margin: 0 !important;
}

.btn-edit {
  background: var(--purple-dark) !important;
  color: white !important;
}

.btn-delete {
  background: #7f1d1d !important;
  color: white !important;
}

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

.form-actions button {
  flex: 1;
}

/* Responsive */
@media (max-width: 800px) {
  .card {
    grid-template-columns: 1fr;
  }
  .card-photos {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-actions {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .header-right {
    flex-direction: column;
  }
}
