@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-black: #000;
    --text-light: #ccc;
    --bg-dark: #111;
    --card-bg: #1a1a1a;
    --primary-blue: #007bff;
    --blue-hover: #0056b3;
    --green-success: #28a745;
    --red-error: #dc3545;
    --spacing-unit: 1.5rem;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-black);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    font-size: 16px;
    scroll-behavior: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    line-height: 0;
}

.logo img {
    height: 210px;
    width: 150px;
    display: block;
    object-fit: contain;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 2px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#nav-right {
    display: flex;
    gap: 15px;
}

#nav-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

#nav-right a:hover {
    opacity: 0.7;
}

#user-menu {
    display: none;
    position: relative;
}

#user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
}

#dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    list-style: none;
    padding: 10px 0;
    min-width: 150px;
}

#dropdown li a {
    padding: 8px 15px;
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
}

#dropdown li a:hover {
    background: #333;
}

/* Login Section */
.login-section {
    min-height: 100vh;
    padding: 100px 20px;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-light);
    margin-bottom: 30px;
}

.google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--card-bg);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 0.9rem;
}

.google-login img {
    width: 20px;
    margin-right: 8px;
}

.google-login:hover {
    background: #333;
}

.separator {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 15px 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form input {
    padding: 10px;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

.login-form button {
    padding: 10px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.login-form button:hover {
    background: var(--blue-hover);
}

.signup-link {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.signup-link a {
    color: var(--primary-blue);
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Signup Section */
.signup-section {
    min-height: 100vh;
    padding: 100px 20px;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.google-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--card-bg);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 0.9rem;
}

.google-signup img {
    width: 20px;
    margin-right: 8px;
}

.google-signup:hover {
    background: #333;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signup-form input {
    padding: 10px;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

.signup-form input::placeholder {
    color: #888;
}

.signup-form button {
    padding: 10px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.signup-form button:hover {
    background: var(--blue-hover);
}

.terms {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 15px;
}

.terms a {
    color: var(--primary-blue);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.login-link {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.login-link a {
    color: var(--primary-blue);
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* QR Code Section */
.qr-code {
    padding: 60px 20px;
    background: var(--bg-dark);
    text-align: center;
}

.qr-code h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.qr-code p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.qr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 10px;
}

.qr-grid img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* Client Feedback Section */
.client-feedback {
    padding: 60px 20px;
    background: var(--primary-black);
    text-align: center;
}

.client-feedback h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-grid img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* Recent Songs Section */
.recent-songs {
    padding: 60px 20px;
    background: var(--bg-dark);
    text-align: center;
}

.recent-songs h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.songs-grid img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* Benefits Section */
.benefits {
    padding: 60px 20px;
    background: var(--primary-black);
    text-align: center;
}

.benefits h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.benefits ul {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    list-style: none;
}

.benefits ul li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.benefits ul li::before {
    content: '✔';
    color: var(--green-success);
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* FAQ Section */
.faq-section {
    min-height: 100vh;
    padding: 100px 20px;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-content {
    max-width: 1200px;
    width: 100%;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.faq-question:hover {
    background: #333;
}

.faq-answer {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

/* Contact Section */
.contact-section {
    padding: 60px 20px;
    background: var(--primary-black);
    text-align: center;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--card-bg);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.contact-button:hover {
    background: #333;
}

/* Dashboard Section */
.dashboard-section {
    min-height: 100vh;
    padding: 120px 40px;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.dashboard-content {
    max-width: 1200px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.action-button {
    padding: 12px 28px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.action-button:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
}

.action-button.secondary {
    background: #444;
}

.action-button.secondary:hover {
    background: #555;
}

/* Start Song Order Button */
#new-song-empty-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: auto;
    min-width: 150px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

.dashboard-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.panel-card {
    background: #222;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.panel-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.panel-card input,
.panel-card textarea,
.panel-card select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #333;
    color: #fff;
    font-size: 1rem;
}

.panel-card input:disabled {
    background: #444;
    color: #888;
}

.panel-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-card button {
    padding: 10px 15px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.panel-card button:hover {
    background: var(--blue-hover);
}

.panel-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.password-form {
    display: none;
}

.password-form.active {
    display: block;
}

.password-form button {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: 120px;
}

#cancel-password-btn {
    background: #444;
}

#cancel-password-btn:hover {
    background: #555;
}

/* Modal */
.modal {
    display: none;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-content {
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}

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

.close-button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #fff;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.modal label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group select {
    width: 100px;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
}

.phone-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
}

.upload-section {
    display: none;
}

.upload-section label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.upload-section input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal form button {
    padding: 10px 15px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    min-width: 120px;
}

.modal form button:hover {
    background: var(--blue-hover);
}

.modal form button.secondary {
    background: #444;
}

.modal form button.secondary:hover {
    background: #555;
}

.conversation-item {
    background: #222;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.conversation-item:hover {
    background: #333;
}

.conversation-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.conversation-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.modal-overlay.active {
    display: block;
}

/* Pricing Section */
.pricing-section {
    min-height: 100vh;
    padding: 100px 20px;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pricing-content {
    max-width: 1400px;
    width: 100%;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.plan-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.plan-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-card .price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
}

.plan-card ul {
    list-style: none;
    margin-bottom: 20px;
    text-align: left;
}

.plan-card ul li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}

.plan-card ul li:before {
    content: '✔';
    color: var(--green-success);
    position: absolute;
    left: 0;
}

.plan-card button {
    padding: 10px 20px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.plan-card button:hover {
    background: var(--blue-hover);
}

/* About Kirusa */
.kirusa-section {
    padding: 60px 20px;
    background: var(--primary-black);
    text-align: center;
}

.kirusa-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.kirusa-text {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 30px;
}

.kirusa-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.kirusa-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--card-bg);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.kirusa-link:hover {
    background: #333;
}

/* Footer */
.footer {
    padding: 50px 20px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-column p, .footer-column a {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.footer-column a:hover {
    color: #fff;
}

/* Message Box */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 15px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    z-index: 1000;
    display: none;
    color: #fff;
}

.message-box.success {
    border: 2px solid var(--green-success);
}

.message-box.error {
    border: 2px solid var(--red-error);
}

.message-box h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: #fff;
}

.message-box p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.message-box .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.message-box.success .icon {
    color: var(--green-success);
}

.message-box.error .icon {
    color: var(--red-error);
}

.message-box button {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.message-box button:hover {
    background: var(--blue-hover);
}

/* Video Hero Section */
.video-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.infinite-text-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: center;
    z-index: 1;
}

.infinite-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--spacing-unit) 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    z-index: 1;
}

.scroll-arrow {
    font-size: 1.2rem;
    margin-top: 8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Next Section (About Us) */
.next-section {
    position: relative;
    min-height: 80vh;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.section-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: var(--spacing-unit) 20px;
}

.section-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
}

/* Media Gallery Section */
.media-gallery-section {
    padding: 60px 20px;
    background: var(--bg-dark);
    text-align: center;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.media-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.media-poster {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.media-card:hover .media-poster,
.media-card.playing .media-poster {
    opacity: 0;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.media-card:hover .media-overlay,
.media-card.playing .media-overlay {
    opacity: 0;
}

.media-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.media-card:hover .media-play-btn,
.media-card.playing .media-play-btn {
    opacity: 1;
}

.media-card.playing .media-play-btn::before {
    content: '❚❚';
}

.media-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--primary-blue);
    transition: width 0.1s linear;
}

.media-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-card.playing video,
.media-card:hover video {
    opacity: 1;
}

.media-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.media-duration {
    font-size: 0.85rem;
    color: var(--text-light);
}

.media-card.playing {
    border: 2px solid var(--primary-blue);
}

.media-card.error {
    border: 2px solid var(--red-error);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
        height: 60px;
    }
    .logo img {
        height: 40px;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        display: none;
    }
    .nav-menu.active {
        display: flex;
    }
    #nav-right {
        gap: 10px;
    }
    #nav-right a {
        font-size: 0.85rem;
    }
    #user-avatar {
        width: 32px;
        height: 32px;
    }
    #dropdown {
        top: 40px;
        min-width: 120px;
    }
    .login-section {
        padding: 80px 15px;
    }
    .signup-section {
        padding: 80px 15px;
    }
    .faq-section {
        padding: 80px 15px;
    }
    .dashboard-section {
        padding: 80px 15px;
    }
    .pricing-section {
        padding: 80px 15px;
    }
    .qr-code {
        padding: 50px 15px;
    }
    .client-feedback {
        padding: 50px 15px;
    }
    .recent-songs {
        padding: 50px 15px;
    }
    .benefits {
        padding: 50px 15px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    .faq-question {
        font-size: 0.9rem;
    }
    .faq-answer {
        font-size: 0.85rem;
    }
    .dashboard-panel {
        grid-template-columns: 1fr;
    }
    .modal {
        width: 95%;
        max-width: 350px;
        max-height: 90vh;
    }
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    .hero-content {
        padding: 0 15px;
    }
    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .video-hero {
        height: 70vh;
    }
    .infinite-text {
        font-size: clamp(1.2rem, 3vw, 2rem);
    }
    .next-section {
        padding: 50px 15px;
    }
    .section-content {
        padding: var(--spacing-unit) 15px;
    }
    .media-gallery-section {
        padding: 50px 15px;
    }
    .media-grid {
        grid-template-columns: 1fr;
    }
    .media-poster,
    .media-card video {
        height: 150px;
    }
    .media-overlay {
        height: 150px;
    }
    .qr-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .feedback-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .songs-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .navbar {
        padding: 8px 10px;
        height: 50px;
    }
    .logo img {
        height: 35px;
    }
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    .nav-menu.active {
        top: 50px;
        padding: 15px;
    }
    .nav-menu a {
        font-size: 0.85rem;
    }
    #nav-right a {
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .section-subtitle {
        font-size: 0.85rem;
    }
    .dashboard-actions {
        flex-direction: column;
        gap: 10px;
    }
    .action-button {
        width: 100%;
        padding: 8px;
        font-size: 0.85rem;
    }
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 12px;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }
    .panel-card {
        padding: 12px;
    }
    .panel-card h3 {
        font-size: 1.1rem;
    }
    .panel-card input,
    .panel-card textarea,
    .panel-card select {
        padding: 6px;
        font-size: 0.85rem;
    }
    .panel-card button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .modal {
        padding: 10px;
        max-width: 300px;
        max-height: 85vh;
    }
    .modal-header h3 {
        font-size: 1.1rem;
    }
    .close-button {
        font-size: 1.3rem;
    }
    .modal form button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .phone-group select {
        width: 90px;
        font-size: 0.85rem;
    }
    .phone-group input {
        font-size: 0.85rem;
    }
    .footer {
        padding: 40px 10px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .footer-column h3 {
        font-size: 1rem;
    }
    .footer-column p, .footer-column a {
        font-size: 0.8rem;
    }
    .message-box {
        max-width: 280px;
        padding: 12px;
    }
    .message-box h3 {
        font-size: 1.1rem;
    }
    .message-box p {
        font-size: 0.85rem;
    }
    .message-box button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
#captcha-gate { position: fixed; inset: 0; z-index: 99999; display: block; }
#captcha-gate .rcgate-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.42); backdrop-filter: blur(2px); }
#captcha-gate .rcgate-box {
  position: relative; z-index: 2; width: min(520px, 94vw);
  margin: 10vh auto 0; background: #fff; border-radius: 16px;
  padding: 24px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center;
}
#captcha-gate .rcgate-box h3 { margin: 0 0 8px; font-weight: 700; }
#captcha-gate .rcgate-box p { margin: 4px 0 14px; color: #475467; }
#captcha-gate .rcgate-disclosure { font-size: 12px; color: #667085; margin-top: 10px; }
#captcha-gate .rcgate-disclosure a { color: inherit; text-decoration: underline; }

/* ===== Compact dashboard UI overrides (append at end) ===== */

/* Keep dashboard content reasonable */
.dashboard-content{
  max-width: 1040px;
  padding: 24px;
}

/* Cards & text spacing */
.panel-card{ padding: 18px 20px; }
.panel-card h3{ margin-bottom: 12px; font-size: 18px; }
.panel-card p{ margin: 4px 0 8px; font-size: 14px; }

/* Inputs/selects/textarea: normal height + font */
.panel-card input,
.panel-card select,
.panel-card textarea,
#order-form input,
#order-form select,
#order-form textarea{
  height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  box-sizing: border-box;
}
.panel-card textarea,
#order-form textarea{ min-height: 110px; line-height: 1.4; }

/* Buttons: smaller, consistent height */
.action-button,
.panel-card button,
.btn-primary,
.btn-secondary,
.modal form button{
  padding: 8px 14px;
  height: 40px;
  line-height: 1;
  font-size: 14px;
  border-radius: 8px;
  min-width: auto;  /* don’t stretch */
}
.dashboard-actions .action-button{ min-width: 140px; }

/* Form gaps tighter */
.panel-card form{ gap: 10px; }

/* Password form: inline and aligned */
.password-form{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  max-width: 720px;
}
.password-form br{ display:none; } /* remove stray <br> spacing */
.password-form input[type="password"]{
  flex: 1 1 240px;    /* two inputs sit side-by-side on desktop */
  margin: 0;
}
.password-form .action-button{
  flex: 0 0 auto;     /* buttons keep natural size */
}

/* Keep support buttons on one line */
#contact-support-btn{ margin-right: 8px; }

/* Mobile: stack password fields nicely */
@media (max-width: 768px){
  .password-form{
    flex-direction: column;
    align-items: stretch;
  }
  .password-form .action-button{ width: 100%; }
}

/* === Fix: compact password boxes only (prevents oversized textareas/inputs) === */
.password-form input[type="password"],
.password-form textarea{
  height: 40px !important;
  min-height: 40px !important;
  max-height: 44px !important;
  padding: 8px 12px !important;
  line-height: 1.2 !important;
  resize: none !important;
  border-radius: 8px;
  flex: 1 1 260px;
  box-sizing: border-box;
}
