.vault-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem 1.5rem;
}

.nav-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    transition: background 0.3s;
}

.status-dot.connected {
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
}

.vault-header {
    text-align: center;
    margin-bottom: 2rem;
}

.room-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 6px 8px 6px 18px;
    backdrop-filter: blur(12px);
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.room-pill .label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.5px;
}

#room-pin-input {
    width: 90px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    padding: 4px 6px;
    letter-spacing: 2px;
}

#room-pin-input:focus {
    outline: none;
    border-color: var(--cyan);
}

.btn-pill {
    background: var(--cyan);
    color: var(--bg-dark);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

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

.btn-pill.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.room-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #11141c;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 320px;
}

.modal-card h3 {
    margin-bottom: 6px;
}

.modal-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.qr-box {
    background: white;
    padding: 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Grid Layout */
.vault-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

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

.vault-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
}

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

.title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.title-wrap h2 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.badge {
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text-muted);
}

.editor-wrap {
    flex: 1;
    min-height: 240px;
    margin-bottom: 16px;
}

#live-text {
    width: 100%;
    height: 100%;
    min-height: 240px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

#live-text:focus {
    outline: none;
    border-color: var(--cyan);
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--cyan);
    color: var(--bg-dark);
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-danger-ghost {
    background: transparent;
    color: #ef4444;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
}

.btn-danger-ghost:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-ghost-small {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-ghost-small:hover {
    color: var(--text-primary);
}

/* Clips List */
.clips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.clip-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.clip-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.clip-content {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    max-height: 60px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
}

.clip-actions {
    display: flex;
    gap: 6px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-muted);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

@media (max-width: 650px) {
    .vault-container {
        padding: 0 1rem 3rem 1rem;
    }
    .room-pill {
        display: flex;
        flex-wrap: wrap;
        border-radius: 16px;
        justify-content: center;
        padding: 10px;
        gap: 8px;
    }
    .action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
    .btn-danger-ghost {
        text-align: center;
        width: 100%;
    }
    .editor-wrap {
        min-height: 180px;
    }
    #live-text {
        min-height: 180px;
    }
}

