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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f7f7f7;
}

a {
    color: #1a1a1a;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Nav */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.logo img {
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 18px;
}

.nav-links a:hover {
    color: #555;
}

.menu-btn {
    display: none;
    background: none;
    border: 1px solid #ccc;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

/* Main */
.main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 22px;
    color: #555;
    max-width: 640px;
    margin: 0 auto 32px;
}

/* Search */
.search-form {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 18px;
    border: 2px solid #1a1a1a;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #1a1a1a;
}

.search-form .btn {
    border-radius: 0 8px 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: #1a1a1a;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background: #333;
}

.search-info {
    margin: 24px 0 16px;
    color: #555;
}

/* Sections */
.section {
    padding: 48px 0;
}

.section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.section-link {
    margin-top: 24px;
}

.section-link a {
    color: #555;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
}

.section-link a:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* QOTD Section (Homepage) */
.qotd-section {
    padding-bottom: 24px;
}

.qotd-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
}

.qotd-header h2 {
    margin-bottom: 0;
}

.qotd-archive-link {
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid #ccc;
}

.qotd-archive-link:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

.qotd-card,
.qotd-hero-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s;
}

.qotd-card:hover,
.qotd-hero-card:hover {
    transform: translateY(-2px);
    color: #1a1a1a;
}

.qotd-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(0, 0, 0, 0.1);
}

.qotd-card-body {
    flex: 1;
    min-width: 0;
}

.qotd-card blockquote,
.qotd-hero-card blockquote {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.qotd-attribution {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qotd-attribution cite {
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    opacity: 0.9;
}

.qotd-card .tag,
.qotd-hero-card .tag {
    background: rgba(0, 0, 0, 0.08);
    color: #555;
}

/* QOTD Page */
.qotd-page {
    padding-bottom: 24px;
}

.qotd-page-header {
    margin-bottom: 32px;
}

.qotd-page-header h1 {
    margin-bottom: 4px;
}

.qotd-date {
    font-size: 18px;
    color: #555;
}

.qotd-featured {
    max-width: 720px;
}

.qotd-featured .bubble {
    padding: 40px 48px;
}

.qotd-featured .bubble blockquote {
    font-size: 28px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.qotd-archive-date-tag {
    font-size: 13px;
    color: #999;
    display: block;
    margin-top: 4px;
}

.qotd-hero-card {
    padding: 48px;
}

.qotd-hero-card blockquote {
    font-size: 28px;
}

.qotd-topic-card {
    position: relative;
}

.qotd-topic-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 12px;
}

.qotd-archive-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.qotd-archive-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 24px;
    background: #fff;
    transition: background 0.15s;
}

.qotd-archive-item:hover {
    background: #fafafa;
}

.qotd-archive-date {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    min-width: 100px;
}

.qotd-archive-text {
    font-size: 16px;
    flex: 1;
}

.qotd-archive-author {
    font-size: 14px;
    color: #777;
    white-space: nowrap;
}

.qotd-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 32px 0;
}

/* Quote Grid (bubble cards) */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.quote-bubble-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

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

.bubble {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    padding: 24px 28px;
    position: relative;
    margin-bottom: 24px;
    overflow: visible;
}

.bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-right: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    border-bottom-right-radius: 4px;
    transform: rotate(45deg);
}

.bubble blockquote {
    font-size: 17px;
    line-height: 1.55;
}

.bubble-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 4px;
}

.bubble-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bubble-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #777;
    flex-shrink: 0;
}

.bubble-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bubble-author-info cite {
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.bubble-author-info .tag {
    margin-top: 0;
    font-size: 12px;
    padding: 2px 8px;
    align-self: flex-start;
}

/* Quote Bubble List (topic/search/recent) */
.quote-bubble-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quote-bubble-list--2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.quote-bubble-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform 0.15s;
}

.quote-bubble-item:hover {
    transform: translateX(4px);
}

.bubble-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 4px;
}

.bubble-avatar-sm-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #999;
    flex-shrink: 0;
    margin-top: 4px;
}

.bubble-sm {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    padding: 16px 20px;
    flex: 1;
    min-width: 0;
    position: relative;
}

.bubble-sm::after {
    content: '';
    position: absolute;
    top: 14px;
    left: -7px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    border-bottom-left-radius: 4px;
    transform: rotate(45deg);
}

.bubble-sm blockquote {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.bubble-sm cite {
    font-style: normal;
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

.bubble-sm .tag {
    margin-top: 0;
    margin-left: 6px;
    font-size: 12px;
    padding: 2px 8px;
}

/* Quote List (plain, for same-author lists) */
.quote-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quote-item {
    display: block;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    transition: border-color 0.15s;
}

.quote-item:hover {
    border-color: #999;
}

.quote-item blockquote {
    font-size: 18px;
    margin-bottom: 8px;
}

.quote-item cite {
    font-style: normal;
    color: #555;
    font-size: 16px;
}

/* Author Grid */
.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.author-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: border-color 0.2s;
}

.author-card-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-card-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #888;
    flex-shrink: 0;
}

.author-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.author-card:hover {
    border-color: #ccc;
}

.author-card strong {
    font-size: 18px;
}

.author-card span {
    font-size: 14px;
    color: #777;
}

.author-prof {
    color: #555 !important;
}

/* Author Page */
.author-page {
    padding: 48px 0 24px;
}

.author-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.author-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.author-header-text h1,
.author-page h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

.author-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 16px;
}

.author-detail {
    font-size: 16px;
    color: #555;
}

.author-bio {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
    max-width: 720px;
}

.author-count {
    font-size: 16px;
    color: #777;
}

/* Topic Grid */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.topic-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-transform: capitalize;
    transition: border-color 0.2s;
}

.topic-card:hover {
    border-color: #ccc;
}

.topic-card strong {
    font-size: 18px;
}

.topic-card span {
    font-size: 14px;
    color: #777;
}

.topic-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.topic-icon-img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

/* Topic Intro */
.topic-intro {
    font-size: 18px;
    color: #444;
    max-width: 720px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.topic-count {
    font-size: 16px;
    color: #777;
    margin-bottom: 32px;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    text-transform: capitalize;
    margin-top: 8px;
}

/* Quote Page */
.quote-page {
    padding: 80px 0 40px;
    max-width: 720px;
}

.quote-detail-bubble {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    padding: 48px;
    position: relative;
}

.quote-detail-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 32px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-right: 1px solid #d0d0d0;
    border-bottom: 1px solid #d0d0d0;
    border-bottom-right-radius: 4px;
    transform: rotate(45deg);
}

.quote-main p {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.5px;
}

.quote-detail-author {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.quote-detail-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.quote-author {
    font-size: 22px;
    font-weight: 600;
    border-bottom: 2px solid #1a1a1a;
}

.quote-author-context {
    margin-top: 4px;
    display: flex;
    gap: 16px;
    font-size: 16px;
    color: #777;
}

.quote-citation {
    margin-top: 8px;
    font-size: 15px;
    color: #888;
    font-style: italic;
    display: flex;
    gap: 6px;
}

.share-links {
    margin-top: 40px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.share-btn:hover {
    border-color: #1a1a1a;
    background: #fafafa;
    color: #1a1a1a;
}

.share-btn.copied {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.share-dropdown-wrap {
    position: relative;
}

.share-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    z-index: 10;
    overflow: hidden;
}

.share-dropdown.open {
    display: block;
}

.share-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    color: #333;
    transition: background 0.15s;
}

.share-dropdown a:hover {
    background: #f5f5f5;
}

/* Heart / Like */
.heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
    flex-shrink: 0;
}

.heart-btn svg {
    fill: #ccc;
    transition: fill 0.15s;
}

.heart-btn:hover svg {
    fill: #1a1a1a;
}

.heart-btn.liked svg {
    fill: #1a1a1a;
}

.heart-btn:active {
    transform: scale(1.15);
}

.heart-btn-lg {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.heart-btn-lg svg {
    width: 22px;
    height: 22px;
}

.heart-btn-lg.liked {
    border-color: #1a1a1a;
    background: #1a1a1a;
}

.heart-btn-lg.liked svg {
    fill: #fff;
}

/* Nav favorites */
.nav-fav {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-fav svg {
    fill: #e8475f;
    transition: fill 0.15s;
}

.nav-fav:hover svg {
    fill: #d63050;
}

.fav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Favorites page */
.favorites-count {
    color: #777;
    font-size: 18px;
    margin-bottom: 8px;
}

.favorites-empty {
    color: #777;
    font-size: 18px;
    padding: 40px 0;
}

/* Quote bubble item heart positioning */
.quote-bubble-item {
    position: relative;
}

.quote-bubble-item .heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}

.quote-bubble-item:hover .heart-btn,
.quote-bubble-item .heart-btn.liked {
    opacity: 1;
}

/* Source Pages */
.source-meta {
    color: #777;
    font-size: 18px;
    margin-top: 4px;
}

.source-characters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.source-character {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.source-character:hover {
    border-color: #1a1a1a;
}

.source-char-photo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.source-char-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
}

.source-char-role {
    display: block;
    font-size: 14px;
    color: #777;
}

.source-char-count {
    display: block;
    font-size: 14px;
    color: #999;
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.source-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.source-card:hover {
    border-color: #1a1a1a;
}

.source-card strong {
    font-size: 18px;
}

.source-card span {
    font-size: 14px;
    color: #777;
}

.source-link {
    border-bottom: 1px solid #ccc;
}

.source-link:hover {
    border-color: #1a1a1a;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.error-sub {
    font-size: 20px;
    color: #555;
    margin-bottom: 32px;
}

.error-suggestion {
    margin-top: 16px;
    font-size: 16px;
    color: #777;
}

.error-suggestion a {
    border-bottom: 1px solid #ccc;
}

.error-did-you-mean {
    font-size: 18px;
    margin-bottom: 32px;
}

.error-did-you-mean a {
    color: #1a1a1a;
    text-decoration: underline;
}

.error-suggestions {
    text-align: left;
    max-width: 640px;
    margin: 0 auto 32px;
}

.error-suggestions h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 40px 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.page-link:hover {
    border-color: #1a1a1a;
}

.page-link.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Footer */
.site-footer {
    border-top: 1px solid #e5e5e5;
    padding: 32px 24px;
    text-align: center;
    color: #777;
    font-size: 16px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-sub {
        font-size: 18px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid #e5e5e5;
        gap: 16px;
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .nav {
        position: relative;
    }

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

    .quote-bubble-list--2col {
        grid-template-columns: 1fr;
    }

    .quote-list {
        grid-template-columns: 1fr;
    }

    .author-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .topic-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .quote-main p {
        font-size: 26px;
    }

    .quote-page {
        padding-top: 48px;
    }

    .quote-detail-bubble {
        padding: 28px;
        border-radius: 16px;
    }

    .quote-detail-avatar {
        width: 56px;
        height: 56px;
    }

    .bubble-avatar {
        width: 40px;
        height: 40px;
    }

    .bubble-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .bubble blockquote {
        font-size: 17px;
    }

    .quote-bubble-card .bubble {
        padding: 20px;
    }

    .qotd-featured .bubble {
        padding: 28px;
    }

    .qotd-featured .bubble blockquote {
        font-size: 22px;
    }

    .qotd-card blockquote,
    .qotd-hero-card blockquote {
        font-size: 20px;
    }

    .qotd-card,
    .qotd-hero-card {
        padding: 28px;
    }

    .qotd-archive-item {
        flex-direction: column;
        gap: 4px;
    }

    .author-header {
        flex-direction: column;
        gap: 20px;
    }

    .author-photo {
        width: 120px;
        height: 120px;
    }

    .search-form .btn {
        padding: 14px 16px;
    }
}

/* Auth Pages */
.auth-page {
    max-width: 400px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-page h1 {
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
}

.auth-form input {
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    border-color: #1a1a1a;
}

.auth-form .btn {
    margin-top: 16px;
}

.auth-error {
    color: #d63050;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 16px;
}

.auth-alt {
    margin-top: 24px;
    text-align: center;
    font-size: 15px;
    color: #666;
}

.auth-alt a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
}

.account-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    padding: 32px;
}

.account-name {
    font-size: 24px;
    font-weight: 700;
}

.account-email {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
}

.btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #d0d0d0;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

/* Votes */
.vote-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px 8px;
}

.vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 28px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    color: #888;
    transition: color 0.15s, background 0.15s;
}

.vote-btn:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.vote-up.active {
    color: #e8475f;
}

.vote-up.active:hover {
    background: #fef2f2;
}

.vote-down.active {
    color: #6366f1;
}

.vote-down.active:hover {
    background: #eef2ff;
}

.vote-score {
    font-size: 15px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    color: #1a1a1a;
}

/* Nav account */
.nav-account {
    display: flex;
    align-items: center;
}

.nav-account svg {
    stroke: #666;
    transition: stroke 0.15s;
}

.nav-account:hover svg {
    stroke: #1a1a1a;
}
