/* ===================================
   ENHANCED MORE TAB - PREMIUM DESIGN
   =================================== */

/* Profile Section Container */
.profile-content {
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Super Buttons Container (Horizontal) */
.super-buttons-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

/* Super Button Base */
.super-button {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.15),
    rgba(0, 0, 0, 0.4)
  );
  backdrop-filter: blur(15px);
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.super-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.super-button:hover::before {
  opacity: 1;
}

.super-button:hover {
  border-color: rgba(229, 9, 20, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(229, 9, 20, 0.3);
}

.super-button h3 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 20px 0;
}

/* Profile Super Box */
.profile-super-box {
  cursor: default;
}

.profile-details-compact {
  display: flex;
  gap: 25px;
  align-items: center;
}

/* Profile Photo */
.profile-photo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
  object-fit: cover;
  transition: all 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(229, 9, 20, 0.6);
}

.edit-photo-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: linear-gradient(135deg, var(--primary-color), #b20710);
  border: 3px solid #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
  padding: 0;
}

.edit-photo-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.6);
}

/* Profile Info */
.profile-info-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.editable-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 12px;
  padding: 12px 18px;
  transition: all 0.3s ease;
}

.editable-field:hover {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(0, 0, 0, 0.6);
}

.editable-field input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  outline: none;
}

.edit-btn {
  background: rgba(229, 9, 20, 0.2);
  border: 2px solid rgba(229, 9, 20, 0.4);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  padding: 0;
}

.edit-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.email-field {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 18px;
  color: #999;
  font-size: 1rem;
  outline: none;
}

.delete-account-btn {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.2),
    rgba(139, 0, 0, 0.3)
  );
  border: 2px solid rgba(229, 9, 20, 0.4);
  border-radius: 12px;
  padding: 12px 24px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-account-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), #8b0000);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

/* History Super Box */
.history-super-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
}

.history-super-box p {
  color: #ccc;
  font-size: 1rem;
  margin: 10px 0 20px;
}

.history-preview-icons {
  font-size: 4rem;
  color: var(--primary-color);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Sub Buttons Container (Vertical) */
.sub-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sub Button Base */
.sub-button {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.1),
    rgba(0, 0, 0, 0.3)
  );
  backdrop-filter: blur(10px);
  border: 2px solid rgba(229, 9, 20, 0.25);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sub-button:hover {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

/* Sub Header */
.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sub-header:hover {
  background: rgba(229, 9, 20, 0.1);
}

.sub-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.sub-header i {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

/* Sub Content */
.sub-content {
  padding: 0 25px 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.sub-content[style*="display: block"] {
  max-height: 500px;
  padding: 20px 25px 25px;
}

/* Contact Links - Horizontal Grid */
.contact-links {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 15px !important;
  justify-items: center !important;
  flex-direction: row !important;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px 20px;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.1),
    rgba(0, 0, 0, 0.4)
  );
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  backdrop-filter: blur(10px);
}

.contact-link:hover {
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.2),
    rgba(0, 0, 0, 0.6)
  );
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.contact-link i {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.contact-link.telegram:hover {
  border-color: #0088cc;
}

.contact-link.telegram:hover i {
  color: #ea4335;
  transform: scale(1.2);
}

.contact-link.whatsapp:hover {
  border-color: #25d366;
}

.contact-link.whatsapp:hover i {
  color: #ea4335;
  transform: scale(1.2);
}

.contact-link.email:hover {
  border-color: #ea4335;
}

.contact-link.email:hover i {
  color: #ea4335;
  transform: scale(1.2);
}

/* Logout Container (Bottom Centered) */
.logout-container {
  margin-top: 20px;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid rgba(229, 9, 20, 0.2);
}

.logout-btn-enhanced {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 50px;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.2),
    rgba(139, 0, 0, 0.3)
  );
  backdrop-filter: blur(15px);
  border: 2px solid rgba(229, 9, 20, 0.4);
  border-radius: 50px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.logout-btn-enhanced::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.logout-btn-enhanced:hover::before {
  width: 300px;
  height: 300px;
}

.logout-btn-enhanced:hover {
  background: linear-gradient(135deg, var(--primary-color), #8b0000);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(229, 9, 20, 0.5);
}

.logout-btn-enhanced:active {
  transform: translateY(-1px);
}

.logout-btn-enhanced i {
  font-size: 1.3rem;
}

/* Hide old logout sub-box */
.logout-sub-box {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .super-buttons-container {
    grid-template-columns: 1fr;
  }

  .profile-details-compact {
    flex-direction: column;
    text-align: center;
  }

  .profile-info-compact {
    width: 100%;
  }

  .super-button h3 {
    font-size: 1.5rem;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }
}
