 * { box-sizing: border-box; margin: 0; padding: 0; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes shimmer { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

  body-wrap { display: block; }

  .blog-root {
    font-family: 'Georgia', serif;
    background: #faf8f5;
    color: #1a1a1a;
    min-height: 600px;
    animation: fadeIn 0.5s ease;
  }

  /* LOGIN */
  .login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 580px;
    background: #faf8f5;
    gap: 0;
  }
  .login-card {
    background: #fff;
    border: 0.5px solid #d6cfc4;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeIn 0.6s ease;
  }
  .login-logo {
    width: 52px; height: 52px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #faf8f5;
    font-size: 22px;
    font-style: italic;
    font-family: Georgia, serif;
    margin-bottom: 4px;
  }
  .login-title { font-size: 20px; font-weight: 500; color: #1a1a1a; letter-spacing: -0.3px; }
  .login-sub { font-size: 13px; color: #888; font-family: Arial, sans-serif; }
  .login-card input {
    width: 100%;
    padding: 10px 14px;
    border: 0.5px solid #d6cfc4;
    border-radius: 8px;
    font-size: 14px;
    background: #faf8f5;
    color: #1a1a1a;
    outline: none;
    font-family: Arial, sans-serif;
    transition: border 0.2s;
  }
  .login-card input:focus { border-color: #1a1a1a; }
  .login-btn {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    color: #faf8f5;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
    letter-spacing: 0.3px;
  }
  .login-btn:hover { background: #333; }
  .err-msg { font-size: 12px; color: #c0392b; font-family: Arial, sans-serif; min-height: 18px; }

  /* MAIN LAYOUT */
  .main-layout { display: flex; min-height: 580px; }

  /* SIDEBAR */
  .sidebar {
    width: 200px;
    background: #fff;
    border-right: 0.5px solid #d6cfc4;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
  }
  .sidebar-brand {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 0 8px 16px;
    border-bottom: 0.5px solid #e8e3dc;
    margin-bottom: 8px;
    font-family: Georgia, serif;
    font-style: italic;
  }
  .nav-link {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: Arial, sans-serif;
    border: none; background: none; width: 100%; text-align: left;
  }
  .nav-link:hover { background: #f3ede5; color: #1a1a1a; }
  .nav-link.active { background: #1a1a1a; color: #faf8f5; }
  .nav-icon { font-size: 14px; width: 18px; text-align: center; }
  .sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 0.5px solid #e8e3dc;
  }
  .logout-btn {
    width: 100%; padding: 8px 10px;
    background: none; border: 0.5px solid #d6cfc4;
    border-radius: 8px; font-size: 12px; color: #888;
    cursor: pointer; font-family: Arial, sans-serif;
    transition: 0.2s;
  }
  .logout-btn:hover { background: #f3ede5; color: #1a1a1a; }

  /* CONTENT AREA */
  .content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: 580px;
    background: #faf8f5;
  }
  .section { display: none; animation: fadeIn 0.35s ease; }
  .section.active { display: block; }

  .page-title {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
    font-style: italic;
    border-bottom: 0.5px solid #d6cfc4;
    padding-bottom: 12px;
  }

  /* CARDS */
  .card {
    background: #fff;
    border: 0.5px solid #d6cfc4;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  .card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aaa;
    font-family: Arial, sans-serif;
    margin-bottom: 6px;
  }
  .card-value { font-size: 15px; color: #1a1a1a; font-family: Arial, sans-serif; line-height: 1.6; }

  /* FORM ELEMENTS */
  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 12px; color: #888; font-family: Arial, sans-serif; margin-bottom: 5px; letter-spacing: 0.3px; }
  .field input, .field textarea, .field select {
    width: 100%;
    padding: 9px 12px;
    border: 0.5px solid #d6cfc4;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #1a1a1a;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border 0.2s;
  }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: #1a1a1a; }
  .field textarea { resize: vertical; min-height: 100px; }
  .action-btn {
    padding: 9px 20px;
    background: #1a1a1a;
    color: #faf8f5;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: background 0.2s;
  }
  .action-btn:hover { background: #333; }
  .secondary-btn {
    padding: 9px 20px;
    background: transparent;
    color: #1a1a1a;
    border: 0.5px solid #d6cfc4;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: 0.2s;
    margin-left: 8px;
  }
  .secondary-btn:hover { background: #f3ede5; }

  /* GALLERY */
  .gallery-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
  .gallery-group h4 { font-size: 12px; color: #aaa; font-family: Arial, sans-serif; margin-bottom: 8px; letter-spacing: 0.4px; }
  .gallery-grid img {
    width: 90px; height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 0.5px solid #d6cfc4;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .gallery-grid img:hover { transform: scale(1.06); }

  /* BIRTHDAY LIST */
  .birthday-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 0.5px solid #e8e3dc;
    font-family: Arial, sans-serif;
    font-size: 13px;
  }
  .birthday-name { font-weight: 500; color: #1a1a1a; }
  .birthday-date { color: #888; font-size: 12px; }
  .birthday-badge {
    background: #f3ede5;
    color: #8b6f47;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
  }

  /* DIARY RESULT */
  .diary-result {
    background: #fff;
    border: 0.5px solid #d6cfc4;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    color: #555;
    font-family: Arial, sans-serif;
    line-height: 1.7;
    min-height: 60px;
    margin-top: 12px;
  }

  /* HOME STATS */
  .stats-row { display: flex; gap: 12px; margin-bottom: 1.5rem; }
  .stat-card {
    flex: 1;
    background: #fff;
    border: 0.5px solid #d6cfc4;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
  }
  .stat-num { font-size: 24px; font-weight: 500; color: #1a1a1a; font-family: Georgia, serif; }
  .stat-label { font-size: 11px; color: #aaa; font-family: Arial, sans-serif; margin-top: 2px; letter-spacing: 0.5px; text-transform: uppercase; }

  /* QUOTE */
  .quote-card {
    background: #1a1a1a;
    color: #e8e3dc;
    border-radius: 12px;
    padding: 1.5rem;
    font-style: italic;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: Georgia, serif;
  }
  .quote-attr { font-size: 12px; color: #888; margin-top: 8px; font-style: normal; font-family: Arial, sans-serif; }

  /* TOAST */
  .toast {
    position: absolute;
    bottom: 20px; right: 20px;
    background: #1a1a1a;
    color: #faf8f5;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
  }
  .toast.show { opacity: 1; }

  /* MOOD TRACKER */
  .mood-row { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
  .mood-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: 0.5px solid #d6cfc4;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #555;
    transition: 0.2s;
  }
  .mood-btn:hover, .mood-btn.selected { background: #1a1a1a; color: #faf8f5; border-color: #1a1a1a; }

  .upcoming-badge {
    display: inline-block;
    background: #fef3e2;
    color: #8b6f47;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
  }