/* AurumFlow - Jewelry Design Application
 * Premium UI/UX Design
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #5b21b6;
    --primary-gradient: linear-gradient(90deg, #7c3aed 0%, #3b82f6 100%);
    
    --sidebar-bg: #ffffff;
    --sidebar-text: #475569;
    --sidebar-hover: #f1f5f9;
    --sidebar-active: #6366f1;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f5f6fb;
    --bg-tertiary: #eef2f7;
    
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e5e7eb;
    --border-light: #edf2f7;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --sidebar-width: 260px;
    --header-height: 64px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Layout ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-slow);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

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

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.25);
}

.sidebar-logo-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-close {
    display: none;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.sidebar-close:hover {
    background: var(--bg-tertiary);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 8px 12px;
    margin-bottom: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition);
    margin-bottom: 4px;
    position: relative;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
}

.nav-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item-text {
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-item-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.user-card:hover {
    background: var(--bg-tertiary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

/* ===== Header ===== */
.header {
    height: var(--header-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.mobile-menu-btn {
    display: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.search-bar {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-bar input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all var(--transition);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-bar-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

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

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
}

.header-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.header-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-primary);
}

/* ===== Page Content ===== */
.page-content {
    flex: 1;
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header.with-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

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

.designer-only {
    display: none;
}

.role-designer .designer-only {
    display: inline-flex;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.tab-icon {
    width: 18px;
    height: 18px;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.5);
}

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

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

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all var(--transition);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== Selection Chips ===== */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.active {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.chip-icon {
    width: 16px;
    height: 16px;
}

/* ===== Style Cards ===== */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.style-card {
    padding: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.style-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.style-card.active {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

.style-card-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.style-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.style-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.style-card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* ===== Upload Area ===== */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-secondary);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.02);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.upload-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.upload-btn {
    margin-top: 16px;
}

/* ===== Preview Grid ===== */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.preview-item:hover .preview-item-remove {
    opacity: 1;
}

/* ===== Generated Content ===== */
.generated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.generated-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-tertiary);
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform var(--transition);
}

.generated-item:hover {
    transform: scale(1.02);
}

.generated-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.generated-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.generated-item:hover .generated-item-overlay {
    opacity: 1;
}

.generated-item-actions {
    display: flex;
    gap: 8px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== 3D Viewer ===== */
.model-viewer-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

model-viewer {
    width: 100%;
    height: 100%;
}

.model-viewer-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

/* ===== Progress Steps ===== */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.step:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.step.active .step-text {
    color: var(--text-primary);
}

/* ===== Accordion ===== */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background var(--transition);
}

.accordion-header:hover {
    background: var(--bg-secondary);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.accordion-item.open .accordion-content {
    padding: 20px;
    max-height: 500px;
}

/* ===== Pro Tips ===== */
.pro-tips {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-md);
    padding: 20px;
}

.pro-tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pro-tips-icon {
    width: 20px;
    height: 20px;
    color: #d97706;
}

.pro-tips-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #92400e;
}

.pro-tips-list {
    list-style: none;
}

.pro-tips-list li {
    font-size: 0.8125rem;
    color: #78350f;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.pro-tips-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #d97706;
}

/* ===== Loading States ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

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

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    animation: toast-in 0.3s ease;
    min-width: 300px;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.toast-close {
    padding: 4px;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

body.stripe-blocked {
    overflow: hidden;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    transition: transform var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all var(--transition);
}

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

.modal-body {
    padding: 24px;
}

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

/* ===== Two Column Layout ===== */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.main-panel {
    min-width: 0;
}

.side-panel {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    height: fit-content;
}

/* ===== AI Badge ===== */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.ai-badge svg {
    width: 14px;
    height: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }
    
    .side-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .page-content {
        padding: 16px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        flex-direction: column;
        gap: 16px;
    }
    
    .step::after {
        display: none;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}

.animate-slideUp {
    animation: slideUp 0.4s ease;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ===== Landing Page ===== */
.login-page.landing-page {
    --primary: #0f6b5f;
    --primary-light: #1f8578;
    --primary-dark: #0a4c44;
    --primary-gradient: linear-gradient(120deg, #0f6b5f 0%, #128f7b 55%, #d19b4a 100%);
    --bg-primary: #ffffff;
    --bg-secondary: #f6f1ea;
    --bg-tertiary: #efe6d9;
    --text-primary: #1a1b1e;
    --text-secondary: #4b4b4b;
    --text-muted: #7a7a7a;
    --border-color: rgba(26, 27, 30, 0.12);
    --border-light: rgba(26, 27, 30, 0.08);
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 32px 24px 80px;
    background:
        radial-gradient(circle at 12% 18%, rgba(209, 155, 74, 0.18), transparent 45%),
        radial-gradient(circle at 90% 8%, rgba(15, 107, 95, 0.15), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(18, 143, 123, 0.18), transparent 45%),
        linear-gradient(180deg, #f8f4ee 0%, #fdfbf8 100%);
    color: var(--text-primary);
    font-family: 'Manrope', 'Inter', sans-serif;
}

.landing-page a {
    color: inherit;
}

.landing-shell {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(140deg, #0f6b5f 0%, #d19b4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 24px rgba(15, 107, 95, 0.2);
}

.landing-brand-icon svg {
    width: 24px;
    height: 24px;
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
}

.landing-brand-name {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.landing-brand-tag {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.landing-links {
    display: flex;
    gap: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.landing-links a:hover {
    color: var(--text-primary);
}

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

.landing-btn {
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 200ms ease;
    border: 1px solid transparent;
}

.landing-btn.solid {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 107, 95, 0.25);
}

.landing-btn.solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 107, 95, 0.3);
}

.landing-btn.outline {
    border: 1.5px solid var(--primary-dark);
    color: var(--primary-dark);
    background: transparent;
}

.landing-btn.outline:hover {
    background: rgba(15, 107, 95, 0.08);
}

.landing-btn.ghost {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.7);
}

.landing-btn.ghost:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-copy h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.4rem, 3.2vw, 3.4rem);
    line-height: 1.1;
    margin: 16px 0;
}

.hero-copy p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0 32px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.meta-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 10px 24px rgba(26, 27, 30, 0.08);
}

.meta-title {
    font-weight: 600;
    color: var(--text-primary);
}

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

.hero-visual {
    position: relative;
    min-height: 380px;
}

.visual-card {
    position: absolute;
    border-radius: 22px;
    padding: 22px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    box-shadow: 0 18px 36px rgba(26, 27, 30, 0.18);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.visual-card.primary {
    width: 100%;
    max-width: 320px;
    top: 0;
    left: 0;
    z-index: 3;
}

.visual-card.secondary {
    width: 100%;
    max-width: 300px;
    bottom: 0;
    right: 0;
    z-index: 2;
    background: #fdfaf4;
}

.visual-card.tertiary {
    width: 100%;
    max-width: 260px;
    top: 180px;
    left: -10px;
    z-index: 1;
    background: #f4efe6;
}

.visual-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.visual-pill {
    background: rgba(15, 107, 95, 0.12);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.visual-status {
    color: var(--text-muted);
}

.visual-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.visual-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.visual-btn {
    margin-top: 6px;
    background: rgba(15, 107, 95, 0.08);
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.85rem;
}

.visual-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visual-metric .metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.visual-metric .metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.visual-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.visual-tags span {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(26, 27, 30, 0.08);
    color: var(--text-secondary);
}

.role-section,
.landing-flow,
.application-section {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section-heading h2,
.section-heading h3 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
}

.section-heading p {
    color: var(--text-secondary);
    max-width: 620px;
}

.section-heading.compact h3 {
    font-size: 1.5rem;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.role-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 18px 36px rgba(26, 27, 30, 0.08);
    min-height: 320px;
}

.role-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.role-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(15, 107, 95, 0.12);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-icon svg {
    width: 22px;
    height: 22px;
}

.role-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    font-weight: 700;
}

.role-card h3 {
    font-size: 1.35rem;
}

.role-card p {
    color: var(--text-secondary);
}

.role-list {
    list-style: none;
    display: grid;
    gap: 8px;
    padding: 0;
}

.role-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.role-list li::before {
    content: '•';
    color: var(--primary-dark);
    font-size: 1.1rem;
    line-height: 1;
}

.role-cta {
    margin-top: auto;
}

.landing-flow .flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.flow-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 24px rgba(26, 27, 30, 0.08);
}

.flow-step {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-dark);
    font-weight: 700;
}

.application-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 32px;
    align-items: start;
}

.application-info h2 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    margin-bottom: 12px;
}

.application-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
}

.highlight-card span {
    font-weight: 600;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 6px;
}

.application-note a {
    color: var(--primary-dark);
    font-weight: 600;
}

.application-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: 0 22px 40px rgba(26, 27, 30, 0.12);
}

.application-card-header h3 {
    font-size: 1.4rem;
}

.application-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    border-radius: 999px;
    padding: 6px;
    margin: 20px 0 16px;
}

.auth-tab {
    flex: 1;
    border-radius: 999px;
    padding: 10px 0;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    transition: all 150ms ease;
}

.auth-tab.active {
    background: #fff;
    color: var(--text-primary);
    box-shadow: 0 8px 16px rgba(26, 27, 30, 0.08);
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

.landing-footer-link {
    color: var(--text-muted);
    font-weight: 600;
}

.landing-footer-link:hover {
    color: var(--text-primary);
}

/* ===== Auth Forms ===== */
.auth-form {
    width: 100%;
}

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

.auth-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition);
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

.auth-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition);
    margin-top: 8px;
}

.auth-btn.primary-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.auth-btn.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

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

.auth-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    display: none;
}

.auth-error.visible {
    display: block;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.landing-page .auth-form input:focus,
.landing-page .auth-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 107, 95, 0.18);
}

.landing-page .auth-btn.primary-btn {
    background: var(--primary-gradient);
}

.landing-page .auth-btn.primary-btn:hover {
    box-shadow: 0 10px 24px rgba(15, 107, 95, 0.3);
}

.landing-page .auth-switch a {
    color: var(--primary-dark);
}

/* ===== Photography History Integration ===== */
.photography-history-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.photography-history-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.photography-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

/* ===== Selectable Items ===== */
.selectable-item {
    position: relative;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.selectable-item:hover {
    border-color: var(--primary);
}

.selectable-item.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.selectable-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.selectable-item-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
}

.selectable-item.selected .selectable-item-check {
    display: flex;
}

/* ===== Empty State Small ===== */
.empty-state-small {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.empty-state-small .link-primary {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.empty-state-small .link-primary:hover {
    text-decoration: underline;
}

/* ===== Preview Item Badge ===== */
.preview-item-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
}

.preview-item.from-photography {
    border: 2px solid var(--primary);
}

/* ===== AI Badge ===== */
.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.ai-badge svg {
    width: 14px;
    height: 14px;
}

/* ===== Generated Item Actions ===== */
.generated-item-actions {
    display: flex;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
}

.generated-item-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    font-size: 0.75rem;
}

/* ===== Link Primary ===== */
.link-primary {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link-primary:hover {
    text-decoration: underline;
}


/* ===== Dashboard Styles ===== */
.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dashboard-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-card-icon svg {
    width: 24px;
    height: 24px;
}

.credits-card .dashboard-card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.plan-card .dashboard-card-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.generations-card .dashboard-card-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.exports-card .dashboard-card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.dashboard-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.dashboard-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.dashboard-card-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.dashboard-card-link {
    font-size: 0.875rem;
    color: var(--primary);
    margin-top: 8px;
    font-weight: 500;
}

.dashboard-card-link:hover {
    text-decoration: underline;
}

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

@media (max-width: 900px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.account-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-info-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 1px solid var(--border-color);
}

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

.quick-action-btn svg {
    width: 24px;
    height: 24px;
}

.quick-action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

.recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
}

.activity-icon svg {
    width: 18px;
    height: 18px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Wallet & Finance Styles ===== */
.current-plan-banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 24px;
}

.plan-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.plan-banner-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-banner-icon svg {
    width: 32px;
    height: 32px;
}

.plan-banner-info {
    display: flex;
    flex-direction: column;
}

.plan-banner-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.plan-banner-name {
    font-size: 1.75rem;
    font-weight: 700;
}

.plan-banner-price {
    font-size: 1rem;
    opacity: 0.9;
}

.plan-banner-stats {
    display: flex;
    gap: 32px;
}

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

.plan-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.plan-stat-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

.plan-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    transition: all var(--transition);
}

.plan-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-icon svg {
    width: 28px;
    height: 28px;
}

.free-icon {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
}

.pro-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.studio-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.enterprise-icon {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.plan-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 20px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

.plan-features li.disabled {
    color: var(--text-muted);
}

.plan-features li.disabled svg {
    color: var(--text-muted);
}

.plan-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--transition);
}

.plan-btn.current {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: default;
}

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

.plan-btn.upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.plan-card.current-plan {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.plan-card.current-plan .plan-btn.current {
    background: var(--success);
    color: white;
}

.empty-state-small {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.empty-state-small p {
    margin: 0;
    font-size: 0.875rem;
}

/* Credits Grid */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .credits-grid {
        grid-template-columns: 1fr;
    }
}

.credit-pack {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.credit-pack:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.credit-pack.featured {
    border-color: var(--success);
    box-shadow: 0 0 0 1px var(--success);
}

.credit-pack-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.credit-pack-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.credit-pack-icon svg {
    width: 24px;
    height: 24px;
}

.credit-pack-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.credit-pack-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.credit-pack-rate {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.credit-pack-savings {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 12px;
}

.credit-pack-btn {
    width: 100%;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
}

.credit-pack-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Billing History */
.billing-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.billing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.billing-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.billing-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
}

.billing-item-icon svg {
    width: 20px;
    height: 20px;
}

.billing-item-details {
    display: flex;
    flex-direction: column;
}

.billing-item-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.billing-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.billing-item-amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title svg {
    color: var(--primary);
}


/* ===== UNIFIED DESIGN STUDIO STYLES ===== */

.create-3d-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    min-height: calc(100vh - 200px);
}

@media (max-width: 1024px) {
    .create-3d-container {
        grid-template-columns: 1fr;
    }
}

.create-3d-input {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.create-3d-output {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input Method Selector */
.input-method-selector {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.input-method-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-method-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

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

.input-method-btn svg {
    flex-shrink: 0;
}

/* Input Method Content */
.input-method-content {
    display: none;
}

.input-method-content.active {
    display: block;
}

/* Selected Images Section */
.selected-images-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
}

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

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.selected-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.selected-count.has-selection {
    background: var(--primary);
    color: white;
}

/* Unified Preview Grid */
.unified-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    min-height: 100px;
}

.empty-selection {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
}

.empty-selection svg {
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-selection p {
    font-size: 0.875rem;
    margin: 0;
}

.selected-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.selected-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-image-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 4px;
    border-radius: 4px;
}

.selected-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.selected-image-item:hover .selected-image-remove {
    opacity: 1;
}

/* Image Sources */
.image-sources {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.image-source-section {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.source-header:hover {
    background: var(--bg-secondary);
}

.source-header.collapsed .chevron-icon {
    transform: rotate(-90deg);
}

.source-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.source-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.chevron-icon {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.source-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.source-content.expanded {
    max-height: 500px;
    padding: 0 16px 16px;
}

/* Source Grid */
.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
}

.empty-source {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.source-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.source-image-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.source-image-item.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.source-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.source-image-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
}

.source-image-item.selected .source-image-check {
    display: flex;
}

.source-image-delete {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
}

.source-image-item:hover .source-image-delete {
    display: flex;
}

/* Compact Upload Area */
.upload-area-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.upload-area-compact:hover,
.upload-area-compact.dragover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.upload-area-compact svg {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-area-compact p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.upload-area-compact .upload-link {
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
}

.upload-area-compact .upload-formats {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Text Input Section */
.text-input-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 20px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.text-method-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

.text-method-info svg {
    flex-shrink: 0;
    color: #3b82f6;
}

/* Generate Section */
.generate-section {
    margin-top: auto;
    padding-top: 20px;
}

.generate-3d-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
}

.generate-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Generation Progress */
.generation-progress {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.progress-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-tertiary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#progress-status {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar-container {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #3b82f6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Output Section */
.output-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
    flex: 1;
}

.output-header {
    margin-bottom: 12px;
}

.output-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.models-output-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    min-height: 200px;
}

.empty-output {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-output svg {
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-output .empty-title {
    font-weight: 500;
    margin: 0 0 4px;
}

.empty-output .empty-text {
    font-size: 0.875rem;
    margin: 0;
}

/* Model Card */
.model-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

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

.model-thumbnail {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.model-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-thumbnail svg {
    color: var(--text-muted);
    opacity: 0.5;
}

.model-actions {
    display: flex;
    gap: 4px;
    padding: 8px;
    justify-content: center;
}

.model-action-btn {
    padding: 4px 8px;
    border: none;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Pro Tips Compact */
.pro-tips-compact {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.pro-tips-compact .pro-tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.pro-tips-compact ul {
    margin: 0;
    padding-left: 16px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pro-tips-compact li {
    margin-bottom: 4px;
}

.pro-tips-compact li:last-child {
    margin-bottom: 0;
}

/* Clear Selection Button */
.clear-selection-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-selection-btn:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* Spinner for buttons */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== Wireframe UI Enhancements ===== */
.page-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 32px;
}

@media (max-width: 1024px) {
    .page-content {
        padding: 24px;
    }
}

.hero-banner {
    border-radius: 18px;
    padding: 24px 28px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
    margin-bottom: 24px;
}

.hero-banner.hero-dashboard {
    background: var(--primary-gradient);
}

.hero-banner.hero-requests {
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 100%);
}

.hero-banner.hero-manufacturing {
    background: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%);
}

.hero-banner.hero-materials {
    background: linear-gradient(90deg, #059669 0%, #16a34a 100%);
}

.hero-banner.hero-manufacturing,
.hero-banner.hero-materials {
    flex-direction: column;
    align-items: stretch;
}

.hero-banner.hero-manufacturing .hero-banner-content,
.hero-banner.hero-materials .hero-banner-content {
    max-width: 100%;
}

.hero-banner-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 640px;
}

.hero-kicker {
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 0.9375rem;
    opacity: 0.9;
}

.hero-banner-action {
    flex-shrink: 0;
}

.hero-btn {
    background: white;
    color: #4f46e5;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.hero-icon svg {
    width: 22px;
    height: 22px;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 16px 20px;
    border-radius: 16px;
    text-align: center;
    min-width: 140px;
}

.pill-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.pill-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 12px;
}

.metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.metric-label {
    font-size: 0.75rem;
    opacity: 0.85;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.stat-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.stat-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-meta.positive {
    color: #16a34a;
    font-weight: 600;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.action-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all var(--transition);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.action-icon svg {
    width: 20px;
    height: 20px;
}

.action-purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.action-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.action-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.action-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.action-title {
    font-weight: 600;
    color: var(--text-primary);
}

.action-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.credits-overview .card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.credits-count {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.credits-progress {
    margin: 12px 0 16px;
}

.credits-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.credits-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 999px;
}

.credits-overview {
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.credits-overview .card-title {
    font-size: 1rem;
}

.credits-overview .btn {
    width: 100%;
    border-radius: 12px;
}

.plan-overview {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.3);
}

.plan-overview .plan-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.plan-overview .plan-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.plan-overview .plan-description {
    font-size: 0.8125rem;
    opacity: 0.9;
    margin: 8px 0 16px;
}

.plan-overview .btn {
    width: 100%;
    border-radius: 12px;
}

.plan-overview .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
}

.activity-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.activity-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.info-card {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e9d5ff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.section-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.section-tab {
    background: none;
    border: none;
    padding: 12px 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.section-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.requests-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

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

.search-field {
    position: relative;
}

.search-field input {
    width: 220px;
    padding: 10px 12px 10px 36px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.search-field svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

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

.request-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.request-image {
    position: relative;
    height: 160px;
}

.request-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.request-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 999px;
}

.request-badge.status {
    left: auto;
    right: 10px;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
}

.request-badge.priority {
    top: auto;
    bottom: 10px;
    right: 10px;
    left: auto;
    text-transform: capitalize;
    background: rgba(239, 68, 68, 0.9);
}

.request-badge.priority.medium {
    background: rgba(245, 158, 11, 0.9);
}

.request-badge.status.progress {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.request-badge.status.complete {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.request-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.request-id {
    font-weight: 700;
    color: var(--text-primary);
}

.request-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.request-budget {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 4px;
}

.request-budget .amount {
    color: var(--primary);
    font-weight: 700;
}

.request-budget .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.photo-studio-layout {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 24px;
}

.studio-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
}

.studio-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.studio-card-header h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.studio-card-header p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #7c3aed;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.pill-required {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.pill-ai {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.upload-dropzone {
    border: 2px dashed #c4b5fd;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    background: #f8f7ff;
    cursor: pointer;
    transition: all var(--transition);
}

.upload-dropzone:hover {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.upload-title {
    font-weight: 600;
    margin-top: 12px;
}

.upload-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.upload-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.upload-tip {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.studio-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-top: 16px;
}

.select-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

.pro-tips-card {
    background: #eef4ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 16px;
    margin-top: 20px;
}

.pro-tips-card .pro-tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 10px;
}

.pro-tips-list {
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.manufacturer-results {
    margin-top: 24px;
}

.manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.manufacturer-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
}

.manufacturer-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.manufacturer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.manufacturer-name {
    font-weight: 700;
    color: var(--text-primary);
}

.manufacturer-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.manufacturer-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-weight: 600;
    white-space: nowrap;
}

.manufacturer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.manufacturer-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.manufacturer-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 8px;
}

.manufacturer-stats .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

.manufacturer-stats .stat-value {
    font-size: 0.85rem;
    font-weight: 600;
}

.manufacturer-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.info-panel {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.info-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #c7d2fe;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-panel-content h3 {
    margin-bottom: 6px;
}

.info-checks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.info-checks span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-checks svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
}

.materials-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.materials-search .search-field {
    flex: 1;
}

.materials-search .search-field input {
    width: 100%;
}

.chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

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

.material-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.material-image {
    height: 160px;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-body {
    padding: 16px;
}

.material-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.material-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.material-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.material-price {
    font-weight: 700;
    color: var(--primary);
}

.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-tab {
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
}

.settings-tab.active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-color: #c4b5fd;
}

.settings-panel {
    background: var(--bg-primary);
}

.settings-header h3 {
    margin-bottom: 4px;
}

.settings-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-inline {
    display: flex;
    gap: 12px;
}

.form-inline .form-input {
    flex: 1;
}

.tag-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-height: 48px;
}

.tag-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: white;
    transition: all var(--transition);
}

.tag-pill.selected {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.tag-input-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.manufacturer-fields {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--bg-secondary);
}

.manufacturer-settings {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.stripe-connect-card {
    margin: 20px 0 24px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.stripe-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stripe-status[data-status="success"] {
    background: rgba(16, 185, 129, 0.16);
    color: var(--success);
}

.stripe-status[data-status="warning"] {
    background: rgba(245, 158, 11, 0.16);
    color: var(--warning);
}

.stripe-status[data-status="error"] {
    background: rgba(239, 68, 68, 0.16);
    color: var(--error);
}

.stripe-modal-status {
    margin-top: 12px;
    font-weight: 600;
}

.billing-tabs {
    margin-top: 8px;
}

.billing-panels {
    margin-top: 20px;
}

.billing-panel {
    display: none;
}

.billing-panel.active {
    display: block;
}

.billing-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

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

.transactions-list {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.transactions-list-header {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.transactions-list-header h3 {
    font-size: 1rem;
}

.transactions-count {
    background: var(--bg-secondary);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.transactions-list-body {
    overflow-y: auto;
    max-height: 640px;
}

.transaction-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition);
}

.transaction-item:hover,
.transaction-item.active {
    background: var(--bg-secondary);
}

.transaction-title {
    font-weight: 600;
    color: var(--text-primary);
}

.transaction-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.transaction-status {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.transaction-status.quoted {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.transaction-status.pending {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.transactions-detail {
    min-height: 420px;
}

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

.transaction-detail-header h3 {
    font-size: 1.2rem;
}

.transaction-detail-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.transaction-message {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.quote-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.quote-card h4 {
    margin-bottom: 10px;
}

.quote-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.quote-summary span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quote-summary strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.quote-form {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 16px;
}

.billing-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.billing-cta {
    background: white;
    color: #4f46e5;
    border: none;
}

.billing-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.billing-activity {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.activity-amount {
    font-weight: 700;
    color: var(--text-primary);
}

.ai-search-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1200px) {
    .hero-metrics,
    .stats-grid,
    .billing-stats-grid,
    .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-layout,
    .photo-studio-layout,
    .settings-layout {
        grid-template-columns: 1fr;
    }
    .requests-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-field input {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .stats-grid,
    .billing-stats-grid,
    .action-grid,
    .search-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .hero-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        order: -1;
    }
    .role-grid,
    .landing-flow .flow-grid,
    .manufacturer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .application-section {
        grid-template-columns: 1fr;
    }
    .application-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .landing-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .landing-links {
        flex-wrap: wrap;
        row-gap: 12px;
    }
    .landing-actions {
        width: 100%;
    }
    .hero-meta {
        grid-template-columns: 1fr;
    }
    .role-grid,
    .landing-flow .flow-grid,
    .manufacturer-grid,
    .application-highlights {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .visual-card {
        position: relative;
        max-width: 100%;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }
    .visual-card.secondary,
    .visual-card.tertiary {
        right: auto;
        left: auto;
        top: auto;
        bottom: auto;
    }
    .transactions-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .landing-page {
        padding: 24px 16px 64px;
    }
    .landing-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .landing-btn {
        width: 100%;
    }
    .hero-copy h1 {
        font-size: 2.2rem;
    }
    .landing-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===== Role Visibility ===== */
.manufacturer-only,
.designer-only {
    display: none !important;
}

body[data-user-role="manufacturer"] .manufacturer-only {
    display: flex !important;
}

body[data-user-role="manufacturer"] .manufacturer-only.page {
    display: block !important;
}

body[data-user-role="jeweler"] .designer-only {
    display: flex !important;
}

body[data-user-role="jeweler"] .designer-only.page {
    display: block !important;
}

/* ===== Requests Grid Enhancements ===== */
.request-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.request-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(14, 116, 144, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.request-badge.status.quoted {
    background: rgba(14, 116, 144, 0.15);
    color: #0e7490;
}

.request-badge.status.countered {
    background: rgba(249, 115, 22, 0.15);
    color: #c2410c;
}

.request-badge.status.accepted {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.request-badge.status.declined {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

/* ===== Asset Picker ===== */
.asset-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.asset-option {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 8px;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asset-option img {
    width: 100%;
    height: 72px;
    max-height: 72px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.asset-thumb-placeholder {
    width: 100%;
    height: 72px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.asset-option .asset-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.asset-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
    background: rgba(124, 58, 237, 0.08);
}

.asset-option.empty {
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    min-height: 120px;
}

/* ===== Request Detail Modal ===== */
.request-detail-modal {
    width: min(1100px, 96vw);
}

.request-detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
}

.request-detail-media {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.request-media-main {
    background: var(--bg-secondary);
    border-radius: 18px;
    padding: 12px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#request-preview-image,
#request-preview-model {
    width: 100%;
    height: 100%;
    max-height: 360px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
}

#request-preview-model {
    display: none;
}

.request-media-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.request-media-thumb {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 6px;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.request-media-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.request-media-thumb .asset-label {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.request-media-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.request-asset-actions {
    display: grid;
    gap: 10px;
}

.asset-download-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
}

.asset-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.request-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.request-summary-card,
.request-offers-card,
.request-chat-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    background: var(--bg-primary);
}

.request-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.request-summary-meta span {
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.request-summary-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.offer-history {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.offer-item {
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    background: var(--bg-secondary);
}

.offer-item .offer-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.offer-item .offer-value {
    font-weight: 700;
    color: var(--text-primary);
}

.request-offer-actions {
    border: 1px dashed var(--border-light);
    border-radius: 16px;
    padding: 16px;
    background: rgba(124, 58, 237, 0.04);
}

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

.request-chat-messages {
    display: grid;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.chat-message {
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg-secondary);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chat-message.outgoing {
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.chat-message .chat-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.request-chat-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.request-chat-form .form-input {
    flex: 1;
}

@media (max-width: 900px) {
    .request-detail-body {
        grid-template-columns: 1fr;
    }
}

/* ===== 2026 Design Workflow Refresh ===== */
.design-workflow-page {
    max-width: 1320px;
}

.design-stepper-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.design-stepper {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    gap: 14px;
}

.design-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.design-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d6dbe6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #44506a;
    background: #f3f5fb;
}

.design-step-label {
    font-size: 0.86rem;
    color: #334155;
    font-weight: 500;
}

.design-step-line {
    height: 2px;
    background: #dbe1ea;
    border-radius: 2px;
}

.design-workflow-tabs {
    margin-bottom: 22px;
}

.design-workflow-tabs .tab {
    font-weight: 600;
}

.tab-note {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

.design-workflow-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.85fr;
    gap: 22px;
}

.design-workflow-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.design-workflow-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.design-card,
.design-side-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.quick-template-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.quick-template-header h3 {
    margin: 0;
    font-size: 1.06rem;
}

.quick-template-header p {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.quick-template-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9333ea, #2563eb);
    color: #fff;
}

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

.quick-template-item {
    text-align: left;
    border: 1px solid #d6dbe6;
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.quick-template-item strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.quick-template-item span {
    font-size: 0.8rem;
    color: #475569;
}

.quick-template-item:hover {
    border-color: #8b5cf6;
    transform: translateY(-1px);
}

.workflow-step-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.workflow-step-heading h3 {
    margin: 0;
    font-size: 1.04rem;
}

.workflow-step-heading h3 small {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step-pill {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #ede9fe;
    color: #7c3aed;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.choice-grid-style {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-item {
    border: 1px solid #d5dbe6;
    border-radius: 12px;
    background: #fff;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.choice-item strong {
    font-size: 0.95rem;
}

.choice-item span {
    font-size: 0.78rem;
    color: #4b5563;
}

.choice-item:hover {
    border-color: #8b5cf6;
}

.choice-item.is-active {
    border-color: #8b5cf6;
    background: linear-gradient(180deg, #f7f0ff 0%, #eef4ff 100%);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.design-vision-input {
    min-height: 110px;
}

.prompt-tips-box {
    margin-top: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px 14px;
}

.prompt-tips-box strong {
    display: block;
    font-size: 0.86rem;
    margin-bottom: 6px;
    color: #1d4ed8;
}

.prompt-tips-box ul {
    margin: 0;
    padding-left: 18px;
    color: #1e3a8a;
    font-size: 0.82rem;
}

.reference-counter {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reference-upload-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
}

.reference-upload-tile {
    border: 2px dashed #c7d2fe;
    border-radius: 12px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    background: #f8fafc;
    cursor: pointer;
}

.reference-upload-tile:hover {
    border-color: #8b5cf6;
    color: #7c3aed;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-height: 120px;
}

.reference-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d5dbe6;
    aspect-ratio: 1;
}

.reference-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    cursor: pointer;
}

.advanced-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.generate-variations-btn {
    width: 100%;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(90deg, #9333ea 0%, #2563eb 100%);
    border: none;
}

.variation-progress {
    border: 1px solid #d5dbe6;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.86rem;
}

.design-side-card h3 {
    margin: 0 0 10px;
    font-size: 1.02rem;
}

.design-side-card ol {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.94rem;
}

.icon-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.icon-list li {
    position: relative;
    padding-left: 20px;
}

.icon-list li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: #8b5cf6;
}

.export-teaser-card {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: #fff;
    border: none;
}

.export-teaser-card h3,
.export-teaser-card .icon-list {
    color: #fff;
}

.export-teaser-card .icon-list li::before {
    color: #c4b5fd;
}

.price-row {
    margin: 14px 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-row strong {
    font-size: 1.9rem;
    line-height: 1;
}

.price-row small {
    font-size: 0.75rem;
    font-weight: 500;
}

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

.example-prompt-item {
    width: 100%;
    border: 1px solid #d6dbe6;
    border-radius: 10px;
    background: #f8fafc;
    text-align: left;
    font-size: 0.92rem;
    color: #0f172a;
    padding: 12px;
}

.generated-designs-panel {
    margin-top: 18px;
}

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

.generated-designs-header h3 {
    margin: 0;
}

.generated-badge {
    font-size: 0.84rem;
    border-radius: 999px;
    background: #e5f7eb;
    color: #15803d;
    padding: 6px 12px;
    font-weight: 600;
}

.design-variations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.variation-placeholder,
.variation-card {
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 14px;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.variation-card {
    padding: 0;
    cursor: pointer;
}

.variation-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 28px;
}

.variation-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.92);
}

.variation-skeleton {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: variationShimmer 1.4s linear infinite;
}

@keyframes variationShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.variation-card .variation-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(15, 23, 42, 0.68);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
}

.variation-card .variation-state {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 0.74rem;
}

.variation-card.is-selected {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.variation-actions {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variation-action-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 14px;
    font-size: 1.14rem;
    font-weight: 700;
}

.variation-action-download {
    background: #08a24a;
    border: 1px solid #08a24a;
    color: #fff;
}

.variation-action-download:hover:not(:disabled) {
    background: #088d41;
    border-color: #088d41;
}

.variation-action-convert {
    background: linear-gradient(90deg, #9926ec 0%, #2563eb 100%);
    border: none;
    color: #fff;
}

.variation-action-convert:hover:not(:disabled) {
    filter: brightness(1.02);
}

.design-preview-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    gap: 20px;
}

.design-preview-main,
.design-preview-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-viewer-wrap {
    height: 430px;
    border-radius: 14px;
    overflow: hidden;
}

.viewer-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-align: center;
    padding: 16px;
}

.viewer-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.form-input-sm {
    width: auto;
    min-width: 160px;
    padding: 8px 10px;
}

.cad-review-card h3,
.export-production-card h3,
.selected-design-card h3 {
    margin-bottom: 12px;
}

.cad-action-btn {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #d5dbe6;
    background: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 12px;
    cursor: pointer;
}

.cad-action-btn.approve.is-approved {
    border-color: #22c55e;
    background: #ecfdf3;
    color: #15803d;
}

.cad-action-btn.decline.is-declined {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #b45309;
}

.export-production-card {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: #fff;
    border: none;
}

.export-production-card p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 16px;
}

.export-production-card .btn-secondary {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.selected-variation-preview {
    background: #f8fafc;
    border: 1px solid #d5dbe6;
    border-radius: 14px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #64748b;
    margin-bottom: 12px;
}

.selected-variation-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    padding: 8px;
}

@media (max-width: 1180px) {
    .design-workflow-grid,
    .design-preview-grid {
        grid-template-columns: 1fr;
    }

    .choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .design-stepper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .design-step-line {
        display: none;
    }

    .quick-template-grid,
    .design-variations-grid,
    .reference-grid,
    .advanced-options-grid,
    .choice-grid,
    .choice-grid-style {
        grid-template-columns: 1fr;
    }

    .reference-upload-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Home V2 (Screenshot Layout) ===== */
.home-v2 {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.home-hero-banner {
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.home-hero-copy {
    min-width: 0;
}

.home-hero-greeting {
    font-size: 0.95rem;
    opacity: 0.92;
    margin-bottom: 8px;
}

.home-hero-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.15;
}

.home-hero-subtitle {
    margin-top: 10px;
    font-size: 0.98rem;
    opacity: 0.9;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 16px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.home-hero-btn:hover {
    filter: brightness(0.98);
}

.home-hero-btn-icon,
.home-hero-btn-arrow {
    width: 18px;
    height: 18px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.home-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary);
    flex: 0 0 auto;
}

.home-stat-icon svg {
    width: 20px;
    height: 20px;
}

.home-stat-icon.stat-green {
    background: rgba(16, 185, 129, 0.14);
    color: var(--success);
}

.home-stat-icon.stat-blue {
    background: rgba(59, 130, 246, 0.14);
    color: var(--info);
}

.home-stat-icon.stat-amber {
    background: rgba(245, 158, 11, 0.16);
    color: var(--warning);
}

.home-stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.home-stat-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 8px;
}

.home-stat-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.home-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

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

.workflow-header h2 {
    font-size: 1.1rem;
    font-weight: 900;
}

.workflow-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.workflow-meta svg {
    width: 16px;
    height: 16px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.workflow-step-card {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.workflow-step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(124, 58, 237, 0.35);
}

.workflow-step-icon {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-step-icon svg {
    width: 20px;
    height: 20px;
}

.workflow-step-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.workflow-step-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-primary);
}

.home-bottom-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    gap: 20px;
    align-items: start;
}

.home-section {
    margin-bottom: 18px;
}

.home-section-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.priority-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.priority-action-card {
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.priority-action-card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.priority-action-card.urgent {
    border-color: rgba(239, 68, 68, 0.35);
    background: linear-gradient(0deg, rgba(239, 68, 68, 0.06), rgba(255, 255, 255, 0.95));
}

.priority-action-icon {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.priority-action-card.urgent .priority-action-icon {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.priority-action-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.priority-action-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.priority-action-title {
    font-weight: 900;
    color: var(--text-primary);
}

.priority-action-subtitle {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.priority-badge {
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 999px;
}

.priority-badge.urgent {
    background: rgba(239, 68, 68, 0.14);
    color: var(--error);
}

.priority-badge.new {
    background: rgba(124, 58, 237, 0.14);
    color: var(--primary);
}

.priority-action-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.projects-tabs {
    display: flex;
    gap: 10px;
}

.projects-tab {
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.projects-tab.active {
    background: rgba(124, 58, 237, 0.12);
    color: var(--primary);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
}

.project-meta {
    display: flex;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    flex-wrap: wrap;
    margin-top: 4px;
}

.project-badge {
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 999px;
}

.project-badge.high {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
}

.project-badge.medium {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.project-progress-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.86rem;
    margin-top: 14px;
}

.project-progress-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.project-progress-bar span {
    display: block;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 999px;
}

.project-cta {
    margin-top: 14px;
    width: 100%;
    border-radius: 14px;
    font-weight: 900;
}

.credits-balance-card {
    background: linear-gradient(180deg, #f59e0b 0%, #f97316 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 92px;
}

.credits-balance-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credits-balance-icon {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.credits-balance-icon svg {
    width: 22px;
    height: 22px;
}

.credits-balance-label {
    font-size: 0.86rem;
    opacity: 0.92;
}

.credits-balance-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 4px;
}

.credits-balance-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 14px;
}

.credits-balance-bar span {
    height: 100%;
    display: block;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
}

.credits-balance-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    opacity: 0.92;
    margin-top: 10px;
}

.credits-balance-btn {
    width: 100%;
    margin-top: 14px;
    background: #ffffff;
    color: #d97706;
    border: none;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
}

.credits-balance-btn:hover {
    filter: brightness(0.98);
}

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

.quick-link {
    width: 100%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.quick-link:hover {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.quick-link svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.pro-tip-card {
    border: 2px solid rgba(59, 130, 246, 0.22);
    background: linear-gradient(0deg, rgba(59, 130, 246, 0.06), #ffffff);
}

.pro-tip-text {
    color: var(--text-secondary);
    margin: 10px 0 14px;
}

@media (max-width: 1180px) {
    .home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-bottom-grid {
        grid-template-columns: 1fr;
    }

    .credits-balance-card {
        position: static;
    }

    .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-hero-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-title {
        font-size: 1.45rem;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }
}

/* ===== Billing V2 ===== */
.billing-tabs .section-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.billing-tabs .section-tab svg {
    flex: 0 0 auto;
}

.billing-hero-v2 {
    padding: 26px 28px;
    align-items: flex-start;
    gap: 20px;
}

.billing-hero-v2 .billing-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.billing-hero-v2 .billing-hero-label {
    opacity: 0.9;
    margin-right: 8px;
}

.billing-hero-v2 .billing-hero-title {
    font-weight: 900;
}

.billing-hero-v2 .billing-hero-subtitle {
    opacity: 0.9;
}

.billing-hero-v2 .billing-pill {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 900;
}

.billing-hero-v2 .billing-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.billing-hero-v2 .billing-metric-label {
    display: block;
    font-size: 0.82rem;
    opacity: 0.9;
}

.billing-hero-v2 .billing-metric-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    margin-top: 6px;
}

.billing-hero-v2 .billing-cta {
    border-radius: 16px;
    border: none;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
}

.billing-hero-v2 .billing-cta:hover {
    filter: brightness(0.98);
}

@media (max-width: 760px) {
    .billing-hero-v2 {
        flex-direction: column;
    }

    .billing-hero-v2 .billing-hero-metrics {
        grid-template-columns: 1fr;
    }
}
