/* ===== CORE APPLICATION STYLES ===== */

/* Brand Colors & Typography */
:root {
    --brand-navy: #1a3d5c;
    --brand-amber: #d4941e;
    --brand-light: #f5f3f0;
    --brand-white: #ffffff;
    --brand-text: #333333;
    --brand-muted: #666666;
    --brand-border: #e0e0e0;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Typography */
body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--brand-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure main content takes up available space */
main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--brand-text);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Main Navigation */
.main-nav {
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
    padding: 1rem 0;
    margin-bottom: 0; /* Remove margin to blend with hero */
    box-shadow: none; /* Remove shadow for seamless look */
    border-bottom: 1px solid var(--brand-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    min-height: 60px;
    width: 100%;
}

.logo-with-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-right: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-navy);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
}

.user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--brand-navy);
    flex-shrink: 0;
    margin-left: auto;
}

.user-menu a {
    color: var(--brand-navy);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.user-menu a:hover {
    background-color: var(--brand-light);
}

/* User Profile Card in Navigation */
.nav-user-profile-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-left: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-user-profile-card:hover {
    background: var(--brand-light);
    border-color: var(--brand-amber);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--brand-border);
}

.nav-user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid var(--brand-border);
    color: var(--brand-white);
}

.nav-user-name {
    font-weight: 500;
    color: var(--brand-text);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    flex: 1;
}

.nav-logout-icon {
    color: var(--brand-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.2rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
}

.nav-logout-icon:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-navy);
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.mobile-menu-toggle:hover {
    background: var(--brand-light);
    color: var(--brand-amber);
    transform: scale(1.05);
}

.mobile-menu-toggle:focus {
    outline: none;
    background: var(--brand-light);
    color: var(--brand-amber);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
    background: var(--brand-amber);
    color: var(--brand-navy);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--brand-white);
    padding: 1rem;
    border-top: 1px solid var(--brand-border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--brand-navy);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.mobile-menu a:hover {
    background-color: var(--brand-light);
}

.login-btn {
    background: var(--brand-amber);
    color: var(--brand-navy);
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(212, 148, 30, 0.2);
    transition: all 0.2s ease;
    border: none;
    text-transform: none;
    font-size: 0.95rem;
}

.login-btn:hover {
    background: #c08419;
    color: var(--brand-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 148, 30, 0.3);
}

/* Bookshelf Grid */
.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Clickable Bookshelf Card Link */
.bookshelf-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.bookshelf-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
}

.bookshelf-card-link:focus {
    outline: 3px solid var(--brand-amber);
    outline-offset: 2px;
}

.bookshelf-card-link:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Bookshelf Card Content */
.bookshelf-card-content {
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: var(--brand-white);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bookshelf-card-link:hover .bookshelf-card-content {
    border-color: var(--brand-amber);
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-light) 100%);
}

/* Ensure card content fills the link properly */
.bookshelf-card-content h3 {
    margin-top: 0;
    color: var(--brand-navy);
    font-weight: 600;
    transition: color 0.2s ease;
}

.bookshelf-card-link:hover .bookshelf-card-content h3 {
    color: var(--brand-amber);
}

/* Shelf badges styling - improved alignment and consistency */
.shelf-badges {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 0 0;
    flex-wrap: wrap;
    align-items: center;
    min-height: 32px; /* Consistent height to prevent layout shifts */
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand-light) 0%, #e9ecef 100%);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    margin: 0;
    height: 32px;
    box-sizing: border-box;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.privacy-badge:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--brand-amber);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contribution-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    margin: 0;
    height: 32px;
    box-sizing: border-box;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.2);
    transition: all 0.2s ease;
}

.contribution-badge:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.shelf-created-date {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    margin: 0;
    height: 32px;
    box-sizing: border-box;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(108, 117, 125, 0.2);
    transition: all 0.2s ease;
}

.shelf-created-date:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

/* Book Grid - Mobile First Approach */
.book-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

.book-card {
    position: relative;
    flex: 0 0 140px;
    scroll-snap-align: start;
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--brand-white);
}

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

/* Tablet breakpoint */
@media (min-width: 481px) {
    .book-card {
        flex: 0 0 160px;
    }
}

/* Desktop breakpoint */
@media (min-width: 768px) {
    .book-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        overflow-x: visible;
        scroll-snap-type: none;
    }
    
    .book-card {
        flex: none;
    }
}

/* Shelf Header */
.shelf-header-card {
    background: var(--brand-light);
    border: 1px solid var(--brand-border);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.shelf-title {
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}

.shelf-description {
    color: var(--brand-muted);
    margin-bottom: 1rem;
}

.shelf-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--brand-muted);
}

.shelf-actions {
    display: flex;
    gap: 0.5rem;
}

/* Shelf Owner Information */
.shelf-owner-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.shelf-owner-info:hover {
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-light) 100%);
    border-color: var(--brand-amber);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.owner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-border);
    transition: all 0.2s ease;
}

.owner-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-muted);
    color: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--brand-border);
    transition: all 0.2s ease;
}

.shelf-owner-link {
    color: var(--brand-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.shelf-owner-link:hover {
    color: var(--brand-amber);
    text-decoration: none;
    transform: scale(1.02);
}

.shelf-owner-info:hover .owner-avatar,
.shelf-owner-info:hover .owner-avatar-placeholder {
    border-color: var(--brand-amber);
    transform: scale(1.05);
}

    .shelf-badges {
        margin: 0.5rem 0 0 0;
        gap: 0.25rem;
        min-height: 26px;
    }


/* Enhanced Empty State */
.empty-state-card {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--brand-light);
    border: 2px dashed var(--brand-border);
    border-radius: 0.5rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brand-navy);
}

.empty-description {
    color: var(--brand-muted);
    margin-bottom: 2rem;
}

/* Add Books Interface */
#add-books-container {
    margin-bottom: 2rem;
}

.add-books-toggle {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.book-search-expanded .card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.search-form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-form-row input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
}

.search-form-row button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
}

/* ===== BOOK MAIN LINK STYLES ===== */

/* Main clickable link for book cards - removes default link styling */
.book-main-link {
    color: inherit;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
}

.book-main-link:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.book-main-link:focus {
    outline: 3px solid var(--brand-amber);
    outline-offset: 2px;
    color: inherit;
    text-decoration: none;
}

.book-main-link:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Ensure book titles within the main link don't have link styling */
.book-main-link .book-title {
    color: var(--brand-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.book-main-link:hover .book-title {
    color: var(--brand-amber);
}

/* Book Card Components - Mobile First */
.book-cover-container {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-border);
    color: var(--brand-muted);
    font-size: 2rem;
}

.book-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.book-title {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--brand-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.book-author {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.75rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-description {
    margin: 0;
    font-size: 0.7rem;
    color: var(--brand-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Voting System */
.book-voting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.voting-buttons {
    display: flex;
    gap: 0.25rem;
}

.vote-btn {
    background: none;
    border: 1px solid var(--brand-border);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vote-btn:hover:not(:disabled) {
    background: var(--brand-light);
    border-color: var(--brand-amber);
}

.vote-btn.voted {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border-color: var(--brand-amber);
}

.vote-btn.disabled,
.vote-btn:disabled {
    background: var(--brand-light);
    color: var(--brand-muted);
    border-color: var(--brand-border);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Permission-aware voting button states */
.vote-btn.disabled-anonymous {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: var(--brand-navy);
    border: 2px solid #2196f3;
    cursor: pointer;
    opacity: 0.9;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vote-btn.disabled-anonymous:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e1bee7 100%);
    border-color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.vote-btn.disabled-no-permission {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
    cursor: not-allowed;
    opacity: 0.8;
    font-weight: 500;
}

.vote-btn.disabled-no-permission:hover {
    background: #ffeaa7;
    border-color: #e0a800;
}

/* New +1/-1 Toggle Button Styles */
.vote-btn.toggle-btn {
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 36px;
    min-height: 36px;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vote-btn.toggle-btn.add-vote {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}

.vote-btn.toggle-btn.add-vote:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.35);
}

.vote-btn.toggle-btn.remove-vote {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.vote-btn.toggle-btn.remove-vote:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.35);
}

/* Enhanced disabled states for toggle buttons */
.vote-btn.toggle-btn.disabled-anonymous {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: var(--brand-navy);
    border: 2px solid #2196f3;
    cursor: pointer;
    opacity: 0.9;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.vote-btn.toggle-btn.disabled-anonymous:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e1bee7 100%);
    border-color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.vote-btn.toggle-btn.disabled-no-permission {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 2px solid #ffc107;
    cursor: not-allowed;
    opacity: 0.8;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.vote-btn.toggle-btn.disabled-no-permission:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #ffdd57 100%);
    border-color: #e0a800;
}

.vote-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-text);
    min-width: 20px;
    text-align: center;
}

/* Vote Count Badge (positioned on left side of book cover) */
.vote-count-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95) 0%, rgba(32, 201, 151, 0.95) 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 1.25rem;
    min-width: 32px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.vote-count-badge:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 1) 0%, rgba(32, 201, 151, 1) 100%);
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.vote-count-badge::before {
    content: "👥";
    font-size: 0.7rem;
    margin-right: 0.125rem;
}

/* IMPROVED ACTION BUTTON LAYOUT */
.book-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0px;
    padding-top: 0px;
    margin: 0 4px;
}

/* Action Button Base Styles - Compact and Clean */
.action-btn {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    color: var(--brand-text);
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    flex: 1;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-amber);
}

/* Toggle Button Styles (for +1/-1) */
.action-btn.toggle-btn.add-vote {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.2);
}

.action-btn.toggle-btn.add-vote:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    border-color: #1e7e34;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.action-btn.toggle-btn.remove-vote {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-color: #dc3545;
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.2);
}

.action-btn.toggle-btn.remove-vote:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    border-color: #bd2130;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
}

/* Comment Button */
.action-btn.comment-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-color: #17a2b8;
    box-shadow: 0 1px 3px rgba(23, 162, 184, 0.2);
}

.action-btn.comment-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    border-color: #117a8b;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
}

/* Add to Shelf Button */
.action-btn.add-to-shelf-btn {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    color: var(--brand-navy);
    border-color: var(--brand-amber);
    box-shadow: 0 1px 3px rgba(212, 148, 30, 0.2);
}

.action-btn.add-to-shelf-btn:hover {
    background: linear-gradient(135deg, #c08419 0%, #d49520 100%);
    border-color: #c08419;
    box-shadow: 0 2px 6px rgba(212, 148, 30, 0.3);
}

/* Disabled states for action buttons */
.action-btn.disabled-anonymous {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: var(--brand-navy);
    border: 1px solid #2196f3;
    cursor: pointer;
    opacity: 0.9;
    font-weight: 600;
}

.action-btn.disabled-anonymous:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e1bee7 100%);
    border-color: #1976d2;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.2);
}

.action-btn.disabled-no-permission {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffc107;
    cursor: not-allowed;
    opacity: 0.8;
}

.action-btn.disabled-no-permission:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #ffdd57 100%);
    border-color: #e0a800;
    transform: none;
}

/* Mobile Responsive Action Buttons */
@media (max-width: 480px) {
    .book-actions-row {
        gap: 0.25rem;
        padding-top: 0.5rem;
    }
    
    .action-btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.7rem;
        min-width: 28px;
        min-height: 28px;
        max-width: 50px;
        flex: 1;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .book-actions-row {
        gap: 0.375rem;
    }
    
    .action-btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.72rem;
        min-width: 30px;
        min-height: 30px;
        max-width: 55px;
    }
}

/* Remove Button (Red Cross) */
.remove-btn-cross {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 24px;
    height: 24px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.remove-btn-cross:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* More Info Link */
.more-info-link {
    font-size: 0.7rem;
    color: var(--brand-amber);
    text-decoration: none;
    text-align: center;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.more-info-link:hover {
    background: var(--brand-light);
    color: var(--brand-navy);
    text-decoration: underline;
}

/* Tablet Responsive */
@media (min-width: 481px) {
    .book-cover-container {
        height: 160px;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-title {
        font-size: 0.9rem;
        min-height: 2.8rem;
    }
    
    .book-author {
        font-size: 0.8rem;
    }
    
    .book-description {
        font-size: 0.75rem;
    }
    
    .remove-btn-cross {
        width: 28px;
        height: 28px;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .more-info-link {
        font-size: 0.75rem;
    }
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .book-cover-container {
        height: 180px;
    }
    
    .book-title {
        font-size: 1rem;
        min-height: 3rem;
    }
    
    .book-author {
        font-size: 0.85rem;
    }
    
    .book-description {
        font-size: 0.8rem;
    }
    
    .vote-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 0.8rem;
    }
    
    .vote-count {
        font-size: 0.8rem;
    }
    
    .remove-btn-cross {
        width: 32px;
        height: 32px;
    }
    
    .more-info-link {
        font-size: 0.8rem;
    }
}


/* Remove Button (Red Cross) */
.remove-btn-cross {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 24px;
    height: 24px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.remove-btn-cross:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* More Info Link */
.more-info-link {
    font-size: 0.7rem;
    color: var(--brand-amber);
    text-decoration: none;
    text-align: center;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.more-info-link:hover {
    background: var(--brand-light);
    color: var(--brand-navy);
    text-decoration: underline;
}

/* Tablet Responsive */
@media (min-width: 481px) {
    .book-cover-container {
        height: 160px;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-title {
        font-size: 0.9rem;
        min-height: 2.8rem;
    }
    
    .book-author {
        font-size: 0.8rem;
    }
    
    .book-description {
        font-size: 0.75rem;
    }
    
    .remove-btn-cross {
        width: 28px;
        height: 28px;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .more-info-link {
        font-size: 0.75rem;
    }
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .book-cover-container {
        height: 180px;
    }
    
    .book-title {
        font-size: 1rem;
        min-height: 3rem;
    }
    
    .book-author {
        font-size: 0.85rem;
    }
    
    .book-description {
        font-size: 0.8rem;
    }
    
    .vote-btn {
        min-width: 36px;
        min-height: 36px;
        font-size: 0.8rem;
    }
    
    .vote-count {
        font-size: 0.8rem;
    }
    
    .remove-btn-cross {
        width: 32px;
        height: 32px;
    }
    
    .more-info-link {
        font-size: 0.8rem;
    }
}

/* Search Results */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--muted-border-color);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.search-result-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--muted-border-color);
}

.search-result-card:last-child {
    border-bottom: none;
}

.search-result-cover-container {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
}

.search-result-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted-color);
    border-radius: 0.25rem;
    font-size: 2rem;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.add-book-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #363;
}

.alert-info {
    background: #eef;
    border: 1px solid #ccf;
    color: #336;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted-color);
}

/* Loading */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--muted-color);
}

.spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--brand-border);
    border-top: 2px solid var(--brand-amber);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Search form improvements */
.search-form {
    margin-bottom: 1rem;
}

.search-form input {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* HTMX indicator styling */
.htmx-indicator {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-request.htmx-indicator {
    opacity: 1;
}

/* Share Interface */
.share-interface {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.privacy-section, .members-section, .pending-section, .invite-section {
    border: 1px solid var(--muted-border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.current-privacy {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.privacy-info p {
    color: var(--muted-color);
    margin: 0;
}

.privacy-form {
    margin-top: 1rem;
}

/* Member Cards */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--muted-border-color);
    border-radius: 0.5rem;
    background: var(--background-color);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.member-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.member-info {
    flex: 1;
}

.member-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.member-handle {
    margin: 0 0 0.5rem 0;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.member-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.member-controls select {
    min-width: 100px;
}

.member-controls .small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-owner {
    background: #ffd700;
    color: #000;
}

.badge-moderator {
    background: #dc3545;
    color: white;
}

.badge-contributor {
    background: #007bff;
    color: white;
}

.badge-viewer {
    background: #6c757d;
    color: white;
}

.badge-pending {
    background: #ffc107;
    color: #000;
}


.contribution-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

/* Alpha Badge Styles */
.alpha-badge-container {
    position: relative;
    display: inline-block;
}

.alpha-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffc107;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.alpha-badge:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #ffdd57 100%);
    border-color: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.alpha-message {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-navy);
    color: var(--brand-white);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 280px;
    width: max-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.alpha-message::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--brand-navy);
}

.alpha-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Footer Alpha Badge */
.footer-alpha-badge-container {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-alpha-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffc107;
    box-shadow: 0 1px 3px rgba(255, 193, 7, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.footer-alpha-badge:hover {
    background: linear-gradient(135deg, #ffeaa7 0%, #ffdd57 100%);
    border-color: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.3);
}

.footer-alpha-message {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-navy);
    color: var(--brand-white);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    max-width: 280px;
    width: max-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.footer-alpha-message::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--brand-navy);
}

.footer-alpha-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Alpha Form Disclaimer */
.alpha-form-disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-left: 3px solid #ffc107;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #856404;
    font-style: italic;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.1);
}

.shelf-preview-contribution-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    margin-bottom: 0.25rem;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.2);
    transition: all 0.2s ease;
}

.shelf-preview-contribution-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

/* Enhanced Role Management Styles */
.role-display {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

.role-controls-read {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.role-controls-edit {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--brand-light);
    border: 2px solid var(--brand-amber);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(212, 148, 30, 0.2);
}

.role-controls-confirm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.role-select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    background: var(--brand-white);
    transition: border-color 0.2s ease;
}

.role-select:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 2px rgba(212, 148, 30, 0.2);
}

.role-edit-buttons,
.role-confirm-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.edit-role-btn,
.save-role-btn,
.confirm-role-btn {
    transition: all 0.2s ease;
}

.edit-role-btn:hover {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border-color: var(--brand-amber);
}

.save-role-btn {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border: none;
}

.save-role-btn:hover {
    background: #c08419;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(212, 148, 30, 0.3);
}

.confirm-role-btn {
    background: #28a745;
    color: white;
    border: none;
}

.confirm-role-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.cancel-role-btn {
    background: var(--brand-white);
    color: var(--brand-muted);
    border: 1px solid var(--brand-border);
}

.cancel-role-btn:hover {
    background: var(--brand-light);
    color: var(--brand-text);
}

.remove-member-btn {
    background: var(--brand-white);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.remove-member-btn:hover {
    background: #dc3545;
    color: white;
}

.role-change-preview {
    text-align: center;
    margin-bottom: 0.75rem;
}

.role-change-confirmation {
    font-weight: 600;
    color: var(--brand-text);
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.role-change-description {
    color: var(--brand-muted);
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

/* Loading states for role changes */
.htmx-request .role-controls-edit,
.htmx-request .role-controls-confirm {
    opacity: 0.7;
    pointer-events: none;
}

.htmx-request .save-role-btn,
.htmx-request .confirm-role-btn {
    position: relative;
}

.htmx-request .save-role-btn::after,
.htmx-request .confirm-role-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success highlight animation */
.member-card.role-updated {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
    transition: all 0.3s ease;
}

/* Mobile responsive for role management */
@media (max-width: 768px) {
    .role-controls-read {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .role-edit-buttons,
    .role-confirm-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .role-select {
        font-size: 0.85rem;
    }
    
    .role-change-confirmation {
        font-size: 0.9rem;
    }
    
    .role-change-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .role-controls-edit,
    .role-controls-confirm {
        padding: 0.5rem;
    }
    
    .role-edit-buttons,
    .role-confirm-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .edit-role-btn,
    .save-role-btn,
    .confirm-role-btn,
    .cancel-role-btn,
    .remove-member-btn {
        width: 100%;
        text-align: center;
    }
}

/* Invite Interface */
.invite-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.invite-card {
    border: 1px solid var(--muted-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--background-color);
}

.invite-info {
    margin-bottom: 1rem;
}

.invite-info strong {
    display: block;
    margin-bottom: 0.5rem;
}

.invite-info p {
    margin: 0.25rem 0;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.invite-url-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.invite-url {
    flex: 1;
    font-family: monospace;
    font-size: 0.9rem;
    background: var(--muted-color);
    border: 1px solid var(--muted-border-color);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.empty-message {
    color: var(--muted-color);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* ===== LANDING PAGE STYLES ===== */

/* Hero Section */
.hero-section {
    background: transparent; /* Remove background, now handled by nav */
    color: var(--brand-navy);
    padding: 4rem 0;
    margin-bottom: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta {
    background: var(--brand-amber);
    color: var(--brand-navy);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--brand-navy);
}

.hero-cta-secondary {
    background: transparent;
    color: var(--brand-navy);
    border: 2px solid var(--brand-navy);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.hero-cta-secondary:hover {
    background: var(--brand-navy);
    color: white;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

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

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #2a5a7a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.step-description {
    color: #666;
    line-height: 1.5;
}

/* Public Shelves Section */
.public-shelves-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Landing Footer */
.landing-footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 0;
}

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

.footer-text {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-text a {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    text-align: center;
    margin: 1rem 0;
}

.social-icon {
    color: var(--brand-amber);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.social-icon:hover {
    color: var(--brand-white);
}

/* Container for landing page */
.landing-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    /* Alpha component mobile styles */
    .alpha-badge {
        margin-left: 0.5rem;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .alpha-disclaimer-container {
        padding: 0.75rem 0;
    }
    
    .alpha-disclaimer {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .alpha-form-disclaimer {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        margin: 0.75rem 0;
    }
    
    /* Fix search form for mobile */
    .search-form-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-form-row input {
        flex: none;
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        border: 2px solid var(--brand-border);
        min-height: 44px;
    }
    
    .search-form-row button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 44px;
        border-radius: 0.5rem;
    }
    
    .search-btn, .cancel-btn {
        width: 100%;
    }
    
    /* Improve add books card spacing */
    .add-books-card {
        padding: 1.5rem;
        margin: 0 -1rem;
    }
    
    /* Navigation */
    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        flex-wrap: nowrap;
        min-height: 60px;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.25rem;
        margin-right: 0;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .user-menu {
        flex-shrink: 0;
        gap: 0.5rem;
    }
    
    .login-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem;
    }
    
    /* Mobile user profile card */
    .nav-user-profile-card {
        margin-left: 0;
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
    }
    
    .nav-user-avatar,
    .nav-user-avatar-placeholder {
        width: 28px;
        height: 28px;
    }
    
    .nav-user-name {
        font-size: 0.85rem;
        max-width: 80px;
    }
    
    .nav-logout-icon {
        font-size: 1rem;
        min-width: 20px;
        min-height: 20px;
        padding: 0.2rem;
    }
    
    /* Grids */
    .bookshelf-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile bookshelf card adjustments */
    .bookshelf-card-link {
        border-radius: 0.75rem;
    }
    
    .bookshelf-card-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
    
    .bookshelf-card-content {
        padding: 1.25rem;
        border-radius: 0.75rem;
        min-height: 120px;
    }
    
    .bookshelf-card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .shelf-badges {
        margin: 0.75rem 0 0 0;
        gap: 0.375rem;
        min-height: 28px;
    }
    
    .privacy-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        height: 28px;
    }

    .book-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .book-card {
        flex: 0 0 140px; /* Fixed width for mobile */
        scroll-snap-align: start;
    }
    
    /* Ensure touch targets are large enough on mobile */
    .vote-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 0.8rem;
    }
    
    .remove-btn-cross {
        width: 32px;
        height: 32px;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .more-info-link {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .search-result-card {
        flex-direction: column;
    }
    
    .search-result-cover-container {
        width: 100px;
        height: 150px;
        align-self: center;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        flex-direction: column;
        text-align: center;
    }
    
    .member-controls {
        justify-content: center;
    }
    
    .invite-form-fields {
        grid-template-columns: 1fr;
    }
    
    .invite-url-section {
        flex-direction: column;
    }
    
    /* Landing page responsive */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-icon {
        font-size: 6rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta,
    .hero-cta-secondary {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }
    
    /* Extra small screen bookshelf card adjustments */
    .bookshelf-card-content {
        padding: 1rem;
        min-height: 100px;
    }
    
    .bookshelf-card-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .bookshelf-card-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0.5rem 0;
    }
    
    .shelf-badges {
        margin: 0.5rem 0;
        gap: 0.25rem;
    }
    
}

/* ===== SELF-JOIN COMPONENT STYLES ===== */

/* Self-join container */
.self-join-container {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    border: 2px solid #28a745;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
    transition: all 0.3s ease;
}

.self-join-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

/* Self-join button */
.self-join-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--brand-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    min-height: 48px;
}

.self-join-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
    color: var(--brand-white);
}

.self-join-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Self-join subtitle */
.self-join-subtitle {
    color: #155724;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Success state */
.self-join-success-container {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e8 100%);
    border: 2px solid #28a745;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.self-join-success-message {
    color: #155724;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.self-join-success-subtitle {
    color: #155724;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Form label for self-join checkbox in create/edit forms */
.self-join-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    margin: 1rem 0;
    transition: all 0.2s ease;
}

.self-join-label:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--brand-amber);
}

.self-join-help-text {
    color: var(--brand-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    font-style: italic;
}

/* Mobile responsive for self-join components */
@media (max-width: 768px) {
    .self-join-container,
    .self-join-success-container {
        margin: 1rem -1rem;
        border-radius: 0;
        padding: 1.25rem;
    }
    
    .self-join-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .self-join-subtitle,
    .self-join-success-subtitle {
        font-size: 0.9rem;
    }
    
    .self-join-success-message {
        font-size: 1rem;
    }
    
    .self-join-label {
        padding: 0.875rem;
        margin: 0.75rem 0;
    }
    
    .self-join-help-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .self-join-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .self-join-subtitle,
    .self-join-success-subtitle {
        font-size: 0.85rem;
    }
    
    .self-join-success-message {
        font-size: 0.95rem;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */

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

/* Container utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Override PicoCSS for landing page */
.landing-footer hr {
    border-color: #555;
}

/* Ensure proper spacing between sections */
section + section {
    margin-top: 0;
}

/* ===== NETWORK ACTIVITY FEED STYLES ===== */

.network-feed-section {
    background: var(--brand-white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--brand-border);
}

.network-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-card {
    background: var(--brand-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--brand-border);
    transition: box-shadow 0.2s ease;
}

.activity-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.activity-user-info h4,
.activity-user-info strong {
    margin: 0;
    font-size: 1rem;
    color: var(--brand-text);
}

.activity-handle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--brand-muted);
}

.activity-content {
    margin-left: 4rem;
}

.activity-action {
    margin: 0 0 1rem 0;
    color: var(--brand-muted);
    font-size: 0.95rem;
}

.activity-bookshelf-ref {
    font-weight: 600;
    color: var(--brand-navy);
}

/* Bookshelf Activity Cards */
.activity-bookshelf-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    padding: 1rem;
}

.activity-bookshelf-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--brand-navy);
}

.activity-privacy {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--brand-muted);
}

/* Book Activity Cards */
.activity-book-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.activity-book-cover {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.activity-book-cover-placeholder {
    width: 60px;
    height: 90px;
    background: var(--brand-muted);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-book-info {
    flex: 1;
}

.activity-book-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--brand-navy);
    line-height: 1.3;
}

.activity-book-author {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--brand-muted);
}

.activity-link {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.activity-link:hover {
    text-decoration: underline;
}

.activity-timestamp {
    margin: 1rem 0 0 4rem;
    font-size: 0.85rem;
    color: var(--brand-muted);
}

/* Empty Network State */
.empty-network-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--brand-light);
    border-radius: 0.75rem;
    border: 2px dashed var(--brand-border);
}

.empty-network-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brand-navy);
}

.empty-network-description {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--brand-text);
}

.empty-network-suggestion {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--brand-muted);
}

.empty-network-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Activity Feed */
@media (max-width: 768px) {
    .network-feed-section {
        padding: 1.5rem;
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .activity-content {
        margin-left: 0;
    }
    
    .activity-timestamp {
        margin-left: 0;
    }
    
    .activity-book-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .activity-book-cover,
    .activity-book-cover-placeholder {
        width: 80px;
        height: 120px;
    }
    
    .empty-network-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .empty-network-actions a {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* ===== EXPLORE PAGE STYLES ===== */

.explore-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    border: 1px solid var(--brand-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.explore-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--brand-navy);
    font-family: var(--font-heading);
    font-weight: 700;
}

.explore-subtitle {
    font-size: 1.2rem;
    color: var(--brand-muted);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Explore Search Form */
.explore-search-form {
    background: var(--brand-white);
    border: 2px solid var(--brand-border);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.explore-search-form:hover {
    border-color: var(--brand-amber);
    box-shadow: 0 6px 20px rgba(212, 148, 30, 0.15);
}

.explore-search-row {
    display: grid;
    grid-template-columns: 2fr auto auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.explore-search-input {
    padding: 1rem 1.25rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
    font-size: 1.1rem;
    background: var(--brand-white);
    transition: all 0.2s ease;
    min-height: 48px;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

.explore-search-input:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.15);
    transform: translateY(-1px);
}

.explore-sort-select,
.explore-filter-select {
    padding: 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: var(--brand-white);
    transition: all 0.2s ease;
    min-height: 48px;
    min-width: 140px;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

.explore-sort-select:focus,
.explore-filter-select:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.15);
}

.explore-search-btn {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    color: var(--brand-navy);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 148, 30, 0.25);
    font-family: var(--font-primary);
}

.explore-search-btn:hover {
    background: linear-gradient(135deg, #c08419 0%, #d49520 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 148, 30, 0.35);
}

.advanced-search-toggle {
    display: inline-block;
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

.advanced-search-toggle:hover {
    color: var(--brand-navy);
    background: var(--brand-light);
    text-decoration: underline;
}

.advanced-search-container {
    background: var(--brand-light);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.advanced-search-fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.advanced-search-fieldset label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--brand-text);
    font-size: 0.95rem;
}

.advanced-search-fieldset input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--brand-white);
    transition: all 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.advanced-search-fieldset input:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.15);
}

.public-shelves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.shelf-preview-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.shelf-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.shelf-preview-card > article {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.shelf-preview-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    height: 200px;
    margin-bottom: 1rem;
    background: var(--brand-light);
    border-radius: 0.5rem;
    overflow: hidden;
}

.shelf-preview-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shelf-preview-placeholder {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--brand-muted);
}

.shelf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shelf-footer-left {
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.shelf-owner-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.owner-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.owner-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.book-count {
    font-size: 0.9rem;
    color: var(--brand-muted);
}

/* ===== COMMUNITY READING SECTION ===== */

.community-reading-section {
    padding: 4rem 0;
    background: var(--brand-white);
}

.scroll-wrapper {
    position: relative;
}

.book-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.book-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.scroll-wrapper::before,
.scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    pointer-events: none;
    z-index: 2;
}

.scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--brand-white), transparent);
}

.scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--brand-white), transparent);
}

.book-scroll-card {
    flex: 0 0 220px;
    text-decoration: none;
    color: inherit;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--brand-light);
}

.book-scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.book-scroll-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.book-scroll-cover-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--brand-muted);
    background: var(--brand-border);
}

.book-scroll-info {
    padding: 1rem;
}

.book-scroll-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-scroll-shelf {
    font-size: 0.9rem;
    color: var(--brand-muted);
    margin: 0;
}

/* ===== SEARCH PAGE STYLES ===== */

.search-form {
    margin-bottom: 2rem;
    background: var(--brand-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.search-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.search-type-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.25rem;
    background: var(--brand-white);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.search-type-tab:hover {
    background: var(--brand-light);
    border-color: var(--brand-amber);
}

.search-type-tab input[type="radio"] {
    margin: 0;
}

.search-type-tab input[type="radio"]:checked + span,
.search-type-tab:has(input[type="radio"]:checked) {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border-color: var(--brand-amber);
}

.search-form-grid {
    display: grid;
    grid-template-columns: 2fr auto auto auto auto;
    gap: 1rem;
    align-items: center;
}

.search-form-grid input[type="search"] {
    padding: 0.75rem 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--brand-white);
    transition: border-color 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.search-form-grid input[type="search"]:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.1);
}

.search-form-grid select {
    padding: 0.75rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: var(--brand-white);
    transition: border-color 0.2s ease;
    min-height: 44px;
    min-width: 120px;
    box-sizing: border-box;
}

.search-form-grid select:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.1);
}

.search-form-grid button[type="submit"] {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(212, 148, 30, 0.2);
}

.search-form-grid button[type="submit"]:hover {
    background: #c08419;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 148, 30, 0.3);
}

.advanced-search-toggle {
    display: block;
    margin-top: 1rem;
    text-align: right;
    color: var(--brand-amber);
    cursor: pointer;
}

#search-results-grid {
    margin-top: 2rem;
}

/* Search Results Sections */
.search-section {
    margin-bottom: 3rem;
}

.search-section-title {
    color: var(--brand-navy);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.search-shelves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.search-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* User Search Result Cards */
.user-search-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.user-search-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-search-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-border);
}

.user-search-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--brand-border);
}

.user-search-info {
    flex: 1;
}

.user-search-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 0.25rem;
}

.user-search-handle {
    color: var(--brand-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.user-search-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-search-stat {
    font-size: 0.8rem;
    color: var(--brand-text);
    background: var(--brand-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.user-search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-border);
}

.user-search-recent {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin: 0;
}

.user-search-link {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-search-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    /* Enhanced Explore Page Mobile Styles */
    .explore-hero {
        padding: 2rem 0;
        margin: 0 -1rem 2rem -1rem;
        border-radius: 0;
    }
    
    .explore-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .explore-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .explore-search-form {
        margin: 0 -1rem 2rem -1rem;
        border-radius: 0;
        padding: 1.5rem;
        border-left: none;
        border-right: none;
    }
    
    .explore-search-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .explore-search-input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
    }
    
    .explore-sort-select,
    .explore-filter-select {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
        min-width: 100%;
        width: 100%;
    }
    
    .explore-search-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
        justify-content: center;
    }
    
    .advanced-search-toggle {
        text-align: center;
        margin-top: 1rem;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .advanced-search-container {
        padding: 1.25rem;
        margin-top: 1rem;
    }
    
    .advanced-search-fieldset {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advanced-search-fieldset input {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .public-shelves-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Original search page mobile styles */
    .search-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-form-grid input[type="search"] {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .search-form-grid select {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
        min-width: 100%;
    }
    
    .search-form-grid button[type="submit"] {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        width: 100%;
    }
    
    .search-type-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .search-type-tab {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-shelves-grid,
    .search-users-grid {
        grid-template-columns: 1fr;
    }
    
    .user-search-content {
        flex-direction: column;
        text-align: center;
    }
    
    .user-search-stats {
        justify-content: center;
    }
    
    .user-search-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Enhanced mobile styles for very small screens */
@media (max-width: 480px) {
    .explore-hero {
        padding: 1.5rem 0;
    }
    
    .explore-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .explore-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .explore-search-form {
        padding: 1.25rem;
    }
    
    .explore-search-input {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }
    
    .explore-sort-select,
    .explore-filter-select {
        padding: 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }
    
    .explore-search-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .advanced-search-toggle {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .advanced-search-container {
        padding: 1rem;
    }
    
    .advanced-search-fieldset input {
        padding: 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }
    
    .public-shelves-grid {
        gap: 1rem;
    }
}

/* ===== VIEW TOGGLE STYLES ===== */

.view-toggle-btn {
    font-size: 1.1rem;
}

/* Button visibility based on view state */
.grid-view .grid-toggle-btn {
    display: none;
}

.list-view .list-toggle-btn {
    display: none;
}

/* Default state (grid view) */
.books-section:not(.list-view) .grid-toggle-btn {
    display: none;
}

.books-section:not(.list-view) .list-toggle-btn {
    display: flex;
}

/* ===== LIST VIEW TABLE STYLES ===== */

.book-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--brand-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--brand-border);
}

.book-table-header th {
    background: var(--brand-light);
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--brand-text);
    border-bottom: 2px solid var(--brand-border);
    font-size: 0.9rem;
}

.book-table-row {
    border-bottom: 1px solid var(--brand-border);
    transition: background-color 0.2s ease;
}

.book-table-row:hover {
    background: var(--brand-light);
}

.book-table-row:last-child {
    border-bottom: none;
}

.book-table-row td {
    padding: 1rem 0.75rem;
    vertical-align: top;
}

/* Table Cell Styles */
.cover-cell {
    width: 60px;
    text-align: center;
}

.book-table-cover {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.book-table-cover-placeholder {
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-border);
    color: var(--brand-muted);
    border-radius: 0.25rem;
    font-size: 1.5rem;
}

.title-cell {
    min-width: 200px;
}

.book-table-title {
    font-size: 1rem;
    color: var(--brand-text);
    line-height: 1.3;
}

.author-cell {
    min-width: 150px;
    color: var(--brand-muted);
    font-size: 0.9rem;
}

.description-cell {
    max-width: 300px;
    color: var(--brand-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.votes-cell {
    width: 120px;
    text-align: center;
}

.table-voting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.table-voting-buttons {
    display: flex;
    gap: 0.25rem;
}

.vote-btn-small {
    background: none;
    border: 1px solid var(--brand-border);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.vote-btn-small:hover:not(:disabled) {
    background: var(--brand-light);
    border-color: var(--brand-amber);
}

.vote-btn-small.voted {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border-color: var(--brand-amber);
}

.vote-btn-small.disabled,
.vote-btn-small:disabled {
    background: var(--brand-light);
    color: var(--brand-muted);
    border-color: var(--brand-border);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Small toggle buttons for table view */
.vote-btn-small.toggle-btn {
    font-weight: 600;
    font-size: 0.7rem;
    min-width: 32px;
    min-height: 32px;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.vote-btn-small.toggle-btn.add-vote {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #28a745;
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.2);
}

.vote-btn-small.toggle-btn.add-vote:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.vote-btn-small.toggle-btn.remove-vote {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid #dc3545;
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.2);
}

.vote-btn-small.toggle-btn.remove-vote:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.table-vote-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-text);
    min-width: 20px;
}

.actions-cell {
    width: 120px;
    text-align: center;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.table-more-info-link {
    font-size: 0.8rem;
    color: var(--brand-amber);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.table-more-info-link:hover {
    background: var(--brand-light);
    color: var(--brand-navy);
    text-decoration: underline;
}

.table-remove-btn {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.table-remove-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Enhanced clickable elements in table view */
.book-table-cover-link {
    display: block;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    overflow: hidden;
}

.book-table-cover-link:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.book-table-title-link {
    color: var(--brand-navy);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: block;
    padding: 0.25rem;
    border-radius: 0.25rem;
    line-height: 1.3;
}

.book-table-title-link:hover {
    color: var(--brand-amber);
    background: rgba(212, 148, 30, 0.1);
    text-decoration: none;
    transform: scale(1.02);
}

/* Table comment preview styling */
.table-comment-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--brand-border);
    border-radius: 0.375rem;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.table-comment-preview:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--brand-amber);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.table-comment-preview .comment-preview-text {
    font-size: 0.7rem;
    margin: 0 0 0.25rem 0;
}

.table-comment-preview .comment-preview-author {
    font-size: 0.65rem;
    margin: 0;
}

/* Enhanced table action buttons */
.table-comment-btn,
.table-add-to-shelf-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.table-comment-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: 1px solid #17a2b8;
    box-shadow: 0 1px 3px rgba(23, 162, 184, 0.2);
}

.table-comment-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    border-color: #117a8b;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
    transform: translateY(-1px);
}

.table-add-to-shelf-btn {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    color: var(--brand-navy);
    border: 1px solid var(--brand-amber);
    box-shadow: 0 1px 3px rgba(212, 148, 30, 0.2);
}

.table-add-to-shelf-btn:hover {
    background: linear-gradient(135deg, #c08419 0%, #d49520 100%);
    border-color: #c08419;
    box-shadow: 0 2px 6px rgba(212, 148, 30, 0.3);
    transform: translateY(-1px);
}

/* Mobile Responsive for Table */
@media (max-width: 768px) {
    .book-table {
        font-size: 0.85rem;
    }
    
    .book-table-header th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .book-table-row td {
        padding: 0.75rem 0.5rem;
    }
    
    .description-cell {
        display: none; /* Hide description on mobile */
    }
    
    .cover-header:nth-child(4),
    .book-table-header th:nth-child(4) {
        display: none; /* Hide description header on mobile */
    }
    
    .vote-btn-small {
        min-width: 32px;
        min-height: 32px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .table-comment-btn,
    .table-add-to-shelf-btn {
        min-width: 28px;
        min-height: 28px;
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }
    
    .book-table-title-link {
        padding: 0.125rem;
        font-size: 0.85rem;
    }
    
    .table-comment-preview {
        padding: 0.375rem;
        margin-top: 0.375rem;
    }
    
    .table-comment-preview .comment-preview-text {
        font-size: 0.65rem;
    }
    
    .table-comment-preview .comment-preview-author {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .author-cell {
        display: none; /* Hide author on very small screens */
    }
    
    .book-table-header th:nth-child(3) {
        display: none; /* Hide author header on very small screens */
    }
    
    .title-cell {
        min-width: 120px;
    }
    
    .table-actions {
        gap: 0.125rem;
    }
    
    .table-comment-btn,
    .table-add-to-shelf-btn {
        min-width: 24px;
        min-height: 24px;
        padding: 0.125rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .book-table-title-link {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .table-comment-preview {
        padding: 0.25rem;
        margin-top: 0.25rem;
    }
}

/* ===== LOGIN PAGE STYLES ===== */

.login-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
}

.login-card {
    background: var(--brand-white);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--brand-border);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.login-subtitle {
    color: var(--brand-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.login-form {
    margin-bottom: 2rem;
}

.login-fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.login-fieldset label {
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 0.5rem;
    display: block;
}

.login-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: var(--brand-white);
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.1);
}

.login-btn-primary {
    width: 100%;
    background: var(--brand-amber);
    color: var(--brand-navy);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.login-btn-primary:hover {
    background: #c08419;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 148, 30, 0.3);
}

.login-help {
    border-top: 1px solid var(--brand-border);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--brand-muted);
}

.login-help p {
    margin: 0.5rem 0;
}

.login-help-link {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 500;
}

.login-help-link:hover {
    text-decoration: underline;
    color: var(--brand-navy);
}

/* Mobile responsive for login */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
        min-height: calc(100vh - 100px);
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 0.75rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    .login-logo {
        width: 60px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-input {
        padding: 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .login-btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== UNIVERSAL FOOTER STYLES ===== */

.universal-footer {
    background: #333;
    color: white;
    padding: 0.75rem 0;
    margin-top: auto;
    border-top: 1px solid var(--brand-border);
}

.universal-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
}

.footer-left {
    flex: 1;
    text-align: center;
}

.footer-text {
    color: #ccc;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-text a {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.social-icon {
    color: var(--brand-amber);
    font-size: 1.4rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 0.25rem;
}

.social-icon:hover {
    color: var(--brand-white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-btn {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(212, 148, 30, 0.2);
}

.contact-btn:hover {
    background: #c08419;
    color: var(--brand-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 148, 30, 0.3);
}

/* ===== CONTACT MODAL STYLES ===== */

/* Modal overlay */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

/* Modal dialog container */
.contact-modal-dialog {
    background: var(--brand-white);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--brand-border);
    animation: slideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

/* Modal header */
.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid var(--brand-border);
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
    flex-shrink: 0;
}

.contact-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-modal-close {
    background: var(--brand-white);
    border: 2px solid var(--brand-border);
    color: var(--brand-muted);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-modal-close:hover {
    background: #fee;
    border-color: #dc3545;
    color: #dc3545;
    transform: scale(1.05);
}

/* Modal body */
.contact-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 200px); /* Reserve space for header and footer */
}

/* Modal footer */
.contact-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--brand-border);
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
    flex-shrink: 0;
}

/* Contact form styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form-label {
    font-weight: 600;
    color: var(--brand-text);
    font-size: 0.95rem;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: var(--brand-white);
    box-sizing: border-box;
    font-family: var(--font-primary);
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.1);
}

.contact-form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.contact-form-submit {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(212, 148, 30, 0.2);
}

.contact-form-submit:hover {
    background: #c08419;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 148, 30, 0.3);
}

.contact-form-submit:disabled {
    background: var(--brand-light);
    color: var(--brand-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Contact form success/error states */
.contact-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e8 100%);
    border: 2px solid #28a745;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: #155724;
    animation: slideIn 0.4s ease-out;
}

.contact-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #155724;
}

.contact-success-text {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

.contact-error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: #721c24;
    animation: slideIn 0.4s ease-out;
}

.contact-error-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #721c24;
}

.contact-error-text {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
}

/* Loading state for contact form */
.contact-form.htmx-request .contact-form-submit {
    position: relative;
    pointer-events: none;
}

.contact-form.htmx-request .contact-form-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile responsive for contact modal */
@media (max-width: 768px) {
    .contact-modal-overlay {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .contact-modal-dialog {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 0.75rem;
    }
    
    .contact-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .contact-modal-title {
        font-size: 1.5rem;
    }
    
    .contact-modal-close {
        min-width: 40px;
        min-height: 40px;
        padding: 0.5rem;
    }
    
    .contact-modal-body {
        padding: 1.5rem;
    }
    
    .contact-form-input,
    .contact-form-textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .contact-form-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-success-title,
    .contact-error-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .contact-success-text,
    .contact-error-text {
        font-size: 1rem;
    }
    
    /* Footer mobile adjustments */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        min-height: auto;
    }
    
    .footer-left {
        text-align: center;
    }
    
    .footer-right {
        gap: 0.75rem;
    }
    
    .social-icon {
        font-size: 1.25rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .contact-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .contact-modal-overlay {
        padding: 0.5rem;
        padding-top: 1rem;
    }
    
    .contact-modal-dialog {
        max-height: 98vh;
        border-radius: 0.5rem;
    }
    
    .contact-modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .contact-modal-title {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
    
    .contact-modal-close {
        min-width: 36px;
        min-height: 36px;
        padding: 0.4rem;
        font-size: 1rem;
    }
    
    .contact-modal-body {
        padding: 1rem;
    }
    
    .contact-form-group {
        gap: 0.4rem;
    }
    
    .contact-form-label {
        font-size: 0.9rem;
    }
    
    .contact-form-input,
    .contact-form-textarea {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .contact-form-textarea {
        min-height: 100px;
    }
    
    .contact-form-submit {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .contact-success-message,
    .contact-error-message {
        padding: 1.5rem;
    }
    
    .contact-success-title,
    .contact-error-title {
        font-size: 1.1rem;
    }
    
    .contact-success-text,
    .contact-error-text {
        font-size: 0.95rem;
    }
    
    /* Footer mobile adjustments */
    .universal-footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-text {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-social {
        gap: 0.5rem;
        margin: 0.75rem 0;
    }
    
    .social-icon {
        font-size: 1.25rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .contact-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
        min-height: 36px;
        gap: 0.375rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* ===== USER PROFILE PAGE STYLES ===== */

.profile-header-card {
    background: var(--brand-light);
    border: 1px solid var(--brand-border);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 0.5rem;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-border);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid var(--brand-border);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.profile-handle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-handle {
    font-size: 1.2rem;
    color: var(--brand-muted);
    margin: 0;
}

.profile-bluesky-link {
    color: #4a90a4;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.profile-bluesky-link:hover {
    color: var(--brand-amber);
    background: var(--brand-light);
    transform: scale(1.1);
}

.profile-bluesky-link i {
    font-size: 1.2rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-stat {
    font-size: 0.9rem;
    color: var(--brand-text);
    background: var(--brand-white);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--brand-border);
}

/* User Shelves Section */
.user-shelves-section {
    margin-bottom: 3rem;
}

.user-shelves-section h3 {
    color: var(--brand-navy);
    margin-bottom: 1.5rem;
}

.user-shelves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* User Activity Section */
.user-activity-section {
    margin-bottom: 3rem;
}

.user-activity-section h3 {
    color: var(--brand-navy);
    margin-bottom: 1.5rem;
}

.user-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-activity-card {
    background: var(--brand-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--brand-border);
    transition: box-shadow 0.2s ease;
}

.user-activity-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-activity-content {
    margin-bottom: 1rem;
}

.user-activity-action {
    margin: 0 0 1rem 0;
    color: var(--brand-muted);
    font-size: 0.95rem;
}

.user-activity-timestamp {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin: 0;
}

/* Activity User Link */
.activity-user-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.activity-user-link:hover {
    color: var(--brand-amber);
}

/* ===== USER ATTRIBUTION STYLES ===== */

/* Book Card User Attribution - Enhanced visibility */
.book-added-by {
    font-size: 0.7rem;
    color: var(--brand-muted);
    margin-top: 0.5rem;
    text-align: center;
}

.book-added-by-link {
    color: #4a90a4; /* Subtle blue-tinted color to suggest linkability */
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: pointer;
}

.book-added-by-link:hover {
    color: var(--brand-amber);
    text-decoration: underline;
    transform: scale(1.02);
}

/* Clickable Book Title Styles */
.book-title-link {
    color: var(--brand-navy);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.book-title-link:hover {
    color: var(--brand-amber);
    background: rgba(212, 148, 30, 0.1);
    text-decoration: none;
    transform: scale(1.02);
}

.book-title-link:active {
    transform: scale(0.98);
}

/* Comment Preview Styles */
.comment-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.comment-preview:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--brand-amber);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-preview-text {
    color: var(--brand-text);
    font-style: italic;
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.comment-preview-author {
    color: var(--brand-muted);
    font-size: 0.7rem;
    margin: 0;
    text-align: right;
    font-weight: 600;
}

/* Enhanced card heights for consistent grid alignment */
.book-card.interactive-book {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px; /* Ensure consistent minimum height */
}

.book-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Table view user attribution */
.book-added-by-table {
    font-size: 0.75rem;
    color: var(--brand-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Member Card User Links - Enhanced visibility while maintaining design */
.member-name-link {
    color: #4a90a4; /* Subtle blue-tinted color to suggest linkability */
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.member-name-link:hover {
    color: var(--brand-amber);
    text-decoration: underline;
    transform: scale(1.02);
}

.member-handle-link {
    color: #5a9bb0; /* Slightly lighter blue for handles */
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.member-handle-link:hover {
    color: var(--brand-amber);
    text-decoration: underline;
    transform: scale(1.02);
}

/* Activity Feed User Links - Enhanced visibility */
.activity-user-link {
    color: #4a90a4; /* Consistent blue-tinted color */
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.activity-user-link:hover {
    color: var(--brand-amber);
    text-decoration: underline;
    transform: scale(1.02);
}

/* ===== NETWORK ACTIVITY PREVIEW STYLES ===== */

/* Main preview container */
.network-preview-card {
    background: var(--brand-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--brand-border);
    margin-bottom: 2rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--brand-border);
}

.preview-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin: 0;
    font-family: var(--font-heading);
}

.preview-view-all {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.preview-view-all:hover {
    color: var(--brand-navy);
    background: var(--brand-light);
    text-decoration: none;
    transform: translateX(2px);
}

/* Activity list container */
.preview-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Compact activity cards */
.compact-activity-card {
    background: var(--brand-light);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--brand-border);
    transition: all 0.2s ease;
    position: relative;
}

.compact-activity-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.compact-activity-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.compact-activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--brand-border);
}

.compact-activity-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid var(--brand-border);
    color: var(--brand-white);
}

.compact-activity-content {
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.compact-activity-user {
    font-weight: 600;
    color: var(--brand-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.compact-activity-action {
    color: var(--brand-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.compact-activity-link {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.compact-activity-link:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}

.compact-activity-book-title {
    font-weight: 600;
    color: var(--brand-navy);
}

.compact-activity-time {
    font-size: 0.75rem;
    color: var(--brand-muted);
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--brand-white);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--brand-border);
}

/* Empty state for preview */
.preview-empty-content {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--brand-light);
    border-radius: 0.5rem;
    border: 2px dashed var(--brand-border);
}

.preview-empty-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--brand-navy);
}

.preview-empty-suggestion {
    font-size: 0.9rem;
    color: var(--brand-muted);
    margin: 0;
}

/* Mobile responsive for network preview */
@media (max-width: 768px) {
    .network-preview-card {
        padding: 1rem;
        margin: 0 -1rem 2rem -1rem;
        border-radius: 0;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .preview-view-all {
        align-self: flex-end;
        font-size: 0.85rem;
    }
    
    .compact-activity-time {
        position: static;
        margin-top: 0.5rem;
        align-self: flex-start;
        font-size: 0.7rem;
    }
    
    .compact-activity-main {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .compact-activity-avatar,
    .compact-activity-avatar-placeholder {
        width: 32px;
        height: 32px;
        align-self: flex-start;
    }
    
    .preview-empty-content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .preview-title {
        font-size: 1.1rem;
    }
    
    .compact-activity-card {
        padding: 0.75rem;
    }
    
    .compact-activity-user {
        font-size: 0.85rem;
    }
    
    .compact-activity-action {
        font-size: 0.8rem;
    }
    
    .preview-view-all {
        font-size: 0.8rem;
    }
}

/* ===== BACKGROUND LOADING STYLES ===== */

/* Loading container for network activity */
.preview-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--brand-light);
    border-radius: 0.5rem;
    border: 2px dashed var(--brand-border);
    min-height: 120px;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Enhanced loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--brand-border);
    border-top: 3px solid var(--brand-amber);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--brand-amber);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s ease-in-out infinite;
}

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

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

.loading-text {
    font-size: 1rem;
    color: var(--brand-navy);
    font-weight: 500;
    margin: 0;
    text-align: center;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Error state styles */
.preview-error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #fff3cd;
    border-radius: 0.5rem;
    border: 2px solid #ffc107;
    min-height: 120px;
    text-align: center;
}

.error-text {
    font-size: 1rem;
    color: #856404;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.retry-btn {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-btn:hover {
    background: #c08419;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 148, 30, 0.3);
}

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

.retry-btn.secondary:hover {
    background: var(--brand-amber);
    color: var(--brand-navy);
}

/* Loading states for HTMX requests */
.htmx-request .loading-spinner {
    animation-duration: 0.8s;
}

.htmx-request .loading-text {
    animation-duration: 1.5s;
}

/* Mobile responsive for loading states */
@media (max-width: 768px) {
    .preview-loading-container,
    .preview-error-content {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }
    
    .loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
    
    .loading-spinner::after {
        width: 6px;
        height: 6px;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
    
    .error-text {
        font-size: 0.9rem;
    }
    
    .retry-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .loading-spinner {
        width: 28px;
        height: 28px;
    }
    
    .loading-text {
        font-size: 0.85rem;
    }
    
    .error-text {
        font-size: 0.85rem;
    }
    
    .retry-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ===== SHARE MODAL STYLES ===== */

/* Modal overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal dialog container */
.share-modal-dialog {
    background: var(--brand-white);
    border-radius: 1rem;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--brand-border);
    animation: slideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

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

/* Modal header */
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid var(--brand-border);
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
    flex-shrink: 0;
}

.share-modal-title-section {
    flex: 1;
    margin-right: 2rem;
}

.share-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.2;
}

.share-modal-privacy {
    font-size: 1rem;
    color: var(--brand-muted);
    margin: 0;
    font-weight: 500;
}

.share-modal-close {
    background: var(--brand-white);
    border: 2px solid var(--brand-border);
    color: var(--brand-muted);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 2%;
}

.share-modal-close:hover {
    background: #fee;
    border-color: #dc3545;
    color: #dc3545;
    transform: scale(1.05);
}

/* Modal body */
.share-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Share options section */
.share-options-section {
    flex-shrink: 0;
}

.share-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin: 0 0 0.75rem 0;
    font-family: var(--font-heading);
}

.share-section-subtitle {
    font-size: 1rem;
    color: var(--brand-muted);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

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

.share-type-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--brand-white);
    position: relative;
}

.share-type-option:hover {
    border-color: var(--brand-amber);
    background: linear-gradient(135deg, #fff8e1 0%, var(--brand-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 148, 30, 0.15);
}

.share-type-option:has(input:checked) {
    border-color: var(--brand-amber);
    background: linear-gradient(135deg, #fff8e1 0%, var(--brand-light) 100%);
    box-shadow: 0 4px 16px rgba(212, 148, 30, 0.25);
}

.share-type-option input[type="radio"] {
    margin: 0;
    margin-top: 0.25rem;
    transform: scale(1.2);
    accent-color: var(--brand-amber);
}

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

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

.share-option-header strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-text);
}

.share-option-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.share-option-description {
    font-size: 0.95rem;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.5;
}

/* Preview section */
.share-preview-section {
    flex: 1;
    min-height: auto;
}

.share-preview-container {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.share-preview-placeholder {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--brand-muted);
    background: var(--brand-light);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px dashed var(--brand-border);
    text-align: center;
    font-style: italic;
}

.share-preview-placeholder i {
    font-size: 1.25rem;
    color: var(--brand-amber);
}

/* Enhanced Share Preview Styles */
.share-preview-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--brand-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.share-preview-card.enhanced {
    border-color: var(--brand-amber);
    box-shadow: 0 6px 20px rgba(212, 148, 30, 0.15);
}

/* Enhanced header section */
.share-preview-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--brand-border);
}

.share-preview-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.share-preview-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0;
    font-family: var(--font-heading);
}

.share-preview-description {
    font-size: 0.95rem;
    color: var(--brand-text);
    margin: 0;
    line-height: 1.5;
    background: var(--brand-white);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--brand-border);
    font-weight: 500;
}

/* Enhanced message section */
.share-preview-content {
    margin-bottom: 1.5rem;
}

.share-preview-label-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.share-preview-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin: 0;
}

/* Message card styling */
.share-preview-message-card {
    background: var(--brand-white);
    border: 2px solid var(--brand-amber);
    border-radius: 0.75rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(212, 148, 30, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-preview-message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 148, 30, 0.3);
    border-color: #c08419;
}

.share-preview-message-content {
    padding: 1.25rem;
}

.message-type-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--brand-border);
}

.message-type-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    border-radius: 50%;
    color: var(--brand-navy);
    font-weight: bold;
}

.message-type-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-preview-message-text {
    font-size: 0.95rem;
    color: var(--brand-text);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    border: 1px solid var(--brand-border);
    font-family: var(--font-primary);
    word-break: break-word;
    cursor: text;
    user-select: all;
    transition: all 0.2s ease;
}

.share-preview-message-text:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--brand-amber);
}

.message-copy-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--brand-muted);
    background: var(--brand-light);
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--brand-border);
    font-style: italic;
    transition: all 0.2s ease;
}

.share-preview-message-card:hover .message-copy-hint {
    color: var(--brand-amber);
    background: #fff8e1;
    border-color: var(--brand-amber);
}

/* Enhanced generate button */
.generate-link-btn.enhanced-primary {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    color: var(--brand-navy);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-shadow: 0 4px 16px rgba(212, 148, 30, 0.3);
    text-transform: none;
    letter-spacing: 0.3px;
}

.generate-link-btn.enhanced-primary:hover {
    background: linear-gradient(135deg, #c08419 0%, #d49520 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 148, 30, 0.4);
}

.generate-link-btn.enhanced-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(212, 148, 30, 0.3);
}

.generate-link-btn.enhanced-primary:disabled {
    background: var(--brand-light);
    color: var(--brand-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Share preview section */
.share-preview-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--brand-light);
    border-radius: 0.5rem;
    border: 1px solid var(--brand-border);
}

.share-preview-privacy-note {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--brand-white);
    border-radius: 0.25rem;
    border: 1px solid var(--brand-border);
    font-style: italic;
}

/* Mobile responsive for share modal */
@media (max-width: 768px) {
    .share-modal-overlay {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .share-modal-dialog {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 0.75rem;
    }
    
    .share-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .share-modal-title-section {
        margin-right: 0;
        width: 100%;
    }
    
    .share-modal-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .share-modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        min-width: 40px;
        min-height: 40px;
        padding: 0.5rem;
    }
    
    .share-modal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .share-section-title {
        font-size: 1.1rem;
    }
    
    .share-section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .share-options-grid {
        gap: 0.75rem;
    }
    
    .share-type-option {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .share-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .share-option-header strong {
        font-size: 1rem;
    }
    
    .share-option-icon {
        font-size: 1.25rem;
        align-self: flex-end;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .share-option-description {
        font-size: 0.9rem;
    }
    
    .share-preview-placeholder {
        padding: 1.5rem;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Enhanced share preview mobile styles */
    .share-preview-card.enhanced {
        padding: 1.25rem;
        margin: 0;
    }
    
    .share-preview-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .share-preview-title {
        font-size: 1.1rem;
    }
    
    .share-preview-description {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .share-preview-label-container {
        margin-bottom: 1rem;
    }
    
    .share-preview-label {
        font-size: 0.95rem;
    }
    
    .message-type-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .message-type-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .message-type-label {
        font-size: 0.85rem;
    }
    
    .share-preview-message-text {
        font-size: 0.9rem;
        padding: 1rem;
        line-height: 1.6;
    }
    
    .message-copy-hint {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .generate-link-btn.enhanced-primary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .share-modal-overlay {
        padding: 0.5rem;
        padding-top: 1rem;
    }
    
    .share-modal-dialog {
        max-height: 98vh;
        border-radius: 0.5rem;
    }
    
    .share-modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .share-modal-title {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
    
    .share-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        min-width: 36px;
        min-height: 36px;
        padding: 0.4rem;
        font-size: 1rem;
    }
    
    .share-modal-body {
        padding: 1rem;
        gap: 1.25rem;
    }
    
    .share-section-title {
        font-size: 1rem;
    }
    
    .share-section-subtitle {
        font-size: 0.85rem;
    }
    
    .share-type-option {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .share-option-header strong {
        font-size: 0.95rem;
    }
    
    .share-option-icon {
        font-size: 1.1rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .share-option-description {
        font-size: 0.85rem;
    }
    
    .share-preview-placeholder {
        padding: 1.25rem;
        font-size: 0.85rem;
    }
    
    .share-preview-card.enhanced {
        padding: 1rem;
    }
    
    .share-preview-title {
        font-size: 1rem;
    }
    
    .share-preview-description {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .share-preview-label {
        font-size: 0.9rem;
    }
    
    .message-type-header {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    
    .message-type-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .message-type-label {
        font-size: 0.8rem;
    }
    
    .share-preview-message-text {
        font-size: 0.85rem;
        padding: 0.875rem;
        line-height: 1.5;
    }
    
    .message-copy-hint {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .generate-link-btn.enhanced-primary {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Mobile responsive for user profile */
@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .profile-handle {
        font-size: 1.1rem;
    }
    
    .profile-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .user-shelves-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-header-card {
        padding: 1.5rem;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-handle {
        font-size: 1rem;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .profile-stat {
        text-align: center;
    }
}

/* ===== CONTACT ICON BUTTON STYLES ===== */

.contact-icon-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.contact-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

/* ===== PAGINATION STYLES ===== */

/* Pagination container wrapper */
.pagination-container {
    width: 100%;
    margin: 2rem 0;
}

/* Screen reader context for accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Core pagination container */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

/* Base pagination item styles */
.pagination a,
.pagination .current-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 2px solid var(--brand-border);
    background: var(--brand-white);
    color: var(--brand-navy);
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Regular page links */
.pagination a {
    background: var(--brand-white);
    color: var(--brand-navy);
    border-color: var(--brand-border);
}

.pagination a:hover {
    background: var(--brand-light);
    border-color: var(--brand-amber);
    color: var(--brand-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 148, 30, 0.15);
}

.pagination a:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 148, 30, 0.2);
}

/* Current page styling */
.pagination .current-page {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    color: var(--brand-navy);
    border-color: var(--brand-amber);
    box-shadow: 0 2px 8px rgba(212, 148, 30, 0.2);
    font-weight: 600;
    transform: scale(1.05);
    z-index: 1;
}

/* Previous/Next button enhancements */
.pagination a[href*="previous"],
.pagination a[href*="next"] {
    font-weight: 600;
    background: var(--brand-white);
    border-color: var(--brand-amber);
    color: var(--brand-amber);
    min-width: 52px;
}

.pagination a[href*="previous"]:hover,
.pagination a[href*="next"]:hover {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border-color: var(--brand-amber);
    box-shadow: 0 4px 12px rgba(212, 148, 30, 0.25);
}

/* Arrow indicators for Prev/Next */
.pagination a[href*="previous"]::before {
    content: "← ";
    font-weight: bold;
}

.pagination a[href*="next"]::after {
    content: " →";
    font-weight: bold;
}

/* Ellipsis styling */
.pagination .pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem 0.5rem;
    color: var(--brand-muted);
    font-weight: 600;
    user-select: none;
    background: transparent;
    border: none;
}

/* Loading state for HTMX requests */
.htmx-request .pagination {
    opacity: 0.7;
    pointer-events: none;
}

.htmx-request .pagination::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--brand-amber);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Disabled state */
.pagination a:disabled,
.pagination a.disabled {
    background: var(--brand-light);
    color: var(--brand-muted);
    border-color: var(--brand-border);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.pagination a:disabled:hover,
.pagination a.disabled:hover {
    background: var(--brand-light);
    color: var(--brand-muted);
    border-color: var(--brand-border);
    transform: none;
    box-shadow: none;
}

/* ===== MOBILE RESPONSIVE PAGINATION ===== */

@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
        margin: 1.5rem 0;
    }

    .pagination a,
    .pagination .current-page {
        min-width: 48px;
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .pagination a[href*="previous"],
    .pagination a[href*="next"] {
        min-width: 56px;
        font-size: 0.85rem;
    }

    /* Simplify text for mobile */
    .pagination a[href*="previous"] {
        font-size: 0;
    }

    .pagination a[href*="previous"]::before {
        content: "←";
        font-size: 1.2rem;
    }

    .pagination a[href*="next"] {
        font-size: 0;
    }

    .pagination a[href*="next"]::after {
        content: "→";
        font-size: 1.2rem;
    }

    /* Hide some page numbers on very small screens */
    .pagination a:nth-child(n+6):not([href*="previous"]):not([href*="next"]):not(.current-page) {
        display: none;
    }

    .pagination .pagination-ellipsis {
        min-width: 32px;
        min-height: 48px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.125rem;
        margin: 1rem 0;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .pagination a,
    .pagination .current-page {
        min-width: 40px;
        min-height: 40px;
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
        flex: 1;
    }

    .pagination a[href*="previous"],
    .pagination a[href*="next"] {
        flex: 0 0 auto;
        min-width: 48px;
    }

    /* Hide most page numbers on very small screens, show only current + prev/next */
    .pagination a:not([href*="previous"]):not([href*="next"]):not(.current-page) {
        display: none;
    }

    .pagination .current-page {
        flex: 0 0 auto;
        transform: scale(1.1);
        font-size: 1rem;
        font-weight: 700;
    }

    .pagination .pagination-ellipsis {
        display: none;
    }
}

/* ===== DESKTOP ENHANCEMENTS ===== */

@media (min-width: 769px) {
    .pagination {
        gap: 0.75rem;
        margin: 2.5rem 0;
    }

    .pagination a,
    .pagination .current-page {
        min-width: 48px;
        min-height: 48px;
        padding: 0.875rem 1.125rem;
        font-size: 1rem;
    }

    .pagination a[href*="previous"],
    .pagination a[href*="next"] {
        min-width: 64px;
        font-weight: 600;
    }

    .pagination .current-page {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(212, 148, 30, 0.3);
    }

    .pagination a:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(212, 148, 30, 0.2);
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

.pagination a:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.3);
    transform: translateY(-1px);
}

.pagination a:focus:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.3), 0 6px 20px rgba(212, 148, 30, 0.2);
}

/* Screen reader improvements */
.pagination .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pagination a {
        border-width: 3px;
    }

    .pagination .current-page {
        border-color: var(--brand-navy);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pagination a,
    .pagination .current-page {
        transition: none;
    }

    .pagination a:hover {
        transform: none;
    }

    .pagination a:active {
        transform: none;
    }

    .htmx-request .pagination::after {
        animation: none;
    }
}

/* ===== ENHANCED CONTACT FORM STYLES ===== */

.contact-modal-subtitle {
    color: var(--brand-muted);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--brand-white);
    box-sizing: border-box;
    font-family: var(--font-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 4px rgba(212, 148, 30, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.contact-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Contact form container */
.contact-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Response area for success/error messages */
#contact-form-response {
    min-height: 0;
    transition: all 0.3s ease;
}

/* Remove old form actions styles since actions are now in modal footer */
.contact-form-actions {
    display: none; /* Hide since actions are now in modal footer */
}

.contact-btn-primary {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    color: var(--brand-navy);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(212, 148, 30, 0.3);
    letter-spacing: 0.3px;
}

.contact-btn-primary:hover {
    background: linear-gradient(135deg, #c08419 0%, #d49520 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 148, 30, 0.4);
}

.contact-btn-secondary {
    background: var(--brand-white);
    color: var(--brand-muted);
    border: 2px solid var(--brand-border);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-btn-secondary:hover {
    background: var(--brand-light);
    border-color: var(--brand-amber);
    color: var(--brand-text);
    transform: translateY(-1px);
}

.contact-success-container,
.contact-error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem;
}

.contact-success-content,
.contact-error-content {
    text-align: center;
    max-width: 400px;
}

/* Mobile responsive for enhanced contact form */
@media (max-width: 768px) {
    .contact-modal-body {
        padding: 1.5rem;
        max-height: calc(95vh - 180px); /* Adjust for mobile */
    }
    
    .contact-modal-footer {
        flex-direction: column-reverse;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
    }
    
    .contact-btn-primary,
    .contact-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-input,
    .contact-textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 0.5rem;
    }
    
    .contact-textarea {
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .contact-modal-body {
        padding: 1rem;
        max-height: calc(98vh - 160px); /* Adjust for very small screens */
    }
    
    .contact-modal-footer {
        padding: 1rem;
    }
    
    .contact-btn-primary,
    .contact-btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 0.5rem;
    }
    
    .contact-input,
    .contact-textarea {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .contact-textarea {
        min-height: 100px;
    }
}

/* ===== SELF-JOIN LABEL STYLING ===== */

/* Container for the hierarchical label structure */
.self-join-label-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

/* Primary label styling for "Open Collaboration" */
.self-join-primary-label {
    font-weight: 600;
    color: var(--brand-navy);
    font-size: 0.9rem;
}

/* Secondary label styling for explanatory text */
.self-join-secondary-label {
    font-size: 0.8rem;
    color: var(--brand-muted, #6b7280);
    font-style: italic;
    line-height: 1.2;
}

/* ===== PRIVACY FORM STYLING ===== */

/* Privacy explanation text */
.privacy-explanation {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 1rem 0;
    font-size: 0.85rem;
    color: #856404;
    font-style: italic;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.1);
}

/* Disabled select options */
select option:disabled {
    color: var(--brand-muted);
    background: var(--brand-light);
    font-style: italic;
}

/* Enhanced select styling for better disabled option visibility */
select {
    background: var(--brand-white);
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

select:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.1);
}

/* Mobile responsive for privacy explanation */
@media (max-width: 768px) {
    .privacy-explanation {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        margin: 0.4rem 0 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .privacy-explanation {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        margin: 0.3rem 0 0.7rem 0;
        border-radius: 0.4rem;
    }
}

/* ===== ADMIN DASHBOARD STYLES ===== */

.admin-dashboard {
    padding: 2rem 0;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-stats-card {
    background: linear-gradient(135deg, var(--brand-white) 0%, #f8f9fa 100%);
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.admin-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-amber);
}

.admin-stats-card:hover::before {
    opacity: 1;
}

.admin-stats-card-icon {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    color: var(--brand-navy);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 148, 30, 0.25);
    transition: all 0.3s ease;
}

.admin-stats-card:hover .admin-stats-card-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 148, 30, 0.35);
}

.admin-stats-card-info {
    flex: 1;
}

.admin-stats-card-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 0.25rem 0;
    font-family: var(--font-heading);
    line-height: 1;
}

.admin-stats-card-title {
    font-size: 1rem;
    color: var(--brand-muted);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* ===== ADMIN ACTIVITY SECTION STYLES ===== */

.admin-activity-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.admin-activity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 50%, #28a745 100%);
}

.admin-activity-section h2 {
    color: var(--brand-navy);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-activity-section h2::before {
    content: '📊';
    font-size: 1.5rem;
}

.activity-section-subtitle {
    color: var(--brand-muted);
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    font-weight: 500;
    line-height: 1.4;
}

/* Activity Period Sections */
.activity-period-section {
    margin-bottom: 2.5rem;
}

.activity-period-section:last-child {
    margin-bottom: 0;
}

.activity-period-title {
    color: var(--brand-navy);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-light) 100%);
    border-radius: 0.75rem;
    border: 1px solid var(--brand-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.activity-period-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--brand-amber) 0%, #28a745 100%);
    border-radius: 0 0.75rem 0.75rem 0;
}

/* Activity Cards Grid */
.admin-activity-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Individual Activity Cards */
.admin-activity-card {
    background: linear-gradient(135deg, var(--brand-white) 0%, #f8f9fa 100%);
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.admin-activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--brand-amber) 0%, #28a745 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-amber);
}

.admin-activity-card:hover::before {
    opacity: 1;
}

/* Activity Card Icons */
.admin-activity-card-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.admin-activity-card:hover .admin-activity-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

/* Specific icon colors for different metrics */
.admin-activity-card:nth-child(1) .admin-activity-card-icon {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.admin-activity-card:nth-child(2) .admin-activity-card-icon {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
    color: #f57c00;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.2);
}

.admin-activity-card:nth-child(3) .admin-activity-card-icon {
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%);
    color: #7b1fa2;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.2);
}

.admin-activity-card:nth-child(4) .admin-activity-card-icon {
    background: linear-gradient(135deg, #e0f2f1 0%, #80cbc4 100%);
    color: #00695c;
    box-shadow: 0 4px 12px rgba(0, 105, 92, 0.2);
}

/* Activity Card Content */
.admin-activity-card-info {
    flex: 1;
    min-width: 0;
}

.admin-activity-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 0.25rem 0;
    font-family: var(--font-heading);
    line-height: 1;
}

.admin-activity-card-title {
    font-size: 1rem;
    color: var(--brand-text);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.admin-activity-card-description {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

/* Mobile Responsive for Admin Activity */
@media (max-width: 768px) {
    .admin-activity-section {
        padding: 1.5rem;
        margin: 1.5rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .admin-activity-section h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .activity-section-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .activity-period-section {
        margin-bottom: 2rem;
    }
    
    .activity-period-title {
        font-size: 1.25rem;
        padding: 0.875rem 1.25rem;
        text-align: center;
        justify-content: center;
    }
    
    .admin-activity-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .admin-activity-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .admin-activity-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .admin-activity-card-value {
        font-size: 1.75rem;
    }
    
    .admin-activity-card-title {
        font-size: 0.85rem;
    }
    
    .admin-activity-card-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .admin-activity-section {
        padding: 1.25rem;
    }
    
    .admin-activity-section h2 {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .activity-section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .activity-period-title {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .admin-activity-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-activity-card {
        padding: 1rem;
        gap: 0.875rem;
        flex-direction: column;
        text-align: center;
    }
    
    .admin-activity-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .admin-activity-card-value {
        font-size: 1.5rem;
    }
    
    .admin-activity-card-title {
        font-size: 0.8rem;
    }
    
    .admin-activity-card-description {
        font-size: 0.75rem;
    }
}

/* Enhanced hover effects for desktop */
@media (min-width: 769px) {
    .admin-activity-card:hover .admin-activity-card-value {
        color: var(--brand-amber);
        transform: scale(1.05);
        transition: all 0.3s ease;
    }
    
    .admin-activity-card:hover .admin-activity-card-title {
        color: var(--brand-navy);
        transition: all 0.3s ease;
    }
}

/* Loading states for admin activity */
.admin-activity-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

.admin-activity-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--brand-border);
    border-top: 3px solid var(--brand-amber);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error state for admin activity */
.admin-activity-section.error {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

.admin-activity-section.error h2 {
    color: #856404;
}

.admin-activity-section.error .activity-section-subtitle {
    color: #856404;
}

/* ===== BOOK DETAIL PAGE STYLES ===== */

/* Book detail header */
.book-navigation {
    margin-bottom: 1.5rem;
}

.back-link {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: var(--brand-light);
    color: var(--brand-navy);
    text-decoration: none;
}

.book-detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--brand-light);
    border-radius: 0.75rem;
    border: 1px solid var(--brand-border);
}

.book-detail-cover-container {
    flex-shrink: 0;
}

.book-detail-cover {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.book-detail-cover-placeholder {
    width: 200px;
    height: 300px;
    background: var(--brand-border);
    color: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-radius: 0.5rem;
}

.book-detail-info {
    flex: 1;
}

.book-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.book-detail-author {
    font-size: 1.5rem;
    color: var(--brand-muted);
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.book-detail-description {
    font-size: 1.1rem;
    color: var(--brand-text);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.book-detail-metadata {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-detail-metadata p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--brand-muted);
}

/* Book detail sections */
.book-detail-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--brand-white);
    border-radius: 0.75rem;
    border: 1px solid var(--brand-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.book-detail-section h2 {
    color: var(--brand-navy);
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
}

.book-detail-section h3 {
    color: var(--brand-navy);
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

/* Book shelves list */
.book-shelves-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shelf-item {
    padding: 1rem;
    background: var(--brand-light);
    border-radius: 0.5rem;
    border: 1px solid var(--brand-border);
}

.shelf-link {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.shelf-link:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}

/* Activity filters */
.activity-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.5rem;
    background: var(--brand-white);
    color: var(--brand-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: var(--brand-light);
    border-color: var(--brand-amber);
    color: var(--brand-navy);
    text-decoration: none;
}

.filter-btn.active {
    background: var(--brand-amber);
    color: var(--brand-navy);
    border-color: var(--brand-amber);
    font-weight: 600;
}

/* ===== COMMENT SYSTEM STYLES ===== */

/* Comment form section */
.comment-form-section {
    margin-bottom: 2rem;
}

.comment-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
    background: var(--brand-white);
    box-sizing: border-box;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.15);
    transform: translateY(-1px);
}

.comment-textarea::placeholder {
    color: var(--brand-muted);
    font-style: italic;
}

/* Comments list */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual comment item */
.comment-item {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-amber);
}

/* Comment header with user info */
.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-border);
}

.comment-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-muted);
    color: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--brand-border);
}

.comment-user-info {
    flex: 1;
}

.comment-user-info strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 0.25rem;
}

.comment-handle {
    font-size: 0.9rem;
    color: var(--brand-muted);
    font-weight: 400;
}

/* Comment content */
.comment-content {
    font-size: 1rem;
    color: var(--brand-text);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    word-wrap: break-word;
}

/* Comment metadata */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--brand-muted);
}

.edited-indicator {
    font-style: italic;
    color: var(--brand-muted);
}

/* Activity timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item {
    background: var(--brand-light);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.activity-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-amber);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--brand-border);
}

.activity-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-muted);
    color: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid var(--brand-border);
}

.activity-icon {
    font-size: 1.25rem;
    background: var(--brand-white);
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid var(--brand-border);
}

.activity-text {
    font-size: 1rem;
    color: var(--brand-text);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.activity-text strong {
    color: var(--brand-navy);
    font-weight: 600;
}

.activity-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--brand-muted);
}

.activity-link {
    color: var(--brand-amber);
    text-decoration: none;
    font-weight: 500;
}

.activity-link:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}

/* Mobile responsive for book detail page */
@media (max-width: 768px) {
    .book-detail-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 0 -1rem 2rem -1rem;
        border-radius: 0;
    }
    
    .book-detail-cover,
    .book-detail-cover-placeholder {
        width: 150px;
        height: 225px;
        align-self: center;
    }
    
    .book-detail-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .book-detail-author {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .book-detail-description {
        font-size: 1rem;
        text-align: center;
    }
    
    .book-detail-metadata {
        align-items: center;
        text-align: center;
    }
    
    .book-detail-section {
        padding: 1.5rem;
        margin: 0 -1rem 2rem -1rem;
        border-radius: 0;
    }
    
    .activity-filters {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .comment-textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .comment-item {
        padding: 1.25rem;
    }
    
    .comment-header {
        gap: 0.75rem;
    }
    
    .comment-avatar,
    .comment-avatar-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .comment-user-info strong {
        font-size: 1rem;
    }
    
    .comment-handle {
        font-size: 0.85rem;
    }
    
    .comment-content {
        font-size: 0.95rem;
    }
    
    .activity-item {
        padding: 1rem;
    }
    
    .activity-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .book-detail-cover,
    .book-detail-cover-placeholder {
        width: 120px;
        height: 180px;
    }
    
    .book-detail-title {
        font-size: 1.75rem;
    }
    
    .book-detail-author {
        font-size: 1.1rem;
    }
    
    .book-detail-description {
        font-size: 0.95rem;
    }
    
    .book-detail-section {
        padding: 1.25rem;
    }
    
    .book-detail-section h2 {
        font-size: 1.25rem;
    }
    
    .book-detail-section h3 {
        font-size: 1.1rem;
    }
    
    .activity-filters {
        gap: 0.25rem;
    }
    
    .filter-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .comment-textarea {
        padding: 0.75rem;
        min-height: 100px;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .comment-avatar,
    .comment-avatar-placeholder {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .comment-user-info strong {
        font-size: 0.95rem;
    }
    
    .comment-handle {
        font-size: 0.8rem;
    }
    
    .comment-content {
        font-size: 0.9rem;
    }
    
    .comment-meta {
        font-size: 0.8rem;
    }
    
    .activity-item {
        padding: 0.875rem;
    }
    
    .activity-header {
        gap: 0.5rem;
    }
    
    .activity-avatar,
    .activity-avatar-placeholder {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .activity-icon {
        font-size: 1rem;
        padding: 0.375rem;
    }
    
    .activity-text {
        font-size: 0.9rem;
    }
    
    .activity-meta {
        font-size: 0.8rem;
    }
}

/* Shelf selector dropdown styling */
.shelf-selector-dropdown {
    max-height: 300px;
    overflow-y: auto;
}

.shelf-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.shelf-option:hover {
    background-color: #f5f3f0;
}

.shelf-option:last-child {
    border-bottom: none;
}

.no-shelves-message {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-shelves-message .btn {
    margin-top: 1rem;
}

/* ===== COMMENT MODAL STYLES ===== */

/* Comment modal overlay */
.comment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

/* Comment modal dialog container */
.comment-modal-dialog {
    background: var(--brand-white);
    border-radius: 1rem;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--brand-border);
    animation: slideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

/* Comment modal header */
.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid var(--brand-border);
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
    flex-shrink: 0;
}

.comment-modal-close {
    background: var(--brand-white);
    border: 2px solid var(--brand-border);
    color: var(--brand-muted);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.comment-modal-close:hover {
    background: #fee;
    border-color: #dc3545;
    color: #dc3545;
    transform: scale(1.05);
}

.comment-modal-book-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    margin-right: 2rem;
}

.comment-modal-book-cover {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.comment-modal-book-cover-placeholder {
    width: 80px;
    height: 120px;
    background: var(--brand-border);
    color: var(--brand-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.comment-modal-book-info {
    flex: 1;
    min-width: 0;
}

.comment-modal-book-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    word-wrap: break-word;
}

.comment-modal-book-author {
    font-size: 1.1rem;
    color: var(--brand-muted);
    margin: 0;
    font-style: italic;
}

/* Comment modal body */
.comment-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 200px);
}

.comments-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin: 0 0 1.5rem 0;
    font-family: var(--font-heading);
}

.no-comments-message {
    text-align: center;
    color: var(--brand-muted);
    font-style: italic;
    padding: 2rem;
    background: var(--brand-light);
    border-radius: 0.5rem;
    border: 2px dashed var(--brand-border);
}

/* Comment modal footer */
.comment-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--brand-border);
    background: linear-gradient(135deg, var(--brand-light) 0%, #ffffff 100%);
    flex-shrink: 0;
}

.comment-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-modal-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--brand-border);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    background: var(--brand-white);
    box-sizing: border-box;
}

.comment-modal-textarea:focus {
    outline: none;
    border-color: var(--brand-amber);
    box-shadow: 0 0 0 3px rgba(212, 148, 30, 0.15);
    transform: translateY(-1px);
}

.comment-modal-textarea::placeholder {
    color: var(--brand-muted);
    font-style: italic;
}

.comment-modal-submit-btn {
    background: linear-gradient(135deg, var(--brand-amber) 0%, #e6a429 100%);
    color: var(--brand-navy);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(212, 148, 30, 0.3);
    align-self: flex-end;
}

.comment-modal-submit-btn:hover {
    background: linear-gradient(135deg, #c08419 0%, #d49520 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 148, 30, 0.4);
}

/* Comment auth sections */
.comment-auth-section {
    text-align: center;
    padding: 2rem;
    background: var(--brand-light);
    border-radius: 0.75rem;
    border: 2px dashed var(--brand-border);
}

.comment-auth-message {
    font-size: 1.1rem;
    color: var(--brand-text);
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.comment-auth-btn {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.comment-auth-btn:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(33, 150, 243, 0.4);
    color: white;
    text-decoration: none;
}

.comment-permission-section {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border-radius: 0.75rem;
    border: 2px solid #ffc107;
}

.comment-permission-message {
    font-size: 1.1rem;
    color: #856404;
    margin: 0;
    font-weight: 500;
}

/* Enable comment button */
.action-btn.comment-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-color: #17a2b8;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.25);
    cursor: pointer;
    opacity: 1;
}

.action-btn.comment-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    border-color: #117a8b;
    box-shadow: 0 4px 16px rgba(23, 162, 184, 0.35);
    transform: translateY(-2px);
}

/* Mobile responsive for comment modal */
@media (max-width: 768px) {
    .comment-modal-overlay {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .comment-modal-dialog {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 0.75rem;
    }
    
    .comment-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .comment-modal-book-header {
        margin-right: 0;
        width: 100%;
        gap: 1rem;
    }
    
    .comment-modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        min-width: 40px;
        min-height: 40px;
        padding: 0.5rem;
    }
    
    .comment-modal-book-cover,
    .comment-modal-book-cover-placeholder {
        width: 60px;
        height: 90px;
    }
    
    .comment-modal-book-title {
        font-size: 1.25rem;
    }
    
    .comment-modal-book-author {
        font-size: 1rem;
    }
    
    .comment-modal-body {
        padding: 1.5rem;
        max-height: calc(95vh - 180px);
    }
    
    .comment-modal-footer {
        padding: 1.25rem 1.5rem;
    }
    
    .comment-modal-textarea {
        padding: 0.875rem;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 80px;
    }
    
    .comment-modal-submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        align-self: stretch;
    }
    
    .comment-auth-section,
    .comment-permission-section {
        padding: 1.5rem;
    }
    
    .comment-auth-message,
    .comment-permission-message {
        font-size: 1rem;
    }
    
    .comment-auth-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .comment-modal-overlay {
        padding: 0.5rem;
        padding-top: 1rem;
    }
    
    .comment-modal-dialog {
        max-height: 98vh;
        border-radius: 0.5rem;
    }
    
    .comment-modal-header {
        padding: 1rem 1rem 0.75rem 1rem;
    }
    
    .comment-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        min-width: 36px;
        min-height: 36px;
        padding: 0.4rem;
        font-size: 1rem;
    }
    
    .comment-modal-book-header {
        gap: 0.75rem;
    }
    
    .comment-modal-book-cover,
    .comment-modal-book-cover-placeholder {
        width: 50px;
        height: 75px;
        font-size: 1.5rem;
    }
    
    .comment-modal-book-title {
        font-size: 1.1rem;
    }
    
    .comment-modal-book-author {
        font-size: 0.9rem;
    }
    
    .comment-modal-body {
        padding: 1rem;
        max-height: calc(98vh - 160px);
    }
    
    .comments-section-title {
        font-size: 1.1rem;
    }
    
    .comment-modal-footer {
        padding: 1rem;
    }
    
    .comment-modal-textarea {
        padding: 0.75rem;
        font-size: 16px;
        min-height: 70px;
    }
    
    .comment-modal-submit-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .comment-auth-section,
    .comment-permission-section {
        padding: 1.25rem;
    }
    
    .comment-auth-message,
    .comment-permission-message {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .comment-auth-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}
