[hidden] {
  display: none !important;
}

.smm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99998;
}

.smm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(600px, 94%);
  max-height: calc(100% - 3.5rem);
  background: #fff;
  padding: 3rem;
  font-size: 1rem;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  z-index: 99999;
  box-sizing: border-box;
  overflow-y: auto; /* Added scroll for long content */
}

.smm-modal * {
  box-sizing: border-box;
}

.smm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  opacity: 0.5;
  cursor: pointer;
  z-index: 100000; /* Added z-index to ensure close button is clickable */
  padding: 0.5rem; /* Added padding for better click area */
}

.smm-close:hover {
  opacity: 1;
}

.smm-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  opacity: 0.5;
  cursor: pointer;
  z-index: 100000; /* Added z-index to ensure back button is clickable */
  padding: 0.5rem; /* Added padding for better click area */
  margin-bottom: 2rem; /* Increased margin-bottom for back button */
}

.smm-back:hover {
  opacity: 1;
}

.smm-field {
  display: block;
  margin: 1rem 0;
}

.smm-input-icon {
  position: relative;
}

/* Removed icon positioning to fix text overlap */
.smm-input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.1rem;
  pointer-events: none;
}

.smm-input-icon input {
  width: 100%;
  font-size: 1rem;
  padding: 1.5rem 1rem 1.5rem 2.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: .5rem 3rem !important;
}

.smm-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  font-size: 1rem;
  font-weight: bold;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.smm-btn,
.smm-btn:hover,
.smm-btn:focus,
.smm-btn:active,
button.smm-btn,
button.smm-btn:hover,
button.smm-btn:focus,
button.smm-btn:active,
.smm-modal .smm-btn,
.smm-modal .smm-btn:hover,
.smm-modal .smm-btn:focus,
.smm-modal .smm-btn:active,
.smm-modal button.smm-btn,
.smm-modal button.smm-btn:hover,
.smm-modal button.smm-btn:focus,
.smm-modal button.smm-btn:active {
  width: 100%;
  padding: 0.875rem 2rem !important;
  border-radius: 0.5rem !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3) !important;
}

.smm-btn:hover,
button.smm-btn:hover,
.smm-modal .smm-btn:hover,
.smm-modal button.smm-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4) !important;
  color: #ffffff !important;
}

.smm-btn .spinner {
  margin-left: 8px;
}

.smm-trust {
  margin-top: 1.5rem;
  text-align: center;
  color: #666;
  font-size: 1rem;
}

.smm-profile-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
}

.smm-profile-card img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.smm-profile-card .info {
  flex: 1;
  min-width: 0;
}

.smm-profile-card .stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.smm-profile-card .bio {
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

.smm-profile-card h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  word-break: break-word;
}

/* Added save checkbox styling */
.smm-save {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
}

.smm-save i {
  color: #6c5ce7;
  font-size: 1.25rem;
}

.smm-save:hover {
  color: #333;
}

.smm-payments {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.smm-payment {
  display: block;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.smm-payment:hover {
  border-color: #a84bff;
  background: #faf7ff;
}

.smm-payment input[type="radio"] {
  margin-right: 0.5rem;
}

.smm-payment-fields {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

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

#smm-processing {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 99999999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

#smm-processing > .spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #6c5ce7;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

#smm-processing > p {
  margin: 0.5rem 0 0 0;
}

#smm-processing > p.processing {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.smm-maxheight {
  max-height: calc(100vh - 9.5rem);
  overflow-y: auto;
}

.smm-post-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
}

.smm-post-card img {
  border-radius: 0.5rem;
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.smm-post-card .info {
  flex: 1;
  font-size: 0.9rem;
  min-width: 0;
}

.smm-post-card .info p {
  margin: 0 0 0.5rem 0;
  color: #333;
  line-height: 1.4;
  word-break: break-word;
}

.smm-post-card .stats {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  color: #666;
  font-size: 0.85rem;
}
