/* ===== CSS ORGANIZATION STRUCTURE ===== */

/* Table of Contents */
/* 1. Reset & Root Variables */
/* 2. Base Styles */
/* 3. Layout Components */
/* 4. UI Components */
  /* Scoring Methods */
  /* Overlay Category Selection */
  /* Template Cards & Carousels */
  /* Customize & Preview Section */
  /* Color Controls */
  /* Preview Window */
  /* Scorecard Preview Input Styles */
  /* Form Elements */
  /* Utility Classes */
/* 5. Template Styles */
  /* Watermark Styles */
  /* Shared Stroke Card Template Styles */
  /* Stroke Card Templates */
  /* Shared Scorecard Template Styles */
  /* Scorecard Templates */
/* 6. Responsive Design */
/* 7. Hidden High-Resolution Rendering Container */
/* 8. Authentication Styles */
/* 9. Preview Blur Protection Styles */
/* 10. Screenshot Deterrent Styles */
/* 11. Beta Launch Popup Styles */

/* 1. Reset & Root Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #06402B;
  --secondary-color: #478747;
  --background-color: rgba(30, 30, 30, 0.8);
  --color: #ffffff;
}

/* 2. Base Styles */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background: 
    linear-gradient(135deg, rgba(34, 139, 34, 0.1) 0%, rgba(85, 107, 47, 0.1) 100%),
    radial-gradient(circle at 20% 50%, rgba(34, 139, 34, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(85, 107, 47, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #f8fdf8 0%, #e8f5e8 100%);
  min-height: 100vh;
}

/* 3. Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* big title banner at the top */
/* Golf-themed Hero Section */
.hero {
  position: relative;
  padding: 60px 0 80px 0;
  background: 
    linear-gradient(135deg, rgba(6, 64, 43, 0.95) 0%, rgba(71, 135, 71, 0.95) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.05"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></svg>');
  background-size: 100% 100%, 200px 200px;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-left,
.hero-right {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-center {
  flex: 1;
  text-align: center;
  padding: 0 40px;
}

.GSS-logo {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.GSS-logo:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.GSS-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Contact Us Button */
.contact-us-btn {
  width: 140px;
  height: 45px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-us-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.contact-us-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-us-btn:hover::before {
  left: 100%;
}

.contact-us-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.contact-text {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.contact-us-btn:hover .contact-icon {
  transform: scale(1.1);
}

/* Payment Success Button Override */
.payment-success-btn {
  width: 220px !important;
  height: 55px !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
}

.payment-success-btn .contact-text {
  font-size: 14px !important;
  line-height: 1.2;
  text-align: center;
}

/* Contact Us Button Animation */
.contact-us-btn {
  animation: contactFadeIn 1.5s ease-out 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

.hero h1 {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #e0f0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Hero Design */
@media (max-width: 1024px) {
  .hero-content {
    padding: 0 30px;
  }
  
  .hero-center {
    padding: 0 20px;
  }
  
  .hero h1 {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 60px 0;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .hero-left,
  .hero-right {
    flex: none;
  }
  
  .hero-center {
    padding: 0;
  }
  
  .GSS-logo {
    margin: 0 auto;
  }

  .contact-us-btn {
    width: 120px;
    height: 40px;
    font-size: 13px;
    margin-top: 15px;
  }
  
  .contact-icon {
    font-size: 14px;
  }
  
  .contact-text {
    font-size: 12px;
  }
  
  .hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1.1em;
    margin-bottom: 20px;
  }
  
  .hero-features {
    gap: 10px;
    margin-top: 20px;
  }
  
  .feature-badge {
    font-size: 0.8em;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2em;
  }
  
  .hero p {
    font-size: 1em;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .GSS-logo {
    width: 100px;
    height: 70px;
  }

  .contact-us-btn {
    width: 100px;
    height: 35px;
    margin-top: 10px;
  }
  
  .contact-text {
    font-size: 11px;
  }
}

/* Hero Entrance Animation */
.hero-content {
  animation: heroFadeIn 1.2s ease-out forwards;
}

.GSS-logo {
  animation: logoFloat 3s ease-in-out infinite;
}

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

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* sections/panels for each step */
.section {
  background: white;
  margin: 30px 0;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 2em;
  text-align: center;
}

/* 4. UI Components */
/* Scoring Methods */

.section p {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
  font-size: 16px;
}

/* Radio button styling */
.checkbox-group input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
  accent-color: var(--secondary-color);
}

.scoring-description {
  margin: 20px 0;
  min-height: 120px; /* Prevents layout shift when switching */
}

.scoring-option {
  display: none;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid var(--secondary-color);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.scoring-option.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.scoring-option h4 {
  color: var(--primary-color);
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: bold;
}

.scoring-option p {
  margin: 8px 0;
  color: #555;
  line-height: 1.6;
}

/* Subtle fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Scoring Method Descriptions */
@media (max-width: 768px) {
  .section h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .section p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
  }
  
  .scoring-description {
    margin: 15px 0;
    min-height: 90px; /* Reduced from 120px */
  }
  
  .scoring-option {
    padding: 12px;
  }
  
  .scoring-option h4 {
    font-size: 16px;
    margin: 0 0 8px 0;
  }
  
  .scoring-option p {
    font-size: 13px;
    margin: 6px 0;
    line-height: 1.4;
  }
  
  .checkbox-group {
    margin: 15px 0;
  }
  
  .checkbox-group label {
    font-size: 14px;
    margin-right: 20px;
  }
}

@media (max-width: 480px) {
  .section h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .section p {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .scoring-description {
    margin: 12px 0;
    min-height: 75px; /* Further reduced */
  }
  
  .scoring-option {
    padding: 10px;
  }
  
  .scoring-option h4 {
    font-size: 15px;
    margin: 0 0 6px 0;
  }
  
  .scoring-option p {
    font-size: 12px;
    margin: 5px 0;
    line-height: 1.3;
  }
  
  .checkbox-group label {
    font-size: 13px;
    margin-right: 15px;
    display: block;
    margin-bottom: 8px;
  }
}

@media (max-width: 360px) {
  .section h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .section p {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  .scoring-description {
    min-height: 65px;
  }
  
  .scoring-option {
    padding: 8px;
  }
  
  .scoring-option h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
  }
  
  .scoring-option p {
    font-size: 11px;
    margin: 4px 0;
    line-height: 1.2;
  }
  
  .checkbox-group label {
    font-size: 12px;
  }
}

/* Overlay Category Selection Styles */


.category-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin: 30px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.category-option {
  position: relative;
}

.category-option img {
  height: 85px;
  width: 85px;
  object-fit: contain;
}

.category-card {
  border: 3px solid #e0e0e0;
  border-radius: 15px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
  position: relative;
}

.category-card:hover {
  border-color: #478747;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(71, 135, 71, 0.2);
}

.category-card.selected {
  border-color: #478747;
  border-width: 4px;
  background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
  box-shadow: 0 8px 25px rgba(71, 135, 71, 0.3);
}

.category-card input[type="checkbox"] {
  position: absolute;
  top: 15px;
  right: 15px;
  transform: scale(1.5);
  accent-color: #478747;
  cursor: pointer;
}

.category-label {
  cursor: pointer;
  display: block;
}

.category-icon {
  font-size: 48px;
  margin-bottom: 0px;
}

.category-label h3 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: bold;
}

.category-label p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Template Cards & Carousels */
/* Category Carousel Section Styles */
.category-carousel-section {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 2px solid #e0e0e0;
}

.category-carousel-section:first-child {
  border-top: none;
}

.category-carousel-title {
  text-align: center;
  font-size: 20px;
  color: #333;
  margin-bottom: 25px;
  font-weight: bold;
}

.category-carousel-title img {
  height: 25px;
  width: 25px;
  object-fit: contain;
}

/* Update carousel container to work within sections */
.category-carousel-section .carousel-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 30px auto;
  overflow: hidden;
  padding: 20px 0 60px 0;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 30px auto;
  overflow: hidden;
  padding: 10px 0 30px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 0px;
  padding: 0 0px;
  width: 3000px; /* Wide enough for all templates plus transform space */
}

.carousel-track.dragging {
  transition: none;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  position: relative;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #478747;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: #478747;
  opacity: 0.7;
}

/* card that each template style is on */
.template-card {
  flex: 0 0 350px;
  border: 3px solid #8c8c8c;
  border-radius: 12px;
  padding: 0px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  opacity: 0.6;
  transform: scale(0.85);
  background: rgba(255, 255, 255, 0.9);
}

.template-card h3 {
  text-align: center;
  margin-top: 20px;
}

.template-card:hover {
  border-color: #478747;
  transform: scale(0.9);
}

.template-card.center {
  opacity: 1;
  transform: scale(1);
  border-color: #478747;
  border-width: 4px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 12px 35px rgba(71, 135, 71, 0.3);
  z-index: 10;
}

.template-card.selected {
  border-color: #478747;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 8px 25px rgba(71, 135, 71, 0.2);
}

.template-preview {
  transform: scale(0.8);
  transform-origin: center;
}

/* Coming Soon Card Styles */
.coming-soon-card {
    /* Inherits all template-card styles automatically */
    pointer-events: none; /* Prevents selection while allowing hover effects */
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin: 10px;
}

.coming-soon-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.coming-soon-text {
    font-size: 16px;
    font-weight: bold;
    color: #666;
    line-height: 1.4;
}

/* Ensure coming soon card gets same visual effects but no selection */
.coming-soon-card:hover .coming-soon-content {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
}

.coming-soon-card.center .coming-soon-content {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
    box-shadow: 0 4px 15px rgba(71, 135, 71, 0.2);
}

/* Responsive Coming Soon Card Styles */
@media (max-width: 768px) {
  .coming-soon-content {
    height: 150px;
    padding: 15px;
    margin: 8px;
  }
  
  .coming-soon-icon {
    font-size: 36px;
    margin-bottom: 12px;
  }
  
  .coming-soon-text {
    font-size: 14px;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .coming-soon-content {
    height: 120px;
    padding: 10px;
    margin: 6px;
  }
  
  .coming-soon-icon {
    font-size: 28px;
    margin-bottom: 8px;
  }
  
  .coming-soon-text {
    font-size: 12px;
    line-height: 1.2;
  }
}

@media (max-width: 360px) {
  .coming-soon-content {
    height: 100px;
    padding: 8px;
    margin: 4px;
  }
  
  .coming-soon-icon {
    font-size: 24px;
    margin-bottom: 6px;
  }
  
  .coming-soon-text {
    font-size: 11px;
    line-height: 1.1;
  }
}

/* Customize & Preview Section */
.color-customization-section,
.category-preview-section {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.color-customization-section h3,
.category-preview-section h3 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: bold;
}

.category-preview-section p {
  color: #666;
  margin-bottom: 20px;
}

/* Color Controls */
.color-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.color-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-input label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.color-input input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.color-input input[type="range"] {
    width: 80px;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

/* Category Preview Radios */
.category-preview-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.category-preview-radio {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-width: 200px;
}

.category-preview-radio:hover {
    border-color: #478747;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-preview-radio.active {
    border-color: #478747;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
    box-shadow: 0 4px 12px rgba(71, 135, 71, 0.2);
}

.category-preview-radio input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #478747;
}

.category-radio-content {
    flex: 1;
}

.category-radio-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.category-color-preview {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.color-preview-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.2);
}

/* Logo Upload Section */
.logo-upload-section {
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #ccc;
}

.logo-upload-section label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

.logo-upload-section button {
  margin-top: 5px; 
  padding: 5px 10px; 
  background: #ff4444; 
  color: white; 
  border: none; 
  border-radius: 4px; 
  cursor: pointer;
}

/* Preview Window */
.preview-section {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.preview-window {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    display: inline-block;
    min-width: 850px; /* Increased from 400px to fit scorecard */
    overflow-x: auto; /* Add horizontal scroll if needed */
}

/* Preview Window Width Classes */
.preview-window-scorecard {
  min-width: 850px !important;
  max-width: none !important;
  width: auto !important;
}

.preview-window-stroke {
  min-width: 400px !important;
  max-width: initial !important;
  width: initial !important;
}

/* Optional: Sample Download Section */
.sample-download-section {
    margin: 30px 0;
    padding: 0px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Enhanced Sample Download Section */
.sample-inputs-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* Compact Input Grid Layout */
.inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px 20px;
    margin-bottom: 20px;
}

/* Individual Input Groups */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 2px;
}

/* Sleek Input Styling */
.sample-inputs-section input[type="text"],
.sample-inputs-section input[type="number"],
.sample-inputs-section select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    font-family: inherit;
}

.sample-inputs-section input[type="text"]:focus,
.sample-inputs-section input[type="number"]:focus,
.sample-inputs-section select:focus {
    outline: none;
    border-color: #478747;
    box-shadow: 0 0 0 3px rgba(71, 135, 71, 0.1);
    transform: translateY(-1px);
}

/* Short Input Variants for Compact Fields */
.input-group.compact input {
    max-width: 120px;
}

.input-group.medium input {
    max-width: 160px;
}

/* Special styling for checkbox/select areas */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.checkbox-wrapper input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #478747;
}

.checkbox-wrapper label {
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

/* Download Button Enhancement */
.sample-inputs-section button {
    background: linear-gradient(135deg, #478747 0%, #06402B 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.sample-inputs-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 135, 71, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .inputs-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px 15px;
    }
    
    .input-group.compact input,
    .input-group.medium input {
        max-width: 100%;
    }
}

.generate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

/* Character counter styling */
.input-with-counter {
  position: relative;
  display: flex;
  flex-direction: column;
}

.character-counter {
  font-size: 11px;
  color: #666;
  text-align: right;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.character-counter.warning {
  color: #ff6b35;
}

/* Subtle flash animation for trimmed input */
@keyframes subtle-flash {
  0% { 
      box-shadow: 0 0 0 2px rgba(6, 64, 43, 0.3);
      background-color: rgba(6, 64, 43, 0.05);
  }
  50% { 
      box-shadow: 0 0 0 4px rgba(6, 64, 43, 0.5);
      background-color: rgba(6, 64, 43, 0.1);
  }
  100% { 
      box-shadow: 0 0 0 2px rgba(6, 64, 43, 0);
      background-color: transparent;
  }
}

.input-trimmed-flash {
  animation: subtle-flash 0.8s ease-out;
}

/* Scorecard Preview Input Styles */
.scorecard-preview-container {
  margin: 25px 0;
}

.scorecard-preview-title {
  color: #d32f2f;
  margin-bottom: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.scorecard-preview-wrapper {
  overflow-x: auto;
  border: 2px solid #d32f2f;
  border-radius: 8px;
  background: rgba(211, 47, 47, 0.1);
  padding: 10px;
}

.preview-scorecard-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

.preview-holes-row {
  background: #d32f2f;
  color: white;
}

.preview-par-row {
  background: #ffebee;
}

.preview-score-row {
  background: #fce4ec;
}

.preview-row-header,
.preview-hole-header,
.preview-total-header {
  padding: 8px 4px;
  border: 1px solid #ddd;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.preview-hole-header {
  min-width: 35px;
}

.preview-row-label {
  padding: 8px;
  border: 1px solid #ddd;
  font-weight: bold;
  background: #d32f2f;
  color: white;
  font-size: 12px;
  text-align: center;
}

.preview-par-cell,
.preview-score-cell {
  padding: 0px;
  border: 1px solid #ddd;
  text-align: center;
  min-width: 35px;
  min-height: 34px;
  box-sizing: border-box;
  vertical-align: middle;
}

.preview-total-cell {
  padding: 4px;
  border: 1px solid #ddd;
  text-align: center;
  background: #ffcdd2;
}

.preview-par-input,
.preview-score-input {
  width: 100%;
  border: none;
  text-align: center;
  background: transparent;
  font-size: 12px;
  padding: 8px 4px;
  box-sizing: border-box;
  min-height: 32px;
  line-height: 1.2;
}

.preview-par-input:focus,
.preview-score-input:focus {
  outline: 2px solid #478747;
  outline-offset: -1px;
  background: rgba(71, 135, 71, 0.1);
}

#preview-total-par,
#preview-total-score {
  width: 100%;
  border: none;
  text-align: center;
  background: transparent;
  font-size: 12px;
  font-weight: bold;
  padding: 2px;
}

.scorecard-preview-description {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .preview-scorecard-table {
      font-size: 10px;
  }
  
  .preview-hole-header,
  .preview-par-input,
  .preview-score-input {
      font-size: 10px;
  }
}

/* Scorecard Section */
.official-scorecard-container {
  overflow-x: auto;
}

.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.scorecard-table th,
.scorecard-table td {
  padding: 0px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.scorecard-table th {
  background: #478747;
  color: white;
  font-weight: bold;
  padding: 12px;
}

.scorecard-table tr:nth-child(even) {
  background: #f9f9f9;
}

.scorecard-table input {
  width: 100%;
  height: 100%;
  padding: 8px 0px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
}

.add-player-btn {
  background: #478747;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  margin: 10px;
}

.delete-btn {
  background: #ff4444;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.generate-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: white;
  border: none;
  padding: 20px 40px;
  font-size: 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 40px auto;
  display: block;
}

/* Generate Overlays Section */
.generate-overlays-contaier {
  text-align: center;
}

.generate-overlays-contaier p {
  margin: 10px 0; font-weight: bold;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #478747, #5a9f5a);
  width: 0%;
  transition: width 0.3s ease;
}

/* Form Elements */
.checkbox-group label {
  font-weight: 600;
  color: #333;
  cursor: pointer;
  margin-right: 25px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.invisible {
  visibility: hidden;
}

.show-flex {
  display: flex !important;
}

.show-inline-block {
  display: inline-block !important;
}

/* 5. Template Styles */
/* Watermark Styles */
.domain-watermark {
  position: absolute;
}

.watermark-text {
  font-size: calc(var(--template-scale, 1) * 12px);
  color: var(--color);
  z-index: 3;
}

.strokecard-template1 .domain-watermark {
  bottom: calc(var(--template-scale, 1) * -2px);
  left: calc(var(--template-scale, 1) * 15px);
}

.scorecard-template2 .domain-watermark {
  bottom: calc(var(--template-scale, 1) * -4px);
  left: 42%;
}


/* Shared Stroke Card Template Styles */
.strokecard-template1,
.strokecard-template2,
.strokecard-template3,
.strokecard-template4 {
  background: var(--background-color);
  border-radius: calc(var(--template-scale, 1) * 12px);
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: bold;
  color: var(--color);
  position: relative;
  margin: 0 auto;
}

.template-logo {
  /* Base layout properties */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color);
  
  /* Image rendering quality */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated; /* For very small images */
  
  /* Background sizing for logos */
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  
  /* Better scaling */
  transform-origin: center;
}

/* For high DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .template-logo {
    /* Use smoother rendering on high DPI */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
  }
}

.template-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: auto;
}

.strokecard-score {
  letter-spacing: calc(var(--template-scale, 1) * 2px);
}

.strokecard-for-tag {
  position: absolute;
  background-color: var(--primary-color);
  color: var(--color);
  font-weight: bold;
  font-size: calc(var(--template-scale, 1) * 12px);
  padding: calc(var(--template-scale, 1) * 4px) calc(var(--template-scale, 1) * 8px);
  border-radius: calc(var(--template-scale, 1) * 4px);
  white-space: nowrap;
  display: none;
}

.strokecard-for-tag.visible {
  display: block;
}

/* Stroke Card Templates */
/* Stroke Card Template 1 Specific */
.strokecard-template1 {
  max-width: calc(var(--template-scale, 1) * 450px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

.strokecard-template1 .strokecard-top-row {
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: calc(var(--template-scale, 1) * 10px) calc(var(--template-scale, 1) * 15px);
  border-top-left-radius: calc(var(--template-scale, 1) * 12px);
  border-top-right-radius: calc(var(--template-scale, 1) * 12px);
}

.strokecard-template1 .template-logo {
  width: calc(var(--template-scale, 1) * 40px);
  height: calc(var(--template-scale, 1) * 40px);
  background-color: var(--secondary-color);
  border-radius: calc(var(--template-scale, 1) * 6px);
  font-size: calc(var(--template-scale, 1) * 12px);
}

.strokecard-template1 .template-logo img {
  border-radius: calc(var(--template-scale, 1) * 6px);
}
/* ----- */
.strokecard-template1 .strokecard-name {
  font-size: calc(var(--template-scale, 1) * 26px);
  font-weight: bold;
  margin-left: calc(var(--template-scale, 1) * 10px);
  text-align: justify;
  flex: 1;
}

.strokecard-template1 .strokecard-score {
  background: var(--secondary-color);
  padding: calc(var(--template-scale, 1) * 10px) calc(var(--template-scale, 1) * 16px);
  font-size: calc(var(--template-scale, 1) * 18px);
  font-weight: bold;
  border-radius: calc(var(--template-scale, 1) * 4px);
  margin-left: calc(var(--template-scale, 1) * 5px);
}

.strokecard-template1 .strokecard-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: calc(var(--template-scale, 1) * 20px);
  padding: calc(var(--template-scale, 1) * 10px) calc(var(--template-scale, 1) * 15px);
}

.strokecard-template1 .strokecard-hole,
.strokecard-template1 .strokecard-distance {
  font-weight: bold;
  font-size: calc(var(--template-scale, 1) * 16px);
  width: 100%;
  text-align: justify;
  white-space: nowrap;
}

.strokecard-template1 .strokecard-stroke-bubbles {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: calc(var(--template-scale, 1) * 8px);
  min-width: calc((calc(var(--template-scale, 1) * 30px) * 5) + (calc(var(--template-scale, 1) * 8px) * 4));
}

.strokecard-template1 .strokecard-stroke {
  width: calc(var(--template-scale, 1) * 30px);
  height: calc(var(--template-scale, 1) * 30px);
  border-radius: 50%;
  background-color: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: calc(var(--template-scale, 1) * 14px);
  transition: all 0.2s ease;
}

.strokecard-template1 .strokecard-stroke.active {
  border: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
  color: var(--secondary-color);
  background-color: #222;
}

.strokecard-template1 .strokecard-for-tag {
  bottom: calc(var(--template-scale, 1) * -18px);
  right: calc(var(--template-scale, 1) * 15px);
  background-color: var(--secondary-color);
}

/* Stroke Card Template 2 Specific */
.strokecard-template2 {
  display: flex;
  min-width: calc(var(--template-scale, 1) * 350px);
  max-width: calc(var(--template-scale, 1) * 450px);
}

.strokecard-template2 .strokecard-content {
  display: flex;
  flex-direction: column;
  flex: 5;
}

.strokecard-template2 .strokecard-top-row {
  display: flex;
  border-bottom: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
}

.strokecard-template2 .template-logo {
  padding: calc(var(--template-scale, 1) * 5px);
  border-right: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
  border-top-left-radius: calc(var(--template-scale, 1) * 12px);
  background: var(--primary-color);
  font-size: calc(var(--template-scale, 1) * 12px);
  width: calc(var(--template-scale, 1) * 60px);
}

.strokecard-template2 .template-logo img {
  border-radius: 0;
}

.strokecard-template2 .strokecard-name {
  font-size: calc(var(--template-scale, 1) * 35px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--template-scale, 1) * 5px);
  width: 100%;
  max-width: calc(var(--template-scale, 1) * 300px);
  white-space: nowrap;
}

.strokecard-template2 .strokecard-bottom-row {
  display: flex;
}

.strokecard-template2 .strokecard-shot-count,
.strokecard-template2 .strokecard-distance,
.strokecard-template2 .strokecard-par-count,
.strokecard-template2 .strokecard-hole {
  font-size: calc(var(--template-scale, 1) * 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--template-scale, 1) * 10px);
  border-right: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
  width: 100%;
  white-space: nowrap;
}

.strokecard-template2 .strokecard-distance {
  text-transform: lowercase;
}

.strokecard-template2 .strokecard-hole {
  border: none;
}

.strokecard-template2 .strokecard-score {
  display: flex;
  min-width: calc(var(--template-scale, 1) * 70px);
  align-items: center;
  justify-content: center;
  font-size: calc(var(--template-scale, 1) * 50px);
  color: var(--primary-color);
  font-weight: 600;
  border-left: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
}

.strokecard-template2 .strokecard-for-tag {
  bottom: calc(var(--template-scale, 1) * -16px);
  left: calc(var(--template-scale, 1) * -5px);
}

/* Stroke Card Template 3 Specific */
.strokecard-template3 {
  min-width: calc(var(--template-scale, 1) * 350px);
  max-width: calc(var(--template-scale, 1) * 450px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

.strokecard-template3 .strokecard-top-row {
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: calc(var(--template-scale, 1) * 50px);
  padding: calc(var(--template-scale, 1) * 10px) calc(var(--template-scale, 1) * 25px);
  border-top-left-radius: calc(var(--template-scale, 1) * 12px);
  border-top-right-radius: calc(var(--template-scale, 1) * 12px);
}

.strokecard-template3 .template-logo {
  width: 25%;
  height: calc(var(--template-scale, 1) * 52px);
  font-size: calc(var(--template-scale, 1) * 30px);
}

.strokecard-template3 .strokecard-name {
  font-size: calc(var(--template-scale, 1) * 30px);
  font-weight: bold;
  flex: 1;
  text-align: justify;
  white-space: nowrap;
  max-width: calc(var(--template-scale, 1) * 300px);
}

.strokecard-template3 .strokecard-score {
  background: var(--secondary-color);
  padding: calc(var(--template-scale, 1) * 10px) calc(var(--template-scale, 1) * 16px);
  font-size: calc(var(--template-scale, 1) * 20px);
  font-weight: bold;
  margin-left: calc(var(--template-scale, 1) * 5px);
  margin-right: calc(var(--template-scale, 1) * 5px);
}

.strokecard-template3 .strokecard-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: calc(var(--template-scale, 1) * 50px);
  gap: calc(var(--template-scale, 1) * 20px);
  padding: calc(var(--template-scale, 1) * 10px) calc(var(--template-scale, 1) * 25px);
}

.strokecard-template3 .strokecard-hole,
.strokecard-template3 .strokecard-distance {
  font-weight: bold;
  font-size: calc(var(--template-scale, 1) * 20px);
  min-width: 15%;
  white-space: nowrap;
  text-align: left;
}

.strokecard-template3 .strokecard-stroke-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: calc(var(--template-scale, 1) * 8px);
  min-width: calc((calc(var(--template-scale, 1) * 35px) * 5) + (calc(var(--template-scale, 1) * 8px) * 4));
}

.strokecard-template3 .strokecard-stroke {
  width: calc(var(--template-scale, 1) * 35px);
  height: calc(var(--template-scale, 1) * 30px);
  background-color: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: calc(var(--template-scale, 1) * 14px);
  transition: all 0.2s ease;
}

.strokecard-template3 .strokecard-stroke.active {
  border: calc(var(--template-scale, 1) * 2px) solid var(--color);
  color: var(--color);
  background-color: #222;
}

.strokecard-template3 .strokecard-for-tag {
  bottom: calc(var(--template-scale, 1) * -20px);
  right: calc(var(--template-scale, 1) * 25px);
  font-size: calc(var(--template-scale, 1) * 16px);
  background-color: var(--secondary-color);
}

/* Stroke Card Template 4 Specific */
.strokecard-template4 {
  background: none;
  display: flex;
  flex-direction: column;
  max-width: calc(var(--template-scale, 1) * 450px);
  position: relative;
  margin: 0 auto;
}

.strokecard-template4 .strokecard-top-row {
  display: flex;
  border-radius: calc(var(--template-scale, 1) * 12px);
  background: var(--secondary-color);
  padding-top: calc(var(--template-scale, 1) * 12px);
  min-width: calc(var(--template-scale, 1) * 375px);
  max-width: 100%;
}

.strokecard-template4 .strokecard-name {
  background: var(--primary-color);
  color: var(--color);
  border-top-left-radius: calc(var(--template-scale, 1) * 12px);
  border-bottom-left-radius: calc(var(--template-scale, 1) * 12px);
  padding: calc(var(--template-scale, 1) * 5px) calc(var(--template-scale, 1) * 24px);
  margin-right: calc(var(--template-scale, 1) * 15px);
  font-size: calc(var(--template-scale, 1) * 40px);
  font-weight: 900;
  letter-spacing: calc(var(--template-scale, 1) * 2px);
  text-transform: uppercase;
  text-align: justify;
  white-space: nowrap;
  width: 100%;
  max-width: calc(var(--template-scale, 1) * 350px);
  position: relative;
}

.strokecard-template4 .strokecard-name::after {
  content: '';
  position: absolute;
  top: 0;
  right: calc(var(--template-scale, 1) * -15px);
  width: 0;
  height: 0;
  border-left: calc(var(--template-scale, 1) * 15px) solid var(--primary-color);
  border-bottom: calc(var(--template-scale, 1) * 75px) solid transparent;
}

.strokecard-template4 .strokecard-score {
  background: var(--secondary-color);
  color: var(--color);
  border-radius: calc(var(--template-scale, 1) * 12px);
  font-size: calc(var(--template-scale, 1) * 40px);
  font-weight: 900;
  text-transform: uppercase;
  padding: calc(var(--template-scale, 1) * 5px) calc(var(--template-scale, 1) * 20px) calc(var(--template-scale, 1) * 5px) calc(var(--template-scale, 1) * 5px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: calc(var(--template-scale, 1) * 78px);
}

.strokecard-template4 .strokecard-bottom-row {
  background: var(--background-color);
  color: var(--color);
  border-bottom-left-radius: calc(var(--template-scale, 1) * 12px);
  border-bottom-right-radius: calc(var(--template-scale, 1) * 12px);
  padding: calc(var(--template-scale, 1) * 4px) calc(var(--template-scale, 1) * 10px);
  margin-left: calc(var(--template-scale, 1) * 20px);
  margin-right: calc(var(--template-scale, 1) * 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--template-scale, 1) * 410px);
}

.strokecard-template4 .template-logo {
  min-width: calc(var(--template-scale, 1) * 40px);
  height: calc(var(--template-scale, 1) * 40px);
  font-size: calc(var(--template-scale, 1) * 13px);
}

.strokecard-template4 .strokecard-hole,
.strokecard-template4 .strokecard-distance {
  font-size: calc(var(--template-scale, 1) * 13px);
  font-weight: 700;
  color: var(--color);
  flex-wrap: nowrap;
  align-items: center;
  min-width: 18%;
}

.strokecard-template4 .strokecard-stroke-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: calc(var(--template-scale, 1) * 0px);
  min-width: calc((calc(var(--template-scale, 1) * 33px) * 5) + (calc(var(--template-scale, 1) * 0px) * 4));
}

.strokecard-template4 .strokecard-stroke {
  width: calc(var(--template-scale, 1) * 33px);
  height: calc(var(--template-scale, 1) * 33px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--template-scale, 1) * 15px);
  font-weight: 900;
  color: var(--color);
  position: relative;
}

.strokecard-template4 .strokecard-stroke.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: calc(var(--template-scale, 1) * 3px) solid var(--secondary-color);
  box-shadow: 0 0 calc(var(--template-scale, 1) * 15px) var(--secondary-color); 
} 

.strokecard-template4 .strokecard-for-tag {
  bottom: calc(var(--template-scale, 1) * -33px);
  right: calc(var(--template-scale, 1) * 50px);
  font-size: calc(var(--template-scale, 1) * 16px);
  background: linear-gradient(270deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Shared Scorecard Template Styles */
.scorecard-template1,
.scorecard-template2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: bold;
  color: var(--color);
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

/* Common Cell Base Styles */
.scorecard-hole-cell,
.scorecard-par-cell,
.scorecard-score-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-weight: bold;
}

.scorecard-total-title-cell,
.scorecard-total-par-cell,
.scorecard-total-score-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  white-space: nowrap;
}

/* Template State Classes */
.scorecard-cell-inactive {
  opacity: 0.3;
}

.scorecard-cell-active {
  opacity: 1;
}

/* Base Scoring Mark Styles */
.scorecard-score-cell {
  position: relative;
}

.scorecard-score-cell::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: none;
  pointer-events: none;
}

/* Scorecard Template 1 Specific */
.scorecard-template1 {
  border-radius: calc(var(--template-scale, 1) * 12px);
  max-width: calc(var(--template-scale, 1) * 800px);
}

.scorecard-template1 .scorecard-holes-row,
.scorecard-template1 .scorecard-par-row,
.scorecard-template1 .scorecard-scores-row {
  display: flex;
  align-items: center;
}

.scorecard-template1 .scorecard-holes-row {
  background: linear-gradient(180deg, var(--primary-color) 20%, var(--secondary-color) 100%);
  opacity: 0.90;
}

.scorecard-template1 .scorecard-par-row {
  background: var(--background-color);
}

.scorecard-template1 .scorecard-scores-row {
  background: var(--background-color);
  opacity: 0.81;
}

.scorecard-template1 .scorecard-hole-cell,
.scorecard-template1 .scorecard-par-cell,
.scorecard-template1 .scorecard-score-cell {
  flex: 1;
  text-align: center;
  font-size: calc(var(--template-scale, 1) * 12px);
  border-right: calc(var(--template-scale, 1) * 1px) solid rgba(255, 255, 255, 0.2);
  min-width: calc(var(--template-scale, 1) * 35px);
  min-height: calc(var(--template-scale, 1) * 40px);
}

.scorecard-template1 .scorecard-hole-cell,
.scorecard-template1 .scorecard-par-cell {
  padding: calc(var(--template-scale, 1) * 3px) calc(var(--template-scale, 1) * 10px);
}

.scorecard-template1 .scorecard-score-cell {
  padding: calc(var(--template-scale, 1) * 10px) calc(var(--template-scale, 1) * 10px);
}

.scorecard-template1 .scorecard-total-title-cell,
.scorecard-template1 .scorecard-total-par-cell,
.scorecard-template1 .scorecard-total-score-cell {
  flex: 1;
  text-align: center;
  min-width: calc(var(--template-scale, 1) * 60px);
  font-size: calc(var(--template-scale, 1) * 14px);
  border-right: none;
}

.scorecard-template1 .scorecard-total-title-cell,
.scorecard-template1 .scorecard-total-par-cell {
  padding: calc(var(--template-scale, 1) * 3px) calc(var(--template-scale, 1) * 10px);
}

.scorecard-template1 .scorecard-total-title-cell {
  background: transparent;
}

.scorecard-template1 .scorecard-total-par-cell {
  background: transparent;
}

.scorecard-template1 .scorecard-total-score-cell {
  padding: calc(var(--template-scale, 1) * 10px) calc(var(--template-scale, 1) * 10px);
  background: linear-gradient(180deg, var(--primary-color) 20%, var(--secondary-color) 100%);
  opacity: 0.90;
}

/* Template 1 Scoring Mark Styles */
.scorecard-template1 .scorecard-score-cell::before {
  border: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
}

/* Birdie Circle - Outline Only */
.scorecard-template1 .scorecard-score-cell.birdie::before {
  display: block;
  width: calc(var(--template-scale, 1) * 20px);
  height: calc(var(--template-scale, 1) * 20px);
  border-radius: 50%;
  background: transparent;
}

/* Bogey Square - Outline Only */
.scorecard-template1 .scorecard-score-cell.bogey::before {
  display: block;
  width: calc(var(--template-scale, 1) * 20px);
  height: calc(var(--template-scale, 1) * 20px);
  border-radius: calc(var(--template-scale, 1) * 2px);
  background: transparent;
}

/* Eagle Circle - Filled */
.scorecard-template1 .scorecard-score-cell.eagle::before {
  display: block;
  width: calc(var(--template-scale, 1) * 20px);
  height: calc(var(--template-scale, 1) * 20px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Double Bogey Square - Filled */
.scorecard-template1 .scorecard-score-cell.double-bogey::before {
  display: block;
  width: calc(var(--template-scale, 1) * 20px);
  height: calc(var(--template-scale, 1) * 20px);
  border-radius: calc(var(--template-scale, 1) * 2px);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Albatross Circle - Ring + Filled Center */
.scorecard-template1 .scorecard-score-cell.albatross::before {
  content: '';
  display: block;
  width: calc(var(--template-scale, 1) * 26px);
  height: calc(var(--template-scale, 1) * 26px);
  border: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
  border-radius: 50%;
  background: transparent;
  z-index: 1;
}

.scorecard-template1 .scorecard-score-cell.albatross::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: calc(var(--template-scale, 1) * 20px);
  height: calc(var(--template-scale, 1) * 20px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  z-index: 2;
}

/* Triple Bogey Square - Ring + Filled Center */
.scorecard-template1 .scorecard-score-cell.triple-bogey::before {
  content: '';
  display: block;
  width: calc(var(--template-scale, 1) * 26px);
  height: calc(var(--template-scale, 1) * 26px);
  border: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
  border-radius: calc(var(--template-scale, 1) * 2px);
  background: transparent;
  z-index: 1;
}

.scorecard-template1 .scorecard-score-cell.triple-bogey::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: calc(var(--template-scale, 1) * 20px);
  height: calc(var(--template-scale, 1) * 20px);
  border-radius: calc(var(--template-scale, 1) * 2px);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  z-index: 2;
}

/* Template 1 Score Text Styles */
.scorecard-template1 .scorecard-score-cell.birdie,
.scorecard-template1 .scorecard-score-cell.bogey,
.scorecard-template1 .scorecard-score-cell.eagle,
.scorecard-template1 .scorecard-score-cell.double-bogey,
.scorecard-template1 .scorecard-score-cell.albatross,
.scorecard-template1 .scorecard-score-cell.triple-bogey {
  color: var(--color);
  font-weight: bold;
}

.scorecard-template1 .scorecard-score-cell.birdie::after,
.scorecard-template1 .scorecard-score-cell.bogey::after,
.scorecard-template1 .scorecard-score-cell.eagle::after,
.scorecard-template1 .scorecard-score-cell.double-bogey::after,
.scorecard-template1 .scorecard-score-cell.albatross::after,
.scorecard-template1 .scorecard-score-cell.triple-bogey::after {
  content: attr(data-score);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--color);
  font-weight: bold;
  font-size: inherit;
  pointer-events: none;
}

/* Scorecard Template 2 Specific */
.scorecard-template2 {
  display: flex;
  flex-direction: row;
  border: solid var(--secondary-color) calc(var(--template-scale, 1) * 6px);
  border-top-left-radius: calc(var(--template-scale, 1) * 20px) calc(var(--template-scale, 1) * 12px);
  border-top-right-radius: calc(var(--template-scale, 1) * 20px) calc(var(--template-scale, 1) * 12px);
  border-bottom-left-radius: calc(var(--template-scale, 1) * 20px) calc(var(--template-scale, 1) * 12px);
  border-bottom-right-radius: calc(var(--template-scale, 1) * 20px) calc(var(--template-scale, 1) * 12px);
  letter-spacing: calc(var(--template-scale, 1) * 1px);
  background: linear-gradient(180deg, var(--primary-color) 20%, var(--background-color) 40%);
  opacity: 0.8;
  position: relative;
}

.scorecard-template2 .scorecard-left-column,
.scorecard-template2 .scorecard-middle-column,
.scorecard-template2 .scorecard-right-column {
  display: flex;
  flex-direction: column;
}

.scorecard-template2 .scorecard-left-column,
.scorecard-template2 .scorecard-right-column {
  min-width: calc(var(--template-scale, 1) * 65px);
}

.scorecard-template2 .scorecard-hole-title-cell,
.scorecard-template2 .template-logo {
  display: flex;
  align-items: center;
  font-size: calc(var(--template-scale, 1) * 12px);
  padding: calc(var(--template-scale, 1) * 0px) calc(var(--template-scale, 1) * 5px);
  justify-content: center;
}

.scorecard-template2 .scorecard-hole-title-cell {
  min-height: calc(var(--template-scale, 1) * 30px);
}

.scorecard-template2 .template-logo {
  min-height: calc(var(--template-scale, 1) * 65px);
}

.scorecard-template2 .scorecard-holes-row,
.scorecard-template2 .scorecard-scores-row {
  display: flex;
  align-items: center;
}

.scorecard-template2 .scorecard-hole-cell,
.scorecard-template2 .scorecard-score-cell {
  text-align: center;
  font-size: calc(var(--template-scale, 1) * 12px);
  font-weight: bold;
  min-width: calc(var(--template-scale, 1) * 40px);
  max-width: calc(var(--template-scale, 1) * 50px);
  overflow: hidden;
  align-content: center;
}

.scorecard-template2 .scorecard-hole-cell {
  min-height: calc(var(--template-scale, 1) * 30px);
}

.scorecard-template2 .scorecard-score-cell {
  min-height: calc(var(--template-scale, 1) * 65px);
  font-size: calc(var(--template-scale, 1) * 20px);
  font-weight: 800;
}

.scorecard-template2 .scorecard-score-title-cell,
.scorecard-template2 .scorecard-total-score-cell {
  display: flex;
  align-items: center;
  font-size: calc(var(--template-scale, 1) * 15px);
  padding: calc(var(--template-scale, 1) * 0px) calc(var(--template-scale, 1) * 5px);
  justify-content: center;
}

.scorecard-template2 .scorecard-score-title-cell {
  min-height: calc(var(--template-scale, 1) * 30px);
}

.scorecard-template2 .scorecard-total-score-cell {
  min-height: calc(var(--template-scale, 1) * 65px);
}

/* Template 2 Scoring Mark Styles */
.scorecard-template2 .scorecard-score-cell::before {
  border: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
}

/* Birdie Circle - Outline Only */
.scorecard-template2 .scorecard-score-cell.birdie::before {
  display: block;
  width: calc(var(--template-scale, 1) * 26px);
  height: calc(var(--template-scale, 1) * 26px);
  border-radius: 50%;
  background: transparent;
}

/* Bogey Square - Outline Only */
.scorecard-template2 .scorecard-score-cell.bogey::before {
  display: block;
  width: calc(var(--template-scale, 1) * 26px);
  height: calc(var(--template-scale, 1) * 26px);
  border-radius: calc(var(--template-scale, 1) * 2px);
  background: transparent;
}

/* Eagle Circle - Filled */
.scorecard-template2 .scorecard-score-cell.eagle::before {
  display: block;
  width: calc(var(--template-scale, 1) * 26px);
  height: calc(var(--template-scale, 1) * 26px);
  border-radius: 50%;
  background: var(--secondary-color);
}

/* Double Bogey Square - Filled */
.scorecard-template2 .scorecard-score-cell.double-bogey::before {
  display: block;
  width: calc(var(--template-scale, 1) * 26px);
  height: calc(var(--template-scale, 1) * 26px);
  border-radius: calc(var(--template-scale, 1) * 2px);
  background: var(--secondary-color);
}

/* Albatross Circle - Ring + Filled Center */
.scorecard-template2 .scorecard-score-cell.albatross::before {
  content: '';
  display: block;
  width: calc(var(--template-scale, 1) * 28px);
  height: calc(var(--template-scale, 1) * 28px);
  border: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
  border-radius: 50%;
  background: transparent;
  z-index: 1;
}

.scorecard-template2 .scorecard-score-cell.albatross::after {
  content: attr(data-score);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: calc(var(--template-scale, 1) * 25px);
  height: calc(var(--template-scale, 1) * 25px);
  border-radius: 50%;
  background: var(--secondary-color);
  z-index: 2;
  color: var(--color);
  font-weight: bold;
  font-size: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Triple Bogey Square - Ring + Filled Center */
.scorecard-template2 .scorecard-score-cell.triple-bogey::before {
  content: '';
  display: block;
  width: calc(var(--template-scale, 1) * 28px);
  height: calc(var(--template-scale, 1) * 28px);
  border: calc(var(--template-scale, 1) * 2px) solid var(--secondary-color);
  border-radius: calc(var(--template-scale, 1) * 2px);
  background: transparent;
  z-index: 1;
}

.scorecard-template2 .scorecard-score-cell.triple-bogey::after {
  content: attr(data-score);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: calc(var(--template-scale, 1) * 25px);
  height: calc(var(--template-scale, 1) * 25px);
  border-radius: calc(var(--template-scale, 1) * 2px);
  background: var(--secondary-color);
  z-index: 2;
  color: var(--color);
  font-weight: bold;
  font-size: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Template 2 Score Text Styles */
.scorecard-template2 .scorecard-score-cell.birdie,
.scorecard-template2 .scorecard-score-cell.bogey,
.scorecard-template2 .scorecard-score-cell.eagle,
.scorecard-template2 .scorecard-score-cell.double-bogey,
.scorecard-template2 .scorecard-score-cell.albatross,
.scorecard-template2 .scorecard-score-cell.triple-bogey {
  color: var(--secondary-color);
  font-weight: bold;
}

.scorecard-template2 .scorecard-score-cell.birdie::after,
.scorecard-template2 .scorecard-score-cell.bogey::after,
.scorecard-template2 .scorecard-score-cell.eagle::after,
.scorecard-template2 .scorecard-score-cell.double-bogey::after {
  content: attr(data-score);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--color);
  font-weight: bold;
  font-size: inherit;
  pointer-events: none;
}

/* Responsive Design */


/* Responsive Overlay Category Selection */
@media (max-width: 768px) {
  .category-selection-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .category-card {
      padding: 20px;
  }
  
  .category-icon {
      font-size: 36px;
  }
  
  .category-label h3 {
      font-size: 20px;
  }
}

/* Enhanced Responsive Carousel Styles */
@media (max-width: 1200px) {
  .template-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .carousel-track {
    padding: 0 15px;
    gap: 8px;
  }
  
  .template-card {
    flex: 0 0 200px;
  }
  
  .template-card:not(.center) {
    opacity: 0.4;
  }
  
  .category-carousel-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .carousel-track {
    gap: 6px;
    padding: 0 10px;
  }
  
  .template-card {
    flex: 0 0 110px;
    height: 160px;
    padding: 10px 4px 4px 4px;
  }
  
  .template-card h3 {
    font-size: 14px;
    margin: 0;
    line-height: 1.1;
    transform: translateY(-30px);
  }
  
  .category-carousel-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  /* Scale down template previews without affecting --template-scale */
  .template-preview {
    transform: scale(0.6);
    transform-origin: center top;
  }
}

@media (max-width: 360px) {
  .carousel-track {
    gap: 4px;
    padding: 0 8px;
  }
  
  .template-card {
    flex: 0 0 95px;
    height: 140px;
  }
  
  .template-card h3 {
    font-size: 12px;
    margin: 0;
    line-height: 1.0;
    transform: translateY(-30px);
  }
  
  .category-carousel-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  /* Further scale down for very small screens without affecting --template-scale */
  .template-preview {
    transform: scale(0.4);
    margin-bottom: -2px;
  }
  
  /* Adjust carousel dots for smaller screens */
  .carousel-dots {
    margin-top: 10px;
  }
  
  .carousel-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}

/* Additional mobile-specific carousel adjustments */
@media (max-width: 480px) {
  .carousel-container {
    margin: 15px 0;
  }
  
  .template-card.center {
    transform: scale(1.05);
  }
  
  .template-card:not(.center) {
    opacity: 0.5;
    transform: scale(0.9);
  }
  
  /* Hide side templates on very small screens - show only 3 total */
  .carousel-track {
    justify-content: center;
  }
}

/* Mobile: Force 2-3 columns */
@media (max-width: 768px) {
  .color-controls {
      grid-template-columns: 1fr 1fr 1fr !important; /* Force 3 columns */
      gap: 12px !important;
      margin: 15px 0 !important;
  }
  
  .color-input {
      gap: 6px !important;
  }
  
  .color-input label {
      font-size: 11px !important;
      text-align: center !important;
  }
  
  .color-input input[type="color"] {
      width: 50px !important;
      height: 30px !important;
      margin: 0 auto !important;
  }
  
  .color-input input[type="range"] {
      width: 70px !important;
      height: 4px !important;
      margin: 0 auto !important;
  }
}

/* Very small phones: Force 2 columns */
@media (max-width: 480px) {
  .color-controls {
      grid-template-columns: 1fr 1fr !important; /* Force 2 columns */
      gap: 10px !important;
  }
  
  .color-input input[type="color"] {
      width: 45px !important;
      height: 28px !important;
  }
  
  .color-input input[type="range"] {
      width: 60px !important;
  }
}

/* Responsive Customize & Preview */
@media (max-width: 768px) {
  .color-controls {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 15px;
  }
  
  .category-preview-radios {
      flex-direction: column;
  }
  
  .category-preview-radio {
      min-width: auto;
  }
  
  .preview-window {
      min-width: auto;
      padding: 20px;
  }
}

/* Enhanced Responsive Preview Scorecard Input */
@media (max-width: 768px) {
  .scorecard-preview-wrapper {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }
  
  .preview-scorecard-table {
      min-width: 800px;
      font-size: 11px;
  }
  
  .preview-hole-header,
  .preview-par-input,
  .preview-score-input {
      font-size: 11px;
      min-width: 30px;
  }
  
  .preview-par-input,
  .preview-score-input {
      padding: 4px 2px;
      min-height: 24px;
  }
}

@media (max-width: 480px) {
  .preview-scorecard-table {
      min-width: 700px;
      font-size: 10px;
  }
  
  .preview-hole-header,
  .preview-par-input,
  .preview-score-input {
      font-size: 10px;
      min-width: 28px;
  }
  
  .preview-par-input,
  .preview-score-input {
      padding: 3px 1px;
      min-height: 22px;
  }
}

/* Mobile: More compact input grid */
@media (max-width: 768px) {
    .inputs-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px 12px !important;
    }
    
    .input-group {
        gap: 4px !important;
    }
    
    .input-group label {
        font-size: 12px !important;
        margin-bottom: 1px !important;
    }
    
    .sample-inputs-section input[type="text"],
    .sample-inputs-section input[type="number"],
    .sample-inputs-section select {
        padding: 4px 6px !important;
        font-size: 12px !important;
        border-radius: 4px !important;
        min-height: 28px !important;
        height: 28px !important;
        max-width: 120px !important;        /* Limit width */
        width: 100% !important;             /* But fill available space */
    }
}

/* Very small phones: Even smaller and narrower boxes */
@media (max-width: 480px) {
    .inputs-grid {
        gap: 8px 10px !important;
    }
    
    .input-group label {
        font-size: 11px !important;
    }
    
    .sample-inputs-section input[type="text"],
    .sample-inputs-section input[type="number"],
    .sample-inputs-section select {
        padding: 3px 5px !important;
        font-size: 11px !important;
        min-height: 24px !important;
        height: 24px !important;
        border-width: 1px !important;
        max-width: 100px !important;        /* Even narrower on small phones */
        width: 100% !important;
    }
}

/* Responsive Scorecard */
@media (max-width: 768px) {
  .scorecard-template1 {
      max-width: 100%;
  }
  
  .scorecard-cell {
      min-width: 25px;
      padding: 8px 4px;
      font-size: 10px;
  }
  
  .scorecard-row-label {
      min-width: 60px;
      font-size: 12px;
      padding: 10px 8px;
  }
} /**/

/* Hidden High-Resolution Rendering Container */
#hiddenHighResContainer {
  position: fixed;
  top: -50000px;
  left: -50000px;
  width: auto;
  height: auto;
  overflow: visible;
  pointer-events: none;
  z-index: -9999;
  opacity: 0.01; /* Nearly invisible but not visibility:hidden */
  --template-scale: 4; /* 4x scale for high resolution */
}

/* === AUTHENTICATION UI STYLES === */

/* Auth Section in Hero */
.auth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.auth-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 180px;
}

.user-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.user-email {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.user-plan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

/* Auth Buttons */
.auth-btn {
  width: 150px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.manage-sub-btn {
  margin-top: 10px;
  width: 170px; /* Wider for longer text */
}

.auth-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.sign-up-btn {
  background: rgba(71, 135, 71, 0.3);
  border-color: rgba(71, 135, 71, 0.5);
}

.sign-up-btn:hover {
  background: rgba(71, 135, 71, 0.5);
  border-color: rgba(71, 135, 71, 0.8);
}

.auth-icon {
  font-size: 14px;
}

.auth-text {
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* 8. Authentication Styles */
/* === AUTHENTICATION MODAL === */

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

.auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.auth-modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.auth-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Auth Forms */
.auth-form {
  padding: 40px;
}

.auth-form h2 {
  color: #333;
  font-size: 1.8em;
  margin-bottom: 10px;
  text-align: center;
}

.auth-form p {
  color: #666;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.5;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafafa;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(71, 135, 71, 0.1);
}

.auth-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #5a9f5a 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(71, 135, 71, 0.3);
}

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

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-submit-spinner {
  animation: spin 1s linear infinite;
}

/* Auth Form Switching */
.auth-switch {
  text-align: center;
  margin-top: 20px;
}

.auth-switch p {
  margin: 10px 0;
  font-size: 14px;
}

.auth-switch a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Success/Error States */
.auth-success,
.auth-error {
  padding: 40px;
  text-align: center;
}

.success-icon,
.error-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.auth-success h2 {
  color: #2d5a2d;
  margin-bottom: 10px;
}

.auth-success p {
  color: #666;
  margin-bottom: 30px;
}

.auth-error p {
  color: #d32f2f;
  margin-bottom: 30px;
}

/* Animations */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .auth-modal-content {
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .auth-form {
    padding: 30px 25px;
  }
  
  .auth-section {
    margin-top: 20px;
  }
  
  .auth-guest {
    flex-direction: row;
    gap: 10px;
  }
  
  .auth-btn {
    width: 100px;
    height: 35px;
    font-size: 12px;
  }

  .manage-sub-btn .auth-text {
    font-size: 10px;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 480px) {
  .auth-btn {
    width: 90px;
    font-size: 11px;
  }
  
  .auth-text {
    font-size: 11px;
  }

  .manage-sub-btn .auth-text {
    font-size: 9px;
    letter-spacing: 0.2px;
  }
}

/* 9. Preview Blur Protection Styles */
.preview-blur-overlay {
    position: relative;
}

.preview-blur-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
}

.preview-blur-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 11;
    max-width: 300px;
    font-family: 'Oswald', Arial, sans-serif;
}

.preview-blur-message h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #ff6b6b;
}

.preview-blur-message p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.preview-blur-message .upgrade-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.preview-blur-message .upgrade-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
}

/* 10. Screenshot Deterrent Styles */
.screenshot-protection {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    
    /* Disable drag and drop */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.screenshot-protection * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide when printing */
@media print {
    .screenshot-protection {
        display: none !important;
    }
}

/* 11. Beta Launch Popup Styles */
.beta-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: betaFadeIn 0.5s ease-out;
}

.beta-popup-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid #4CAF50;
  animation: betaSlideIn 0.6s ease-out;
}

.beta-popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.beta-popup-close:hover {
  color: #333;
}

.beta-popup-header {
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.beta-confetti {
  font-size: 30px;
  animation: betaBounce 2s ease-in-out infinite;
}

.beta-popup-header h2 {
  margin: 0;
  color: #2d5a2d;
  font-size: 28px;
  font-weight: 700;
}

.beta-popup-body {
  text-align: center;
}

.beta-welcome {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.beta-description {
  font-size: 16px;
  color: #666;
  margin: 0 0 25px 0;
  line-height: 1.5;
}

.beta-pricing {
  margin: 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.beta-original-price {
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
}

.beta-current-price {
  font-size: 36px;
  color: #4CAF50;
  font-weight: 700;
}

.beta-discount-badge {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.beta-urgency {
  font-size: 14px;
  color: #ff6b6b;
  font-weight: 600;
  margin: 15px 0;
}

.beta-popup-cta {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
  margin: 20px 0;
}

.beta-popup-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.beta-note {
  font-size: 12px;
  color: #888;
  margin: 15px 0 0 0;
}

/* Enhanced Beta Discount Button Styles */
.beta-discount-btn {
  width: 140px;
  height: 45px;
  margin-top: 20px;
  border: 2px solid #ff6b6b;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: betaPulse 2s ease-in-out infinite;
}

.beta-discount-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.beta-discount-btn:hover {
  background: linear-gradient(135deg, #ff5252 0%, #ff7979 100%);
  border-color: #ff5252;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  animation: none; /* Stop pulsing on hover */
}

.beta-discount-btn:hover::before {
  left: 100%;
}

.beta-discount-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35);
}

.beta-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.beta-text {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.beta-discount-btn:hover .beta-icon {
  transform: scale(1.15) rotate(-5deg);
}

.beta-discount-btn:hover .beta-text {
  letter-spacing: 0.8px;
}

/* Beta Button Visibility States */
.beta-discount-btn.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.beta-discount-btn.visible {
  opacity: 1;
  transform: translateY(0);
  animation: betaButtonFadeIn 0.5s ease-out forwards, betaPulse 2s ease-in-out 1s infinite;
}

/* Enhanced Animations */
@keyframes betaButtonFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes betaPulse {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    transform: scale(1.02);
  }
}

/* Responsive Design for Beta Button */
@media (max-width: 768px) {
  .beta-discount-btn {
    width: 140px;
    height: 45px;
    font-size: 12px;
  }
  
  .beta-icon {
    font-size: 12px;
  }
  
  .beta-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .beta-discount-btn {
    width: 130px;
    height: 40px;
    font-size: 10px;
  }
  
  .beta-icon {
    font-size: 12px;
  }
  
  .beta-text {
    font-size: 13px;
    letter-spacing: 0.3px;
  }
}