:root {
  --bg-color: #050a1f;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #ccff00;
  --sidebar-width: 260px;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  display: block;
  /* Changed from flex */
  min-height: 100vh;
}

/* Sidebar */
/* Removed Sidebar styles */

/* Main Content */
.main-content {
  margin-left: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
  gap: 1rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.welcome-text {
  flex: 1;
  text-align: center;
}

/* Hamburger Menu */
.menu-container {
  position: relative;
}

.hamburger-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  /* Above dropdown */
}

.hamburger-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(10, 15, 35, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0.8rem;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;

  /* Animation State: Hidden */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hamburger-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Standalone Logout Button */
.logout-header-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 1.1rem;
}

.logout-header-btn:hover {
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.3);
  color: #ff3b30;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.15);
}

.logout-header-btn.with-text {
  width: auto;
  padding: 0 1.2rem;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
}

.edit-photo-btn {
  position: absolute;
  bottom: 0px;
  right: 5px;
  background: var(--accent);
  color: #000;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  font-size: 0.9rem;
  border: 4px solid var(--bg-color);
}
.edit-photo-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.menu-item i {
  width: 20px;
  text-align: center;
  color: var(--accent);
}

.menu-divider {
  height: 1px;
  background: var(--card-border);
  margin: 0.5rem 0;
}

.menu-item.logout:hover {
  background: rgba(255, 0, 0, 0.1);
  color: #ff4d4d;
}

.welcome-text h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.welcome-text p {
  color: var(--text-muted);
}

.user-name {
  color: var(--accent);
}

.avatar {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Grids */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.stat-card {
  aspect-ratio: 4 / 2;
  /* Make square */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stat-card h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.stat-card .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  /* Larger number */
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.stat-card .desc {
  font-size: 0.9rem;
  color: var(--accent);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.icon-btn,
.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.view-btn:hover {
  color: var(--text-main);
  text-decoration: underline;
}

/* Orders */
.order-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.order-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.order-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.order-info h4 {
  font-weight: 600;
}

.status {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.status.in-progress {
  background: rgba(204, 255, 0, 0.15);
  color: var(--accent);
}

.status.review {
  background: rgba(255, 165, 0, 0.15);
  color: orange;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Project Items */
.project-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.project-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.project-info h4 {
  font-weight: 600;
}

.empty-project {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.loading-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Sessions */
.session-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 12px;
}

.date-box {
  background: var(--card-bg);
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.date-box .day {
  font-size: 1.2rem;
  font-weight: 700;
}

.date-box .month {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.session-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.session-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.join-btn {
  margin-left: auto;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.3s;
}

.join-btn:hover {
  background: #fff;
}

.join-btn.disabled {
  background: #333;
  color: #666;
  cursor: default;
}

/* Palettes */
.palettes-section h2 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.palettes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.palette-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.palette-card:hover {
  border-color: var(--accent);
}

.colors {
  display: flex;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.color {
  flex: 1;
}

.palette-card span {
  font-size: 0.9rem;
  font-weight: 500;
}

.add-new {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px dashed var(--card-border);
  background: transparent;
}

.add-new i {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* Font Preview */
.font-preview {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.font-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- New Profile Layout Styles --- */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 2rem;
}

.welcome-text-modern {
  margin-bottom: 0.5rem;
}

.welcome-text-modern h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.welcome-text-modern .user-name {
  color: var(--accent);
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-main);
}

/* Quick Links Grid */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-link-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.quick-link-card i {
  font-size: 1.8rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.quick-link-card span {
  font-weight: 500;
  font-size: 0.95rem;
}

.quick-link-card:hover {
  background: rgba(204, 255, 0, 0.05); /* slightly tinted with accent */
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.quick-link-card:hover i {
  transform: scale(1.1);
}

/* Profile Card Glass */
.profile-card-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-photo-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), #00ff88);
  margin-bottom: 1.5rem;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-color);
}

.side-user-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.user-email {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Support Card */
.support-card-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 1.8rem 1.5rem;
  backdrop-filter: blur(12px);
}

.support-card-glass h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.support-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.support-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.support-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.support-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.support-details a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.support-details a:hover {
  color: var(--accent);
}

.social-links-glass {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s;
  border: 1px solid var(--card-border);
}

.social-icon:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
  border-color: var(--accent);
}

/* Consultation Card */
.consultation-card {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-consultation {
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-consultation i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.1);
}

.request-btn {
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.request-btn:hover {
  background: var(--accent);
  color: #000;
}

@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-sidebar {
    grid-template-columns: 1fr;
  }

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

  .top-bar {
    flex-direction: row;
    align-items: center;
  }

  .welcome-text-modern h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  
  .palettes-grid {
    grid-template-columns: 1fr;
  }
}