:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #fbfbfe;
  --line: #e8eaf2;
  --line-strong: #d8dceb;
  --text: #161925;
  --muted: #6f768b;
  --muted-2: #98a0b3;
  --accent: #d85fa0;
  --accent-strong: #c3478c;
  --accent-soft: #fbe7f1;
  --danger: #d94c4c;
  --danger-soft: #fff1f1;
  --shadow: 0 10px 30px rgba(23, 28, 45, 0.06);
  --shadow-soft: 0 4px 14px rgba(23, 28, 45, 0.05);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #fff 0%, #fcfcff 100%);
  border-right: 1px solid var(--line);
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 800;
  border: 1px solid #f4d5e5;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted);
}

.sidebar-search {
  margin-top: 2px;
}

.search-input,
.text-input,
.entry-title-input,
.main-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.search-input,
.text-input,
.entry-title-input {
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
}

.main-textarea {
  min-height: 420px;
  resize: vertical;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.7;
}

.search-input:focus,
.text-input:focus,
.entry-title-input:focus,
.main-textarea:focus {
  border-color: #e5a4c6;
  box-shadow: 0 0 0 4px rgba(216, 95, 160, 0.12);
}

.sidebar-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0 2px;
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.entry-item {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.entry-item:hover {
  transform: translateY(-1px);
  border-color: #e5d2de;
  box-shadow: var(--shadow-soft);
}

.entry-item.active {
  border-color: #efbfd7;
  background: linear-gradient(180deg, #fff 0%, #fff7fb 100%);
  box-shadow: 0 8px 20px rgba(216, 95, 160, 0.08);
}

.entry-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.entry-item-date {
  font-size: 12px;
  color: var(--muted);
}

.entry-item-mood {
  font-size: 18px;
}

.entry-item-preview {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.entry-item-tags {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main */
.main-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 18px;
}

.page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-area {
  flex: 1;
  padding: 0 32px 32px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.empty-state {
  padding: 52px 40px;
  text-align: center;
  max-width: 760px;
  margin: 36px auto 0;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

/* Editor layout */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}

.editor-main {
  padding: 26px;
}

.editor-main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.editor-heading-wrap {
  min-width: 0;
  flex: 1;
}

.entry-title-display {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.entry-title-input {
  font-size: 28px;
  font-weight: 800;
  height: 56px;
  padding: 0 0 8px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.entry-title-input:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.entry-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Read mode */
.entry-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.mood-pill {
  min-width: 46px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  border: 1px solid #f3d4e3;
}

.tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.entry-body {
  font-size: 15px;
  line-height: 1.8;
  color: #23283a;
  white-space: normal;
  word-break: break-word;
}

/* Edit mode */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field-help {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Side cards */
.editor-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  padding: 18px;
}

.side-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.mood-grid,
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mood-btn,
.emoji-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  height: 48px;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mood-btn:hover,
.emoji-btn:hover {
  transform: translateY(-1px);
  border-color: #e1bfd2;
  box-shadow: var(--shadow-soft);
}

.mood-btn.active {
  border-color: #ebb6d2;
  background: #fff4f9;
}

/* Buttons */
.btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(216, 95, 160, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 12px 22px rgba(216, 95, 160, 0.22);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
}

.btn-danger {
  background: var(--danger-soft);
  border-color: #f3c7c7;
  color: var(--danger);
}

/* Utility for login/signup pages too */
.content {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.muted {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1100px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-side {
    order: -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    padding: 22px 18px 14px;
  }

  .content-area {
    padding: 0 18px 22px;
  }
}

@media (max-width: 720px) {
  .editor-side {
    grid-template-columns: 1fr;
  }

  .editor-main-header,
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .editor-actions {
    width: 100%;
  }

  .topbar-actions .btn,
  .editor-actions .btn {
    flex: 1;
  }

  .entry-title-display {
    font-size: 26px;
  }

  .page-title {
    font-size: 26px;
  }

  .main-textarea {
    min-height: 280px;
  }
}
/* Auth pages */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background:
    radial-gradient(circle at top left, rgba(216, 95, 160, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(195, 71, 140, 0.1), transparent 24%),
    var(--bg);
}

.auth-side {
  padding: 42px 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.7));
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-strong);
  background: linear-gradient(135deg, #fff, var(--accent-soft));
  border: 1px solid #f1d2e2;
  box-shadow: var(--shadow-soft);
}

.auth-brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-brand-sub {
  font-size: 13px;
  color: var(--muted);
}

.auth-copy {
  max-width: 560px;
  margin-top: 28px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  max-width: 10.5ch;
}

.auth-copy p {
  margin: 18px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.auth-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  max-width: 560px;
}

.auth-feature-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.74);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.auth-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #f0d9e5;
  font-size: 20px;
}

.auth-feature-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.auth-feature-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(26, 31, 53, 0.08);
  padding: 30px 28px 26px;
  backdrop-filter: blur(12px);
}

.auth-card-top {
  text-align: center;
  margin-bottom: 22px;
}

.auth-mini-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff, var(--accent-soft));
  border: 1px solid #f0d6e3;
  font-size: 22px;
  box-shadow: var(--shadow-soft);
}

.auth-card-top h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-card-top p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.auth-field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input:focus {
  border-color: #e5a4c6;
  box-shadow: 0 0 0 4px rgba(216, 95, 160, 0.12);
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  height: 48px;
  border-radius: 14px;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 4px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
  transform: translateY(-50%);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: rgba(255,255,255,0.96);
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-secondary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-secondary-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-side {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 28px 22px;
  }

  .auth-copy h1 {
    max-width: none;
  }

  .auth-main {
    padding: 24px 18px;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 24px 18px 20px;
    border-radius: 22px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .auth-feature-list {
    gap: 10px;
  }

  .auth-feature-card {
    padding: 14px;
    border-radius: 16px;
  }
}

/* More premium journal/feed styling */
.topbar-left {
  min-width: 0;
}

.journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.journal-main {
  display: grid;
  gap: 20px;
}

.journal-side {
  display: grid;
  gap: 18px;
}

.hero-card {
  padding: 24px 24px 20px;
  background:
    radial-gradient(circle at top right, rgba(216,95,160,0.08), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #fffafd 100%);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-mood {
  min-width: 48px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0d6e3;
  display: inline-grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-soft);
}

.entry-panel {
  padding: 24px;
  min-height: 520px;
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.entry-item {
  width: 100%;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(252,252,255,1) 100%);
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.entry-item:hover {
  transform: translateY(-2px);
  border-color: #e7c7d9;
  box-shadow: 0 12px 24px rgba(23, 28, 45, 0.08);
}

.entry-item.active {
  border-color: #ebb6d2;
  background:
    linear-gradient(180deg, #fff8fc 0%, #fff 100%);
  box-shadow: 0 14px 28px rgba(216, 95, 160, 0.12);
}

.entry-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.entry-item-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.entry-item-mood {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #f0d6e3;
  box-shadow: var(--shadow-soft);
  font-size: 16px;
}

.entry-item-preview {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.entry-item-tags {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.entry-title-display {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.entry-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.entry-body {
  font-size: 15px;
  line-height: 1.9;
  color: #22283a;
  max-width: 72ch;
}

.tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.side-card {
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #fcfcff 100%);
}

.side-card-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-side {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .hero-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .journal-side {
    grid-template-columns: 1fr;
  }

  .entry-panel {
    padding: 18px;
  }

  .hero-card {
    padding: 18px;
  }
}

/* PREMIUM APP MODE */
.premium-app {
  background:
    radial-gradient(circle at top left, rgba(216,95,160,0.08), transparent 25%),
    radial-gradient(circle at bottom right, rgba(80,100,255,0.06), transparent 22%),
    var(--bg);
}

.premium-sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(252,252,255,0.92) 100%);
  box-shadow: inset -1px 0 0 var(--line);
}

.premium-main {
  padding-bottom: 20px;
}

.premium-topbar {
  padding-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.profile-email {
  font-size: 12px;
  color: var(--muted);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 32px 10px;
}

.stat-card {
  padding: 20px 20px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(252,252,255,1) 100%);
}

.stat-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.stat-mini-tags {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.premium-empty {
  max-width: 820px;
}

.premium-hero {
  border: none;
  background:
    radial-gradient(circle at top right, rgba(216,95,160,0.10), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
  box-shadow: 0 24px 44px rgba(216,95,160,0.12);
}

.premium-entry-panel {
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfcff 100%);
}

.premium-side .side-card {
  box-shadow: 0 12px 24px rgba(23, 28, 45, 0.05);
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.entry-card-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.entry-card-mood {
  font-size: 15px;
  background: #fff;
  border: 1px solid #f0d6e3;
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: var(--shadow-soft);
}

.entry-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.entry-card-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.entry-card-footer {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.45;
}

.entry-item {
  border-radius: 20px;
  padding: 16px;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 0 18px 10px;
  }
}

@media (max-width: 760px) {
  .profile-chip {
    width: 100%;
  }

  .topbar-right {
    width: 100%;
  }

  .topbar-right .btn {
    flex: 1;
  }
}
