.credits-people { display: grid; grid-template-columns: 1fr; gap: 10px; }
.credits-person { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.credits-avatar { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; color:#fff; letter-spacing:.5px; background: linear-gradient(135deg, #6D83F2, #86E3CE); }
.credits-name { font-size:14px; font-weight:600; }

/* Pioneer Thanks Section (Easter Egg) */
.pioneer-thanks-section {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.05) 0%, rgba(0, 122, 255, 0.03) 100%);
    border: 1px solid rgba(88, 86, 214, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-top: 8px;
}

.pioneer-thanks-message {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(88, 86, 214, 0.1);
}

.pioneer-thanks-message p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.pioneer-credits-person {
    border-bottom-color: rgba(88, 86, 214, 0.15);
    padding: 12px 0;
}

.pioneer-credits-avatar {
    background: linear-gradient(135deg, #5856D6, #007AFF) !important;
    box-shadow: 0 2px 8px rgba(88, 86, 214, 0.3);
    border: 2px solid rgba(88, 86, 214, 0.2);
}

.pioneer-credits-name {
    color: #5856D6;
    font-weight: 600;
    font-size: 15px;
}

/* About tab should keep a neutral, professional system font regardless of app font settings */
.profile-tab-pane[data-pane="about"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  line-height: 1.5;
}
.profile-tab-pane[data-pane="about"] .tab-pane-title { margin-bottom: 8px; }
.profile-tab-pane[data-pane="about"] .legal-content { margin: 8px 0 0 0; }
.profile-tab-pane[data-pane="about"] .about-section { margin-bottom: 18px; }

@media (min-width: 700px) {
  .credits-people { grid-template-columns: repeat(2, 1fr); }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --primary-hover: #0051D5;
    --background: #F5F5F7;
    --surface: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-tertiary: #AEAEB2;
    --border: #D2D2D7;
    --border-hover: #C7C7CC;
    --hover: rgba(0, 0, 0, 0.04);
    --hover-active: rgba(0, 0, 0, 0.08);
    --shadow: rgba(0, 0, 0, 0.1);
    --favorite: #FF9500;
    
    /* Font sizes */
    --font-size-base: 15px;
    --font-size-small: 13px;
    --font-size-medium: 15px;
    --font-size-large: 17px;
    
    /* Font size multipliers */
    --font-size-h1-multiplier: 2;
    --font-size-h2-multiplier: 1.75;
    --font-size-h3-multiplier: 1.5;
}

/* Font size classes */
body.font-size-small {
    --font-size-base: var(--font-size-small);
    --font-size-multiplier: 0.87; /* 13/15 */
}

body.font-size-medium {
    --font-size-base: var(--font-size-medium);
    --font-size-multiplier: 1; /* 15/15 */
}

body.font-size-large {
    --font-size-base: var(--font-size-large);
    --font-size-multiplier: 1.13; /* 17/15 */
}

body.font-size-xlarge {
    --font-size-base: 19px;
    --font-size-multiplier: 1.27; /* 19/15 */
}

/* Default multiplier */
:root {
    --font-size-multiplier: 1;
}

/* Theme color variables */
body.theme-blue {
    --primary-color: #007AFF;
    --primary-hover: #0051D5;
}

body.theme-purple {
    --primary-color: #AF52DE;
    --primary-hover: #8E44AD;
}

body.theme-green {
    --primary-color: #34C759;
    --primary-hover: #28A745;
}

body.theme-orange {
    --primary-color: #FF9500;
    --primary-hover: #E68900;
}

body.theme-red {
    --primary-color: #FF3B30;
    --primary-hover: #D70015;
}

body.theme-pink {
    --primary-color: #FF2D55;
    --primary-hover: #E91E63;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--font-size-base);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Font Family Classes */
body.font-family-system {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body.font-family-serif {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

body.font-family-sans-serif {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body.font-family-monospace {
    font-family: 'Courier New', Courier, monospace;
}

body.font-family-rounded {
    font-family: 'SF Rounded', 'Apple Color Emoji', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    letter-spacing: -0.2px;
}

body.font-family-comic {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Relief', cursive;
    letter-spacing: 0.3px;
}

body.font-family-marker {
    font-family: 'Marker Felt', 'Comic Sans MS', 'Arial Rounded MT Bold', cursive;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Logout Animation */
.logout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.logout-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.logout-animation {
    text-align: center;
    color: white;
    animation: logoutFadeIn 0.5s ease-out;
}

.logout-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: logoutWave 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

.logout-text {
    font-size: calc(24px * var(--font-size-multiplier));
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    animation: logoutPulse 2s ease-in-out infinite;
}

.logout-spinner {
    display: inline-block;
    margin-top: 20px;
}

.spinner-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: logoutSpin 1s linear infinite;
    margin: 0 auto;
}

@keyframes logoutFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoutWave {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(14deg) scale(1.05);
    }
    50% {
        transform: rotate(-8deg) scale(1);
    }
    75% {
        transform: rotate(14deg) scale(1.05);
    }
}

@keyframes logoutPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes logoutSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Page transition animations */
#journal-page {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

#journal-page.logging-out {
    opacity: 0;
    transform: translateY(-20px);
}

#login-page {
    transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}

#login-page.logging-in {
    animation: loginFadeIn 0.6s ease-out;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Animation */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.login-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.login-animation {
    text-align: center;
    color: white;
    animation: loginAnimationFadeIn 0.5s ease-out;
}

.login-icon {
    font-size: 100px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-checkmark {
    width: 100px;
    height: 100px;
    position: relative;
    animation: loginScaleIn 0.6s ease-out;
}

.login-checkmark svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: white;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: loginStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    fill: none;
}

.checkmark-check {
    stroke: white;
    stroke-width: 3;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: loginStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-text {
    font-size: calc(32px * var(--font-size-multiplier));
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    animation: loginTextSlide 0.6s ease-out 0.3s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-subtext {
    font-size: calc(18px * var(--font-size-multiplier));
    font-weight: 500;
    opacity: 0.9;
    animation: loginTextSlide 0.6s ease-out 0.5s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

@keyframes loginAnimationFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loginScaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes loginStroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes loginTextSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Page */
#login-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    width: 100%;
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: opacity;
}

.background-slide.active {
    opacity: 1;
}

/* Background overlay - subtle for the floating card */
.login-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.02);
    z-index: 1;
    pointer-events: none;
}

.login-split-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin: 0 auto;
    padding: 0;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 600px;
}

/* Large desktop screens */
@media (min-width: 1400px) {
    .login-split-container {
        max-width: 1200px;
        border-radius: 28px;
    }
    
    .login-forms-side,
    .login-welcome-side {
        padding: 70px 60px;
    }
    
    .welcome-title-main {
        font-size: 48px;
    }
    
    .welcome-description {
        font-size: 18px;
    }
}

/* Medium-large desktop screens */
@media (min-width: 1024px) and (max-width: 1399px) {
    .login-split-container {
        max-width: 1000px;
    }
    
    .login-forms-side,
    .login-welcome-side {
        padding: 60px 50px;
    }
}

.login-forms-side {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    background: #ffffff;
    position: relative;
    z-index: 2;
    border-right: 1px solid #f3f4f6;
}

.login-welcome-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    z-index: 2;
}

.welcome-content {
    text-align: center;
    color: #78350f;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.welcome-title-main {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.2;
    color: #78350f;
}

.welcome-description {
    font-size: 17px;
    color: #92400e;
    line-height: 1.7;
    margin-bottom: 44px;
    font-weight: 400;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.welcome-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.75);
    padding: 16px 22px;
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 300px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.welcome-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    font-weight: 500;
    color: #78350f;
    text-align: left;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: left;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 400px;
}

.login-beta-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    z-index: 100;
    white-space: nowrap;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-beta-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

@keyframes pulseFloat {
    0%, 100% {
        transform: rotate(-25deg) translateY(0px) scale(1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: rotate(-25deg) translateY(-5px) scale(1.05);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    margin-bottom: 36px;
    text-align: left;
}

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

.login-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f2937;
    letter-spacing: -1px;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 15px;
    color: #9ca3af;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form.active-form {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}

.login-form.hidden-form {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.form-field {
    text-align: left;
}

.field-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    z-index: 1;
    transition: color 0.2s ease;
    pointer-events: none;
}

.login-input:focus + .input-icon,
.input-container:focus-within .input-icon {
    color: #f59e0b;
}

.login-input.error {
    border-color: #FF3B30;
    background-color: #FFF5F5;
    animation: shake 0.3s ease-in-out;
}

.input-container:focus-within .login-input:not(.error) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.error-message::before {
    content: '⚠';
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 12px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.login-divider span {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 0 18px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.toggle-auth-button {
    background: transparent;
    border: none;
    color: #f59e0b;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.toggle-auth-button:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* Signup Progress Indicator */
.signup-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 24px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transform: scale(1.05);
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: #8E8E93;
    transition: color 0.3s;
}

.progress-step.active .step-label {
    color: #f59e0b;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #E5E5E7;
    margin: 0 8px;
    position: relative;
    max-width: 80px;
    transition: background 0.3s;
}

.progress-line.active {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    margin-bottom: 32px;
}

.welcome-message .email-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.welcome-message h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.welcome-message p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 10px;
    letter-spacing: -0.1px;
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

.welcome-message strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Password Reset Progress */
.reset-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 20px 0;
}

.reset-step-content {
    display: block;
}

.reset-step-content.hidden {
    display: none;
}

/* Ensure password reset form fits in card */
#password-reset-form {
    width: 100%;
    max-width: 100%;
}

#password-reset-form .welcome-message {
    margin-bottom: 28px;
}

#password-reset-form .welcome-message h2 {
    font-size: 26px;
}

#password-reset-form .welcome-message .email-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

#password-reset-form .form-field {
    margin-bottom: 0;
}

#password-reset-form .reset-progress {
    margin-bottom: 32px;
}

/* Responsive adjustments for password reset */
@media (max-width: 1024px) {
    #password-reset-form .welcome-message h2 {
        font-size: 24px;
    }
    
    #password-reset-form .welcome-message .email-icon {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    #password-reset-form .welcome-message h2 {
        font-size: 22px;
    }
    
    #password-reset-form .welcome-message .email-icon {
        font-size: 44px;
    }
    
    #password-reset-form .reset-progress {
        margin-bottom: 28px;
        padding: 16px 0;
    }
}

/* Hints */
.password-hint,
.name-hint {
    font-size: 13px;
    color: #8E8E93;
    margin-top: 6px;
    font-weight: 400;
}

.login-input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    font-size: 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 400;
}

.login-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.login-input:hover:not(:focus) {
    border-color: #d1d5db;
}

.login-input::placeholder {
    color: #8E8E93;
}

.login-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover:not(:disabled)::before {
    left: 100%;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

#login-button-text {
    transition: opacity 0.2s;
}

.login-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Journal Page */
#journal-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
}

#stats-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    background: var(--background);
}

.labs-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border-radius: 20px;
    font-size: calc(11px * var(--font-size-multiplier));
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: labsBadgePulse 2s ease-in-out infinite;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.labs-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

.labs-badge:active {
    transform: scale(0.98);
}

.labs-badge-icon {
    font-size: calc(14px * var(--font-size-multiplier));
}

.labs-badge-text {
    font-size: calc(12px * var(--font-size-multiplier));
}

@keyframes labsBadgePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
        transform: scale(1.02);
    }
}

.labs-section {
    padding: 0;
}

.labs-description {
    margin-bottom: 28px;
}

.labs-description p {
    font-size: calc(15px * var(--font-size-multiplier));
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    letter-spacing: -0.1px;
}

.labs-toggle-container {
    display: flex;
    align-items: center;
}

.labs-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.labs-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.labs-toggle-slider {
    position: relative;
    width: 50px;
    height: 28px;
    background: var(--border);
    border-radius: 28px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.labs-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.labs-toggle-input:checked + .labs-toggle-slider {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.labs-toggle-input:checked + .labs-toggle-slider::before {
    transform: translateX(22px);
}

.labs-toggle-input:focus + .labs-toggle-slider {
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}

.labs-toggle-text {
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tools-icon-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
}

.tools-icon-btn:hover {
    background: var(--background);
    border-color: var(--primary-color);
}

/* Profile Dropdown Styles */
.profile-dropdown-container {
    position: relative;
}

.profile-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 6px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 40px;
}

/* Gold tier profile trigger */
.profile-trigger-gold {
    border-color: #FFC107;
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.15);
}

.profile-trigger-gold .header-profile-photo,
.profile-trigger-gold .header-profile-placeholder {
    border-color: #FFC107;
    border-width: 2.5px;
}

.profile-trigger-gold:hover {
    border-color: #FF9500;
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.2);
}

/* Platinum tier profile trigger */
.profile-trigger-platinum {
    border-color: #C7C7CC;
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(199, 199, 204, 0.2);
}

.profile-trigger-platinum .header-profile-photo,
.profile-trigger-platinum .header-profile-placeholder {
    border-color: #C7C7CC;
    border-width: 2.5px;
}

.profile-trigger-platinum:hover {
    border-color: #AEAEB2;
    box-shadow: 0 0 0 3px rgba(174, 174, 178, 0.25);
}

/* Admin tier profile trigger */
.profile-trigger-admin {
    border-color: #FF3B30;
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.15);
}

.profile-trigger-admin .header-profile-photo,
.profile-trigger-admin .header-profile-placeholder {
    border-color: #FF3B30;
    border-width: 2.5px;
}

.profile-trigger-admin:hover {
    border-color: #D70015;
    box-shadow: 0 0 0 3px rgba(215, 0, 21, 0.2);
}

.profile-dropdown-trigger:hover {
    background: var(--hover);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.profile-dropdown-trigger:active {
    transform: scale(0.98);
}

.header-profile-photo,
.header-profile-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid var(--border);
}

.header-profile-photo.hidden,
.header-profile-placeholder.hidden {
    display: none;
}

.header-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5F5F7 0%, #E8E8ED 100%);
    color: var(--text-secondary);
    border: none;
}

.dropdown-chevron {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 2px;
}

.profile-dropdown-trigger:hover .dropdown-chevron {
    color: var(--text-primary);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    max-width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 1000;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown.hidden {
    display: none;
}

.dropdown-header {
    padding: 16px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Gold tier header */
.dropdown-header-gold {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 149, 0, 0.1) 100%);
    border-bottom-color: rgba(255, 193, 7, 0.3);
}

.dropdown-header-gold .greeting-text,
.dropdown-header-gold .greeting-name {
    color: #B8860B;
}

/* Platinum tier header */
.dropdown-header-platinum {
    background: linear-gradient(135deg, rgba(199, 199, 204, 0.2) 0%, rgba(174, 174, 178, 0.15) 100%);
    border-bottom-color: rgba(199, 199, 204, 0.4);
}

.dropdown-header-platinum .greeting-text,
.dropdown-header-platinum .greeting-name {
    color: #8E8E93;
}

/* Admin tier header */
.dropdown-header-admin {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.15) 0%, rgba(215, 0, 21, 0.1) 100%);
    border-bottom-color: rgba(255, 59, 48, 0.3);
}

.dropdown-header-admin .greeting-text,
.dropdown-header-admin .greeting-name {
    color: #D70015;
}

.dropdown-greeting {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 0;
}

.greeting-text {
    font-size: calc(15px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
}

.greeting-name {
    font-size: calc(17px * var(--font-size-multiplier));
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.dropdown-badge-container {
    margin-top: 8px;
}

.tier-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: calc(11px * var(--font-size-multiplier));
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1.5px solid;
}

.tier-badge-small.tier-badge-member {
    background: rgba(142, 142, 147, 0.1);
    color: #8E8E93;
    border-color: rgba(142, 142, 147, 0.3);
}

.tier-badge-small.tier-badge-gold {
    background: rgba(255, 193, 7, 0.15);
    color: #FF9500;
    border-color: rgba(255, 193, 7, 0.4);
}

.tier-badge-small.tier-badge-gold::before {
    content: '⭐';
    font-size: calc(10px * var(--font-size-multiplier));
    margin-right: 2px;
}

.tier-badge-small.tier-badge-platinum {
    background: rgba(199, 199, 204, 0.2);
    color: #C7C7CC;
    border-color: rgba(199, 199, 204, 0.5);
}

.tier-badge-small.tier-badge-platinum::before {
    content: '💎';
    font-size: calc(10px * var(--font-size-multiplier));
    margin-right: 2px;
}

.tier-badge-small.tier-badge-admin {
    background: rgba(255, 59, 48, 0.15);
    color: #FF3B30;
    border-color: rgba(255, 59, 48, 0.4);
}

.tier-badge-small.tier-badge-admin::before {
    content: '👑';
    font-size: calc(10px * var(--font-size-multiplier));
    margin-right: 2px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-menu {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 500;
    text-align: left;
    transition: all 0.15s ease;
    font-family: inherit;
}

.dropdown-item:hover {
    background: var(--hover);
}

.dropdown-item:active {
    background: var(--hover-active);
    transform: scale(0.98);
}

.dropdown-item svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.dropdown-item:hover svg {
    color: var(--text-primary);
}

.dropdown-item-danger {
    color: #FF3B30;
}

.dropdown-item-danger:hover {
    background: rgba(255, 59, 48, 0.1);
}

.dropdown-item-danger svg {
    color: #FF3B30;
}

/* Journal Header Section - Apple-like Design */
.journal-header-section {
    padding: 48px 0 32px;
    margin: 0;
    text-align: left;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.journal-title {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -1.2px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.journal-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: -0.2px;
    line-height: 1.4;
}

/* Info Banners */
.info-banner {
    margin: 0 0 20px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
}

.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.announcement-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease-out;
    position: relative;
    z-index: 100;
}

.announcement-banner.warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.announcement-banner.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.announcement-banner.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    position: relative;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.banner-icon {
    font-size: 28px;
    flex-shrink: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.banner-message {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 8px;
}

.banner-action-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.banner-action-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.banner-action-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.3);
}

.banner-description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

.banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.banner-close:active {
    transform: scale(0.95);
}

/* Footer */
.journal-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 32px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 24px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-brand {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.2px;
}

.beta-badge-footer {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.footer-separator {
    color: var(--text-tertiary);
    font-size: 12px;
    user-select: none;
    opacity: 0.4;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-logout-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer-logout-btn:hover {
    background: var(--hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.footer-logout-btn:active {
    transform: scale(0.98);
    background: var(--hover-active);
}

/* Feedback Button */
/* Floating Action Button */
.fab-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-size: 0;
}

.fab-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 122, 255, 0.5);
}

.fab-button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

.fab-button svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

/* Responsive: Stack login split layout on tablets */
@media (max-width: 1024px) {
    .login-split-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        border-radius: 20px;
        min-height: auto;
    }
    
    .login-forms-side {
        padding: 50px 40px;
        border-right: none;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .login-welcome-side {
        padding: 50px 40px;
    }
    
    .welcome-title-main {
        font-size: 36px;
    }
    
    .welcome-description {
        font-size: 15px;
        margin-bottom: 36px;
    }
    
    .welcome-feature {
        max-width: 100%;
    }
    
    .login-beta-badge {
        top: 16px;
        right: 16px;
    }
}

/* Responsive: Adjust for smaller tablets and large phones */
@media (max-width: 768px) {
    #login-page {
        padding: 20px;
    }
    
    .login-split-container {
        max-width: 100%;
        border-radius: 16px;
        min-height: auto;
    }
    
    .login-forms-side {
        padding: 40px 30px;
    }
    
    .login-welcome-side {
        padding: 40px 30px;
    }
    
    .login-header {
        margin-bottom: 32px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .login-subtitle {
        font-size: 15px;
    }
    
    .welcome-title-main {
        font-size: 32px;
    }
    
    .welcome-icon-large {
        font-size: 64px;
        margin-bottom: 24px;
    }
    
    .welcome-description {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .welcome-feature {
        padding: 12px 18px;
    }
    
    .feature-icon {
        font-size: 24px;
    }
    
    .feature-text {
        font-size: 14px;
    }
    
    .login-beta-badge {
        top: 12px;
        right: 12px;
        font-size: 11px;
        padding: 5px 14px;
    }
    
    .mobile-notice-content {
        padding: 40px 32px;
        max-width: 90%;
    }
    
    .mobile-notice-icon {
        font-size: 64px;
    }
    
    .mobile-notice-title {
        font-size: 28px;
    }
    
    .mobile-notice-message {
        font-size: 15px;
    }
}

/* Responsive: Very small screens */
@media (max-width: 480px) {
    #login-page {
        padding: 16px;
    }
    
    .login-split-container {
        border-radius: 12px;
        min-height: auto;
    }
    
    .login-forms-side {
        padding: 32px 24px;
    }
    
    .login-welcome-side {
        padding: 32px 24px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .welcome-title-main {
        font-size: 28px;
    }
    
    .welcome-icon-large {
        font-size: 56px;
    }
    
    .login-beta-badge {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 4px 12px;
    }
    
    .mobile-notice-content {
        padding: 36px 24px;
        border-radius: 20px;
    }
    
    .mobile-notice-icon {
        font-size: 56px;
        margin-bottom: 20px;
    }
    
    .mobile-notice-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .mobile-notice-message {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
    .mobile-notice-button {
        padding: 12px 28px;
        font-size: 15px;
    }
}

/* Stack on very small screens (shouldn't happen for desktop/iPad focus) */
@media (max-width: 768px) {
    .login-split-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .login-forms-side {
        padding: 40px 24px;
        box-shadow: none;
    }
    
    .login-welcome-side {
        padding: 40px 24px;
        min-height: 400px;
    }
    
    .welcome-title {
        font-size: 36px;
        text-align: center;
    }
    
    .welcome-content {
        text-align: center;
    }
    
    .quote-container {
        padding: 32px 24px;
    }
    
    .inspirational-quote {
        font-size: 20px;
    }
    
    .quote-author {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .fab-button {
        width: 56px;
        height: 56px;
        bottom: 24px;
        right: 24px;
    }
    
    .fab-button svg {
        width: 28px;
        height: 28px;
    }
}

.feedback-button-container {
    position: fixed;
    bottom: 112px;
    right: 24px;
    z-index: 999;
}

.feedback-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    font-family: inherit;
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.feedback-button:active {
    transform: translateY(0);
}

.feedback-button svg {
    width: 20px;
    height: 20px;
}

/* Feedback Modal */
.feedback-modal-content {
    max-width: 550px;
    width: 100%;
}

.feedback-form {
    padding: 24px;
}

.feedback-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Notification Bell */
.notification-bell-container {
    position: relative;
    margin-right: 12px;
}

.notification-bell-btn {
    position: relative;
    padding: 8px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.notification-bell-btn:hover {
    background: var(--hover);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.notification-bell-btn:active {
    transform: scale(0.95);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FF3B30;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification-badge.hidden {
    display: none;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: 500px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notification-dropdown.hidden {
    display: none;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.notification-dropdown-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.notification-mark-all-read {
    font-size: 13px;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.notification-mark-all-read:hover {
    background: var(--hover);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.notification-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notification-empty-text {
    font-size: 15px;
    margin: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: var(--hover);
}

.notification-item.read {
    opacity: 0.7;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.notification-unread-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.notification-dropdown-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.notification-clear-all {
    font-size: 13px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.notification-clear-all:hover {
    background: var(--hover);
    color: var(--text-primary);
}

.header-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 16px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 12px;
    flex-shrink: 0;
    pointer-events: none;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: calc(15px * var(--font-size-multiplier));
    font-family: inherit;
    padding: 0;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.clear-search-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.clear-search-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

.clear-search-btn.hidden {
    display: none;
}

/* Filter and Sort Container */
.filter-sort-container {
    display: none; /* Hidden by default */
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 20px;
    flex-wrap: wrap;
    background: transparent;
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.filter-sort-container.enabled {
    display: flex;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: calc(12px * var(--font-size-multiplier));
    color: var(--text-tertiary);
    font-weight: 400;
    white-space: nowrap;
}

.filter-select {
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    margin-left: 8px;
}

.custom-date-range.hidden {
    display: none;
}

.date-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: calc(13px * var(--font-size-multiplier));
    font-family: inherit;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.date-input:hover {
    background: var(--border);
}

.date-input:focus {
    background: var(--border);
}

.date-separator {
    font-size: calc(12px * var(--font-size-multiplier));
    color: var(--text-tertiary);
    margin: 0 4px;
}

.clear-date-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.clear-date-btn:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* Responsive adjustments for filter/sort */
@media (max-width: 768px) {
    .filter-sort-container {
        padding: 10px 16px;
        gap: 8px;
    }
    
    .journal-header > .header-top-row {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .filter-group,
    .sort-group {
        flex: 1;
        min-width: 140px;
    }
    
    .filter-select {
        flex: 1;
        min-width: 0;
    }
    
    .custom-date-range {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .date-input {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .filter-sort-container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px;
    }
    
    .filter-group,
    .sort-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
}

.journal-header {
    background: var(--surface);
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.journal-header > .header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}

.icon-button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.icon-button:active {
    transform: scale(0.95);
}

#logout-btn {
    background: var(--text-secondary);
}

#logout-btn:hover {
    background: #6E6E73;
}

.journal-main {
    flex: 1;
    padding: 0 40px 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    overflow-y: auto;
    padding-bottom: 60px;
    padding-top: 0;
    min-height: auto;
}

/* Responsive adjustments for journal header */
@media (max-width: 768px) {
    .journal-header-section {
        padding: 32px 0 24px;
        margin-bottom: 24px;
    }
    
    .journal-title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }
    
    .journal-subtitle {
        font-size: 15px;
    }
}

.entries-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding: 0;
    padding-bottom: 32px;
    margin-top: 0;
    min-height: auto;
}

/* Desktop: 4 columns */
@media (min-width: 1400px) {
    .entries-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px;
    }
    .journal-main {
        padding: 0 48px 48px;
    }
}

/* Large tablets/Desktop: 3 columns */
@media (min-width: 1024px) and (max-width: 1399px) {
    .entries-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    .journal-main {
        padding: 0 40px 40px;
    }
}

/* iPad: 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .entries-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    .journal-main {
        padding: 0 32px 32px;
    }
}

/* Mobile Notice */
.mobile-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
}

.mobile-notice.hidden {
    display: none;
}

.mobile-notice-content {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-notice-icon {
    font-size: 72px;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.mobile-notice-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f2937;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.mobile-notice-message {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.mobile-notice-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mobile-notice-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.mobile-notice-button:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.mobile-notice-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Mobile: Hide journal, show mobile notice */
@media (max-width: 767px) {
    #journal-page,
    #login-page {
        display: none !important;
    }
    
    .mobile-notice {
        display: flex !important;
    }
}

/* Entry Card */
.entry-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
}

.entry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.entry-card.favorite {
    border: 2px solid var(--favorite);
}

.entry-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #F5F5F7 0%, #E8E8ED 100%);
}

.entry-content {
    padding: 20px;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.entry-title {
    font-size: calc(18px * var(--font-size-multiplier));
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    flex: 1;
}

.entry-favorite-icon {
    color: var(--favorite);
    font-size: 20px;
    margin-left: 8px;
}

.entry-desc {
    font-size: calc(15px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entry-date {
    font-size: calc(13px * var(--font-size-multiplier));
    color: var(--text-secondary);
}

.no-entries {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: calc(17px * var(--font-size-multiplier));
    grid-column: 1 / -1;
    line-height: 1.8;
}

.no-entries.error-message {
    color: #FF3B30;
    background: #FFF5F5;
    border-radius: 12px;
    border: 1px solid #FFE5E5;
}

/* No Entries Empty State */
.no-entries-container {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 40px 40px;
    text-align: center;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-entries-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    line-height: 1;
}

.no-entries-title {
    font-size: calc(28px * var(--font-size-multiplier));
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.no-entries-message {
    font-size: calc(17px * var(--font-size-multiplier));
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 32px 0;
    padding: 0;
    max-width: 600px;
}

.no-entries-note {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 32px 0;
    border: 1px solid rgba(102, 126, 234, 0.1);
    width: 100%;
    max-width: 600px;
}

.note-title {
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.note-text {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.no-entries-illustration {
    font-size: 48px;
    margin: 0;
    opacity: 0.6;
    animation: sparkle 2s ease-in-out infinite;
    line-height: 1;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background: var(--surface);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.profile-modal-content .modal-header {
    padding: 24px 48px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 5;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.close-button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-button:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* Entry Modal Specific Styles */
.entry-modal-content {
    max-width: 680px;
    width: 100%;
}

.entry-modal-header-content {
    flex: 1;
}

.entry-progress {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.progress-steps {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed .step-number {
    background: var(--primary-color);
    color: white;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-size: calc(11px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    transition: background 0.3s ease;
}

.progress-step.active ~ .progress-line,
.progress-step.completed ~ .progress-line {
    background: var(--primary-color);
}

.entry-form {
    padding: 32px 40px;
    position: relative;
    min-height: 400px;
}

.entry-step {
    display: none;
    animation: stepFadeIn 0.3s ease-in-out;
}

.entry-step.active {
    display: block;
}

.entry-edit-mode {
    display: none;
}

.entry-edit-mode.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 32px;
    text-align: center;
}

.step-title {
    font-size: calc(24px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.step-subtitle {
    font-size: calc(15px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 400;
}

.entry-form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.1px;
}

.label-icon {
    font-size: calc(18px * var(--font-size-multiplier));
}

.entry-form-input,
.entry-form-textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: calc(17px * var(--font-size-multiplier));
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
    letter-spacing: -0.1px;
}

.entry-form-input:focus,
.entry-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08);
    background: white;
}

.entry-form-input::placeholder,
.entry-form-textarea::placeholder {
    color: var(--text-tertiary);
}

.entry-form-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.entry-form-textarea.hidden {
    display: none;
}

/* Quill Editor Styles */
.entry-editor-container {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
}

.entry-editor-container .ql-container {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    font-family: inherit;
    font-size: calc(17px * var(--font-size-multiplier));
    color: var(--text-primary);
    min-height: 160px;
}

.entry-editor-container .ql-toolbar {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.entry-editor-container .ql-toolbar .ql-stroke {
    stroke: var(--text-secondary);
}

.entry-editor-container .ql-toolbar .ql-fill {
    fill: var(--text-secondary);
}

.entry-editor-container .ql-toolbar .ql-picker-label {
    color: var(--text-secondary);
}

.entry-editor-container .ql-toolbar button:hover,
.entry-editor-container .ql-toolbar button.ql-active {
    color: var(--primary-color);
}

.entry-editor-container .ql-toolbar button:hover .ql-stroke,
.entry-editor-container .ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--primary-color);
}

.entry-editor-container .ql-toolbar button:hover .ql-fill,
.entry-editor-container .ql-toolbar button.ql-active .ql-fill {
    fill: var(--primary-color);
}

.entry-editor-container .ql-editor {
    min-height: 160px;
    line-height: 1.6;
    padding: 16px 20px;
}

.entry-editor-container .ql-editor.ql-blank::before {
    color: var(--text-tertiary);
    font-style: normal;
}

.entry-editor-container .ql-editor:focus {
    outline: none;
}

.entry-editor-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08);
}

.char-count {
    margin-top: 8px;
    text-align: right;
    font-size: calc(12px * var(--font-size-multiplier));
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 28px;
}

.profile-section .form-group {
    margin-bottom: 24px;
}

.profile-section .form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: calc(17px * var(--font-size-multiplier));
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-file {
    display: none;
}

/* Photo Upload Section */
.photo-group {
    margin-bottom: 32px;
}

.photo-preview-container {
    margin-bottom: 20px;
}

.photo-preview-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--background);
    border: 1px solid var(--border);
}

.photo-preview-wrapper img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.photo-remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.photo-remove-btn:hover {
    background: rgba(255, 59, 48, 0.9);
    transform: scale(1.1);
}

.photo-change-btn {
    width: 100%;
    padding: 12px;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-change-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
}

.photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 32px;
    border: 2px dashed var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background);
    min-height: 240px;
}

.photo-upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

.photo-upload-icon {
    color: var(--primary-color);
    opacity: 0.8;
}

.photo-upload-text {
    font-size: calc(17px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
}

.photo-upload-hint {
    font-size: calc(13px * var(--font-size-multiplier));
    color: var(--text-secondary);
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Option Card */
.option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.option-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 149, 0, 0.1);
    border-radius: 12px;
}

.option-text h4 {
    font-size: calc(17px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.1px;
}

.option-text p {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 32px;
    flex-shrink: 0;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: all 0.3s ease;
    border-radius: 32px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Entry Summary */
.entry-summary {
    margin: 32px 0;
    padding: 24px;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 16px;
}

.summary-title {
    font-size: calc(18px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    gap: 12px;
    font-size: calc(15px * var(--font-size-multiplier));
}

.summary-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
}

.summary-value {
    color: var(--text-primary);
    flex: 1;
    word-break: break-word;
}

.summary-value:empty::before {
    content: "-";
    color: var(--text-tertiary);
}

.save-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

#save-entry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#save-entry-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .entry-modal-content {
        max-width: 100vw;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
    
    .entry-form {
        padding: 24px 20px;
    }
    
    .step-actions {
        flex-direction: column-reverse;
    }
    
    .step-actions .button-primary,
    .step-actions .button-secondary {
        width: 100%;
    }
    
    .progress-steps {
        gap: 4px;
    }
    
    .progress-line {
        width: 24px;
    }
    
    .step-label {
        font-size: calc(10px * var(--font-size-multiplier));
    }
    
    .photo-upload-label {
        padding: 32px 24px;
        min-height: 200px;
    }
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid var(--border);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.button-primary,
.button-secondary {
    padding: 12px 24px;
    font-size: calc(17px * var(--font-size-multiplier));
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.button-primary {
    background: var(--primary-color);
    color: white;
}

.button-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.button-secondary {
    background: var(--background);
    color: var(--text-primary);
}

.button-secondary:hover {
    background: var(--border);
}

/* Entry Detail View */
.entry-detail-content {
    max-width: 800px;
    width: 100%;
}

.entry-detail-body {
    padding: 0;
}

.detail-entry-photo {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-entry-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    color: var(--text-secondary);
    font-size: 18px;
}

.detail-entry-info {
    padding: 24px;
}

.detail-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.detail-entry-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    letter-spacing: -0.5px;
}

.detail-fav {
    font-size: 24px;
    color: var(--favorite);
}

.detail-entry-date {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.detail-entry-description {
    margin-bottom: 32px;
}

.detail-entry-description p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.detail-actions {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.detail-actions .button-primary {
    min-width: 150px;
}

.detail-actions .button-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-danger-detail {
    background: #FF3B30;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: -0.1px;
    min-width: 150px;
}

.button-danger-detail:hover {
    background: #D70015;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.button-danger-detail:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .entry-detail-content {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .detail-entry-info {
        padding: 20px;
    }
    
    .detail-entry-header h3 {
        font-size: 24px;
    }
    
    .detail-actions {
        padding: 0 20px 20px;
        flex-direction: column;
    }
    
    .detail-actions .button-primary,
    .detail-actions .button-secondary,
    .detail-actions .button-danger-detail {
        width: 100%;
    }
}

/* Welcome Pre-Animation */
.welcome-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.welcome-animation-overlay.visible {
    display: flex;
}


.welcome-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    font-size: 40px;
    animation: sparkleFloat 3s ease-in-out infinite;
    opacity: 0;
}

.sparkle-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 30%;
    right: 25%;
    animation-delay: 0.3s;
}

.sparkle-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 0.6s;
}

.sparkle-4 {
    bottom: 35%;
    right: 20%;
    animation-delay: 0.9s;
}

.sparkle-5 {
    top: 50%;
    left: 10%;
    animation-delay: 1.2s;
}

.sparkle-6 {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.welcome-celebration {
    text-align: center;
    color: white;
    animation: celebrationBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.celebration-icon {
    font-size: 120px;
    margin-bottom: 20px;
    animation: celebrationRotate 0.6s ease-out, celebrationPulse 1.5s ease-in-out 0.6s infinite;
    transform-origin: center;
}

.celebration-text {
    font-size: calc(48px * var(--font-size-multiplier));
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: celebrationTextSlide 0.8s ease-out 0.3s both;
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-20px) scale(1.2);
    }
    80% {
        opacity: 1;
        transform: translateY(-60px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0);
    }
}

@keyframes celebrationBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes celebrationRotate {
    0% {
        transform: rotate(-20deg) scale(0);
    }
    50% {
        transform: rotate(10deg) scale(1.2);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes celebrationPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(-5deg);
    }
    75% {
        transform: scale(1.05) rotate(5deg);
    }
}

@keyframes celebrationTextSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Popup */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.welcome-popup.visible {
    opacity: 1;
    pointer-events: all;
}

.welcome-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.welcome-content {
    background: var(--surface);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: welcomeSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    position: relative;
    z-index: 1;
    cursor: default;
    pointer-events: auto;
}

@keyframes welcomeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.welcome-message {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Onboarding Step */
.onboarding-step {
    margin-bottom: 24px;
    text-align: left;
}

.onboarding-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.onboarding-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.onboarding-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.onboarding-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    margin-bottom: 0;
}

.welcome-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.welcome-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Profile Modal */
.statistics-modal-content,
.appearance-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-modal-content {
    max-width: 100vw;
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    background: var(--background);
}

.statistics-content {
    padding: 24px;
}

.appearance-content {
    padding: 24px;
}

.profile-content {
    padding: 0;
    min-height: calc(100vh - 80px);
    background: var(--background);
}

.profile-modal-content .modal-header {
    background: var(--surface);
    border-bottom: 0.5px solid var(--border);
    padding: 24px 48px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255, 255, 255, 0.72);
}

.profile-modal-content .modal-header h2 {
    font-size: calc(28px * var(--font-size-multiplier));
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.profile-header-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 56px 48px 48px;
    background: var(--surface);
    border-bottom: 0.5px solid var(--border);
}

.profile-photo-container {
    flex-shrink: 0;
}

.profile-photo-placeholder {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5F5F7 0%, #E8E8ED 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.profile-photo-placeholder.hidden {
    display: none;
}

.profile-photo-img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border);
    transition: opacity 0.3s ease;
}

.profile-photo-img.hidden {
    display: none;
}

.profile-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-name {
    font-size: calc(32px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.profile-email {
    font-size: calc(17px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.profile-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.profile-user-since {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 20px;
    font-size: calc(13px * var(--font-size-multiplier));
    color: var(--text-secondary);
    width: fit-content;
    font-weight: 500;
}

.user-since-icon {
    font-size: calc(16px * var(--font-size-multiplier));
}

.user-since-text {
    font-weight: 500;
}

.profile-section {
    padding: 0;
    border-bottom: none;
    background: transparent;
    margin-bottom: 0;
}

.profile-section-wrapper {
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 16px;
    padding: 40px 48px;
    margin: 48px 48px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.profile-section-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-section:first-child .profile-section-wrapper {
    margin-top: 48px;
}

.profile-section:last-child .profile-section-wrapper {
    margin-bottom: 48px;
}

.profile-section h3 {
    font-size: calc(22px * var(--font-size-multiplier));
    font-weight: 600;
    margin: 0 0 28px 0;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    line-height: 1.3;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 8px;
    padding: 0 48px;
    margin-top: 32px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: -0.1px;
}

.profile-tab:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.02);
}

.profile-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-icon {
    font-size: calc(18px * var(--font-size-multiplier));
}

.tab-label {
    font-size: calc(15px * var(--font-size-multiplier));
}

/* Tab Content */
.profile-tab-content {
    padding: 0;
    min-height: 400px;
}

.profile-tab-pane {
    display: none;
    animation: tabFadeIn 0.2s ease-in-out;
}

.profile-tab-pane.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane-title {
    font-size: calc(20px * var(--font-size-multiplier));
    font-weight: 600;
    margin: 0 0 24px 0;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Profile Info Display */
.profile-info-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.info-label {
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 500;
    color: var(--text-secondary);
}

.info-value {
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 400;
    color: var(--text-primary);
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: calc(13px * var(--font-size-multiplier));
    font-weight: 600;
}

.verification-badge.verified {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
}

.verification-badge.not-verified {
    background: rgba(255, 149, 0, 0.15);
    color: #FF9500;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

/* Tier Badge Styles */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: calc(13px * var(--font-size-multiplier));
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1.5px solid;
    transition: all 0.2s ease;
}

.tier-badge-member {
    background: linear-gradient(135deg, rgba(142, 142, 147, 0.15) 0%, rgba(142, 142, 147, 0.08) 100%);
    color: #8E8E93;
    border-color: rgba(142, 142, 147, 0.3);
}

.tier-badge-gold {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    color: #FF9500;
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.tier-badge-gold::before {
    content: '⭐';
    font-size: calc(14px * var(--font-size-multiplier));
    margin-right: 2px;
}

.tier-badge-platinum {
    background: linear-gradient(135deg, rgba(199, 199, 204, 0.25) 0%, rgba(199, 199, 204, 0.12) 100%);
    color: #C7C7CC;
    border-color: rgba(199, 199, 204, 0.5);
    box-shadow: 0 2px 12px rgba(199, 199, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.tier-badge-platinum::before {
    content: '💎';
    font-size: calc(14px * var(--font-size-multiplier));
    margin-right: 2px;
}

.tier-badge-platinum::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: tierShine 3s infinite;
    pointer-events: none;
}

@keyframes tierShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.tier-badge-admin {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2) 0%, rgba(255, 59, 48, 0.1) 100%);
    color: #FF3B30;
    border-color: rgba(255, 59, 48, 0.4);
    box-shadow: 0 2px 12px rgba(255, 59, 48, 0.25);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tier-badge-admin::before {
    content: '👑';
    font-size: calc(14px * var(--font-size-multiplier));
    margin-right: 4px;
}

.tier-badge-pioneer {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.2) 0%, rgba(0, 122, 255, 0.1) 100%);
    color: #5856D6;
    border-color: rgba(88, 86, 214, 0.4);
    box-shadow: 0 2px 8px rgba(88, 86, 214, 0.2);
}

.tier-badge-pioneer::before {
    content: '🧪';
    font-size: calc(14px * var(--font-size-multiplier));
    margin-right: 2px;
}

.tier-badge-small.tier-badge-pioneer {
    background: rgba(88, 86, 214, 0.15);
    color: #5856D6;
    border-color: rgba(88, 86, 214, 0.4);
}

.tier-badge-small.tier-badge-pioneer::before {
    content: '🧪';
    font-size: calc(10px * var(--font-size-multiplier));
    margin-right: 2px;
}

/* Pioneer tier header */
.dropdown-header-pioneer {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.15) 0%, rgba(0, 122, 255, 0.1) 100%);
    border-bottom-color: rgba(88, 86, 214, 0.3);
}

.dropdown-header-pioneer .greeting-text,
.dropdown-header-pioneer .greeting-name {
    color: #5856D6;
}

.profile-trigger-pioneer {
    border-color: rgba(88, 86, 214, 0.3);
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(88, 86, 214, 0.15);
}

.profile-trigger-pioneer:hover {
    border-color: #5856D6;
    box-shadow: 0 0 0 3px rgba(88, 86, 214, 0.2);
}

/* Pioneer Lab Button */
.pioneer-lab-btn {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.15) 0%, rgba(0, 122, 255, 0.1) 100%);
    border: 2px solid rgba(88, 86, 214, 0.3);
    color: #5856D6;
}

.pioneer-lab-btn:hover {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.25) 0%, rgba(0, 122, 255, 0.15) 100%);
    border-color: #5856D6;
    transform: scale(1.05);
}

.pioneer-lab-btn:active {
    transform: scale(0.95);
}

/* Tier Badge in Profile Header */
.tier-badge-header {
    margin-left: 4px;
    transform: translateY(-2px);
}

.tier-badge-header.tier-badge-admin {
    animation: adminPulse 2s ease-in-out infinite;
}

@keyframes adminPulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(255, 59, 48, 0.25);
    }
    50% {
        box-shadow: 0 2px 16px rgba(255, 59, 48, 0.4);
    }
}

/* ========================================
   MEMBERSHIP TAB - Premium Features
   ======================================== */

/* Pioneer Notice */
.pioneer-notice {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.12) 0%, rgba(0, 122, 255, 0.08) 100%);
    border: 1px solid rgba(88, 86, 214, 0.25);
    border-radius: 20px;
    padding: 32px 40px;
    margin: 48px 48px 32px;
    box-shadow: 0 4px 16px rgba(88, 86, 214, 0.15);
}

.pioneer-notice-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pioneer-notice-icon {
    font-size: 48px;
    flex-shrink: 0;
    line-height: 1;
}

.pioneer-notice-text {
    flex: 1;
}

.pioneer-notice-title {
    font-size: calc(24px * var(--font-size-multiplier));
    font-weight: 700;
    color: #5856D6;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.pioneer-notice-message {
    font-size: calc(16px * var(--font-size-multiplier));
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

.membership-banner {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 20px;
    padding: 32px 40px;
    margin: 48px 48px 32px;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.1);
}

.membership-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.membership-banner-icon {
    font-size: calc(48px * var(--font-size-multiplier));
    flex-shrink: 0;
    animation: membershipSparkle 2s ease-in-out infinite;
}

@keyframes membershipSparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.9;
    }
}

.membership-banner-text {
    flex: 1;
}

.membership-banner-title {
    font-size: calc(24px * var(--font-size-multiplier));
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.membership-banner-subtitle {
    font-size: calc(16px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.1px;
}

.membership-benefits {
    padding: 0;
}

/* Pioneer Signup Modal */
.pioneer-modal-content {
    max-width: 520px;
    width: 90%;
    background: var(--surface);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.pioneer-modal-header {
    padding: 40px 32px 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.08) 0%, rgba(0, 122, 255, 0.05) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.pioneer-modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
    line-height: 1;
    display: inline-block;
    animation: pioneerIconFloat 3s ease-in-out infinite;
}

@keyframes pioneerIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.pioneer-modal-title {
    font-size: calc(28px * var(--font-size-multiplier));
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #5856D6 0%, #007AFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pioneer-modal-body {
    padding: 32px;
}

.pioneer-modal-message {
    font-size: calc(18px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 16px 0;
    line-height: 1.5;
    letter-spacing: -0.2px;
}

.pioneer-modal-description {
    font-size: calc(15px * var(--font-size-multiplier));
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    line-height: 1.6;
    letter-spacing: -0.1px;
}

.pioneer-modal-actions {
    display: flex;
    gap: 12px;
    padding: 24px 32px 32px;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.pioneer-button-secondary,
.pioneer-button-primary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    letter-spacing: -0.1px;
}

.pioneer-button-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.pioneer-button-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.pioneer-button-secondary:active {
    transform: translateY(0);
}

.pioneer-button-primary {
    background: linear-gradient(135deg, #5856D6 0%, #007AFF 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 86, 214, 0.3);
}

.pioneer-button-primary:hover {
    background: linear-gradient(135deg, #4A48C4 0%, #0051D5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 86, 214, 0.4);
}

.pioneer-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(88, 86, 214, 0.3);
}

.benefits-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 32px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.coming-soon-icon {
    font-size: calc(64px * var(--font-size-multiplier));
    margin-bottom: 20px;
    animation: benefitsBounce 2s ease-in-out infinite;
}

@keyframes benefitsBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.coming-soon-title {
    font-size: calc(22px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
}

.coming-soon-text {
    font-size: calc(16px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    max-width: 500px;
    letter-spacing: -0.1px;
}

/* Pioneer Leave Card */
.pioneer-leave-card {
    border: 1px solid rgba(88, 86, 214, 0.2);
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.05) 0%, rgba(0, 122, 255, 0.03) 100%);
}

.pioneer-leave-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pioneer-leave-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: -0.1px;
}

.pioneer-leave-button:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pioneer-leave-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pioneer-leave-icon {
    font-size: calc(18px * var(--font-size-multiplier));
}

.pioneer-leave-text {
    font-size: calc(15px * var(--font-size-multiplier));
}

.stat-sublabel {
    font-size: calc(12px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

.privacy-notice-section {
    margin-top: 32px;
}

.privacy-notice {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 12px;
}

.privacy-notice-icon {
    font-size: calc(32px * var(--font-size-multiplier));
    flex-shrink: 0;
}

.privacy-notice-content {
    flex: 1;
}

.privacy-notice-title {
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.privacy-notice-text {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Theme Options Grid */
.theme-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 500;
    color: var(--text-primary);
}

.theme-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.theme-color {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
}

.theme-option.active .theme-color {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.blue-theme {
    background: #007AFF;
}

.purple-theme {
    background: #AF52DE;
}

.green-theme {
    background: #34C759;
}

.pink-theme {
    background: #FF2D55;
}

.orange-theme {
    background: #FF9500;
}

.profile-statistics-container {
    margin-top: 8px;
}

/* ========================================
   APPEARANCE TAB - Beautiful Design
   ======================================== */

/* Preview Section */
.appearance-preview-section {
    margin: 32px 48px 48px;
}

.preview-header {
    margin-bottom: 24px;
}

.preview-title {
    font-size: calc(24px * var(--font-size-multiplier));
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.preview-subtitle {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin: 0;
}

/* Preview card uses entry-card styling */
.preview-card.entry-card {
    margin: 0;
    max-width: 100%;
    cursor: default;
}

.preview-card.entry-card:hover {
    transform: none;
}

/* Appearance Section Wrapper */
.appearance-section-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 40px;
    margin: 0 48px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.appearance-section-wrapper:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.appearance-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.section-header-content {
    flex: 1;
}

.appearance-section-title {
    font-size: calc(20px * var(--font-size-multiplier));
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.appearance-section-desc {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Font Size Selector */
.font-size-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.font-size-card {
    position: relative;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 140px;
    text-align: center;
}

.font-size-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
}

.font-size-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 0, 122, 255), 0.08) 0%, rgba(var(--primary-color-rgb, 0, 122, 255), 0.03) 100%);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), 0 8px 24px rgba(0, 122, 255, 0.2);
}

.font-size-visual {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 4px;
}

.font-size-sample {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.font-size-small-sample {
    font-size: calc(24px * var(--font-size-multiplier));
}

.font-size-medium-sample {
    font-size: calc(32px * var(--font-size-multiplier));
}

.font-size-large-sample {
    font-size: calc(40px * var(--font-size-multiplier));
}

.font-size-xlarge-sample {
    font-size: calc(48px * var(--font-size-multiplier));
}

.font-size-label {
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
}

.font-size-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.font-size-card.active .font-size-check {
    display: flex;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Theme Color Selector */
.theme-color-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.theme-color-card {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.theme-color-card:hover {
    transform: translateY(-4px);
}

.theme-color-card:hover .theme-color-preview {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.theme-color-card.active .theme-color-preview {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 0 0 8px rgba(0, 122, 255, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25);
}

.theme-color-preview {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-color-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.theme-check-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.theme-color-card.active .theme-check-icon {
    opacity: 1;
    animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-color-name {
    font-size: calc(13px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
}

/* Theme Background Colors */
.blue-theme-bg {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
}

.purple-theme-bg {
    background: linear-gradient(135deg, #AF52DE 0%, #8E44AD 100%);
}

.green-theme-bg {
    background: linear-gradient(135deg, #34C759 0%, #28A745 100%);
}

.pink-theme-bg {
    background: linear-gradient(135deg, #FF2D55 0%, #E91E63 100%);
}

.orange-theme-bg {
    background: linear-gradient(135deg, #FF9500 0%, #E68900 100%);
}

.red-theme-bg {
    background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
}

/* Preview Card Theme Variants */
.preview-card[data-theme="blue"] .preview-card-icon,
.preview-card[data-theme="blue"] .preview-button {
    background: #007AFF;
}

.preview-card[data-theme="purple"] .preview-card-icon,
.preview-card[data-theme="purple"] .preview-button {
    background: #AF52DE;
}

.preview-card[data-theme="green"] .preview-card-icon,
.preview-card[data-theme="green"] .preview-button {
    background: #34C759;
}

.preview-card[data-theme="pink"] .preview-card-icon,
.preview-card[data-theme="pink"] .preview-button {
    background: #FF2D55;
}

.preview-card[data-theme="orange"] .preview-card-icon,
.preview-card[data-theme="orange"] .preview-button {
    background: #FF9500;
}

.preview-card[data-theme="red"] .preview-card-icon,
.preview-card[data-theme="red"] .preview-button {
    background: #FF3B30;
}

/* Font Family Selector */
.font-family-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .font-family-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

.font-family-card {
    position: relative;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 140px;
    text-align: center;
}

.font-family-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
}

.font-family-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.03) 100%);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), 0 8px 24px rgba(0, 122, 255, 0.2);
}

.font-family-sample {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 4px;
}

.font-sample-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: calc(16px * var(--font-size-multiplier));
    line-height: 1.2;
}

.font-family-label {
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
}

.font-family-card .font-size-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.font-family-card.active .font-size-check {
    display: flex;
}

/* Preview Card Font Family Variants */
.preview-card[data-font-family="system"] .entry-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.preview-card[data-font-family="serif"] .entry-content {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.preview-card[data-font-family="sans-serif"] .entry-content {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.preview-card[data-font-family="monospace"] .entry-content {
    font-family: 'Courier New', Courier, monospace;
}

.preview-card[data-font-family="rounded"] .entry-content {
    font-family: 'SF Rounded', 'Apple Color Emoji', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.preview-card[data-font-family="comic"] .entry-content {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Relief', cursive;
    letter-spacing: 0.3px;
}

.preview-card[data-font-family="marker"] .entry-content {
    font-family: 'Marker Felt', 'Comic Sans MS', 'Arial Rounded MT Bold', cursive;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================
   ACCOUNT TAB - Beautiful Apple-Inspired Design
   ======================================== */

/* Account Information Section (Top Summary) */
.account-info-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 32px;
    overflow: hidden;
}

.account-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 0.5px solid var(--border);
    transition: background-color 0.15s ease;
}

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

.account-info-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.account-info-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.account-info-label svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.account-info-value {
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    letter-spacing: -0.1px;
}

.account-verification-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: calc(13px * var(--font-size-multiplier));
    font-weight: 600;
    letter-spacing: 0.2px;
}

.account-verification-badge.verified {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
}

.account-verification-badge.not-verified {
    background: rgba(255, 149, 0, 0.15);
    color: #FF9500;
}

/* Account Tab Pane Padding */
.profile-tab-pane[data-pane="account"] {
    padding-top: 48px;
}

/* Account Section Cards */
.account-section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin: 0 48px 24px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.account-section-card:first-child {
    margin-top: 48px;
}

.account-section-card:last-child {
    margin-bottom: 48px;
}

.account-section-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.account-section-header {
    padding: 20px 24px 16px;
    border-bottom: 0.5px solid var(--border);
}

.account-section-title {
    font-size: calc(17px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.account-section-body {
    padding: 20px 24px;
}

/* Notice Box */
.account-notice-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 122, 255, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.15);
    border-radius: 14px;
    margin-bottom: 20px;
}

.notice-icon {
    font-size: calc(18px * var(--font-size-multiplier));
    flex-shrink: 0;
    opacity: 0.8;
}

.notice-content {
    flex: 1;
}

.notice-text {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

/* Account Form Styles */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-form-label {
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.15px;
    margin-bottom: 2px;
}

.account-form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: calc(16px * var(--font-size-multiplier));
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.account-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
    background: var(--surface);
}

.account-form-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

.account-form-input textarea,
textarea.account-form-input {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.account-input-disabled {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.account-input-disabled:focus {
    box-shadow: none !important;
    border-color: var(--border) !important;
}

.account-button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
    letter-spacing: -0.1px;
}

.account-button-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.35);
}

.account-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

/* Action Button (Export Data) */
.account-action-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.account-action-button:hover {
    background: rgba(0, 0, 0, 0.03);
}

.account-action-button:active {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(0.98);
}

.action-button-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.action-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 10px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.action-button-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-button-title {
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.action-button-desc {
    font-size: calc(13px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 400;
}

.action-button-chevron {
    color: var(--text-tertiary);
    opacity: 0.5;
    flex-shrink: 0;
}

.account-error-message,
.account-success-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 500;
    line-height: 1.4;
}

.account-error-message {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}

.account-success-message {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.2);
    color: #34C759;
}

/* Account Danger Section */
.account-section-danger {
    border-color: rgba(255, 59, 48, 0.15);
}

.account-danger-warning {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 59, 48, 0.06);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 14px;
    margin-bottom: 20px;
}

.danger-warning-icon {
    font-size: calc(22px * var(--font-size-multiplier));
    flex-shrink: 0;
    line-height: 1;
}

.danger-warning-content {
    flex: 1;
}

.danger-warning-text {
    font-size: calc(14px * var(--font-size-multiplier));
    color: #FF3B30;
    margin: 0;
    line-height: 1.55;
    font-weight: 500;
}

.account-button-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #FF3B30;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    letter-spacing: -0.1px;
}

.account-button-danger:hover {
    background: #D70015;
}

/* Login History Styles */
.login-history-container {
    margin-top: 8px;
}

.login-history-loading,
.login-history-empty,
.login-history-error {
    padding: 16px;
    text-align: center;
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    border-radius: 12px;
    background: var(--background);
}

.login-history-error {
    color: #FF3B30;
    background: rgba(255, 59, 48, 0.05);
}

.login-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.login-history-item:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.login-history-item-suspicious {
    border-color: #FF3B30 !important;
    background: rgba(255, 59, 48, 0.05) !important;
}

.login-history-item-suspicious:hover {
    background: rgba(255, 59, 48, 0.08) !important;
    border-color: #D70015 !important;
}

.login-history-suspicious-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
    color: white;
    border-radius: 12px;
    font-size: calc(11px * var(--font-size-multiplier));
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(255, 59, 48, 0.3);
}

/* Login Details Modal Styles */
.login-details-modal-content {
    max-width: 600px;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
}

.login-details-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.login-details-header h2 {
    font-size: calc(22px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}

.login-details-body {
    padding: 28px;
}

.login-details-suspicious-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
    border-radius: 14px;
    color: white;
    font-weight: 600;
    font-size: calc(15px * var(--font-size-multiplier));
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(255, 59, 48, 0.3);
}

.login-details-suspicious-tag svg {
    flex-shrink: 0;
}

.login-details-suspicious-notice {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 59, 48, 0.06);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 14px;
    margin-bottom: 24px;
}

.login-details-notice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 10px;
    color: #FF3B30;
}

.login-details-notice-content {
    flex: 1;
}

.login-details-notice-title {
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.login-details-notice-text {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.login-details-section {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 24px;
}

.login-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.login-details-row:last-child {
    border-bottom: none;
}

.login-details-row-full {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.login-details-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: calc(14px * var(--font-size-multiplier));
    flex-shrink: 0;
    min-width: 120px;
}

.login-details-value {
    color: var(--text-primary);
    font-size: calc(14px * var(--font-size-multiplier));
    text-align: right;
    word-break: break-word;
    flex: 1;
}

.login-details-value-monospace {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: calc(13px * var(--font-size-multiplier));
    background: var(--background-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    text-align: left;
}

.login-details-useragent-preview {
    color: var(--text-primary);
    font-size: calc(13px * var(--font-size-multiplier));
    word-break: break-all;
    line-height: 1.5;
    width: 100%;
}

.login-details-useragent-details {
    width: 100%;
    margin-top: 8px;
}

.login-details-useragent-summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: calc(13px * var(--font-size-multiplier));
    user-select: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-details-useragent-summary:hover {
    color: var(--primary-color);
}

.login-details-useragent-full {
    color: var(--text-primary);
    font-size: calc(12px * var(--font-size-multiplier));
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    word-break: break-all;
    margin-top: 12px;
    padding: 12px;
    background: var(--background-secondary);
    border-radius: 10px;
    line-height: 1.6;
}

.login-details-report-section {
    background: rgba(255, 59, 48, 0.03);
    border: 1px solid rgba(255, 59, 48, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
}

.login-details-report-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 600;
    color: #FF3B30;
    margin: 0 0 20px 0;
}

.login-details-report-title svg {
    flex-shrink: 0;
}

.login-details-comment {
    color: var(--text-primary);
    font-size: calc(14px * var(--font-size-multiplier));
    line-height: 1.6;
    padding: 14px;
    background: var(--background-secondary);
    border-radius: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    width: 100%;
    margin-top: 8px;
}

.login-details-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.login-details-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.login-details-button svg {
    flex-shrink: 0;
}

.login-details-button-report {
    background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.25);
}

.login-details-button-report:hover {
    background: linear-gradient(135deg, #D70015 0%, #B80012 100%);
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.35);
    transform: translateY(-1px);
}

.login-details-button-report:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.25);
}

.login-details-button-close {
    background: var(--background);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.login-details-button-close:hover {
    background: var(--surface);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.login-details-button-close:active {
    transform: translateY(0);
}

/* Export Wizard Styles */
.export-wizard-content {
    max-width: 600px;
}

.export-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.export-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.export-progress-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--background-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.export-progress-step.active .export-progress-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.export-progress-step.completed .export-progress-number {
    background: #34C759;
    border-color: #34C759;
    color: white;
}

.export-progress-step.completed .export-progress-number::after {
    content: '✓';
    font-size: calc(16px * var(--font-size-multiplier));
}

.export-progress-label {
    font-size: calc(11px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.export-progress-step.active .export-progress-label {
    color: var(--primary-color);
    font-weight: 600;
}

.export-progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    position: relative;
    top: -16px;
}

.export-progress-step.completed ~ .export-progress-line {
    background: #34C759;
}

.export-wizard-body {
    padding: 24px;
}

.export-wizard-step {
    min-height: 400px;
}

.export-step-title {
    font-size: calc(20px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.export-step-description {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.export-range-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.export-range-option {
    display: block;
    cursor: pointer;
}

.export-range-option input[type="radio"] {
    display: none;
}

.export-range-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.export-range-option input[type="radio"]:checked + .export-range-card {
    border-color: var(--primary-color);
    background: rgba(0, 122, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
}

.export-range-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.export-range-icon {
    font-size: calc(32px * var(--font-size-multiplier));
    flex-shrink: 0;
}

.export-range-content {
    flex: 1;
}

.export-range-title {
    font-size: calc(16px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.export-range-desc {
    font-size: calc(13px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.export-option-group {
    margin-bottom: 24px;
}

.export-option-label {
    display: block;
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.export-option-hint {
    font-size: calc(12px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin-top: 6px;
    margin-bottom: 0;
}

.export-color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.export-color-option {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.export-color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.export-color-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.export-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-primary);
    line-height: 1.5;
}

.export-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.export-review-section {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.export-review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

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

.export-review-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: calc(14px * var(--font-size-multiplier));
    flex-shrink: 0;
    min-width: 140px;
}

.export-review-value {
    color: var(--text-primary);
    font-size: calc(14px * var(--font-size-multiplier));
    text-align: right;
    word-break: break-word;
    flex: 1;
}

.export-wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .export-wizard-progress {
        padding: 16px 20px;
    }
    
    .export-progress-number {
        width: 28px;
        height: 28px;
        font-size: calc(12px * var(--font-size-multiplier));
    }
    
    .export-progress-label {
        font-size: calc(10px * var(--font-size-multiplier));
    }
    
    .export-range-card {
        padding: 16px;
        gap: 12px;
    }
    
    .export-range-icon {
        font-size: calc(28px * var(--font-size-multiplier));
    }
    
    .export-review-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .export-review-label {
        min-width: auto;
    }
    
    .export-review-value {
        text-align: left;
    }
}

/* Report Modal Z-Index - Ensure it appears on top */
#report-suspicious-modal {
    z-index: 10001 !important;
}

#report-suspicious-modal .modal-content {
    position: relative;
    z-index: 10002;
}

@media (max-width: 768px) {
    .login-details-modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
    
    .login-details-header {
        padding: 20px 24px;
    }
    
    .login-details-body {
        padding: 24px;
    }
    
    .login-details-row {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .login-details-label {
        min-width: auto;
    }
    
    .login-details-value {
        text-align: left;
        width: 100%;
    }
    
    .login-details-actions {
        flex-direction: column;
    }
}

/* Report Wizard Styles */
.report-wizard-content {
    max-width: 550px;
}

.report-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.report-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.report-progress-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--background-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.report-progress-step.active .report-progress-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.report-progress-step.completed .report-progress-number {
    background: #34C759;
    border-color: #34C759;
    color: white;
}

.report-progress-step.completed .report-progress-number::after {
    content: '✓';
    font-size: calc(16px * var(--font-size-multiplier));
}

.report-progress-label {
    font-size: calc(11px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.report-progress-step.active .report-progress-label {
    color: var(--primary-color);
    font-weight: 600;
}

.report-progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
    position: relative;
    top: -16px;
}

.report-progress-step.completed ~ .report-progress-line {
    background: #34C759;
}

.report-wizard-step {
    min-height: 300px;
}

.report-review-section {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.report-review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

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

.report-review-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: calc(14px * var(--font-size-multiplier));
    flex-shrink: 0;
    min-width: 120px;
}

.report-review-value {
    color: var(--text-primary);
    font-size: calc(14px * var(--font-size-multiplier));
    text-align: right;
    word-break: break-word;
    flex: 1;
}

.report-warning-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.08) 0%, rgba(215, 0, 21, 0.08) 100%);
    border: 1.5px solid rgba(255, 59, 48, 0.3);
    border-radius: 14px;
    margin-bottom: 20px;
}

.report-warning-icon {
    font-size: calc(28px * var(--font-size-multiplier));
    flex-shrink: 0;
}

.report-warning-content {
    flex: 1;
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-primary);
    line-height: 1.6;
}

.report-warning-content ul {
    margin: 12px 0 0 20px;
    padding: 0;
    line-height: 1.8;
}

.report-warning-content li {
    margin-bottom: 4px;
}

.report-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-primary);
    line-height: 1.5;
}

.report-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.report-wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .report-wizard-progress {
        padding: 16px 20px;
    }
    
    .report-progress-number {
        width: 28px;
        height: 28px;
        font-size: calc(12px * var(--font-size-multiplier));
    }
    
    .report-progress-label {
        font-size: calc(10px * var(--font-size-multiplier));
    }
    
    .report-warning-box {
        padding: 16px;
        gap: 12px;
    }
    
    .report-warning-icon {
        font-size: calc(24px * var(--font-size-multiplier));
    }
    
    .report-review-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .report-review-label {
        min-width: auto;
    }
    
    .report-review-value {
        text-align: left;
    }
}

.login-history-icon {
    font-size: calc(18px * var(--font-size-multiplier));
    flex-shrink: 0;
    opacity: 0.7;
}

.login-history-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-history-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.login-history-date {
    font-size: calc(14px * var(--font-size-multiplier));
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.1px;
}

.login-history-platform {
    font-size: calc(12px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 400;
}

.account-button-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.35);
}

/* Security Warning Card */
.security-warning-card {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.08) 0%, rgba(215, 0, 21, 0.08) 100%);
    border: 1.5px solid rgba(255, 59, 48, 0.2);
    border-radius: 20px;
    margin: 0 48px 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.1);
    transition: all 0.3s ease;
}

.security-warning-card:hover {
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.3);
}

.security-warning-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 20px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.05) 0%, rgba(215, 0, 21, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 59, 48, 0.1);
}

.security-warning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF3B30 0%, #D70015 100%);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3);
}

.security-warning-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.security-warning-title {
    font-size: calc(20px * var(--font-size-multiplier));
    font-weight: 700;
    color: #FF3B30;
    margin: 0;
    letter-spacing: -0.3px;
}

.security-warning-subtitle {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.security-warning-body {
    padding: 24px;
}

.security-warning-intro {
    font-size: calc(15px * var(--font-size-multiplier));
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.security-warning-tips {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.security-tip-item:hover {
    background: var(--surface);
    border-color: rgba(255, 59, 48, 0.2);
    transform: translateX(2px);
}

.security-tip-icon {
    font-size: calc(20px * var(--font-size-multiplier));
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 48, 0.08);
    border-radius: 10px;
}

.security-tip-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.security-tip-title {
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.security-tip-desc {
    font-size: calc(13px * var(--font-size-multiplier));
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .security-warning-card {
        margin: 0 24px 20px;
        border-radius: 16px;
    }
    
    .security-warning-header {
        padding: 20px 20px 16px;
        gap: 12px;
    }
    
    .security-warning-icon {
        width: 40px;
        height: 40px;
    }
    
    .security-warning-title {
        font-size: calc(18px * var(--font-size-multiplier));
    }
    
    .security-warning-body {
        padding: 20px;
    }
    
    .security-tip-item {
        padding: 14px;
        gap: 12px;
    }
    
    .security-tip-icon {
        width: 32px;
        height: 32px;
    }
}

.journal-statistics {
    padding: 20px 0;
}

.stats-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card-highlight {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(0, 122, 255, 0.02) 100%);
    border-color: rgba(0, 122, 255, 0.2);
}

.stat-icon {
    font-size: calc(32px * var(--font-size-multiplier));
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.stat-value {
    font-size: calc(36px * var(--font-size-multiplier));
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.1px;
    margin-bottom: 4px;
}

.stat-sublabel {
    font-size: calc(12px * var(--font-size-multiplier));
    color: var(--text-tertiary);
    font-weight: 400;
    margin-top: 4px;
    opacity: 0.8;
}

/* Small Stat Cards for Fun Stats */
.stats-grid-fun {
    margin-top: 20px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card-small {
    padding: 16px 12px;
    border-radius: 12px;
}

.stat-icon-small {
    font-size: calc(20px * var(--font-size-multiplier));
    margin-bottom: 8px;
    display: block;
    line-height: 1;
    opacity: 0.9;
}

.stat-value-small {
    font-size: calc(20px * var(--font-size-multiplier));
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.stat-label-small {
    font-size: calc(11px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.stats-section {
    margin-bottom: 28px;
}

.stats-section-title {
    font-size: calc(18px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

/* Recent Activity Section */
.stats-section-recent {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 24px;
}

.recent-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--border);
}

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

.recent-stat-label {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 500;
}

.recent-stat-value {
    font-size: calc(15px * var(--font-size-multiplier));
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.1px;
}

/* Milestone Section */
.stats-section-milestone {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.stat-milestone {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.milestone-icon {
    font-size: calc(36px * var(--font-size-multiplier));
    flex-shrink: 0;
}

.milestone-content {
    flex: 1;
}

.milestone-number {
    font-size: calc(18px * var(--font-size-multiplier));
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.milestone-date {
    font-size: calc(13px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 500;
}

/* Timeline Section */
.stats-section-timeline {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 24px;
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--border);
}

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

.timeline-label {
    font-size: calc(14px * var(--font-size-multiplier));
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-value {
    font-size: calc(15px * var(--font-size-multiplier));
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.1px;
}

.chart-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    height: 200px;
    padding: 20px 0;
    border-bottom: 2px solid var(--border);
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #667eea 0%, rgba(102, 126, 234, 0.6) 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.chart-bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: calc(11px * var(--font-size-multiplier));
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: center;
}

.chart-bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: calc(12px * var(--font-size-multiplier));
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.chart-bar:hover .chart-bar-value {
    opacity: 1;
}

.chart-month-label {
    font-size: calc(12px * var(--font-size-multiplier));
    color: var(--text-secondary);
    text-align: center;
    margin-top: 30px;
}

.no-stats {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-stats-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-bars {
        height: 150px;
        gap: 4px;
    }
    
    .chart-bar-label {
        font-size: calc(10px * var(--font-size-multiplier));
    }
    
    .stat-value {
        font-size: calc(28px * var(--font-size-multiplier));
    }
    
    .stat-icon {
        font-size: calc(28px * var(--font-size-multiplier));
        margin-bottom: 10px;
    }
    
    .stats-grid-fun {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card-small {
        padding: 14px 10px;
    }
    
    .stat-icon-small {
        font-size: calc(18px * var(--font-size-multiplier));
        margin-bottom: 6px;
    }
    
    .stat-value-small {
        font-size: calc(18px * var(--font-size-multiplier));
    }
    
    .stat-label-small {
        font-size: calc(10px * var(--font-size-multiplier));
    }
    
    .recent-stats-grid,
    .timeline-info {
        gap: 10px;
    }
    
    .recent-stat-item,
    .timeline-item {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .recent-stat-value,
    .timeline-value {
        text-align: left;
        width: 100%;
    }
    
    .stat-milestone {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 14px;
    }
    
    .milestone-icon {
        font-size: calc(32px * var(--font-size-multiplier));
    }
    
    .profile-user-since {
        font-size: calc(12px * var(--font-size-multiplier));
        padding: 6px 12px;
    }
}


/* Settings Styles */
.settings-group {
    margin-bottom: 24px;
}

.settings-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.settings-options {
    display: flex;
    gap: 8px;
}

.font-size-option {
    flex: 1;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.font-size-option:hover {
    border-color: var(--primary-color);
    background: var(--hover);
}

.font-size-option.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.theme-option {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-option.active {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text-primary);
}

.theme-option.active::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.profile-form {
    margin-bottom: 0;
    max-width: 520px;
}

.profile-section .form-group {
    margin-bottom: 28px;
}

.profile-section .form-group:last-of-type {
    margin-bottom: 0;
}

.profile-section .form-group label {
    font-size: calc(15px * var(--font-size-multiplier));
    font-weight: 500;
    letter-spacing: -0.1px;
    margin-bottom: 10px;
}

.profile-section .form-input {
    font-size: calc(17px * var(--font-size-multiplier));
    padding: 14px 18px;
    border: 0.5px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    letter-spacing: -0.1px;
}

.profile-section .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    outline: none;
}

.success-message {
    background-color: rgba(34, 199, 89, 0.1);
    color: #1F7A1F;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: calc(15px * var(--font-size-multiplier));
    margin-bottom: 20px;
    border: 0.5px solid rgba(34, 199, 89, 0.2);
    letter-spacing: -0.1px;
}

.error-message {
    border-radius: 12px;
    padding: 14px 18px;
    font-size: calc(15px * var(--font-size-multiplier));
    letter-spacing: -0.1px;
}

.profile-actions {
    padding-top: 36px;
    margin-top: 36px;
    border-top: 0.5px solid var(--border);
}

.logout-button {
    width: 100%;
    background: #FF3B30;
    color: white;
    font-size: calc(17px * var(--font-size-multiplier));
    font-weight: 500;
    padding: 14px 24px;
    border-radius: 12px;
    letter-spacing: -0.1px;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background: #D70015;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* Danger Section */
.profile-section-wrapper.danger-section {
    background: rgba(255, 59, 48, 0.03);
    border-color: rgba(255, 59, 48, 0.12);
}

.danger-section h3 {
    color: #FF3B30;
    font-size: calc(22px * var(--font-size-multiplier));
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}

.danger-description {
    color: var(--text-secondary);
    font-size: calc(15px * var(--font-size-multiplier));
    margin-bottom: 24px;
    line-height: 1.65;
    letter-spacing: -0.1px;
}

.profile-section .button-primary {
    font-size: calc(17px * var(--font-size-multiplier));
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 12px;
    letter-spacing: -0.1px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.profile-section .button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.button-danger {
    background: #FF3B30;
    color: white;
    border: none;
    font-size: calc(17px * var(--font-size-multiplier));
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 12px;
    letter-spacing: -0.1px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.2);
}

.button-danger:hover {
    background: #D70015;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.button-danger:active {
    transform: scale(0.98);
}

.button-danger:disabled {
    background: #FF9A9A;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Delete Account Modal */
.delete-account-modal-content {
    max-width: 550px;
    width: 100%;
}

.delete-account-header {
    text-align: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.delete-account-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.delete-account-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #FF3B30;
    margin: 0;
}

.delete-account-body {
    padding: 24px;
    min-height: 300px;
}

.delete-warning-step {
    display: none;
}

.delete-warning-step.active {
    display: block;
}

.delete-warning-step h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delete-warning-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.delete-warning-text.emphasis {
    color: #FF3B30;
    font-weight: 600;
    margin-top: 20px;
    font-size: 16px;
}

.delete-warning-text.small {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.delete-consequences-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.delete-consequences-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
}

.delete-consequences-list li:before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #FF3B30;
    font-weight: bold;
    font-size: 16px;
}

.delete-confirm-input {
    width: 100%;
    margin: 16px 0;
    font-size: 16px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.delete-confirm-input:focus {
    outline: none;
    border-color: #FF3B30;
}

.delete-account-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.delete-account-actions button {
    min-width: 120px;
}

/* Beta Info Popup */
.beta-info-modal-content {
    max-width: 450px;
    width: 100%;
}

.beta-info-content {
    padding: 32px 24px;
    text-align: center;
}

.beta-info-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.beta-info-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.beta-info-message {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.beta-info-content .button-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Tools Modal */
.tools-modal-content {
    max-width: 500px;
}

.tools-content {
    padding: 24px;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tools-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--background);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.tools-item:hover {
    background: var(--surface);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.tools-item-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 12px;
    flex-shrink: 0;
}

.tools-item-text {
    flex: 1;
}

.tools-item-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tools-item-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.tools-item svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Legal Documents Modal */
.legal-modal-content {
    max-width: 700px;
    max-height: 90vh;
}

.legal-content {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.legal-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.legal-section li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.legal-section li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-actions {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .entries-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-banner {
        margin: 0 16px 16px;
    }
    
    .banner-content {
        padding: 16px 20px;
        gap: 12px;
    }
    
    .banner-icon {
        font-size: 28px;
    }
    
    .banner-title {
        font-size: 16px;
    }
    
    .banner-description {
        font-size: 14px;
    }
    
    .banner-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }
    
    .profile-modal-content {
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .button-primary,
    .button-secondary {
        width: 100%;
    }
    
    .journal-title {
        font-size: 28px;
        letter-spacing: -0.8px;
    }
    
    .journal-header-section {
        padding: 32px 0 24px;
        margin-bottom: 24px;
    }
    
    .welcome-content {
        padding: 32px 24px;
    }
    
    .journal-header > .header-top-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .search-container {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin: 8px 0 0 0;
    }
    
    .header-title {
        flex: 1;
        min-width: 0;
        font-size: calc(18px * var(--font-size-multiplier));
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-actions-right {
        gap: 6px;
    }
    
    .labs-badge {
        font-size: calc(10px * var(--font-size-multiplier));
        padding: 5px 10px;
    }
    
    .labs-badge-text {
        display: none; /* Hide text on mobile, show only icon */
    }
    
    .profile-modal-content {
        max-width: 100vw;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .profile-modal-content .modal-header {
        padding: 20px 24px;
    }
    
    .profile-modal-content .modal-header h2 {
        font-size: calc(24px * var(--font-size-multiplier));
    }
    
    .profile-header-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px 36px;
        gap: 24px;
    }
    
    .profile-photo-placeholder {
        width: 112px;
        height: 112px;
    }
    
    .profile-info-container {
        align-items: center;
    }
    
    .profile-name-row {
        justify-content: center;
        gap: 8px;
    }
    
    .profile-name {
        font-size: calc(28px * var(--font-size-multiplier));
    }
    
    .profile-email {
        font-size: calc(16px * var(--font-size-multiplier));
    }
    
    .profile-badges-row {
        justify-content: center;
        gap: 8px;
    }
    
    .tier-badge-header {
        margin-left: 0;
        transform: none;
        font-size: calc(11px * var(--font-size-multiplier));
        padding: 4px 10px;
    }
    
    .profile-user-since {
        margin: 8px auto 0;
    }
    
    /* Membership Tab Responsive */
    .membership-banner {
        padding: 24px 28px;
        margin: 32px 24px 24px;
        border-radius: 16px;
    }
    
    .membership-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .membership-banner-icon {
        font-size: calc(40px * var(--font-size-multiplier));
    }
    
    .membership-banner-title {
        font-size: calc(20px * var(--font-size-multiplier));
    }
    
    .membership-banner-subtitle {
        font-size: calc(15px * var(--font-size-multiplier));
    }
    
    .benefits-coming-soon {
        padding: 36px 24px;
    }
    
    .coming-soon-icon {
        font-size: calc(56px * var(--font-size-multiplier));
        margin-bottom: 16px;
    }
    
    .coming-soon-title {
        font-size: calc(20px * var(--font-size-multiplier));
    }
    
    .coming-soon-text {
        font-size: calc(15px * var(--font-size-multiplier));
        max-width: 100%;
    }
    
    /* Profile Dropdown Responsive */
    .profile-dropdown {
        right: -8px;
        min-width: calc(100vw - 32px);
        max-width: 320px;
    }
    
    .profile-dropdown-trigger {
        padding: 5px 6px 5px 5px;
        min-height: 36px;
    }
    
    .header-profile-photo,
    .header-profile-placeholder {
        width: 26px;
        height: 26px;
    }
    
    .dropdown-chevron {
        width: 12px;
        height: 12px;
    }
    
    .profile-tabs {
        padding: 0 24px;
        margin-top: 24px;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .profile-tab {
        padding: 10px 16px;
        font-size: calc(14px * var(--font-size-multiplier));
        min-width: auto;
    }
    
    .tab-label {
        display: none; /* Hide labels on mobile, show only icons */
    }
    
    .tab-icon {
        font-size: calc(20px * var(--font-size-multiplier));
    }
    
    .profile-section-wrapper {
        padding: 32px 24px;
        margin: 32px 20px 0;
        border-radius: 14px;
    }
    
    .profile-tab-pane:first-child .profile-section-wrapper:first-child {
        margin-top: 32px;
    }
    
    .profile-tab-pane:last-child .profile-section-wrapper:last-child {
        margin-bottom: 32px;
    }
    
    .tab-pane-title {
        font-size: calc(20px * var(--font-size-multiplier));
        margin-bottom: 20px;
    }
    
    .theme-options-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .info-value {
        text-align: left;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tier-badge {
        padding: 5px 10px;
        font-size: calc(12px * var(--font-size-multiplier));
    }
    
    .tier-badge-gold::before,
    .tier-badge-platinum::before,
    .tier-badge-admin::before,
    .tier-badge-pioneer::before {
        font-size: calc(12px * var(--font-size-multiplier));
        margin-right: 2px;
    }
    
    .privacy-notice {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .privacy-notice-icon {
        font-size: calc(28px * var(--font-size-multiplier));
    }
    
    .profile-form {
        max-width: 100%;
    }
    
    /* Appearance Tab Responsive */
    .appearance-preview-section {
        margin: 24px 24px 32px;
    }
    
    .appearance-section-wrapper {
        padding: 24px 20px;
        margin: 0 24px 20px;
    }
    
    .font-size-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .font-size-card {
        padding: 20px 12px;
        min-height: 120px;
    }
    
    .theme-color-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .theme-color-preview {
        width: 64px;
        height: 64px;
    }
    
    .font-family-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .font-family-card {
        padding: 16px 12px;
        min-height: 120px;
    }
    
    /* Account Tab Responsive */
    .account-info-section {
        border-radius: 16px;
        margin-bottom: 24px;
    }
    
    .account-info-item {
        padding: 16px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .account-info-value {
        text-align: left;
        width: 100%;
    }
    
    .profile-tab-pane[data-pane="account"] {
        padding-top: 32px;
    }
    
    .account-section-card {
        border-radius: 16px;
        margin: 0 24px 20px;
    }
    
    .account-section-card:first-child {
        margin-top: 32px;
    }
    
    .account-section-card:last-child {
        margin-bottom: 32px;
    }
    
    .account-section-header {
        padding: 18px 20px 14px;
    }
    
    .account-section-body {
        padding: 18px 20px;
    }
    
    .account-form-input,
    .account-input-disabled {
        padding: 12px 16px;
        font-size: calc(15px * var(--font-size-multiplier));
    }
    
    .account-button-primary,
    .account-button-danger {
        padding: 12px 20px;
        font-size: calc(15px * var(--font-size-multiplier));
    }
    
    .account-notice-box,
    .account-danger-warning {
        flex-direction: column;
        padding: 16px;
    }
    
    .notice-icon,
    .danger-warning-icon {
        font-size: calc(24px * var(--font-size-multiplier));
    }
    
    .account-action-button {
        padding: 14px;
    }
    
    .action-button-content {
        gap: 12px;
    }
    
    .action-button-icon {
        width: 36px;
        height: 36px;
    }
    
    .journal-footer {
        padding: 20px 16px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .footer-left {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .footer-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer-logout-btn {
        width: auto;
        min-width: 100px;
    }
    
    .delete-account-modal-content {
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .delete-account-body {
        min-height: 250px;
        padding: 20px;
    }
    
    .delete-account-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .delete-account-actions button {
        width: 100%;
        min-width: unset;
    }
    
    .feedback-button-container {
        bottom: 80px;
        right: 16px;
    }
    
    .feedback-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .feedback-button span {
        display: none;
    }
    
    .feedback-button {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .feedback-button svg {
        width: 24px;
        height: 24px;
    }
    
    .no-entries-container {
        margin: 0;
        padding: 40px 24px;
    }
    
    .no-entries-icon {
        font-size: 64px;
        margin-bottom: 20px;
    }
    
    .no-entries-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .no-entries-message {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .no-entries-note {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .no-entries-illustration {
        font-size: 36px;
    }
}

/* Year in Review Modal Styles */
.year-review-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.year-review-content {
    padding: 20px;
}

.year-selector {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-selector label {
    font-weight: 600;
    color: var(--text-primary);
}

.year-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
}

.year-review-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.year-review-summary {
    margin-bottom: 32px;
}

.year-review-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.year-stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.year-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.year-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.year-review-section {
    margin-bottom: 32px;
}

.year-review-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.year-chart-container {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 200px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.year-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.year-chart-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.year-chart-bar-fill {
    width: 100%;
    background: var(--accent-color);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s ease;
}

.year-chart-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.year-memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.year-memory-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.year-memory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.memory-photo {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
}

.memory-content {
    padding: 16px;
}

.memory-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.memory-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.memory-badge {
    font-size: 16px;
    flex-shrink: 0;
}

.memory-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.memory-preview {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-memories {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
}

.year-review-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.year-share-btn {
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.year-share-btn:hover {
    opacity: 0.9;
}

/* Smart Suggestions Banner */
.smart-suggestions-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    margin-bottom: 20px;
}

.smart-suggestions-banner .banner-icon {
    background: rgba(255, 255, 255, 0.2);
}

.smart-suggestions-banner .banner-title {
    color: white;
    font-weight: 600;
}

.smart-suggestions-banner .banner-description {
    color: rgba(255, 255, 255, 0.9);
}

.banner-action-btn {
    padding: 8px 16px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-left: auto;
    margin-right: 8px;
}

.banner-action-btn:hover {
    opacity: 0.9;
}

.smart-suggestions-banner .banner-close {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.smart-suggestions-banner .banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Year Review Slideshow */
.year-review-slideshow {
    max-width: 1000px;
}

.year-review-header {
    margin-bottom: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.year-review-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    margin: 0 -20px 20px -20px;
}

.year-review-nav-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.year-review-nav-btn:hover:not(:disabled) {
    background: var(--hover);
    border-color: var(--primary-color);
}

.year-review-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.year-review-progress {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.year-review-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.year-review-slide-counter {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: center;
}

.year-review-slideshow-container {
    position: relative;
    min-height: 500px;
}

.year-review-slide-wrapper {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.year-review-slide-wrapper.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.year-review-slide {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 40px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
}

.year-review-slide-content {
    width: 100%;
    max-width: 800px;
}

/* Cover Slide */
.year-review-slide-cover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
}

.year-review-cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.year-review-cover-icon {
    font-size: 80px;
    animation: float 3s ease-in-out infinite;
}

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

.year-review-cover-title {
    font-size: 72px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.year-review-cover-subtitle {
    font-size: 24px;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.year-review-cover-brand {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.8;
    margin-top: 20px;
    letter-spacing: 2px;
}

/* Overview Slide */
.year-review-stats-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.year-review-stat-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.year-review-stat-large:hover {
    transform: translateY(-4px);
}

.year-review-stat-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.year-review-stat-value-large {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.year-review-stat-label-large {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Word Count, Days, Streak Slides */
.year-review-slide-icon-large {
    font-size: 80px;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.year-review-big-number {
    font-size: 96px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin: 24px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.year-review-slide-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.year-review-slide-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 16px 0 0 0;
    line-height: 1.6;
}

/* Memory Slide */
.year-review-slide-memory {
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.year-review-memory-photo {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-tertiary);
}

.year-review-memory-content {
    padding: 32px;
}

.year-review-memory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.year-review-memory-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year-review-memory-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.year-review-memory-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.year-review-memory-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    font-weight: 500;
}

.year-review-memory-preview {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

/* Share Button */
.year-review-share-slide-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.year-review-share-slide-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.year-review-share-slide-btn svg {
    width: 18px;
    height: 18px;
}

.year-review-slide-cover .year-review-share-slide-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.year-review-slide-cover .year-review-share-slide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .year-review-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .year-stat-value {
        font-size: 24px;
    }
    
    .year-chart-container {
        height: 150px;
        gap: 4px;
    }
    
    .year-memories-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-action-btn {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }
    
    .smart-suggestions-banner .banner-content {
        flex-wrap: wrap;
    }
    
    /* Slideshow Mobile */
    .year-review-slide {
        padding: 24px;
        min-height: 400px;
    }
    
    .year-review-cover-title {
        font-size: 48px;
    }
    
    .year-review-cover-subtitle {
        font-size: 18px;
    }
    
    .year-review-cover-icon {
        font-size: 60px;
    }
    
    .year-review-stats-grid-large {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .year-review-stat-value-large {
        font-size: 36px;
    }
    
    .year-review-big-number {
        font-size: 64px;
    }
    
    .year-review-slide-title {
        font-size: 24px;
    }
    
    .year-review-slide-icon-large {
        font-size: 60px;
    }
    
    .year-review-memory-photo {
        height: 200px;
    }
    
    .year-review-memory-content {
        padding: 20px;
    }
    
    .year-review-memory-title {
        font-size: 24px;
    }
    
    .year-review-nav {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .year-review-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .year-review-share-slide-btn {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
    max-width: 90%;
    width: auto;
}

.offline-indicator.hidden {
    display: none;
}

.offline-indicator-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.offline-icon {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

.offline-text {
    flex: 1;
}

.offline-pending {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Photo Queue Indicator */
.photo-queue-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.photo-queue-indicator.hidden {
    display: none;
}

.queue-icon {
    font-size: 16px;
}

.queue-text {
    font-weight: 500;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.toast {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border: 1px solid var(--border);
    min-width: 280px;
    max-width: 100%;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-icon {
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.toast-close:hover {
    background: var(--hover);
    color: var(--text-primary);
}

.toast-close:active {
    background: var(--hover-active);
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #34C759;
}

.toast-success .toast-icon {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

.toast-error {
    border-left: 4px solid #FF3B30;
}

.toast-error .toast-icon {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

.toast-warning {
    border-left: 4px solid #FF9500;
}

.toast-warning .toast-icon {
    background: rgba(255, 149, 0, 0.1);
    color: #FF9500;
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

.toast-info .toast-icon {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
    
    .toast {
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast.hide {
        transform: translateY(-100px);
    }
}

/* Stats & Achievements Page */
.stats-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.back-button {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    padding: 0;
}

.back-button:hover {
    background: var(--hover);
    border-color: var(--primary-color);
    transform: translateX(-2px);
}

.back-button:active {
    transform: translateX(0);
}

.stats-page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.stats-main {
    flex: 1;
    padding: 32px 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stats-profile-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.stats-privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.05) 100%);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.privacy-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.privacy-notice-text {
    flex: 1;
}

.privacy-notice-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.privacy-notice-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.stats-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.stats-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stats-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.chart-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 8px;
}

.chart-container canvas {
    max-height: 300px;
}

.stats-chart-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

/* Additional Features Section */
.stats-features-section {
    margin-top: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.feature-description {
    font-size: 12px;
    color: var(--text-secondary);
}

.achievements-section {
    margin-top: 8px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.02) 100%);
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.achievement-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.achievement-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.achievement-progress {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.achievement-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.stats-details-section {
    margin-top: 8px;
}

.stats-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.detail-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.stats-empty {
    text-align: center;
    padding: 60px 20px;
}

.stats-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.stats-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.stats-empty p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .stats-quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-icon {
        font-size: 24px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-details-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        padding: 12px;
    }
    
    .chart-container canvas {
        max-height: 200px;
    }
}
