/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.6;
}

/* Payment Verification Styles */
.payment-verification {
  width: 100%;
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  animation: fadeInUp 0.8s ease-out;
}

.verification-card {
  background: rgba(42, 42, 64, 0.95);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  animation: slideInUp 0.6s ease-out;
}

.verification-header h2 {
  color: #c084fc;
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.verification-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.verification-form {
  margin-bottom: 30px;
}

.verification-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.verification-form label {
  display: block;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 8px;
  text-align: left;
}

.verification-form input {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background-color: rgba(31, 31, 46, 0.8);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.verification-form input:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
  background-color: rgba(31, 31, 46, 0.9);
}

.verification-form small {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 5px;
  text-align: left;
}

.verify-button {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.verify-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.verify-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.verification-error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  color: #e74c3c;
}

.verification-help {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.verification-help a {
  color: #c084fc;
  text-decoration: none;
  font-weight: 600;
}

.verification-help a:hover {
  text-decoration: underline;
}

/* Payment Page Specific Styles */
body.payment-page {
  background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
  justify-content: center;
  padding: 0;
}

.payment-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  animation: fadeInUp 0.8s ease-out;
}

.payment-card {
  background: rgba(42, 42, 64, 0.95);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  animation: slideInUp 0.6s ease-out;
}

.logo-section {
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out 0.2s both;
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.logo-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 8px rgba(192, 132, 252, 0.3));
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.tagline {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 300;
}

/* Access Status Badge Styles */
.access-status-badge {
  background: rgba(42, 42, 64, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.access-status-badge.active {
  border-color: rgba(0, 184, 148, 0.5);
  background: rgba(0, 184, 148, 0.1);
}

.access-status-badge.expired {
  border-color: rgba(231, 76, 60, 0.5);
  background: rgba(231, 76, 60, 0.1);
}

.access-status-badge.no-access {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.1);
}

.status-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.status-icon {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.access-status-badge.active .status-text {
  color: #00b894;
}

.access-status-badge.expired .status-text {
  color: #e74c3c;
}

.access-status-badge.no-access .status-text {
  color: #ffc107;
}

.status-details {
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

.access-info {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.go-to-builder-btn {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(0, 184, 148, 0.3);
}

.go-to-builder-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
  background: linear-gradient(135deg, #00cec9, #00b894);
}

.re-access-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
  margin-top: 8px;
}

.re-access-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-icon {
  font-size: 1.1rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.product-section {
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out 0.4s both;
}

.product-section h2 {
  color: #c084fc;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.description {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(192, 132, 252, 0.1);
  border-color: rgba(192, 132, 252, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.2rem;
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing-section {
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out 0.6s both;
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
}

.currency {
  font-size: 1.5rem;
  color: #00b894;
  font-weight: 600;
}

.amount {
  font-size: 3.5rem;
  color: #00b894;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cents {
  font-size: 1.5rem;
  color: #00b894;
  font-weight: 600;
}

.price-note {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
}

.purchase-button {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
  animation: fadeIn 1s ease-out 0.8s both;
}

.purchase-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 184, 148, 0.4);
  background: linear-gradient(135deg, #00cec9, #00b894);
}

.purchase-button:active {
  transform: translateY(-1px);
}

.button-icon {
  font-size: 1.2rem;
}

.button-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.purchase-button:hover .button-arrow {
  transform: translateX(5px);
}

.security-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeIn 1s ease-out 1s both;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.security-icon {
  font-size: 1rem;
}

.footer-section {
  margin-top: 30px;
  text-align: center;
  animation: fadeIn 1s ease-out 1.2s both;
}

.contact-info {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.contact-info a {
  color: #c084fc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #8b5cf6;
}

.copyright {
  margin-top: 10px;
  font-size: 0.8rem;
}

/* NovaSpark Avatar Styles */
.header-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.avatar-container {
  flex-shrink: 0;
}

.avatar-image {
  width: 120px;
  height: 120px;
  animation: avatarFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}



.header-content {
  flex: 1;
  text-align: center;
}

/* Avatar Animations */
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes avatarBlink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0; }
}

/* Page Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

main {
  max-width: 700px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

h1 {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  color: #c084fc;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
}

/* Payment Section Styles */
.payment-section,
.verification-section,
.builder-section {
  width: 100%;
}

.payment-card,
.verification-card {
  background: rgba(42, 42, 64, 0.95);
  padding: clamp(20px, 4vw, 30px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.payment-card h2,
.verification-card h2 {
  color: #c084fc;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.pricing {
  margin: 25px 0;
  text-align: center;
}

.price {
  font-size: 3rem;
  font-weight: bold;
  color: #00b894;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.features li {
  padding: 8px 0;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

.purchase-btn {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.payment-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 15px;
}

form {
  background: rgba(42, 42, 64, 0.95);
  padding: clamp(15px, 4vw, 25px);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

label {
  font-weight: 600;
  color: #e0e0e0;
  text-align: left;
  margin-bottom: 5px;
}

input,
select,
textarea,
button {
  padding: 12px 15px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input,
select,
textarea {
  background-color: rgba(31, 31, 46, 0.8);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  resize: vertical;
}

textarea {
  min-height: 80px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
  background-color: rgba(31, 31, 46, 0.9);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

button {
  background: linear-gradient(135deg, #7f00ff, #00bfff);
  color: white;
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(127, 0, 255, 0.3);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.help-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 5px;
  text-align: center;
}

#loading {
  background: rgba(42, 42, 64, 0.9);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-weight: 600;
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(192, 132, 252, 0.3);
  border-top: 2px solid #c084fc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.result-box {
  background-color: rgba(30, 30, 47, 0.95);
  color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: pre-wrap;
  text-align: left;
  margin-top: 20px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-height: 600px;
  overflow-y: auto;
  line-height: 1.6;
  font-size: 14px;
  position: relative;
}

/* Resume-specific styling */
.result-box.resume {
  background: linear-gradient(135deg, rgba(30, 30, 47, 0.98), rgba(42, 42, 64, 0.95));
  border: 2px solid rgba(192, 132, 252, 0.4);
}

/* Professional typography for resume content */
.result-box h1, .result-box h2, .result-box h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  color: #c084fc;
  margin: 20px 0 10px 0;
}

/* Section headers styling */
.result-box strong {
  color: #c084fc;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(192, 132, 252, 0.5);
}

/* Bullet points styling */
.result-box ul, .result-box ol {
  margin: 10px 0;
  padding-left: 20px;
}

.result-box li {
  margin: 8px 0;
  line-height: 1.5;
}

/* Modern bullet points */
.result-box li::marker {
  color: #c084fc;
  font-weight: bold;
}

/* Contact information styling */
.result-box .contact-info {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(192, 132, 252, 0.3);
}

.result-box .contact-info h1 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  text-align: center;
}

/* Enhanced contact info styling for condensed format */
.result-box {
  text-align: left;
}

.result-box p:first-of-type {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 20px 0 5px 0;
}

.result-box p:nth-of-type(2) {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 5px 0;
}

.result-box p:nth-of-type(3) {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
}

/* NovaSpark branding */
.result-box .novaspark-branding {
  text-align: center;
  font-size: 8px; /* Made even smaller */
  color: rgba(192, 132, 252, 0.5); /* Made more subtle */
  margin-bottom: 20px;
  font-style: italic;
}

/* Scrollbar styling */
.result-box::-webkit-scrollbar {
  width: 8px;
}

.result-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.result-box::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.5);
  border-radius: 4px;
}

.result-box::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 132, 252, 0.7);
}

.hidden {
  display: none !important;
}

#resultContainer {
  margin-top: 20px;
  width: 100%;
}

#resultContainer h2 {
  color: #c084fc;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

#copyButton,
#downloadButton {
  margin: 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border: none;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 120px;
}

#copyButton:hover,
#downloadButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

.button-icon {
  font-size: 1.1rem;
}

.button-text {
  font-weight: 600;
}

.button-loading {
  font-weight: 600;
}



/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  body.payment-page {
    padding: 10px;
  }

  .payment-container {
    padding: 10px;
  }

  .payment-card {
    padding: 25px 20px;
    border-radius: 15px;
  }

  .header-section {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .avatar-image {
    width: 100px;
    height: 100px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .amount {
    font-size: 3rem;
  }

    .security-badges {
    flex-direction: column;
    gap: 10px;
  }

  /* Access Status Badge Mobile Styles */
  .access-status-badge {
    padding: 15px;
    margin: 15px 0;
  }

  .status-content {
    gap: 8px;
    margin-bottom: 12px;
  }

  .status-icon {
    font-size: 1.3rem;
  }

  .status-text {
    font-size: 1.1rem;
  }

  .access-info {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .go-to-builder-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .re-access-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  main {
    padding: 0 10px;
  }
  
  .payment-card,
  .verification-card,
  form {
    padding: 20px 15px;
    gap: 12px;
  }
  
  .price {
    font-size: 2.5rem;
  }
  
  .features li {
    font-size: 0.95rem;
  }
  
  input,
  select,
  textarea,
  button {
    padding: 14px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .result-box {
    padding: 15px;
    font-size: 14px;
    max-height: 400px;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  #copyButton,
  #downloadButton {
    width: 100%;
    max-width: 200px;
    margin: 5px 0;
    padding: 15px;
  }
  
  .file-upload-container {
    padding: 15px;
  }
  
  .file-upload-info {
    gap: 6px;
  }
  
  .file-icon {
    font-size: 1.5rem;
  }
  
  .file-text {
    font-size: 0.9rem;
  }
  
  .file-formats {
    font-size: 0.7rem;
  }
  
  h1 {
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 2.8vw, 1.4rem);
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  body.payment-page {
    padding: 5px;
  }

  .payment-container {
    padding: 5px;
  }

  .payment-card {
    padding: 20px 15px;
  }

  .header-section {
    gap: 15px;
  }

  .avatar-image {
    width: 80px;
    height: 80px;
    margin-top: 20px;
  }
  
  h1 {
    font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .logo-text {
    font-size: 1.8rem;
  }

    .amount {
    font-size: 2.5rem;
  }

  /* Access Status Badge Small Mobile Styles */
  .access-status-badge {
    padding: 12px;
    margin: 12px 0;
  }

  .status-content {
    gap: 6px;
    margin-bottom: 10px;
  }

  .status-icon {
    font-size: 1.2rem;
  }

  .status-text {
    font-size: 1rem;
  }

  .access-info {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .go-to-builder-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
  .re-access-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .payment-card,
  .verification-card,
  form {
    padding: 15px 10px;
  }
  
  .price {
    font-size: 2rem;
  }
  
  .result-box {
    padding: 12px;
    font-size: 13px;
  }
  
  .action-buttons {
    gap: 8px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
}

/* File Upload Styles */
.file-upload-container {
  position: relative;
  border: 2px dashed rgba(192, 132, 252, 0.3);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: rgba(31, 31, 46, 0.3);
  cursor: pointer;
}

.file-upload-container:hover,
.file-upload-container.drag-over {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
  transform: translateY(-2px);
}

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

.file-upload-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.file-icon {
  font-size: 2rem;
  color: #c084fc;
}

.file-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.file-formats {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 10px;
}

.file-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.remove-file {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.remove-file:hover {
  background: #c0392b;
  transform: scale(1.1);
}



/* Welcome Message Styles */
.welcome-message {
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out;
}

.welcome-card {
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.welcome-card h3 {
  color: #c084fc;
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.welcome-card p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.welcome-card small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Logout Button Styles */
.logout-button {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  body {
    background: #000;
  }
  
  .payment-card,
  .verification-card,
  form {
    background: #333;
    border: 2px solid #fff;
  }
  
  input,
  select,
  textarea {
    background: #222;
    border: 2px solid #fff;
  }
  
  .file-upload-container {
    border: 2px solid #fff;
    background: #333;
  }
}

/* Enhanced Builder Layout */
.builder-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.form-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header h3 {
  color: #c084fc;
  margin: 0;
  font-size: 1.2rem;
}

.preview-controls {
  display: flex;
  gap: 0.5rem;
}

.preview-mode-btn, .download-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-mode-btn:hover, .download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.download-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.preview-container {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.live-preview {
  background: white;
  border-radius: 8px;
  min-height: 500px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Times New Roman', serif;
  font-size: 12px;
  line-height: 1.4;
  color: #333;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  text-align: center;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Template Selection */
.template-section {
  margin: 2rem auto;
  max-width: 1400px;
  padding: 0 1rem;
}

.template-section h3 {
  color: #c084fc;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.template-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 132, 252, 0.2);
}

.template-card.active {
  border-color: #c084fc;
  background: rgba(192, 132, 252, 0.1);
}

.template-preview {
  width: 100%;
  height: 80px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-preview {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.classic-preview {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}

.creative-preview {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.minimal-preview {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.template-card span {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Enhanced Form Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #c084fc;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.1);
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* Skill Suggestions */
.skill-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.skill-tag {
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.skill-tag:hover {
  background: rgba(192, 132, 252, 0.3);
  transform: translateY(-1px);
}

/* AI Assistant Widget */
.ai-assistant-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 350px;
  height: 500px;
  background: rgba(26, 26, 46, 0.95);
  border-radius: 12px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: all 0.3s ease;
}

.ai-assistant-widget.minimized {
  height: 60px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px 12px 0 0;
  color: white;
  font-weight: 600;
}

.minimize-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.minimize-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.ai-message {
  background: rgba(192, 132, 252, 0.1);
  color: white;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-message {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input {
  display: flex;
  padding: 1rem;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.9rem;
}

.chat-input input:focus {
  outline: none;
  border-color: #c084fc;
}

.chat-input button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.chat-input button:hover {
  transform: scale(1.1);
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .builder-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ai-assistant-widget {
    width: 300px;
    height: 400px;
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ai-assistant-widget {
    width: calc(100vw - 2rem);
    height: 350px;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
  
  .preview-header {
    padding: 1rem;
  }
  
  .preview-container {
    padding: 1rem;
  }
  
  .form-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
  
  .ai-assistant-widget {
    height: 300px;
  }
  
  .preview-controls {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .preview-mode-btn, .download-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
