:root {
    --bg-color: #f1f2f6;
    --text-color: #2f3542;
    --card-bg: #ffffff;
    --accent: #ff4757; /* More vibrant red */
    --secondary: #57606f;
    --sidebar-width: 320px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; /* Remove blue flash on mobile */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.container { display: flex; min-height: 100vh; }

/* Desktop Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    padding: 30px;
    position: fixed;
    height: 100vh;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo-area { margin-bottom: 25px; text-align: left; }
.logo-img { display: none !important; }
.logo-area h2 {
    font-size: 13px; 
    font-weight: 800; 
    color: var(--text-color);
    display: flex; 
    align-items: center; 
    gap: 8px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap; /* Force single line */
}

/* Info Icon (Question mark) */
.info-icon {
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    width: 20px !important; 
    height: 20px !important; 
    min-width: 20px !important; 
    min-height: 20px !important;
    border: 1.5px solid #d1d5db !important; 
    border-radius: 50% !important;
    font-size: 11px !important; 
    font-weight: 700 !important;
    cursor: pointer !important;
    color: #9ca3af !important; 
    font-style: normal !important; 
    flex-shrink: 0 !important;
    transform-origin: 50% 50%;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease, border-color 0.15s ease;
    will-change: transform;
}

.info-icon:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    transform: scale(1.18);
}

/* Logo card heart animation */
.logo-card-item .heart-icon svg {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
    filter: none;
    will-change: transform, filter;
}

.logo-card-item .heart-icon:hover svg path {
    fill: #ff4757;
}

.logo-card-item .heart-icon:hover svg {
    transform: scale(1.1);
    /* Apply glow to the whole SVG to avoid Chrome path-filter artifacts */
    filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.55));
}

.search-container { margin-bottom: 25px; }
.search-wrap { position: relative; }
.search-input {
    width: 100%; padding: 12px; border: 1px solid #eee;
    border-radius: 10px; background: #f9f9f9; outline: none;
    /* Leave space for clear button + reset label */
    padding-right: 190px;
}

.reset-filter-label {
    position: absolute;
    right: 46px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.reset-filter-label:hover {
    background: rgba(37, 99, 235, 0.14);

}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: none;
    font-size: 20px;
    line-height: 1;
}

.search-clear:hover { background: rgba(0,0,0,0.04); color: #6b7280; }

.filters { display: flex; flex-direction: column; gap: 10px; }
.filter-btn {
    padding: 12px; border: none; background: transparent;
    text-align: left; font-size: 15px; cursor: pointer;
    border-radius: 8px; color: var(--secondary);
    display: flex; align-items: center; gap: 10px;
}
.filter-btn:hover { background: #f1f2f6; }
.filter-btn.active { background: var(--accent); color: white; }

.btn-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 20px;
    width: 20px;
    font-size: 16px;
    flex-shrink: 0;
}

.filter-btn.active .btn-emoji {
    filter: brightness(0) invert(1);
    transform: translateY(-0.5px); /* Fine-tune position when active */
}

/* Filter icons (SVG): red by default, white when active */
.btn-emoji.svg {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn.active .btn-emoji.svg { color: #fff; }

.btn-emoji.svg svg {
    width: 16px;
    height: 16px;
    display: block;
}

.sidebar-footer { margin-top: auto; font-size: 13px; }
.footer-top { margin-bottom: 12px; color: #9ca3af; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { color: var(--secondary); cursor: pointer; transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }

/* Gallery */
.gallery-wrapper { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); padding: 30px; }
.grid { width: 100%; }
.grid-sizer, .grid-item { width: calc(33.333% - 14px); margin-bottom: 20px; }

.grid-item {
    float: left; border-radius: 20px; overflow: hidden;
    background: var(--card-bg); position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.grid-item.loaded { opacity: 1; transform: translateY(0); }
.grid-item img { display: block; width: 100%; height: auto; }

/* Skeleton loading */
.skeleton-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.skeleton-bar {
    height: 12px;
    margin: 14px 16px 16px;
    border-radius: 999px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.skeleton-img::after,
.skeleton-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.degree-badge {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(4px);
    padding: 0;
    border-radius: 20px; font-size: 13px;
    font-weight: 700; color: #ff4757; z-index: 2;
    display: flex; align-items: center; justify-content: center; 
    min-width: 78px;
    height: 32px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    border: none;
    transition: background 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.degree-badge.show-votes {
    background: #000; /* Parent background turns black to eliminate white borders */
}

.badge-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0 14px;
    box-sizing: border-box;
}

/* Slider (votes info) */
.badge-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    gap: 4px;
    padding: 0 14px;
    box-sizing: border-box;
    z-index: 3;
}

.degree-badge.show-votes .badge-content {
    transform: translateX(-100%);
}

.degree-badge.show-votes .badge-slider {
    transform: translateX(0);
}

.votes-count { display: none !important; }

.overlay {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    max-height: 85%;
    height: auto;
    padding: 20px; 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
    color: white; 
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s;
    transform: translateY(100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 10; /* Increased to stay above not-keto-overlay */
    pointer-events: none;
    overflow-y: auto; /* Allow scrolling on long text */
    -webkit-overflow-scrolling: touch;
}

/* Not-keto warning styles */
.not-keto img {
    filter: blur(12px) grayscale(0.5);
    transition: filter 0.4s ease;
}

.not-keto-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.not-keto-icon {
    font-size: 56px;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.6));
}

/* On hover/tap: remove blur and show lighter overlay with text */
@media (min-width: 769px) {
    .grid-item.not-keto:hover img { filter: blur(0) grayscale(0); }
    .grid-item.not-keto:hover .not-keto-overlay { opacity: 0; }
}

.grid-item.not-keto.tapped img { filter: blur(0) grayscale(0) !important; }
.grid-item.not-keto.tapped .not-keto-overlay { opacity: 0 !important; }

/* Special overlay style for not-keto text */
.not-keto .overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%) !important;
    justify-content: center !important;
    align-items: center !important;
}

.not-keto-msg {
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px;
}

/* Desktop hover */
@media (min-width: 769px) {
    .grid-item:hover .overlay { transform: translateY(0); opacity: 1; pointer-events: auto; }
}

/* Universal tapped state */
.grid-item.tapped .overlay { transform: translateY(0) !important; opacity: 1 !important; pointer-events: auto !important; }

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-bottom: 8px;
    width: 100%;
}

.overlay h3 { 
    font-size: 14px; 
    margin-bottom: 0; 
    color: #fff; 
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0; /* allow ellipsis in flex header on mobile */
    flex: 1;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .search-input { padding-right: 165px; }
    .reset-filter-label {
        right: 44px;
        font-size: 10px;
        padding: 4px 8px;
    }
}

.overlay-share-btn {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    opacity: 0.8;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
    flex-shrink: 0;
    will-change: transform;
}

.overlay-share-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.overlay-share-btn:active {
    transform: scale(0.9);
}

.overlay-share-btn svg {
    width: 16px;
    height: 16px;
}

.overlay p { 
    font-size: 13px; 
    line-height: 1.4; 
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
    word-wrap: break-word;
}

.more-link {
    color: #4dabf7 !important; 
    font-weight: 800;
    cursor: pointer;
    margin-left: 4px;
    display: inline-block;
    text-decoration: none; /* Removed underline */
}

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

.logo-card-item { 
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    background: #fff; 
    aspect-ratio: 1/1; 
    position: relative;
    overflow: hidden;
}

.logo-card-img {
    width: 64% !important;
    height: auto;
    display: block;
    z-index: 1;
}

/* Specific overlay for the info/logo card to cover full height if needed */
.logo-card-item .overlay {
    max-height: 100% !important;
    height: 100% !important;
    justify-content: flex-start !important;
    padding: 24px !important;
}

.logo-card-item .overlay h3 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    font-size: 18px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: 800;
}

.heart-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
    transform: translateY(-10px);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
    user-select: none;
}

@media (max-width: 768px) {
    .heart-icon { display: none !important; }
    .logo-card-item .overlay h3 { display: none !important; }
    .logo-card-item .overlay {
        justify-content: center !important;
        padding: 15px !important;
    }
    .logo-card-item .overlay p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }

    .about-text-desktop { display: none !important; }
    .about-text-mobile { display: block !important; }
}

@media (min-width: 769px) {
    .about-text-desktop { display: block; }
    .about-text-mobile { display: none; }
}

.heart-icon svg {
    width: 46px;
    height: 46px;
    display: block;
}

.logo-card-item .overlay p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 !important;
    text-align: center;
}

.logo-card-item .overlay .overlay-header {
    display: none !important;
}

/* Desktop only improved typography for info card */
@media (min-width: 769px) {
    .logo-card-item .overlay h3 {
        font-size: 22px;
        margin-bottom: 2px !important;
        width: 100%;
        text-align: center;
    }

    .heart-icon svg {
        width: 69px;
        height: 69px;
    }

    .logo-card-item .overlay p {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 20px;
        text-align: center;
    }
}

.gallery-main-title { display: none; }
.mobile-only { display: none; }

/* Empty state */
.empty-state {
    margin: 18px 0 10px;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eef2f7;
    text-align: center;
}

.empty-title { font-weight: 800; font-size: 16px; color: var(--text-color); margin-bottom: 6px; }
.empty-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.empty-reset {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
}

/* Back-to-top */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.back-to-top .icon-close { display: none; }
.back-to-top.as-close .icon-up { display: none; }
.back-to-top.as-close .icon-close { display: block; }

@media (max-width: 768px) {
    /* On mobile we close via the floating button */
    .close-modal { display: none !important; }
}

.back-to-top svg {
    width: 26px;
    height: 26px;
    stroke: #000;
    stroke-width: 4px;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:active {
    transform: scale(0.9);
}

/* Share button styling */
.share-btn-round {
    background: #f1f2f6;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2f3542;
    transition: all 0.2s ease;
}

.share-btn-round:hover {
    background: #e1e2e6;
    color: var(--accent);
}

.share-btn-round:active {
    transform: scale(0.92);
}

.overlay-author {
    cursor: pointer;
    transition: color 0.15s ease;
}

@media (min-width: 769px) {
    .overlay-author:hover {
        color: #3498db !important;
        text-decoration: none;
    }
}

/* Deep-link blur */
body.deeplink-active .container {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

/* Onboarding */
.onboarding-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(400px, calc(100% - 32px));
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 2200;
    text-align: center;
}

.onboarding-title { 
    font-weight: 800; 
    font-size: 18px;
    margin-bottom: 12px; 
    color: var(--text-color);
}

.onboarding-line { 
    font-size: 14px; 
    color: #4b5563; 
    margin: 8px 0; 
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.onboarding-icon {
    font-size: 18px;
    min-width: 24px;
}

.onboarding-actions { margin-top: 20px; }
.onboarding-btn {
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: 14px;
    padding: 12px 30px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    width: 100%;
}

.onboarding-btn:active { transform: scale(0.96); }

/* Mobile Only */
@media (max-width: 768px) {
    .degree-badge {
        min-width: 60px;
        height: 26px;
        font-size: 11px;
        padding: 0;
        top: 10px;
        right: 10px;
    }
    
    .badge-content {
        padding: 0 10px;
    }

    .badge-slider {
        font-size: 11px;
    }

    .mobile-only { display: block !important; }
    .container { flex-direction: column; }
    .sidebar {
        width: 100% !important; height: auto !important; position: sticky !important; top: 0 !important;
        padding: 10px 15px !important; border-right: none !important; border-bottom: 1px solid #eee !important;
        display: block !important; z-index: 1000 !important; background: #fff !important;
    }
    .logo-area, .sidebar-footer { display: none !important; }
    
    .search-container { display: block !important; margin-bottom: 10px !important; }
    
    .gallery-main-title {
        display: flex !important; align-items: center !important; justify-content: center !important;
        gap: 10px !important; font-size: 16px !important; margin: 10px 0 !important;
        font-weight: 800 !important; text-transform: uppercase !important; width: 100% !important;
    }
    .filters {
        display: flex !important; flex-direction: row !important;
        overflow-x: auto !important; gap: 8px !important; width: 100% !important;
        padding: 5px 56px 10px 0 !important; position: relative !important;
        scrollbar-width: none;
    }
    .filters::-webkit-scrollbar { display: none; }
    
    .filter-btn {
        display: flex !important; background: #f1f2f6; white-space: nowrap;
        padding: 8px 14px; font-size: 13px; flex-shrink: 0 !important; border-radius: 8px;
    }

    .mobile-only-menu {
        display: flex !important; position: absolute !important; right: 0 !important; top: 5px !important;
        height: 34px !important; background: #fff !important; border: 1.5px solid #eee !important;
        padding: 0 10px !important; align-items: center !important; z-index: 10;
    }

    .gallery-wrapper { margin-left: 0; width: 100%; padding: 10px; }
    .grid-sizer, .grid-item { width: calc(50% - 7px); margin-bottom: 14px; }
    .logo-card-img { width: 64% !important; max-width: 64% !important; height: auto; z-index: 1; }
}

/* Modals Refined */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
    z-index: 2000; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal {
    background: #fff; width: 92%; max-width: 450px; padding: 40px 30px;
    border-radius: 30px; position: relative; max-height: 85vh; overflow-y: auto;
    transform: scale(0.9) translateY(20px); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    color: #111;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: none;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    z-index: 10;
    padding-bottom: 4px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.close-modal:hover {
    background: #fff;
    color: var(--accent);
    transform: scale(1.15) translateZ(0);
}

/* Specific style for info modals (no circles) */
#menu-modal .close-modal,
#info-keto .close-modal,
#how-to .close-modal,
#help .close-modal,
#contacts .close-modal {
    background: transparent;
    border: none;
}

#menu-modal .close-modal:hover,
#info-keto .close-modal:hover,
#how-to .close-modal:hover,
#help .close-modal:hover,
#contacts .close-modal:hover {
    background: transparent;
}

/* In long description modals: keep image fixed and scroll only text */
#description-modal,
#post-modal {
    overflow: hidden !important; /* override .modal overflow-y */
    display: flex;
    flex-direction: column;
}

#description-modal .desc-image-container,
#post-modal .desc-image-container {
    flex: 0 0 auto;
}

#description-modal .desc-text,
#post-modal .post-caption {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
    padding-bottom: 22px;
}

/* Error banner */
.error-banner {
    margin: 14px 0 10px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(255,71,87,0.25);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    text-align: center;
}

.error-title { font-weight: 900; font-size: 16px; color: var(--text-color); margin-bottom: 6px; }
.error-subtitle { font-size: 13px; color: #6b7280; margin-bottom: 12px; }

.error-retry {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
}

.error-retry:active { transform: scale(0.98); }

/* Modal Content Formatting */
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; color: var(--text-color); text-transform: uppercase; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }
.modal p { font-size: 15px; line-height: 1.6; color: #4b5563; margin-bottom: 20px; }
.modal-list { list-style: none; margin-bottom: 25px; }
.modal-list li { 
    background: #f9fafb; padding: 15px; border-radius: 15px; margin-bottom: 10px; 
    font-size: 14px; line-height: 1.5; border: 1px solid #f0f0f0;
}
.modal-list li strong { color: var(--accent); display: block; margin-bottom: 4px; }
.modal a { color: #1e3799; text-decoration: none; font-weight: 700; }
.modal a:hover { text-decoration: underline; }

/* Menu Specific */
.mobile-menu-content h2 { border: none; text-align: center; }
.menu-list { display: flex; flex-direction: column; gap: 12px; }
.menu-item { 
    background: #f3f4f6; padding: 18px; border-radius: 18px; 
    font-weight: 700; text-align: center; cursor: pointer; transition: background 0.2s; 
}
.menu-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}

.modal-back-btn {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    text-align: center;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
}

.details-link {
    color: #4dabf7;
    font-weight: 700;
    cursor: pointer;
    margin-left: 5px;
    font-size: 13px;
    text-decoration: none;
}

.inline-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #f1f2f6;
    border-radius: 50%;
    font-size: 11px;
    color: var(--secondary);
    cursor: pointer;
    margin-left: 4px;
    font-style: normal;
    border: 1px solid #ddd;
    vertical-align: middle;
}
.spinner { width: 35px; height: 35px; border: 4px solid #f3f3f3; border-top: 4px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { 100% { transform: rotate(360deg); } }
