/* ==========================================================================
   Vinted 4x6 Thermal Label Cropper — Modern Responsive Stylesheet
   ========================================================================== */

:root {
  --primary: #09b1ba;
  --primary-hover: #07929a;
  --primary-light: #e6f7f8;
  --primary-faint: #f0fbfb;
  --primary-border: #b2e7ea;
  
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --dark-hover: #334155;
  
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --shadow-sheet: 0 25px 35px -5px rgba(15, 23, 42, 0.25), 0 10px 15px -5px rgba(15, 23, 42, 0.15);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Universal Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

/* Accessibility: screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   DESKTOP STICKY HERO CARD (Requirement 3: Device-Aware Funnel Design)
   ========================================================================== */

.desktop-hero-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #0b1929 0%, #0f283d 60%, #094757 100%);
  color: #ffffff;
  border-bottom: 2px solid rgba(9, 177, 186, 0.4);
  box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.35);
  padding: 12px 20px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 177, 186, 0.18);
  border: 1px solid rgba(9, 177, 186, 0.45);
  color: #5eead4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #2dd4bf;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.rating-stars {
  color: #fbbf24;
  font-size: 12px;
}

.badge-tag {
  color: #cbd5e1;
  font-weight: 500;
}

.hero-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.hero-tagline {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 6px;
}

.hero-tagline strong {
  color: #e2e8f0;
}

.hero-perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #09b1ba 0%, #068087 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px 0 rgba(9, 177, 186, 0.45);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #0abfca 0%, #08969f 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(9, 177, 186, 0.6);
}

.cta-chrome-icon {
  display: block;
}

.cta-guarantee {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
}

/* ==========================================================================
   MOBILE-AWARE BANNER
   ========================================================================== */

.mobile-device-banner {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  border-bottom: 1px solid #334155;
}

.btn-mobile-send {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   MAIN APP LAYOUT
   ========================================================================== */

.app-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  flex: 1;
  width: 100%;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon-wrapper {
  background: #ffffff;
  padding: 4px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid var(--primary-border);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.trial-pill.warning-pill {
  background-color: var(--warning-light);
  color: #b45309;
  border-color: #fde68a;
}

.trial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

.chrome-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.chrome-store-pill:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

/* Trust notice bar */
.trust-notice-bar {
  background: #ffffff;
  border: 1px solid var(--primary-border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.trust-pill-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-lock-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.trust-text {
  font-size: 13px;
  color: var(--gray-700);
}

.trust-text strong {
  color: var(--primary-hover);
}

.trust-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
}

.metric-sep {
  color: var(--gray-300);
}

/* ==========================================================================
   TOOL WORKSPACE
   ========================================================================== */

.tool-workspace {
  margin-bottom: 48px;
}

/* Drop Zone */
.drop-zone {
  background: #ffffff;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--primary);
  background-color: var(--primary-faint);
  box-shadow: 0 0 0 4px rgba(9, 177, 186, 0.12);
}

.drop-zone.dragover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: scale(1.01);
  box-shadow: 0 0 0 6px rgba(9, 177, 186, 0.2);
}

.drop-inner {
  max-width: 580px;
  margin: 0 auto;
}

.drop-icon-circle {
  width: 72px;
  height: 72px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.2s;
}

.drop-zone:hover .drop-icon-circle {
  transform: translateY(-2px);
}

.drop-headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.drop-subtext {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 22px;
}

.browse-highlight {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.supported-carriers-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}

.carrier-tag {
  background-color: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* Sample test buttons */
.sample-actions-row {
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
}

.sample-label-prompt {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 10px;
  font-weight: 500;
}

.sample-buttons-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-sample {
  background-color: #ffffff;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-sample:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
  background-color: var(--primary-faint);
}

/* Processing View */
.processing-view {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.processing-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  max-width: 480px;
  margin: 0 auto;
}

/* Preview View */
.preview-view {
  display: flex;
  justify-content: center;
}

.preview-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  max-width: 580px;
  width: 100%;
}

.preview-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.meta-carrier-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

.carrier-badge {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-border);
}

.meta-size-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.size-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-700);
  background: var(--gray-100);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.format-pill {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Batch bar */
.batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-100);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.btn-batch-nav {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-batch-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.batch-counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
}

/* Thermal Sheet Preview Stage */
.preview-stage {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.label-preview-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: var(--shadow-sheet);
  display: block;
}

/* Preview Actions */
.preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-action-share {
  grid-column: span 2;
  background: linear-gradient(135deg, #059669 0%, #09b1ba 100%);
  color: #ffffff;
  border: none;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action-share:hover {
  background: linear-gradient(135deg, #047857 0%, #07929a 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px 0 rgba(5, 150, 105, 0.5);
}

.btn-action-primary {
  grid-column: span 1;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-action-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-action-secondary {
  grid-column: span 1;
  background-color: var(--dark-surface);
  color: #ffffff;
  border: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.btn-action-secondary:hover {
  background-color: var(--dark-hover);
}

.btn-action-ghost {
  grid-column: span 2;
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-action-ghost:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.preview-extension-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: var(--primary-faint);
  border: 1px solid var(--primary-border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.4;
}

.preview-extension-tip a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================================================================
   TRUST FEATURES GRID (Requirement 5)
   ========================================================================== */

.trust-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
}

/* ==========================================================================
   SEO & COMPATIBILITY SECTIONS
   ========================================================================== */

.seo-info-section {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.compat-column h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.compat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compat-list li {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}

.compat-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 16px;
  position: absolute;
  left: 0;
  top: -2px;
}

/* How It Works */
.how-it-works-section {
  margin-bottom: 56px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
}

/* FAQ Accordion */
.faq-section {
  margin-bottom: 56px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--primary);
  font-weight: 600;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--gray-200);
  padding: 32px 0 10px;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

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

.footer-links a:hover {
  text-decoration: underline;
}

.footer-dot {
  color: var(--gray-300);
}

.btn-footer-link {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto 8px;
  line-height: 1.5;
}

.footer-privacy-badge {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
}

/* ==========================================================================
   UPGRADE MODAL DIALOG (Modern Web Guidance Compliant)
   ========================================================================== */

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.upgrade-modal {
  margin: auto;
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: 520px;
  width: 90vw;
  background: transparent;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s;
}

.modal-close-btn:hover {
  background-color: var(--gray-200);
  color: var(--gray-900);
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-pill-tag {
  display: inline-block;
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 8px;
}

.modal-subhead {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.45;
}

.modal-subhead strong {
  color: var(--gray-900);
}

.modal-perks-list {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.perk-check {
  color: var(--primary);
  font-weight: 900;
  font-size: 14px;
  margin-top: 1px;
}

.modal-perk strong {
  font-size: 13px;
  color: var(--gray-900);
  display: block;
  line-height: 1.3;
}

.modal-perk p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.35;
}

.btn-modal-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #09b1ba 0%, #068087 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 14px 0 rgba(9, 177, 186, 0.4);
  transition: all 0.2s;
  margin-bottom: 20px;
}

.btn-modal-primary:hover {
  background: linear-gradient(135deg, #0abfca 0%, #08969f 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px 0 rgba(9, 177, 186, 0.55);
}

/* Mobile user helper box */
.mobile-helper-box {
  background: var(--primary-faint);
  border: 1px dashed var(--primary-border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  margin-bottom: 18px;
}

.mobile-helper-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 2px;
}

.mobile-helper-desc {
  font-size: 11px;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.mobile-helper-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-helper-outline {
  background: #ffffff;
  border: 1px solid var(--primary-border);
  color: var(--primary-hover);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-helper-outline:hover {
  background-color: var(--primary-light);
}

.copy-feedback {
  display: block;
  font-size: 11px;
  color: #15803d;
  font-weight: 700;
  margin-top: 6px;
}

/* VIP code Easter egg */
.promo-section {
  text-align: center;
}

.btn-toggle-promo {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.btn-toggle-promo:hover {
  color: var(--gray-700);
}

.vip-container {
  margin-top: 8px;
}

.vip-input-row {
  display: flex;
  gap: 6px;
  max-width: 320px;
  margin: 0 auto;
}

.vip-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.btn-redeem {
  background: var(--dark);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.vip-msg {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 600;
}

.vip-msg.success {
  color: var(--success);
}

.vip-msg.error {
  color: #dc2626;
}

/* Hidden Print Frame */
.print-frame-hidden {
  position: absolute;
  width: 0;
  height: 0;
  border: none;
  visibility: hidden;
}

/* ==========================================================================
   PRO UNLOCK BANNER (Triggered on Stripe redirect or VIP redeem)
   ========================================================================== */

.unlock-success-banner {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-bottom: 2px solid #10b981;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
  position: relative;
  z-index: 110;
}

.unlock-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.unlock-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.unlock-text {
  flex: 1;
  line-height: 1.4;
}

.unlock-text code {
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
  color: #a7f3d0;
  font-family: monospace;
}

.unlock-close-btn {
  background: transparent;
  border: none;
  color: #a7f3d0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.unlock-close-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   MOBILE BLUETOOTH PRINTING GUIDE
   ========================================================================== */

.mobile-guide-section {
  margin-bottom: 56px;
}

.mobile-guide-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f7f8 100%);
  border: 1px solid #b2e7ea;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
}

.mobile-guide-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.mobile-guide-pill {
  display: inline-block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.mobile-guide-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.mobile-guide-sub {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.mobile-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.mobile-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.mobile-step-num {
  width: 32px;
  height: 32px;
  background: #059669;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}

.mobile-step-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.mobile-step-card p {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.45;
}

.mobile-apps-container {
  text-align: center;
  border-top: 1px solid rgba(9, 177, 186, 0.2);
  padding-top: 20px;
}

.mobile-apps-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.mobile-apps-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.app-chip {
  background: #ffffff;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}

/* Mobile Direct Payment inside Modal */
.mobile-buyer-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
}

.mobile-buyer-badge {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.mobile-buyer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.mobile-buyer-desc {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.4;
  margin-bottom: 12px;
}

.btn-mobile-pay-cta {
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transition: all 0.2s;
}

.btn-mobile-pay-cta:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}

.mobile-pay-guarantee {
  display: block;
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 6px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Requirement 3)
   ========================================================================== */

@media (max-width: 768px) {
  /* On mobile, relax sticky hero into normal flow or show mobile banner */
  .desktop-hero-sticky {
    position: static;
    padding: 16px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .hero-perks {
    justify-content: center;
  }

  .hero-action {
    width: 100%;
  }

  .btn-cta-primary {
    width: 100%;
  }

  .mobile-device-banner {
    display: flex;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-title {
    font-size: 22px;
  }

  .compatibility-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mobile-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .preview-actions {
    grid-template-columns: 1fr;
  }

  .btn-action-share,
  .btn-action-primary,
  .btn-action-secondary,
  .btn-action-ghost {
    grid-column: span 1;
  }
}
