/* ===================================================
   FF Diamond Top-Up - Light Theme
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --purple-main: #581c87;
  /* Footer & primary accents */
  --purple-gradient: linear-gradient(135deg, #6b21a8, #c084fc);
  --purple-light: #6b21a8;
  --red-main: #ef4444;
  /* Buttons */
  --red-hover: #dc2626;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;

  --font-main: 'Outfit', sans-serif;
  --radius-md: 4px;
  --radius-lg: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
.top-header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  margin-top: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  cursor: pointer;
}

.logo-area span {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--purple-main);
}

.btn-nav-outline {
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-dark);
}

.btn-nav-solid {
  background: var(--purple-gradient);
  color: #fff;
  padding: 8px 24px;
  border-radius: var(--radius-md);
  border: none;
}

.btn-nav-solid:hover {
  background: var(--purple-light);
}

/* User Profile Badge in Header */
.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.user-bal {
  font-weight: 700;
  font-size: 14px;
  color: var(--purple-main);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  padding-top: 15px;
  padding-bottom: 40px;
}

/* View Toggles */
.view-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Title */
.section-title-wrap {
  text-align: center;
  margin: 15px 0 20px;
  position: relative;
}

.section-title-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-main), transparent);
  z-index: 1;
}

.section-title {
  display: inline-block;
  background: var(--bg-page);
  padding: 0 20px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
  text-transform: uppercase;
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .packages-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .packages-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }
}

.package-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.package-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--purple-main);
}

.package-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.package-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover the square area */
}

.package-info {
  padding: 8px 4px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.pkg-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  text-transform: uppercase;
}

.pkg-price {
  display: none;
  /* Hidden on card per user design, shown in modal */
}

.pkg-badge {
  position: absolute;
  top: 0;
  left: 0;
  /* Placed top-left usually */
  background: var(--red-main);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-bottom-right-radius: 6px;
  z-index: 2;
}

/* Banner Slider */
.home-banner-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px;
  position: relative;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: 4px;
  /* Less rounded corners for 'choturbhuj' style */
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.slider-dot {
  width: 14px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 0;
  cursor: pointer;
  transition: 0.3s;
}

.slider-dot.active {
  background: #000;
}

/* Auth Pages (Login/Register) */
.auth-container {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: left;
}

.btn-google {
  width: 100%;
  padding: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: 0.2s;
}

.btn-google:hover {
  background: #f8fafc;
}

.auth-divider {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 20px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.auth-divider span {
  padding: 0 10px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  font-family: var(--font-main);
}

.form-control:focus {
  border-color: var(--purple-main);
}

.btn-submit-red {
  width: 100%;
  padding: 14px;
  background: var(--red-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 10px;
}

.btn-submit-red:hover {
  background: var(--red-hover);
}

.auth-bottom-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-bottom-link a {
  color: var(--purple-main);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--purple-gradient);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 10px;
  text-align: center;
}

.footer-grid>div:nth-child(3) {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .footer-grid>div:nth-child(3) {
    grid-column: auto;
  }
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

@media (min-width: 768px) {
  .social-links {
    justify-content: flex-start;
  }
}

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: 0.2s;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-apk {
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.support-box {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}

.support-box i {
  font-size: 20px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 20px;
  font-size: 11px;
  opacity: 0.7;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  padding: 25px;
  transform: translateY(20px);
  transition: 0.3s;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

/* Payment Methods */
.pm-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.pm-item {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.pm-item.active {
  border-color: var(--purple-main);
  background: #f3e8ff;
  color: var(--purple-main);
}

.pm-item img {
  width: 30px;
  height: 30px;
  margin-bottom: 5px;
  object-fit: contain;
}

/* Dashboard / Profile */
.profile-card {
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.order-list-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 15px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Neo Order Card Styles for My Orders */
.neo-order-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.neo-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-light);
}

.neo-order-id-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.neo-order-icon {
  width: 32px;
  height: 32px;
  background: #fdf2f8;
  /* light pink */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #db2777;
}

.neo-order-icon svg {
  width: 18px;
  height: 18px;
}

.neo-order-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.badge-completed {
  background: #dcfce7;
  color: #16a34a;
}

.badge-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.badge-pending {
  background: #fef3c7;
  color: #d97706;
}

.neo-order-dates {
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px dashed var(--border-light);
}

.neo-date-half {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.neo-date-right {
  padding-left: 20px;
  border-left: 1px solid var(--border-light);
}

.neo-date-icon {
  display: flex;
  color: #8b5cf6;
  /* purple */
}

.neo-date-icon svg {
  width: 20px;
  height: 20px;
}

.neo-date-text {
  display: flex;
  flex-direction: column;
}

.neo-date-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.neo-date-value {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1px;
}

.neo-date-time {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.neo-order-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.neo-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.neo-detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.neo-detail-label svg {
  width: 14px;
  height: 14px;
}

.neo-detail-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
}

.neo-detail-value.package-name {
  text-transform: uppercase;
  font-size: 12px;
}


/* Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: var(--text-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.toast.error {
  background: var(--red-main);
}

.toast.success {
  background: #10b981;
}

/* Floating Chat Icon Menu */
.floating-chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.floating-cs-item {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  background: transparent;
}

.floating-cs-item img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.floating-chat-container.active .floating-cs-item {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-chat-container .floating-cs-item:nth-last-child(2) {
  transition-delay: 0.15s;
}

.floating-chat-container .floating-cs-item:nth-last-child(3) {
  transition-delay: 0.1s;
}

.floating-chat-container .floating-cs-item:nth-last-child(4) {
  transition-delay: 0.05s;
}

.floating-chat {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}

.chat-icon.glossy-bg {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 32% 24%, hsla(0, 0%, 100%, .4), transparent 20%),
    linear-gradient(135deg, #a855f7, #6b21a8);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.6), 0 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
  position: relative;
  transition: transform 0.2s;
}

.floating-chat:active .chat-icon.glossy-bg {
  transform: scale(0.95);
}

/* Ripple Animation */
.ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.6);
  z-index: 1;
  animation: ripple 2s infinite cubic-bezier(0.0, 0.0, 0.2, 1);
}

.ripple-ring.ripple-2 {
  animation-delay: 1s;
}

@keyframes ripple {
  0% {
    width: 100%;
    height: 100%;
    opacity: 1;
    border-width: 3px;
  }

  100% {
    width: 150%;
    height: 150%;
    opacity: 0;
    border-width: 1px;
  }
}

/* Mobile Install Popup */
.mobile-install-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: auto;
  max-width: 400px;
  background: var(--bg-white);
  border-radius: 4px;
  /* Choturbhuj (square-ish) */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  padding: 8px 12px;
  /* Thinner */
  gap: 15px;
  z-index: 100;
}

.btn-install {
  background: var(--purple-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 15px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-close-popup {
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* simple mobile nav */
  }

  .header-inner {
    justify-content: space-between;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 90;
    justify-content: space-around;
    align-items: flex-end;
    padding: 10px 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    flex: 1;
    margin-bottom: 5px;
    position: relative;
  }

  .mob-nav-item.active {
    color: var(--purple-main);
  }

  .mob-nav-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
  }

  .nav-center-item {
    position: relative;
  }

  .nav-center-btn {
    width: 60px;
    height: 60px;
    background: var(--purple-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(107, 33, 168, 0.4);
    border: 3px solid #fff;
  }

  .nav-center-btn svg {
    margin: 0;
    width: 28px;
    height: 28px;
  }

  body {
    padding-bottom: 0;
  }

  .site-footer {
    padding-bottom: 80px;
  }

  /* Mobile Install Popup next to Chat Icon */
  .mobile-install-popup {
    bottom: 80px;
    left: 10px;
    /* Pushed a bit more left */
    width: calc(100% - 95px);
    /* Space for bigger chat icon */
    padding: 8px 10px;
    gap: 10px;
  }

  /* Adjust floating chat for mobile */
  .floating-chat-container {
    bottom: 80px;
    right: 10px;
  }

  /* Header Button Sizing for Mobile */
  .btn-nav-outline,
  .btn-nav-solid {
    padding: 6px 12px;
    font-size: 12px;
  }

  .header-right {
    gap: 10px;
  }

  .logo-area {
    font-size: 14px;
  }

  .logo-area svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* Authentication State UI Toggles */
body.guest-mode .user-only {
  display: none !important;
}

body:not(.guest-mode) .guest-only {
  display: none !important;
}

body.guest-mode .floating-chat-container {
  display: none !important;
}

@media (max-width: 768px) {
  body.guest-mode .mobile-install-popup {
    width: calc(100% - 20px) !important;
  }
}

body.no-header-nav .top-header,
body.no-header-nav .mobile-bottom-nav,
body.no-header-nav .main-footer {
  display: none !important;
}

body.no-header-nav {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.no-header-nav .site-footer {
  display: none !important;
}

body.no-header-nav .main-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}

body.no-header-nav .floating-chat-container {
  display: none !important;
}

/* Pro Account Styles */
.pro-account-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 20px; margin-bottom: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.pro-account-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; position: relative; background: var(--purple-gradient); padding: 20px; border-radius: 6px; box-shadow: 0 8px 20px rgba(107, 33, 168, 0.15); overflow: hidden; }
.pro-account-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255,255,255,0.15)" d="M0,160L48,170.7C96,181,192,203,288,192C384,181,480,139,576,133.3C672,128,768,160,864,165.3C960,171,1056,149,1152,138.7L1248,128L1248,320L1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>'); background-size: cover; background-position: bottom; pointer-events: none; }
.pro-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--purple-main), #d8b4fe); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #fff; box-shadow: 0 4px 10px rgba(139,92,246,0.2); position: relative; }
.pro-info { flex: 1; }
.pro-name { font-size: 20px; font-weight: 800; color: #ffffff; display: flex; align-items: center; margin: 0 0 5px 0; position: relative; z-index: 1; }
.pro-id { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 600; margin-bottom: 5px; position: relative; z-index: 1; }
.pro-rank-badge { display: inline-block; padding: 4px 12px; background: linear-gradient(45deg, #f59e0b, #fbbf24); color: #fff; font-size: 11px; font-weight: 800; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; }
.pro-logout { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: #ffffff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; position: absolute; top: 20px; right: 20px; z-index: 2; }
.pro-logout:hover { background: #ef4444; border-color: #ef4444; color: #fff; }
.rank-journey-section { background: #f8fafc; border-radius: 8px; padding: 20px; margin-bottom: 20px; border: 1px solid #e2e8f0; }
.rank-journey-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.rank-progress-wrap { position: relative; height: 38px; margin-bottom: 15px; }
.rank-progress-wrap::before { content: ''; position: absolute; top: 17px; left: 0; width: 100%; height: 4px; background: #e2e8f0; border-radius: 2px; }
.rank-progress-bar { position: absolute; top: 17px; left: 0; height: 4px; background: linear-gradient(90deg, #38bdf8, var(--purple-main)); border-radius: 2px; transition: width 1s ease; z-index: 1; }
.rank-nodes { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; z-index: 2; padding: 0 10px; }
.rank-node { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; position: relative; transition: all 0.3s; cursor: pointer; }
.rank-node[data-rank="Bronze"], .rank-node[data-rank="Silver"], .rank-node[data-rank="Gold"], .rank-node[data-rank="Platinum"] { margin-top: -2px; }
.rank-node img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.5; transition: all 0.3s; }
.rank-node.reached img { filter: none; opacity: 1; }
.rank-node.active img { filter: drop-shadow(0 0 6px rgba(139,92,246,0.8)); opacity: 1; z-index: 3; position: relative; }
.rank-node:hover::after { content: attr(data-rank); position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,0.1); pointer-events: none; z-index: 10; }
.rank-stats { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.user-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.info-item { background: #ffffff; padding: 12px 15px; border-radius: 8px; border: 1px solid #e2e8f0; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.info-item:hover { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.info-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 5px; }
.info-val { font-size: 14px; font-weight: 600; color: var(--text-dark); }

.rank-list-container { background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; padding: 20px; margin-bottom: 15px; }
.rank-list-title { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.rank-item { display: flex; align-items: center; gap: 15px; position: relative; padding-bottom: 25px; }
.rank-item:last-child { padding-bottom: 0; }
.rank-item::before { content: ''; position: absolute; left: 24px; top: 55px; bottom: -15px; width: 4px; background: linear-gradient(90deg, #e2e8f0 0%, #ffffff 50%, #cbd5e1 100%); box-shadow: inset 1px 0 2px rgba(255,255,255,0.8), inset -1px 0 2px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05); z-index: 1; border-radius: 2px; }
.rank-item:last-child::before { display: none; }
.rank-icon-wrapper { width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; z-index: 2; position: relative; flex-shrink: 0; }
.rank-icon-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: all 0.3s ease; }
.rank-icon-wrapper.unlocked img { filter: none; opacity: 1; }
.rank-icon-wrapper.current img { filter: drop-shadow(0 0 8px rgba(59,130,246,0.6)); opacity: 1; transform: scale(1.15); }
.rank-icon-wrapper.locked img { filter: grayscale(100%); opacity: 0.5; }
.rank-item-info { flex: 1; }
.rank-item-name { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.rank-item-req { font-size: 12px; color: #64748b; font-weight: 500; }
.rank-badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.rank-badge.unlocked { background: #f0fdf4; color: #22c55e; border: 1px solid #bbf7d0; }
.rank-badge.current { background: #eff6ff; color: #3b82f6; border: 1px solid #bfdbfe; }
.rank-badge.locked { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }
