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

:root {
    --bg-color: #f6f7f9;
    --white: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --primary-start: #3b82f6;
    --primary-end: #2563eb;
    --secondary-bg: #e2e8f0;
    --secondary-hover: #cbd5e1;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

body.auth-pending .header-actions,
body.auth-pending .header-menu,
body.auth-pending .user-menu {
    visibility: hidden;
    pointer-events: none;
}

.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-wrap: nowrap;
}

.header-actions > * + * {
    margin-left: 12px;
}

.header-menu {
    display: none;
    position: relative;
    margin-left: auto;
}

.btn-menu {
    flex: 0 0 auto;
    width: auto;
    padding: 10px 14px;
    font-size: 0.85rem;
    background: #e2e8f0;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.header-menu-dropdown {
    position: absolute;
    top: 115%;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 160px;
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: auto;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.main {
    flex: 1;
    padding: 48px 24px;
}

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

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

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.input-card {
    margin-bottom: 24px;
}

.proof-section {
    margin-bottom: 24px;
    text-align: center;
}

.proof-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.proof-header p {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #64748b;
    font-size: 1.05rem;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.proof-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    text-align: left;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    min-height: 320px;
}

.proof-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.proof-card p {
    color: #64748b;
    margin-bottom: 14px;
}

.proof-mock {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    min-height: 220px;
    overflow: hidden;
}

.proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.proof-badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.proof-doc {
    display: grid;
    gap: 8px;
    font-size: 0.85rem;
    color: #0f172a;
    line-height: 1.5;
}

.proof-overlay {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    background: #16a34a;
    color: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 12px 20px rgba(22, 163, 74, 0.25);
}

.proof-overlay-title {
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.proof-overlay p {
    color: #ecfdf3;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.proof-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.hl-red {
    background: rgba(239, 68, 68, 0.18);
    border-radius: 6px;
    padding: 0 4px;
}

.hl-yellow {
    background: rgba(250, 204, 21, 0.2);
    border-radius: 6px;
    padding: 0 4px;
}

.hl-green {
    background: rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    padding: 0 4px;
}
.proof-panel-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.proof-gauge {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(#ef4444 0deg 350deg, #e2e8f0 350deg 360deg);
    margin: 0 auto 16px;
    position: relative;
}

.proof-gauge-center {
    position: absolute;
    inset: 16px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.proof-gauge-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.proof-gauge-label {
    font-size: 0.8rem;
    color: #64748b;
}

.proof-logos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.insights-section {
    margin-bottom: 24px;
}

.insights-card {
    background: #f8fafc;
    border-radius: 26px;
    border: 1px solid #e2e8f0;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: center;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.insights-copy h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.insights-copy p {
    color: #64748b;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.insights-cta {
    background: linear-gradient(135deg, #6d28d9, #4c1d95);
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(76, 29, 149, 0.3);
    width: fit-content;
}

.insights-cta-icon {
    font-size: 1rem;
}

.insights-visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 18px;
    align-items: center;
}

.insights-doc {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 16px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.insights-doc-header {
    background: #e2e8f0;
    padding: 10px 14px;
    font-weight: 700;
    color: #0f172a;
}

.insights-doc-body {
    padding: 12px 14px 18px;
    display: grid;
    gap: 8px;
    font-size: 0.85rem;
    color: #0f172a;
    line-height: 1.4;
}

.insights-chart {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 14px;
    box-shadow: 0 10px 16px rgba(15, 23, 42, 0.08);
    display: grid;
    justify-items: center;
}

.insights-chart-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.insights-chart-pie {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: conic-gradient(
        #ef4444 0deg 250deg,
        #3b82f6 250deg 310deg,
        #facc15 310deg 340deg,
        #22c55e 340deg 360deg
    );
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-label {
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    color: #ef4444;
}

.insights-chart-legend {
    display: grid;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.insights-chart-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.insights-chart-legend .dot.red {
    background: #ef4444;
}

.insights-chart-legend .dot.blue {
    background: #3b82f6;
}

.insights-chart-legend .dot.yellow {
    background: #facc15;
}

.insights-chart-legend .dot.green {
    background: #22c55e;
}

.audience-section {
    margin-bottom: 24px;
    text-align: center;
}

.audience-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.audience-card {
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    text-align: left;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.audience-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.audience-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.audience-card p {
    color: #64748b;
    font-size: 0.95rem;
}

.freecheck-section {
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.freecheck-copy h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.freecheck-copy p {
    color: #64748b;
    font-size: 1.05rem;
}

.freecheck-visual {
    display: flex;
    justify-content: center;
}

.freecheck-illustration {
    width: 100%;
    max-width: 420px;
    border-radius: 26px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
    display: block;
    object-fit: cover;
}

.humanizer-section {
    margin-bottom: 32px;
}

.humanizer-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: center;
}

.analysis-card {
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 18px 20px;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.analysis-header {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.analysis-score {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
}

.analysis-label {
    color: #64748b;
    margin-bottom: 12px;
}

.analysis-bar {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 12px;
}

.analysis-bar-fill {
    height: 100%;
    width: 80%;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.analysis-footer {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.analysis-models {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
}

.humanizer-copy h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.humanizer-copy p {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.trust-section {
    margin-bottom: 32px;
}

.trust-card {
    background: #f8fafc;
    border-radius: 26px;
    border: 1px solid #e2e8f0;
    padding: 28px;
    text-align: center;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    display: grid;
    justify-items: center;
}

.trust-card h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 22px;
}

.trust-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.trust-stat {
    display: grid;
    gap: 6px;
    flex: 1 1 180px;
    text-align: center;
}

.trust-value {
    font-size: 2rem;
    font-weight: 800;
    color: #7c3aed;
}

.trust-label {
    color: #64748b;
    font-weight: 600;
}

.trust-divider {
    width: 1px;
    height: 60px;
    background: #e2e8f0;
}

.testimonials-section {
    margin-bottom: 32px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 20px;
}

.testimonials-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.testimonials-header p {
    color: #64748b;
    font-size: 1.05rem;
    max-width: 820px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.testimonial-card {
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid #e2e8f0;
}

.testimonial-name {
    font-weight: 700;
    color: #0f172a;
}

.testimonial-role {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 10px;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
}

.testimonial-card p {
    color: #64748b;
    font-size: 0.95rem;
}

.faq-section {
    margin-bottom: 40px;
    background: #f8fafc;
    border-radius: 26px;
    border: 1px solid #e2e8f0;
    padding: 28px;
}

.faq-header {
    text-align: center;
    margin-bottom: 18px;
}

.faq-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    list-style: none;
    position: relative;
    padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 0;
    color: #64748b;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 10px;
    color: #64748b;
    line-height: 1.6;
}

.scan-toggle {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background: #eef2ff;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.scan-toggle-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.scan-toggle-btn.active {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.scan-toggle-icon {
    font-size: 0.95rem;
}

.input-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.btn-ghost {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
}

.btn-ghost:hover {
    background: #e2e8f0;
}

.textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.textarea:focus {
    border-color: var(--primary-start);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.textarea::placeholder {
    color: #94a3b8;
}

.input-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.input-meta-note {
    color: #94a3b8;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-appearance: none;
    appearance: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

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

.btn-login {
    flex: 0 0 auto;
    padding-inline: 16px;
    font-size: 0.9rem;
    width: auto;
    max-width: 120px;
    white-space: nowrap;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    order: 1;
}

.btn-try {
    flex: 0 0 auto;
    font-size: 0.9rem;
    padding-inline: 16px;
    white-space: nowrap;
    box-shadow: 0 10px 18px rgba(76, 29, 149, 0.3);
    order: 2;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

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

.dot-loader {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.dot-loader span {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.dot-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loader-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.result-card {
    animation: fadeIn 0.4s ease;
}

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

.result-content {
    animation: fadeIn 0.4s ease;
}

.score-container {
    text-align: center;
    margin-bottom: 16px;
}

.score-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: 4px;
    transition: width 0.6s ease;
    width: 0%;
}

.explanation {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--primary-start);
}

.detection-breakdown {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.detection-highlighted {
    white-space: pre-wrap;
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.75;
}

.ai-span {
    padding: 2px 4px;
    border-radius: 6px;
}

.ai-span.super {
    background: rgba(239, 68, 68, 0.2);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.45);
}

.ai-span.possible {
    background: rgba(234, 179, 8, 0.25);
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.45);
}

.detection-legend {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.legend-swatch.super {
    background: rgba(239, 68, 68, 0.6);
}

.legend-swatch.possible {
    background: rgba(234, 179, 8, 0.7);
}

.legend-swatch.neutral {
    background: #e2e8f0;
    border: 1px solid #cbd5f1;
}

.detection-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.result-icon {
    font-size: 1.5rem;
}

.result-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.humanized-text {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.btn-copy {
    padding: 10px 20px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.btn-copy:hover {
    background: var(--secondary-hover);
}

.hidden {
    display: none !important;
}

.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: #94a3b8;
    text-decoration: none;
}

.footer-links a:visited {
    color: #94a3b8;
}

.legal-page .card {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
}

.legal-page .card h1 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.legal-page .card h2 {
    font-size: 1.35rem;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.legal-page .card p,
.legal-page .card li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.legal-page .card ul {
    padding-left: 20px;
    margin-top: 10px;
}

.manage-page .card {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: var(--text-primary);
    background: #f8fafc;
    font-weight: 700;
}

.manage-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.manage-summary {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 22px;
}

.manage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-secondary);
}

.manage-row:last-of-type {
    border-bottom: none;
}

.status-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
}

.status-pill.active {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.status-pill.canceled {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.status-pill.inactive {
    background: rgba(148, 163, 184, 0.2);
    color: #64748b;
}

.manage-note {
    margin-top: 18px;
    color: var(--text-secondary);
    text-align: center;
}

.manage-note a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.manage-note a:hover {
    text-decoration: underline;
}

.manage-error {
    text-align: center;
    color: #ef4444;
    margin-top: 16px;
}

.history-section {
    margin-top: 32px;
}

.history-header {
    text-align: center;
    margin-bottom: 18px;
}

.history-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.history-header p {
    color: var(--text-secondary);
}

.history-list {
    display: grid;
    gap: 16px;
}

.history-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    box-shadow: var(--shadow);
}

.history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.history-block {
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.history-block:last-child {
    margin-bottom: 0;
}

.history-block h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.history-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.history-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 16px 0;
}

@media (max-width: 640px) {
    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .main {
        padding: 32px 16px;
    }

    .input-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .card {
        padding: 16px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .score-value {
        font-size: 2.5rem;
    }

    .proof-header h2 {
        font-size: 1.5rem;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .insights-card {
        grid-template-columns: 1fr;
    }

    .insights-visual {
        grid-template-columns: 1fr;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .freecheck-section {
        grid-template-columns: 1fr;
    }

    .humanizer-card {
        grid-template-columns: 1fr;
    }

    .trust-stats {
        flex-direction: column;
    }

    .trust-divider {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .faq-section {
        padding: 20px;
    }

    .container {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .header-actions {
        display: none;
    }

    .header-menu {
        display: flex;
        align-items: center;
    }

    .user-menu {
        margin-left: auto;
    }
}

@media (max-width: 520px) {
    .header-content {
        padding: 12px 16px;
        gap: 10px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions > * + * {
        margin-left: 8px;
    }

    .btn-login,
    .btn-try {
        padding-inline: 12px;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .insights-visual {
        grid-template-columns: 1fr;
    }
}

/* ===== Modal System ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 500;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal {
    width: 50%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 600;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal#paywallPopup {
    width: 78%;
    max-width: 980px;
    max-height: 90vh;
}

.modal#paymentPopup {
    width: 40%;
    max-width: 520px;
    max-height: 90vh;
}

.modal-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    animation: fadeModalIn 0.25s ease;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
    border-color: var(--primary-start);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.modal-error {
    color: #e11d48;
    font-size: 0.9rem;
    margin-top: -12px;
    margin-bottom: 16px;
    display: none;
}

.modal-input.error {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 3px rgba(225,29,72,0.15);
}

.modal-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.modal-btn-primary:active {
    transform: translateY(0);
}

.modal-benefits {
    list-style: none;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-price {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 16px 0 20px 0;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.paywall-card {
    padding: 28px 28px 24px;
    border-radius: 26px;
    background: radial-gradient(circle at top, #ffffff 35%, #f7f7ff 100%);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.payment-summary {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.payment-summary-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.payment-summary-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #1f2937;
}

.payment-summary-current {
    font-size: 1.2rem;
    font-weight: 800;
}

.payment-summary-old {
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 600;
}

.payment-summary-discount {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fde68a;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 700;
}

.payment-note {
    margin-top: 12px;
    color: #64748b;
    text-align: center;
    font-size: 0.9rem;
}

.paywall-close {
    position: absolute;
    top: 14px;
    left: 16px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

.paywall-hero {
    border: 2px solid #c7f9d4;
    background: #e8fff1;
    border-radius: 16px;
    padding: 16px;
    margin: 6px 0 22px;
}

.paywall-hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f7a3e;
    font-weight: 700;
    font-size: 0.98rem;
}

.paywall-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #fff;
    font-size: 0.85rem;
}

.paywall-hero-blur {
    margin: 12px 0 10px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    filter: blur(3px);
}

.paywall-blur-line {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-bottom: 8px;
}

.paywall-blur-line.short {
    width: 70%;
}

.paywall-verification {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.9rem;
}

.paywall-verify-label {
    font-weight: 600;
    color: #475569;
}

.paywall-logos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 600;
}

.paywall-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 10px 0 18px;
    color: var(--text-primary);
}

.paywall-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.paywall-plan {
    border: 2px solid #d7dff0;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
    display: block;
    appearance: none;
}

.paywall-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.paywall-plan.selected {
    border-color: #7c3aed;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.25);
}

.paywall-plan-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.paywall-plan-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.paywall-plan-save {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f59e0b;
}

.paywall-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 12px;
}

.paywall-price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
}

.paywall-price-interval {
    color: #64748b;
    font-weight: 600;
}

.paywall-plan-compare {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.paywall-price-old {
    text-decoration: line-through;
}

.paywall-plan-week {
    margin-top: 10px;
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.75rem;
    font-weight: 700;
}

.paywall-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.paywall-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.paywall-rating-text {
    color: #111827;
    font-weight: 700;
}

.paywall-payment {
    margin: 10px 0 6px;
}

.paywall-error {
    margin-top: 8px;
}

.paywall-cta {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 8px;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.35);
}

.paywall-meta {
    margin-top: 16px;
    text-align: center;
    color: #111827;
    font-weight: 700;
}

.paywall-meta-line {
    margin-top: 4px;
    color: #6b7280;
    font-weight: 600;
}

.paywall-footnote {
    margin-top: 16px;
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

body.paywall-open #resultCard {
    filter: blur(5px);
    pointer-events: none;
}

body.paywall-open {
    overflow: hidden;
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.fade-modal.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay.show {
    opacity: 1;
}

.success-card {
    text-align: center;
    padding: 32px;
}

.success-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

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

/* ===== User Menu (Auth Display & Dropdown) ===== */

.user-menu {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    margin-left: 16px;
}

.user-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 12px;
    background: var(--secondary-bg);
    border-radius: 8px;
    transition: background 0.2s ease;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email:hover {
    background: var(--secondary-hover);
}

@media (max-width: 900px) {
    .modal#paywallPopup {
        width: 92%;
        top: 6%;
        transform: translate(-50%, 0) scale(1);
    }

    .modal#paymentPopup {
        width: 92%;
        top: 8%;
        transform: translate(-50%, 0) scale(1);
    }

    .paywall-plans {
        grid-template-columns: 1fr;
    }
}

.user-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    width: 180px;
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

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