.profile-container {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  min-height: 100vh;
  padding: 20px 0;
}

.profile-header {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid var(--gold);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  margin: 0 auto 20px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
  position: relative;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--gold);
  color: #1a1a1a;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.profile-avatar-edit:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
}

.profile-username {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 10px;
  font-family: 'Orbitron', monospace;
}

.profile-email {
  color: var(--silver);
  margin-bottom: 10px;
}

.profile-daily-emoji {
  font-size: 2rem;
  margin: 10px 0;
}

.profile-level {
  background: linear-gradient(135deg, var(--gold), #ffed4a);
  color: #1a1a1a;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  display: inline-block;
  margin: 10px 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid var(--gold);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 10px;
  font-family: 'Orbitron', monospace;
}

.stat-label {
  color: var(--silver);
  font-size: 0.9rem;
}

.level-progress-card {
  position: relative;
  overflow: visible;
}

.level-progress {
  margin-top: 15px;
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(42, 42, 42, 0.8);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #4ecdc4);
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-text {
  color: var(--silver);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
}

.profile-content {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid var(--gold);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.profile-tab {
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid var(--silver);
  color: var(--silver);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-tab.active {
  background: linear-gradient(135deg, var(--gold), #ffed4a);
  color: #1a1a1a;
  border-color: var(--gold);
}

.profile-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.profile-section {
  display: none;
}

.profile-section.active {
  display: block;
}

.activity-item {
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-info {
  flex-grow: 1;
}

.activity-action {
  color: var(--gold);
  font-weight: bold;
}

.activity-time {
  color: var(--silver);
  font-size: 0.8rem;
}

.activity-coins {
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
}

.activity-coins.positive {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.activity-coins.negative {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.activity-coins.neutral {
  background: rgba(128, 128, 128, 0.2);
  color: #999;
}

.edit-profile-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid var(--silver);
  border-radius: 8px;
  color: var(--silver);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.avatar-option {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--silver);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.avatar-option:hover,
.avatar-option.selected {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tool-usage-item {
  background: rgba(42, 42, 42, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tool-info {
  flex-grow: 1;
}

.tool-name {
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 5px;
}

.tool-time {
  color: var(--silver);
  font-size: 0.8rem;
}

.tool-cost {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  padding: 5px 10px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--silver);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--gold);
}

.loading i {
  font-size: 1.5rem;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(46, 204, 113, 0.1);
  border-color: #2ecc71;
  color: #2ecc71;
}

.alert-error {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
  color: #e74c3c;
}

.personal-key-section {
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid var(--gold);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.personal-key {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 15px;
  font-family: 'Courier New', monospace;
  color: var(--gold);
  font-size: 1.1rem;
  margin: 15px 0;
  word-break: break-all;
}

.key-info {
  color: var(--silver);
  font-size: 0.9rem;
  margin: 10px 0;
}

.activity-item i {
  color: #ffd700;
  margin-right: 10px;
}

.activity-meta {
  font-size: 0.8em;
  color: #999;
}

/* Daily Claim Styles */
.daily-claim-card {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  border-radius: 15px;
  padding: 20px;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.claim-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.claim-status, .claim-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.claim-btn {
  background: #1a1a1a;
  color: #ffd700;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Task Progress Styles */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.task-card {
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.task-card:hover {
  border-color: #ffd700;
}

.task-card.completed {
  border-color: #4ecdc4;
  background: rgba(78, 205, 196, 0.1);
}

.task-card.submitted {
  border-color: #ffa500;
  background: rgba(255, 165, 0, 0.1);
}

.task-platform-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.task-platform-icon.youtube { background: linear-gradient(135deg, #FF0000, #CC0000); color: white; }
.task-platform-icon.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: white; }
.task-platform-icon.facebook { background: linear-gradient(135deg, #4267B2, #365899); color: white; }
.task-platform-icon.telegram { background: linear-gradient(135deg, #0088CC, #0077B5); color: white; }
.task-platform-icon.instagram { background: linear-gradient(135deg, #E4405F, #C13584); color: white; }
.task-platform-icon.twitter { background: linear-gradient(135deg, #1DA1F2, #1991DB); color: white; }
.task-platform-icon.tiktok { background: linear-gradient(135deg, #000000, #333333); color: white; }
.task-platform-icon.discord { background: linear-gradient(135deg, #7289DA, #5B6EBC); color: white; }
.task-platform-icon.linkedin { background: linear-gradient(135deg, #0077B5, #005885); color: white; }

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.task-info h3 {
  margin: 0 0 8px 0;
  color: #ffd700;
  font-size: 1.2em;
  font-weight: 600;
}

.task-reward {
  color: #4ecdc4;
  font-weight: 700;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.task-description {
  color: #ccc;
  font-size: 0.9em;
  margin: 10px 0;
  line-height: 1.4;
}

.task-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-status.available {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid #ffd700;
}

.task-status.completed {
  background: #4ecdc4;
  color: #1a1a1a;
}

.task-status.submitted {
  background: #ffa500;
  color: #1a1a1a;
}

.task-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.task-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #1a1a1a;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9em;
  position: relative;
}

.task-btn:hover {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
}

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

.task-btn:disabled::before {
  display: none;
}

.task-btn.secondary {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid #ffd700;
}

.task-link {
  color: #4ecdc4;
  text-decoration: none;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
}

/* Task Submission Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(26, 26, 26, 0.95);
  border: 2px solid var(--gold);
  border-radius: 15px;
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  color: var(--silver);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--gold);
}

.modal-body {
  color: var(--silver);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid var(--silver);
  border-radius: 8px;
  color: var(--silver);
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Profile Sharing Styles */
.share-card {
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
}

.share-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(76, 205, 196, 0.1));
  border-radius: 10px;
}

.share-avatar {
  position: relative;
  width: 80px;
  height: 80px;
}

.share-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #ffd700;
}

.share-emoji {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #ffd700;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}

.share-details h3 {
  margin: 0 0 10px 0;
  color: #ffd700;
  font-size: 1.3em;
}

.share-details p {
  margin: 5px 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #1a1a1a;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  justify-content: center;
}

.share-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.share-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.share-btn:active {
  transform: translateY(0);
}

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

.share-btn:hover::before {
  left: 100%;
}

/* Mobile profile menu styles */
.profile-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 45px;
  position: absolute;
  top: 10px;
  right: 02px;
  z-index: 5;
}

.profile-hamburger .bar {
  width: 30px;
  height: 3px;
  background-color: var(--silver);
  margin: 3px 0;
  transition: 0.4s;
}

.profile-hamburger.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.profile-hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.profile-hamburger.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

#mobileProfileMenu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.95);
  z-index: 9;
  padding-top: 60px;
  overflow-y: auto;
}

#mobileProfileMenu.active {
  display: block;
}

#mobileProfileMenu .profile-tab {
  display: block;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--silver);
  margin: 0;
  border-radius: 0;
}

#mobileProfileMenu .profile-tab:last-child {
  border-bottom: none;
}

/* Hide tabs on larger screens */
@media (min-width: 481px) {
  .profile-tabs {
      display: flex;
  }
}

/* Show hamburger and hide tabs on smaller screens */
@media (max-width: 480px) {
  .profile-tabs {
      display: none; /* Hide regular tabs */
  }

   .profile-hamburger {
      display: flex; /* Show hamburger menu */
  }
}

/* Input highlight animation */
@keyframes highlightInput {
  0%, 100% {
      border-color: var(--silver);
      box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
  25%, 75% {
      border-color: var(--gold);
      box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  }
  50% {
      border-color: var(--gold);
      box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  }
}

/* Enhanced modal positioning for better visibility */
.modal-content {
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.modal-content:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

/* Improved form input focus states */
.form-group input:focus,
.form-group textarea:focus {
  outline: none,
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* Enhanced Mobile Responsive Design */

/* Extra Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .profile-container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .profile-content {
    padding: 40px;
  }

  .profile-stats {
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
  }

  .task-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }

  .activity-container {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }

  .modal-content {
    max-width: 700px;
  }
}

/* Large Desktop (1200px to 1439px) */
@media (max-width: 1439px) and (min-width: 1200px) {
  .profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }

  .profile-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .task-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .activity-container {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

/* Standard Desktop (1024px to 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
  .profile-container {
    padding: 20px;
  }

  .profile-header {
    padding: 30px 25px;
  }

  .profile-avatar {
    width: 110px;
    height: 110px;
    font-size: 2.8rem;
  }

  .profile-username {
    font-size: 2.2rem;
  }

  .profile-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .task-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .activity-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .modal-content {
    max-width: 600px;
    width: 95%;
  }

  .spread-buttons-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

/* Tablet Portrait and Small Desktop (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .profile-container {
    padding: 15px;
  }

  .profile-header {
    padding: 25px 20px;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .profile-username {
    font-size: 1.8rem;
  }

  .profile-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .task-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .activity-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .daily-claim-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .share-preview {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .share-actions {
    justify-content: center;
  }

  .profile-tabs {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .profile-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
  }

  .spread-buttons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .modal-content {
    width: 95%;
    max-width: 500px;
  }
}

/* Mobile Landscape and Small Tablet (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .profile-container {
    padding: 10px;
  }

  .profile-header {
    padding: 120px 15px 30px;
    text-align: center;
  }

  .profile-avatar {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
  }

  .profile-username {
    font-size: 1.6rem;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .task-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .activity-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .profile-tab {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .task-info h3 {
    font-size: 1.1rem;
  }

  .task-description {
    font-size: 0.85rem;
  }

  .task-reward {
    font-size: 1rem;
  }

  .spread-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .spread-btn {
    padding: 12px 15px;
    font-size: 0.8rem;
  }

  .spread-btn i {
    font-size: 1rem;
  }

  .modal-content {
    width: 95%;
    max-width: none;
    margin: 5% auto;
    border-radius: 15px;
  }

  .modal-footer {
    flex-direction: column;
    gap: 10px;
  }
}

/* Mobile Portrait (480px to 575px) */
@media (max-width: 575px) {
  .profile-container {
    padding: 5px;
  }

  .profile-header {
    padding: 100px 10px 25px;
  }

  .profile-content {
    padding: 15px 10px;
    border-radius: 12px;
  }

  .profile-username {
    font-size: 1.4rem;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 15px 10px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

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

  .task-card {
    padding: 15px 12px;
    min-height: 180px;
    border-radius: 10px;
  }

  .task-info h3 {
    font-size: 1rem;
  }

  .task-description {
    font-size: 0.8rem;
  }

  .task-reward {
    font-size: 0.9rem;
  }

  .task-status {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .task-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .task-btn {
    padding: 12px 18px;
    font-size: 0.9rem;
    min-height: 40px;
    border-radius: 16px;
    width: 100%;
  }

  .task-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .task-platform-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .activity-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .refresh-btn {
    float: none;
    margin: 0 0 10px auto;
  }

  .spread-controls {
    padding: 15px 0;
  }

  .spread-buttons-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 10px;
  }

  .spread-btn {
    padding: 10px 12px;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
  }

  .spread-btn span {
    font-size: 0.8rem;
  }

  .modal {
    padding: 5px;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 10px;
    max-height: 95vh;
    overflow-y: auto;
  }

  .modal-header {
    padding: 12px 15px;
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 15px 12px;
  }

  .modal-footer {
    flex-direction: column;
    gap: 8px;
    padding: 12px 15px;
  }

  .modal-footer .btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 15px 0;
  }

  .header-controls {
    justify-content: center;
    gap: 8px;
  }

  .section-action-btn {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .profile-tabs {
    flex-direction: column;
    gap: 6px;
    padding: 0 10px;
  }

  .profile-tab {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
  .profile-container {
    padding: 0;
  }

  .profile-header {
    padding: 90px 5px 20px;
  }

  .profile-content {
    padding: 10px 5px;
    margin: 0 5px;
    border-radius: 8px;
  }

  .profile-username {
    font-size: 1.2rem;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .stat-card {
    padding: 12px 8px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .task-card {
    padding: 12px 10px;
    min-height: 160px;
    border-radius: 8px;
  }

  .task-info h3 {
    font-size: 0.9rem;
  }

  .task-description {
    font-size: 0.75rem;
  }

  .task-reward {
    font-size: 0.8rem;
  }

  .task-btn {
    padding: 10px 15px;
    font-size: 0.8rem;
    min-height: 36px;
    border-radius: 12px;
  }

  .task-platform-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .spread-btn {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .spread-btn i {
    font-size: 0.9rem;
  }

  .modal-content {
    border-radius: 8px;
  }

  .modal-header {
    padding: 10px 12px;
  }

  .modal-header h3 {
    font-size: 1rem;
  }

  .modal-body {
    padding: 12px 10px;
  }

  .modal-footer {
    padding: 10px 12px;
  }

  .modal-footer .btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .profile-tab {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .section-action-btn {
    width: 28px;
    height: 28px;
    font-size: 0.6rem;
  }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 767px) {
  .profile-header {
    padding: 70px 15px 20px;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .profile-username {
    font-size: 1.3rem;
  }

  .spread-controls {
    padding: 10px 0;
  }

  .spread-buttons-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
  }

  .spread-btn {
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .modal-content {
    max-height: 85vh;
    overflow-y: auto;
  }
}

/* High contrast and accessibility */
@media (prefers-contrast: high) {
  .profile-avatar {
    border: 3px solid #fff;
  }

  .stat-card,
  .task-card {
    border: 2px solid #fff;
  }

  .btn,
  .task-btn,
  .spread-btn {
    border: 2px solid;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .profile-avatar,
  .task-card,
  .stat-card,
  .spread-btn {
    transition: none !important;
    animation: none !important;
  }

  .floating-card {
    animation: none !important;
  }
}

/* Print styles for profile */
@media print {
  .profile-container {
    background: white !important;
    color: black !important;
  }

  .spread-controls,
  .profile-tabs,
  .task-actions,
  .section-action-btn,
  .btn {
    display: none !important;
  }

  .profile-stats,
  .task-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .stat-card,
  .task-card {
    border: 1px solid #000 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Profile Action Buttons */
.profile-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.profile-actions button:active {
  transform: translateY(0);
}

/* Mobile Responsive (up to 767px) */
@media (max-width: 767px) and (min-width: 481px) {
  .profile-container {
      padding: 10px;
  }

  .profile-header {
      padding: 20px 15px;
      margin-bottom: 20px;
  }

  .profile-avatar {
      width: 90px;
      height: 90px;
      font-size: 2.2rem;
  }

  .profile-username {
      font-size: 1.6rem;
  }

  .profile-stats {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
  }

  .stat-card {
      padding: 15px;
  }

  .stat-number {
      font-size: 1.6rem;
  }

  .profile-content {
      padding: 20px 15px;
      margin-bottom: 15px;
  }

  .profile-tabs {
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
  }

  .profile-tab {
      padding: 10px 16px;
      font-size: 0.9rem;
      min-width: 100px;
      text-align: center;
  }

  .task-grid {
      grid-template-columns: 1fr;
      gap: 15px;
  }

  .task-card {
      padding: 18px;
  }

  .task-platform-icon {
      width: 50px;
      height: 50px;
      font-size: 1.5em;
      margin-bottom: 12px;
  }

  .daily-claim-card {
      flex-direction: column;
      text-align: center;
      gap: 15px;
      padding: 20px 15px;
  }

  .share-preview {
      flex-direction: column;
      text-align: center;
      gap: 15px;
  }

  .share-actions {
      justify-content: center;
      flex-wrap: wrap;
  }

  .modal-content {
      width: 95%;
      margin: 10% auto;
      padding: 20px 15px;
  }

  .activity-container {
      grid-template-columns: 1fr;
      gap: 20px;
  }

  .edit-profile-form {
      grid-template-columns: 1fr;
      gap: 15px;
  }
}

/* Small Mobile Devices (320px to 480px) */
@media (max-width: 480px) {
  .vip-profile-notification {
      width: 95vw !important;
      right: 2.5vw !important;
      padding: 15px !important;
      font-size: 1rem !important;
  }
}

/* Enhanced mobile display fixes */
@media (max-width: 480px) {
  .profile-container {
      padding: 5px;
      min-height: 100vh;
      overflow-x: hidden;
  }

  .container {
      padding: 0 5px;
      max-width: 100%;
  }

  /* Fix profile header on small screens */
  .profile-header {
      padding: 12px 8px;
      margin-bottom: 10px;
      border-radius: 10px;
      text-align: center;
      position: relative;
  }

  /* Ensure profile content fits properly */
  .profile-content {
      padding: 12px 8px;
      margin-bottom: 10px;
      border-radius: 10px;
      overflow-x: hidden;
  }

  /* Fix profile tabs for very small screens */
  .profile-tabs {
      display: none !important; /* Hide on mobile - use hamburger */
  }

  .profile-hamburger {
      display: flex !important;
      position: fixed;
      top: 65px;
      right: 15px;
      z-index: 1002;
      background: rgba(26, 26, 26, 0.9);
      border: 1px solid var(--gold);
      border-radius: 8px;
      padding: 8px;
  }

  /* Mobile profile menu full screen */
  #mobileProfileMenu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(26, 26, 26, 0.98);
      z-index: 1001;
      padding: 60px 0 20px 0;
      overflow-y: auto;
      backdrop-filter: blur(10px);
  }

  #mobileProfileMenu .profile-tab {
      display: block;
      width: 100%;
      padding: 18px 20px;
      text-align: center;
      border-bottom: 1px solid rgba(255, 215, 0, 0.2);
      margin: 0;
      border-radius: 0;
      font-size: 1rem;
      transition: all 0.3s ease;
  }

  #mobileProfileMenu .profile-tab:hover {
      background: rgba(255, 215, 0, 0.1);
      color: var(--gold);
  }

  /* Fix task cards on mobile */
  .task-grid {
      grid-template-columns: 1fr;
      gap: 10px;
      padding: 0;
  }

  .task-card {
      margin: 0 0 10px 0;
      padding: 12px 10px;
      border-radius: 8px;
      min-height: auto;
  }

  /* Fix profile stats on mobile */
  .profile-stats {
      grid-template-columns: 1fr;
      gap: 8px;
      margin: 15px 0;
  }

  .stat-card {
      padding: 12px 8px;
      border-radius: 8px;
      min-height: 80px;
      display: flex;
      flex-direction: column;
      justify-content: center;
  }

  .stat-number {
      font-size: 1.4rem;
      margin-bottom: 5px;
  }

  .stat-label {
      font-size: 0.75rem;
  }

  /* Fix modal on mobile */
  .modal-content {
      width: 95vw;
      max-width: 95vw;
      margin: 10vh auto;
      padding: 20px 15px;
      max-height: 80vh;
      overflow-y: auto;
      border-radius: 15px;
      position: relative;
  }

  /* Enhanced mobile form input styling */
  .form-group input[type="text"],
  .form-group input[type="url"],
  .form-group textarea {
      font-size: 16px; /* Prevents zoom on iOS */
      padding: 15px 12px;
      border-radius: 10px;
      transition: all 0.3s ease;
  }

  /* Mobile-specific verification code input styling */
  #verificationCode {
      text-align: center;
      font-size: 18px;
      font-weight: bold;
      letter-spacing: 2px;
      background: rgba(255, 215, 0, 0.1);
      border: 2px solid var(--gold);
  }

  /* Modal header emphasis on mobile */
  .modal-header h3 {
      font-size: 1.3rem;
      text-align: center;
      margin-bottom: 10px;
  }

  /* Fix form groups on mobile */
  .form-group {
      margin-bottom: 12px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
      padding: 10px 8px;
      font-size: 0.9rem;
      border-radius: 6px;
      width: 100%;
      box-sizing: border-box;
  }

  /* Fix activity items on mobile */
  .activity-item,
  .tool-usage-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      padding: 10px 8px;
      margin-bottom: 8px;
      border-radius: 6px;
  }

  .activity-info,
  .tool-info {
      width: 100%;
  }

  .activity-coins,
  .tool-cost {
      align-self: flex-end;
      font-size: 0.8rem;
      padding: 4px 8px;
  }

  /* Fix avatar options on mobile */
  .avatar-options {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin: 10px 0;
  }

  .avatar-option {
      width: 50px;
      height: 50px;
  }

  /* Fix share preview on mobile */
  .share-preview {
      flex-direction: column;
      text-align: center;
      gap: 10px;
      padding: 10px;
  }

  .share-avatar {
      width: 60px;
      height: 60px;
      margin: 0 auto;
  }

  .share-actions {
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
  }

  .share-btn {
      width: 100%;
      padding: 12px 16px;
      font-size: 0.9rem;
      justify-content: center;
      border-radius: 18px;
  }

  /* Fix daily claim on mobile */
  .daily-claim-card {
      flex-direction: column;
      text-align: center;
      gap: 12px;
      padding: 12px 10px;
      border-radius: 10px;
  }

  .claim-btn {
      width: 100%;
      padding: 12px 16px;
      font-size: 0.9rem;
      justify-content: center;
      border-radius: 18px;
  }

  /* Fix personal key section on mobile */
  .personal-key-section {
      padding: 12px 10px;
      margin: 12px 0;
      border-radius: 10px;
  }

  .personal-key {
      padding: 10px 8px;
      font-size: 0.8rem;
      margin: 10px 0;
      border-radius: 6px;
      word-break: break-all;
      overflow-wrap: break-word;
  }

  /* Ensure text doesn't overflow */
  .profile-username {
      font-size: 1.4rem;
      word-break: break-word;
      overflow-wrap: break-word;
      line-height: 1.2;
  }

  .profile-email {
      font-size: 0.85rem;
      word-break: break-word;
      overflow-wrap: break-word;
  }

  /* Fix navigation on mobile */
  .navbar {
      padding: 8px 0;
      position: fixed;
      width: 100%;
      z-index: 1000;
  }

  .nav-container {
      padding: 0 10px;
  }

  /* Ensure proper spacing from fixed navbar */
  body {
      padding-top: 60px;
  }

  /* Fix hamburger positioning */
  .hamburger {
      z-index: 1002;
  }

  /* Prevent horizontal scroll */
  html, body {
      overflow-x: hidden;
      max-width: 100vw;
  }

  * {
      max-width: 100%;
      box-sizing: border-box;
  }
}

/* Avatar Modal Styles */
.avatar-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.avatar-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.avatar-section h4 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.avatar-option {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--silver);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}

.avatar-option:hover {
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}

.avatar-option.selected {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  transform: scale(1.1);
}

.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.custom-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  background: rgba(42, 42, 42, 0.8);
  overflow: hidden;
}

.custom-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-quick-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

/* Mobile responsive for avatar modal */
@media (max-width: 768px) {
  .avatar-options {
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
  }

  .avatar-option {
      width: 60px;
      height: 60px;
  }

  .custom-avatar-preview {
      width: 60px;
      height: 60px;
  }

  .avatar-quick-actions {
      flex-direction: column;
  }

  .avatar-quick-actions .btn {
      min-width: auto;
  }
}

@media (max-width: 480px) {
  .avatar-options {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
  }

  .avatar-option {
      width: 50px;
      height: 50px;
  }

  .custom-avatar-preview {
      width: 50px;
      height: 50px;
  }

  .avatar-section h4 {
      font-size: 1rem;
  }
}

/* VIP Logout Modal Styling */
.vip-logout-popup {
    border: 2px solid #ffd700 !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4) !important;
}

.vip-logout-title {
    color: #ffd700 !important;
    font-family: 'Orbitron', monospace !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

.vip-logout-content {
    color: #cccccc !important;
    font-size: 1rem !important;
}

.vip-logout-confirm {
    background: linear-gradient(135deg, #ffd700, #ffed4a) !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    font-weight: bold !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4) !important;
}

.vip-logout-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6) !important;
    background: linear-gradient(135deg, #ffed4a, #ffd700) !important;
}

.vip-logout-cancel {
    background: linear-gradient(135deg, #ff6b6b, #e55353) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    font-weight: bold !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4) !important;
}

.vip-logout-cancel:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6) !important;
    background: linear-gradient(135deg, #e55353, #ff6b6b) !important;
}

.vip-logout-loading {
    border: 2px solid #4ecdc4 !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(78, 205, 196, 0.4) !important;
}

.vip-logout-success {
    border: 2px solid #4ecdc4 !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(78, 205, 196, 0.4) !important;
}

/* Logout spinner animation */
@keyframes vip-logout-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive logout modal */
@media (max-width: 768px) {
    .vip-swal-mobile {
        width: 95% !important;
        margin: 10px !important;
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    .vip-swal-mobile .swal2-title {
        font-size: 1.4rem !important;
        margin-bottom: 15px !important;
    }

    .vip-swal-mobile .swal2-content {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }

    .vip-swal-mobile .swal2-actions {
        flex-direction: column-reverse !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }

    .vip-swal-mobile .swal2-confirm,
    .vip-swal-mobile .swal2-cancel {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .vip-swal-mobile {
        width: 98% !important;
        margin: 5px !important;
        padding: 0.8rem !important;
    }

    .vip-swal-mobile .swal2-title {
        font-size: 1.2rem !important;
    }

    .vip-swal-mobile .swal2-content {
        font-size: 0.8rem !important;
    }

    .vip-swal-mobile .swal2-confirm,
    .vip-swal-mobile .swal2-cancel {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* Settings sections styles */
.settings-section {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.settings-section h3 {
    color: var(--gold);
    font-family: 'Orbitron', monospace;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.password-change-form .form-group {
    margin-bottom: 15px;
}

.password-change-form input {
    width: 100%;
    padding: 12px;
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.password-change-form input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.account-management {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.management-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(45, 45, 45, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.management-option:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.management-option.danger-zone {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(139, 0, 0, 0.1);
}

.management-option.danger-zone:hover {
    border-color: rgba(255, 107, 107, 0.5);
}

.option-info h4 {
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.option-info p {
    color: var(--silver);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-warning {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #e55353);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e55353, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Mobile responsive settings */
@media (max-width: 768px) {
    .management-option {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .option-info {
        margin-bottom: 10px;
    }

    .settings-section {
        padding: 20px 15px;
    }

    .password-change-form input {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .settings-section {
        padding: 15px 10px;
    }

    .settings-section h3 {
        font-size: 1.1rem;
    }

    .management-option {
        padding: 15px;
    }

    .option-info h4 {
        font-size: 1rem;
    }

    .option-info p {
        font-size: 0.8rem;
    }
}

/* VIP notification styles for logout */
.vip-profile-notification {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #ffd700, #ffed4a) !important;
    color: #1a1a1a !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    z-index: 9999 !important;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4) !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1rem !important;
    max-width: 350px !important;
    word-wrap: break-word !important;
    animation: slideInRight 0.5s ease !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Extra Small Devices (max-width: 320px) */
@media (max-width: 320px) {
  .profile-container {
      padding: 5px;
  }

  .container {
      padding: 0 5px;
  }

  .profile-header {
      padding: 12px 10px;
      margin-bottom: 12px;
  }

  .profile-avatar {
      width: 70px;
      height: 70px;
      font-size: 1.8rem;
  }

  .profile-username {
      font-size: 1.2rem;
  }

  .profile-content {
      padding: 12px 10px;
  }

  .task-card {
      padding: 12px 10px;
  }

  .task-platform-icon {
      width: 40px;
      height: 40px;
      font-size: 1.1em;
  }

  .modal-content {
      padding: 12px 10px;
  }
}

/* Landscape orientation on small devices */
@media (max-height: 500px) and (orientation: landscape) {
  .profile-header {
      padding: 15px 20px;
  }

  .profile-avatar {
      width: 70px;
      height: 70px;
      font-size: 1.8rem;
  }

  .profile-username {
      font-size: 1.3rem;
  }

  .profile-stats {
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
  }

  .modal-content {
      max-height: 85vh;
      overflow-y: auto;
  }
}

/* Loading and Empty States */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--silver);
    font-size: 1rem;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--silver);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--gold);
}

.empty-state p {
    margin: 10px 0;
    line-height: 1.5;
}

.empty-state a {
    color: var(--gold);
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Referral System Styles */
.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.referral-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.referral-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.referral-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
}

.referral-stat-card .stat-content {
    flex: 1;
}

.referral-stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    font-family: 'Orbitron', monospace;
}

.referral-stat-card .stat-label {
    color: var(--silver);
    font-size: 0.9rem;
    margin-top: 5px;
}

.referral-code-section,
.referral-link-section,
.referral-list-section,
.referral-info-section {
    margin-bottom: 30px;
}

.referral-code-card,
.referral-link-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.referral-code-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.code-label {
    color: var(--silver);
    font-size: 0.9rem;
    min-width: 150px;
}

.referral-code {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 2px;
    min-width: 120px;
    text-align: center;
}

.copy-code-btn,
.copy-link-btn {
    background: linear-gradient(135deg, var(--gold), #ffa500);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-code-btn:hover,
.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.referral-code-info {
    color: var(--silver);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-display {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.link-display input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-btn.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.referral-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.referral-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.referral-item:hover {
    background: rgba(255, 215, 0, 0.05);
}

.referral-item:last-child {
    border-bottom: none;
}

.referral-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.referral-info {
    flex: 1;
}

.referral-username {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.referral-join-date,
.referral-spent {
    font-size: 0.85rem;
    color: var(--silver);
    margin-bottom: 2px;
}

.referral-earnings {
    text-align: right;
}

.earnings-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--gold);
    font-family: 'Orbitron', monospace;
}

.earnings-label {
    font-size: 0.8rem;
    color: var(--silver);
    margin-top: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-content p {
    color: var(--silver);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.referral-status {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced referral system styling */
.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.referral-code {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 15px 20px;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold);
    text-align: center;
    letter-spacing: 2px;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.referral-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.copy-code-btn, .copy-link-btn {
    background: linear-gradient(135deg, var(--gold), #ffa500);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-code-btn:hover, .copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #ffed4a, var(--gold));
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #005f99);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5aa7);
    color: white;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--silver);
    margin: 10px 0;
}

.empty-state p:first-of-type {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.link-input {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
}

.link-display {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

/* Pulse animation for zero values */
.stat-number.zero {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Mobile responsiveness for referral system */
@media (max-width: 768px) {
    .referral-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .referral-stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .referral-stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .referral-code-display {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .referral-code {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .link-display {
        flex-direction: column;
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .referral-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .referral-earnings {
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }
}