:root {
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --card-bg: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.1);
  --accent: #58a6ff;
}

/* Custom premium scrollbar for dark themes */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) rgba(0, 0, 0, 0.2);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #09090b;
  color: var(--text-primary);
  display: flex; /* Centering helper */
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
}

/* Base Page Builder Layout */
.page-section {
  width: 100%;
  position: relative;
  padding: 80px 0; /* Natural "air" for desktop */
}

.container-box {
  margin: 0 auto !important;
  max-width: 1200px;
  width: 92%;
  position: relative;
  /* Extra air for mobile if needed, though width 92% handles most */
}

/* Fix Navbar and Footer centering in ultra-wide */
.navbar {
  justify-content: center !important;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.footer {
  width: 100%;
}

/* Disable centering for dashboard specifically */
body:has(.main-content),
body:has(.sidebar) {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  overflow-x: hidden;
}

/* Sidebar and Main Content wrapper (The dashboard layout) */
@media (min-width: 993px) {
  body:has(.sidebar) {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
  }
}

/* Wheel and Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  transition: all 0.3s ease;
}
.wheel-modal {
  background: rgba(22, 27, 34, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 420px;
  padding: 40px 30px;
  border-radius: 28px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #fff;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalPop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #8b949e;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.promo-card {
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden; /* Changed to hidden to enforce border radius and clip background */
}
.promo-card.is-claimed {
  filter: grayscale(0.8);
  opacity: 0.8;
  cursor: default;
  pointer-events: none;
}
.promo-card.is-claimed .promo-badge {
  background: #666;
}
.promo-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
}
.btn-spin-trigger {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 25px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 15px;
}
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: var(--accent);
  z-index: 10;
}
.btn-whatsapp {
  display: block;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  margin-top: 20px;
}
.winner-box {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 25px;
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}
.input-premium-light {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  width: 100%;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
  outline: none;
}
.input-premium-light:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}
.form-icon-group {
  position: relative;
  margin-bottom: 12px;
}
.form-icon-group i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0.7;
  pointer-events: none;
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.form-icon-group .input-premium-light {
  padding-left: 48px;
}

.btn-.profile-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
}

/* DASHBOARD & EDIT PANEL STYLES */
.draggable-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 12px 18px;
  transition: all 0.2s;
}

.draggable-item:hover {
  background: #1c2128;
  border-color: #444c56;
}

.drag-handle {
  cursor: grab;
  color: #484f58;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: var(--accent);
  font-size: 16px;
}

.item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-content label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #8b949e;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  pointer-events: none;
}

.item-content input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 15px;
  font-weight: 600;
  width: 100% !important;
  box-shadow: none !important;
}

.item-content input:focus {
  outline: none;
  color: var(--accent) !important;
}

.item-content input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
}

/* ACCORDIONS (Admin Panel) */
.accordion-item {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

/* LOGO UPLOAD & CROPPER MODAL (Restoring dropped styles) */
.upload-zone {
  border: 2px dashed #30363d;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  transition: all 0.2s;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.logo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #30363d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-placeholder-bg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #30363d;
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cropper-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 23, 0.95) !important;
  z-index: 20000;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

.cropper-modal-overlay.active {
  display: flex !important;
}

.cropper-modal-content {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 20px;
  width: 95%;
  max-width: 600px;
  padding: 25px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.cropper-wrapper {
  width: 100%;
  height: 350px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #30363d;
}

.status-notice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 20001;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}
.status-notice-overlay.active {
  display: flex !important;
}

.accordion-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.accordion-header h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.accordion-body {
  padding: 25px;
  border-top: 1px solid #30363d;
  background: #0d1117;
}

.chevron {
  transition: transform 0.3s ease;
  color: #8b949e;
}

.quick-actions-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.featured-review-card {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15) 0%, rgba(255, 215, 0, 0.1) 100%);
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 24px;
  padding: 25px;
  margin: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), 0.4);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.featured-review-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.featured-review-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px -15px rgba(var(--accent-rgb), 0.6);
  border-color: rgba(var(--accent-rgb), 0.5);
}

.featured-review-card i {
  font-size: 32px;
  color: #ffd700;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.featured-review-card h3 {
  color: #fff;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.featured-review-card p {
  color: #8b949e;
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}

.stars-row {
  color: #ffd700;
  gap: 4px;
  display: flex;
  font-size: 14px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2);
}

.btn-primary:hover {
  background: var(--accent);
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.modal-content {
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 400px;
  padding: 40px 30px;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  color: #fff;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hidden-view {
  display: none !important;
}

.modal-content div[id^='view'],
.modal-content div[id^='wheel'],
.modal-content #newCustomerFields {
  animation: viewFadeIn 0.4s ease;
}

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

.view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
  text-decoration: underline;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.view-toggle-btn:hover {
  opacity: 1;
}

.legal-checkbox-container {
  text-align: left;
  font-size: 13px;
  color: #8b949e;
  margin: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.4;
}

.legal-checkbox-container input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2ea043; /* Fixed high-contrast green */
  border: 1px solid #30363d;
  cursor: pointer;
}

.text-center {
  text-align: center;
}
.profile-container {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding: 40px 20px 120px 20px;
  border-radius: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: fadeInContainer 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.profile-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card-border);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.profile-logo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent), #000 20%) 100%);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 16px;
  padding: 14px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.link-item:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.link-item.btn-cta {
  justify-content: center;
  text-align: center;
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.link-item:hover .link-icon {
  transform: scale(1.05);
}

.link-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.link-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.4;
  transition: all 0.3s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.link-item:hover .chevron {
  transform: translateX(4px);
  opacity: 0.9;
  color: #fff;
}

.social-icons-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.social-icon-btn {
  width: var(--social-size, 50px);
  height: var(--social-size, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--social-radius, 50%);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--social-font, 20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.highlight-review {
  background-color: var(--accent);
  color: #fff;
  border: none;
}
.highlight-review:hover {
  background-color: #3182ce;
}

.empty-state-card {
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.profile-footer {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.profile-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
.profile-footer a:hover {
  color: var(--text-primary);
}

/* THEME: MINIMAL */
body.theme-minimal {
  background-color: #0d1117;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
}
body.theme-minimal .profile-container {
  background: #161b22;
  border: 1px solid #30363d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* THEME: LIGHT (Restoring Capture 2 aesthetics) */
body.theme-light {
  background-color: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
}
body.theme-light .profile-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
body.theme-light .profile-title {
  color: #0f172a;
}
body.theme-light .link-item,
body.theme-light .social-icon-btn {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #1e293b;
}
body.theme-light .link-item:hover,
body.theme-light .social-icon-btn:hover {
  background-color: #f8fafc;
  border-color: var(--accent);
}
body.theme-light .profile-logo {
  border: 4px solid #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
body.theme-light .profile-footer,
body.theme-light .profile-footer a {
  color: #64748b;
}

/* THEME: VIBRANT */
body.theme-vibrant {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--bg-main), #000 40%) 0%,
    var(--bg-main) 50%,
    color-mix(in srgb, var(--accent), transparent 70%) 100%
  );
  background-attachment: fixed;
}
body.theme-vibrant .profile-container {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
body.theme-vibrant .link-item,
body.theme-vibrant .social-icon-btn {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}
body.theme-vibrant .link-item:hover,
body.theme-vibrant .social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* THEME: PREMIUM */
body.theme-premium {
  background: radial-gradient(circle at center, #09090b 0%, var(--bg-main) 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}
body.theme-premium .profile-container {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
body.theme-premium .link-item,
body.theme-premium .social-icon-btn {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
body.theme-premium .link-item:hover,
body.theme-premium .social-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Loyalty Card & Stamps */
.loyalty-card {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15) 0%, rgba(var(--accent-rgb), 0.05) 100%) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.3) !important;
}
.stamps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 15px 0;
  width: 100%;
}
.stamp-slot {
  aspect-ratio: 1/1;
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.1);
  font-size: 16px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.stamp-slot.filled {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 4px solid var(--accent) !important;
  color: var(--accent) !important;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    inset 0 0 5px rgba(0, 0, 0, 0.1);
  transform: scale(1.1) rotate(-8deg);
  animation: stamp-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Rubber Stamp Texture Effect */
.stamp-slot.filled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E");
  opacity: 0.3;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.stamp-slot:nth-child(2n).filled {
  transform: scale(1.1) rotate(5deg);
}
.stamp-slot:nth-child(3n).filled {
  transform: scale(1.1) rotate(-12deg);
}

@keyframes stamp-in {
  0% {
    transform: scale(2) rotate(15deg);
    opacity: 0;
    filter: blur(4px);
  }
  100% {
    transform: scale(1.1) rotate(-8deg);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes pulse-green {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 4px 25px rgba(34, 197, 94, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
  }
}

/* Conflict Modal UI */
.conflict-view {
  text-align: left;
}
.conflict-icon {
  font-size: 50px;
  text-align: center;
  margin-bottom: 15px;
}
.conflict-subtitle {
  color: #8b949e;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}
.conflict-card-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.conflict-card {
  padding: 12px 15px;
  border-radius: 10px;
  word-break: break-word;
}
.conflict-card-existing {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.conflict-card-new {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.conflict-badge {
  margin: 0 0 5px 0;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.conflict-badge-existing {
  color: var(--text-secondary);
}
.conflict-badge-new {
  color: #a855f7;
}
.conflict-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.conflict-detail {
  font-size: 14px;
  font-weight: 400;
}
.conflict-detail-existing {
  color: #8b949e;
}
.conflict-detail-new {
  color: #e9d5ff;
}
.conflict-prompt {
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}
.conflict-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.conflict-btn-keep {
  width: 100%;
  background: #30363d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
.conflict-btn-update {
  width: 100%;
  background: #a855f7 !important;
  border: none !important;
  color: #fff !important;
}
.user-profile-badge {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 8px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.floating-auth-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: auto;
  max-width: 90%;
  display: flex;
  justify-content: center;
  animation: slideUpFloating 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-auth-bar .user-profile-badge {
  margin-bottom: 0;
  padding: 12px 24px;
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.floating-auth-bar .user-profile-badge:hover {
  background: rgba(22, 27, 34, 0.85);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

@keyframes slideUpFloating {
  0% {
    transform: translate(-50%, 50px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.btn-profile-link {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-profile-link:hover {
  opacity: 0.8;
}

.btn-logout {
  color: #ff4d4d;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-logout:hover {
  opacity: 0.8;
}

/* Advanced Promo Card Styles (Backgrounds & Overlays) */
.promo-card.has-bg {
  min-height: 240px;
  padding: 0;
  justify-content: center;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.promo-card.has-bg .promo-card-content {
  padding: 40px 30px 30px 30px;
  justify-content: center;
}

.promo-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.6s ease;
}

.promo-card:hover .promo-card-bg {
  transform: scale(1.05); /* Reduced from 1.1 to be less exaggerated */
}

.promo-card.has-bg .stamp-slot {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
}

.promo-card.has-bg p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.promo-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
}

.promo-card-content {
  position: relative;
  padding: 30px;
  width: 100%;
  z-index: 3;
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prize-card-body {
  position: relative;
  padding: 30px;
  text-align: center;
  width: 100%;
  z-index: 3;
  backdrop-filter: blur(2px);
}

.prize-card-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.prize-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--accent);
}

.prize-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Profile Modal Styles */
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.profile-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Custom Premium Scrollbar */
.profile-scroll-container {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.profile-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.profile-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.profile-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.3);
  border-radius: 10px;
}

.profile-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.5);
}

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

.profile-tab-btn.active {
  background: rgba(var(--accent-rgb), 0.2) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
}

.profile-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-sub-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #8b949e;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
}

.profile-sub-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.profile-sub-tab-btn.active {
  background: rgba(var(--accent-rgb), 0.15) !important;
  color: var(--accent) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-delete-account {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 77, 77, 0.2);
  color: #ff4d4d;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-delete-account:hover {
  background: rgba(255, 77, 77, 0.1);
  border-color: #ff4d4d;
}

.hidden-view {
  display: none !important;
}

/* Reward Item Styles */
.reward-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}

.reward-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.reward-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.reward-title {
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reward-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.reward-badge-available {
  background: rgba(88, 166, 255, 0.15);
  color: #58a6ff;
}

.reward-badge-claimed {
  background: rgba(46, 160, 67, 0.15);
  color: #3fb950;
}

.btn-redeem-prize {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  background: #22c55e;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.btn-redeem-prize:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-redeem-prize:active {
  transform: translateY(0);
}

/* --- Responsive Visibility Utilities --- */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .hide-tablet {
    display: none !important;
  }
}
@media (min-width: 1025px) {
  .hide-desktop {
    display: none !important;
  }
}

/* --- Intelligent Column System --- */
.grid-row-wrap,
.addon-columns-nested {
  display: grid !important;
}

/* Desktop Defaults based on helper classes */
.cols-1 {
  grid-template-columns: 1fr !important;
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}
.cols-5 {
  grid-template-columns: repeat(5, 1fr) !important;
}
.cols-6 {
  grid-template-columns: repeat(6, 1fr) !important;
}

/* Tablet Adaptation (768px - 1024px) */
@media (max-width: 1024px) {
  /* If 3 or more columns, collapse to 2 */
  .cols-3,
  .cols-4,
  .cols-5,
  .cols-6 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
  }
}

/* Mobile Adaptation (up to 768px) */
@media (max-width: 768px) {
  .grid-row-wrap,
  .addon-columns-nested {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-section {
    padding: 40px 0 !important;
  }
}

/* Scratch Game Styles */
.scratch-modal {
  max-width: 500px !important;
}
.scratch-grid {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}
.scratch-slot {
  position: relative;
  flex: 1;
  aspect-ratio: 1/1;
  min-width: 80px;
  background: #1c2128;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: crosshair;
  transition: all 0.3s ease;
}
.scratch-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: none;
}
.scratch-slot.scratched {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.2);
}

.scratch-result-area {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  animation: slideUpFade 0.5s ease forwards;
  width: 100%;
}

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

.scratch-winner-box {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0.05) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 20px;
  border-radius: 20px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.scratch-code-display {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 12px;
  margin: 15px 0;
  width: 100%;
}

/* ==========================================================================
   SWEETALERT2 UNIFIED PREMIUM OVERRIDES (swal2-dark-glass)
   ========================================================================== */

/* 1. Main SweetAlert Popup Container */
.swal2-popup.swal2-dark-glass {
  background: rgba(22, 27, 34, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  padding: 40px 30px !important;
  width: 90% !important;
  max-width: 480px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 40px color-mix(in srgb, var(--accent) 15%, transparent) !important;
  font-family: 'Outfit', sans-serif !important;
  color: #fff !important;
}

/* 2. HTML Content Container */
.swal2-popup.swal2-dark-glass .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  color: #e6edf3 !important;
  font-size: 0.95rem !important;
  font-family: 'Outfit', sans-serif !important;
}

/* 3. Custom Close Button (X) */
.swal2-popup.swal2-dark-glass .swal2-close {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 100px !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
  position: absolute !important;
  top: 25px !important;
  right: 25px !important;
  outline: none !important;
  box-shadow: none !important;
}

.swal2-popup.swal2-dark-glass .swal2-close:not([style*='display:none']):not([style*='display: none']) {
  display: flex !important;
}

.swal2-popup.swal2-dark-glass .swal2-close:hover {
  background: rgba(248, 81, 73, 0.15) !important;
  border-color: rgba(248, 81, 73, 0.3) !important;
  color: #f85149 !important;
  transform: rotate(90deg) !important;
}

/* 4. Action Buttons Container */
.swal2-popup.swal2-dark-glass .swal2-actions {
  margin-top: 30px !important;
  gap: 10px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.swal2-popup.swal2-dark-glass .swal2-actions button {
  flex: 1 !important;
  margin: 0 !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 12px 10px !important;
  font-family: 'Outfit', sans-serif !important;
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  align-items: center !important;
  justify-content: center !important;
}

.swal2-popup.swal2-dark-glass .swal2-actions button:not([style*='display:none']):not([style*='display: none']) {
  display: inline-flex !important;
}

.swal2-popup.swal2-dark-glass .swal2-actions button:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
}

.swal2-popup.swal2-dark-glass .swal2-actions button:active {
  transform: translateY(0) !important;
}

/* 5. Custom Styling for SweetAlert Standard Titles & Icons */
.swal2-popup.swal2-dark-glass .swal2-title {
  color: #fff !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.5rem !important;
  padding: 10px 0 0 0 !important;
  margin: 0 0 15px 0 !important;
}

.swal2-popup.swal2-dark-glass .swal2-icon {
  margin: 15px auto 10px auto !important;
  zoom: 0.85 !important;
}

/* 6. Form Fields Styling Inside swal2-dark-glass */
.swal2-popup.swal2-dark-glass .form-control,
.swal2-popup.swal2-dark-glass .swal2-input,
.swal2-popup.swal2-dark-glass .swal2-select,
.swal2-popup.swal2-dark-glass .swal2-textarea {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-family: 'Outfit', sans-serif !important;
  transition: all 0.2s !important;
  outline: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.swal2-popup.swal2-dark-glass .form-control:focus,
.swal2-popup.swal2-dark-glass .swal2-input:focus,
.swal2-popup.swal2-dark-glass .swal2-select:focus,
.swal2-popup.swal2-dark-glass .swal2-textarea:focus {
  border-color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

.swal2-popup.swal2-dark-glass .form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 15px !important;
  text-align: left !important;
}

.swal2-popup.swal2-dark-glass .form-group label {
  display: block !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-family: 'Outfit', sans-serif !important;
}

.btn-invoice-action {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--accent) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-size: 0.85rem !important;
  padding: 0 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}
.btn-invoice-action:hover {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent) !important;
  transform: translateY(-1px) !important;
}
.btn-invoice-action i {
  margin: 0 !important;
}
.btn-invoice-action.pdf {
  color: #ff5252 !important;
  border-color: rgba(255, 82, 82, 0.2) !important;
  background: rgba(255, 82, 82, 0.05) !important;
}
.btn-invoice-action.pdf:hover {
  background: #ff5252 !important;
  color: #fff !important;
  border-color: #ff5252 !important;
}
