    /* Make content fill viewport to push footer to bottom */
    main.container {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 100px);
    }

    /* Profile Header with Currently Reading */
    .profile-header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .profile-header-content.has-reading {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    /* Only show side-by-side on extra large screens (1200px+) */
    @media (min-width: 1200px) {
        .profile-header-content.has-reading {
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 3rem;
        }
    }

    .profile-header-main {
        flex: 0 0 auto;
    }

    /* Override avatar for profile page - with brown border */
    .profile-header-main .profile-avatar {
        width: 110px;
        height: 110px;
        border: 4px solid #8b7355;
        box-shadow: 0 4px 20px rgba(89, 68, 43, 0.3);
    }

    .profile-header-main .profile-avatar i {
        font-size: 2.75rem;
    }

    .profile-bio {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        word-wrap: break-word;
    }

    .profile-music {
        min-width: min(400px, 90vw);
    }

    .profile-currently-reading {
        flex: 0 1 auto;
        max-width: 100%;
        width: 100%;
        padding: 1.25rem;
        background: var(--bg-secondary);
        border: 1px solid var(--color-border);
        border-radius: 16px;
    }

    @media (min-width: 1200px) {
        .profile-header-content.has-reading {
            gap: 4rem;
        }

        .profile-currently-reading {
            max-width: 500px;
            width: auto;
        }
    }

    .currently-reading-header {
        font-size: 0.9rem;
        font-weight: 600;
        color: #a68b6a;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
    }

    .currently-reading-books {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Featured Shelf Scrollable Styles */
    .profile-featured-shelf {
        max-width: 100%;
        width: 100%;
    }

    @media (min-width: 1200px) {
        .profile-featured-shelf {
            max-width: 550px;
            width: auto;
            flex: 1;
        }
    }

    .featured-shelf-count {
        font-weight: 400;
        font-size: 0.8rem;
        color: var(--color-muted);
        margin-left: 0.25rem;
    }

    .featured-shelf-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0 -1.25rem;
        padding: 0 1.25rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(139, 115, 85, 0.3) transparent;
    }

    .featured-shelf-scroll-container::-webkit-scrollbar {
        height: 6px;
    }

    .featured-shelf-scroll-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .featured-shelf-scroll-container::-webkit-scrollbar-thumb {
        background: rgba(139, 115, 85, 0.3);
        border-radius: 3px;
    }

    .featured-shelf-scroll-container::-webkit-scrollbar-thumb:hover {
        background: rgba(139, 115, 85, 0.5);
    }

    .featured-shelf-books {
        display: flex;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

    .featured-book-item {
        flex: 0 0 auto;
        width: 140px;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .featured-book-item .reading-book-cover {
        width: 100%;
        height: 180px;
        min-width: unset;
    }

    .featured-book-item .reading-book-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .featured-book-item .reading-book-title-link {
        font-size: 0.85rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .featured-book-item .reading-book-author {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .featured-book-item .reading-book-links {
        margin-top: 0.25rem;
    }

    .featured-shelf-loader {
        flex: 0 0 auto;
        width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 180px;
    }

    .loader-spinner {
        width: 24px;
        height: 24px;
        border: 2px solid rgba(139, 115, 85, 0.2);
        border-top-color: #a68b6a;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    .featured-book-item.loading {
        opacity: 0;
        animation: fadeIn 0.3s ease forwards;
    }

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

    @media (max-width: 1199.98px) {
        .featured-book-item {
            width: 120px;
        }

        .featured-book-item .reading-book-cover {
            height: 150px;
        }

        /* Keep featured shelf buttons as icons only to prevent overlap */
        .featured-book-item .reading-book-links {
            flex-wrap: wrap;
            gap: 0.35rem;
            justify-content: center;
        }

        .featured-book-item .reading-link {
            width: 32px;
            height: 32px;
            padding: 0;
            font-size: 0.9rem;
            border-radius: 6px;
        }

        .featured-book-item .reading-link .link-text {
            display: none;
        }
    }

    .reading-book-item {
        display: flex;
        gap: 0.75rem;
    }

    .reading-book-cover {
        width: 60px;
        height: 90px;
        min-width: 60px;
        background: var(--bg-card);
        border-radius: 6px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--color-border);
    }

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

    .reading-book-cover i {
        font-size: 1.5rem;
        color: var(--color-muted);
    }

    .reading-book-info {
        flex: 1;
        min-width: 0;
    }

    .reading-book-title {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--color-text);
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .reading-book-title-link {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--color-text);
        line-height: 1.3;
        margin-bottom: 0.25rem;
        text-decoration: none;
        display: block;
        transition: color 0.2s ease;
    }

    .reading-book-title-link:hover {
        color: var(--color-primary);
    }

    .reading-book-author {
        font-size: 0.8rem;
        color: var(--color-muted);
        margin-bottom: 0.5rem;
    }

    .reading-book-progress {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        margin-top: auto;
    }

    .progress-bar-bg {
        flex: 1;
        height: 8px;
        background: rgba(89, 68, 43, 0.2);
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid rgba(89, 68, 43, 0.3);
    }

    .progress-bar-fill {
        height: 100%;
        background: linear-gradient(90deg, #8b7355, #a68b6a);
        border-radius: 4px;
        transition: width 0.3s ease;
    }

    .progress-label {
        font-size: 0.75rem;
        font-weight: 600;
        color: #a68b6a;
        min-width: 35px;
        text-align: right;
    }

    .reading-book-note {
        font-size: 0.75rem;
        font-style: italic;
        color: var(--color-muted);
        line-height: 1.4;
    }

    .reading-book-links {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.4rem;
    }

    .reading-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 4px;
        background: rgba(139, 115, 85, 0.15);
        color: #8b7355;
        font-size: 0.8rem;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .reading-link:hover {
        background: #8b7355;
        color: white;
        transform: translateY(-1px);
    }

    .reading-link-buy {
        background: rgba(46, 125, 50, 0.15);
        color: #2e7d32;
    }

    .reading-link-buy:hover {
        background: #2e7d32;
        color: white;
    }

    .link-text {
        display: none;
    }

    /* Mobile styles for reading links - show text labels below 1200px */
    @media (max-width: 1199.98px) {
        .link-text {
            display: inline;
        }

        .reading-link {
            width: auto;
            height: auto;
            padding: 0.4rem 0.75rem;
            gap: 0.35rem;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .reading-link:hover {
            transform: none;
        }
    }

    /* Pinned Quote Widget */
    .pinned-quote-widget {
        text-align: center;
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .quote-text {
        font-family: var(--font-heading);
        font-size: 1.25rem;
        font-style: italic;
        color: var(--color-text);
        line-height: 1.6;
        margin: 0 0 1rem;
        padding: 0;
        border: none;
        position: relative;
    }

    .quote-text::before {
        content: '"';
        font-size: 3rem;
        color: var(--color-primary);
        opacity: 0.3;
        position: absolute;
        top: -1rem;
        left: -0.5rem;
        font-family: Georgia, serif;
    }

    .quote-attribution {
        font-size: 0.95rem;
        color: var(--color-muted);
    }

    .quote-dash {
        margin-right: 0.25rem;
    }

    /* Secondary Currently Reading (horizontal layout) */
    .secondary-currently-reading {
        margin-bottom: 2rem;
    }

    .currently-reading-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }

    .reading-book-card {
        display: flex;
        gap: 1rem;
        padding: 1.25rem;
        background: var(--bg-card);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .reading-book-card:hover {
        border-color: #a68b6a;
        box-shadow: 0 4px 15px rgba(139, 115, 85, 0.1);
    }

    .reading-book-card .reading-book-cover {
        width: 70px;
        height: 105px;
        min-width: 70px;
        background: var(--bg-secondary);
        border-radius: 6px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--color-border);
    }

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

    .reading-book-card .reading-book-cover i {
        font-size: 1.5rem;
        color: var(--color-muted);
    }

    .reading-book-card .reading-book-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .reading-book-card .reading-book-title-link {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--color-text);
        text-decoration: none;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .reading-book-card .reading-book-title-link:hover {
        color: var(--color-primary);
    }

    .reading-book-card .reading-book-author {
        font-size: 0.85rem;
        color: var(--color-muted);
        margin-bottom: 0.5rem;
    }

    .reading-book-card .reading-book-progress {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .reading-book-card .reading-book-note {
        font-size: 0.8rem;
        font-style: italic;
        color: var(--color-muted);
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .reading-book-card .reading-book-links {
        display: flex;
        gap: 0.5rem;
        margin-top: auto;
    }

    @media (max-width: 575.98px) {
        .currently-reading-row {
            grid-template-columns: 1fr;
        }
    }

    /* Favorite Authors */
    .authors-section-wrapper {
        overflow-x: clip;
        padding-top: 4px;
        margin-top: -4px;
    }

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

    .author-card {
        display: flex;
        gap: 1.25rem;
        padding: 1.25rem;
        background: var(--bg-card);
        border: 1px solid var(--color-border);
        border-radius: 16px;
        transition: all 0.2s ease;
    }

    .author-card:hover {
        border-color: var(--color-primary);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .author-card-image {
        width: 100px;
        height: 100px;
        border-radius: 12px;
        background: color-mix(in srgb, var(--color-primary) 12%, transparent);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
    }

    .author-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .author-initials {
        font-family: var(--font-heading);
        font-size: 2.5rem;
        font-weight: 600;
        color: var(--color-primary);
    }

    .author-card-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .author-card-name {
        font-family: var(--font-heading);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--color-text);
        margin-bottom: 0.5rem;
    }

    .author-card-name-link {
        font-family: var(--font-heading);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--color-text);
        margin-bottom: 0.5rem;
        text-decoration: none;
        display: block;
        transition: color 0.2s ease;
    }

    .author-card-name-link:hover {
        color: var(--color-primary);
    }

    .author-card-works {
        font-size: 0.9rem;
        color: var(--color-muted);
        line-height: 1.5;
        margin-bottom: 0.75rem;
        flex: 1;
    }

    .author-card-works .works-label {
        color: var(--color-text);
        font-weight: 500;
    }

    .author-learn-more {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--color-primary);
        text-decoration: none;
        transition: all 0.2s ease;
        margin-top: auto;
    }

    .author-learn-more:hover {
        gap: 0.5rem;
    }

    .author-learn-more i {
        font-size: 0.75rem;
        transition: transform 0.2s ease;
    }

    .author-learn-more:hover i {
        transform: translateX(3px);
    }

    /* Mobile: horizontal scroll for authors */
    @media (max-width: 767.98px) {
        .authors-grid {
            display: flex;
            overflow-x: auto;
            overflow-y: hidden;
            gap: 1rem;
            padding-bottom: 0.75rem;
            margin: 0 -1rem 2rem;
            padding-left: 1rem;
            padding-right: 1rem;
            scrollbar-width: thin;
            scrollbar-color: rgba(139, 115, 85, 0.3) transparent;
        }

        .authors-grid::-webkit-scrollbar {
            height: 6px;
        }

        .authors-grid::-webkit-scrollbar-track {
            background: transparent;
        }

        .authors-grid::-webkit-scrollbar-thumb {
            background: rgba(139, 115, 85, 0.3);
            border-radius: 3px;
        }

        .author-card {
            flex: 0 0 auto;
            width: 160px;
            flex-direction: column;
            padding: 1rem;
            text-align: center;
            gap: 0.75rem;
        }

        .author-card:hover {
            transform: none;
        }

        .author-card-image {
            width: 100px;
            height: 100px;
            margin: 0 auto;
        }

        .author-card-content {
            align-items: center;
        }

        .author-card-name,
        .author-card-name-link {
            font-size: 0.95rem;
            text-align: center;
            margin-bottom: 0.25rem;
        }

        .author-card-works {
            font-size: 0.8rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-align: center;
        }

        .author-card-works .works-label {
            display: none;
        }

        .author-learn-more {
            font-size: 0.8rem;
        }
    }

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

    @media (max-width: 991.98px) {
        .posts-display {
            grid-template-columns: 1fr;
        }
    }

    .post-display-card {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        padding: 1rem;
    }

    .post-note {
        color: rgba(255, 255, 255, 0.7);
        font-style: italic;
        margin-bottom: 1rem;
        padding-left: 0.75rem;
        border-left: 3px solid rgba(102, 126, 234, 0.5);
    }

    .tweet-embed-container {
        min-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tweet-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        color: rgba(255, 255, 255, 0.4);
        padding: 2rem;
    }

    .tweet-placeholder i {
        font-size: 2rem;
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 0.8; }
    }

    .tweet-embed-container.loaded .tweet-placeholder {
        display: none;
    }

    .twitter-tweet {
        margin: 0 auto !important;
    }

    /* Custom Links Display */
    .custom-links-display {
        margin-top: 0.5rem;
    }

    .custom-link-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: color-mix(in srgb, var(--color-primary) 10%, transparent);
        border: 1px solid var(--color-border);
        border-radius: 25px;
        color: var(--color-text);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .custom-link-btn:hover {
        background: color-mix(in srgb, var(--color-primary) 20%, transparent);
        border-color: var(--color-primary);
        color: var(--color-text);
        transform: translateY(-2px);
    }

    .custom-link-btn i {
        font-size: 1.1rem;
        color: var(--color-primary);
    }

    .custom-link-btn .link-label {
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    @media (max-width: 767.98px) {
        .custom-link-btn .link-label {
            max-width: 180px;
        }
    }

    .emoji-icon {
        font-size: 1.1rem;
        line-height: 1;
    }

    /* Book Display Styles */
    .books-display-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .book-display-card {
        display: flex;
        gap: 1rem;
        background: var(--bg-card);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 1rem;
        transition: all 0.3s ease;
    }

    .book-display-card:hover {
        border-color: var(--color-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .book-display-cover {
        width: 80px;
        height: 120px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--color-primary) 10%, transparent);
        border-radius: 6px;
        overflow: hidden;
    }

    .book-display-cover img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .book-display-cover i {
        font-size: 2rem;
        color: var(--color-muted);
    }

    .book-display-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .book-display-title {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--color-text);
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    .book-display-title-link {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--color-text);
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .book-display-title-link:hover {
        color: var(--color-primary);
    }

    .book-display-author {
        font-size: 0.85rem;
        color: var(--color-muted);
        margin-bottom: auto;
    }

    .book-display-links {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .book-display-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: color-mix(in srgb, var(--color-primary) 15%, transparent);
        color: var(--color-primary);
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .book-display-link:hover {
        background: var(--color-primary);
        color: white;
        transform: scale(1.1);
    }

    /* Mobile styles for book display links */
    @media (max-width: 768px) {
        .book-display-link {
            width: auto;
            height: auto;
            padding: 0.4rem 0.75rem;
            border-radius: 6px;
            gap: 0.35rem;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .book-display-link:hover {
            transform: none;
        }

        .book-display-links {
            flex-wrap: wrap;
        }
    }

    .books-pagination {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .books-show-more {
        background: transparent;
        border: 1px solid var(--color-border);
        color: var(--color-text);
        padding: 0.5rem 1.5rem;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.9rem;
    }

    .books-show-more:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    /* Mobile: horizontal scroll for book shelves like featured shelf */
    @media (max-width: 767.98px) {
        .books-display-grid {
            display: flex;
            overflow-x: auto;
            overflow-y: hidden;
            gap: 1rem;
            padding-bottom: 0.75rem;
            margin: 0 -1rem;
            padding-left: 1rem;
            padding-right: 1rem;
            scrollbar-width: thin;
            scrollbar-color: rgba(139, 115, 85, 0.3) transparent;
        }

        .books-display-grid::-webkit-scrollbar {
            height: 6px;
        }

        .books-display-grid::-webkit-scrollbar-track {
            background: transparent;
        }

        .books-display-grid::-webkit-scrollbar-thumb {
            background: rgba(139, 115, 85, 0.3);
            border-radius: 3px;
        }

        .book-display-card {
            flex: 0 0 auto;
            width: 140px;
            flex-direction: column;
            padding: 0;
            background: transparent;
            border: none;
        }

        .book-display-card:hover {
            transform: none;
            box-shadow: none;
            border-color: transparent;
        }

        .book-display-cover {
            width: 100%;
            height: 180px;
            margin-bottom: 0.5rem;
        }

        .book-display-cover img {
            width: 100%;
            height: 100%;
        }

        .book-display-info {
            gap: 0.25rem;
        }

        .book-display-title-link {
            font-size: 0.85rem;
            line-height: 1.25;
        }

        .book-display-author {
            font-size: 0.75rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .book-display-links {
            margin-top: 0.25rem;
            justify-content: center;
        }

        .book-display-link {
            width: 32px;
            height: 32px;
            padding: 0;
            border-radius: 6px;
            font-size: 0.9rem;
        }

        .book-display-link .link-text {
            display: none;
        }

        /* On mobile, pagination button is a fallback — auto-scroll loads more */
        .books-pagination {
            margin-top: 0.75rem;
        }
    }

    /* Powered by footer */
    .powered-by-footer {
        margin-top: auto;
        padding: 3rem 0 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }

    .dogear-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        transition: transform 0.2s ease;
    }

    .dogear-brand:hover {
        transform: scale(1.05);
    }

    .dogear-logo {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

    .dogear-text {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-text);
        letter-spacing: -0.5px;
    }

    .dogear-brand:hover .dogear-text {
        color: var(--color-primary);
    }

    .footer-ctas {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-cta-link {
        color: var(--color-muted);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .footer-cta-link:hover {
        color: var(--color-primary);
    }

    .footer-cta-divider {
        color: var(--color-muted);
        opacity: 0.5;
    }

    /* Add to Shelf Button */
    .add-to-shelf-btn {
        background: color-mix(in srgb, #2e7d32 15%, transparent);
        color: #4caf50;
        border: none;
        cursor: pointer;
    }

    .add-to-shelf-btn:hover {
        background: #4caf50;
        color: white;
    }

    /* Add to Shelf Modal */
    .book-preview-cover {
        width: 60px;
        height: 90px;
        background: var(--bg-secondary);
        border-radius: 6px;
        overflow: hidden;
        flex-shrink: 0;
    }

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

    .book-preview-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .shelf-options-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        max-height: 250px;
        overflow-y: auto;
    }

    .shelf-option {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        background: var(--bg-secondary);
        border: 2px solid var(--color-border);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .shelf-option:hover {
        border-color: var(--color-primary);
        background: color-mix(in srgb, var(--color-primary) 10%, var(--bg-secondary));
    }

    .shelf-option.selected {
        border-color: var(--color-primary);
        background: color-mix(in srgb, var(--color-primary) 15%, var(--bg-secondary));
    }

    .shelf-option-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: color-mix(in srgb, var(--color-primary) 20%, transparent);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 0.75rem;
        color: var(--color-primary);
    }

    .shelf-option-title {
        flex: 1;
        font-weight: 500;
    }

    .shelf-option-count {
        font-size: 0.85rem;
        color: var(--color-muted);
    }

    .shelf-option.selected .shelf-option-icon {
        background: var(--color-primary);
        color: white;
    }

    /* Carry Display Accessories Hint */
    .carry-display-accessories-hint {
        font-size: 0.8rem;
        color: var(--color-primary);
        margin-top: 0.35rem;
    }

    /* Inspect Modal Container */
    .inspect-modal-content {
        background: var(--bg-card);
        border: 1px solid var(--color-border);
        border-radius: 16px;
        overflow: hidden;
        position: relative;
    }

    .inspect-modal-content .modal-body {
        padding: 1.5rem;
    }

    .inspect-modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--bg-secondary);
        border: 1px solid var(--color-border);
        color: var(--color-muted);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.2s ease;
    }

    .inspect-modal-close:hover {
        background: var(--color-danger, #dc3545);
        border-color: var(--color-danger, #dc3545);
        color: #fff;
    }

    /* Inspect Modal Styles */
    .edc-inspect-hero {
        display: flex;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .edc-inspect-image {
        width: 140px;
        height: 140px;
        border-radius: 12px;
        background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
        border: 1px solid var(--color-border);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        overflow: hidden;
    }

    .edc-inspect-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 0.5rem;
    }

    .edc-inspect-details {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }

    .edc-inspect-brand {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--color-primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.25rem;
    }

    .edc-inspect-model {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-text);
        line-height: 1.2;
    }

    .edc-inspect-note {
        font-size: 0.9rem;
        font-style: italic;
        color: var(--color-muted);
        margin-top: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: var(--bg-secondary);
        border-radius: 8px;
        border-left: 3px solid var(--color-primary);
    }

    .edc-inspect-links {
        display: flex;
        gap: 0.75rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .edc-inspect-links .btn {
        padding: 0.5rem 1rem;
        font-weight: 500;
        border-radius: 8px;
    }

    .edc-inspect-links .btn-success {
        background: linear-gradient(145deg, #28a745 0%, #218838 100%);
        border: none;
    }

    .edc-inspect-links .btn-outline-secondary {
        border-color: var(--color-border);
        color: var(--color-text);
    }

    .edc-inspect-links .btn-outline-secondary:hover {
        background: var(--bg-secondary);
    }

    .edc-inspect-accessories {
        border-top: 1px solid var(--color-border);
        padding-top: 1rem;
    }

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

    .edc-inspect-rounds-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
        border-top: 1px dashed var(--color-border);
    }

    .edc-inspect-rounds-header strong {
        color: var(--color-success, #5B8A5A);
    }

    .edc-inspect-accessory-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: var(--bg-secondary);
        border: 1px solid var(--color-border);
        border-radius: 10px;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .edc-inspect-accessory-image {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--bg-card);
    }

    .edc-inspect-accessory-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .edc-inspect-accessory-image svg {
        width: 24px;
        height: 24px;
    }

    .edc-inspect-accessory-brand {
        font-weight: 600;
        font-size: 0.85rem;
        color: var(--color-text);
    }

    .edc-inspect-accessory-model {
        font-size: 0.8rem;
        color: var(--color-muted);
    }

    .edc-inspect-accessory-caliber {
        font-size: 0.7rem;
        color: var(--color-primary);
    }

    .edc-inspect-accessory-note {
        font-size: 0.75rem;
        font-style: italic;
        color: var(--color-muted);
    }

    .edc-inspect-accessory-links {
        display: flex;
        gap: 0.35rem;
        margin-top: 0.25rem;
    }

    .edc-category-icon {
        color: var(--color-muted);
    }

    .edc-category-icon svg {
        width: 100%;
        height: 100%;
    }

    @media (max-width: 480px) {
        .edc-inspect-hero {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .edc-inspect-links {
            justify-content: center;
        }
    }

    /* ==================== LOADOUT/GEAR DISPLAY STYLES ==================== */

    /* Current Carry Display */
    .current-carry-display {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .carry-display-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        background: var(--bg-card);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 1rem;
        transition: all 0.2s ease;
    }

    .carry-display-item:hover {
        border-color: var(--color-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .carry-display-image {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        overflow: hidden;
        background: var(--bg-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .carry-display-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .carry-display-image i {
        font-size: 2rem;
        color: var(--color-muted);
    }

    .carry-display-info {
        flex: 1;
        min-width: 0;
    }

    .carry-display-brand {
        font-weight: 600;
        color: var(--color-text);
    }

    .carry-display-model {
        color: var(--color-muted);
        font-size: 0.9rem;
    }

    .carry-display-caliber {
        font-size: 0.8rem;
        color: var(--color-primary);
        margin-top: 0.25rem;
    }

    .carry-display-note {
        font-size: 0.85rem;
        font-style: italic;
        color: var(--color-muted);
        margin-top: 0.5rem;
    }

    .carry-display-links {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .carry-link {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.5rem;
        background: color-mix(in srgb, var(--color-primary) 10%, transparent);
        border-radius: 4px;
        color: var(--color-text);
        font-size: 0.75rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .carry-link:hover {
        background: color-mix(in srgb, var(--color-primary) 25%, transparent);
        color: var(--color-text);
    }

    /* Gear Display Grid */
    .gear-display-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .gear-display-card {
        background: var(--bg-secondary);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 0.75rem;
        text-align: center;
        transition: all 0.2s ease;
    }

    .gear-display-card:hover {
        border-color: var(--color-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .gear-display-cover {
        width: 100%;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.75rem;
        border-radius: 8px;
        overflow: hidden;
        background: var(--bg-card);
    }

    .gear-display-cover img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .gear-display-cover i {
        font-size: 3rem;
        color: var(--color-muted);
    }

    .gear-display-info {
        text-align: left;
    }

    .gear-display-brand {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--color-text);
    }

    .gear-display-model {
        font-size: 0.85rem;
        color: var(--color-muted);
    }

    .gear-display-caliber {
        font-size: 0.75rem;
        color: var(--color-primary);
        margin-top: 0.15rem;
    }

    .gear-display-note {
        font-size: 0.8rem;
        font-style: italic;
        color: var(--color-muted);
        margin-top: 0.5rem;
    }

    .gear-display-links {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .gear-display-link {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.5rem;
        background: color-mix(in srgb, var(--color-primary) 10%, transparent);
        border-radius: 4px;
        color: var(--color-text);
        font-size: 0.7rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .gear-display-link:hover {
        background: color-mix(in srgb, var(--color-primary) 25%, transparent);
        color: var(--color-text);
    }

    @media (max-width: 768px) {
        .current-carry-display {
            grid-template-columns: 1fr;
        }

        .gear-display-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .gear-display-grid {
            grid-template-columns: 1fr;
        }
    }

    /* ========== COD-STYLE LOADOUT DISPLAY CARDS ========== */
    .loadout-display-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .loadout-display-card {
        position: relative;
        background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
        border: 1px solid var(--color-border);
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .loadout-display-card:hover {
        border-color: var(--color-primary);
        box-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.05);
        transform: translateY(-3px);
    }

    /* Main Item Display - Vertical layout with large image */
    .loadout-display-main {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        cursor: pointer;
    }

    .loadout-display-image {
        width: 100%;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .loadout-display-image:hover {
        background: rgba(0, 0, 0, 0.35);
    }

    .loadout-display-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
        transition: transform 0.2s ease;
    }

    .loadout-display-image:hover img {
        transform: scale(1.03);
    }

    .loadout-display-placeholder {
        width: 60px;
        height: 60px;
        color: var(--color-muted);
    }

    .loadout-display-info {
        text-align: center;
    }

    .loadout-display-brand {
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 0.25rem;
    }

    .loadout-display-model {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--color-primary);
        line-height: 1.2;
    }

    .loadout-display-caliber {
        font-size: 0.8rem;
        color: var(--color-muted);
        margin-top: 0.35rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }

    .loadout-display-note {
        font-size: 0.85rem;
        font-style: italic;
        color: var(--color-muted);
        margin-top: 0.5rem;
        opacity: 0.8;
    }

    /* Attachments Display Section */
    .attachments-display-section {
        background: rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1rem 1.25rem;
    }

    .attachments-display-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--color-muted);
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .attachments-display-label i {
        font-size: 0.9rem;
        color: var(--color-primary);
    }

    .attachment-display-count {
        background: var(--color-primary);
        color: var(--bg-body);
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
        border-radius: 12px;
        font-weight: 700;
    }

    /* Attachments Carousel */
    .attachments-display-carousel {
        position: relative;
        overflow: hidden;
    }

    .attachments-display-track {
        display: flex;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .attachment-display-slot {
        flex: 0 0 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 10px;
        opacity: 0;
        transform: scale(0.95);
        transition: all 0.3s ease;
    }

    .attachment-display-slot.active {
        opacity: 1;
        transform: scale(1);
    }

    .attachment-display-image {
        width: 60px;
        height: 50px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        overflow: hidden;
    }

    .attachment-display-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .attachment-display-placeholder {
        width: 35px;
        height: 35px;
        color: var(--color-muted);
    }

    .attachment-display-info {
        flex: 1;
        min-width: 0;
    }

    .attachment-display-brand {
        font-size: 0.7rem;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .attachment-display-model {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--color-text);
    }

    /* Accessory Action Buttons - stacked vertically */
    .attachment-display-actions {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        flex-shrink: 0;
    }

    .attachment-buy-btn,
    .attachment-review-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .attachment-buy-btn {
        background: linear-gradient(145deg, #28a745 0%, #218838 100%);
        color: #fff;
    }

    .attachment-buy-btn:hover {
        background: linear-gradient(145deg, #2dba4e 0%, #28a745 100%);
        color: #fff;
    }

    .attachment-review-btn {
        background: rgba(255, 255, 255, 0.1);
        color: var(--color-muted);
    }

    .attachment-review-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--color-text);
    }

    /* Mobile: only show buy button icon */
    @media (max-width: 576px) {
        .attachment-display-actions .btn-text {
            display: none;
        }

        .attachment-buy-btn,
        .attachment-review-btn {
            padding: 0.3rem;
        }

        .attachment-review-btn {
            display: none;
        }
    }

    /* Carousel Indicators */
    .carousel-display-indicators {
        display: flex;
        justify-content: center;
        gap: 0.4rem;
        margin-top: 0.75rem;
    }

    .carousel-display-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .carousel-display-dot.active {
        background: var(--color-primary);
        width: 24px;
        border-radius: 4px;
    }

    .carousel-display-dot:hover:not(.active) {
        background: rgba(255, 255, 255, 0.4);
    }

    /* Gear Action Links (always visible) */
    .loadout-display-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .loadout-action-link {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .loadout-action-review {
        background: rgba(var(--color-primary-rgb), 0.15);
        color: var(--color-primary);
    }

    .loadout-action-review:hover {
        background: rgba(var(--color-primary-rgb), 0.3);
        color: var(--color-primary);
    }

    .loadout-action-buy {
        background: rgba(91, 138, 90, 0.15);
        color: #5B8A5A;
    }

    .loadout-action-buy:hover {
        background: rgba(91, 138, 90, 0.3);
        color: #5B8A5A;
    }

    /* Loadout-level Review Link */
    .loadout-review-link {
        display: inline-flex;
        align-items: center;
        font-size: 0.85rem;
        color: var(--color-primary);
        text-decoration: none;
        margin-bottom: 1rem;
        padding: 0.35rem 0.75rem;
        background: rgba(var(--color-primary-rgb), 0.1);
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .loadout-review-link:hover {
        background: rgba(var(--color-primary-rgb), 0.2);
        color: var(--color-primary);
    }

    /* Responsive - Tablet */
    @media (max-width: 768px) {
        .loadout-display-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .loadout-display-main {
            padding: 0.875rem;
        }

        .loadout-display-image {
            height: 140px;
        }

        .loadout-display-model {
            font-size: 1rem;
        }

        .loadout-display-actions {
            justify-content: center;
        }
    }

    /* Responsive - Mobile */
    @media (max-width: 480px) {
        .loadout-display-grid {
            grid-template-columns: 1fr;
        }

        .loadout-display-card {
            border-radius: 12px;
        }

        .loadout-display-main {
            padding: 1rem;
            gap: 0.75rem;
        }

        .loadout-display-image {
            height: 200px;
        }

        .loadout-display-model {
            font-size: 1.1rem;
        }

        .attachments-display-section {
            padding: 0.75rem 1rem;
        }

        .attachment-display-slot {
            padding: 0.6rem;
            gap: 0.75rem;
        }

        .attachment-display-image {
            width: 50px;
            height: 42px;
        }
    }

    /* ========== ACCESSORY DISPLAY IN MODAL (Read-only, affiliate focused) ========== */
    .accessory-display-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        background: var(--bg-secondary);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 0.75rem;
        transition: all 0.2s ease;
    }

    .accessory-display-card:hover {
        border-color: rgba(25, 135, 84, 0.4);
        box-shadow: 0 2px 12px rgba(25, 135, 84, 0.1);
    }

    .accessory-display-image {
        width: 70px;
        height: 60px;
        border-radius: 8px;
        overflow: hidden;
        background: var(--bg-card);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .accessory-card-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .accessory-card-placeholder {
        width: 35px;
        height: 35px;
        color: var(--color-muted);
    }

    .accessory-card-placeholder svg {
        width: 100%;
        height: 100%;
    }

    .accessory-display-info {
        flex: 1;
        min-width: 0;
    }

    .accessory-display-brand {
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--color-text);
    }

    .accessory-display-model {
        font-size: 0.85rem;
        color: var(--color-muted);
    }

    .accessory-display-note {
        font-size: 0.8rem;
        font-style: italic;
        color: var(--color-muted);
        margin-top: 0.25rem;
    }

    .accessory-display-actions {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    /* Prominent buy button for affiliate links */
    .accessory-buy-btn {
        font-weight: 600;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .accessory-review-btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    @media (max-width: 480px) {
        .accessory-display-card {
            flex-wrap: wrap;
        }

        .accessory-display-actions {
            width: 100%;
            flex-direction: row;
            margin-top: 0.5rem;
        }

        .accessory-buy-btn {
            flex: 1;
        }
    }
