/* ===============================
   1. FONT SYSTEM
================================ */

.Audiowide {
  font-family: "Audiowide", sans-serif;
}

.caveat {
  font-family: "Caveat Brush", cursive;
}

.aubrey-regular {
  font-family: "Aubrey", system-ui;
  font-weight: 400;
  font-style: normal;
}

.orbitron,
.brand-text {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-brand-text {
  font-family: "Aubrey", cursive;
  font-size: 1.35em;
  line-height: 1.1;
}

.card-text {
  font-family: "Delius", cursive;
}

.btn {
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
}

/* ===============================
   2. BASE LAYOUT
================================ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.app-body {
  background: radial-gradient(circle at top, #111 0%, #000 60%);
  color: #eaeaea;
  font-family: "Inter", sans-serif;
  position: relative;
  z-index: 1;
}

.main-content-body {
  flex: 1;
  padding: 2rem 0;
}

/* ===============================
   3. REUSABLE LAYOUT UTILITIES
================================ */

.layout-center {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.section-pad {
  padding: 2rem 0;
}

.text-muted-soft {
  color: #b5b5b5;
  font-size: 0.9rem;
}

/* ===============================
   4. GLASS / PREMIUM COMPONENTS
================================ */

.glass-panel {
  max-width: 420px;
  width: 100%;
  padding: 2.5rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.premium-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.premium-card .card-title {
  font-size: 2em;
  font-family: "Aubrey", cursive;
}

.premium-card .card-text {
  font-size: 0.9rem;
  color: #cfcfcf;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #000;
  margin: auto;
}

/* ===============================
   5. NAVBAR
================================ */

.glass-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(20, 20, 20, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  color: #ddd !important;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #ffc107 !important;
  transform: translateY(-1px);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.user-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* ===============================
   6. BUTTON SYSTEM
================================ */

/* Base sizing & transitions — font already set above */
.btn {
  border-radius: 0.55rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}
.btn:active {
  transform: scale(0.97);
}

/* Warning — primary CTA */
.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ff9f00 100%);
  border-color: #ffc107;
  color: #000;
}
.btn-warning:hover {
  background: linear-gradient(135deg, #ffe066 0%, #ffc107 100%);
  border-color: #ffe066;
  color: #000;
  box-shadow: 0 0 18px rgba(255, 193, 7, 0.35);
}

.btn-outline-warning {
  border-color: rgba(255, 193, 7, 0.5);
  color: #ffc107;
  background: rgba(255, 193, 7, 0.07);
}
.btn-outline-warning:hover {
  background: rgba(255, 193, 7, 0.18);
  border-color: #ffc107;
  color: #ffc107;
  box-shadow: 0 0 14px rgba(255, 193, 7, 0.22);
}

/* Danger */
.btn-danger {
  background: linear-gradient(135deg, #ed4245 0%, #c0392b 100%);
  border-color: #ed4245;
  color: #fff;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #ff6b6b 0%, #ed4245 100%);
  border-color: #ff6b6b;
  color: #fff;
  box-shadow: 0 0 14px rgba(237, 66, 69, 0.3);
}

.btn-outline-danger {
  border-color: rgba(237, 66, 69, 0.45);
  color: #ed4245;
  background: rgba(237, 66, 69, 0.06);
}
.btn-outline-danger:hover {
  background: rgba(237, 66, 69, 0.16);
  border-color: #ed4245;
  color: #ed4245;
  box-shadow: 0 0 12px rgba(237, 66, 69, 0.2);
}

/* Info / cyan */
.btn-outline-info {
  border-color: rgba(13, 202, 240, 0.4);
  color: #0dcaf0;
  background: rgba(13, 202, 240, 0.06);
}
.btn-outline-info:hover {
  background: rgba(13, 202, 240, 0.16);
  border-color: #0dcaf0;
  color: #0dcaf0;
  box-shadow: 0 0 12px rgba(13, 202, 240, 0.2);
}

/* Success */
.btn-outline-success {
  border-color: rgba(87, 242, 135, 0.4);
  color: #57f287;
  background: rgba(87, 242, 135, 0.05);
}
.btn-outline-success:hover {
  background: rgba(87, 242, 135, 0.15);
  border-color: #57f287;
  color: #57f287;
  box-shadow: 0 0 12px rgba(87, 242, 135, 0.18);
}

/* Secondary / ghost */
.btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.15);
  color: #aaa;
  background: rgba(255, 255, 255, 0.04);
}
.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #eee;
}

/* Light */
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ccc;
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Orange */
.btn-orange,
.bg-orange {
  background-color: #fd7e14;
}

.btn-orange {
  --bs-btn-color: #000;
  --bs-btn-bg: #fd7e14;
  --bs-btn-border-color: #fd7e14;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #e96b00;
  --bs-btn-hover-border-color: #e96b00;
  --bs-btn-focus-shadow-rgb: 253, 126, 20;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #d65f00;
  --bs-btn-active-border-color: #d65f00;
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #fd7e14;
  --bs-btn-disabled-border-color: #fd7e14;
}

/* Minecraft button — gif hover, glass default */
.minecraft-btn {
  position: relative;
  overflow: hidden;
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.minecraft-btn:hover {
  background-image: url(/images/button.gif);
  background-size: cover;
  background-position: center;
  border-color: transparent;
  color: #000;
}

.btn-equal {
  width: 100%;
  min-width: 100px;
  padding: 10px 16px !important;
  font-weight: 600;
  border-radius: 10px;
  letter-spacing: 1px;
}
.btn-equal i {
  margin-right: 6px;
}

/* ===============================
   7. FOOTER
================================ */

.premium-footer {
  padding: 2.5rem 0;
}

.social {
  color: #aaa;
  margin-left: 1rem;
  font-size: 1.3rem;
  transition: 0.2s;
}
.social:hover {
  color: #ffc107;
}

/* ===============================
   8. NOTIFICATIONS (UNCHANGED API)
================================ */

.notification-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.notification {
  background: #1a1a1a;
  border-left: 4px solid #ffc107;
  color: white;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
  cursor: pointer;
  border: 1px solid #333;
}

.notification.success {
  border-left-color: #28a745;
}
.notification.error {
  border-left-color: #dc3545;
}
.notification.info {
  border-left-color: #17a2b8;
}
.notification.warning {
  border-left-color: #ffc107;
}

.notification-title {
  font-weight: bold;
  font-size: 0.9em;
  color: #ffc107;
}

.notification-message {
  font-size: 0.8em;
  opacity: 0.9;
  margin-bottom: 0;
}

.notification-icon {
  font-size: 1.2rem;
  min-width: 24px;
}

.notification-content {
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}
.notification-close:hover {
  color: white;
}

.notification.hiding {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

#bg-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===============================
   FOOTER / MOUNTAIN FIX
   mountain.png = 1280×853px → ratio 853/1280 ≈ 0.6664
   Giving the wrapper a padding-top equal to the image's
   aspect-ratio height means content can never scroll behind it.
   No z-index changes needed.
================================ */

.footer-wrapper {
  position: relative;
  padding-top: min(calc(100vw * 0.6664), 580px);
}

.mountain-land {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: auto;
  pointer-events: none;
  /* z-index removed — footer text has z-1 from Bootstrap, that's enough */
}

#intro-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#intro-video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

body.intro-lock {
  overflow: hidden;
}

/* ===============================
   9. FORM INPUTS (whitelist form)
================================ */

.wl-input {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 0.65rem !important;
  color: #eaeaea !important;
  padding: 0.65rem 1rem !important;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  font-family: "Inter", sans-serif;
}

.wl-input:focus {
  outline: none;
  border-color: rgba(255, 193, 7, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.12) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

.wl-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.wl-input option {
  background: #1a1a1a;
  color: #eaeaea;
}

.wl-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.wl-choice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
  font-size: 0.88rem;
  user-select: none;
}

.wl-choice:hover {
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.07);
}

.wl-choice input[type="radio"],
.wl-choice input[type="checkbox"] {
  accent-color: #ffc107;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.wl-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
}

.wl-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8c8c8;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wl-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.35rem;
}

.glass-panel-wide {
  width: 100%;
  max-width: 640px;
  padding: 2rem 2.2rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

@media (max-width: 576px) {
  .glass-panel-wide {
    padding: 1.4rem 1.1rem;
  }
  .wl-section {
    padding: 1rem;
  }
}

/* ===============================
   10. WHITELIST ADMIN PANEL
================================ */

.wl-admin-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.4rem;
}

.wl-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  padding: 1rem 0.5rem;
}

.wl-stat-num {
  font-family: "Audiowide", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.wl-stat-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wl-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 0.85rem;
}

.wl-table thead th {
  color: #888;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border: none;
  white-space: nowrap;
}

.wl-table tbody tr {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.6rem;
  transition: background 0.15s ease;
}

.wl-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.wl-table tbody td {
  padding: 0.65rem 0.75rem;
  border: none;
  vertical-align: middle;
}

.wl-table tbody td:first-child {
  border-radius: 0.6rem 0 0 0.6rem;
}
.wl-table tbody td:last-child {
  border-radius: 0 0.6rem 0.6rem 0;
}

.wl-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.wl-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  border-radius: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: "Silkscreen", sans-serif;
}

.wl-filter-btn:hover {
  border-color: rgba(255, 193, 7, 0.4);
  color: #ffc107;
}

.wl-filter-btn.active {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.5);
  color: #ffc107;
}

.wl-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.wl-badge-yellow {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}
.wl-badge-green {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}
.wl-badge-red {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}
.wl-badge-grey {
  background: rgba(108, 117, 125, 0.2);
  color: #aaa;
}
.wl-badge-blue {
  background: rgba(13, 110, 253, 0.15);
  color: #6ea8fe;
}

.wl-review-btn {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: #ffc107;
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.9rem;
}

.wl-review-btn:hover {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.5);
}

.wl-modal-content {
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: #eaeaea;
}

.wl-detail-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.6rem;
  padding: 0.5rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.2rem;
}

.wl-detail-label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wl-detail-val {
  font-size: 0.85rem;
  color: #eaeaea;
  text-align: right;
  word-break: break-all;
}

/* ===============================
   11. PUSH NOTIFICATION PROMPT FIX
   (layout fix only — no design change)
================================ */

.push-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;

  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;

  padding: 16px 18px;

  width: calc(100% - 24px);
  max-width: 500px;

  animation: slideUp 0.4s ease-out;
}

.prompt-icon {
  background: rgba(255, 193, 7, 0.1);
  padding: 12px;
  border-radius: 10px;
  flex-shrink: 0;
}

.prompt-content h6 {
  font-size: 0.9rem;
}

.prompt-content p {
  font-size: 0.8rem;
  opacity: 0.85;
}

.prompt-actions {
  flex-shrink: 0;
}

/* Mobile layout fix */
@media (max-width: 480px) {
  .push-prompt .d-flex {
    flex-wrap: wrap;
    gap: 10px;
  }

  .prompt-content {
    width: calc(100% - 60px);
  }

  .prompt-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .prompt-actions button {
    flex: 1;
  }
}

/* ── Notification image drop zone ── */
.image-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-drop-zone:hover,
.image-drop-zone.drag-over {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.04);
}
.image-drop-zone.uploading {
  border-color: rgba(13, 202, 240, 0.4);
  background: rgba(13, 202, 240, 0.03);
}
.image-drop-zone.upload-done {
  border-color: rgba(87, 242, 135, 0.4);
  background: rgba(87, 242, 135, 0.03);
}
.image-drop-zone.upload-error {
  border-color: rgba(220, 53, 69, 0.4);
  background: rgba(220, 53, 69, 0.03);
}
