/* Apple-inspired minimalistic design */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 40px;
}

.fullwidth-container {
    width: 100%;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Header - Apple style */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
    letter-spacing: -0.003em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.subtitle {
    color: #86868b;
    font-size: 17px;
    font-weight: 400;
}

/* Public Landing Page Styles */
.public-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.public-hero {
    text-align: center;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.public-hero h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1d1d1f;
    letter-spacing: -0.005em;
    line-height: 1.1;
}

.narrative-section {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.narrative-text {
    font-size: 24px;
    color: #515154;
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.4;
}

.narrative-text strong {
    color: #ff453a;
    font-weight: 600;
}

.solution-text {
    margin-top: 40px;
    padding: 32px;
    background: rgba(0, 113, 227, 0.05);
    border-radius: 16px;
    border-left: 4px solid #0071e3;
}

.solution-text p {
    font-size: 20px;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.hero-cta {
    margin-top: 32px;
    text-align: center;
}

.hero-cta-button {
    font-size: 18px;
    padding: 18px 40px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: -0.022em;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 280px;
}

.hero-cta-button:hover {
    background: #0077ed;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.4);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f5f5f7;
}

.features-section h3 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.feature-item h4 {
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.003em;
}

/* Personality Showcase */
.personality-showcase {
    padding: 80px 0;
    background: white;
}

.personality-showcase h3 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

.showcase-subtitle {
    text-align: center;
    font-size: 20px;
    color: #86868b;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.personality-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.personality-preview-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    border: 2px solid #f5f5f7;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.personality-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0071e3, #005bb5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.personality-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #0071e3;
}

.personality-preview-card:hover::before {
    transform: scaleX(1);
}

.personality-preview-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.personality-preview-card h4 {
    margin-bottom: 12px;
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.personality-preview-card p {
    color: #515154;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 16px;
    font-style: italic;
}

.personality-trait {
    display: inline-block;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.022em;
}

/* Process Showcase */
.process-showcase {
    padding: 80px 0;
    background: #f5f5f7;
}

.process-showcase h3 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.process-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-weight: 600;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.process-step h4 {
    margin-bottom: 16px;
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.process-step p {
    color: #86868b;
    font-size: 17px;
    line-height: 1.47;
    margin-bottom: 24px;
}

/* Process Visuals */
.process-visual {
    max-width: 280px;
    margin: 0 auto;
}

.mock-input {
    background: #f9f9fb;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.input-label {
    display: block;
    font-size: 14px;
    color: #86868b;
    margin-bottom: 8px;
    font-weight: 500;
}

.mock-field {
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #515154;
}

.mock-message {
    background: #f9f9fb;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.mock-message-subject {
    font-size: 14px;
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8ed;
}

.mock-message-body {
    font-size: 14px;
    color: #515154;
    line-height: 1.4;
}

.mock-results {
    background: #f9f9fb;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    padding: 16px;
}

.mock-score {
    font-size: 16px;
    font-weight: 600;
    color: #0071e3;
    margin-bottom: 16px;
    text-align: center;
}

.mock-personality-response {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e8e8ed;
}

.mock-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mock-response-text {
    flex: 1;
    font-size: 13px;
    color: #515154;
    font-style: italic;
}

.mock-score-badge {
    background: #0071e3;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
    text-align: center;
}

.cta-content h3 {
    font-size: 44px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.003em;
    line-height: 1.2;
}

.cta-content p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    line-height: 1.4;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    font-size: 20px;
    padding: 20px 48px;
    background: white;
    color: #0071e3;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: -0.022em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 24px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: #f5f5f7;
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

/* Landing Page - Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.hero h2 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
    letter-spacing: -0.005em;
    line-height: 1.07;
}

.hero p {
    font-size: 24px;
    color: #86868b;
    margin-bottom: 48px;
    font-weight: 400;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.33;
}

/* Buttons - Apple style */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    letter-spacing: -0.022em;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: #0071e3;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn.primary:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
}

.btn.secondary {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.btn.secondary:hover {
    background: #e8e8ed;
    transform: translateY(-1px);
}

/* How It Works - Apple grid style */
.how-it-works {
    padding: 80px 0 120px;
    background: #f5f5f7;
}

.how-it-works h3 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
}

.step {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-weight: 600;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.step h4 {
    margin-bottom: 16px;
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.step p {
    color: #86868b;
    font-size: 17px;
    line-height: 1.47;
}

/* Setup Page */
.progress-bar {
    height: 2px;
    background: #f5f5f7;
    border-radius: 1px;
    margin: 40px 0 60px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0071e3, #005bb5);
    border-radius: 1px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 50%;
}

.step-container {
    display: none;
    padding: 40px 0 80px;
    max-width: 640px;
    margin: 0 auto;
}

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

.step-container h2 {
    margin-bottom: 40px;
    color: #1d1d1f;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.003em;
}

/* Form Elements - Apple style */
.input-group {
    margin-bottom: 32px;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 400;
    color: #1d1d1f;
    cursor: pointer;
    font-size: 17px;
}

.input-group label input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #0071e3;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    transition: all 0.3s ease;
    background: white;
    color: #1d1d1f;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    transform: translateY(-2px);
}

.input-field:disabled {
    background: #f5f5f7;
    color: #86868b;
    border-color: #e8e8ed;
}

.input-group small {
    color: #86868b;
    font-size: 15px;
    margin-top: 8px;
    display: block;
}

.message-stats {
    margin-top: 12px;
    text-align: right;
    color: #86868b;
    font-size: 15px;
}

.step-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 60px;
}

/* Processing Page - Apple loading style */
.processing-content {
    text-align: center;
    padding: 120px 0;
    max-width: 640px;
    margin: 0 auto;
}

.processing-content h2 {
    margin-bottom: 40px;
    color: #1d1d1f;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid #f5f5f7;
    border-top: 3px solid #0071e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 40px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-steps {
    margin: 40px 0;
}

.processing-step {
    padding: 16px 0;
    color: #86868b;
    transition: all 0.4s ease;
    font-size: 17px;
}

.processing-step.active {
    color: #0071e3;
    font-weight: 500;
    transform: scale(1.05);
}

.estimate {
    color: #86868b;
    font-size: 15px;
    margin-top: 24px;
}

/* Results Page */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 40px 0 20px;
    border-bottom: 1px solid #f5f5f7;
}

.results-header h2 {
    color: #1d1d1f;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.overall-score {
    display: flex;
    align-items: center;
    gap: 20px;
}

.results-actions {
    display: flex;
    gap: 12px;
}

.score-label {
    font-weight: 400;
    color: #86868b;
    font-size: 17px;
}

.score-value {
    font-size: 32px;
    font-weight: 700;
    color: #0071e3;
    letter-spacing: -0.003em;
}

/* Analyzed message section */
.analyzed-message {
    margin: 32px 0;
}

.analyzed-message h3 {
    color: #1d1d1f;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.003em;
}

.message-preview {
    background: #f9f9fb;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    padding: 20px;
}

.message-subject {
    margin-bottom: 16px;
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.4;
}

.message-subject strong {
    color: #86868b;
    font-weight: 500;
}

.message-body {
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.4;
}

.message-body strong {
    color: #86868b;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

#analyzed-body {
    background: white;
    border: 1px solid #e8e8ed;
    border-radius: 8px;
    padding: 16px;
    white-space: pre-wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #515154;
}

/* Personality Grid - More compact Apple card style */
.personality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.personality-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f5f5f7;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.personality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #005bb5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.personality-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border-color: #0071e3;
}

.personality-card:hover::before {
    transform: scaleX(1);
}

.personality-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.personality-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.personality-info h4 {
    margin-bottom: 2px;
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.personality-traits {
    font-size: 13px;
    color: #86868b;
    font-weight: 400;
}

.personality-score {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.022em;
}

.personality-description {
    color: #515154;
    font-size: 15px;
    line-height: 1.4;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Score colors - Apple inspired */
.score-high { 
    color: #30d158; 
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
}
.score-medium { 
    color: #ff9f0a; 
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.2);
}
.score-low { 
    color: #ff453a; 
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.2);
}

/* Modal - Apple style with improved content styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 580px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 16px;
    border-bottom: 1px solid #f5f5f7;
    flex-shrink: 0;
}

.modal-header h3 {
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.close-btn {
    background: #f5f5f7;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #86868b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
}

.close-btn:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

.modal-body {
    padding: 24px 32px 32px;
    overflow-y: auto;
    flex: 1;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a6;
}

/* Enhanced personality avatar section */
.personality-avatar-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 20px;
    background: #f9f9fb;
    border-radius: 12px;
}

.personality-avatar-section img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 24px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.personality-meta {
    flex: 1;
}

.personality-meta h4 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    letter-spacing: -0.003em;
}

.personality-meta p {
    color: #515154;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Trait tags styling */
.trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.trait-tag {
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.022em;
}

/* Response sections with better visual hierarchy */
.response-section {
    margin-bottom: 24px;
}

.response-section h4 {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.003em;
}

.response-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #0071e3;
    border-radius: 2px;
    margin-right: 12px;
}

/* First impression styling */
.first-impression {
    background: #fff9e6;
    border: 1px solid #ffd60a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
}

.first-impression::before {
    content: '💭';
    position: absolute;
    top: -12px;
    left: 16px;
    background: white;
    padding: 0 6px;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 24px;
}

.first-impression p {
    color: #1d1d1f;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Key observations styling */
.key-observations {
    margin-bottom: 24px;
}

.key-observations ul {
    list-style: none;
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 12px;
    padding: 20px;
}

.key-observations li {
    color: #1d1d1f;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
}

.key-observations li:last-child {
    margin-bottom: 0;
}

.key-observations li:before {
    content: "→";
    color: #0071e3;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* Chat bubble response styling */
.response-bubble {
    background: #0071e3;
    color: white;
    border-radius: 20px 20px 20px 4px;
    padding: 20px 24px;
    margin-bottom: 24px;
    position: relative;
    max-width: 90%;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.2);
}

.response-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 12px;
    width: 0;
    height: 0;
    border-left: 16px solid #0071e3;
    border-bottom: 8px solid transparent;
    border-top: 8px solid transparent;
}

.response-bubble p {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.response-bubble .response-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Modal score with enhanced styling */
.modal-score {
    background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: #1d1d1f;
    margin-top: 24px;
    font-size: 16px;
    letter-spacing: -0.003em;
    border: 2px solid #0071e3;
    position: relative;
}

.modal-score::before {
    content: '📊';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 6px;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 24px;
}

/* Feature Request Section */
.feature-request-section {
    margin: 60px 0 40px;
    padding: 0;
}

.feature-request-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #0071e3;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-request-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 113, 227, 0.2);
}

.feature-request-header {
    margin-bottom: 24px;
}

.feature-request-header .feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.feature-request-header h3 {
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.003em;
}

.feature-request-content p {
    color: #515154;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-benefits {
    list-style: none;
    margin: 32px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.feature-benefits li {
    color: #1d1d1f;
    font-size: 16px;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.feature-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0071e3;
    font-weight: bold;
    font-size: 18px;
}

.feature-benefits li:last-child {
    margin-bottom: 0;
}

.feature-request-actions {
    margin-top: 32px;
}

.feature-request-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
    margin-bottom: 16px;
    min-width: 280px;
}

.feature-request-btn:hover {
    background: #0077ed;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.4);
}

.feature-request-btn:disabled {
    background: #86868b;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 16px rgba(134, 134, 139, 0.2);
}

.feature-request-note {
    color: #86868b;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* Success state for feature request */
.feature-request-success {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border-color: #30d158;
}

.feature-request-success .feature-request-header h3 {
    color: #30d158;
}

.feature-request-success .feature-icon::before {
    content: "✅";
}

/* Responsive Design - Apple breakpoints */
@media (max-width: 1068px) {
    .container {
        padding: 0 24px;
    }
    
    .hero h2 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 21px;
    }
    
    .personality-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 834px) {
    .hero {
        padding: 80px 0 100px;
    }
    
    .hero h2 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 19px;
    }
    
    .how-it-works h3 {
        font-size: 32px;
    }
    
    .step h4 {
        font-size: 20px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .analyzed-message {
        margin: 24px 0;
    }
    
    .message-preview {
        padding: 16px;
    }
    
    .personality-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .step-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .personality-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .personality-avatar-section img {
        margin-right: 0;
        margin-bottom: 16px;
    }
}

@media (max-width: 430px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .analyzed-message h3 {
        font-size: 20px;
    }
    
    .message-preview {
        padding: 16px;
    }
    
    #analyzed-body {
        padding: 12px;
        font-size: 13px;
    }
    
    .personality-grid {
        grid-template-columns: 1fr;
    }
    
    .personality-card {
        padding: 20px;
    }
    
    .feature-request-card {
        padding: 32px 24px;
    }
    
    .feature-request-header h3 {
        font-size: 24px;
    }
    
    .feature-request-content p {
        font-size: 16px;
    }
    
    .feature-benefits {
        text-align: left;
        padding-left: 0;
    }
    
    .feature-request-btn {
        padding: 18px 36px;
        font-size: 16px;
        min-width: 240px;
    }
}

@media (max-width: 430px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 17px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .analyzed-message h3 {
        font-size: 20px;
    }
    
    .message-preview {
        padding: 16px;
    }
    
    #analyzed-body {
        padding: 12px;
        font-size: 13px;
    }
    
    .personality-grid {
        grid-template-columns: 1fr;
    }
    
    .personality-card {
        padding: 20px;
    }
    
    .feature-request-card {
        padding: 24px 20px;
    }
    
    .feature-request-header h3 {
        font-size: 22px;
    }
    
    .feature-request-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Loading states */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
}

.error-message {
    color: #ff453a;
    margin-bottom: 24px;
    font-size: 17px;
}

/* Authentication Pages */
.auth-page {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    text-align: center;
}

.auth-logo {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    letter-spacing: -0.003em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-form {
    background: white;
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-form h2 {
    color: #1d1d1f;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.003em;
}

.auth-form p {
    color: #515154;
    font-size: 17px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.auth-form .input-group {
    text-align: left;
    margin-bottom: 24px;
}

.auth-form .input-group:last-of-type {
    margin-bottom: 32px;
}

.auth-form label {
    display: block;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-form .input-field {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.auth-form .input-field:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    outline: none;
}

.auth-form .input-field::placeholder {
    color: #86868b;
}

.auth-form small {
    display: block;
    color: #86868b;
    font-size: 14px;
    margin-top: 6px;
}

.full-width {
    width: 100%;
}

.btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

.auth-switch {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8e8ed;
}

.auth-switch p {
    color: #515154;
    font-size: 16px;
    margin: 0;
}

.auth-switch a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: #005bb5;
    text-decoration: underline;
}

.error-message {
    background: #fff2f0;
    border: 1px solid #ff453a;
    color: #ff453a;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
    display: none;
}

/* User Menu in Header */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.user-name {
    color: #515154;
    font-size: 16px;
    font-weight: 500;
}

.user-menu .btn {
    margin: 0;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.floating-btn {
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
    transition: all 0.2s ease;
}

.floating-btn:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.4);
}

/* Analysis History */
.analysis-history {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.analysis-history h3 {
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.003em;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e8e8ed;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analysis-item:hover {
    background: #f9f9fb;
    border-color: #0071e3;
}

.analysis-item:last-child {
    margin-bottom: 0;
}

.analysis-meta {
    flex: 1;
}

.analysis-meta h4 {
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.analysis-meta p {
    color: #86868b;
    font-size: 14px;
    margin: 0;
}

.analysis-score {
    background: #f0f8ff;
    color: #0071e3;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Dashboard Styles */
.welcome-section {
    margin-top: 20px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.welcome-content h2 {
    color: #1d1d1f;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.003em;
}

.welcome-content p {
    color: #515154;
    font-size: 17px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.dashboard-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn.large {
    padding: 18px 36px;
    font-size: 18px;
    min-width: 200px;
}

.btn-icon {
    margin-right: 8px;
}

.dashboard-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 200px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e8e8ed;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #0071e3;
    margin-bottom: 4px;
    letter-spacing: -0.003em;
}

.stat-label {
    font-size: 13px;
    color: #86868b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h3 {
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.analyses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.analyses-list {
    display: block;
    margin-bottom: 40px;
}

.analysis-row {
    background: white;
    border-radius: 12px;
    border: 1px solid #e8e8ed;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.analysis-row:hover {
    border-color: #0071e3;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.1);
}

.analysis-row:last-child {
    margin-bottom: 0;
}

.analysis-row-content {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 20px;
}

.analysis-main {
    flex: 1;
    min-width: 0;
}

.analysis-info {
    margin-bottom: 8px;
}

.analysis-subject {
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.003em;
}

.analysis-message-preview {
    color: #515154;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.analysis-metadata {
    display: flex;
    align-items: center;
}

.analysis-date {
    color: #86868b;
    font-size: 13px;
    font-weight: 500;
}

.analysis-score-section {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.analysis-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.analysis-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e8e8ed;
    transition: all 0.3s ease;
    cursor: pointer;
}

.analysis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #0071e3;
}

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

.analysis-title h4 {
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.003em;
}

.analysis-date {
    color: #86868b;
    font-size: 13px;
    font-weight: 500;
}

.analysis-score {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.analysis-preview {
    margin-bottom: 20px;
}

.analysis-preview p {
    color: #515154;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.analysis-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f5f5f7;
}

.analysis-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.response-count {
    color: #0071e3;
    font-size: 13px;
    font-weight: 500;
}

.analysis-time {
    color: #86868b;
    font-size: 13px;
}

.analysis-actions {
    display: flex;
    gap: 8px;
}

.btn.danger {
    background: #ff453a;
    color: white;
    border: none;
}

.btn.danger:hover {
    background: #e63946;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9fb;
    border-radius: 16px;
    border: 2px dashed #d1d1d6;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.empty-state p {
    color: #86868b;
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.usage-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.usage-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9f9fb;
    border-radius: 8px;
}

.usage-label {
    color: #86868b;
    font-size: 14px;
    font-weight: 500;
}

.usage-value {
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 600;
}

.usage-period {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8ed;
}

.usage-period label {
    display: block;
    margin-bottom: 8px;
    color: #1d1d1f;
    font-weight: 500;
}

.usage-period select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

/* Responsive Design for Dashboard */
@media (max-width: 1068px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .dashboard-stats {
        flex-direction: row;
        width: 100%;
        min-width: unset;
    }
    
    .analyses-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 834px) {
    .welcome-section {
        padding: 32px 24px;
    }
    
    .dashboard-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn.large {
        min-width: unset;
    }
    
    .dashboard-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .analyses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .analysis-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .analysis-row-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .analysis-score-section {
        margin-right: 0;
        align-self: flex-end;
    }
    
    .analysis-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .usage-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 430px) {
    .welcome-content h2 {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .analysis-card {
        padding: 20px;
    }
    
    .analysis-row-content {
        padding: 16px;
        gap: 12px;
    }
    
    .analysis-subject {
        font-size: 15px;
    }
    
    .analysis-message-preview {
        font-size: 13px;
    }
    
    .analysis-actions {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    
    .btn.small {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
    }
}

/* Responsive Design for Auth Pages */
@media (max-width: 834px) {
    .auth-form {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .auth-form h2 {
        font-size: 28px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-right {
        align-self: flex-end;
        margin-left: 0;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 8px;
        text-align: right;
    }
    
    .user-name {
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    .auth-form {
        padding: 24px 20px;
        margin: 0 8px;
    }
    
    .auth-form h2 {
        font-size: 24px;
    }
    
    .auth-form p {
        font-size: 16px;
    }
    
    .floating-actions {
        bottom: 16px;
        right: 16px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .user-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        padding: 12px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        margin-top: 8px;
    }
}

/* Public Landing Page Styles */
.public-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.public-hero {
    text-align: center;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.public-hero h2 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1d1d1f;
    letter-spacing: -0.005em;
    line-height: 1.1;
}

.narrative-section {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.narrative-text {
    font-size: 24px;
    color: #515154;
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.4;
}

.narrative-text strong {
    color: #ff453a;
    font-weight: 600;
}

.solution-text {
    margin-top: 40px;
    padding: 32px;
    background: rgba(0, 113, 227, 0.05);
    border-radius: 16px;
    border-left: 4px solid #0071e3;
}

.solution-text p {
    font-size: 20px;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.hero-cta {
    margin-top: 32px;
    text-align: center;
}

.hero-cta-button {
    font-size: 18px;
    padding: 18px 40px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: -0.022em;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 280px;
}

.hero-cta-button:hover {
    background: #0077ed;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.4);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #f5f5f7;
}

.features-section h3 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.feature-item h4 {
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.003em;
}

/* Personality Showcase */
.personality-showcase {
    padding: 80px 0;
    background: white;
}

.personality-showcase h3 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

.showcase-subtitle {
    text-align: center;
    font-size: 20px;
    color: #86868b;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.personality-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.personality-preview-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    border: 2px solid #f5f5f7;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.personality-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0071e3, #005bb5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.personality-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #0071e3;
}

.personality-preview-card:hover::before {
    transform: scaleX(1);
}

.personality-preview-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.personality-preview-card h4 {
    margin-bottom: 12px;
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.personality-preview-card p {
    color: #515154;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 16px;
    font-style: italic;
}

.personality-trait {
    display: inline-block;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.022em;
}

/* Process Showcase */
.process-showcase {
    padding: 80px 0;
    background: #f5f5f7;
}

.process-showcase h3 {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.process-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-weight: 600;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.process-step h4 {
    margin-bottom: 16px;
    color: #1d1d1f;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.process-step p {
    color: #86868b;
    font-size: 17px;
    line-height: 1.47;
    margin-bottom: 24px;
}

/* Process Visuals */
.process-visual {
    max-width: 280px;
    margin: 0 auto;
}

.mock-input {
    background: #f9f9fb;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.input-label {
    display: block;
    font-size: 14px;
    color: #86868b;
    margin-bottom: 8px;
    font-weight: 500;
}

.mock-field {
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: #515154;
}

.mock-message {
    background: #f9f9fb;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
}

.mock-message-subject {
    font-size: 14px;
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8ed;
}

.mock-message-body {
    font-size: 14px;
    color: #515154;
    line-height: 1.4;
}

.mock-results {
    background: #f9f9fb;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    padding: 16px;
}

.mock-score {
    font-size: 16px;
    font-weight: 600;
    color: #0071e3;
    margin-bottom: 16px;
    text-align: center;
}

.mock-personality-response {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e8e8ed;
}

.mock-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.mock-response-text {
    flex: 1;
    font-size: 13px;
    color: #515154;
    font-style: italic;
}

.mock-score-badge {
    background: #0071e3;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
    text-align: center;
}

.cta-content h3 {
    font-size: 44px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.003em;
    line-height: 1.2;
}

.cta-content p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    line-height: 1.4;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    font-size: 20px;
    padding: 20px 48px;
    background: white;
    color: #0071e3;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: -0.022em;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 24px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: #f5f5f7;
}

.cta-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design for Public Landing Page */
@media (max-width: 1068px) {
    .public-hero h2 {
        font-size: 44px;
    }
    
    .narrative-text {
        font-size: 21px;
    }
    
    .solution-text p {
        font-size: 18px;
    }
    
    .personality-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 40px;
    }
}

@media (max-width: 834px) {
    .public-hero {
        padding: 60px 0 80px;
    }
    
    .public-hero h2 {
        font-size: 36px;
    }
    
    .narrative-text {
        font-size: 19px;
    }
    
    .solution-text {
        padding: 24px;
    }
    
    .solution-text p {
        font-size: 17px;
    }
    
    .hero-cta-button {
        font-size: 16px;
        padding: 16px 32px;
        min-width: 240px;
    }
    
    .features-section,
    .personality-showcase,
    .process-showcase {
        padding: 60px 0;
    }
    
    .features-section h3,
    .personality-showcase h3,
    .process-showcase h3 {
        font-size: 32px;
    }
    
    .personality-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-content h3 {
        font-size: 36px;
    }
    
    .cta-content p {
        font-size: 20px;
    }
    
    .cta-button {
        font-size: 18px;
        padding: 18px 40px;
    }
    
    .header-right {
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 430px) {
    .public-hero h2 {
        font-size: 28px;
    }
    
    .narrative-text {
        font-size: 17px;
    }
    
    .solution-text p {
        font-size: 16px;
    }
    
    .features-section h3,
    .personality-showcase h3,
    .process-showcase h3 {
        font-size: 28px;
    }
    
    .personality-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .personality-preview-card {
        padding: 24px 20px;
    }
    
    .process-step {
        padding: 32px 16px;
    }
    
    .cta-content h3 {
        font-size: 32px;
    }
    
    .cta-content p {
        font-size: 18px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 16px 32px;
        width: 100%;
        max-width: 300px;
    }
}

/* App Footer */
.app-footer {
    background: #f5f5f7;
    border-top: 1px solid #e8e8ed;
    padding: 24px 0;
    margin-top: 60px;
    text-align: center;
}

.app-footer p {
    color: #86868b;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.app-footer a {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.app-footer a:hover {
    color: #005bb5;
    text-decoration: underline;
}

/* Responsive footer styles */
@media (max-width: 430px) {
    .app-footer {
        padding: 20px 0;
        margin-top: 40px;
    }
    
    .app-footer p {
        font-size: 13px;
    }
} 