/* Ultra-clean, refined design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #6e6e73;
    --accent: #007aff;
    --accent-hover: #0051d5;
    --border: #e5e5e7;
    --success: #34c759;
    --warning: #ff9500;
    --error: #ff3b30;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 48px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    background: rgba(250, 250, 250, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Main content */
main {
    max-width: 980px;
    margin: 0 auto;
    padding: 5rem 2rem 8rem;
}

/* Buttons */
.cta-button, button[type="submit"] {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border-radius: 980px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover:not(:disabled), button[type="submit"]:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.cta-button:active, button[type="submit"]:active {
    transform: scale(0.98);
}

.cta-button:disabled, button[type="submit"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Manifesto */
.manifesto {
    text-align: center;
    padding: 5rem 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.manifesto h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.manifesto h2 {
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.manifesto p {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.4;
}

.how-it-works {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 660px;
    margin: 5rem auto;
    box-shadow: var(--shadow);
}

.how-it-works h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.how-it-works p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.recent-posts {
    padding: 4rem 0;
    text-align: center;
}

.recent-posts h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.recent-posts a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.0625rem;
}

.recent-posts a:hover {
    text-decoration: underline;
}

/* Write page */
.write-container {
    max-width: 720px;
    margin: 0 auto;
}

.editor-wrapper {
    width: 100%;
}

#title {
    width: 100%;
    background: transparent;
    color: var(--text-primary);
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 0.75rem 0;
    font-family: inherit;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    transition: border-color 0.2s ease;
}

#text {
    width: 100%;
    min-height: 400px;
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    resize: none;
    margin-bottom: 3rem;
}

#title:focus, #text:focus {
    outline: none;
    border-color: var(--accent);
}

#title::placeholder, #text::placeholder {
    color: #c7c7cc;
}

.auth-toggle {
    margin-bottom: 2rem;
}

#toggle-auth {
    background: transparent;
    color: var(--accent);
    border: none;
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#toggle-auth:hover {
    opacity: 0.7;
}

#auth-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.write-container #email,
.write-container #author {
    background: var(--bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.write-container #email:focus,
.write-container #author:focus {
    outline: none;
    border-color: var(--accent);
}

#send-login {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

#send-login:hover:not(:disabled) {
    background: var(--accent-hover);
}

#send-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#anonymous-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

#post-anonymous {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

#auth-message {
    display: block;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.editor-actions {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 720px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(250, 250, 250, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    z-index: 100;
}

.metrics-preview {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Debug Score Meter - Toggle by changing 'none' to 'inline' */
.debug-only {
    display: none; /* Change to 'inline' to show debug score */
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.debug-only.score-high {
    color: var(--success);
    background: rgba(52, 199, 89, 0.1);
}

.debug-only.score-medium {
    color: var(--warning);
    background: rgba(255, 149, 0, 0.1);
}

.debug-only.score-low {
    color: var(--error);
    background: rgba(255, 59, 48, 0.1);
}

/* Feed */
.feed-container h1 {
    margin-bottom: 2rem;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-align: center;
}

.feed-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
}

.filter-toggle input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.feed-stats {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.feed-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.feed-item.flagged {
    border-color: var(--warning);
    opacity: 0.85;
}

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

.feed-item a {
    color: var(--text-primary);
    text-decoration: none;
}

.feed-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feed-item h3 {
    flex: 1;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.confidence-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.confidence-badge.high {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.confidence-badge.medium {
    background: rgba(255, 149, 0, 0.15);
    color: var(--warning);
}

.confidence-badge.low {
    background: rgba(255, 59, 48, 0.15);
    color: var(--error);
}

.feed-preview {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.0625rem;
}

.feed-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.upvote-count {
    color: var(--accent);
    font-weight: 600;
}

/* Post page */
.post-container {
    max-width: 720px;
    margin: 0 auto;
}

.post-full h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.post-author {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.post-text {
    white-space: pre-wrap;
    margin-bottom: 4rem;
    padding: 0;
    line-height: 1.7;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.post-metrics {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.badge {
    background: var(--success);
    color: white;
    padding: 0.5rem 1.25rem;
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 980px;
}

.badge.confidence-high {
    background: var(--success);
}

.badge.confidence-medium {
    background: var(--warning);
}

.badge.confidence-low {
    background: var(--error);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.claim-note {
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.claim-note a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.claim-note a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.upvote-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.875rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 980px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.upvote-btn:hover:not(.upvoted) {
    box-shadow: var(--shadow-hover);
    transform: scale(1.02);
}

.upvote-btn.upvoted {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    cursor: default;
}

.upvote-icon {
    font-size: 1.125rem;
}

.share-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.875rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 980px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.share-btn:hover {
    box-shadow: var(--shadow-hover);
    transform: scale(1.02);
}

.share-btn svg {
    transition: transform 0.3s ease;
}

.share-btn:hover svg {
    transform: rotate(15deg);
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal.active {
    pointer-events: all;
    opacity: 1;
}

.share-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal.active .share-modal-backdrop {
    opacity: 1;
}

.share-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    max-width: 480px;
    width: calc(100% - 2rem);
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal.active .share-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.share-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.close-share {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-share:hover {
    background: var(--bg);
    color: var(--text-primary);
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-option {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.share-option:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateX(4px);
}

.share-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.share-option:hover .share-option-icon {
    transform: scale(1.1);
}

.share-option-text {
    flex: 1;
}

.share-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

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

/* Delete Modal */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-modal.active {
    pointer-events: all;
    opacity: 1;
}

.delete-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-modal.active .delete-modal-backdrop {
    opacity: 1;
}

.delete-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-hover);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.delete-modal.active .delete-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.delete-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

.delete-modal-message {
    color: var(--text-secondary);
    margin: 1rem 0 1.5rem 0;
}

.delete-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cancel-delete-btn,
.confirm-delete-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 980px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cancel-delete-btn:hover {
    background: var(--border);
}

.confirm-delete-btn {
    background: var(--error);
    color: white;
}

.confirm-delete-btn:hover {
    background: #ff1f1a;
    transform: scale(1.02);
}

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

.post-owner-actions {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.post-owner-actions a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.post-owner-actions a:hover {
    text-decoration: underline;
}

.delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-btn:hover {
    color: var(--error);
}

/* My posts page */
.my-posts-container {
    max-width: 720px;
    margin: 0 auto;
}

.my-posts-container h1 {
    margin-bottom: 4rem;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-align: center;
}

.posts-list {
    margin-bottom: 3rem;
}

.post-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

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

.post-item a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-item h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.post-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Login page */
.login-container {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.login-container h1 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.login-container p {
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-form input[type="email"],
#login-form button {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.125rem 1.5rem !important;
    font-size: 1.0625rem !important;
    border-radius: 12px !important;
    margin: 0 !important;
    border: 1px solid var(--border);
}

#login-form input[type="email"] {
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

#login-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1), var(--shadow);
}

#login-form button {
    border-color: var(--accent);
    background-color: var(--accent);
}

#login-form button:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

#message {
    margin-top: 2rem;
    font-size: 1rem;
}

/* Error page */
.error-container {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.error-container h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.error-container p {
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Paste Warning Toast */
.paste-warning {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 10000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--error);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.paste-warning.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 3rem 1.5rem 5rem;
    }

    nav {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .manifesto {
        padding: 3rem 0;
    }

    .manifesto h1 {
        font-size: 2.5rem;
    }

    .manifesto h2 {
        font-size: 2rem;
    }

    .manifesto p {
        font-size: 1.125rem;
    }

    .how-it-works {
        padding: 3rem 2rem;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .post-full h1,
    .feed-container h1,
    .my-posts-container h1 {
        font-size: 2.25rem;
    }

    #title {
        font-size: 2rem;
    }

    #text {
        font-size: 1.125rem;
    }

    .feed-item,
    .post-item {
        padding: 2rem;
    }

    .post-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .upvote-btn, .share-btn {
        justify-content: center;
    }

    .share-modal-content {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }

    .share-option {
        padding: 1rem;
    }

    .share-option-icon {
        width: 40px;
        height: 40px;
    }
}

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

.feed-item, .post-item {
    animation: fadeIn 0.4s ease;
}

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

/* Selection */
::selection {
    background: rgba(0, 122, 255, 0.15);
}

/* Focus */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
