@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: rgba(99,102,241,0.15);
    --bg-dark: #0f172a;
    --bg-card: rgba(255,255,255,0.07);
    --glass-border: rgba(255,255,255,0.12);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }

/* ===== BG ORBS ===== */
.bg-orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.2; animation: orbFloat 8s ease-in-out infinite; pointer-events: none; }
.orb-1 { width: 300px; height: 300px; background: #6366f1; top: -100px; left: -80px; }
.orb-2 { width: 250px; height: 250px; background: #3b82f6; bottom: -60px; right: -60px; animation-delay: -3s; }
.orb-3 { width: 200px; height: 200px; background: #8b5cf6; top: 40%; left: 60%; animation-delay: -5s; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-20px) scale(1.1); } }

/* ===== INFO SCREEN ===== */
#info-screen { align-items: center; justify-content: center; padding: 1.5rem; position: relative; }

.info-content { text-align: center; z-index: 1; max-width: 640px; width: 100%; }

.info-icon {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-title {
    font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 0.5rem;
}

.info-subtitle { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; margin-bottom: 1.5rem; }

/* ===== FORM ===== */
.form-card {
    background: var(--bg-card); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 1.25rem;
    padding: 1.5rem; text-align: left;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-group input {
    width: 100%; padding: 0.7rem 1rem; border-radius: 0.6rem;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05);
    color: var(--text); font-family: 'Kanit', sans-serif; font-size: 0.9rem;
    transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-group input::placeholder { color: var(--text-dim); }

/* ===== DEPARTMENT GRID ===== */
.dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-top: 0.25rem; }

.dept-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 0.6rem 0.75rem; border-radius: 0.6rem;
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    cursor: pointer; transition: all 0.2s; font-size: 0.8rem; color: var(--text-muted);
}
.dept-chip:hover { border-color: var(--primary); background: var(--primary-light); }
.dept-chip.selected { border-color: var(--primary); background: var(--primary-light); color: #c7d2fe; }
.dept-chip i { font-size: 1.2rem; flex-shrink: 0; }

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%; padding: 0.8rem; border: none; border-radius: 0.7rem;
    font-family: 'Kanit'; font-size: 0.95rem; font-weight: 600;
    color: #fff; cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 0.5rem; transition: all 0.3s;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(99,102,241,0.4); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted); border-radius: 10px; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; font-size: 1.1rem;
}
.icon-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.export-btn:hover { color: #6ee7b7; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.1); }

/* ===== BUILDER HEADER ===== */
.builder-header {
    background: rgba(15,23,42,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30;
}
.builder-header-left { display: flex; align-items: center; gap: 0.75rem; }
.builder-header-right { display: flex; align-items: center; gap: 0.4rem; }
.builder-title { font-weight: 600; font-size: 0.95rem; color: #f1f5f9; }
.builder-sub { font-size: 0.7rem; color: var(--text-dim); font-weight: 300; }

/* ===== BUILDER BODY ===== */
.builder-body { flex: 1; padding: 1rem; width: 100%; }
.builder-two-col { display: flex; flex-direction: column; gap: 1rem; }

.col-flow { flex: 1; min-width: 0; }
.col-chat { flex: 1; min-width: 0; }

.panel-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.panel-label h3 { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.count-chip { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); color: var(--text-dim); }

/* ===== FLOW CANVAS ===== */
.flow-canvas {
    background: rgba(99,102,241,0.03); border: 1px solid rgba(99,102,241,0.12);
    border-radius: 0.75rem; padding: 0.75rem; min-height: 200px;
    display: flex; flex-direction: column; gap: 1.25rem;
}

.flow-step {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.75rem; border-radius: 0.6rem;
    background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.2);
    color: #e0e7ff; font-size: 0.82rem; transition: all 0.2s; position: relative;
}
.flow-step:hover { border-color: rgba(99,102,241,0.4); }
.flow-step:not(:last-child)::after {
    content: '↓'; position: absolute; bottom: -1.25rem; left: 50%; transform: translateX(-50%);
    color: rgba(99,102,241,0.4); font-size: 1.2rem; line-height: 1.25rem; font-weight: bold; pointer-events: none;
}
.sortable-ghost { opacity: 0.4; }
.sortable-drag { cursor: grabbing !important; }

.flow-step .step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}

.flow-step .step-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(99,102,241,0.12); color: #a5b4fc;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.flow-step .step-text { flex: 1; line-height: 1.35; }

.flow-step .step-controls { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.flow-step .step-controls button {
    background: none; border: none; color: var(--text-dim); cursor: pointer;
    padding: 4px; border-radius: 6px; font-size: 0.9rem; transition: all 0.15s;
}
.flow-step .step-controls button:hover { color: #a5b4fc; background: rgba(99,102,241,0.15); }
.flow-step .step-controls button:disabled { opacity: 0.25; cursor: default; }
.flow-step .step-controls .remove-btn:hover { color: #fca5a5; background: rgba(239,68,68,0.15); }

.flow-connector { display: none; }

.flow-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem 1rem; color: var(--text-dim); text-align: center;
}
.flow-empty i { font-size: 2rem; margin-bottom: 0.5rem; }

/* ===== CONCERN SURVEY ===== */
.concern-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.concern-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.concern-btn {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: 'Kanit', sans-serif;
    font-size: 0.82rem;
    position: relative;
}

.concern-btn > i:first-child {
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
    transition: color 0.25s;
}

.concern-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.concern-label strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: color 0.25s;
}

.concern-label span {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.45;
    font-weight: 300;
}

.concern-check {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: transparent;
    transition: all 0.25s;
}

.concern-btn:hover {
    border-color: rgba(99,102,241,0.3);
    background: rgba(99,102,241,0.06);
}

.concern-btn.active {
    border-color: rgba(16,185,129,0.4);
    background: rgba(16,185,129,0.08);
}

.concern-btn.active > i:first-child {
    color: #34d399;
}

.concern-btn.active .concern-label strong {
    color: #6ee7b7;
}

.concern-btn.active .concern-check {
    color: #34d399;
}

.concern-other {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.concern-other label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.concern-other textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.6rem;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-family: 'Kanit', sans-serif;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s;
}

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

.concern-other textarea::placeholder {
    color: var(--text-dim);
}

.concern-submit-btn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.85rem;
    border: none;
    border-radius: 0.6rem;
    font-family: 'Kanit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 15px rgba(16,185,129,0.25);
    transition: all 0.3s;
}

.concern-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(16,185,129,0.35);
}

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

.concern-submit-btn.submitted {
    background: linear-gradient(135deg, #475569, #64748b);
    box-shadow: none;
}

/* ===== CHAT BOX ===== */
.chat-box {
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 0.75rem; display: flex; flex-direction: column;
    height: 320px; overflow: hidden;
}

.chat-messages {
    flex: 1; overflow-y: auto; padding: 0.75rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}

/* Chat bubbles */
.chat-bubble {
    max-width: 85%; padding: 0.55rem 0.75rem; border-radius: 0.75rem;
    font-size: 0.82rem; line-height: 1.5; position: relative;
    animation: bubbleIn 0.2s ease-out;
}
@keyframes bubbleIn { from { opacity:0; transform: translateY(5px); } to { opacity:1; transform: translateY(0); } }

.chat-bubble.participant {
    align-self: flex-end; background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.25); color: #c7d2fe;
    border-bottom-right-radius: 0.2rem;
}

.chat-bubble.instructor {
    align-self: flex-start; background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.2); color: #fef3c7;
    border-bottom-left-radius: 0.2rem;
}

.chat-bubble .bubble-author {
    font-size: 0.68rem; font-weight: 600; margin-bottom: 2px;
}
.chat-bubble.participant .bubble-author { color: #a5b4fc; }
.chat-bubble.instructor .bubble-author { color: #fbbf24; }
.chat-bubble .bubble-time { font-size: 0.62rem; color: var(--text-dim); margin-top: 3px; text-align: right; }

.chat-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; color: var(--text-dim); text-align: center; padding: 2rem;
}
.chat-empty i { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.5; }
.chat-empty p { font-size: 0.8rem; }

/* Chat input area */
.chat-input-area {
    padding: 0.5rem 0.75rem; border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(15,23,42,0.5);
}

.chat-role-toggle {
    display: flex; gap: 0.3rem; margin-bottom: 0.4rem;
}
.role-btn {
    flex: 1; padding: 0.35rem; border-radius: 0.4rem; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03); color: var(--text-dim); font-family: 'Kanit';
    font-size: 0.72rem; cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 4px; transition: all 0.2s;
}
.role-btn:hover { border-color: rgba(255,255,255,0.15); }
.role-btn.active[data-role="participant"] {
    background: rgba(99,102,241,0.15); border-color: var(--primary); color: #c7d2fe;
}
.role-btn.active[data-role="instructor"] {
    background: rgba(251,191,36,0.1); border-color: #fbbf24; color: #fef3c7;
}

.chat-input-row { display: flex; gap: 0.4rem; }
.chat-input-row input {
    flex: 1; padding: 0.55rem 0.75rem; border-radius: 0.6rem;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05);
    color: var(--text); font-family: 'Kanit'; font-size: 0.82rem;
}
.chat-input-row input:focus { outline: none; border-color: var(--primary); }
.chat-input-row input::placeholder { color: var(--text-dim); }

.btn-chat-send {
    width: 40px; height: 40px; border-radius: 0.6rem; border: none;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff; cursor: pointer; display: flex; align-items: center;
    justify-content: center; font-size: 1rem; transition: all 0.2s; flex-shrink: 0;
}
.btn-chat-send:hover { transform: scale(1.05); }

/* ===== SHOP MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px); z-index: 50; display: none;
    align-items: flex-end; justify-content: center; padding: 1rem;
}
.modal-overlay.show { display: flex; }

.shop-card, .custom-card {
    background: #1e293b; border: 1px solid rgba(255,255,255,0.1);
    width: 100%; max-width: 560px; border-radius: 1.25rem 1.25rem 0.75rem 0.75rem;
    overflow: hidden; animation: slideUp 0.3s ease-out;
    max-height: 80vh; display: flex; flex-direction: column;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.shop-header {
    padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.shop-header-title { font-weight: 600; font-size: 1rem; color: #f1f5f9; display: flex; align-items: center; gap: 8px; }

.modal-close {
    background: none; border: none; color: rgba(255,255,255,0.5);
    cursor: pointer; font-size: 1.3rem; padding: 4px; transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

.shop-search {
    display: flex; align-items: center; gap: 8px;
    padding: 0.6rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-dim);
    flex-shrink: 0;
}
.shop-search input {
    flex: 1; background: none; border: none; color: var(--text);
    font-family: 'Kanit'; font-size: 0.85rem;
}
.shop-search input:focus { outline: none; }
.shop-search input::placeholder { color: var(--text-dim); }

.shop-tabs {
    display: flex; gap: 0.4rem; padding: 0.6rem 1rem; overflow-x: auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
    padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.78rem;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-dim); cursor: pointer; white-space: nowrap; transition: all 0.2s;
    min-height: 32px; display: flex; align-items: center; flex-shrink: 0;
}
.shop-tab:hover { border-color: var(--primary); }
.shop-tab.active { background: var(--primary-light); border-color: var(--primary); color: #c7d2fe; }

.shop-list { flex: 1; overflow-y: auto; padding: 0.5rem; }

.shop-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0.75rem; border-radius: 0.6rem;
    cursor: pointer; transition: all 0.2s; font-size: 0.82rem; color: #cbd5e1;
    margin-bottom: 0.3rem;
}
.shop-item:hover { background: rgba(99,102,241,0.08); }
.shop-item i.item-icon { font-size: 1rem; color: var(--text-muted); flex-shrink: 0; }
.shop-item .item-text { flex: 1; }
.shop-item .item-add { color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }

/* ===== EXPORT PREVIEW ===== */
.export-preview {
    position: fixed; left: -9999px; top: 0;
    width: 800px; padding: 2rem; background: #0f172a; color: #e2e8f0;
    font-family: 'Kanit', sans-serif;
}

.export-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid rgba(99,102,241,0.3); }
.export-header h1 { font-size: 1.5rem; color: #fff; margin-bottom: 0.25rem; }
.export-header p { font-size: 0.85rem; color: #94a3b8; }

.export-meta { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.export-meta-item { font-size: 0.8rem; color: #94a3b8; }
.export-meta-item strong { color: #c7d2fe; }

.export-step {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0.85rem; margin-bottom: 0.3rem; border-radius: 0.5rem;
    background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2);
}
.export-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.export-step-text { font-size: 0.85rem; color: #e0e7ff; }
.export-arrow { text-align: center; padding: 2px 0; color: rgba(99,102,241,0.3); font-size: 0.8rem; }

.export-comments { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.export-comments h3 { font-size: 0.9rem; color: #fbbf24; margin-bottom: 0.5rem; }
.export-comment { font-size: 0.8rem; color: #94a3b8; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

.export-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.7rem; color: var(--text-dim); }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .info-title { font-size: 2.5rem; }
    .modal-overlay { align-items: center; }
    .shop-card, .custom-card { border-radius: 1.25rem; }
    .dept-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .builder-two-col {
        flex-direction: row;
        align-items: flex-start;
    }
    .col-flow { flex: 3; }
    .col-chat { flex: 2; position: sticky; top: 70px; }
    .chat-box { height: calc(100vh - 140px); }
    .builder-body { max-width: 1400px; margin: 0 auto; padding: 1rem 1.5rem; }
}

/* ===== LOGIN SCREEN ===== */
#login-screen { align-items: center; justify-content: center; padding: 1.5rem; position: relative; }
.login-content { text-align: center; z-index: 1; max-width: 500px; width: 100%; }
.form-error { text-align: center; font-size: 0.8rem; color: #f87171; margin-top: 0.75rem; min-height: 1.2rem; }

/* ===== MY FLOWS SCREEN ===== */
#myflows-screen { align-items: center; padding: 1.5rem; position: relative; }
.myflows-content { z-index: 1; max-width: 640px; width: 100%; padding-top: 2rem; }

.myflows-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}
.myflows-greeting { font-size: 1.3rem; font-weight: 700; color: #f1f5f9; }
.myflows-email { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; }

.myflows-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }

.myflow-card {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1rem; border-radius: 0.75rem;
    background: var(--bg-card); border: 1px solid var(--glass-border);
    cursor: pointer; transition: all 0.2s; text-align: left;
}
.myflow-card:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(99,102,241,0.15); }

.myflow-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary-light); color: #a5b4fc;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.myflow-info { flex: 1; }
.myflow-title { font-weight: 600; font-size: 0.9rem; color: #f1f5f9; }
.myflow-meta { font-size: 0.72rem; color: var(--text-dim); }
.myflow-arrow { color: var(--text-dim); font-size: 1rem; }

/* ===== SAVE BUTTON ===== */
.save-btn:hover { color: #6ee7b7 !important; border-color: rgba(16,185,129,0.3) !important; background: rgba(16,185,129,0.1) !important; }

/* ===== SAVE TOAST ===== */
.save-toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #059669; color: #fff; padding: 0.6rem 1.25rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 20px rgba(5,150,105,0.4); z-index: 60;
    opacity: 0; transition: all 0.3s ease; pointer-events: none;
}
.save-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
