/* =================================
    Root Variables & Base Styles
    ================================= */
:root {
    /* Font */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Colors - Light Theme */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --background-color: #ffffff;
    --text-color: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --card-bg: #f9fafb;
    --card-hover-bg: #f3f4f6;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --danger-color: #e74c3c;
    --danger-hover: #c0392b;

    /* Sizing */
    --header-height: 4rem;
    --sidebar-width: 16rem;
    --sidebar-width-collapsed: 4rem;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
}

html[data-theme="dark"] {
    --background-color: #111827;
    --text-color: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: #374151;
    --card-bg: #1f2937;
    --card-hover-bg: #374151;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background-color: var(--background-color); color: var(--text-color); line-height: 1.6; transition: background-color 0.3s, color 0.3s; }
body.blur-active > *:not(.modal):not(.overlay) { filter: blur(0.25rem); pointer-events: none; user-select: none; }

/* =================================
    Header
    ================================= */
.main-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background-color: var(--background-color); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; z-index: 60; transition: background-color 0.3s, border-color 0.3s; }
.header-left, .header-right { display: flex; align-items: center; gap: 1rem; }
.header-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-icon { width: 2rem; height: 2rem; background-color: var(--primary-color); color: white; border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.brand-title { font-size: 1.25rem; font-weight: 600; white-space: nowrap; color: var(--text-color); }
.header-toggle, .nav-icon-btn { padding: 0.5rem; background: none; border: none; cursor: pointer; border-radius: var(--border-radius); color: var(--text-secondary); transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.header-toggle:hover, .nav-icon-btn:hover { background-color: var(--card-hover-bg); color: var(--text-color); }
.nav-icon-btn .material-icons { font-size: 1.5rem; }

/* =================================
    Sidebar
    ================================= */
.sidebar { position: fixed; left: 0; top: var(--header-height); height: calc(100vh - var(--header-height)); width: var(--sidebar-width); background-color: var(--background-color); border-right: 1px solid var(--border-color); transition: all 0.3s ease-in-out; z-index: 50; transform: translateX(0); display: flex; flex-direction: column; }
.sidebar-collapsed { width: var(--sidebar-width-collapsed) !important; }
.sidebar-collapsed .sidebar-text, .sidebar-collapsed .sidebar-socials { opacity: 0; pointer-events: none; }
.sidebar-nav { padding: 1rem; flex-grow: 1; overflow-y: auto; }
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 0.5rem; }
.sidebar-menu a { display: flex; align-items: center; padding: 0.5rem 0.75rem; text-decoration: none; color: var(--text-color); border-radius: var(--border-radius); transition: all 0.3s ease-in-out; transform: translateX(0); }
.sidebar-menu a:hover { background-color: var(--card-hover-bg); transform: translateX(0.25rem); }
.sidebar-menu a.active { background-color: var(--primary-color); color: white; transform: translateX(0.25rem); }
.sidebar-menu .material-icons { font-size: 1.25rem; flex-shrink: 0; margin-right: 0.75rem; }
.sidebar-menu .sidebar-text { white-space: nowrap; overflow: hidden; transition: opacity 0.3s ease; }
.sidebar-socials { padding: 1rem; border-top: 1px solid var(--border-color); display: flex; justify-content: center; gap: 1.5rem; transition: opacity 0.3s ease; }
.sidebar-socials a { color: var(--text-secondary); transition: color 0.2s ease; }
.sidebar-socials a:hover { color: var(--text-color); }

/* =================================
    Overlays
    ================================= */
.overlay { position: fixed; inset: 0; background-color: var(--overlay-bg); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.overlay.show { opacity: 1; pointer-events: all; }

/* =================================
    Search
    ================================= */
.search-container { position: relative; display: flex; align-items: center; }
.search-icon-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text-secondary); }
.search-input { padding: 0.5rem 0.75rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: var(--card-bg); width: 18.75rem; font-size: 0.875rem; transition: all 0.2s; color: var(--text-color); }
.search-input:focus { outline: none; border-color: var(--primary-color); background-color: var(--background-color); box-shadow: 0 0 0 0.1875rem rgba(37, 99, 235, 0.1); }

/* =================================
    Main Content & Layout
    ================================= */
.main-content, .live-comment-container, .footer { padding: 0 1.5rem; margin-left: var(--sidebar-width); margin-top: var(--header-height); transition: all 0.3s ease-in-out; }
.main-content.collapsed, .live-comment-container.collapsed, .footer.collapsed { margin-left: var(--sidebar-width-collapsed); }
.main-content { min-height: calc(100vh - var(--header-height) - 10rem); }
.content-container { margin: 0 auto; padding: 2rem 0; }

/* =================================
    Live Comment Section
    ================================= */
.live-comment-container { margin-top: 0; background-color: var(--card-bg); }
#live-comment-container h1 { color: var(--text-color); margin-bottom: 1.5625rem; font-size: 2.2em; }

/* =================================
    Footer
    ================================= */
.footer { background-color: var(--background-color); border-top: 1px solid var(--border-color); padding: 2rem 1.5rem; margin-top: 0; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); gap: 2rem; margin-bottom: 2rem; }

/* =================================
    Modals
    ================================= */
.modal { position: fixed; z-index: 1000; inset: 0; overflow: auto; display: none; justify-content: center; align-items: center; background-color: var(--overlay-bg); }
.modal.show { display: flex; }
.modal-content { background-color: var(--background-color); padding: 1.25rem; border-radius: var(--border-radius-lg); box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.25); width: 90%; max-width: 28.125rem; position: relative; }
.close-button { position: absolute; top: 0.625rem; right: 0.9375rem; background: none; border: none; font-size: 1.75rem; color: var(--text-secondary); cursor: pointer; }
.modal-form-group { margin-bottom: 1rem; }
.modal-form-group.inline-fields { display: flex; gap: 0.5rem; }
.modal-form-group.inline-fields > div { flex: 1; }
.modal-form-group input, .modal-form-group select, .modal-form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: var(--background-color); color: var(--text-color); }
.modal-form-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.5rem; }
.modal-form-actions button { padding: 0.625rem 1.25rem; border: none; border-radius: var(--border-radius-lg); cursor: pointer; font-size: 1em; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1); }
.modal-form-actions button:hover { transform: translateY(-0.125rem); box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.15); }
.modal-form-actions button#signInSubmit,
.modal-form-actions button#signUpSubmit,
.modal-form-actions button#saveProfileBtn { background-color: var(--primary-color); color: white; }
.modal-form-actions button#signInSubmit:hover,
.modal-form-actions button#signUpSubmit:hover,
.modal-form-actions button#saveProfileBtn:hover { background-color: var(--primary-hover); }
.modal-toggle-link { text-align: center; margin-top: 1rem; font-size: 0.875rem; }
.gender-options { display: flex; justify-content: center; gap: 1rem; padding: 0.5rem; }
.gender-option { display: flex; align-items: center; gap: 0.5rem; }

/* =================================
    Responsive Styles
    ================================= */
@media (max-width: 768px) {
.main-header { padding: 0 1rem; }
.brand-title { display: none; }
.sidebar { transform: translateX(-100%); z-index: 900; }
.sidebar.show { transform: translateX(0); }
.main-content, .live-comment-container, .footer { margin-left: 0 !important; }
.search-container { position: static; }
.search-input { position: absolute; top: 0.5rem; right: 1rem; width: 0; padding-left: 0; padding-right: 0; opacity: 0; pointer-events: none; transition: all 0.3s ease; }
.search-container.active .search-input { width: calc(100% - 2rem); padding: 0.5rem 0.75rem; opacity: 1; pointer-events: all; z-index: 10; }
.search-icon-btn { display: flex; z-index: 5; }
.header-right { transition: opacity 0.3s ease; }
.search-container.active ~ .header-right { opacity: 0; pointer-events: none; }
.series-grid { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1rem; }
.profile-btn span { display: none; }
.comment-form, .comment-item { flex-direction: column; }
.comment-form-left-panel, .comment-left-panel { width: 100%; border-radius: 0.625rem 0.625rem 0 0; }
}
.fade-in { animation: fadeIn 0.5s ease-in-out; }
.fade-out { animation: fadeOut 0.3s ease-in-out; }
@keyframes fadeIn {
from { opacity: 0; transform: translateY(1.25rem); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
from { opacity: 1; transform: translateY(0); }
to { opacity: 0; transform: translateY(-1.25rem); }
}
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr)); gap: 1.5rem; }
.series-card { cursor: pointer; opacity: 0; transform: translateY(1.875rem); transition: all 0.3s ease-in-out; text-decoration: none; color: inherit; }
.series-card.animate { opacity: 1; transform: translateY(0); }
.series-card:hover { transform: translateY(-0.3125rem); }
.series-cover { aspect-ratio: 3/4; background-color: var(--card-hover-bg); border: 1px solid var(--border-color); margin-bottom: 0.75rem; border-radius: var(--border-radius); overflow: hidden; position: relative; }
.series-cover img { width: 100%; height: 100%; object-fit: cover; }
.series-format-label { position: absolute; top: 0.5rem; right: 0.5rem; background-color: rgba(0, 0, 0, 0.7); color: white; padding: 0.125rem 0.5rem; border-radius: 0.25rem; font-size: 0.6875rem; font-weight: 600; }
.series-title { font-size: 0.875rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.homepage-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.homepage-header h2 { margin: 0; }
.filter-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.filter-modal-header h3 { margin: 0; font-size: 1.125rem; }
.filter-modal-body { padding: 1.5rem; max-height: 60vh; overflow-y: auto; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--text-color); }
.filter-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn { padding: 0.375rem 0.75rem; font-size: 0.8125rem; border: 1px solid var(--border-color); background-color: var(--background-color); color: var(--text-color); border-radius: 1.25rem; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { background-color: var(--card-hover-bg); }
.filter-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.filter-modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1rem; border: 1px solid transparent; border-radius: var(--border-radius); cursor: pointer; text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary { background-color: var(--card-bg); color: var(--text-color); border-color: var(--border-color); }
.btn-secondary:hover { background-color: var(--card-hover-bg); }
.btn-danger { background-color: var(--danger-color); color: white; }
.btn-danger:hover { background-color: var(--danger-hover); }
.volumes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.access-gate { padding: 2rem; text-align: center; background-color: var(--card-bg); border-radius: var(--border-radius-lg); border: 1px dashed var(--border-color); margin-top: 1rem; }
.volume-card { cursor: pointer; opacity: 0; transform: translateY(1.25rem); transition: all 0.3s ease-in-out; text-decoration: none; color: inherit; }
.volume-card.animate { opacity: 1; transform: translateY(0); }
.volume-card:hover { transform: translateY(-0.1875rem); }
.volume-cover { aspect-ratio: 3/4; background-color: var(--card-hover-bg); border: 1px solid var(--border-color); margin-bottom: 0.5rem; border-radius: 0.25rem; overflow: hidden; }
.volume-cover img { width: 100%; height: 100%; object-fit: cover; }
.volume-title { font-size: 0.75rem; font-weight: 500; text-align: center; }
.series-detail-header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.series-detail-cover { width: 100%; max-width: 20rem; flex-shrink: 0; }
.series-detail-cover-image { aspect-ratio: 3/4; background-color: var(--card-hover-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); overflow: hidden; }
.series-detail-cover-image img { width: 100%; height: 100%; object-fit: cover; }
.series-detail-info { flex: 1; }
.series-detail-meta { display: flex; align-items: center; gap: 1.5rem; color: var(--text-secondary); margin-bottom: 1rem; flex-wrap: wrap; }
.prose { max-width: none; text-align: justify; line-height: 1.7; }
.prose p { margin-bottom: 1rem; }
.prose img { max-width: 100%; height: auto; border-radius: var(--border-radius-lg); margin: 1.5rem auto; display: block; }
.chapter-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.footer h4 { font-weight: 600; margin-bottom: 1rem; }
.footer p, .footer li { color: var(--text-secondary); margin-bottom: 0.5rem; }
.footer ul { list-style: none; }
.footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--text-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; text-align: center; color: var(--text-secondary); }
.auth-controls { display: flex; align-items: center; gap: 0.9375rem; }
.btn-base { padding: 0.625rem 1.25rem; border: none; border-radius: 0.5rem; cursor: pointer; font-size: 1em; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1); }
.btn-base:hover { transform: translateY(-0.125rem); box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.15); }
.profile-btn { cursor: pointer; transition: all 0.3s ease; }
.profile-btn:hover { border-color: #a0a0a0; transform: translateY(-0.0625rem); }
.profile-avatar-thumb { width: 2.375rem; height: 2.375rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); }
.comment-form { display: flex; align-items: stretch; margin-bottom: 1.5625rem; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 0.625rem; box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.07); overflow: hidden; position: relative; }
.comment-form-left-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 10rem; text-align: center; background-color: var(--card-hover-bg); border-right: 1px solid var(--border-color); padding: 0.9375rem 0.625rem; border-radius: 0.625rem 0 0 0.625rem; }
.comment-form-avatar { width: 6.25rem; height: 6.25rem; border-radius: 10%; object-fit: cover; margin-bottom: 0.5rem; border: 3px solid var(--border-color); box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1); }
.comment-form-author { font-weight: 700; color: var(--text-color); font-size: 0.95em; word-break: break-word; margin-bottom: 0.3125rem; }
.comment-form-right-panel { flex-grow: 1; display: flex; flex-direction: column; gap: 0.75rem; padding: 0.9375rem; }
.comment-form input[type="text"], .comment-form textarea { padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 0.5rem; font-size: 1em; width: 100%; box-sizing: border-box; transition: all 0.3s ease; background-color: var(--background-color); color: var(--text-color); }
.comment-form input[type="text"]:focus, .comment-form textarea:focus { border-color: #3498db; box-shadow: 0 0 0 0.1875rem rgba(52, 152, 219, 0.2); outline: none; }
.comment-form button { background-color: #2ecc71; color: white; align-self: flex-end; padding: 0.625rem 1.25rem; border: none; border-radius: 0.5rem; cursor: pointer; font-size: 1em; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1); }
.comment-form button:hover { background-color: #27ae60; }
.comments-list { border-top: 1px solid var(--border-color); padding-top: 1.5625rem; }
.comment-item { display: flex; align-items: stretch; margin-bottom: 1.25rem; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 0.625rem; box-shadow: 0 0.1875rem 0.625rem rgba(0, 0, 0, 0.05); overflow: hidden; transition: transform 0.2s ease-out; }
.comment-item:hover { transform: translateY(-0.1875rem); }
.comment-left-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-right: 0.9375rem; flex-shrink: 0; width: 10rem; text-align: center; background-color: var(--card-hover-bg); border-right: 1px solid var(--border-color); padding: 0.9375rem 0.625rem; border-radius: 0.625rem 0 0 0.625rem; cursor: pointer; }
.comment-avatar { width: 6.25rem; height: 6.25rem; border-radius: 10%; object-fit: cover; margin-bottom: 0.5rem; border: 3px solid #3498db; box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1); }
.comment-author { font-weight: 700; color: var(--text-color); font-size: 0.95em; word-break: break-word; margin-bottom: 0.3125rem; }
.status-indicator { display: flex; align-items: center; gap: 0.3125rem; font-size: 0.85em; font-weight: 600; margin-bottom: 0.3125rem; }
.status-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.1); }
.status-online .status-dot { background-color: #28a745; }
.status-offline .status-dot { background-color: #7f8c8d; }
.status-online { color: #28a745; }
.status-offline { color: #7f8c8d; }
.comment-right-panel { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 5rem; padding: 0.9375rem; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.625rem; font-size: 0.85em; color: var(--text-secondary); }
.comment-info-left { display: flex; align-items: center; gap: 0.625rem; }
.comment-reply-to { font-weight: bold; color: #3498db; text-decoration: none; transition: color 0.2s ease; }
.comment-reply-to:hover { color: #2980b9; text-decoration: underline; }
.comment-actions-right { display: flex; gap: 0.5rem; align-items: center; }
.action-btn { background: none; border: 1px solid var(--border-color); color: var(--text-color); padding: 0.375rem 0.625rem; border-radius: 0.375rem; cursor: pointer; font-size: 0.8em; transition: all 0.2s ease; }
.action-btn:hover { background-color: var(--card-hover-bg); border-color: #a0a0a0; }
.comment-number { font-weight: bold; color: #3498db; margin-left: 0.625rem; display: flex; align-items: center; gap: 0.3125rem; }
.comment-body { line-height: 1.6; word-wrap: break-word; margin-bottom: 0.75rem; flex-grow: 1; color: var(--text-color); }
.comment-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 0.85em; color: var(--text-secondary); padding-top: 0.5rem; border-top: 1px solid var(--border-color); }
.comment-likes { font-weight: bold; color: var(--text-color); cursor: pointer; transition: all 0.2s ease; }
.comment-likes.liked { color: #e74c3c; font-weight: bold; }
.comment-footer-actions { display: flex; gap: 0.5rem; }
.profile-modal-content { max-width: 34.375rem; text-align: center; }
.profile-banner { width: 100%; height: 8.75rem; background-color: #bdc3c7; border-radius: 0.625rem 0.625rem 0 0; object-fit: cover; margin-bottom: -4.375rem; }
.profile-avatar-large { width: 7.5rem; height: 7.5rem; border-radius: 50%; border: 0.3125rem solid var(--background-color); box-shadow: 0 0.25rem 0.9375rem rgba(0,0,0,0.2); object-fit: cover; margin-bottom: 0.9375rem; background-color: #ecf0f1; }
.profile-name { font-size: 2.2em; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-color); }
.profile-stats { display: flex; justify-content: center; gap: 1.875rem; margin-bottom: 1.25rem; color: var(--text-secondary); font-size: 1.1em; }
.profile-followers-avatars { display: flex; justify-content: center; align-items: center; gap: -0.5rem; margin-bottom: 1.5625rem; }
.profile-followers-avatars img { width: 2.1875rem; height: 2.1875rem; border-radius: 50%; border: 2px solid #fff; object-fit: cover; box-shadow: 0 0.0625rem 0.1875rem rgba(0,0,0,0.1); }
.profile-followers-avatars span { margin-left: 0.625rem; font-weight: 600; color: #3498db; }
.profile-info { display: flex; justify-content: center; gap: 1.5625rem; margin-bottom: 1.25rem; font-size: 1em; color: #666; }
.profile-description { text-align: center; margin-bottom: 1.5625rem; padding: 0 1.25rem; color: var(--text-color); line-height: 1.7; font-style: italic; }
.profile-actions { display: flex; justify-content: center; gap: 0.9375rem; }
.profile-actions button { padding: 0.625rem 1.25rem; border: none; border-radius: 0.5rem; cursor: pointer; font-size: 1em; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1); }
.profile-actions .edit-btn { background-color: #f39c12; color: white; }
.profile-actions .edit-btn:hover { background-color: #e67e22; }
.profile-actions .logout-btn { background-color: #e74c3c; color: white; }
.profile-actions .logout-btn:hover { background-color: #c0392b; }
.edit-profile-form .modal-form-group textarea { min-height: 6.25rem; }
.badge { display: block; width: calc(100% - 0.625rem); text-align: center; padding: 0.3125rem 0.5rem; border-radius: 0.1125rem; font-size: 0.75em; font-weight: 700; margin: 0.15rem auto; color: white; white-space: nowrap; }
.badges-container { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 0.3125rem; }
.badge.administration { background-color: #c0392b; }
.badge.moderator { background-color: #f1c40f;}
.badge.developer { background-color: #2980b9; }
.badge.vip-contribution { background-color: #8e44ad; }
.badge.senior { background-color: #27ae60; }
.badge.newbie { background-color: #3498db; }
.badge.anonim { background-color: #7f8c8d; }
.manage-badge-modal-content { max-width: 28.125rem; }
.badge-checklist { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }
.badge-checklist label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-size: 1.05em; color: var(--text-color); }
.badge-checklist input[type="checkbox"] { width: 1.375rem; height: 1.375rem; cursor: pointer; transform: scale(1.1); }
.toast-container { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 10000; display: flex; flex-direction: column; gap: 0.625rem; align-items: flex-end; }
.toast-message { background-color: #333; color: white; padding: 0.75rem 1.25rem; border-radius: 0.5rem; box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2); opacity: 0; transform: translateY(-1.25rem); animation: slideIn 0.5s forwards; min-width: 15.625rem; max-width: 21.875rem; font-size: 0.95em; font-weight: 500; word-wrap: break-word; }
.toast-message.success { background-color: #28a745; }
.toast-message.error { background-color: #dc3545; }
.toast-message.warning { background-color: #ffc107; color: #333; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-1.25rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOutToast { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-1.25rem); } }
.comment-item.pinned-comment { border: 2px solid #3498db; box-shadow: 0 0.375rem 0.9375rem rgba(52, 152, 219, 0.2); }
.comment-item.pinned-comment .comment-number { color: #e74c3c; font-weight: bold; }
#cancelEditBtn { background-color: #f39c12; color: white; margin-left: 0.625rem; display: none; }
#cancelEditBtn:hover { background-color: #e67e22; }
.comment-item.highlight { animation: highlightFade 3s ease-out forwards; }
@keyframes highlightFade { 0% { background-color: #ffffcc; box-shadow: 0 0 0.9375rem rgba(255, 255, 0, 0.5); } 100% { background-color: var(--card-bg); box-shadow: 0 0.1875rem 0.625rem rgba(0, 0, 0, 0.05); } }

/* =================================
    Favorite Button
    ================================= */
.series-actions { margin-bottom: 1rem; }
#favoriteBtn { background: none; border: none; cursor: pointer; color: var(--text-secondary); transition: all 0.2s; padding: 0; }
#favoriteBtn .material-icons { font-size: 2rem; }
#favoriteBtn:hover { color: var(--danger-color); }
#favoriteBtn.active { color: var(--danger-color); }

/* =================================
    Settings Page & Request Page
    ================================= */
.settings-container, .request-container { margin: 0 auto; }
.page-description { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; text-align: center; }
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.settings-card { background-color: var(--card-bg); border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); }
.settings-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.settings-header h2 { margin: 0; font-size: 1.25rem; }
.settings-body { padding: 1.5rem; }
.settings-body .profile-avatar-large { margin: 0 auto 1rem; }
.settings-body .profile-name { font-size: 1.5rem; }
.settings-body .profile-description { padding: 0; }
.settings-body .modal-form-group { text-align: left; }
.settings-body .modal-form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.settings-body .modal-form-actions { justify-content: space-between; }
@media (min-width: 768px) {
.series-detail-header { flex-direction: row; }
.settings-grid { grid-template-columns: 20rem 1fr; }
}
