/* Core Layout & Typography */
main.container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: #1e293b !important;
    background-color: #f8fafc;
    padding: 40px 15px !important;
    border-radius: 16px;
}

.palette-hero {
    text-align: center;
    margin-bottom: 25px;
}
.palette-title-main {
    font-size: 2.2rem !important;
    font-weight: 850 !important;
    color: #0f172a !important;
    letter-spacing: -1px !important;
    margin-bottom: 10px !important;
}
.palette-subtitle-main {
    font-size: 16px !important;
    color: #64748b !important;
    font-weight: 500;
}
.palette-subtitle-main strong {
    color: #4f46e5;
    background: #e0e7ff;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Toolbar Control Block */
.toolbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}
.primary-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    transition: transform 0.1s, box-shadow 0.2s;
}
.primary-btn:active {
    transform: scale(0.97);
}
.secondary-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #4f46e5;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.secondary-btn:hover {
    border-color: #4f46e5;
    background: #f5f3ff;
}

/* Active Color Deck Grid */
.palette-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 450px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .palette-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

/* Single Color Column/Card style */
.color-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 15px -3px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

@media (min-width: 640px) {
    .color-card {
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding: 20px 10px;
        height: 450px;
    }
    .color-card:hover {
        transform: translateY(-5px);
    }
}

/* Color block view screen inside card */
.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}
@media (min-width: 640px) {
    .color-preview {
        position: absolute;
        top: 15px;
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        height: 250px;
    }
}

/* Hex label tag button */
.hex-label {
    font-size: 15px;
    font-weight: 850;
    font-family: 'Courier New', Courier, monospace;
    color: #1e293b;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    transition: all 0.15s;
    user-select: none;
}
.hex-label:hover {
    background: #e2e8f0;
    transform: scale(1.03);
}

/* Lock trigger action button */
.lock-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lock-btn:hover {
    background: #f1f5f9;
}
.lock-btn.locked {
    background: #fee2e2;
    color: #ef4444;
}

/* Copy Toast alerts */
.toast-success {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideUpFade 0.25s forwards;
}
@keyframes slideUpFade {
    from { bottom: 10px; opacity: 0; }
    to { bottom: 25px; opacity: 1; }
}

/* FAQ Styles */
.faq-section { max-width: 850px; margin: 60px auto 30px auto; }
.faq-main-title { font-size: 24px !important; font-weight: 850 !important; color: #0f172a; margin-bottom: 30px; text-align: center; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.faq-question { font-size: 16.5px !important; font-weight: 750 !important; color: #0f172a; margin-top: 0; margin-bottom: 10px; }
.faq-answer { font-size: 14.5px; color: #475569; line-height: 1.6; margin: 0; }