/* Import Google Fonts for typography */
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;600&family=Roboto:wght@400;700&family=Montserrat:wght@600&display=swap');

/* Global Reset: Normalize margins, padding, and box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styles: Base layout, background, and typography */
body {
   font-family: 'Roboto', sans-serif;
   background: linear-gradient(rgba(120, 134, 107, 0.85), rgba(120, 134, 107, 0.85)), url('/scoop-threads/tss_core/TheScoopStitchery/TSS_Dev/assets/background/TSS_Hero.png');
   background-size: cover;
   background-position: center;
   background-attachment: fixed;
   background-repeat: no-repeat;
   color: #fff;
   line-height: 1.6;
}

/* Service Mark Styling */
.service-mark {
   vertical-align: super;
   margin-left: 2px;
   font-size: 0.8em;
   opacity: 0.9;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
   background: rgba(255, 255, 255, 0.1);
   padding: 20px 0;
   position: sticky;
   top: 0;
   z-index: 10;
   transition: background 0.3s;
   border-radius: 15px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
   backdrop-filter: blur(10px);
   border: 1px solid rgba(255, 255, 255, 0.2);
   margin: 10px 20px 0 20px;
}

header.scrolled {
   background: rgba(255, 255, 255, 0.05);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 20px;
}

h1 {
  flex-grow: 1;
  font-size: 1.5em;
  font-family: 'Domine', serif;
}

.back-link {
   position: absolute;
   bottom: -15px;
   left: 50%;
   transform: translateX(-50%);
   background: rgba(255, 255, 255, 0.1);
   color: #fff;
   text-decoration: none;
   font-size: 0.9em;
   padding: 5px 15px;
   border-radius: 10px;
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-top: none;
   backdrop-filter: blur(10px);
   transition: all 0.3s;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.arrow {
   transform: scaleX(-1);
   display: inline-block;
}

.back-link:hover {
   background: rgba(255, 255, 255, 0.2);
   color: #ace;
   transform: translateX(-50%) translateY(-2px);
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-form input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  flex: 1;
  min-width: 200px;
}

.subscribe-form button {
   padding: 10px 20px;
   background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
   background-size: 400% 400%;
   color: #fff;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   font-weight: bold;
   font-size: 0.9em;
   transition: all 0.3s ease;
   box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
   overflow: hidden;
   position: relative;
}

.subscribe-form button::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
   transition: left 0.5s;
}

.subscribe-form button:hover::before {
   left: 100%;
}

.subscribe-form button:hover {
   transform: scale(1.05);
   box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
   animation: shine 1.5s ease-in-out infinite;
}

.sales-ticker {
   position: fixed;
   top: 120px; /* Below header */
   right: 20px;
   z-index: 15; /* Above header but below modals */
   transition: opacity 0.3s;
}

.ticker-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px 15px 15px 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 120px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ticker-card h3 {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  font-family: 'Domine', serif;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.sales-number {
  font-size: 2em;
  font-weight: bold;
  color: #ace;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.shipping-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px 15px 15px 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 120px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
}

.shipping-card h3 {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  font-family: 'Domine', serif;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.shipping-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInOut 4s infinite;
}

.shipping-country {
  font-weight: bold;
}

.shipping-days {
  color: #ace;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

.sales-chart {
   position: fixed;
   top: 120px;
   left: 20px;
   z-index: 15;
   transition: opacity 0.3s;
}

.chart-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 120px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-container h3 {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  font-family: 'Domine', serif;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.bar-chart {
  position: relative;
  width: 40px;
  height: 150px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-radius: 5px;
  transition: height 0.5s ease;
}

.target-bar {
  background: rgba(255, 255, 255, 0.3);
  height: 100%;
}

.actual-bar {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  height: 0%;
}

.percentage {
  font-size: 1.5em;
  font-weight: bold;
  color: #ace;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.bio {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: 20px;
  margin: 0;
}

.bio h2 {
  margin-bottom: 40px;
  font-size: 2.5em;
  font-weight: 600;
  font-family: 'Domine', serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
}

.bio h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #fff 50%, transparent 100%);
  animation: sew 3s infinite ease-in-out;
}

/* Glass Carousel Styles */
:root {
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --blur: blur(20px);
  --shift-x: 30vw;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  perspective: 2000px;
  overflow: hidden;
  color: white;
  width: 100%;
  margin: 40px 0;
}

.carousel-stage {
  position: relative;
  width: 100vw;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  width: clamp(250px, 25vw, 350px);
  height: clamp(350px, 50vh, 450px);
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.carousel-card.active {
  transform: translate3d(0, 0, 250px) rotateY(0deg);
  z-index: 10;
  opacity: 1;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.carousel-card.left {
  transform: translate3d(calc(var(--shift-x) * -1), 0, -150px) rotateY(35deg) scale(0.85);
  z-index: 5;
  opacity: 0.5;
}

.carousel-card.right {
  transform: translate3d(var(--shift-x), 0, -150px) rotateY(-35deg) scale(0.85);
  z-index: 5;
  opacity: 0.5;
}

.carousel-card.far-left {
  transform: translate3d(calc(var(--shift-x) * -1.8), 0, -500px) rotateY(45deg) scale(0.6);
  z-index: 1;
  opacity: 0.2;
}

.carousel-card.far-right {
  transform: translate3d(calc(var(--shift-x) * 1.8), 0, -500px) rotateY(-45deg) scale(0.6);
  z-index: 1;
  opacity: 0.2;
}

.carousel-card.hidden {
  transform: translate3d(0, 0, -1000px) scale(0.1);
  opacity: 0;
}

.card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.card-content h3 {
  margin: 0 0 20px 0;
  font-size: 1.5em;
  font-family: 'Domine', serif;
}

.card-content p {
  font-size: 1.1em;
  line-height: 1.6;
  margin: 0;
}

.cta-pill {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    border-radius: 20px;
    padding: 5px 8px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: shine 1.5s ease-in-out infinite;
    margin-top: 10px;
}

.cta-email {
    color: #fff;
    font-weight: bold;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.carousel-controls {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.nav-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 5px;
}

.pagination-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 5px;
}

.pagination-indicators .dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-indicators .dot.active {
  background: #fff;
  width: 18px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.pagination-indicators .dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}


#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
  transform: rotate(-90deg);
}

#back-to-top.show {
  opacity: 1;
}

.breadcrumbs {
  padding: 10px 0;
  background: rgba(0,0,0,0.1);
  text-align: center;
}

.breadcrumbs a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.breadcrumbs a:hover {
  opacity: 1;
}

.gallery {
  padding: 40px 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(120,134,107,0.1));
  margin: 0;
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.1) 70%, transparent 70%);
}

.gallery h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
  font-family: 'Domine', serif;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-card h3 {
  padding: 20px 20px 10px;
  font-size: 1.0em;
  text-align: center;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.price {
  padding: 10px 20px 20px;
  font-weight: bold;
  font-size: 1.8em;
  color: #ace;
  text-align: center;
  margin: 0;
}

.price-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.buy-now {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  background-size: 400% 400%;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9em;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  z-index: 2;
  overflow: hidden;
}

.product-card:hover .buy-now {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
  animation: shine 1.5s ease-in-out infinite;
}

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

.buy-now:hover::before {
  left: 100%;
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.stripe-overlay {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  pointer-events: none;
}

.product-card:hover .stripe-overlay {
  opacity: 1;
}

.preview-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
  cursor: pointer;
}

.product-card:hover .preview-label {
  opacity: 1;
}

.stock {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 5px;
  z-index: 1;
  white-space: nowrap;
}

.subscribe {
  padding: 60px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  margin: 0;
}

.subscribe h2 {
  margin-bottom: 30px;
  font-size: 1.8em;
  font-family: 'Domine', serif;
}

.subscribe .subscribe-form {
  max-width: 500px;
  margin: 0 auto;
}

.subscribe-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  text-decoration: none;
  color: inherit;
}

.link-preview {
  width: 300px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.link-preview:hover {
  transform: scale(1.05);
}

.link-preview h3 {
  margin-bottom: 10px;
  font-family: 'Domine', serif;
}

.link-preview p {
  opacity: 0.8;
}

.sponsors {
  padding: 40px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  margin: 0;
}

.sponsors h2 {
  margin-bottom: 30px;
  font-family: 'Domine', serif;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sponsor-logos img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.payment-methods {
  padding: 20px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  margin: 0;
}

.payment-methods h3 {
  margin-bottom: 15px;
  font-family: 'Domine', serif;
  font-size: 1.5em;
}

.payment-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.payment-container img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.payment-container img:hover {
  transform: scale(1.05);
}

.wise-qr-container {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s;
}

.wise-qr-container:hover {
  transform: scale(1.05);
}

.qr-code {
  width: 180px;
  height: 180px;
  background: white;
  padding: 10px;
  border-radius: 15px;
  border: 3px solid #78866b;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.wise-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

footer {
  padding: 30px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px 15px 0 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.creator-link {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  background-size: 400% 400%;
  border-radius: 20px;
  padding: 5px 10px;
  animation: gradientShift 3s ease infinite;
}

.creator-link a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.creator-link a:hover {
  color: #ace;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.advocate-link {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  background-size: 400% 400%;
  border-radius: 20px;
  padding: 5px 10px;
  animation: gradientShift 3s ease infinite;
}

.advocate-link button {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

.advocate-link button:hover {
  color: #ace;
}

.advocate-modal-content h2 {
  margin-bottom: 20px;
  font-family: 'Domine', serif;
  font-size: 1.8em;
}

.advocate-options {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.advocate-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
  flex: 1;
  max-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.advocate-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.advocate-card h3 {
  margin-bottom: 10px;
  font-family: 'Domine', serif;
  font-size: 1.2em;
}

.advocate-card p {
  font-size: 0.9em;
  opacity: 0.8;
}

.affiliate-modal-content h2, .referrer-modal-content h2 {
  margin-bottom: 20px;
  font-family: 'Domine', serif;
  font-size: 1.8em;
}

.advocate-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.advocate-table th, .advocate-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.advocate-table th {
  background: rgba(255, 255, 255, 0.2);
  font-weight: bold;
  font-family: 'Domine', serif;
  font-size: 1.1em;
}

.advocate-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

.advocate-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.1);
}

.assistant-note {
  text-align: center;
  margin: 10px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.9em;
  color: rgb(203, 161, 53);
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 20px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 80%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.modal-back-btn {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.modal-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back::before {
  content: "➳";
  font-size: 20px;
  color: #fff;
  transform: scaleX(-1);
  display: inline-block;
}

.modal-close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close {
  font-size: 20px;
  color: #fff;
  line-height: 1;
}

.subscribe-modal-content {
  text-align: center;
}

.modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid rgba(120, 134, 107, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#modal-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.rain-item {
  position: absolute;
  width: 50px;
  height: auto;
  animation: rain-fall linear infinite;
}

.rain-item:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; }
.rain-item:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; }
.rain-item:nth-child(3) { left: 30%; animation-duration: 8s; animation-delay: 4s; }
.rain-item:nth-child(4) { left: 40%; animation-duration: 11s; animation-delay: 1s; }
.rain-item:nth-child(5) { left: 50%; animation-duration: 9s; animation-delay: 3s; }
.rain-item:nth-child(6) { left: 60%; animation-duration: 13s; animation-delay: 5s; }
.rain-item:nth-child(7) { left: 70%; animation-duration: 7s; animation-delay: 0.5s; }
.rain-item:nth-child(8) { left: 80%; animation-duration: 10s; animation-delay: 2.5s; }
.rain-item:nth-child(9) { left: 90%; animation-duration: 12s; animation-delay: 4.5s; }

@keyframes rain-fall {
  0% {
    top: -100px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100vh;
    opacity: 0;
  }
}


/* Graph Section Styles */
.graph-section {
  padding: 20px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  margin: 0;
}

.graph-container {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.graph-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.graph-img.img1 {
  animation: fadeImg1 8s infinite;
}

.graph-img.img2 {
  animation: fadeImg2 8s infinite;
}

@keyframes fadeImg1 {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes fadeImg2 {
  0%, 50% { opacity: 0; }
  51%, 100% { opacity: 1; }
}

.graph-text {
  margin-top: 220px;
  font-size: 1.1em;
  font-family: 'Domine', serif;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
