:root {
    --primary: #4ade80;
    --primary-hover: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #555555;
    --success: #4ade80;
    --danger: #ef4444;
    --error: #ef4444;
    --warning: #f59e0b;
    --bg: #000000;
    --bg-secondary: #0a0a0a;
    --card-bg: #111111;
    --text: #e5e5e5;
    --text-secondary: #999999;
    --border: #222222;
    --shadow: 0 0.5px 2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: #000000;
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
}

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

/* Progress Bar */
.progress-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: none; /* Hidden on home page, shown by JS on subsequent pages */
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.5s ease;
    border-radius: 6px;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Stage Indicator */
.stage-indicator {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.stage.active {
    opacity: 1;
}

.stage.completed {
    opacity: 0.6;
}

.stage-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stage.active .stage-number {
    background: var(--primary);
    color: #000000;
    border-color: var(--primary);
}

.stage.completed .stage-number {
    background: var(--success);
    color: #000000;
    border-color: var(--success);
}

.stage-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.stage.active .stage-label {
    color: var(--text);
}

/* Main Content */
.main-content {
    min-height: 400px;
}

.section {
    display: none;
    animation: fadeIn 0.5s;
}

.section.active {
    display: block;
}

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

/* Cards */
.welcome-card,
.content-card,
.celebration-card {
    background: var(--card-bg);
    border: 0.5px solid var(--border);
    border-radius: 18px;
    padding: 48px;
}

.welcome-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-card h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

/* Modern Welcome Card */
.welcome-card-modern {
    background: transparent;
    border: none;
    padding: 100px 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 200;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 50px;
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-description p {
    margin-bottom: 16px;
}

.hero-description strong {
    font-weight: 400;
    color: var(--text);
}

.btn-hero {
    padding: 16px 48px;
    font-size: 1.05rem;
    border-radius: 980px;
    font-weight: 400;
    letter-spacing: 0.005em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.description {
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Buttons */
.btn {
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary);
    color: #000000;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #1a1a1a;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--text);
    background: var(--border);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover:not(:disabled) {
    background: var(--border);
    color: var(--text);
}

.btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Upload Area */
.upload-area {
    margin-bottom: 30px;
}

.upload-instructions {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.upload-instructions h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text);
}

.upload-instructions p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.upload-area h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text);
}

.upload-intro {
    margin-bottom: 30px;
    line-height: 1.8;
}

.intro-main {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.intro-main strong {
    color: var(--text);
    font-weight: 400;
}

.upload-intro p {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 14px;
}

.intro-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 60px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.2s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--text-secondary);
    background: var(--border);
}

.drop-zone-content svg {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.drop-zone-content p {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.drop-zone-content .link {
    color: var(--text);
    text-decoration: underline;
    cursor: pointer;
}

.drop-zone-content small {
    color: var(--text-secondary);
}

/* Upload Status */
.upload-status {
    margin: 15px 0;
}

.upload-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 8px;
}

.upload-item.success {
    background: rgba(16, 185, 129, 0.1);
}

.upload-item.error {
    background: rgba(239, 68, 68, 0.1);
}

/* Uploaded Files */
.uploaded-files {
    margin-top: 30px;
}

.uploaded-files h3 {
    margin-bottom: 15px;
}

/* Action Areas */
.action-area {
    margin-top: 40px;
}

.ready-message {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.ready-message h3 {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 15px;
}

.ready-message p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

#file-list {
    display: grid;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    color: var(--primary);
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text);
}

.file-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Survey Area */
.survey-area {
    background: var(--bg);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.survey-question {
    margin-bottom: 20px;
}

.survey-question h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.survey-question input,
.survey-question textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.survey-question input:focus,
.survey-question textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.survey-question .help-text {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Celebration Card */
.celebration-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.celebration-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.celebration-card h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--text);
}

.stats-message {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text);
}

.celebration-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.125rem;
}

/* Content Creation */
.creation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 24px;
}

.creation-header h2 {
    margin-bottom: 8px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.voiceprint-selector {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.voiceprint-selector label {
    font-weight: 400;
    color: var(--text);
    white-space: nowrap;
}

.voiceprint-dropdown {
    flex: 1;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}

.voiceprint-dropdown:focus {
    outline: none;
    border-color: var(--primary);
}

.creation-form {
    margin: 30px 0;
}

.creation-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
    resize: vertical;
}

.creation-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#loading-message {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Generation Progress */
.generation-progress {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.generation-progress h3 {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 15px;
}

.generation-progress .progress-bar {
    width: 100%;
    height: 16px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.generation-progress .progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 8px;
}

#generation-progress-text {
    margin-top: 15px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Generated Content */
.generated-content {
    margin-top: 30px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.content-output {
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Refinement Form */
.refinement-form {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.refinement-form h4 {
    margin-bottom: 15px;
}

.refinement-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

/* History */
.history-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.history-item {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.history-request {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.history-preview {
    color: var(--text-secondary);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    min-width: 300px;
    animation: slideIn 0.3s;
    color: var(--text);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
    color: var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.toast.info {
    border-left: 4px solid var(--text);
    color: var(--text);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border: 0.5px solid var(--border);
    border-radius: 18px;
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 32px 24px 32px;
    border-bottom: 0.5px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 32px;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-footer {
    padding: 24px 32px 32px 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 0.5px solid var(--border);
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.dashboard-nav {
    background: #000000;
    border-bottom: 0.5px solid var(--border);
    padding: 20px 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    text-decoration: none;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.nav-link:hover {
    color: var(--primary);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 160px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin: 0 0 8px 0;
    color: var(--text);
}

.dashboard-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.05rem;
}

.voiceprints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.voiceprint-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
    position: relative;
}

.voiceprint-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.voiceprint-card.is-default {
    border-color: var(--primary);
    border-width: 2px;
}

.default-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.voiceprint-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.voiceprint-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
    flex: 1;
    padding-right: 12px;
}

.voiceprint-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s;
    font-weight: 500;
}

.icon-btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
    border-color: var(--text-secondary);
}

.voiceprint-description {
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.voiceprint-meta {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state h2 {
    color: var(--text);
    margin: 0 0 12px 0;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.loading-card {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-secondary);
}

/* Knowledge Base File List */
.kb-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    transition: all 0.2s;
}

.kb-file-item:hover {
    background: var(--bg-secondary);
}

.kb-file-info {
    flex: 1;
    min-width: 0;
}

.kb-file-name {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kb-file-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Outline Builder Styles */
.outline-builder-container {
    flex: 1;
    background: var(--bg-secondary);
}

.outline-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.outline-main h1 {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 12px;
}

.outline-step {
    display: none;
}

.outline-step.active {
    display: block;
}

.step-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 12px 0 32px 0;
}

.voiceprint-select-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.voiceprint-select-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.voiceprint-select-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.voiceprint-select-card h3 {
    margin: 0 0 8px 0;
    color: var(--text);
}

.voiceprint-select-card p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.wizard-progress {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.wizard-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.structure-choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.choice-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.choice-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.choice-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text);
}

.choice-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.choice-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.loading-state {
    text-align: center;
    padding: 60px 40px;
}

.loading-state h3 {
    margin: 24px 0 8px 0;
}

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

    .welcome-card,
    .content-card,
    .celebration-card {
        padding: 20px;
    }

    .welcome-card-modern {
        padding: 40px 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .btn-hero {
        padding: 16px 32px;
        font-size: 1.1rem;
    }

    .upload-area h2 {
        font-size: 1.75rem;
    }

    .intro-main {
        font-size: 1.05rem;
    }

    .upload-intro p {
        font-size: 1rem;
    }

    .ready-message {
        padding: 30px 20px;
    }

    .ready-message h3 {
        font-size: 1.5rem;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .stage-indicator {
        flex-wrap: wrap;
        gap: 20px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .content-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .content-actions button {
        flex: 1;
    }
}
