:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121723;
  --bg-card: rgba(22, 28, 42, 0.85);
  --border-card: rgba(212, 175, 55, 0.25);
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa8c2c;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f6e7b0 50%, #aa8c2c 100%);
  --gold-glow: 0 8px 32px rgba(212, 175, 55, 0.18);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-gold: #e5c158;
  --green-success: #10b981;
  --blue-accent: #3b82f6;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Header */
.vip-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0d14;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--gold-glow);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.header-link:hover {
  color: var(--gold-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
  flex: 1;
}

/* Cards & Sections */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

/* VIP Member Card Visual */
.membership-card-wrap {
  perspective: 1000px;
  margin-bottom: 28px;
}

.vip-card-visual {
  background: linear-gradient(135deg, #1e2433 0%, #111521 60%, #0d101a 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), var(--gold-glow);
  color: #fff;
}

.vip-card-visual::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.card-tier-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  border-radius: 6px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--gold-light);
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-holder-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card-holder-country {
  font-size: 12px;
  color: var(--text-muted);
}

.card-expiry {
  text-align: right;
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 1px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: rgba(18, 23, 35, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Rebate Tracker Progress Bar */
.rebate-tracker {
  background: rgba(18, 23, 35, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

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

.rebate-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-light);
}

.rebate-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.rebate-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.rebate-badge.qualified {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.rebate-badge.rebated {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 5px;
  transition: width 0.6s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Action Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #0b0f19;
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #1ebd5a;
}

/* Vouchers Grid */
.vouchers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.voucher-item {
  background: linear-gradient(135deg, rgba(22, 28, 42, 0.9) 0%, rgba(15, 20, 31, 0.9) 100%);
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}

.voucher-item.used {
  opacity: 0.55;
  border-color: rgba(255, 255, 255, 0.2);
}

.voucher-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.voucher-code-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.voucher-copy-btn {
  background: transparent;
  border: none;
  color: var(--gold-light);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
}

/* Referral Section */
.referral-box {
  background: rgba(18, 23, 35, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
}

.referral-link-input-group {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.referral-link-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-family: monospace;
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.social-card {
  background: rgba(18, 23, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.social-icon.fb { background: #1877f2; }
.social-icon.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-icon.tt { background: #000; border: 1px solid #333; }
.social-icon.wa { background: #25d366; }

/* Table */
.vip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vip-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
}

.vip-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating LiveChat Widget */
.livechat-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: transform 0.2s;
}

.livechat-trigger:hover {
  transform: scale(1.08);
}

.livechat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 320px;
  height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}

.livechat-window.open {
  display: flex;
}

.livechat-header {
  padding: 14px 16px;
  background: rgba(18, 23, 35, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.livechat-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
}

.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
  color: #fff;
}

.chat-bubble.user {
  background: var(--gold-primary);
  color: #0b0f19;
  font-weight: 500;
  align-self: flex-end;
}

.livechat-footer {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
}

.livechat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}
