:root {
  --navy: #17212f;
  --navy-soft: #26364a;
  --gold: #c7a66a;
  --gold-light: #f2d16b;
  --cream: #fbfaf7;
  --surface: #ffffff;
  --line: #e8e1d5;
  --ink: #202936;
  --muted: #687180;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.dashboard-navbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 20px 40px;

  background: #17212f;

  color: white;
}

.dashboard-logo {
  display: flex;

  align-items: center;

  gap: 12px;

  text-decoration: none;

  color: white;
}

.dashboard-logo img {
  width: 60px;

  height: 60px;

  object-fit: contain;
}

.dashboard-logo h2 {
  margin: 0;

  font-size: 1.5rem;
}

.dashboard-logo p {
  margin: 0;

  color: rgba(255, 255, 255, 0.75);

  font-size: 0.85rem;
}

.dashboard-nav-actions {
  display: flex;

  align-items: center;

  gap: 24px;
}

.dashboard-nav-actions a {
  text-decoration: none;

  color: white;

  font-weight: 600;
}

#logout-btn-nav {
  width: auto;

  padding: 12px 20px;

  background: var(--gold);

  color: #17212f;

  border: none;

  border-radius: 10px;
}

.dashboard-footer {
  margin-top: 50px;

  padding: 24px;

  text-align: center;

  color: #687180;
}
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;

  color: var(--ink);

  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(199, 166, 106, 0.22),
      transparent 27rem
    ),
    radial-gradient(
      circle at 94% 90%,
      rgba(38, 54, 74, 0.14),
      transparent 30rem
    ),
    linear-gradient(135deg, #fbfaf7 0%, #f1ede5 100%);

  font-family: Inter, "Segoe UI", sans-serif;
}

.dashboard-container {
  position: relative;
  width: min(100%, 900px);
  margin: 32px auto;
  padding: 48px;
  overflow: hidden;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(199, 166, 106, 0.28);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(23, 33, 47, 0.13);
  backdrop-filter: blur(16px);
}

.dashboard-container::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 42%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}

.dashboard-coin {
  width: 88px;

  margin-bottom: 10px;

  filter: drop-shadow(0 12px 16px rgba(199, 166, 106, 0.24));

  animation: coin-float 4s ease-in-out infinite;
}

.dashboard-container h1 {
  margin-bottom: 32px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.points-card {
  position: relative;
  padding: 34px;
  margin-bottom: 30px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 52%),
    linear-gradient(135deg, #a27a32, #d6af59 54%, #f2d16b);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(161, 121, 44, 0.24);
}

.points-card::after {
  position: absolute;
  right: -38px;
  bottom: -68px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.points-card p,
.points-card span {
  position: relative;
  z-index: 1;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  opacity: 0.94;
}

.points-card h2 {
  position: relative;
  z-index: 1;
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 11vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.progress-section,
.reward-card,
.referral-card,
.review-card {
  padding: 27px;
  background: linear-gradient(145deg, #ffffff, #fcfbf8);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(23, 33, 47, 0.045);
}

.progress-section {
  margin-bottom: 24px;
  text-align: left;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 11px;
  overflow: hidden;
  background: #eee9df;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(23, 33, 47, 0.08);
}

#progress-fill {
  width: 13%;
  height: 100%;
  background: linear-gradient(90deg, #a98033, var(--gold-light));
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(199, 166, 106, 0.45);
  transition: width 0.55s ease;
}

#points-left {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.feature-card {
  padding: 23px 17px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 9px 24px rgba(23, 33, 47, 0.04);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-10px);

  border-color: rgba(212, 165, 20, 0.35);

  box-shadow:
    0 22px 40px rgba(23, 33, 47, 0.1),
    0 0 30px rgba(212, 165, 20, 0.12);
}
.feature-icon {
  margin-bottom: 14px;

  font-size: 2.3rem;

  filter: drop-shadow(0 4px 10px rgba(199, 166, 106, 0.25));
}

.feature-card h3,
.reward-card h3,
.referral-card h3,
.review-card h3 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature-card p,
.referral-card p,
.review-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.referral-card {
  margin-bottom: 24px;
}

.referral-card h3,
.review-card h3,
.reward-card h3 {
  margin-bottom: 11px;
  font-size: 1.38rem;
}

.referral-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px 13px 18px;
  margin: 18px 0 14px;
  background: linear-gradient(135deg, #fffdf9, #f7f1e5);
  border: 1px dashed rgba(169, 128, 51, 0.82);
  border-radius: 14px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.referral-box:hover {
  transform: translateY(-3px);

  box-shadow: 0 14px 28px rgba(199, 166, 106, 0.16);
}

#referral-code {
  color: #765617;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.referral-buttons {
  display: flex;
  flex-shrink: 0;
  gap: 9px;
}

#copy-btn,
#share-btn,
#submit-review-btn,
#logout-btn,
.welcome-popup button {
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

#copy-btn,
#share-btn {
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 0.88rem;
}

#copy-btn,
#submit-review-btn,
.welcome-popup button {
  color: #34280f;
  background: linear-gradient(135deg, #b98e38, var(--gold-light));
  box-shadow: 0 9px 18px rgba(185, 142, 56, 0.22);
}

#share-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #218a4c, #25b865);
  box-shadow: 0 9px 18px rgba(33, 138, 76, 0.18);
}

#copy-btn:hover,
#share-btn:hover,
#submit-review-btn:hover,
.welcome-popup button:hover,
#logout-btn:hover {
  filter: brightness(1.06);

  transform: translateY(-3px) scale(1.02);

  box-shadow: 0 14px 28px rgba(23, 33, 47, 0.18);
}
.review-card {
  margin-bottom: 24px;
  text-align: left;
}

.review-card p {
  margin-bottom: 17px;
}

#review-text {
  width: 100%;
  min-height: 118px;
  padding: 15px;
  margin-bottom: 15px;
  resize: vertical;
  color: var(--ink);
  outline: none;
  background: #ffffff;
  border: 1px solid #d9dde1;
  border-radius: 12px;
  font: inherit;
  line-height: 1.55;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

#review-text:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 166, 106, 0.14);
}

#submit-review-btn {
  padding: 13px 20px;
  border-radius: 11px;
}

.reward-card {
  text-align: left;
}

.reward-card ul {
  list-style: none;
}

.reward-card li {
  position: relative;
  padding: 13px 0 13px 22px;
  color: var(--muted);
  border-bottom: 1px solid #eeeae2;
  font-size: 0.96rem;
}

.reward-card li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.reward-card li::before {
  position: absolute;
  left: 2px;
  color: var(--gold);
  content: "✦";
}

.note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

#logout-btn {
  padding: 13px 26px;
  margin-top: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-radius: 999px;
  box-shadow: 0 11px 22px rgba(23, 33, 47, 0.18);
}

.welcome-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: min(calc(100% - 32px), 430px);
  padding: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(199, 166, 106, 0.52);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(23, 33, 47, 0.25);
  transform: translate(-50%, -50%);
}

.welcome-popup h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.welcome-popup p {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.welcome-popup button {
  padding: 12px 24px;
  border-radius: 999px;
}

.hidden {
  display: none;
}

@keyframes coin-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 720px) {
  body {
    padding: 24px 14px;
  }

  .dashboard-container {
    padding: 34px 23px;
    border-radius: 22px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .dashboard-coin {
    width: 88px;
  }

  .points-card,
  .progress-section,
  .reward-card,
  .referral-card,
  .review-card {
    padding: 22px;
  }

  .referral-box {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .referral-buttons {
    width: 100%;
  }

  #copy-btn,
  #share-btn {
    flex: 1;
  }

  .progress-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  #submit-review-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.activity-card {
  padding: 32px;

  margin-bottom: 30px;

  background: linear-gradient(145deg, #ffffff, #fcfbf8);

  border: 1px solid var(--line);

  border-radius: 22px;

  box-shadow: 0 14px 30px rgba(23, 33, 47, 0.06);
}

.activity-card h3 {
  margin-bottom: 22px;

  color: var(--navy);

  font-family: Georgia, "Times New Roman", serif;

  font-size: 1.5rem;
}

.activity-item {
  padding: 18px 0;

  border-bottom: 1px solid #ece5d8;

  transition:
    transform 0.25s ease,
    padding-left 0.25s ease;
}

.activity-item:hover {
  transform: translateX(6px);

  padding-left: 8px;
}

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

.activity-title {
  margin-bottom: 6px;

  color: var(--navy);

  font-size: 1.1rem;

  font-weight: 700;
}

.activity-points {
  color: var(--gold);

  font-size: 1.15rem;

  font-weight: 800;
}

.activity-empty {
  color: var(--muted);
}

.activity-time {
  margin-top: 10px;

  color: #888;

  font-size: 0.85rem;

  font-style: italic;
}
.welcome-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  margin-bottom: 30px;
}

.welcome-subtitle {
  color: #777;

  margin-top: 8px;

  font-size: 0.95rem;
}

.profile-badge {
  width: 70px;

  height: 70px;

  border-radius: 50%;

  background: linear-gradient(135deg, #d4a514, #f2d57e);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 2rem;

  box-shadow: 0 10px 25px rgba(212, 165, 20, 0.25);
}

@media (max-width: 768px) {
  .dashboard-navbar {
    padding: 14px;
    gap: 10px;
    flex-direction: column;
  }

  .dashboard-logo {
    justify-content: center;
  }

  .dashboard-user {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .dashboard-nav-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  #user-name-nav {
    max-width: 120px;
  }
}

/* Old quick-links styles removed */
.dashboard-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.dashboard-links a,
.dashboard-links button {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 12px;

  text-decoration: none;

  color: white;

  font-size: 0.9rem;
  font-weight: 600;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-links button {
  background: var(--gold);
  color: var(--navy);
  border: none;
}
.dashboard-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 10px;
}

#user-avatar {
  width: 42px;
  height: 42px;

  border-radius: 50%;
  object-fit: cover;

  border: 2px solid var(--gold);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#user-name-nav {
  color: white;

  font-weight: 600;

  max-width: 140px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}
