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

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-bg: #eef2ff;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: none;
}

html {
    touch-action: pan-x pan-y;
}

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 40vmax;
    height: 40vmax;
    background: var(--primary);
    top: -10vmax;
    right: -10vmax;
    animation-delay: 0s;
}

.blob-2 {
    width: 30vmax;
    height: 30vmax;
    background: #ec4899;
    bottom: -5vmax;
    left: -5vmax;
    animation-delay: -7s;
}

.blob-3 {
    width: 25vmax;
    height: 25vmax;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(4vmax, -4vmax); }
    66% { transform: translate(-3vmax, 3vmax); }
}

.navbar {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    transition: transform 0.3s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand .brand-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.main-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
}

.generator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .generator-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .style-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .preview-panel {
        position: static;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
    }

    .main-wrapper {
        padding: 20px 16px;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .panel-card {
        padding: 16px;
    }

    .quick-tags {
        flex-wrap: wrap;
    }
}

/* 手机端：锁定背景动画，防止视口随 blob 漂移而跳动 */
@media (max-width: 768px) {
    .bg-decoration {
        position: absolute;
        height: 100vh;
        overflow: hidden;
    }

    .blob {
        animation: none;
        filter: blur(40px);
        opacity: 0.35;
    }

    .blob-1 {
        width: 50vw;
        height: 50vw;
        top: -8vw;
        right: -8vw;
    }

    .blob-2 {
        width: 36vw;
        height: 36vw;
        bottom: -4vw;
        left: -4vw;
    }

    .blob-3 {
        width: 30vw;
        height: 30vw;
    }

    /* 手机端导航：单行不换行，品牌名过长时截断，按钮同行自适应 */
    .nav-container {
        gap: 10px;
    }

    .nav-brand {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 16px;
        gap: 8px;
    }

    .nav-brand .logo-icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .nav-brand .brand-link {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .nav-actions {
        flex-shrink: 0;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
}

.panel-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.panel-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.quick-tags {
    display: flex;
    gap: 8px;
}

.tag-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tag-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.input-area {
    margin-bottom: 20px;
}

#qr-content {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    resize: none;
    transition: all 0.2s;
    font-family: inherit;
}

#qr-content:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.char-count {
    font-size: 12px;
    color: #94a3b8;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.upload-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, white);
}

.upload-btn svg {
    width: 14px;
    height: 14px;
}

.clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.batch-mode-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.batch-mode-label:hover {
    color: var(--primary);
}

.batch-mode-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #ef4444;
}

.style-panel {
    margin-bottom: 20px;
}

.style-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.style-item {
    display: flex;
    flex-direction: column;
}

.style-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.color-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#qr-color {
    width: 100%;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.preset-colors {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.color-preset {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: var(--text);
}

#qr-error-level {
    width: 100%;
    height: 40px;
    padding: 0 36px 0 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    appearance: none;
    color: var(--text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s;
}

#qr-error-level:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.format-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
}

.format-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.format-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.generate-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.preview-panel {
    position: sticky;
    top: 24px;
}

.preview-card {
    text-align: center;
}

.preview-placeholder {
    padding: 60px 20px;
    color: var(--text-muted);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.qr-result {
    padding: 20px;
}

.qr-image-container {
    position: relative;
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

#qr-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-shadow {
    position: absolute;
    bottom: -10px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    filter: blur(4px);
}

.qr-info {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 500;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.download-btn {
    background: var(--primary);
    color: white;
}

.download-btn:hover {
    background: var(--primary-dark);
}

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

.copy-btn:hover {
    background: var(--border);
}

.batch-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.batch-results-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.batch-stats {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 8px;
}

.download-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.download-all-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 16px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.batch-grid::-webkit-scrollbar {
    width: 8px;
}

.batch-grid::-webkit-scrollbar-track {
    background: transparent;
}

.batch-grid::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.batch-item {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

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

.batch-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: zoom-in;
}

.batch-spinner {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
}

.batch-spinner .spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
    cursor: zoom-out;
    animation: lightbox-fade 0.2s ease;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: lightbox-zoom 0.2s ease;
}

@keyframes lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightbox-zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.batch-item .batch-content {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-item .batch-index {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.batch-item.error {
    border-color: #fecaca;
    background: #fef2f2;
}

.batch-item.error .batch-content {
    color: #ef4444;
}

@media (max-width: 768px) {
    .generator-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 28px;
    }
    
    .style-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .preview-panel {
        position: static;
    }
    
    .batch-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .batch-results-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
    }
    
    .main-wrapper {
        padding: 20px 16px;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .panel-card {
        padding: 16px;
    }
    
    .quick-tags {
        flex-wrap: wrap;
    }
    
    .batch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#site-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 合作伙伴 */
#partners-section {
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface-alt);
}

.partners-wrap {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.partners-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.partners-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.partner-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.partner-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* 二维码解析 */
.decoder-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.decoder-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.decoder-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.decoder-upload {
    cursor: pointer;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.decoder-upload:hover {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 4%, white);
}

.decoder-upload-inner svg {
    color: var(--primary);
    margin-bottom: 10px;
}

.decoder-upload-inner p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.decoder-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.decoder-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.decoder-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.decoder-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.decoder-preview img {
    max-width: 260px;
    max-height: 260px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
}

.decoder-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.decoder-remove-btn:hover {
    background: #ef4444;
}

.decoder-result {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.decoder-result-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.decoder-result-text {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    color: var(--text);
    word-break: break-all;
    line-height: 1.5;
    margin-bottom: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
}

.decoder-result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.decoder-copy-btn,
.decoder-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
}

.decoder-copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.decoder-open-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.decoder-open-btn:hover {
    background: var(--primary-dark);
}

.decoder-open-btn.is-hidden {
    display: none;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: var(--text);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

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

.modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: var(--border);
}
