:root {
    /* Color Palette */
    --clr-bg: #07070a;
    --clr-surface: #12121a;
    --clr-surface-light: #1b1b26;
    --clr-primary: #00e676;
    --clr-primary-bright: #64ffda;
    --clr-primary-dark: #1b5e20;
    --clr-accent: #ccff90;

    --clr-text-main: #ffffff;
    --clr-text-muted: #a0a0b0;

    --clr-glass: rgba(18, 18, 26, 0.7);
    --clr-glass-border: rgba(0, 230, 118, 0.15);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--clr-primary-bright);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--clr-accent);
}

.highlight-gradient {
    background: linear-gradient(90deg, var(--clr-primary-bright), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--clr-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-glass-border);
    transition: background var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--clr-text-main);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}

.actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--clr-text-main);
    cursor: pointer;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.btn-icon:hover {
    color: var(--clr-primary-bright);
    transform: scale(1.1);
}

/* Buttons */
.btn-primary,
.btn-primary-large {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    color: var(--clr-text-main);
    border: 1px solid var(--clr-primary-bright);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-primary-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.4);
}

.btn-primary:hover,
.btn-primary-large:hover {
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--clr-primary-bright), var(--clr-primary));
    color: var(--clr-bg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all var(--transition-smooth);
}

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

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide::after {
    /* To ensure text is still readable on bright backgrounds */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 7, 10, 0.7) 0%, rgba(7, 7, 10, 1) 100%);
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.45) 0%, rgba(7, 7, 10, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Catalog Section */
.catalog {
    padding: 4rem 0 8rem;
}

.page-content-padding {
    padding-top: 8rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--clr-glass-border);
    color: var(--clr-text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--clr-primary-dark);
    color: var(--clr-text-main);
    border-color: var(--clr-primary);
}

/* Comic Grid */
.comic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.comic-card {
    perspective: 1000px;
}

.card-inner {
    background: var(--clr-surface);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--clr-glass-border);
    transition: all var(--transition-smooth);
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card-inner:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 230, 118, 0.2);
    border-color: rgba(0, 230, 118, 0.4);
}

.cover-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 2 / 3;
    background: var(--clr-surface-light);
}

.comic-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-inner:hover .comic-cover {
    transform: scale(1.08);
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 7, 10, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.card-inner:hover .cover-overlay {
    opacity: 1;
}

.btn-read-preview {
    background: var(--clr-primary-bright);
    color: #07070a;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.card-inner:hover .btn-read-preview {
    transform: translateY(0);
}

.btn-read-preview:hover {
    background: var(--clr-accent);
    color: #000;
}

.comic-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

.comic-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.genre-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 230, 118, 0.1);
    color: var(--clr-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.comic-title {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.comic-author {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comic-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comic-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--clr-accent);
}

.btn-cart {
    background: var(--clr-surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-cart:hover {
    background: var(--clr-primary);
    transform: rotate(90deg);
}

/* Footer */
footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-glass-border);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin-top: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
}

.link-group a {
    display: block;
    color: var(--clr-text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--clr-primary-bright);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    color: var(--clr-text-muted);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 7, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

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

.modal-window {
    background: var(--clr-surface);
    border: 1px solid var(--clr-primary-dark);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all var(--transition-smooth);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 230, 118, 0.1);
}

.modal-backdrop.active .modal-window {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: var(--clr-primary);
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    padding: 3rem;
}

.modal-cover {
    width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-info {
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
}

.modal-author {
    color: var(--clr-primary-bright);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.modal-desc {
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-meta-data {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--clr-glass-border);
    border-bottom: 1px solid var(--clr-glass-border);
}

.meta-item span {
    display: block;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.3rem;
}

.meta-value {
    font-weight: 600;
    color: var(--clr-text-main);
    font-size: 1.1rem;
}


/* Interactive Meta Item */
.meta-item.clickable {
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.meta-item.clickable:hover {
    transform: translateY(-2px);
}

.meta-item.clickable:hover .meta-label {
    color: var(--clr-primary-bright);
}

.meta-item.clickable:hover .meta-value {
    color: var(--clr-primary-bright);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

/* Chapters Section */
.chapters-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--clr-glass-border);
    animation: fadeIn 0.4s ease-out;
}

.chapters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chapter-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-glass-border);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    transition: all var(--transition-fast);
}

.chapter-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--clr-primary-dark);
}

.chapter-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-info {
    display: flex;
    flex-direction: column;
}

.chapter-name {
    font-weight: 600;
    color: var(--clr-text-main);
}

.chapter-date {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.btn-toggle-comments {
    background: transparent;
    border: 1px solid var(--clr-glass-border);
    color: var(--clr-text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-toggle-comments:hover {
    color: var(--clr-primary-bright);
    border-color: var(--clr-primary);
}

/* Comment Section */
.comment-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
}

.comment-section.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
}

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

.comment-body {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem;
    border-radius: 0 8px 8px 8px;
}

.comment-user {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--clr-primary-bright);
    margin-bottom: 0.2rem;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

.comment-input-group {
    display: flex;
    gap: 0.5rem;
}

.comment-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-glass-border);
    border-radius: 4px;
    padding: 0.6rem;
    color: var(--clr-text-main);
    font-family: inherit;
    outline: none;
}

.comment-input:focus {
    border-color: var(--clr-primary);
}

.btn-post-comment {
    background: var(--clr-primary);
    border: none;
    color: var(--clr-bg);
    padding: 0 1rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-post-comment:hover {
    background: var(--clr-primary-bright);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        height: 0;
        overflow: hidden;
    }

    to {
        opacity: 1;
        height: auto;
    }
}

.modal-actions {
    margin-top: auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

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

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--clr-text-main);
    font-size: 3rem;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-smooth);
}

.search-close:hover {
    color: var(--clr-primary-bright);
    transform: scale(1.1) rotate(90deg);
}

.search-container {
    width: 90%;
    max-width: 800px;
    transform: translateY(30px);
    transition: transform var(--transition-smooth);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

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

.search-form::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
}

.search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--clr-text-main);
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--font-heading);
    font-weight: 700;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.search-submit {
    flex-shrink: 0;
}

/* Mobile Bottom Nav Hidden by Default */
.mobile-bottom-nav {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .modal-content-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .nav-links {
        display: none;
        /* Hidden on tablet portrait and below for simplicity without JS */
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .comic-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

}

@media (max-width: 600px) {
    .header-container {
        padding: 0 1rem;
    }

    .actions .btn-primary {
        display: none;
        /* Sign In button hidden on mobile, use Account in bottom nav */
    }

    .logo {
        font-size: 1.25rem;
    }


    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .search-form::after {
        display: none;
    }

    .search-input {
        border-bottom: 2px solid var(--clr-primary);
        padding-bottom: 0.5rem;
    }

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

    .modal-content-grid {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .filters {
        flex-wrap: wrap;
        gap: 0.5rem;
    }


    .modal-meta-data {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-window {
        width: 95%;
        margin-top: 5vh;
        max-height: 85vh;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(18, 18, 26, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--clr-glass-border);
        justify-content: space-around;
        align-items: center;
        padding: 0.7rem 0;
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom, 0.7rem);
        box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
    }


    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;
        color: var(--clr-text-muted);
        text-decoration: none;
        transition: color var(--transition-fast);
        padding: 0.2rem;
    }

    .mobile-bottom-nav .nav-item svg {
        width: 28px;
        height: 28px;
        transition: transform var(--transition-fast), filter var(--transition-fast);
    }

    .mobile-bottom-nav .nav-item span {
        display: none;
    }

    .mobile-bottom-nav .nav-item.active,
    .mobile-bottom-nav .nav-item:hover {
        color: var(--clr-primary-bright);
    }

    .mobile-bottom-nav .nav-item.active svg,
    .mobile-bottom-nav .nav-item:hover svg {
        transform: translateY(-2px);
        filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.6));
    }

    /* Add bottom padding to body so content isn't covered by fixed nav */
    body {
        padding-bottom: 70px;
    }
}

/* Custom Toast Notification */
.custom-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.custom-toast {
    background: var(--clr-surface);
    color: var(--clr-text-main);
    padding: 1.2rem 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left: 4px solid #ff4d4d;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    pointer-events: auto;
    max-width: 400px;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast-icon {
    color: #ff4d4d;
    flex-shrink: 0;
}

.custom-toast-content {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-toast-close {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    transition: color var(--transition-fast);
}

.custom-toast-close:hover {
    color: var(--clr-text-main);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--clr-glass-border);
    z-index: 9999;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.cookie-content p a {
    color: var(--clr-primary);
    text-decoration: none;
}

.cookie-content p a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    .cookie-actions button {
        flex: 1;
    }
}