/* Workflow Editor - CSS */
/* Matches Reelify.se main site theme */
/* Note: html { font-size: 62.5% } from app.css means 1rem = 10px */

:root {
    --wf-bg-base: #000000;
    --wf-bg-surface: #0a0a0a;
    --wf-bg-elevated: #111118;
    --wf-bg-hover: #1a1a24;
    --wf-border: #1b2738;
    --wf-border-subtle: #141a26;
    --wf-text-primary: #E1E6FD;
    --wf-text-secondary: #A8ACBD;
    --wf-text-muted: #555;
    --wf-accent: #3B82F6;
    --wf-accent-hover: #5BA0F7;
    --wf-accent-subtle: rgba(59, 130, 246, 0.12);
    --wf-accent-gradient: linear-gradient(135deg, #3B82F6 0%, #2e00e5 100%);
    --wf-success: #24A148;
    --wf-danger: #FF006E;
    --wf-radius-sm: 8px;
    --wf-radius-md: 12px;
    --wf-radius-lg: 16px;
    --wf-radius-xl: 20px;
    --wf-shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --wf-shadow-md: 0 4px 15px rgba(0, 90, 255, 0.2);
    --wf-shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

.workflow-app {
    min-height: 100vh;
    background: var(--wf-bg-base);
    color: var(--wf-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.01rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   LOGIN
   ============================================ */
.wf-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem;
    background: var(--wf-bg-base);
}

.wf-login-card {
    background: var(--wf-bg-surface);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    padding: 4rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--wf-shadow-lg);
}

.wf-login-logo {
    width: 140px;
    height: auto;
    margin-bottom: 2rem;
}

.wf-login-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--wf-text-primary);
}

.wf-login-subtitle {
    color: var(--wf-text-secondary);
    font-size: 1.4rem;
    margin: 0 0 2.5rem;
}

.wf-login-form {
    text-align: left;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.wf-form-group {
    margin-bottom: 1.5rem;
}

.wf-form-group label {
    display: block;
    font-size: 1.3rem;
    color: var(--wf-text-secondary);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.wf-input {
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: var(--wf-bg-elevated);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-md);
    color: var(--wf-text-primary);
    font-size: 1.4rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.wf-input:focus {
    border-color: var(--wf-accent);
    box-shadow: 0 0 0 3px var(--wf-accent-subtle);
}

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

.wf-prompt-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.wf-error {
    color: var(--wf-danger);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 0, 110, 0.08);
    border: 1px solid rgba(255, 0, 110, 0.2);
    border-radius: var(--wf-radius-sm);
}

/* ============================================
   BUTTONS
   ============================================ */
.wf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: var(--wf-radius-sm);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.wf-btn-primary {
    background: var(--wf-accent-gradient);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 90, 255, 0.2);
}

.wf-btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 0 40px rgba(0, 90, 255, 0.5), 0 0 60px rgba(46, 0, 229, 0.3);
    transform: translateY(-2px);
}

.wf-btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 20px rgba(0, 90, 255, 0.3);
}

.wf-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

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

.wf-btn-secondary:hover {
    background: var(--wf-bg-hover);
    color: var(--wf-text-primary);
    border-color: #444;
}

.wf-btn-icon {
    background: transparent;
    color: var(--wf-text-secondary);
    padding: 0.8rem;
    border-radius: var(--wf-radius-sm);
}

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

.wf-btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
    background: transparent;
    border: 1px solid var(--wf-border);
    color: var(--wf-text-secondary);
    border-radius: var(--wf-radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.wf-btn-small:hover {
    background: var(--wf-accent);
    border-color: var(--wf-accent);
    color: #fff;
}

.wf-btn-danger-small {
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
    background: transparent;
    color: var(--wf-text-muted);
    border: 1px solid transparent;
    border-radius: var(--wf-radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.wf-btn-danger-small:hover {
    border-color: var(--wf-danger);
    color: var(--wf-danger);
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.wf-projects {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.wf-projects-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.wf-projects-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--wf-text-primary);
}

.wf-projects-subtitle {
    color: var(--wf-text-secondary);
    margin: 0.5rem 0 0;
    font-size: 1.4rem;
}

.wf-projects-actions {
    display: flex;
    gap: 0.8rem;
}

.wf-loading {
    text-align: center;
    color: var(--wf-text-secondary);
    padding: 6rem 0;
    font-size: 1.5rem;
}

.wf-empty {
    text-align: center;
    padding: 8rem 3rem;
    color: var(--wf-text-secondary);
}

.wf-empty-icon {
    color: #333;
    margin-bottom: 1.5rem;
}

.wf-empty p {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Project Grid */
.wf-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.wf-project-card {
    background: var(--wf-bg-surface);
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.wf-project-card:hover {
    border-color: var(--wf-accent);
    box-shadow: 0 0 0 1px var(--wf-accent), 0 4px 20px rgba(0, 90, 255, 0.15);
    transform: translateY(-1px);
}

.wf-project-card-body {
    padding: 2rem;
    cursor: pointer;
}

.wf-project-name {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--wf-text-primary);
}

.wf-project-customer {
    color: var(--wf-text-secondary);
    font-size: 1.3rem;
    margin: 0 0 0.8rem;
}

.wf-project-date {
    color: var(--wf-text-muted);
    font-size: 1.2rem;
    margin: 0;
}

.wf-project-card-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-top: 1px solid var(--wf-border-subtle);
}

/* Dialog */
.wf-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 3rem;
}

.wf-dialog {
    background: var(--wf-bg-surface);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    padding: 3rem;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--wf-shadow-lg);
}

.wf-dialog h3 {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 2rem;
    color: var(--wf-text-primary);
}

.wf-dialog-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.wf-confirm-dialog {
    max-width: 380px;
    padding: 2rem 2.4rem;
}

.wf-confirm-dialog h3 {
    font-size: 1.6rem;
    margin: 0 0 0.8rem;
}

.wf-confirm-dialog .wf-dialog-actions {
    margin-top: 1.6rem;
}

/* ============================================
   EDITOR PAGE
   ============================================ */
.wf-editor {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--wf-bg-base);
}

/* Toolbar - floating card */
.wf-toolbar {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.8rem 1.6rem;
    background: #050508;
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-lg);
    min-height: 62px;
    box-shadow: var(--wf-shadow-md);
}

.wf-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

.wf-toolbar-favicon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--wf-radius-sm);
    transition: background 0.15s;
    flex-shrink: 0;
    text-decoration: none;
}

.wf-toolbar-favicon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.wf-toolbar-favicon:hover {
    background: var(--wf-bg-hover);
}

.wf-toolbar-separator {
    color: #333;
    font-size: 1.4rem;
    padding: 0 0.5rem;
    user-select: none;
}

.wf-toolbar-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.wf-toolbar-name {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--wf-text-primary);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: var(--wf-radius-sm);
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-toolbar-name:hover {
    background: var(--wf-bg-hover);
}

.wf-toolbar-page {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.35rem;
    color: var(--wf-text-secondary);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: var(--wf-radius-sm);
    transition: all 0.15s;
    white-space: nowrap;
}

.wf-toolbar-page:hover {
    background: var(--wf-bg-hover);
    color: var(--wf-text-primary);
}

.wf-toolbar-page svg {
    opacity: 0.5;
}

.wf-toolbar-name-input {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--wf-text-primary);
    background: var(--wf-bg-elevated);
    border: 1px solid var(--wf-accent);
    border-radius: var(--wf-radius-sm);
    padding: 0.35rem 0.8rem;
    outline: none;
    width: 180px;
    font-family: inherit;
}

.wf-toolbar-page-input {
    font-size: 1.3rem;
    width: 110px;
}

/* Dropdown menus */
.wf-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--wf-bg-surface);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-md);
    padding: 4px 0;
    min-width: 190px;
    box-shadow: var(--wf-shadow-lg);
    z-index: 100;
    animation: wf-dropdown-show 0.12s ease-out;
}

@keyframes wf-dropdown-show {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.wf-dropdown-header {
    padding: 0.6rem 1.2rem 0.3rem;
    font-size: 1.1rem;
    color: var(--wf-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.wf-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 1.2rem;
    font-size: 1.35rem;
    color: var(--wf-text-secondary);
    cursor: pointer;
    transition: all 0.1s;
}

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

.wf-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.wf-dropdown-danger {
    color: var(--wf-text-muted);
}

.wf-dropdown-danger:hover {
    background: rgba(255, 0, 110, 0.06);
    color: var(--wf-danger);
}

.wf-dropdown-danger:hover svg {
    stroke: var(--wf-danger);
}

.wf-dropdown-divider {
    height: 1px;
    background: var(--wf-border-subtle);
    margin: 4px 0;
}

/* Page list in dropdown */
.wf-page-dropdown {
    min-width: 210px;
}

.wf-dropdown-page {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.45rem 1.2rem;
    transition: background 0.1s;
}

.wf-dropdown-page:hover {
    background: var(--wf-bg-elevated);
}

.wf-dropdown-page.active {
    background: var(--wf-bg-hover);
}

.wf-dropdown-page.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--wf-accent);
    border-radius: 2px;
}

.wf-dropdown-page-name {
    flex: 1;
    font-size: 1.35rem;
    color: var(--wf-text-primary);
    cursor: pointer;
    padding: 0.2rem 0;
}

.wf-dropdown-page-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--wf-text-muted);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.1s;
}

.wf-dropdown-page-menu:hover {
    background: var(--wf-bg-hover);
    color: var(--wf-text-primary);
}

.wf-dropdown-submenu {
    position: absolute;
    left: 100%;
    top: -4px;
    background: var(--wf-bg-surface);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-md);
    padding: 4px 0;
    min-width: 160px;
    box-shadow: var(--wf-shadow-lg);
    z-index: 101;
}

.wf-toolbar-customer {
    color: var(--wf-text-muted);
    font-size: 1.3rem;
    white-space: nowrap;
}

.wf-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.wf-save-status {
    font-size: 1.2rem;
    color: var(--wf-text-secondary);
    padding: 0 0.6rem;
}

.wf-save-ok {
    color: var(--wf-success);
}

/* Editor Body */
.wf-editor-body {
    position: absolute;
    inset: 0;
    display: flex;
    overflow: hidden;
}

/* Sidebar (kept for compatibility) */
.wf-sidebar {
    width: 0;
    background: var(--wf-bg-surface);
    border-left: 1px solid var(--wf-border-subtle);
    overflow: hidden;
    transition: width 0.2s ease;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
}

.wf-sidebar.open {
    width: 280px;
}

.wf-sidebar-toggle {
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 48px;
    background: var(--wf-bg-surface);
    border: 1px solid var(--wf-border-subtle);
    border-right: none;
    border-radius: var(--wf-radius-sm) 0 0 var(--wf-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--wf-text-secondary);
    z-index: 6;
}

.wf-sidebar-toggle:hover {
    color: var(--wf-text-primary);
    background: var(--wf-bg-elevated);
}

.wf-sidebar-content {
    padding: 2rem;
    width: 280px;
    overflow-y: auto;
}

.wf-sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--wf-text-primary);
}

.wf-sidebar-hint {
    font-size: 1.2rem;
    color: var(--wf-text-muted);
    margin: 0 0 1.5rem;
}

/* Node Palette */
.wf-node-palette {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.wf-palette-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--wf-bg-elevated);
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-md);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.wf-palette-item:hover {
    border-color: var(--wf-accent);
    background: rgba(0, 90, 255, 0.06);
}

.wf-palette-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
    background: var(--wf-accent);
}

.wf-palette-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--wf-text-primary);
}

.wf-palette-desc {
    font-size: 1.15rem;
    color: var(--wf-text-muted);
}

/* Node Info */
.wf-node-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--wf-border-subtle);
}

.wf-node-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--wf-text-secondary);
}

.wf-node-info p {
    font-size: 1.2rem;
    color: var(--wf-text-muted);
    margin: 0;
}

/* Canvas Container */
.wf-canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--wf-bg-base);
    touch-action: none;
}

.wf-canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   LITEGRAPH OVERRIDES
   ============================================ */
.litegraph.litecontextmenu {
    background: var(--wf-bg-surface) !important;
    border: 1px solid var(--wf-border) !important;
    border-radius: var(--wf-radius-md) !important;
    box-shadow: var(--wf-shadow-lg) !important;
    color: var(--wf-text-primary) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.35rem !important;
}

.litegraph.litecontextmenu .litemenu-entry {
    color: var(--wf-text-secondary) !important;
    padding: 7px 14px !important;
    font-size: 1.35rem !important;
}

.litegraph.litecontextmenu .litemenu-entry:hover {
    background: var(--wf-bg-hover) !important;
    color: var(--wf-text-primary) !important;
}

.litegraph.litecontextmenu .litemenu-entry.separator {
    border-color: var(--wf-border-subtle) !important;
}

.litegraph .litesearchbox {
    background: var(--wf-bg-surface) !important;
    border: 1px solid var(--wf-accent) !important;
    border-radius: var(--wf-radius-md) !important;
}

.litegraph .litesearchbox input {
    background: var(--wf-bg-elevated) !important;
    color: var(--wf-text-primary) !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.4rem !important;
}

/* ============================================
   PROPERTIES PANEL (right side)
   ============================================ */
.wf-props-panel {
    position: absolute;
    right: 16px;
    top: 16px;
    bottom: 80px;
    width: 280px;
    background: #050508;
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-lg);
    box-shadow: var(--wf-shadow-md);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 15;
    animation: wf-props-slide-in 0.2s ease-out;
}

@keyframes wf-props-slide-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.wf-props-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.6rem 0.8rem;
}

.wf-props-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wf-text-primary);
    margin: 0;
    letter-spacing: 0.02rem;
}

.wf-props-close {
    background: none;
    border: none;
    color: var(--wf-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.15s;
}

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

.wf-props-node-label {
    padding: 0.5rem 1.6rem 1rem;
    font-size: 1.25rem;
    color: var(--wf-text-muted);
    border-bottom: 1px solid var(--wf-border-subtle);
}

.wf-props-body {
    flex: 1;
    padding: 1.2rem 1.6rem;
    overflow-y: auto;
}

.wf-props-section {
    margin-bottom: 1.6rem;
}

.wf-props-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--wf-text-secondary);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wf-props-select {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: var(--wf-bg-elevated);
    border: 1px solid var(--wf-border);
    border-radius: 8px;
    color: var(--wf-text-primary);
    font-size: 1.35rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.wf-props-select:hover {
    border-color: #444;
}

.wf-props-select:focus {
    border-color: var(--wf-accent);
    box-shadow: 0 0 0 2px var(--wf-accent-subtle);
}

.wf-props-select option {
    background: var(--wf-bg-elevated);
    color: var(--wf-text-primary);
}

.wf-props-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wf-props-tag {
    padding: 0.4rem 0.9rem;
    font-size: 1.15rem;
    font-family: inherit;
    background: var(--wf-bg-elevated);
    border: 1px solid var(--wf-border);
    border-radius: 100px;
    color: var(--wf-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
}

.wf-props-tag:hover {
    border-color: var(--wf-accent);
    color: var(--wf-text-primary);
    background: var(--wf-accent-subtle);
}

.wf-props-tag.active {
    background: var(--wf-accent);
    border-color: var(--wf-accent);
    color: #fff;
}

/* ============================================
   Camera & Movement hover previews
   ============================================ */

/* Camera & Movement modal */
.wf-cam-modal {
    background: var(--wf-bg-elevated);
    border-radius: var(--wf-radius-lg);
    border: 1px solid var(--wf-border);
    box-shadow: var(--wf-shadow-lg);
    width: 90vw;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
}

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

.wf-cam-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wf-text-primary);
    margin: 0;
}

.wf-cam-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.wf-cam-card {
    cursor: pointer;
    border-radius: var(--wf-radius-sm);
    border: 2px solid var(--wf-border);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--wf-bg-surface);
}

.wf-cam-card:hover {
    border-color: var(--wf-accent);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.wf-cam-card.active {
    border-color: var(--wf-accent);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.wf-cam-card-preview {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #000;
}

.wf-cam-card-img {
    width: 100%;
    height: 100%;
    background: url('/images/camera-preview.jpg') center/cover no-repeat;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-play-state: paused;
}

.wf-cam-card:hover .wf-cam-card-img {
    animation-play-state: running;
}

.wf-cam-card-label {
    display: block;
    text-align: center;
    padding: 6px 4px;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--wf-text-secondary);
}

.wf-cam-card.active .wf-cam-card-label {
    color: var(--wf-accent);
}

/* Static — no movement */
.wf-cam-static {
    animation: none;
}

/* Handheld — subtle shake */
@keyframes wf-handheld {
    0%   { transform: translate(0, 0) rotate(0deg); }
    20%  { transform: translate(-2px, 1px) rotate(-0.5deg); }
    40%  { transform: translate(1px, -1px) rotate(0.3deg); }
    60%  { transform: translate(-1px, 2px) rotate(-0.3deg); }
    80%  { transform: translate(2px, -1px) rotate(0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.wf-cam-handheld {
    animation-name: wf-handheld;
    animation-direction: normal;
    animation-duration: 1.5s;
}

/* Zoom Out — starts zoomed in, scales out */
@keyframes wf-zoom-out {
    0%   { transform: scale(1.5); }
    100% { transform: scale(1); }
}
.wf-cam-zoom-out {
    animation-name: wf-zoom-out;
}

/* Zoom In — scales up */
@keyframes wf-zoom-in {
    0%   { transform: scale(1); }
    100% { transform: scale(1.5); }
}
.wf-cam-zoom-in {
    animation-name: wf-zoom-in;
}

/* Camera Follows — translates to track subject horizontally */
@keyframes wf-follows {
    0%   { transform: translateX(-10%) scale(1.3); }
    100% { transform: translateX(10%) scale(1.3); }
}
.wf-cam-follows {
    animation-name: wf-follows;
}

/* Pan Left — image moves right (camera pans left) */
@keyframes wf-pan-left {
    0%   { transform: translateX(-15%) scale(1.3); }
    100% { transform: translateX(15%) scale(1.3); }
}
.wf-cam-pan-left {
    animation-name: wf-pan-left;
}

/* Pan Right — image moves left */
@keyframes wf-pan-right {
    0%   { transform: translateX(15%) scale(1.3); }
    100% { transform: translateX(-15%) scale(1.3); }
}
.wf-cam-pan-right {
    animation-name: wf-pan-right;
}

/* Tilt Up — image moves down (camera tilts up) */
@keyframes wf-tilt-up {
    0%   { transform: translateY(15%) scale(1.3); }
    100% { transform: translateY(-15%) scale(1.3); }
}
.wf-cam-tilt-up {
    animation-name: wf-tilt-up;
}

/* Tilt Down — image moves up */
@keyframes wf-tilt-down {
    0%   { transform: translateY(-15%) scale(1.3); }
    100% { transform: translateY(15%) scale(1.3); }
}
.wf-cam-tilt-down {
    animation-name: wf-tilt-down;
}

/* Orbit Around — perspective rotate Y */
@keyframes wf-orbit {
    0%   { transform: perspective(300px) rotateY(-15deg) scale(1.2); }
    100% { transform: perspective(300px) rotateY(15deg) scale(1.2); }
}
.wf-cam-orbit {
    animation-name: wf-orbit;
}

/* Dolly In — zoom + slight translate forward */
@keyframes wf-dolly-in {
    0%   { transform: scale(1); }
    100% { transform: scale(1.4); }
}
.wf-cam-dolly-in {
    animation-name: wf-dolly-in;
}

/* Dolly Out — zoom out */
@keyframes wf-dolly-out {
    0%   { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.wf-cam-dolly-out {
    animation-name: wf-dolly-out;
}

/* Jib Up — translate down + slight scale (crane rising) */
@keyframes wf-jib-up {
    0%   { transform: translateY(12%) scale(1.2); }
    100% { transform: translateY(-12%) scale(1.1); }
}
.wf-cam-jib-up {
    animation-name: wf-jib-up;
}

/* Jib Down — translate up + slight scale (crane lowering) */
@keyframes wf-jib-down {
    0%   { transform: translateY(-12%) scale(1.1); }
    100% { transform: translateY(12%) scale(1.2); }
}
.wf-cam-jib-down {
    animation-name: wf-jib-down;
}

/* Drone Shot — combined: tilt + pull back + rise */
@keyframes wf-drone {
    0%   { transform: scale(1.5) translateY(10%); }
    100% { transform: scale(1) translateY(-10%); }
}
.wf-cam-drone {
    animation-name: wf-drone;
}

/* Dolly Left — lateral left movement (image moves right) */
@keyframes wf-dolly-left {
    0%   { transform: translateX(-12%) scale(1.2); }
    100% { transform: translateX(12%) scale(1.2); }
}
.wf-cam-dolly-left {
    animation-name: wf-dolly-left;
}

/* Dolly Right — lateral right movement (image moves left) */
@keyframes wf-dolly-right {
    0%   { transform: translateX(12%) scale(1.2); }
    100% { transform: translateX(-12%) scale(1.2); }
}
.wf-cam-dolly-right {
    animation-name: wf-dolly-right;
}

/* 360 Roll — full rotation */
@keyframes wf-roll-360 {
    0%   { transform: rotate(0deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1.3); }
}
.wf-cam-roll-360 {
    animation-name: wf-roll-360;
    animation-direction: normal;
    animation-duration: 3s;
    animation-timing-function: linear;
}

.wf-props-footer {
    padding: 1.4rem 1.6rem;
    border-top: 1px solid var(--wf-border-subtle);
    margin-top: auto;
}

.wf-props-run {
    width: 100%;
    padding: 1rem;
    font-size: 1.4rem;
}

/* ============================================
   ADD NODE CONTEXT MENU (double-click)
   ============================================ */
.wf-addnode-menu {
    position: fixed;
    z-index: 9999;
    background: var(--wf-bg-surface);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    padding: 6px 0;
    min-width: 200px;
    box-shadow: var(--wf-shadow-lg);
    animation: wf-addnode-fadeIn 0.15s ease-out;
    backdrop-filter: blur(12px);
}

@keyframes wf-addnode-fadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(-4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.wf-addnode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    color: var(--wf-text-secondary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.1s;
    font-weight: 500;
}

.wf-addnode-item:hover {
    background: var(--wf-accent-subtle);
    color: var(--wf-text-primary);
}

.wf-addnode-item:first-child {
    border-radius: var(--wf-radius-lg) var(--wf-radius-lg) 0 0;
}

.wf-addnode-item:last-child {
    border-radius: 0 0 var(--wf-radius-lg) var(--wf-radius-lg);
}

.wf-addnode-icon {
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wf-bg-hover);
    border-radius: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .wf-projects {
        padding: 2rem 1.5rem;
    }

    .wf-projects-header {
        flex-direction: column;
    }

    .wf-projects-title {
        font-size: 2.2rem;
    }

    .wf-project-grid {
        grid-template-columns: 1fr;
    }

    .wf-sidebar.open {
        width: 240px;
    }

    .wf-sidebar-content {
        width: 240px;
    }

    .wf-toolbar {
        padding: 0 1rem;
    }

    .wf-toolbar-customer {
        display: none;
    }

    .wf-props-panel {
        width: 240px;
        right: 8px;
        top: 8px;
        bottom: 72px;
    }

    .wf-asset-panel {
        width: 220px;
        left: 8px;
        top: 90px;
        bottom: 72px;
    }
}

/* ============================================
   CREDITS WIDGET & COST BADGE
   ============================================ */
.wf-credits-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #050508;
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-md);
    color: var(--wf-text-secondary);
    font-size: 1.3rem;
    font-weight: 600;
    user-select: none;
    backdrop-filter: blur(8px);
    box-shadow: var(--wf-shadow-sm);
    min-height: 38px;
}

.wf-credits-widget svg {
    color: #F59E0B;
    flex-shrink: 0;
}

.wf-credits-amount {
    white-space: nowrap;
}

.wf-credit-cost-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0 10px;
    color: #F59E0B;
    font-size: 1.2rem;
    font-weight: 500;
}

.wf-credit-cost-line strong {
    font-weight: 700;
}

/* ============================================
   BOTTOM-RIGHT STACK (Assets + Credits + Active Runs)
   ============================================ */
.wf-bottom-right-stack {
    position: absolute;
    left: 16px;
    bottom: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    width: 280px;
}

/* Active Runs expandable box */
.wf-active-runs-box {
    background: #050508;
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-md);
    backdrop-filter: blur(8px);
    box-shadow: var(--wf-shadow-sm);
    overflow: hidden;
    transition: all 0.2s;
}

.wf-active-runs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
}

.wf-active-runs-header:hover {
    background: rgba(255,255,255,0.03);
}

.wf-active-runs-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--wf-text-secondary);
}

.wf-active-runs-chevron {
    transition: transform 0.2s;
    color: var(--wf-text-muted);
}

.wf-active-runs-box.expanded .wf-active-runs-chevron {
    transform: rotate(180deg);
}

.wf-active-runs-content {
    padding: 0 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 60px;
}

.wf-active-run-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--wf-text-secondary);
    padding: 4px 0;
    white-space: nowrap;
}

.wf-active-runs-empty {
    font-size: 1.1rem;
    color: var(--wf-text-muted);
    text-align: center;
    padding: 8px 0;
}

.wf-active-runs-box.has-runs .wf-active-runs-title {
    color: var(--wf-accent);
}

.wf-run-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #333;
    border-top-color: var(--wf-accent);
    border-radius: 50%;
    animation: wf-spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

/* Inline asset panel in bottom-right stack */
.wf-asset-panel-inline {
    background: #050508;
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-md);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--wf-shadow-sm);
}

.wf-asset-panel-inline .wf-asset-header {
    position: sticky;
    top: 0;
    background: #050508;
    z-index: 1;
}

.wf-asset-panel-inline .wf-asset-grid {
    padding: 0 12px 12px;
}

/* ============================================
   BOTTOM-RIGHT TOOLBAR (zoom, undo, redo, ?)
   ============================================ */
.wf-bottom-toolbar {
    position: absolute;
    bottom: 20px;
    right: 16px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #050508;
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-md);
    box-shadow: var(--wf-shadow-sm);
}

.wf-toolbar-zoom {
    padding: 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--wf-text-secondary);
    min-width: 40px;
    text-align: center;
    user-select: none;
}

.wf-toolbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--wf-border);
    background: var(--wf-bg-elevated);
    color: var(--wf-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}

.wf-toolbar-btn:hover {
    background: var(--wf-bg-hover);
    color: var(--wf-text-primary);
    border-color: var(--wf-accent);
}

.wf-toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--wf-border);
    margin: 0 2px;
}

/* ============================================
   KEYBOARD SHORTCUT GUIDE MODAL
   ============================================ */
.wf-shortcut-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-shortcut-modal {
    background: var(--wf-bg-surface);
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius-lg);
    padding: 2.4rem;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--wf-shadow-lg);
    animation: wf-dropdown-show 0.15s ease-out;
}

.wf-shortcut-modal h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wf-text-primary);
    margin: 0 0 1.6rem;
}

.wf-shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--wf-border-subtle);
    font-size: 1.3rem;
    color: var(--wf-text-secondary);
}

.wf-shortcut-row:last-child {
    border-bottom: none;
}

.wf-shortcut-row kbd {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: var(--wf-bg-elevated);
    border: 1px solid var(--wf-border);
    border-radius: 4px;
    font-family: 'Inter', monospace;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--wf-text-primary);
    line-height: 1.4;
}

.wf-shortcut-keys {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   ASSET PANEL (left side)
   ============================================ */
.wf-asset-panel {
    position: absolute;
    left: 16px;
    top: 100px;
    bottom: 80px;
    width: 280px;
    background: #050508;
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-lg);
    box-shadow: var(--wf-shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 15;
    animation: wf-asset-slide-in 0.2s ease-out;
}

@keyframes wf-asset-slide-in {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.wf-asset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.2rem 1rem 1.6rem;
    border-bottom: 1px solid var(--wf-border-subtle);
    overflow: visible;
}

.wf-asset-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wf-text-primary);
    margin: 0;
}

.wf-asset-close {
    background: none;
    border: none;
    color: var(--wf-text-muted);
    font-size: 2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.15s;
}

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

.wf-asset-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.wf-asset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.wf-asset-thumb {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--wf-border-subtle);
    transition: all 0.15s;
    position: relative;
    background: var(--wf-bg-elevated);
}

.wf-asset-thumb:hover {
    border-color: var(--wf-accent);
    box-shadow: 0 0 0 1px var(--wf-accent);
}

.wf-asset-thumb img,
.wf-asset-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-asset-video-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-asset-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--wf-text-muted);
    font-size: 1.2rem;
}

/* ============================================
   MODEL SELECT WITH ICON
   ============================================ */
.wf-model-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wf-model-icon {
    position: absolute;
    left: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.wf-model-select {
    padding-left: 32px !important;
}

/* ============================================
   ASPECT RATIO BUTTONS
   ============================================ */
.wf-aspect-buttons {
    display: flex;
    gap: 6px;
}

.wf-aspect-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: var(--wf-bg-elevated);
    border: 1px solid var(--wf-border);
    border-radius: 8px;
    color: var(--wf-text-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
}

.wf-aspect-btn:hover {
    border-color: #444;
    color: var(--wf-text-secondary);
}

.wf-aspect-btn.active {
    border-color: var(--wf-accent);
    color: var(--wf-accent);
    background: var(--wf-accent-subtle);
}

.wf-aspect-btn svg {
    flex-shrink: 0;
}

.wf-props-body .wf-props-section:first-child {
    padding-top: 0.4rem;
}

/* ============================================
   ORDER TRACKING
   ============================================ */
.ot-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.ot-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ot-header-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 13px;
    padding: 8px;
    position: relative;
    margin-bottom: 1rem;
}

.ot-header-logo-box::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.5) 0%,
        rgba(59, 130, 246, 0.15) 15%,
        transparent 35%,
        transparent 65%,
        rgba(59, 130, 246, 0.15) 85%,
        rgba(59, 130, 246, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
    pointer-events: none;
}

.ot-header-particle-logo {
    width: 98px;
    height: 98px;
    display: block;
}

.ot-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: var(--wf-text-primary);
}

.ot-header p {
    color: var(--wf-text-secondary);
    font-size: 1.4rem;
    margin: 0;
}

/* Progress Bar */
.ot-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.ot-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.ot-progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--wf-border);
    background: var(--wf-bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wf-text-muted);
    transition: all 0.3s;
}

.ot-progress-step.active .ot-progress-circle {
    border-color: var(--wf-accent);
    background: var(--wf-accent);
    color: #fff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
    animation: ot-pulse-bounce 2.5s ease-in-out infinite;
}

@keyframes ot-pulse-bounce {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 12px rgba(59, 130, 246, 0.4); }
    50% { transform: translateY(-3px); box-shadow: 0 0 18px rgba(59, 130, 246, 0.6); }
}

.ot-progress-step.completed .ot-progress-circle {
    border-color: var(--wf-success);
    background: var(--wf-success);
    color: #fff;
}

.ot-progress-label {
    font-size: 1.1rem;
    color: var(--wf-text-muted);
    text-align: center;
    white-space: nowrap;
}

.ot-progress-step.active .ot-progress-label,
.ot-progress-step.completed .ot-progress-label {
    color: var(--wf-text-secondary);
}

.ot-progress-connector {
    flex: 1;
    height: 2px;
    background: var(--wf-border);
    margin: 0 0.5rem;
    margin-top: 18px;
    transition: background 0.3s;
}

.ot-progress-connector.completed {
    background: var(--wf-success);
}

/* Liquid glass card styling — shared by .ot-status-card and .ot-section,
   matches .feature-card / .pricing-card on the main site */
.ot-status-card,
.ot-section {
    --glow-x: 50%;
    --glow-y: 50%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: visible;
    transition: all 0.4s ease;
}

.ot-status-card:hover,
.ot-section:hover {
    transform: translateY(-4px);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(59, 130, 246, 0.06);
    border-color: transparent;
}

.ot-status-card::before,
.ot-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(250px circle at var(--glow-x) var(--glow-y),
        rgba(59, 130, 246, 0.12), transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s;
}

.ot-status-card:hover::before,
.ot-section:hover::before {
    opacity: 1;
}

.ot-status-card::after,
.ot-section::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.5) 0%,
        rgba(59, 130, 246, 0.15) 15%,
        transparent 35%,
        transparent 65%,
        rgba(59, 130, 246, 0.15) 85%,
        rgba(59, 130, 246, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
    pointer-events: none;
    z-index: 1;
}

/* Status Card */
.ot-status-card {
    border-radius: var(--wf-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.ot-status-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1.2rem;
    color: var(--wf-text-primary);
}

.ot-status-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1.35rem;
}

.ot-status-label {
    color: var(--wf-text-secondary);
}

.ot-status-value {
    color: var(--wf-text-primary);
    font-weight: 500;
}

.ot-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
}

.ot-badge-paid {
    background: rgba(36, 161, 72, 0.15);
    color: var(--wf-success);
    border: 1px solid rgba(36, 161, 72, 0.3);
}

.ot-badge-unpaid {
    background: rgba(255, 0, 110, 0.1);
    color: var(--wf-danger);
    border: 1px solid rgba(255, 0, 110, 0.2);
}

.ot-badge-pending {
    background: rgba(160, 170, 190, 0.12);
    color: #8b95a5;
    border: 1px solid rgba(160, 170, 190, 0.25);
}

.ot-info-notice {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    color: var(--wf-text-secondary);
    font-size: 1.25rem;
    line-height: 1.6;
}

.ot-badge-status {
    background: var(--wf-accent-subtle);
    color: var(--wf-accent);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Section headers */
.ot-section {
    border-radius: var(--wf-radius-lg);
    padding: 0;
    margin-bottom: 2rem;
    overflow: visible;
}

.ot-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding: 1.25rem 2rem;
    color: var(--wf-text-primary);
    border-bottom: 1px solid var(--wf-border);
}

.ot-section-body {
    padding: 1.5rem 2rem;
}

/* Admin upload sections (inside admin panel, no card styling needed) */
.ot-admin-upload {
    margin-top: 1.5rem;
}

.ot-admin-upload h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--wf-text-secondary);
}

/* Match the edge padding to the gap between images */
.ot-section-body:has(.ot-image-grid) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Image Grid — always 5 per row; a 6th (and beyond) wraps to the next row */
.ot-image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
}

.ot-image-item {
    position: relative;
    border-radius: var(--wf-radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

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

.ot-image-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--wf-danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.15s;
}

.ot-image-delete:hover {
    background: var(--wf-danger);
    color: #fff;
}

/* Video Items */
.ot-video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--wf-border-subtle);
}

.ot-video-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ot-video-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ot-video-thumb {
    width: 72px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--wf-accent-subtle);
    display: block;
    flex-shrink: 0;
}

.ot-video-name {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--wf-text-primary);
}

.ot-video-label {
    font-size: 1.15rem;
    color: var(--wf-text-muted);
}

.ot-video-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Comments */
.ot-comments {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.ot-comment {
    padding: 1rem 1.2rem;
    background: linear-gradient(180deg, #0a1020 0%, #050810 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--wf-radius-sm);
    position: relative;
}

.ot-comment.admin {
    background: linear-gradient(180deg, #0a1428 0%, #060c1c 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.ot-comment::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.4) 0%,
        rgba(59, 130, 246, 0.1) 15%,
        transparent 35%,
        transparent 65%,
        rgba(59, 130, 246, 0.1) 85%,
        rgba(59, 130, 246, 0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    pointer-events: none;
}

.ot-comment-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}

.ot-comment-author {
    font-weight: 600;
    color: var(--wf-text-primary);
}

.ot-comment-date {
    color: var(--wf-text-muted);
}

.ot-comment-admin-badge {
    font-size: 1rem;
    padding: 0.1rem 0.5rem;
    background: var(--wf-accent-subtle);
    color: var(--wf-accent);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ot-comment-text {
    font-size: 1.35rem;
    color: var(--wf-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.ot-comment-input {
    display: flex;
    gap: 0.8rem;
}

.ot-comment-input .wf-input {
    flex: 1;
    background: linear-gradient(180deg, #0a1020 0%, #050810 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.ot-comment-input .wf-input:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Admin Panel */
.ot-admin-panel {
    background: var(--wf-bg-surface);
    border: 1px solid var(--wf-accent);
    border-radius: var(--wf-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}

.ot-admin-panel h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--wf-accent);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ot-admin-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ot-admin-row label {
    font-size: 1.3rem;
    color: var(--wf-text-secondary);
    font-weight: 500;
    min-width: 80px;
}

.ot-admin-row select {
    flex: 1;
    max-width: 220px;
}

.ot-admin-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--wf-text-secondary);
}

.ot-admin-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--wf-accent);
    cursor: pointer;
}

/* Upload Area */
.ot-upload-area {
    border: 2px dashed var(--wf-border);
    border-radius: var(--wf-radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.ot-upload-area:hover {
    border-color: var(--wf-accent);
    background: var(--wf-accent-subtle);
}

.ot-upload-area p {
    color: var(--wf-text-muted);
    font-size: 1.3rem;
    margin: 0;
}

.ot-upload-area svg {
    color: var(--wf-text-muted);
    margin-bottom: 0.6rem;
}

/* Loading / Error */
.ot-loading {
    text-align: center;
    padding: 8rem 2rem;
    color: var(--wf-text-secondary);
    font-size: 1.5rem;
}

.ot-error {
    text-align: center;
    padding: 8rem 2rem;
    color: var(--wf-text-secondary);
}

.ot-error h2 {
    font-size: 2rem;
    color: var(--wf-text-primary);
    margin: 0 0 1rem;
}

.ot-error p {
    font-size: 1.4rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .ot-container {
        padding: 2rem 1.2rem;
    }

    .ot-progress {
        padding: 0;
    }

    .ot-progress-label {
        font-size: 0.95rem;
    }

    .ot-progress-circle {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .ot-section-body:has(.ot-image-grid) {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .ot-image-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ot-admin-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ot-admin-row select {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================
   ORDER PANEL (left side in Studio)
   ============================================ */
.wf-order-panel {
    position: absolute;
    left: 16px;
    top: 100px;
    bottom: 140px;
    width: 320px;
    background: #050508;
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-lg);
    box-shadow: var(--wf-shadow-md);
    display: flex;
    flex-direction: column;
    overflow: clip;
    z-index: 15;
    animation: wf-asset-slide-in 0.2s ease-out;
}

.wf-order-panel-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--wf-border-subtle);
}

.wf-order-panel-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--wf-text-primary);
    flex: 1;
}

.wf-order-panel-header .ot-badge {
    font-size: 1rem;
    padding: 0.15rem 0.6rem;
}

.wf-order-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    padding: 1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wf-order-section {
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-sm);
    overflow: hidden;
}

.wf-order-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: var(--wf-bg-elevated);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--wf-text-secondary);
    cursor: pointer;
    user-select: none;
}

.wf-order-section-header:hover {
    background: var(--wf-bg-hover);
}

.wf-order-chevron {
    transition: transform 0.2s;
}

.wf-order-chevron.open {
    transform: rotate(180deg);
}

.wf-order-brief {
    padding: 0.6rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 320px;
    overflow-y: auto;
}

.wf-order-detail {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--wf-border-subtle);
}

.wf-order-detail:last-child {
    border-bottom: none;
}

.wf-order-detail span:first-child {
    color: var(--wf-text-muted);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 0.8rem;
}

.wf-order-detail span:last-child {
    color: var(--wf-text-secondary);
    text-align: right;
    word-break: break-word;
}

.wf-order-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wf-btn-order-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: var(--wf-radius-sm);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--wf-success);
    color: #fff;
}

.wf-btn-order-action:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(36, 161, 72, 0.3);
}

.wf-btn-order-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wf-order-upload-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wf-order-upload-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border: 1px dashed var(--wf-border);
    border-radius: var(--wf-radius-sm);
    color: var(--wf-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wf-order-upload-area:hover {
    border-color: var(--wf-accent);
    color: var(--wf-accent);
    background: var(--wf-accent-subtle);
}

.wf-order-file-count {
    font-size: 1.1rem;
    color: var(--wf-text-muted);
    padding-left: 0.4rem;
}

/* Order file previews */
.wf-order-files-content {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wf-order-own-material {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    background: var(--wf-accent-subtle);
    border-radius: var(--wf-radius-sm);
    color: var(--wf-accent);
    font-size: 1.1rem;
    font-weight: 500;
}

.wf-order-file-preview {
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-sm);
    overflow: hidden;
}

.wf-order-file-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.wf-order-file-name {
    display: block;
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
    color: var(--wf-text-muted);
    background: var(--wf-bg-elevated);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* wf-order-checkbox removed — replaced by wf-toggle */

.wf-order-waiting {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--wf-radius-sm);
    color: #F59E0B;
    font-size: 1.2rem;
    font-weight: 500;
}

.wf-order-approved-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(36, 161, 72, 0.1);
    border: 1px solid rgba(36, 161, 72, 0.25);
    border-radius: var(--wf-radius-sm);
    color: var(--wf-success);
    font-size: 1.15rem;
    font-weight: 600;
}

.wf-order-completed-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(36, 161, 72, 0.1);
    border: 1px solid rgba(36, 161, 72, 0.25);
    border-radius: var(--wf-radius-sm);
    color: var(--wf-success);
    font-size: 1.25rem;
    font-weight: 600;
}

.wf-order-comments {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.wf-order-comment {
    padding: 0.5rem 0.8rem;
    border-left: 2px solid var(--wf-border);
    font-size: 1.1rem;
}

.wf-order-comment.admin {
    border-left-color: var(--wf-accent);
}

.wf-order-comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.wf-order-comment-author {
    font-weight: 600;
    color: var(--wf-text-primary);
    font-size: 1.05rem;
}

.wf-order-comment-date {
    color: var(--wf-text-muted);
    font-size: 1rem;
}

.wf-order-comment p {
    margin: 0;
    color: var(--wf-text-secondary);
    line-height: 1.4;
}

.wf-order-reply {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.wf-order-reply .wf-input {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 1.2rem;
}

/* Order badge on project card */
.wf-project-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.7rem;
    background: var(--wf-accent-subtle);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    color: var(--wf-accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Active toolbar button */
.wf-toolbar-btn.active {
    background: var(--wf-accent-subtle);
    border-color: var(--wf-accent);
    color: var(--wf-accent);
}

/* ============================================
   ORDER TRACKING: Approval + Payment Gate
   ============================================ */
/* ot-approval-section removed — replaced by inline comment+approve row */

.ot-approval-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-radius: var(--wf-radius-md);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.ot-approval-badge.approved {
    background: rgba(36, 161, 72, 0.1);
    border: 1px solid rgba(36, 161, 72, 0.25);
    color: var(--wf-success);
}

/* ot-payment-gate removed — payment info now in orderinfo card */

/* ============================================
   iOS-STYLE TOGGLE SWITCH
   ============================================ */
.wf-order-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1.25rem;
    color: var(--wf-text-secondary);
}

.wf-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.wf-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wf-toggle-slider {
    position: absolute;
    inset: 0;
    background: #333;
    border-radius: 24px;
    transition: all 0.3s;
}

.wf-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.wf-toggle input:checked + .wf-toggle-slider {
    background: var(--wf-success);
}

.wf-toggle input:checked + .wf-toggle-slider::before {
    transform: translateX(20px);
}

/* ============================================
   AMBIENT BACKGROUND (subtle glow per step)
   ============================================ */
.ot-ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    transition: opacity 1s ease;
}

.ot-ambient-step-0 { background: radial-gradient(ellipse at 50% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 70%); }
.ot-ambient-step-1 { background: radial-gradient(ellipse at 50% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 70%); }
.ot-ambient-step-2 { background: radial-gradient(ellipse at 50% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 70%); }
.ot-ambient-step-3 { background: radial-gradient(ellipse at 50% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 70%); }
.ot-ambient-step-4 { background: radial-gradient(ellipse at 50% 20%, rgba(36, 161, 72, 0.05) 0%, transparent 70%); }

/* ============================================
   DISABLED BUTTON FIX (visual + functional)
   ============================================ */
.wf-btn-primary:disabled,
.wf-btn-primary[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.wf-btn-order-action:disabled,
.wf-btn-order-action[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/* ============================================
   COMMENT + APPROVE ROW
   ============================================ */
.ot-comment-approve-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.ot-comment-approve-row .ot-comment-input {
    flex: 1;
}

.ot-approve-divider {
    width: 1px;
    height: 32px;
    background: var(--wf-border);
    margin: 0 0.8rem;
    flex-shrink: 0;
}

.wf-btn-approve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 1.6rem;
    border: none;
    border-radius: var(--wf-radius-sm);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--wf-success);
    color: #fff;
    white-space: nowrap;
}

.wf-btn-approve:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 161, 72, 0.3);
}

/* Mobile: comment field gets its own full-width row, Skicka and Godkänn
   move to the row below, side by side and matching in size */
@media (max-width: 600px) {
    .ot-comment-approve-row {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .ot-comment-approve-row .ot-comment-input {
        display: contents;
    }

    .ot-comment-approve-row .ot-comment-input .wf-input {
        flex: 1 1 100%;
    }

    .ot-comment-approve-row .ot-comment-input .wf-btn-primary,
    .ot-comment-approve-row .wf-btn-approve {
        flex: 1 1 0;
        padding: 0.9rem 1rem;
        font-size: 1.25rem;
        align-self: auto;
    }

    .ot-comment-approve-row .ot-approve-divider {
        display: none;
    }
}

/* Liquid glass treatment for the "Skicka" / "Godkänn" buttons in the
   order tracking sections — blue border for Skicka, green for Godkänn */
.ot-section .wf-btn-primary,
.ot-section .wf-btn-approve {
    --glow-x: 50%;
    --glow-y: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--wf-text-primary);
    box-shadow: none;
    position: relative;
}

.ot-section .wf-btn-primary::before,
.ot-section .wf-btn-approve::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120px circle at var(--glow-x) var(--glow-y),
        rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.ot-section .wf-btn-primary:hover::before,
.ot-section .wf-btn-approve:hover::before {
    opacity: 1;
}

.ot-section .wf-btn-primary::after,
.ot-section .wf-btn-approve::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
    pointer-events: none;
}

.ot-section .wf-btn-primary::after {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 1) 0%,
        rgba(59, 130, 246, 0.4) 15%,
        transparent 35%,
        transparent 65%,
        rgba(59, 130, 246, 0.4) 85%,
        rgba(59, 130, 246, 1) 100%);
}

.ot-section .wf-btn-approve::after {
    background: linear-gradient(135deg,
        rgba(36, 161, 72, 1) 0%,
        rgba(36, 161, 72, 0.4) 15%,
        transparent 35%,
        transparent 65%,
        rgba(36, 161, 72, 0.4) 85%,
        rgba(36, 161, 72, 1) 100%);
}

.ot-section .wf-btn-primary:hover,
.ot-section .wf-btn-approve:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
    filter: none;
    box-shadow: none;
}

/* ============================================
   COMPLETED STATUS BADGE (green)
   ============================================ */
.ot-badge-completed {
    background: rgba(36, 161, 72, 0.15);
    color: var(--wf-success);
    border: 1px solid rgba(36, 161, 72, 0.3);
}

/* ============================================
   UNPAID WARNING BADGE (orange)
   ============================================ */
.ot-badge-unpaid-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ============================================
   PAYMENT NOTICE (inside orderinfo card)
   ============================================ */
.ot-payment-notice {
    text-align: center;
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid var(--wf-border-subtle);
    color: var(--wf-text-secondary);
    font-size: 1.25rem;
}

/* Image lightbox */
.ot-image-clickable {
    cursor: zoom-in;
}

.ot-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.ot-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
}

.ot-lightbox-close,
.ot-lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ot-lightbox-close:hover,
.ot-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-blue);
}

.ot-lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
}

.ot-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.ot-lightbox-prev {
    left: 1rem;
}

.ot-lightbox-next {
    right: 1rem;
}

.ot-lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

@media (max-width: 600px) {
    .ot-lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 34px;
        height: 34px;
    }

    .ot-lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .ot-lightbox-prev {
        left: 0.4rem;
    }

    .ot-lightbox-next {
        right: 0.4rem;
    }

    .ot-lightbox-nav svg {
        width: 20px;
        height: 20px;
    }

    .ot-lightbox-counter {
        bottom: 0.75rem;
        font-size: 0.8rem;
        padding: 0.3rem 0.75rem;
    }
}

/* File row with delete button */
.wf-order-file-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.wf-order-file-row .wf-order-file-link {
    flex: 1;
    margin-bottom: 0;
}

.wf-order-file-delete {
    background: none;
    border: none;
    color: var(--wf-text-muted);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
}

.wf-order-file-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Dropdown backdrop */
.wf-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
}

/* Showreel consent section — card styling inherited from .ot-section */
.ot-showreel-section .ot-showreel-question,
.ot-showreel-section .ot-showreel-submitted {
    padding: 1.5rem 2rem;
}

/* Primary button for order tracking page (matches site hero buttons) */
.ot-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #005AFF, #8B5CF6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ot-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 90, 255, 0.4);
}

.ot-showreel-question {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ot-showreel-text {
    margin: 0;
    font-size: 1.2rem;
    color: var(--wf-text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.ot-showreel-choices {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ot-showreel-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Glass base for Ja tack! / Nej tack! — explicit padding matches .wf-btn ("Ladda ner") */
.ot-section .ot-showreel-yes,
.ot-section .ot-showreel-no {
    --glow-x: 50%;
    --glow-y: 50%;
    padding: 0.7rem 1.6rem;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--wf-text-primary);
    box-shadow: none;
    position: relative;
}

/* Skicka matches the same height */
.ot-showreel-choices .wf-btn-primary {
    padding: 0.7rem 1.6rem;
}

.ot-section .ot-showreel-yes::before,
.ot-section .ot-showreel-no::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120px circle at var(--glow-x) var(--glow-y),
        rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.ot-section .ot-showreel-yes:hover::before,
.ot-section .ot-showreel-no:hover::before {
    opacity: 1;
}

.ot-section .ot-showreel-yes::after,
.ot-section .ot-showreel-no::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
    pointer-events: none;
}

/* Green diagonal border sheen — Ja tack! */
.ot-section .ot-showreel-yes::after {
    background: linear-gradient(135deg,
        rgba(36, 161, 72, 1) 0%,
        rgba(36, 161, 72, 0.4) 15%,
        transparent 35%,
        transparent 65%,
        rgba(36, 161, 72, 0.4) 85%,
        rgba(36, 161, 72, 1) 100%);
}

/* Red diagonal border sheen — Nej tack! */
.ot-section .ot-showreel-no::after {
    background: linear-gradient(135deg,
        rgba(220, 38, 38, 1) 0%,
        rgba(220, 38, 38, 0.4) 15%,
        transparent 35%,
        transparent 65%,
        rgba(220, 38, 38, 0.4) 85%,
        rgba(220, 38, 38, 1) 100%);
}

.ot-section .ot-showreel-yes:hover,
.ot-section .ot-showreel-no:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
    filter: none;
    box-shadow: none;
}

/* Selected: tinted background matching border color */
.ot-section .ot-showreel-yes.selected {
    background: rgba(36, 161, 72, 0.12);
}

.ot-section .ot-showreel-no.selected {
    background: rgba(220, 38, 38, 0.12);
}

.ot-showreel-submitted-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ot-showreel-submitted {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--wf-text-secondary);
    padding: 0.8rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--wf-radius-sm);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ot-showreel-submitted svg {
    color: #3B82F6;
}

/* Muted badge (grey, for early steps) */
.ot-badge-muted {
    background: rgba(160, 170, 190, 0.1);
    color: #7a8494;
    border: 1px solid rgba(160, 170, 190, 0.2);
}

/* Order file download link */
.wf-order-file-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 1.1rem;
    color: var(--wf-text-secondary);
    text-decoration: none;
    border: 1px solid var(--wf-border-subtle);
    border-radius: var(--wf-radius-sm);
    transition: all 0.15s;
    background: var(--wf-bg-elevated);
}

.wf-order-file-link:hover {
    border-color: var(--wf-accent);
    color: var(--wf-accent);
    background: var(--wf-accent-subtle);
}

.wf-order-file-link span:first-of-type {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-order-file-ext {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--wf-text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

/* ============================================
   ORDER PAGE BACKGROUND DECORATION
   ============================================ */
.ot-bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.ot-bg-decoration::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    animation: ot-bg-float 20s ease-in-out infinite;
}

.ot-bg-decoration::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
    animation: ot-bg-float 25s ease-in-out infinite reverse;
}

@keyframes ot-bg-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(3%, -2%); }
    66% { transform: translate(-2%, 3%); }
}

/* ================================================================
   MOBILE RESPONSIVE — Workflow Editor
   ================================================================ */

/* Desktop-only: visible on desktop, hidden on mobile */
.wf-desktop-only { display: flex; }
.wf-mobile-only  { display: none !important; }

@media (max-width: 768px) {
    .wf-desktop-only { display: none !important; }
    .wf-mobile-only  { display: flex !important; }

    /* ---- Top toolbar — full width with equal padding from screen edges ---- */
    .wf-toolbar {
        left: 10px;
        right: 10px;
        width: auto;
        padding: 0 10px;
        gap: 6px;
        min-height: 52px;
    }
    .wf-toolbar-left {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        gap: 8px;
    }
    .wf-toolbar-favicon {
        width: 40px;
        height: 40px;
    }
    .wf-toolbar-favicon img {
        width: 36px;
        height: 36px;
    }
    .wf-toolbar-right {
        gap: 6px;
        flex-shrink: 0;
    }
    .wf-btn.wf-btn-secondary,
    .wf-btn.wf-btn-primary {
        padding: 0.55rem 1.1rem;
        font-size: 0.95rem;
    }

    /* Mobile compact breadcrumb — narrower to give buttons more room */
    .wf-toolbar-mobile-crumb {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        border-radius: 8px;
        background: var(--wf-bg-elevated);
        border: 1px solid var(--wf-border-subtle);
        cursor: pointer;
        color: var(--wf-text-primary);
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        max-width: 50%;
        overflow: hidden;
    }
    .wf-toolbar-mobile-crumb:hover { background: var(--wf-bg-hover); }
    .wf-mobile-crumb-text {
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }

    /* ---- Generate button — larger on mobile ---- */
    .wf-props-run {
        padding: 1.2rem !important;
        font-size: 1.5rem !important;
    }

    /* ---- Credits display in bottom toolbar (same box size as zoom %) ---- */
    .wf-toolbar-zoom {
        height: 36px;
        line-height: 36px;
        padding: 0 10px;
        font-size: 1.25rem;
    }
    .wf-mobile-credits-display {
        color: #F59E0B !important;
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        height: 36px;
        padding: 0 10px !important;
        font-size: 1.25rem !important;
        text-align: center;
        justify-content: center;
        pointer-events: none;
        cursor: default;
        user-select: none;
    }
    .wf-mobile-credits-display .wf-credits-coin {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        color: #F59E0B;
    }

    /* Hide guide (?) and active-runs buttons on mobile */
    .wf-toolbar-btn[title="Keyboard shortcuts (?)"] { display: none !important; }
    .wf-toolbar-btn[title="Active Runs"] { display: none !important; }

    /* Hide the credits widget and active-runs box on mobile */
    .wf-credits-widget { display: none !important; }
    .wf-active-runs-box { display: none !important; }

    /* ---- Canvas container ---- */
    .wf-canvas-container {
        touch-action: none;
    }

    /* ---- Order (Brief) panel — card between top and bottom toolbars ---- */
    .wf-order-panel {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        bottom: 80px;
        width: auto !important;
        height: auto !important;
        border-radius: 12px;
        z-index: 150;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .wf-order-panel-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 220px);
    }

    /* ---- Properties panel — card between top and bottom toolbars ---- */
    .wf-props-panel {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        bottom: 80px;
        width: auto !important;
        height: auto !important;
        border-radius: 12px;
        z-index: 150;
    }
    .wf-props-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 220px);
    }

    /* ---- Assets panel — card between toolbars ---- */
    .wf-asset-panel-inline {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        bottom: 80px;
        width: auto !important;
        max-height: none;
        z-index: 150;
        border-radius: 12px;
        transform: none;
    }
    .wf-asset-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 220px);
    }
    /* Dimmed backdrop behind panels on mobile */
    .wf-asset-panel-inline::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: -1;
        border-radius: 0;
    }

    /* ---- Bottom toolbar — full width matching top toolbar ---- */
    .wf-bottom-toolbar {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 16px;
        padding: 6px 10px;
        gap: 6px;
        align-items: center;
        justify-content: center;
    }
    .wf-bottom-toolbar .wf-toolbar-btn {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .wf-bottom-toolbar .wf-toolbar-divider {
        height: 24px;
        margin: 0 2px;
    }

    /* Bottom-right stack: collapse to zero so it doesn't block layout */
    .wf-bottom-right-stack {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
        pointer-events: none;
    }
    .wf-bottom-right-stack > * {
        pointer-events: auto;
    }

    /* ---- Login page — larger on mobile ---- */
    .wf-login {
        padding: 1.5rem;
    }
    .wf-login-card {
        padding: 2.5rem 2rem;
    }
    .wf-login-title {
        font-size: 2rem;
    }
    .wf-login-subtitle {
        font-size: 1.2rem;
    }
    .wf-form-group label {
        font-size: 1.2rem;
    }
    .wf-login .wf-input {
        padding: 1.2rem 1.4rem;
        font-size: 1.3rem;
    }
    .wf-login .wf-btn-primary {
        padding: 1rem !important;
        font-size: 1.3rem !important;
    }
}

/* Produktionsunderlag */
.wf-prod-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.wf-prod-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    margin: 0.5rem 0 0.4rem 0;
    background: #0d0d1a;
    border: 1px solid #1e2a3a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #c8d0e8;
    user-select: none;
}

.wf-prod-sub-header:hover {
    background: #12122a;
    border-color: #2d3f55;
}

.wf-prod-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #080810;
    color: #c8d0e8;
    border: 1px solid #1e2a3a;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
    resize: none;
    height: calc(100svh - 520px);
    min-height: 200px;
    outline: none;
    overflow-y: auto;
}

.wf-prod-textarea:focus {
    border-color: #3b82f6;
}

.wf-prod-regen-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 5px 0 2px auto;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid #1e2a3a;
    border-radius: 5px;
    color: #6b7280;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.wf-prod-regen-btn:hover:not(:disabled) {
    color: #a5b4fc;
    border-color: #4f46e5;
}

.wf-prod-regen-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
