:root {
    /* Backgrounds */
    --bg: #0a0a0b;
    --bg2: #111113;
    --bg3: #18181c;
    --surface: #1e1e24;
    --surface2: #26262e;

    /* Borders */
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(255, 255, 255, 0.13);

    /* Text */
    --text: #f0ede8;
    --text2: #a09a90;
    --text3: #6b6560;

    /* Accent (Global Gold) */
    --accent: #e8c547;
    --accent2: #d4a843;
    --accent-glow: rgba(232, 197, 71, 0.15);

    /* Channel Palette */
    --wellness: #4ecb71;
    --ignite: #ef4444;
    --playbook: #f97316;
    --wanderlust: #a855f7; /* kept newer value. removed #ca9bf7 */
    --news: #3b82f6;
    --glamvalour: #ec4899;
    --cosmos: #e8c547;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .45);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .55);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, .65);

    /* Header */
    --header-bg: rgba(10, 10, 11, 0.94);

    /* Effects */
    --grain-opacity: 0.35;
    --trans: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --max-w: 1280px;
    --article-w: 700px;
    --radius: 5px;
    --radius-lg: 11px;

    /* Typography */
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-mono: "DM Mono", "Courier New", monospace;

    /* Theme toggle icon */
    --theme-icon: '☀️';
}

/* ── Nav profile avatar ──────────────────────────── */
.nav-profile {
  position: relative;
}

.nav-avatar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 2px 2px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color .15s;
}
.nav-avatar:hover { border-color: var(--accent); }

.nav-avatar__img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-avatar__initials {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .05em;
  flex-shrink: 0;
}

.nav-avatar__caret {
  color: var(--text3);
  padding-right: 6px;
  transition: transform .2s;
  display: flex;
  align-items: center;
}
.nav-avatar__caret.open { transform: rotate(180deg); }

/* ── Dropdown panel ──────────────────────────────── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  z-index: 200;
  overflow: hidden;
}

/* Alpine transitions */
.nav-dropdown--enter    { transition: opacity .15s ease, transform .15s ease; }
.nav-dropdown--hidden   { opacity: 0; transform: translateY(-6px); }
.nav-dropdown--visible  { opacity: 1; transform: translateY(0); }

.nav-dropdown__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
}

.nav-dropdown__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-dropdown__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-dropdown__avatar span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.nav-dropdown__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dropdown__email {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}

.nav-dropdown__divider {
  height: 1px;
  background: var(--border);
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text2);
  transition: background .12s, color .12s;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}
.nav-dropdown__item:hover {
  background: var(--border-soft);
  color: var(--text1);
}
.nav-dropdown__item--danger { color: var(--accent); }
.nav-dropdown__item--danger:hover { background: rgba(201,75,26,.08); }
