@font-face {
    font-family: 'Cartographer';
    src: url('cartographer.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a url('background.jpg') center center / cover no-repeat fixed;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.loading {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.3);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(17, 17, 17, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(42, 42, 42, 0.3);
    backdrop-filter: blur(10px);
}

header {
    background: rgba(10, 10, 10, 0.4);
    color: #ffffff;
    padding: 20px 40px;
    text-align: center;
    border-bottom: 1px solid rgba(26, 26, 26, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.header-top {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-btn {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: #2a2a2a;
    border-color: #ff6b35;
    color: #ff6b35;
}

.brand-title-3d {
    font-size: 6em;
    font-weight: normal;
    font-family: 'Cartographer', sans-serif;
    color: #cc5528;
    text-align: center;
    padding: 0;
    letter-spacing: 8px;
    text-transform: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    gap: 8px;
}

.title-letter {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.title-letter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ff8c42 20%, 
        #ffaa55 50%, 
        #ff8c42 80%, 
        transparent 100%);
    transform: translateY(-50%);
    box-shadow: 
        0 0 12px rgba(255, 140, 66, 0.9),
        0 0 24px rgba(255, 140, 66, 0.7),
        0 0 36px rgba(255, 140, 66, 0.5);
    z-index: 1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.title-letter:hover::before {
    height: 6px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffaa55 15%, 
        #ffcc77 35%, 
        #ffdd99 50%, 
        #ffcc77 65%, 
        #ffaa55 85%, 
        transparent 100%);
    box-shadow: 
        0 0 25px rgba(255, 170, 85, 1),
        0 0 50px rgba(255, 170, 85, 1),
        0 0 75px rgba(255, 170, 85, 0.9),
        0 0 100px rgba(255, 170, 85, 0.7),
        0 0 125px rgba(255, 170, 85, 0.5);
    animation: brighten 1.2s ease-in-out infinite;
}

@keyframes brighten {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 170, 85, 1),
            0 0 40px rgba(255, 170, 85, 0.9),
            0 0 60px rgba(255, 170, 85, 0.7),
            0 0 80px rgba(255, 170, 85, 0.5);
        filter: brightness(1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 200, 100, 1),
            0 0 60px rgba(255, 200, 100, 1),
            0 0 90px rgba(255, 200, 100, 0.9),
            0 0 120px rgba(255, 200, 100, 0.7);
        filter: brightness(1.3);
    }
}

.author {
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 10px;
}

main {
    padding: 40px;
}

.sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    align-items: stretch;
}

.form-section {
    background: rgba(26, 26, 26, 0.4);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 0;
    border: 1px solid rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 30px rgba(255, 107, 53, 0.2), inset 0 0 20px rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.form-section:hover {
    border: 1px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6), 0 0 50px rgba(255, 107, 53, 0.4), inset 0 0 30px rgba(255, 107, 53, 0.2);
}

.form-section h2 {
    color: #ff6b35;
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 107, 53, 0.8);
    padding-bottom: 10px;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    margin: 0 0 25px 0;
    border: 2px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6), 0 0 40px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-center {
    max-width: 50%;
    margin: 0 auto;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffb380;
    font-size: 1.35em;
    text-align: center;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    font-size: 1em;
    background: #0a0a0a;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: center !important;
    text-align-last: center !important;
    direction: ltr;
}

.form-group select:hover {
    border-color: #ff6b35;
    background: #111111;
}

.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background: #111111;
}

.form-group select[multiple] {
    min-height: 150px;
    padding: 10px;
}

.form-group select option {
    background: #0a0a0a;
    color: #ffffff;
    text-align: center !important;
    text-align-last: center !important;
    padding: 8px 15px;
    direction: ltr;
}

.form-group select optgroup {
    text-align: center !important;
    text-align-last: center !important;
    direction: ltr;
}

.form-group select optgroup option {
    text-align: center !important;
    text-align-last: center !important;
    padding: 8px 15px;
    direction: ltr;
}

/* Ensure all select dropdowns have centered options */
select {
    text-align: center !important;
    text-align-last: center !important;
}

select option {
    text-align: center !important;
    text-align-last: center !important;
    direction: ltr;
}

select optgroup {
    text-align: center !important;
    text-align-last: center !important;
    direction: ltr;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #ff6b35;
    color: #ffffff;
    font-weight: 600;
    border: 2px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ff8c42;
    transform: translateY(-2px);
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0, 0, 0, 0.3);
}

.btn-success {
    background: #28a745;
    color: white;
    border: 2px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0, 0, 0, 0.3);
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.prompt-section {
    background: rgba(26, 26, 26, 0.4);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 30px rgba(255, 107, 53, 0.2), inset 0 0 20px rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.prompt-section:hover {
    border: 1px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6), 0 0 50px rgba(255, 107, 53, 0.4), inset 0 0 30px rgba(255, 107, 53, 0.2);
}

.prompt-section h2 {
    color: #ff6b35;
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    margin: 0 0 20px 0;
    border: 2px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6), 0 0 40px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}


.char-counter {
    text-align: right;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9em;
}

.char-counter.safe {
    color: #28a745;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.danger {
    color: #dc3545;
}

.char-counter.critical {
    color: #dc3545;
    font-weight: 700;
}

#generatedPrompt {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Inter', 'Courier New', monospace;
    resize: vertical;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

#generatedPrompt:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.prompt-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.trending-section {
    background: rgba(26, 26, 26, 0.4);
    border-radius: 12px;
    padding: 15px 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 30px rgba(255, 107, 53, 0.2), inset 0 0 20px rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.trending-section:hover {
    border: 1px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6), 0 0 50px rgba(255, 107, 53, 0.4), inset 0 0 30px rgba(255, 107, 53, 0.2);
}

.trending-section h2 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 2em;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    margin: 0 0 10px 0;
    border: 2px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6), 0 0 40px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.trending-banner {
    background: rgba(10, 10, 10, 0.6);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.trending-prompt {
    color: #d0d0d0;
    line-height: 1.8;
}

.trending-prompt-text {
    margin: 0;
    font-size: 1.05em;
    text-align: left;
}

/* Prompt Counter */
.prompt-counter-container {
    margin-top: 20px;
    background: rgba(10, 10, 10, 0.6);
    border-radius: 12px;
    padding: 15px 25px;
    border: 1px solid rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 30px rgba(255, 107, 53, 0.2), inset 0 0 20px rgba(255, 107, 53, 0.1);
    text-align: center;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.prompt-counter-container:hover {
    border: 1px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6), 0 0 50px rgba(255, 107, 53, 0.4), inset 0 0 30px rgba(255, 107, 53, 0.2);
}

.prompt-counter-container h3 {
    color: #ff6b35;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px;
    margin: 0 0 15px 0;
    border: 2px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6), 0 0 40px rgba(255, 107, 53, 0.4), inset 0 0 20px rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.counters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(26, 26, 26, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.counter-item:hover {
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(26, 26, 26, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.2);
}

.counter-item .counter-label {
    font-size: 1.1em;
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-item .counter-number {
    font-size: 3.5em;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
    margin: 15px 0;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    transition: all 0.3s ease;
    min-height: 1.2em;
}

.counter-item .counter-info {
    font-size: 0.9em;
    color: #a0a0a0;
    font-style: italic;
    margin-top: 10px;
}

.help-section {
    background: rgba(26, 26, 26, 0.4);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 30px rgba(255, 107, 53, 0.2), inset 0 0 20px rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.help-section:hover {
    border: 1px solid rgba(255, 107, 53, 0.8);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6), 0 0 50px rgba(255, 107, 53, 0.4), inset 0 0 30px rgba(255, 107, 53, 0.2);
}

.main-accordion-item {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a0a;
    width: 100%;
}

.main-accordion-header {
    color: #ff6b35;
    margin: 0;
    padding: 18px 20px;
    font-size: 2em;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    background: #1a1a1a;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.main-accordion-header:hover {
    background: #222222;
}

.main-accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: bold;
    color: #ff6b35;
    transition: transform 0.3s ease;
}

.main-accordion-item.active .main-accordion-header::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.main-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    background: #0a0a0a;
    text-align: center;
}

.main-accordion-item.active .main-accordion-content {
    max-height: 5000px;
    padding: 20px;
}

.help-content {
    color: #495057;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    margin-bottom: 0;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a0a;
    width: 100%;
}

.accordion-header {
    color: #e0e0e0;
    margin: 0;
    padding: 18px 20px;
    font-size: 1.3em;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    background: #1a1a1a;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid #2a2a2a;
    text-align: center;
}

.accordion-header:hover {
    background: #222222;
    color: #ff6b35;
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: bold;
    color: #ff6b35;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background: #0a0a0a;
    color: #d0d0d0;
    text-align: center;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding: 20px;
}

.accordion-content ul,
.accordion-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.accordion-content li {
    margin-bottom: 8px;
}

.accordion-content p {
    margin-bottom: 15px;
}

.accordion-content strong {
    color: #ff6b35;
}

/* Section Accordion (for form sections like Accompanying Instruments) */
.section-accordion-item {
    margin-bottom: 20px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.section-accordion-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.accompanying-instruments-main-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 1.15em;
    text-align: center;
}

.section-accordion-header {
    color: #e0e0e0;
    margin: 0;
    margin-bottom: 8px;
    padding: 0;
    padding-right: 25px;
    font-size: 1.15em;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: none;
    display: block;
    text-align: center;
}

.section-accordion-header:hover {
    color: #ff6b35;
}

.section-accordion-header::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #ff6b35;
    transition: transform 0.3s ease;
}

.section-accordion-item.active .section-accordion-header::after {
    content: '−';
    transform: rotate(0deg);
}

.section-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    background: transparent;
    text-align: center;
}

.section-accordion-item.active .section-accordion-content {
    max-height: 2000px;
    padding: 0;
}

/* Accompanying Instruments Accordion */
.accompanying-instruments-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.instrument-accordion-item {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a0a;
    transition: all 0.3s ease;
}

.instrument-accordion-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.instrument-accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    user-select: none;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.instrument-accordion-header:hover {
    background: #222222;
}

.instrument-accordion-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #ff6b35;
    flex-shrink: 0;
}

.instrument-accordion-header label {
    cursor: pointer;
    font-weight: 400;
    color: #e0e0e0;
    flex: 1;
    margin: 0;
    font-size: 1em;
}

.instrument-accordion-item:has(input[type="checkbox"]:checked),
.instrument-accordion-item.checked {
    border-color: #ff6b35;
    background: #1a0f0a;
}

.instrument-accordion-item:has(input[type="checkbox"]:checked) .instrument-accordion-header,
.instrument-accordion-item.checked .instrument-accordion-header {
    background: #2a1a0f;
    color: #ff6b35;
}

.instrument-accordion-item:has(input[type="checkbox"]:checked) .instrument-accordion-header label,
.instrument-accordion-item.checked .instrument-accordion-header label {
    color: #ff6b35;
    font-weight: 600;
}

footer {
    background: rgba(10, 10, 10, 0.4);
    color: #d0d0d0;
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(10px);
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
    text-align: center;
}

footer p:last-child {
    margin-bottom: 0;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 25px 20px;
        padding-top: 60px;
    }

    .header-top {
        top: 10px;
        right: 10px;
    }

    .language-btn {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    header h1 {
        font-size: 1.8em;
    }

    main {
        padding: 20px;
    }

    .form-section {
        padding: 20px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group-center {
        max-width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .prompt-actions {
        flex-direction: column;
    }

    .prompt-actions .btn {
        width: 100%;
    }
    
    .counters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .counter-item .counter-number {
        font-size: 2.5em;
    }
    
    .trending-section,
    .trending-banner,
    .prompt-counter-container {
        max-width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prompt-section {
    animation: fadeIn 0.5s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff6b35 #1a1a1a;
}

/* Loading Screen Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
    visibility: hidden !important;
}

.loading-content {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-icon {
    font-size: 280px;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255, 107, 53, 0.9));
    z-index: 10;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.25);
    }
    20% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.2);
    }
    40% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    60% {
        transform: scale(1);
    }
    70% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(1);
    }
    90% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.instruments-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.instrument-icon {
    position: absolute;
    font-size: 70px;
    animation: syncFloat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.6));
    z-index: 5;
}

.instrument-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.instrument-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.instrument-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 0s;
}

.instrument-4 {
    bottom: 15%;
    right: 20%;
    animation-delay: 0s;
}

@keyframes syncFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    10% {
        transform: translateY(-15px) translateX(8px) scale(1.1);
    }
    20% {
        transform: translateY(0) translateX(0) scale(1);
    }
    30% {
        transform: translateY(-12px) translateX(-8px) scale(1.08);
    }
    40% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-10px) translateX(5px) scale(1.05);
    }
    60% {
        transform: translateY(0) translateX(0) scale(1);
    }
    70% {
        transform: translateY(-8px) translateX(-3px) scale(1.03);
    }
    80% {
        transform: translateY(0) translateX(0) scale(1);
    }
    90% {
        transform: translateY(-5px) translateX(2px) scale(1.02);
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
}

.notes-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.note {
    position: absolute;
    font-size: 60px;
    color: #ff6b35;
    animation: syncNoteFloat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.7));
    z-index: 8;
    font-weight: bold;
}

.note-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.note-2 {
    top: 30%;
    right: 10%;
    animation-delay: 0s;
}

.note-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 0s;
}

.note-4 {
    bottom: 20%;
    right: 12%;
    animation-delay: 0s;
}

.note-5 {
    top: 50%;
    left: 5%;
    animation-delay: 0s;
}

.note-6 {
    top: 45%;
    right: 5%;
    animation-delay: 0s;
}

@keyframes syncNoteFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    10% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
    20% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-18px) scale(1.15);
        opacity: 0.95;
    }
    40% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.85;
    }
    60% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    70% {
        transform: translateY(-12px) scale(1.08);
        opacity: 0.8;
    }
    80% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    90% {
        transform: translateY(-8px) scale(1.05);
        opacity: 0.75;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
}

