/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --primary-solid: #6366f1;
    --secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
    --accent: #8b5cf6;
    --text: #1e293b;
    --text-light: #475569;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --bg-light: #f1f5f9;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    --border: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --radius-small: 16px;
    --radius-large: 28px;
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
    --glass: rgba(255, 255, 255, 0.9);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans CJK JP', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    padding-top: calc(70px + var(--safe-top));
    padding-bottom: var(--safe-bottom);
}

/* Utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.chip.kpi {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    font-weight: 600;
}

.chip-lock {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    background: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ff1493, #e91e63);
    color: white;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
    border: 2px solid #c2185b;
    position: relative;
    overflow: hidden;
    font-weight: 700;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.7);
    background: linear-gradient(135deg, #ff4081, #ff1744);
    border-color: #ad1457;
}

.btn-secondary {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline {
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--bg-light);
}

.btn.large {
    padding: 16px 32px;
    font-size: 18px;
    min-height: 56px;
}

.btn.full-width {
    width: 100%;
}

.muted {
    color: var(--text-light);
}

.meter {
    background: #eee;
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
    flex: 1;
}

.meter .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: var(--val, 0%);
    transition: width 0.4s ease;
}

.blurred {
    filter: blur(4px);
    pointer-events: none;
    position: relative;
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 14px;
}

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

#auth-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#auth-section .btn {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 36px;
}

@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

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

/* Hero */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ff6b9d, #667eea, #ff6b9d);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 48px;
    line-height: 1.6;
    font-weight: 500;
}

.kpi-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 14px;
    color: var(--text-light);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text);
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--bg-light);
}

/* Hero tag */
.hero-tag {
    background: linear-gradient(135deg, #ff6b9d, #ffa8c5);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    animation: gentleFloat 3s ease-in-out infinite;
}

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

/* Section subtitle */
.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 500;
}

/* User voice section */
.user-voice {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.2);
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.voice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text);
}

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

.voice-emoji {
    font-size: 18px;
}

.voice-text {
    font-weight: 500;
    font-style: italic;
    color: #666;
}

/* Trust metrics with feminine touch */
.trust-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin: 48px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.metric {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 250, 0.9));
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
    border: 2px solid rgba(255, 182, 193, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.metric-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 157, 0.3));
}

.metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    animation: metricShimmer 3s ease-in-out infinite;
}

.metric::after {
    content: '✨';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
    opacity: 0.5;
    animation: sparkle 2s ease-in-out infinite;
}

.metric:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 48px rgba(255, 107, 157, 0.25);
    border-color: rgba(255, 107, 157, 0.4);
}

@keyframes metricShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Testimonials */
.testimonial-section {
    background: linear-gradient(135deg, #fff5f8 0%, #f0f9ff 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
}

.testimonial-section h3 {
    color: var(--primary-solid);
    margin-bottom: 24px;
    font-size: 20px;
}

.testimonials {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15);
    border-left: 4px solid var(--primary-solid);
}

.testimonial-text {
    font-style: italic;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

/* Demo preview */
.demo-preview {
    background: white;
    padding: 32px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.15);
    border: 2px solid rgba(255, 182, 193, 0.2);
}

.demo-text {
    text-align: center;
    color: var(--primary-solid);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.demo-example {
    max-width: 500px;
    margin: 0 auto;
}

.demo-input {
    background: #f8f9fb;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #667eea;
    font-style: italic;
}

.demo-arrow {
    text-align: center;
    font-size: 24px;
    color: var(--primary-solid);
    margin-bottom: 16px;
}

.demo-outputs {
    display: grid;
    gap: 12px;
}

.demo-output {
    background: linear-gradient(135deg, #fff5f8, #ffffff);
    padding: 14px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-solid);
    font-size: 14px;
    line-height: 1.5;
}

/* Step visuals */
.step-visual {
    font-size: 24px;
    margin-top: 12px;
    opacity: 0.8;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b9d, #ffa8c5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.metric-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Demo section */
.demo-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.app-selector {
    margin-bottom: 32px;
    text-align: center;
}

.app-selector h3 {
    margin-bottom: 16px;
    color: var(--text);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 24px auto;
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 9999;
        padding: 20px;
        box-sizing: border-box;
    }

    .mobile-menu.active {
        display: block !important;
    }

    .hamburger-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
    }

    .hamburger-btn.active {
        color: #ff6b9d;
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.app-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-card);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.app-card:hover::before {
    opacity: 0.05;
}

.app-card:hover, .app-card.selected {
    border-color: var(--primary-solid);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.app-card.selected {
    border-color: var(--primary-solid);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(102, 126, 234, 0.1));
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.3);
    transform: translateY(-6px) scale(1.02);
    position: relative;
}

.app-card.selected::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b9d, #667eea, #ff6b9d, #667eea);
    background-size: 400% 400%;
    border-radius: 14px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.app-card > * {
    position: relative;
    z-index: 1;
}

.app-icon {
    font-size: 28px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.app-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.app-description {
    font-size: 11px;
    color: var(--text-light);
    opacity: 0.8;
}

.app-description-display {
    background: var(--bg-card);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-large);
    padding: 32px;
    margin: 24px 0 32px 0;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.app-description-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d, #667eea, #ff6b9d);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.app-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.app-info span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.app-feature {
    background: linear-gradient(135deg, #ff6b9d, #667eea);
    color: white !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

#selected-app-detail {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-weight: 500;
}



.app-detailed-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.feature-item {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.app-best-for {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(255, 107, 157, 0.1));
    padding: 12px 20px;
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    margin-top: 16px;
}

.best-for-label {
    font-size: 12px;
    color: #667eea;
    font-weight: 700;
}

.best-for-text {
    font-size: 14px;
    color: #333;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .app-detailed-features {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .feature-item {
        font-size: 12px;
        padding: 6px 10px;
    }

    .app-best-for {
        flex-direction: column;
        gap: 4px;
        padding: 10px 16px;
    }
}

.input-section {
    background: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.input-section h3 {
    margin-bottom: 16px;
    color: var(--text);
}

.message-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.message-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 95, 109, 0.1);
}

.usage-display {
    background: linear-gradient(135deg, #fff5f8 0%, #f0f9ff 100%);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
    border: 2px solid rgba(255, 107, 157, 0.2);
}

#usage-text {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

#usage-bar {
    background: #e0e0e0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

#usage-progress {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.results-header {
    text-align: center;
    margin-bottom: 24px;
}

.results-header h3 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.results-header p {
    color: var(--text-light);
}

/* Pro features section */
.pro-features {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
}

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

.feature-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-highlight {
    background: linear-gradient(135deg, #ff6b9d, #667eea);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* Success stats */
.success-stats {
    background: linear-gradient(135deg, #ff6b9d 0%, #667eea 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
    text-align: center;
}

.success-stats h3 {
    color: white;
    margin-bottom: 30px;
    font-size: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
}

/* How it works */
.steps {
    display: grid;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Features */
.feature-comparison {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 60px;
}

.feature-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-card.pro {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.card-header {
    text-align: center;
    padding: 24px 24px 16px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg));
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
}

.popular {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
    border-bottom: none;
}

:root {
    --primary: #ff5f6d;
    --secondary: #ffc371;
    --text: #111;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fff;
    --bg-light: #f8f9fb;
    --border: #e1e5e9;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 95, 109, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

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

.btn.large {
    padding: 16px 32px;
    font-size: 18px;
    height: auto;
}

.btn.full-width {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #fff5f8 0%, #f0f9ff 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.kpi-chips {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.chip {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chip-label {
    font-size: 12px;
    color: var(--text-light);
}

.chip-value {
    font-weight: 700;
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-note {
    color: var(--text-light);
    font-size: 14px;
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text);
}

.how-it-works {
    padding: 80px 0;
    background: var(--bg);
}

.steps {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.learning {
    padding: 80px 0;
    background: var(--bg);
}

.grid-3 {
    display: grid;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing {
    padding: 80px 0;
    background: var(--bg-light);
}

.pricing-cards {
    display: grid;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.price-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-big span {
    font-size: 1rem;
    color: var(--text-light);
}

.faq {
    padding: 80px 0;
    background: var(--bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    padding: 20px;
    margin: 0;
    background: var(--bg-light);
    cursor: pointer;
}

.faq-item p {
    padding: 20px;
    margin: 0;
    transition: all 0.3s ease;
}

.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}



/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .nav {
        padding: 8px 0;
        position: relative;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links .btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-top: 10px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 24px;
        font-size: 16px;
    }

    .kpi-chips {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .chip {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .feature-comparison {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pro Features */
.pro-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    to { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

.pro-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #ff6b9d;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.pro-lock-overlay:hover {
    background: rgba(255, 107, 157, 0.1);
}

.metric-card.locked {
    filter: blur(2px);
    cursor: pointer;
}

.metric-card.locked:hover {
    filter: blur(1px);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

@media (max-width: 480px) {
    .modal {
        padding: 16px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .modal-content {
        padding: 24px 20px;
        max-width: 100%;
        border-radius: 12px;
        margin: 0;
    }

    .modal-content input {
        font-size: 16px;
        padding: 14px 16px;
    }

    .modal-content .btn {
        font-size: 16px;
        padding: 14px 20px;
        width: 100%;
        margin: 8px 0;
    }
}

.modal .close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal .close:hover {
    color: #333;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Analysis Results */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Psychology Signals */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.signal-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.signal-item:hover {
    transform: scale(1.05);
}

.signal-bar {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

/* Reply Cards */
.replies-container {
    display: grid;
    gap: 16px;
}

.reply-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.reply-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.reply-card:active {
    transform: scale(0.98);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    margin-left: 8px;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .signals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .modal-content {
        margin: 16px;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .replies-container {
        gap: 12px;
    }

    .reply-card {
        padding: 16px;
        margin-bottom: 8px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .action-buttons .btn {
        min-height: 60px;
        padding: 16px 12px;
        font-size: 16px;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .app-card {
        padding: 12px 8px;
        font-size: 12px;
    }

    .app-icon {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .container {
        padding: 0 16px;
    }

    .input-section {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .message-textarea {
        min-height: 100px;
        font-size: 16px;
        padding: 14px;
    }

    .context-input {
        font-size: 16px;
        padding: 12px;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .app-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .metric-card {
        padding: 12px;
    }

    .app-card {
        padding: 16px;
    }

    .message-textarea {
        min-height: 100px;
    }

    .modal-content {
        margin: 8px;
        padding: 16px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid;
    }

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

    .analysis-card {
        border: 1px solid var(--text);
    }
}

/* Focus indicators for keyboard navigation */
.btn:focus,
.app-card:focus,
.reply-card:focus,
.nav-link:focus {
    outline: 3px solid #ff6b9d;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Improved error states */
.error-state {
    background: linear-gradient(135deg, #ffe0e0 0%, #ffebee 100%);
    border: 2px solid #f44336;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: #d32f2f;
}

.error-state .error-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

/* Success states */
.success-state {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: #2e7d32;
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
    }

    .app-card {
        min-height: 80px;
        padding: 16px 12px;
    }

    .reply-card {
        min-height: 60px;
        padding: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .message-textarea {
        min-height: 120px;
        font-size: 16px;
        line-height: 1.4;
    }

    .action-buttons .btn {
        min-height: 70px;
        padding: 16px 12px;
    }

    .nav-links {
        gap: 12px;
    }

    .kpi-chips {
        gap: 8px;
    }

    .chip {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Demo */
.demo-section {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.demo-message {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

.demo-replies {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.reply-option {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.reply-type {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.analysis-demo {
    position: relative;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.analysis-metrics {
    display: grid;
    gap: 16px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

/* Learning */
.learning-card {
    text-align: center;
    padding: 24px;
}

.learning-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.learning-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.learning-effects {
    margin-top: 48px;
    text-align: center;
}

.learning-effects h4 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--primary);
}

/* App Interface */
.app-section {
    background: #f8f9fb;
    padding: 60px 0;
    min-height: 80vh;
}

.app-selector {
    margin-bottom: 32px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.app-card {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.app-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 95, 109, 0.2);
}

.app-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff5f6, white);
    box-shadow: 0 4px 12px rgba(255, 95, 109, 0.3);
}

.app-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.app-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.app-description {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
}

.app-details {
    animation: fadeInUp 0.3s ease;
}

.help-tooltip:hover .tooltip-content {
    opacity: 1;
}

.input-section {
    background: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
}

.message-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 95, 109, 0.1);
}

.context-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
}

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

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.results-area {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-top: 30px;
}

/* Results area styling */
.results-area {
    margin-top: 30px;
}

/* Authentication modal styles */
.auth-modal .modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.auth-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    margin: 12px 0;
    transition: border-color 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #ff5f6d;
}

.auth-message {
    margin-top: 16px;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

#user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-email {
    font-size: 14px;
    color: #666;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 8px;
    }

    #auth-section {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .user-email {
        max-width: 100px;
    }
}

.analysis-results, .reply-results {
    margin-bottom: 32px;
}

.analysis-results:last-child, .reply-results:last-child {
    margin-bottom: 0;
}

.metric-card {
    background: #f8f9fb;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-weight: 600;
    color: var(--text);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-value.locked {
    filter: blur(4px);
    cursor: pointer;
}

.reply-card {
    background: #f8f9fb;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 95, 109, 0.2);
}

.reply-type-label {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

.reply-text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}

@media (max-width: 768px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 9999;
        padding: 20px;
        box-sizing: border-box;
    }

    .mobile-menu.active {
        display: block !important;
    }

    .hamburger-btn {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
    }

    .hamburger-btn.active {
        color: #ff6b9d;
    }
}

/* Enhanced UX styles */
.quick-btn {
    background: #f8f9fb;
    border: 1px solid #e1e5e9;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.quick-btn:hover {
    background: #ff6b9d;
    color: white;
    border-color: #ff6b9d;
}

.tutorial-banner {
    animation: slideIn 0.5s ease-out;
}

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

/* Action buttons styling - Enhanced visual feedback */
.action-buttons .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px;
    min-height: 100px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff5f8 0%, #f0f9ff 100%);
    border: 3px solid rgba(255, 107, 157, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.action-buttons .btn:not(:disabled) {
    cursor: pointer;
}

.action-buttons .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

/* Action buttons styling - Enhanced visual feedback */
.action-buttons .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px;
    min-height: 100px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff5f8 0%, #f0f9ff 100%);
    border: 3px solid rgba(255, 107, 157, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.action-buttons .btn:not(:disabled) {
    cursor: pointer;
}

.action-buttons .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

.action-buttons .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    animation: gentleGlow 2s ease-in-out infinite;
}

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

.action-buttons .btn:hover::before {
    left: 100%;
}

.action-buttons .btn-icon {
    font-size: 28px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover .btn-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 157, 0.3));
}

.action-buttons .btn-text {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    margin-bottom: 2px;
}

.action-buttons .btn-desc {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 500;
    color: #666;
    line-height: 1.3;
}

.action-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
}

.action-buttons .btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #ddd;
}

/* Loading state for buttons */
.action-buttons .btn.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #fff0f5 0%, #f0f8ff 100%);
    border-color: rgba(255, 107, 157, 0.3);
    animation: pulseLoading 1.5s ease-in-out infinite;
}

.action-buttons .btn.loading .btn-icon {
    animation: rotate 1s linear infinite;
}

.action-buttons .btn.loading .btn-text {
    color: #ff6b9d;
}

.action-buttons .btn.loading .btn-desc {
    opacity: 0.8;
    color: #ff6b9d;
}

@keyframes pulseLoading {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(255, 107, 157, 0.35);
    }
}

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

/* Special styling for analyze button */
#analyze-btn {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

#analyze-btn:hover:not(:disabled) {
    border-color: rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
}

#analyze-btn .btn-icon {
    color: #667eea;
}

#analyze-btn .btn-text {
    color: #667eea;
}

#analyze-btn.loading {
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f5e8 100%);
    border-color: rgba(102, 126, 234, 0.4);
}

/* Special styling for generate button */
#generate-btn {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border: 3px solid #ff1493;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4);
}

#generate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff1493 0%, #e91e63 100%);
    border-color: #c2185b;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 20, 147, 0.6);
}

#generate-btn .btn-icon {
    color: white;
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#generate-btn .btn-text {
    color: white;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-size: 18px;
}

/* AI返信生成ボタンのピンク色強化 - より目立つように */
#generate-btn,
button[onclick="generateReplies()"], 
.btn:contains("AI返信を生成する"),
.btn.large[onclick="generateReplies()"],
button:contains("AI返信を生成する") {
    background: linear-gradient(135deg, #ff1493 0%, #e91e63 100%) !important;
    border: 3px solid #c2185b !important;
    color: white !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.6) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    animation: gentleGlow 3s ease-in-out infinite !important;
}

#generate-btn:hover,
button[onclick="generateReplies()"]:hover, 
.btn:contains("AI返信を生成する"):hover,
.btn.large[onclick="generateReplies()"]:hover,
button:contains("AI返信を生成する"):hover {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%) !important;
    border-color: #ad1457 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.8) !important;
}

/* 特別な輝きアニメーション */
@keyframes gentleGlow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(255, 20, 147, 0.6);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(255, 20, 147, 0.9);
    }
}

/* Cute heart beat animation for enabled buttons */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    75% { transform: scale(0.95); }
}

.action-buttons .btn:not(:disabled):not(.loading) .btn-icon {
    animation: heartbeat 3s ease-in-out infinite;
}

/* Loading dots animation */
.loading-dots {
    display: inline-block;
    font-size: 20px;
    color: #ff6b9d;
}

.loading-dots::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

.input-feedback {
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8f9fb;
}

.usage-display {
    transition: all 0.3s ease;
}

.usage-display.warning {
    border: 2px solid #ff9800;
    background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
}

.usage-display.danger {
    border: 2px solid #f44336;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

/* Smart guidance styles */
.action-guide {
    transition: all 0.3s ease;
}

.action-guide.active {
    border-color: #ff6b9d !important;
    background: linear-gradient(135deg, #fff5f8 0%, #f0f9ff 100%) !important;
}

.smart-tip {
    background: linear-gradient(135deg, #fff5f8 0%, #f0f9ff 100%);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    animation: fadeInUp 0.5s ease-out;
}

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

.help-tooltip:hover .tooltip-content {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.pro-features-showcase {
    background: linear-gradient(135deg, #fff5f8 0%, #f0f9ff 100%);
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.feature-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.feature-preview-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    filter: blur(2px);
    opacity: 0.7;
}

/* Loading animation */
@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* Additional app functionality styles */
.emotion-display {
    font-size: 2rem;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f8, #f0f9ff);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 95, 109, 0.2);
}

.message-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.message-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.context-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.context-input:focus {
    outline: none;
    border-color: var(--primary);
}

.quick-btn {
    background: #f8f9fb;
    border: 1px solid #e1e5e9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pro-lock-message {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #f8f9fb, #fff5f8);
    border-radius: 12px;
    border: 2px dashed var(--primary);
}

.pro-lock-message h4 {
    color: var(--primary);
    margin-bottom: 16px;
}

.pro-lock-message ul {
    list-style: none;
    margin-bottom: 24px;
}

.pro-lock-message li {
    padding: 4px 0;
    color: var(--text-light);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.next-actions {
    background: #fff5f8;
    padding: 20px;
    border-radius: 12px;
}

/* Complete Psychology Analysis Styles */
.score-card {
    position: relative;
    transition: all 0.3s ease;
}

.score-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.score-card.locked {
    filter: blur(2px);
    cursor: pointer;
}

.score-card.locked::after {
    content: '🔒 Proで解禁';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.pro-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pro-lock-overlay:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.05);
}

.psychology-signals.locked {
    position: relative;
    filter: blur(3px);
}

.unlock-overlay {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.unlock-overlay:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1);
}

.signal-mini-card {
    transition: all 0.3s ease;
}

.signal-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.action-pill {
    transition: all 0.3s ease;
}

.action-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Chart animations */
.chart-container div:hover {
    filter: brightness(1.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .main-scores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .signals-mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .score-card {
        padding: 16px;
    }

    .signal-mini-card {
        padding: 10px;
    }

    .action-pill {
        padding: 12px;
    }
}

.next-actions h4 {
    color: var(--primary);
    margin-bottom: 12px;
}

.action-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary);
}

.replies-grid {
    display: grid;
    gap: 16px;
}

.copy-indicator {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
    text-align: center;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.learning-effects ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.learning-effects li {
    padding: 8px 0;
    font-weight: 500;
}

/* Pricing */
.pricing-cards {
    display: grid;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.price-big {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.price-big span {
    font-size: 1.2rem;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary);
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 40px 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-copyright {
    font-size: 14px;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 320px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 180px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .kpi-chips {
        flex-direction: column;
        align-items: center;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enhanced animations with smooth micro-interactions */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideOutUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes slideInScale {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}
@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}
@keyframes smoothBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes gentleGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2); }
    50% { box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4); }
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-10px) rotate(5deg); opacity: 0.6; }
}

@keyframes bounceWave {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-5px) scale(1.05); }
    75% { transform: translateY(-2px) scale(0.98); }
}
@keyframes progressFill {
    from { width: 0%; }
    to { width: var(--target-width, 100%); }
}

/* Smooth card hover animations */
.analysis-card, .reply-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.analysis-card:hover, .reply-card:hover {
    transform: translateY(-6px);
    animation: gentleGlow 2s ease-in-out infinite;
}

/* Staggered animation for analysis results */
.analysis-card:nth-child(1) { animation: slideInScale 0.6s ease 0.1s both; }
.analysis-card:nth-child(2) { animation: slideInScale 0.6s ease 0.2s both; }
.analysis-card:nth-child(3) { animation: slideInScale 0.6s ease 0.3s both; }
.analysis-card:nth-child(4) { animation: slideInScale 0.6s ease 0.4s both; }
.analysis-card:nth-child(5) { animation: slideInScale 0.6s ease 0.5s both; }

/* Score progress animation */
.score-progress div {
    animation: progressFill 1.5s ease-out 0.5s both;
}

/* Button interactions */
.btn {
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover:not(:disabled) {
    animation: smoothBounce 0.6s ease-in-out;
}

.btn:active {
    transform: scale(0.98);
}

/* Loading states with better UX */
.loading-state {
    animation: pulse 2s ease-in-out infinite;
}

/* Notification entrance animation */
.notification {
    animation: slideInDown 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Enhanced reply cards with romantic design and advanced features */
.reply-card, .enhanced-reply-card {
    background: linear-gradient(135deg, #fff5f8 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 157, 0.1);
    position: relative;
    overflow: hidden;
}

/* Psychology comment styling */
.psychology-comment {
    background: linear-gradient(135deg, #e8f5e8, #f0f8ff);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #4caf50;
    animation: fadeInUp 0.3s ease;
}

.psychology-comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

/* Auto tags styling */
.auto-tags {
    margin-bottom: 12px;
}

.auto-tags span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
    display: inline-block;
    margin-bottom: 4px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.auto-tags span:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* Atmosphere variations styling */
.atmosphere-variations {
    background: rgba(255, 107, 157, 0.05);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.atmosphere-option {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 107, 157, 0.2);
    margin-bottom: 4px;
}

.atmosphere-option:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.4);
    transform: translateX(4px);
}

.atmosphere-option:last-child {
    margin-bottom: 0;
}

/* Trend words styling */
.trend-words {
    background: rgba(255, 193, 7, 0.1);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.trend-words span {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 4px;
    display: inline-block;
    margin-bottom: 2px;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
    transition: all 0.2s ease;
}

.trend-words span:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.5);
}

/* Advanced feature headers */
.psychology-comment div:first-child,
.auto-tags div:first-child,
.atmosphere-variations div:first-child,
.trend-words div:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.psychology-comment div:first-child span:last-child,
.auto-tags div:first-child span:last-child,
.atmosphere-variations div:first-child span:last-child,
.trend-words div:first-child span:last-child {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animations for new features */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
    }
}

/* Mobile responsive adjustments for advanced features */
@media (max-width: 768px) {
    .enhanced-reply-card {
        padding: 16px;
    }

    .psychology-comment,
    .atmosphere-variations,
    .trend-words {
        padding: 8px 10px;
    }

    .atmosphere-option {
        padding: 6px 10px;
        font-size: 12px;
    }

    .auto-tags span {
        font-size: 10px;
        padding: 3px 6px;
    }

    .trend-words span {
        font-size: 9px;
        padding: 2px 4px;
    }
}

.reply-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.25);
    border-color: rgba(255, 107, 157, 0.3);
}

.reply-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b9d, #667eea, #ff6b9d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reply-card:hover::before {
    opacity: 1;
}

/* Reply text with romantic typography */
.reply-text {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 500;
    text-align: left;
    letter-spacing: 0.3px;
    margin-top: 12px;
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, sans-serif;
}

/* Tone badges with romantic colors */
.reply-tone {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
    display: inline-block;
    margin-right: 8px;
}

.reply-tone.甘 {
    background: linear-gradient(135deg, #ff6b9d, #ff85a2);
}

.reply-tone.冗談 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.reply-tone.自然 {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

/* Progression badges */
.progression-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b9d;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 157, 0.3);
    margin-left: 8px;
}

/* Effect score styling */
.effect-score {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

/* Copy button enhancement */
.copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    margin-left: auto;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    transform: scale(1.05);
}

/* Reply header layout */
.reply-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}