.profile-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.profile-page {
  background-color: #141414;
  color: #fff;
  overflow-x: hidden;
  display: block;
  min-height: 100vh;
}

.profile-page header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1000;
  transition: background-color 0.3s;
}

.profile-page .back-arrowHome {
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

.profile-page .search-icon {
  font-size: 20px;
  cursor: pointer;
  color: #fff;
}

.profile-page main {
  margin-top: 80px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-page .profile-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #e50914;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
}

.profile-page .days-remaining {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ccc;
}

.profile-page .profile-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
}

.profile-page .btn {
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.profile-page .btn-subscribe {
  background-color: #e50914;
  color: #fff;
}

.profile-page .btn-subscribe:disabled {
  background-color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.profile-page .btn-feedback {
  background-color: rgba(109, 109, 110, 0.7);
  color: #fff;
}

.profile-page .btn-logout {
  background-color: transparent;
  color: #fff;
  border: 1px solid #666;
  margin-top: 40px;
}

.profile-page .btn:hover:not(:disabled) {
  opacity: 0.8;
  transform: scale(1.05);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.popup-content {
  background-color: #181818;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  background: none;
  border: none;
}

.popup-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
  padding-right: 30px;
}

.popup-text {
  margin-bottom: 20px;
  line-height: 1.5;
  color: #ccc;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-textarea.error {
  border-color: #e50914;
  animation: shake 0.5s;
}

.error-message {
  color: #e50914;
  font-size: 16px;
  margin-top: 5px;
  display: none;
}

.month-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.month-arrow {
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  background: none;
  border: none;
  padding: 10px;
}

.month-display {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  min-width: 80px;
  text-align: center;
}

.amount-display {
  font-size: 20px;
  color: #ccc;
  margin-bottom: 20px;
}

.file-upload {
  border: 2px dashed #666;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 8px;
}

.file-upload:hover {
  border-color: #e50914;
}

.file-upload.error {
  border-color: #e50914;
  animation: shake 0.5s;
}

.file-preview {
  margin-top: 15px;
  display: none;
  text-align: center;
}

.file-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin: 0 auto 15px;
  display: block;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn-popup {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #e50914;
  color: #fff;
}

.btn-secondary {
  background-color: #666;
  color: #fff;
}

.success-message {
  color: #46d369;
  text-align: center;
  margin: 20px 0;
  display: none;
}

.logout-popup {
  text-align: center;
}

.logout-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.tutorial-links {
  text-align: left;
  margin: 20px 0;
}

.tutorial-links ul {
  margin: 15px 0;
  padding-left: 20px;
}

.tutorial-links li {
  margin-bottom: 10px;
}

.tutorial-links a {
  color: #e50914;
  text-decoration: none;
}

.tutorial-links a:hover {
  text-decoration: underline;
}

.wallet-container {
  background: #333;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

.wallet-address {
  color: #e50914;
  word-break: break-all;
  font-family: monospace;
  margin: 10px 0;
  padding: 10px;
  background: #222;
  border-radius: 4px;
  text-align: center;
}

.copy-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(70, 211, 105, 0.9);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 3000;
  display: none;
  animation: fadeInOut 2s ease-in-out;
}

.processing-notice {
  background-color: #333;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  border-left: 4px solid #e50914;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
  }
  20%, 80% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .profile-page header {
    padding: 15px 20px;
  }

  .profile-page main {
    padding: 20px;
  }

  .popup-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .profile-page .profile-circle {
    width: 100px;
    height: 100px;
    font-size: 36px;
  }

  .popup-content {
    padding: 15px;
  }

  .popup-title {
    font-size: 20px;
  }

  .month-display {
    font-size: 24px;
  }
}

.days-remaining {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.days-placeholder {
    display: inline-block;
    width: 140px;
    height: 16px;
    background: linear-gradient(90deg, #8c8c8c 25%, #666666 50%, #8c8c8c 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}