/* Created by 11Hopem */
/* Copyright (c) 2026 11hopem. All rights reserved. */

:root {
  --bg-dark: #0a0410;
  --bg-card: rgba(23, 11, 35, 0.85);
  --bg-card-hover: rgba(35, 17, 54, 0.95);
  --border-glass: rgba(255, 75, 139, 0.18);
  --border-gold: rgba(245, 158, 11, 0.25);
  --rose-gold: #ff4d8d;
  --rose-gold-light: #ff758c;
  --champagne-gold: #f59e0b;
  --gold-light: #fde047;
  --royal-plum: #7928ca;
  --neon-emerald: #10b981;
  --neon-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-sub: #94a3b8;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 10px 30px -10px rgba(255, 75, 139, 0.35);
  --shadow-gold: 0 10px 30px -10px rgba(245, 158, 11, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(121, 40, 202, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(255, 75, 139, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 4, 16, 0.85);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  filter: drop-shadow(0 2px 8px rgba(255, 75, 139, 0.5));
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #fff 20%, var(--rose-gold-light) 60%, var(--champagne-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--champagne-gold);
  text-transform: uppercase;
}

/* Nav tabs */
.nav-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  gap: 4px;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, var(--rose-gold), var(--royal-plum));
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 75, 139, 0.4);
}

.nav-tab-btn.admin-tab.active {
  background: linear-gradient(135deg, var(--champagne-gold), #b45309);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Main Container */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-box {
  background: linear-gradient(135deg, rgba(35, 17, 54, 0.9), rgba(18, 7, 30, 0.95));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  max-width: 650px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--champagne-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--rose-gold-light), var(--champagne-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-gold), var(--royal-plum));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 75, 139, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 75, 139, 0.6);
}

.btn-gold {
  background: linear-gradient(135deg, var(--champagne-gold), #b45309);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-meta-card {
  background: rgba(10, 4, 16, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-width: 280px;
  box-shadow: var(--shadow-gold);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-row.meta-link:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateX(4px);
}

.meta-row.meta-link:hover .meta-info p {
  color: var(--champagne-gold);
}

.meta-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-gold);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.meta-info h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-sub);
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.meta-info p {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s ease;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 75, 139, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 75, 139, 0.2), rgba(121, 40, 202, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.bento-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Member Portal Card */
.portal-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .portal-container {
    grid-template-columns: 1fr;
  }
}

.member-card {
  background: linear-gradient(135deg, rgba(30, 14, 46, 0.9), rgba(16, 7, 26, 0.95));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.member-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.2rem;
}

.member-user-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.member-user-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.status-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.depleted {
  background: rgba(239, 68, 68, 0.15);
  color: var(--neon-rose);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Big Credit Counter */
.credit-gauge-box {
  background: rgba(10, 4, 16, 0.6);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.credit-gauge-box .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--champagne-gold);
  font-weight: 700;
  letter-spacing: 1px;
}

.credit-big-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, var(--gold-light), var(--rose-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.4rem 0;
}

.credit-package-name {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Personal QR Box */
.qr-container-box {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius-md);
  width: 190px;
  height: 190px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.qr-container-box svg {
  width: 100%;
  height: 100%;
}

.attendance-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.attendance-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #fff;
}

.attendance-box .subtext {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}

.attendance-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.attendance-item {
  background: rgba(10, 4, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.attendance-item:hover {
  border-color: var(--border-glass);
  background: rgba(255, 75, 139, 0.05);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.item-desc h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.item-desc p {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.item-right {
  text-align: right;
}

.badge-deduct {
  display: inline-block;
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.remain-info {
  font-size: 0.82rem;
  color: var(--champagne-gold);
  font-weight: 600;
}

/* Reception & Admin Dashboard */
.admin-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

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

.live-stream-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}

.box-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-emerald);
}

.pulsing-dot {
  width: 10px;
  height: 10px;
  background: var(--neon-emerald);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.stream-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.live-event-card {
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid;
  animation: slideInDown 0.35s ease;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-event-card.granted {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
}

.live-event-card.denied {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}

.live-event-card.topup {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
}

.live-event-card.manual {
  background: rgba(121, 40, 202, 0.12);
  border-color: rgba(121, 40, 202, 0.35);
}

.live-card-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.live-card-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.live-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.live-card-time {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 6px;
}

/* Quick Member Admin Table */
.admin-ctrl-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.quick-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.tool-card-btn {
  background: rgba(10, 4, 16, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-card-btn:hover {
  border-color: var(--champagne-gold);
  background: rgba(245, 158, 11, 0.1);
}

.tool-card-btn h5 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.tool-card-btn p {
  font-size: 0.76rem;
  color: var(--text-sub);
}

/* Member Table */
.members-table-wrapper {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.custom-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-sub);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.custom-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.action-btn-sm {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--champagne-gold);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn-sm:hover {
  background: var(--champagne-gold);
  color: #000;
}

/* Modal styles */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: #150921;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-dialog h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(10, 4, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(255, 75, 139, 0.2);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e0e2e;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-top: 4rem;
}

.footer-wrap a {
  color: var(--champagne-gold);
  text-decoration: none;
}

/* Scanner Animation */
@keyframes scanSweep {
  0% { transform: translateY(-70px); opacity: 0.8; }
  50% { transform: translateY(70px); opacity: 1; }
  100% { transform: translateY(-70px); opacity: 0.8; }
}

.scanner-laser-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4d8d, #f59e0b, transparent);
  box-shadow: 0 0 10px #ff4d8d;
  animation: scanSweep 2s ease-in-out infinite;
  pointer-events: none;
}

/* Print Stylesheet for A4 Desk Sign */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  body * {
    visibility: hidden !important;
  }
  .no-print {
    display: none !important;
  }
  #a4PrintableArea,
  #a4PrintableArea * {
    visibility: visible !important;
  }
  #a4PosterModalOverlay,
  #a4PosterModalOverlay .modal-dialog {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    visibility: visible !important;
  }
  #a4PrintableArea {
    position: relative !important;
    margin: 8mm auto !important;
    width: 175mm !important;
    max-width: 100% !important;
    padding: 12mm 10mm !important;
    border: 3px solid #000000 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-align: center !important;
  }
  #pane-gate,
  #pane-gate * {
    visibility: visible !important;
  }
  .navbar, .footer-wrap, button, .modal-close-btn, .tab-nav-bar {
    display: none !important;
  }
}

