/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #1e1b4b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.btn-block { width: 100%; text-align: center; display: block; }
.btn-small { padding: 8px 16px; font-size: 0.9em; }
.btn-large { padding: 16px 40px; font-size: 1.1em; }

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--gray);
    transition: color 0.3s;
}
.nav-links a:not(.btn):hover { color: white; }
.nav-links .active { color: white; }

/* Hero */
.hero {
    text-align: center;
    padding: 100px 0 60px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.3em;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9em;
}

/* Features Grid */
.features-preview {
    padding: 80px 0;
}

.features-preview h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

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

.feature-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 80px 0 40px;
    background: rgba(99, 102, 241, 0.1);
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--gray);
    font-size: 1.2em;
}

/* Features Detail */
.features-detail {
    padding: 60px 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.feature-row.reverse {
    direction: rtl;
}
.feature-row.reverse > * {
    direction: ltr;
}

.feature-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-list {
    margin-top: 20px;
}
.feature-list li {
    padding: 8px 0;
    color: var(--gray);
}

.demo-box {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
}

.demo-box h4 {
    margin-bottom: 20px;
    color: var(--gray);
}

.demo-box input,
.demo-box select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 1em;
}

.demo-box select option {
    background: var(--dark);
}

.transform-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.original, .target {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
}

.original span, .target span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.arrow {
    font-size: 2em;
    color: var(--primary);
}

.voice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.voice-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.voice-item:hover {
    background: rgba(255,255,255,0.1);
}

.voice-item.selected {
    background: rgba(99, 102, 241, 0.3);
    border: 1px solid var(--primary);
}

.voice-icon {
    font-size: 1.5em;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.project-name {
    font-weight: 600;
}

.project-status {
    font-size: 0.85em;
    padding: 4px 12px;
    border-radius: 20px;
}

.project-status.completed { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.project-status.processing { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.project-status.draft { background: rgba(100, 116, 139, 0.2); color: var(--gray); }

/* Pricing */
.pricing-section {
    padding: 60px 0;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(30px); }

.discount-badge {
    background: var(--success);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

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

.pricing-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.pricing-card.popular {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.plan-header p {
    color: var(--gray);
    margin-bottom: 20px;
}

.plan-price {
    margin-bottom: 30px;
}

.plan-price .price {
    font-size: 3em;
    font-weight: 700;
}

.plan-price .period {
    color: var(--gray);
}

.plan-features {
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    color: var(--gray);
}

.plan-features li.included::before {
    content: "✓ ";
    color: var(--success);
}

.plan-features li.not-included {
    opacity: 0.5;
    text-decoration: line-through;
}

.plan-features li.not-included::before {
    content: "✗ ";
    color: var(--danger);
}

.guarantee {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 12px;
}

.faq-item h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.faq-item p {
    color: var(--gray);
    font-size: 0.95em;
}

/* CTA */
.cta {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.cta h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.cta p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.2em;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--gray);
    transition: color 0.3s;
}
.footer-links a:hover { color: white; }

.footer p {
    color: var(--gray);
    font-size: 0.9em;
}

/* Auth Pages */
.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    max-width: 500px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header .logo {
    font-size: 1.8em;
    margin-bottom: 20px;
    display: inline-block;
}

.auth-header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray);
}

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

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 1em;
}

.auth-form input::placeholder {
    color: var(--gray);
}

.forgot-link {
    float: right;
    color: var(--primary);
    font-size: 0.9em;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

.checkbox-label span {
    font-size: 0.9em;
    color: var(--gray);
}

.checkbox-label a {
    color: var(--primary);
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider span {
    background: var(--dark);
    padding: 0 20px;
    color: var(--gray);
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.social-login {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-social:hover {
    background: rgba(255,255,255,0.2);
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 700;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
}

.auth-footer a {
    color: var(--primary);
}

.auth-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.auth-info h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.benefits-list {
    margin-bottom: 40px;
}

.benefits-list li {
    padding: 12px 0;
    font-size: 1.1em;
}

.testimonial {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 12px;
    margin-top: auto;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial span {
    color: var(--primary);
    font-size: 0.9em;
}

/* Dashboard */
.dashboard-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 70px);
}

.sidebar {
    background: rgba(15, 23, 42, 0.8);
    padding: 30px 0;
}

.sidebar-menu li {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-menu li:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.sidebar-menu li.active {
    background: rgba(99, 102, 241, 0.2);
    color: white;
    border-left: 3px solid var(--primary);
}

.menu-icon {
    font-size: 1.2em;
}

.dashboard-content {
    padding: 30px;
}

.welcome-section {
    margin-bottom: 30px;
}

.welcome-section h1 {
    font-size: 2em;
    margin-bottom: 5px;
}

.welcome-section p {
    color: var(--gray);
}

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

.stat-card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 2.5em;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: 700;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 25px;
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.btn-icon {
    font-size: 2em;
}

.plan-name {
    color: var(--primary);
}

.plan-progress {
    margin: 20px 0;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.plan-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.plan-stat span {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
}

.plan-stat small {
    color: var(--gray);
    font-size: 0.8em;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
}

.projects-table th,
.projects-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.projects-table th {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.9em;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
}

.status-badge.completed { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.status-badge.processing { background: rgba(245, 158, 11, 0.2); color: var(--warning); }

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.action-btn:hover { opacity: 1; }
.action-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--primary);
}

.generator-form {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.theme-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 1em;
}

.genre-select, .mood-select {
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    min-width: 120px;
}

.generate-btn {
    width: 100%;
}

.lyrics-content {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: monospace;
    white-space: pre-line;
}

.lyrics-actions {
    display: flex;
    gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2em; }
    .stats { flex-direction: column; gap: 30px; }
    .feature-row { grid-template-columns: 1fr; direction: ltr !important; }
    .pricing-card.popular { transform: none; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-info { display: none; }
    .dashboard { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .dashboard-grid { grid-template-columns: 1fr; }
}
