/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    flex: 1 0 auto;
}

/* Header styles */
.header {
    text-align: center;
    padding: 30px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title i {
    margin-right: 15px;
    color: #ffd700;
    -webkit-text-fill-color: #ffd700;
}

/* Top right actions */
.top-actions {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.action-btn i {
    font-size: 14px;
}

.action-btn img {
    width: 16px;
    height: 16px;
    filter: invert(1) brightness(1.2);
    display: block;
}

.actions-popover {
    position: absolute;
    top: 48px;
    right:0px;
    background: rgba(0, 0, 0, 0.397);
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.199);
    border-radius: 10px;
    padding: 8px 10px;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.popover-inner {
    padding: 8px 0px;
    max-width: 220px;
    width: 100%;
}

.popover-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.popover-body {
    font-size: 12px;
    line-height: 1.6;
}

.popover-meta {
    margin-top: 6px;
    font-size: 11px;
    opacity: 0.7;
}

.subtitle {
    margin-bottom: 20px;
    opacity: 0.9;
}

.subtitle p {
    margin: 5px 0;
}

.subtitle a {
    color: #4fc3f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.subtitle a:hover {
    color: #29b6f6;
}

.version {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Status icon next to cv-status */
.status-rocket {
    color: #4fc3f7; /* 默认火箭颜色，可按需调整 */
}
.status-rocket svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
}

.attribution {
    font-size: 1.1rem;
    font-weight: 500;
}

.donation-links {
    margin-top: 20px;
}

.donation-links p {
    margin-bottom: 10px;
    color: #4fc3f7;
}

.donate-btn {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 16px;
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
}

.donate-btn i {
    margin-right: 8px;
}

/* Section styles */
.section {
    margin-bottom: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Warning card */
.warning-card {
    text-align: center;
    padding: 40px;
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    border-radius: 15px;
    margin: 20px 0;
}

.warning-card h3 {
    color: #ffc107;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.warning-card h3 i {
    margin-right: 10px;
}

.warning-card p {
    margin: 15px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.continue-btn {
    margin-top: 25px;
    padding: 12px 25px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.continue-btn i {
    margin-right: 8px;
}

/* Loading indicator */
.loading-indicator {
    text-align: center;
    padding: 40px;
}

/* 使 Loading 作为全屏覆盖层*/
#loading-section {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999;
}

/* 强制隐藏（供 JS/属性切换使用） */
#loading-section[hidden],
#loading-section.is-hidden,
#loading-section[aria-hidden="true"] {
    display: none !important;
}

.loading-indicator i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.loading-indicator p {
    font-size: 1.2rem;
    font-weight: 500;
}

/* 圆环加载动画 */
.loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px auto;
}

.loader:before, .loader:after {
    content: '';
    border-radius: 50%;
    position: absolute;
    inset: 0;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3) inset;
}

.loader:after {
    box-shadow: 0 3px 0 #ffd700 inset;
    animation: rotate 2s linear infinite;
}

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

/* 移动端基础适配 - 简化版 */
@media (max-width: 999px) {
    .loader {
        width: 80px;
        height: 80px;
    }
}

/* Selection grid */
.selection-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .map-header .instructions-card-title {
        width: 100%;
        margin-bottom: 4px;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .header-actions > * {
        width: 100%;
        justify-content: center;
    }
    .selection-grid {
        grid-template-columns: 1fr;
    }
}

.selection-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffd700;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.current-selection {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.9;
}

.current-selection span {
    color: #4fc3f7;
    font-weight: 600;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}


.nightlord-btn,
.map-btn {
    padding: 12px 16px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nightlord-btn:hover,
.map-btn:hover {
    background: linear-gradient(45deg, #3498db, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.nightlord-btn.active,
.map-btn.active {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Instructions */
.instructions-card {
    text-align: center;
}

.instructions-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    /* margin-bottom: 25px; */
    color: #ffd700;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 12px; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 10px;
    width: 100%;
}

.map-header .instructions-card-title {
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    /* text-align: left; */
}
.map-header .instructions-card-title i {
    margin-right: 5px;
}

.header-actions {
    padding-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 10px;
}

.instruction-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    /* margin-bottom: 10px; */
}

.instruction-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(79, 195, 247, 0.3);
    font-size: 12px;
}

.instruction-item i {
    font-size: 1rem;
    color: #4fc3f7;
    min-width: 20px;
}

.instruction-item span {
    font-weight: 500;
}

.reset-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #a11d0e, #9b281b);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    /* width: 80%; */
    align-self: center;
}

.inline-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.toggle-poi-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    background: linear-gradient(45deg, #6c757d, #8a9096); /* 关闭：灰色 */
    color: #fff;
}

.toggle-poi-btn.active {
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.35);
    background: linear-gradient(45deg, #27ae60, #2ecc71); /* 开启：绿色 */
}

.toggle-poi-btn:not(.active):hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #7a8288, #9aa0a6); /* 关闭态：灰色 hover */
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); */
}

.toggle-poi-btn.active:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #2fd57a, #27ae60); /* 开启态：绿色 hover */
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.45);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.reset-btn i {
    margin-right: 8px;
}

/* Blue styling for the "移除所有兴趣点" button */
#clear-poi-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

#clear-poi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.cv-btn {
    padding: 12px 30px;
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    display: inline-block;
}

.cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.cv-btn i {
    margin-right: 8px;
}

.cv-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1em;
}

.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
    margin-top: 20px;
    margin-left: 20px;
}

.help-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.45), 0 0 12px rgba(79, 195, 247, 0.6);
}

.help-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 固定“使用教程”按钮到页面左上角 */
#help-btn {
    position: fixed;
    top: 16px;
    left: 20px;
    z-index: 200;
}

/* Results */
.results-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* align-items: center; */
    /* justify-content: center; */
}

@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile adaptations for map display */
@media (max-width: 768px) {
    .map-container {
        padding: 0 12px;
        min-height: auto;
    }

    #map-canvas {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    #seed-image-container img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .selection-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 12px;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.35);
    }

    .selection-overlay .overlay-message {
        max-width: 90%;
        text-align: center;
        background: rgba(0, 0, 0, 0.4);
        padding: 10px 12px;
        border-radius: 12px;
        backdrop-filter: blur(2px);
    }
}

.seed-counter {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seed-counter h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffd700;
    /* padding-bottom: 8px; */
}

.seed-count {
    font-size: 3rem;
    font-weight: 700;
    color: #4fc3f7;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.seed-count.no-seeds {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: 600;
}

.map-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.overlay-message {
    text-align: center;
    color: #ffffff;
}

.overlay-message i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 15px;
    display: block;
}

.overlay-message p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.overlay-message small {
    font-size: 0.9rem;
    opacity: 0.7;
    display: block;
}

/* Context Menu Styles */
.context-menu {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 160px;
    overflow: hidden;
}

.context-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.context-menu-item:hover {
    background: rgba(79, 195, 247, 0.1);
    color: #0066cc;
}

.context-menu-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

#map-canvas {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: #2b2b2b;
    width: 100%;
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
}

#seed-image-container {
    text-align: center;
    min-width: 900px;
}



#seed-image-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border: 2px solid #ffd700;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.seed-details {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seed-details h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffd700;
    text-align: center;
}

.seed-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    padding: 20px;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(79, 195, 247, 0.3);
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #4fc3f7;
}

.info-card p {
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .title {
        font-size: 2rem;
    }

    .section {
        padding: 20px;
    }

    .selection-card {
        padding: 20px;
    }

    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 8px;
    }

    .nightlord-btn,
    .map-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .instruction-grid {
        /* grid-template-columns: instruction-item; */
        display: flex;
        flex-direction: row;
    }

    /* .instruction-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    } */

    #seed-image-container {
        text-align: center;
        min-width: 0;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 195, 247, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 195, 247, 0);
    }
}

/* ===== Footer styles ===== */
.footer {
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 16px;
    margin-top: 40px;
    max-width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 12px;
    font-weight: 500;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: #29b6f6;
    text-decoration: underline;
}

.active-poi {
    animation: pulse 2s infinite;
}

/* Tooltips */
.tooltip {
    position: relative;
    /* cursor: help; */
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Place help button tooltip to the right */
#help-btn.tooltip::after {
    top: 50%;
    left: calc(100% + 8px);
    bottom: auto;
    transform: translateY(-50%);
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.modal-header h3 i {
    margin-right: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e74c3c;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    color: #fff;
}

.help-section h4 {
    color: #4fc3f7;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section h4:first-child {
    margin-top: 0;
}

.help-section p,
.help-section li {
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.9;
}

.help-section ol,
.help-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.help-section ul ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.help-section strong {
    color: #ffd700;
    font-weight: 600;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.7);
}

/* Unknown nightlord styling */
.unknown-nightlord-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.unknown-nightlord {
    background: linear-gradient(135deg, #0f0f23, #1a1a3e, #2c2c54) !important;
    font-weight: 600;
    font-size: 1.1rem !important;
    padding: 15px 25px !important;
    min-width: 250px;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
    border: 1px solid #4a4a7c;
    color: #e0e0ff !important;
}


.unknown-nightlord:hover {
    background: linear-gradient(135deg, #1a1a3e, #2c2c54, #3c3c6e) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 76, 124, 0.6);
}


.unknown-nightlord.active {
    background: linear-gradient(135deg, #8e44ad, #9b59b6, #a569bd) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.6);
    transform: translateY(-1px);
}

/* Possible seeds section */
.possible-seeds-section {
    margin-top: 0;
}

.possible-seeds-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
}

.possible-seeds-card h4 {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.possible-seeds-card .description {
    color: #4fc3f7;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.possible-seeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.seed-item {
    padding: 8px 4px;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    font-size: 0.85rem;
}

.seed-item:hover {
    background: linear-gradient(45deg, #3498db, #2980b9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.seed-item.selected {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a2e;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.seed-item.keyboard-selected {
    background: linear-gradient(45deg, #4fc3f7, #29b6f6);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.4);
    border: 2px solid #4fc3f7;
}

/* Custom scrollbar for seeds grid */
.possible-seeds-grid::-webkit-scrollbar {
    width: 8px;
}

.possible-seeds-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.possible-seeds-grid::-webkit-scrollbar-thumb {
    background: rgba(79, 195, 247, 0.5);
    border-radius: 4px;
}

.possible-seeds-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 195, 247, 0.7);
}

/* Boss table styles */
.boss-table-container {
    margin-top: 20px;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.boss-table-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.boss-table-section h4 {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.boss-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.boss-table thead {
    background: linear-gradient(45deg, #2c3e50, #34495e);
}

.boss-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #ffd700;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 0.85rem;
}

.boss-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.8rem;
}

.boss-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.boss-table tbody tr:hover {
    background: rgba(79, 195, 247, 0.1);
    transition: background-color 0.3s ease;
}

.boss-table td:first-child {
    text-align: center;
    font-weight: 500;
    color: #e8f4fd;
}

.boss-table td:nth-child(2) {
    font-weight: 600;
    color: #4fc3f7;
    text-align: center;
}

/* Nightlord tag styles */
.nightlord-tag {
    display: inline-block;
    padding: 2px 6px;
    margin: 1px 2px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
    min-width: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.nightlord-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Different colors for each nightlord */
.nightlord-sg {
    background: #ee5a52;
    color: white;
}

.nightlord-dz {
    background: #44a08d;
    color: white;
}

.nightlord-c {
    background: #2980b9;
    color: white;
}

.nightlord-sm {
    background: #a2d8ee;
    color: #4d5051;
}

.nightlord-sy {
    background: #fdcb6e;
    color: #4d5051;
}

.nightlord-rm {
    background: #e84393;
    color: white;
}

.nightlord-bl {
    background: #0984e3;
    color: white;
}

.nightlord-bdqm {
    background: #6c5ce7;
    color: white;
}

/* Responsive adjustments for boss tables */
@media (max-width: 768px) {
    .boss-table-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .boss-table-section {
        padding: 15px;
    }
    
    .boss-table {
        font-size: 0.8rem;
    }
    
    .boss-table th,
    .boss-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .boss-table th {
        font-size: 0.8rem;
    }
    
    .nightlord-tag {
        font-size: 0.75em;
        padding: 1px 4px;
        margin: 1px;
        min-width: 28px;
    }
}

@media (max-width: 480px) {
    .boss-table {
        font-size: 0.7rem;
    }
    
    .boss-table th,
    .boss-table td {
        padding: 6px 3px;
        font-size: 0.7rem;
    }
    
    .boss-table-section h4 {
        font-size: 1rem;
    }
    
    .nightlord-tag {
        font-size: 0.7em;
        padding: 1px 3px;
        margin: 0.5px;
        min-width: 24px;
    }
}