* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f4f4f4;
  padding: 20px;
  text-align: center;
  overflow-x: hidden;
}

/* Logo styling */
.site-logo {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 10px;
}

.site-logo img {
  height: auto;
  max-width: 180px;
  width: 100%;
  max-height: 60px;
  display: inline-block;
}

.site-logo a {
  display: inline-block;
}

/* Main container */
.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: clamp(24px, 5vw, 32px);
  color: #333;
  margin-bottom: 20px;
  word-wrap: break-word;
}

h2 {
  font-size: clamp(18px, 4vw, 24px);
  color: #333;
  margin-top: 20px;
  margin-bottom: 15px;
}

/* Input styling */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 2px solid #ddd;
  font-family: inherit;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #007bff;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: #999;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Button styling */
button {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 14px 24px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  max-width: 300px;
  transition: background 0.3s, transform 0.1s;
}

button:hover {
  background: #0056b3;
}

button:active {
  transform: scale(0.98);
}

/* Tags container */
#tagsContainer {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  min-height: 20px;
}

.tag {
  background: #e0e0e0;
  padding: 10px 14px;
  border-radius: 6px;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  transition: all 0.3s;
  word-break: break-word;
  max-width: 100%;
}

.tag:hover {
  background: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Copy all button */
#copyAllBtn {
  margin-top: 20px;
  padding: 14px 24px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  max-width: 300px;
  transition: background 0.3s;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#copyAllBtn:hover {
  background: #0056b3;
}

/* Content section for pages */
.content-section {
  text-align: left;
  line-height: 1.8;
}

.content-section p {
  margin-bottom: 15px;
}

.content-section ul {
  margin: 20px 0;
  padding-left: 25px;
}

.content-section ul li {
  margin-bottom: 10px;
}

.content-section a {
  color: #007bff;
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

/* Contact form styling */
.contact-form {
  margin-top: 30px;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.contact-form button {
  width: 100%;
  max-width: 200px;
  margin-top: 10px;
}

/* Alert messages */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  text-align: left;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Homepage summary section */
.homepage-summary {
  max-width: 700px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
}

.homepage-summary h2 {
  font-size: clamp(18px, 4vw, 24px);
  color: #333;
  margin-bottom: 20px;
  word-wrap: break-word;
}

.homepage-summary p {
  margin-bottom: 15px;
}

.homepage-summary ul {
  padding-left: 20px;
  margin: 20px 0;
}

.homepage-summary ul li {
  margin-bottom: 12px;
  text-align: left;
}

.homepage-summary strong {
  color: #0056b3;
}

/* Footer styling */
footer {
  margin-top: 40px;
  padding: 20px;
  background: #f0f0f0;
  font-size: 14px;
  border-radius: 8px;
}

footer a {
  color: #007bff;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin: 10px 0;
  word-wrap: break-word;
}

/* Main content wrapper */
.main-content {
  flex: 0 0 auto;
  margin: 0;
}

/* Viral Tags Section Styles */
.blurred-tags-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 25px;
  margin-top: 15px;
  position: relative;
  min-height: 120px;
  filter: blur(5px);
  pointer-events: none;
  border: 2px solid #e0e0e0;
}

.viral-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
}

.unlock-viral-btn {
  background: linear-gradient(45deg, #FF6B6B, #FF8E53, #FFD166, #06D6A0);
  background-size: 300% 300%;
  animation: gradient-shift 3s ease infinite;
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 250px;
  text-decoration: none;
}

.unlock-viral-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(255, 107, 107, 0.6);
  color: white;
}

.unlock-viral-btn:active {
  transform: translateY(0);
}

.viral-upsell-text {
  margin-top: 15px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Premium Page Styles */
.premium-intro {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

.pricing-plans {
  display: flex;
  gap: 30px;
  margin: 40px auto;
  max-width: 900px;
  justify-content: center;
  align-items: stretch;
}

.plan {
  flex: 1;
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: center;
  border: 2px solid #e0e0e0;
  min-width: 300px;
  max-width: 400px;
  position: relative;
}

.plan.recommended {
  border-color: #007bff;
  transform: scale(1.05);
}

.recommended-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.plan h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.price {
  font-size: 42px;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 5px;
}

.price span {
  font-size: 16px;
  color: #666;
  font-weight: normal;
}

.savings {
  color: #28a745;
  font-weight: bold;
  margin-bottom: 25px;
  font-size: 14px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  text-align: left;
}

.plan ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 25px;
}

.plan ul li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.subscribe-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.subscribe-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.yearly-btn {
  background: #28a745;
}

.yearly-btn:hover {
  background: #218838;
  box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-plans {
    flex-direction: column;
    align-items: center;
  }
  
  .plan {
    min-width: 100%;
    max-width: 400px;
  }
  
  .plan.recommended {
    transform: none;
  }
  
  /* Viral tags responsive */
  .unlock-viral-btn {
    padding: 14px 24px;
    font-size: 16px;
    min-width: 200px;
  }
  
  .blurred-tags-container {
    padding: 20px;
    min-height: 100px;
  }
}

.upgrade-banner {
    margin-bottom: 4px;
}

/* Non-Subscriber Login Page Styles */
.non-subscriber-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.reason-number {
  background: #007bff;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.reason-content h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.reason-content p {
  margin: 0;
  color: #666;
}

.plan-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.plan-option {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  min-width: 250px;
  transition: transform 0.3s ease;
}

.plan-option:hover {
  transform: translateY(-5px);
}

.plan-option.recommended {
  border: 2px solid #007bff;
  position: relative;
}

.recommended-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  color: white;
  padding: 4px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.plan-price {
  font-size: 32px;
  font-weight: bold;
  color: #007bff;
  margin: 10px 0;
}

.plan-period {
  color: #666;
  margin-bottom: 15px;
}

.savings-badge {
  color: #28a745;
  font-weight: bold;
  margin: 10px 0;
}

/* Tablet breakpoint - 768px and up */
@media (min-width: 768px) {
  body {
    padding: 40px 20px;
  }

  .container {
    padding: 30px;
  }

  input[type="text"],
  input[type="email"] {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .homepage-summary {
    padding: 30px;
  }

  .site-logo {
    margin-bottom: 40px;
    margin-top: 20px;
  }
}

/* Large desktop breakpoint - 1024px and up */
@media (min-width: 1024px) {
  body {
    padding: 50px 20px;
  }

  .container {
    padding: 40px;
  }

  .homepage-summary {
    padding: 40px;
  }
}