:root {
  /* Colorful, vibrant palette */
  --bg-dark: #0a0512;
  --accent-magenta: #ff007a;
  --accent-purple: #7928ca;
  --accent-cyan: #00e5ff;
  
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  
  --glass-bg: rgba(20, 10, 30, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px);
  
  --radius-lg: 24px;
  --radius-md: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  
  /* Abstract colorful backdrop elements */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 0, 122, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(121, 40, 202, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  line-height: 1.2;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* --- Layout --- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 5px; /* Minimal bottom padding */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 150px 20px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/rkx3mu/site/media/6a3da37f030049.77371435.jpg');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 5, 18, 0.1) 0%, var(--bg-dark) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 50px 40px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(255,0,122,0.2), rgba(0,229,255,0.2));
  border: 1px solid var(--accent-magenta);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--accent-cyan);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Glassmorphism Panels --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-purple));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 10px 20px -5px rgba(255, 0, 122, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 25px -5px rgba(255, 0, 122, 0.6);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 2px solid var(--accent-cyan);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.icon-btn {
  padding: 14px;
}

.btn-sm.icon-btn {
  padding: 8px 12px;
}

.full-width { width: 100%; }

/* --- Tabs --- */
.tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  margin: 0 auto 10px;
  max-width: 500px;
  width: 100%;
}

.tab-link {
  flex: 1;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-purple));
  box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
}

.tab-content {
  animation: fadeIn 0.4s ease forwards;
}

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

/* --- Form Styles --- */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 50px 40px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-magenta);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 0, 122, 0.2);
}

.file-drop-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 20px;
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.file-drop-area:hover, .file-drop-area.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
}

.file-msg {
  font-size: 1rem;
  color: var(--text-muted);
}

.file-drop-area input[type="file"] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Error States */
.error-message {
  background: rgba(255, 50, 50, 0.1);
  border-left: 4px solid #ff3232;
  color: #ffcccc;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* Post-Submission */
.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
  -webkit-background-clip: text;
  color: transparent;
}

.payment-action {
  margin-top: 32px;
}

.checkout-btn {
  font-size: 1.2rem;
  padding: 20px 48px;
}

.share-panel {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
}

.share-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent-cyan);
}

.share-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-actions input {
  flex: 1;
  min-width: 200px;
  max-width: 350px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
}

.share-actions .btn-secondary {
  white-space: nowrap;
}

/* --- Gallery Grid --- */
.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.accent-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-magenta), var(--accent-cyan));
  margin: 0 auto;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 3/4; /* Taller ratio for portraits */
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255,0,122,0.3);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 40px 20px 20px;
  pointer-events: none;
}

.submitter-info {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.submitter-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-magenta);
  background: var(--bg-dark);
}

.submitter-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.submitter-details h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  line-height: 1.2;
}

.social-link-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.model-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.model-social-link:hover {
  color: var(--accent-magenta);
}

.copy-social-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
}

.copy-social-btn:hover {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.1);
}

.empty-gallery {
  text-align: center;
  grid-column: 1 / -1;
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 60px 20px;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--glass-border);
}

.load-more-container {
  text-align: center;
}

/* --- Lightbox --- */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  color: #fff; font-size: 2.5rem;
  cursor: pointer; z-index: 1001;
  transition: color 0.3s ease;
}

.lightbox-close:hover { color: var(--accent-magenta); }

.lightbox-content {
  position: relative;
  z-index: 1001;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.lightbox-img-container {
  position: relative;
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

#lightbox-img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5); border: none;
  color: #fff; font-size: 3rem;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-nav:hover { background: var(--accent-magenta); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-info {
  padding: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-submitter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.lightbox-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  background: var(--bg-dark);
}

.lightbox-details {
  display: flex;
  flex-direction: column;
}

.lightbox-details h3 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 4px 0;
}

.lightbox-info p {
  color: var(--text-muted);
  margin: 0;
}

.lightbox-share-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

body.lightbox-open {
  overflow: hidden;
}

#wbx-powered-by-slot {
  margin: -15px auto 5px;
  width: 100%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 60vw;
  }
  .hero-bg {
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }
  .hero-bg::after {
    background: linear-gradient(to bottom, rgba(10, 5, 18, 0) 50vw, var(--bg-dark) 80vw);
  }
  .hero h1 { font-size: 2.5rem; }
  .hero-content { padding: 30px 20px; }
  .form-wrapper { padding: 40px 20px; }
  .glass-panel { border-radius: 16px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .tabs-wrapper { flex-direction: row; gap: 5px; padding: 5px; }
  .tab-link { padding: 12px 10px; font-size: 1rem; }
  .share-actions { flex-direction: column; }
  .share-actions input { max-width: 100%; }
}

@media (min-width: 768px) {
  .lightbox-content {
    flex-direction: row;
    height: 80vh;
  }
  .lightbox-img-container {
    flex: 2;
    height: 100%;
  }
  .lightbox-img-container img {
    max-height: 100%;
  }
  .lightbox-info {
    flex: 1;
    border-top: none;
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
  }
}
