:root {
    --bg-color: #050505;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --accent-green: #FFFFFF;
    --accent-blue: #CCCCCC;
    --accent-purple: #999999;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    /* Subtle earthy texture overlay */
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

/* --- Background Effects --- */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

.aurora-container {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.5;
    mix-blend-mode: screen;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    animation: drift 20s infinite alternate linear;
}

.aurora-1 {
    top: 20%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    animation-delay: 0s;
}

.aurora-2 {
    top: 40%;
    right: 20%;
    width: 50vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    animation-delay: -5s;
}

.aurora-3 {
    bottom: 30%;
    left: 40%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(10%, 10%) scale(1.1) rotate(5deg); }
}

.nature-silhouette {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    z-index: -1;
    pointer-events: none;
    /* Creating a pine tree / mountain silhouette effect using a repeating linear gradient or svg */
    background: linear-gradient(to top, rgba(2, 6, 23, 1), transparent),
                url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" xmlns="http://www.w3.org/2000/svg"><path d="M0,200 L0,150 L50,180 L100,120 L150,170 L200,90 L250,160 L300,110 L350,150 L400,80 L450,140 L500,60 L550,130 L600,100 L650,150 L700,70 L750,140 L800,90 L850,160 L900,110 L950,180 L1000,130 L1000,200 Z" fill="%23020617"/></svg>');
    background-size: 100% 100%, 1000px 100%;
    background-position: bottom;
    background-repeat: no-repeat, repeat-x;
    opacity: 0.8;
}

/* --- Layout --- */
.content-wrapper {
    width: 100%;
    max-width: 680px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
}

/* --- Profile Section --- */
.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: var(--accent-green);
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.profile-square-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    animation: pulseGlowSquare 4s infinite alternate;
}

.profile-square-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    filter: grayscale(100%) contrast(1.1);
}

@keyframes pulseGlowSquare {
    0% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
    100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #FFF, #A7F3D0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-handle {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.profile-handle:hover {
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.profile-bio {
    margin: 0.5rem 0 1.5rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.profile-bio p {
    margin: 0;
    letter-spacing: 0.02em;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.profile-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- Link Tree Section --- */
.link-tree {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.tree-link {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--delay) + 0.2s);
}

.tree-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tree-link:hover {
    transform: translateY(-3px) scale(1.01);
    background: rgba(31, 41, 55, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.05);
}

.tree-link:hover::before {
    transform: translateX(100%);
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-right: 1.25rem;
    color: var(--accent-green);
    transition: all 0.3s ease;
}

.tree-link:hover .link-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transform: scale(1.1);
}

.link-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.link-arrow {
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.tree-link:hover .link-arrow {
    opacity: 1;
    color: var(--accent-green);
    transform: translateX(0);
}

/* --- Widget Preview --- */
.widget-preview-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--delay) + 0.2s);
    transition: all 0.4s ease;
}

.widget-preview-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.3s ease;
}

.widget-preview-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.expand-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-preview-header:hover .expand-btn {
    color: var(--accent-green);
}

.widget-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: #000;
}

.widget-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent interaction while in preview */
}

.widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.widget-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

.overlay-text {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    color: #fff;
}

.widget-overlay:hover .overlay-text {
    transform: scale(1.05);
}

/* Fullscreen State */
.widget-preview-container.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    border: none;
    margin: 0;
    animation: none;
    background: #000;
}

.widget-preview-container.is-fullscreen .widget-iframe-wrapper {
    height: calc(100vh - 65px);
    flex: 1;
}

.widget-preview-container.is-fullscreen .widget-iframe-wrapper iframe {
    pointer-events: auto; /* Enable interaction */
}

.widget-preview-container.is-fullscreen .widget-overlay {
    display: none;
}

.widget-preview-container.is-fullscreen .widget-preview-header {
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 1s;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .content-wrapper {
        padding: 2rem 1.25rem;
    }
    
    .profile-card {
        padding: 2rem 1.5rem;
    }
    
    .profile-stats {
        padding: 1rem 0.5rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

/* --- Library Page Styles --- */
.library-wrapper {
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-green);
}

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

.library-header .page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.library-header .page-subtitle {
    color: var(--accent-green);
    font-size: 1.1rem;
    font-weight: 500;
}

.glass-card p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.glass-card p:last-of-type {
    margin-bottom: 0;
}

.discord-callout {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.discord-btn {
    background: var(--accent-green);
    color: #000;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(162, 255, 0, 0.2);
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.tools-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.tool-icon {
    font-size: 1.5rem;
}

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

.section-heading {
    grid-column: 1 / -1;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.resource-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(162, 255, 0, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: rgba(20, 20, 25, 0.6);
}

.resource-card h3 {
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.resource-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.astral-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.astral-section h3 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.method-list {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.method-list li {
    margin-bottom: 0.5rem;
}

.glass-card {
    margin-bottom: 2rem;
}

/* --- Microstead Link Styles --- */
.tree-link.microstead-link {
    flex-direction: column;
    padding: 0;
    background: rgba(30, 45, 30, 0.7); /* soft dark green default */
    border-color: rgba(162, 255, 0, 0.2);
    overflow: hidden;
    color: #fff;
    align-items: stretch;
}

.tree-link.microstead-link:hover {
    box-shadow: 0 10px 25px -5px rgba(162, 255, 0, 0.4), 0 0 15px rgba(162, 255, 0, 0.2);
    transform: translateY(-4px);
    background: var(--accent-green); /* accent green on hover */
    color: #000;
}

.link-banner {
    width: 100%;
    height: 90px;
    overflow: hidden;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.link-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.8;
    transition: opacity 0.4s ease, transform 3s cubic-bezier(0.25, 1, 0.5, 1);
}

.tree-link.microstead-link:hover .link-banner img {
    opacity: 1;
    transform: scale(1.15) translate(-2%, -2%);
}

.tree-link.library-link:hover .link-banner img {
    opacity: 1;
}

.link-inner {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    width: 100%;
}

/* --- Library Link Styles --- */
.tree-link.library-link {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    align-items: stretch;
}

.tree-link.microstead-link .link-icon {
    background: rgba(162, 255, 0, 0.1);
    color: var(--accent-green);
}

.tree-link.microstead-link:hover .link-icon {
    background: rgba(0, 0, 0, 0.15);
    color: #000;
}

.tree-link.microstead-link .link-arrow {
    color: rgba(255, 255, 255, 0.5);
}

.tree-link.microstead-link:hover .link-arrow {
    color: #000;
    transform: translateX(0);
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tree-link.microstead-link .link-excerpt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tree-link.microstead-link:hover .link-excerpt {
    color: rgba(0, 0, 0, 0.8);
}

/* --- About Campton Section --- */
.about-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 3rem;
    padding: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--delay);
}

.about-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image {
    width: 33%;
    max-width: 300px;
    min-width: 150px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.8s ease;
}

.about-card:hover .about-image {
    transform: scale(1.05);
}

.about-content {
    padding: 2rem 2.5rem;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .about-content {
        padding: 1.5rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}

/* --- Donate Section --- */
.donate-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--delay);
}

.donate-details {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.donate-details[open] {
    background: rgba(20, 30, 20, 0.6);
    border-color: rgba(162, 255, 0, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.donate-btn {
    list-style: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
    user-select: none;
}

.donate-btn::-webkit-details-marker {
    display: none;
}

.donate-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.donate-details[open] .donate-btn {
    color: var(--accent-green);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.heart-icon {
    transition: transform 0.3s ease, fill 0.3s ease;
}

.donate-details[open] .heart-icon {
    transform: scale(1.1);
    fill: var(--accent-green);
    stroke: var(--accent-green);
}

.donate-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donate-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.donate-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.donate-value {
    color: #fff;
    font-size: 0.9rem;
    font-family: monospace;
    letter-spacing: 0.02em;
}

    .donate-sub {
        color: var(--text-muted);
        font-size: 0.8rem;
        margin-left: 0.25rem;
    }

    /* --- Books Promo --- */
    .books-promo {
        margin-top: 1.5rem;
        width: 100%;
    }

    .books-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .books-link:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(162, 255, 0, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .books-images {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .book-cover {
        width: 60px;
        height: auto;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease;
    }

    .books-link:hover .book-cover {
        transform: scale(1.05) rotate(3deg);
    }

    .books-link:hover .book-cover:first-child {
        transform: scale(1.05) rotate(-3deg);
    }

    .books-text {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--accent-green);
        letter-spacing: 0.02em;
        text-transform: uppercase;
        transition: text-shadow 0.3s ease;
    }

    .books-link:hover .books-text {
        text-shadow: 0 0 8px rgba(162, 255, 0, 0.4);
    }

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    position: relative;
    width: 90%;
    max-width: 450px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.modal-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-actions button,
.modal-actions a {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-green);
    color: #000;
    box-shadow: 0 4px 15px rgba(162, 255, 0, 0.2);
}

.btn-primary:hover {
    background: #b2ff1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 255, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2) !important;
}
