:root {
    --bg-primary: #08070e;
    --bg-secondary: #0f0e1a;
    --bg-tertiary: #16151f;
    --bg-card: #1a191f;
    --text-primary: #f5f5f7;
    --text-secondary: #b3b3b8;
    --text-muted: #8a8a90;
    --text-accent: #00d9ff;
    --border: #2d2d3d;
    --gradient-1: linear-gradient(135deg, #00d9ff 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-3: linear-gradient(135deg, #06b6d4 0%, #00d9ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #08070e 0%, #16151f 50%, #0f0e1a 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

/* 导航栏 */
.navbar {
    background: rgba(10, 9, 20, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 45, 61, 0.3);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-actions {
    display: none; /* 桌面端隐藏 */
    align-items: center;
    gap: 15px;
    margin-left: auto; /* 靠右对齐 */
    margin-right: 15px; /* 与汉堡菜单保持间距 */
}

.mobile-icon-btn {
    color: var(--text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-icon-btn:hover {
    color: var(--text-accent);
}

.mobile-points {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-accent);
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 217, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

.mobile-login-btn {
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 5px 10px;
    background: var(--gradient-1);
    border-radius: 6px;
    font-weight: 600;
}

.navbar-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-accent);
}

.nav-link.active {
    color: var(--text-accent);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    color: var(--text-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--text-accent);
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 英雄区 */
.hero {
    padding: 80px 24px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 模型网格 */
.models-preview {
    padding: 80px 24px;
    background: rgba(15, 14, 26, 0.3);
    border-top: 1px solid rgba(45, 45, 61, 0.2);
    border-bottom: 1px solid rgba(45, 45, 61, 0.2);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 16px;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.model-card {
    background: linear-gradient(135deg, rgba(26, 25, 31, 0.8), rgba(45, 45, 61, 0.4));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 45, 61, 0.5);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.model-card:hover {
    border-color: var(--text-accent);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.1);
    transform: translateY(-8px);
}

.model-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.model-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.model-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.model-card .btn {
    width: 100%;
    justify-content: center;
}

/* 功能特性 */
.features {
    padding: 80px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-accent);
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* CTA 区 */
.cta-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(45, 45, 61, 0.3);
    border-radius: 24px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: var(--bg-tertiary);
}

.action-btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Filter Form */
.filter-form {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* 页脚 */
footer {
    background: rgba(10, 9, 20, 0.6);
    border-top: 1px solid rgba(45, 45, 61, 0.3);
    padding: 40px 24px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-content a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #26e5ff;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar {
        padding: 4px 16px; /* 极简 padding */
        min-height: 50px; /* 固定最小高度，防止过厚 */
        display: flex;
        align-items: center;
    }

    .navbar-container {
        flex-wrap: nowrap;
        width: 100%;
        height: 100%;
        gap: 10px; /* 元素间距 */
    }

    .navbar-brand {
        font-size: 16px; /* 稍微调小 Logo 字体 */
        margin-right: auto; /* Logo 靠左，把其他挤到右边 */
        white-space: nowrap;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 20px;
        padding: 4px;
        margin-left: 0; /* 不需要额外的 margin */
    }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px; /* 增加一点间距 */
        margin-left: auto;
    }

    /* 极简图标按钮 */
    .mobile-icon-action {
        color: var(--text-secondary);
        font-size: 16px;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        text-decoration: none;
        transition: all 0.3s;
    }

    .mobile-icon-action:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-accent);
    }

    .mobile-icon-action.logout {
        color: #ef4444;
        background: rgba(239, 68, 68, 0.1);
    }

    /* 登录注册小按钮 */
    .mobile-auth-btn {
        font-size: 13px;
        padding: 4px 10px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 500;
    }
    
    .mobile-login {
        color: var(--text-primary);
        background: rgba(255,255,255,0.1);
    }
    
    .mobile-register {
        color: white;
        background: var(--gradient-1);
        margin-left: 5px;
    }

    /* 胶囊按钮样式 - 极简版 */
    .mobile-pill-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px; /* 固定宽度，圆形/胶囊 */
        height: 28px;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid #00d9ff;
        color: #00d9ff;
        border-radius: 50%; /* 圆形 */
        text-decoration: none;
        font-size: 12px;
        transition: all 0.3s ease;
    }

    .mobile-pill-btn i {
        font-size: 12px;
    }

    .mobile-pill-btn:hover {
        background: rgba(0, 217, 255, 0.1);
    }

    /* 积分显示样式 - 紧凑版 */
    .mobile-points-display {
        display: flex;
        align-items: center;
        gap: 2px;
        color: #00d9ff;
        font-size: 14px;
        font-weight: 700;
        margin-left: 4px;
        white-space: nowrap;
    }

    .mobile-points-display i {
        font-size: 14px;
        color: #00d9ff;
    }

    /* 移动端菜单展开时，隐藏 nav-actions (积分、个人中心、退出) 以免重复 */
    .navbar-nav .nav-actions,
    .navbar-nav.active .nav-actions {
        display: none !important;
    }

    /* 优化移动端页面标题区域厚度 */
    .page-header {
        padding-top: 20px;
        margin-bottom: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    /* 优化价格页移动端显示 */
    .pricing-hero {
        padding: 40px 20px 30px !important;
    }
    .pricing-title {
        font-size: 2rem !important;
    }
    .pricing-subtitle {
        font-size: 0.95rem !important;
    }

    .navbar-nav {
        display: none; /* 默认隐藏 */
        width: 100%;
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
        background: rgba(10, 9, 20, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        border-bottom: 1px solid rgba(45, 45, 61, 0.5);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .navbar-nav.active {
        display: flex; /* 点击后显示 */
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* Auth / Form Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .logo {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}

.auth-logo .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

textarea.form-control {
    min-height: 150px;
    line-height: 1.6;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.9rem;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.9rem;
}

.welcome-text {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.highlight {
    color: var(--text-accent);
    font-weight: 500;
}

.benefits {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Works / Models Grid System */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.model-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.model-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-tab.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.model-tab:hover:not(.active) {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-accent);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.work-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    border-color: var(--text-accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.work-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-thumb img {
    transform: scale(1.05);
}

.work-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.work-card:hover .work-play {
    opacity: 1;
    background: var(--gradient-1);
    border-color: transparent;
}

.download-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-10px);
}

.work-card:hover .download-btn {
    opacity: 1;
    transform: translateY(0);
}

.download-btn:hover {
    background: var(--text-accent);
    color: var(--bg-primary);
}

.work-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-title:hover {
    color: var(--text-accent);
}

.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.work-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-processing {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-pending {
    background: rgba(148, 163, 184, 0.1);
    color: #9ca3af;
}

.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-tertiary);
    border-radius: 24px;
    border: 1px dashed var(--border);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 100px 24px 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
}

/* Admin / Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.users-stat .stat-value { color: #3b82f6; }
.tasks-stat .stat-value { color: #a855f7; }
.payments-stat .stat-value { color: #10b981; }
.points-stat .stat-value { color: #06b6d4; }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.action-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-card:hover {
    border-color: var(--text-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.action-icon {
    font-size: 2rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
}

.action-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.action-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.action-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.list-item:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--text-accent);
}

.user-info, .task-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.task-prompt {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.task-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.task-status {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-completed { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-processing { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-failed { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.view-all {
    color: var(--text-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.view-all:hover {
    text-decoration: underline;
}

.tasks-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item:hover {
    background: var(--bg-tertiary);
}

/* Page Container */
.page-container {
    padding: 40px 24px 80px;
}

/* Account Info Styles */
.account-section {
    margin: 3rem 0;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.account-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    font-weight: 500;
    color: var(--text-primary);
}

.info-value.highlight {
    color: var(--text-accent);
}

.account-actions {
    display: flex;
    gap: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.view-all-link {
    color: var(--text-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #26e5ff;
    text-decoration: underline;
}

.task-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.task-icon.mj { background: rgba(0, 217, 255, 0.1); color: var(--text-accent); }
.task-icon.suno { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.task-icon.sora { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.task-details h4 {
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.task-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    gap: 1rem;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .task-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* 底部固定播放器 */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-top: 2px solid rgba(102, 126, 234, 0.3);
    padding: 15px 20px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease;
}

.bottom-lyrics {
    padding: 12px 20px 18px 20px;
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-lyrics-content {
    max-height: 140px;
    overflow: auto;
    line-height: 1.6;
    white-space: pre-wrap;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.bottom-player-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.bottom-player-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
}

.bottom-album-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.bottom-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-album-cover i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
}

.bottom-song-info {
    flex: 1;
    min-width: 0;
}

.bottom-song-title {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-song-artist {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-top: 3px;
}

.bottom-player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.control-btn i {
    font-size: 1rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    color: #a0aec0;
    font-size: 0.85rem;
    min-width: 100px;
    text-align: center;
}

.bottom-player-right {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .bottom-player {
        padding: 10px 12px;
    }
    
    .bottom-player-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .bottom-player-left {
        min-width: auto;
        gap: 8px;
    }
    
    .bottom-album-cover {
        width: 45px;
        height: 45px;
    }
    
    .bottom-album-cover i {
        font-size: 18px;
    }
    
    .bottom-song-title {
        font-size: 0.9rem;
    }
    
    .bottom-song-artist {
        font-size: 0.75rem;
    }
    
    .bottom-player-center {
        width: 100%;
        order: 3;
        gap: 6px;
    }
    
    .player-controls {
        gap: 8px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .time-display {
        min-width: 80px;
        font-size: 0.75rem;
    }
    
    .bottom-lyrics {
        padding: 8px 12px 12px 12px;
    }
    
    .bottom-lyrics-content {
        max-height: 80px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .bottom-player {
        padding: 8px 10px;
    }
    
    .bottom-player-left {
        gap: 6px;
    }
    
    .bottom-album-cover {
        width: 40px;
        height: 40px;
    }
    
    .bottom-song-title {
        font-size: 0.8rem;
    }
    
    .bottom-song-artist {
        display: none;
    }
    
    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .time-display {
        min-width: 70px;
        font-size: 0.7rem;
    }
}

/* Suno Specific Styles - Added for Unification */

.suno-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.model-mode-title {
    margin-bottom: 20px;
    color: #667eea;
}

/* Badges */
.badge-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-cyan {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Task Success */
.task-success-container {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.task-success-title {
    color: #51cf66;
    font-size: 1.1rem;
}

.btn-refresh-works {
    background: linear-gradient(135deg, #51cf66 0%, #38d9a9 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-view-works {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Task ID Card */
.task-id-card {
    margin-top: 12px;
    width: 100%;
    max-width: 720px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.12));
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 10px;
    padding: 14px 16px;
}

.task-id-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.task-id-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-id-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.task-id-song-title {
    color: #e9ecef;
    font-weight: 600;
}

.task-id-label {
    color: #a0aec0;
    font-size: 0.9rem;
}

.task-id-code {
    background: #2d3748;
    padding: 8px 12px;
    border-radius: 6px;
    word-break: break-all;
    color: #51cf66;
    font-size: 0.9rem;
    flex: 1;
    min-width: 180px;
}

.btn-copy-clip {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.task-id-lyrics {
    color: #cbd5e0;
    font-size: 0.9rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.task-id-actions {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.btn-download-clip {
    background: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.task-id-footer {
    margin-top: 6px;
    text-align: right;
}

.btn-copy-all {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Upload Progress */
.upload-progress-container {
    display: none;
    margin-top: 10px;
}

.upload-progress-box {
    background: #2d3748;
    padding: 10px;
    border-radius: 8px;
}

.upload-progress-label {
    margin-bottom: 8px;
    color: #667eea;
    font-weight: bold;
}

.upload-progress-track {
    background: #1a202c;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}

.upload-success-msg {
    display: none;
    margin-top: 8px;
    padding: 10px;
    background: #10b981;
    color: white;
    border-radius: 5px;
}

/* My Works Tab */
.works-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.works-title {
    color: #667eea;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-alert {
    background: rgba(255, 180, 0, 0.1);
    border-left: 4px solid #ffb400;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #ffd666;
    font-size: 0.95rem;
}

.works-empty-container {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.works-empty-icon {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.works-empty-text {
    color: #a0aec0;
    font-size: 1.1rem;
}

.works-empty-subtext {
    color: #718096;
    margin-top: 10px;
}

.btn-create-first {
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

/* Helpers */
.hidden { display: none !important; }
.mr-2 { margin-right: 8px; }
.mb-4 { margin-bottom: 20px; }
.text-white { color: #fff; }

/* Section Titles */
.section-title-indigo {
    margin-bottom: 20px;
    color: #667eea;
}

/* Task/Clip ID Styles */
.task-id-text {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 2px;
    font-family: monospace;
}

.clip-id-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 2px;
    font-family: monospace;
}

.btn-copy-sm {
    background: #667eea;
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-copy-sm:hover {
    opacity: 1;
}

/* Empty Message */
.empty-message {
    text-align: center;
    color: #a0aec0;
    padding: 20px;
}

/* Album Icon */
.default-album-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

/* Song Title Small */
.song-title-sm {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

/* Flex Helpers */
.flex-1 {
    flex: 1;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.grid-cols-2-gap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.task-lyrics {
    color: #cbd5e0;
    font-size: 0.9rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.d-none {
    display: none;
}

.album-placeholder-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

.task-id-song-title-text {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.mb-20 {
    margin-bottom: 20px;
}

.task-audio-actions {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.btn-download {
    background: #10b981 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}



.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-gray { color: var(--text-secondary); }

.flex-row-center-gap {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.flex-row-gap-10 {
    display: flex;
    gap: 10px;
}

.border-bottom-separator {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Suno AI Specific Styles */
.mode-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.mode-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mode-card.active {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    border-color: var(--text-accent);
}

.mode-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
}

.mode-card .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.mode-card .title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 1rem;
}

.mode-card .desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.points-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 9, 20, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
}

.points-info {
    display: flex;
    align-items: center;
}

/* Tab Navigation Button Style */
.tab-nav-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-nav-button:hover {
    color: var(--text-primary);
}

.tab-nav-button.active {
    color: var(--text-accent);
    border-bottom-color: var(--text-accent);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--text-accent);
}

.checkbox-group label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
}

/* Help Text */
.help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.required {
    color: #ef4444;
    margin-left: 4px;
}

/* Task ID Song Item */
.task-id-song-item {
    transition: background 0.2s;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.task-id-song-item:hover {
    background: rgba(255,255,255,0.03);
}

/* Audio Player Modal */
.audio-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.audio-player-container {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.audio-player-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-player-title {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-player {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-player:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.audio-player-content {
    padding: 30px;
    text-align: center;
}

.album-cover {
    width: 280px;
    height: 280px;
    margin: 0 auto 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    position: relative;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-cover i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

.main-audio {
    width: 100%;
    margin-top: 20px;
    outline: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
}

.main-audio::-webkit-media-controls-panel {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

.audio-info {
    margin-top: 20px;
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .audio-player-container {
        width: 95%;
    }
    
    .album-cover {
        width: 200px;
        height: 200px;
    }
}

/* Task ID Modal Styles */
.clip-id-wrapper {
    margin-top: 8px;
}

.clip-id-label {
    color: #999;
    font-size: 0.9rem;
}

.clip-id-container {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.clip-id-code {
    background: #2d3748;
    padding: 8px 12px;
    border-radius: 6px;
    flex: 1;
    word-break: break-all;
    font-size: 0.9rem;
    color: #51cf66;
    font-family: monospace;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #5a67d8;
}

.copy-btn.copied {
    background: #51cf66;
}

.task-id-modal-empty {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Task ID Modal Container Styles */
.task-id-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.task-id-modal-content {
    background: #1a202c;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    animation: slideIn 0.3s ease;
}

.task-id-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 15px;
}

.task-id-modal-title {
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-id-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.task-id-modal-close:hover {
    color: #fff;
}

.task-id-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-copy-all {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-copy-all:hover {
    transform: translateY(-2px);
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Layout System */
.layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.main-content {
    flex: 1;
    min-width: 0; /* Prevent flex child overflow */
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.model-icon-glow {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 24px;
    }
}

/* =========================================
   Unified Styles for Nano Banana & Others
   ========================================= */

/* Sidebar Navigation Button */
.nav-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-btn.active {
    background: rgba(0, 217, 255, 0.1);
    color: var(--text-accent);
    border-color: rgba(0, 217, 255, 0.2);
}

/* Option Button (for grids like aspect ratio) */
.option-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 0.9rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.option-btn.active {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--text-accent);
    color: var(--text-accent);
}

/* Button Utilities */
.btn-block {
    width: 100%;
    display: flex;
}

.btn-lg {
    padding: 15px;
    font-size: 1.1rem;
}

/* Grid for options */
.ratio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .ratio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Image Card (Unifying with Work Card logic if needed, or standalone) */
.image-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.image-card:hover {
    border-color: var(--text-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-thumb {
    width: 100%;
    aspect-ratio: 1; /* Default square placeholder */
    background: #000;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover .image-thumb img {
    transform: scale(1.05);
}

.image-info {
    padding: 12px;
}

.image-prompt {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lightbox Styles (Global) */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
