.pdfsig-soft-wrapper {
    /* Biến CSS độc lập */
    --neo-border: 3px solid #111111;
    --neo-shadow: 5px 5px 0px #111111;
    
    --bg-main: #f8f9fa;
    --clr-yellow: #fde74c;
    --clr-cyan: #00f5d4;
    --clr-blue: #3a86ff;
    --clr-red: #ff006e;
    --clr-green: #06d6a0;
    --clr-white: #ffffff;
    --clr-text: #111111;

    max-width: 950px; 
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--clr-text);
    background: var(--bg-main);
    padding: 20px;
    border: var(--neo-border);
    border-radius: 16px;
    box-shadow: 6px 6px 0px #111111;
}

.pdfsig-soft-wrapper * { box-sizing: border-box; }

.pdfsig-soft-header {
    background: #111; padding: 20px; color: #fff;
    border: var(--neo-border); border-radius: 12px;
    text-align: center; margin-bottom: 20px; box-shadow: var(--neo-shadow);
}
.pdfsig-soft-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; color: var(--clr-cyan); text-transform: uppercase;}
.pdfsig-soft-header p { margin: 0; font-weight: 600; font-size: 0.95rem; color: #ccc;}

/* CẢNH BÁO BẢO MẬT */
.pdfsig-alert-box {
    display: flex; align-items: center; gap: 15px; background: #e0fbfc; border: 2px dashed #111; 
    border-radius: 10px; padding: 15px; margin-bottom: 20px; box-shadow: 3px 3px 0px #111;
}
.pdfsig-alert-icon { font-size: 2.2rem; }
.pdfsig-alert-content { font-size: 0.9rem; font-weight: 600; color: #111; line-height: 1.5; }
.pdfsig-alert-content strong { color: var(--clr-blue); font-size: 1rem; display: block; margin-bottom: 3px;}

/* BỐ CỤC 2 CỘT */
.pdfsig-main-layout { display: flex; flex-direction: column; gap: 20px; }
.pdfsig-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px;}
@media (min-width: 768px) { .pdfsig-main-layout { flex-direction: row; align-items: stretch; } }

/* CARDS */
.pdfsig-card {
    padding: 20px; border: var(--neo-border); 
    border-radius: 12px; box-shadow: var(--neo-shadow); display: flex; flex-direction: column; height: 100%;
}
.pdfsig-bg-yellow { background: var(--clr-yellow); }
.pdfsig-bg-white { background: var(--clr-white); }
.pdfsig-card-title { margin: 0 0 15px 0; font-size: 1.2rem; font-weight: 900; border-bottom: 2px dashed #111; padding-bottom: 10px; }
.pdfsig-flex-between { display: flex; justify-content: space-between; align-items: center; }

/* DRAG & DROP ZONE */
.pdfsig-dropzone {
    background: #fff; border: 3px dashed #111; border-radius: 10px; padding: 30px 20px;
    text-align: center; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px;
}
.pdfsig-dropzone.dragover { background: var(--clr-cyan); border-style: solid; box-shadow: inset 4px 4px 0px rgba(0,0,0,0.1); }
.pdfsig-drop-icon { font-size: 4rem; line-height: 1; animation: pdfsigFloat 2s ease-in-out infinite; }
@keyframes pdfsigFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pdfsig-drop-text { font-size: 1rem; font-weight: 800; color: #333; }

.pdfsig-btn-select {
    padding: 10px 20px; background: #111; color: var(--clr-yellow); border: 2px solid #111;
    border-radius: 8px; font-weight: 900; font-size: 1rem; cursor: pointer; box-shadow: 3px 3px 0px rgba(0,0,0,0.3); transition: 0.1s;
}
.pdfsig-btn-select:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px transparent; }

.pdfsig-file-info { margin-top: 15px; padding: 12px; background: #fff; border: 2px solid #111; border-radius: 8px; font-size: 0.9rem; box-shadow: 2px 2px 0px #111; }
.pdfsig-file-info b { color: var(--clr-blue); word-break: break-all;}
.pdfsig-file-info span { color: #555; font-weight: bold; }

/* KẾT QUẢ & UI TRẠNG THÁI */
.pdfsig-badge { background: #eee; padding: 4px 10px; border: 2px solid #111; border-radius: 6px; font-weight: 900; font-size: 0.85rem; box-shadow: 2px 2px 0px #111; }
.pdfsig-badge-success { background: var(--clr-green); color: #111; }
.pdfsig-badge-danger { background: var(--clr-red); color: #fff; }

.pdfsig-empty-state { text-align: center; color: #666; font-weight: 700; font-size: 1rem; font-style: italic; margin-top: 40px; }
.pdfsig-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; margin-top: 40px; font-weight: 900; color: var(--clr-blue); }
.pdfsig-spinner { width: 40px; height: 40px; border: 4px solid rgba(0,0,0,0.1); border-top-color: var(--clr-blue); border-radius: 50%; animation: pdfsigSpin 1s linear infinite; }
@keyframes pdfsigSpin { to { transform: rotate(360deg); } }

/* DANH SÁCH CHỮ KÝ */
.pdfsig-signature-list { display: flex; flex-direction: column; gap: 15px; }
.pdfsig-sig-item { background: #fdfdfd; border: 2px solid #111; border-radius: 10px; overflow: hidden; box-shadow: 4px 4px 0px #111; }
.pdfsig-sig-header { background: #111; color: var(--clr-yellow); padding: 12px 15px; font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; gap: 10px;}
.pdfsig-sig-body { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.pdfsig-sig-row { display: flex; flex-direction: column; border-bottom: 1px dashed #ccc; padding-bottom: 8px; }
.pdfsig-sig-row:last-child { border-bottom: none; padding-bottom: 0; }
.pdfsig-sig-lbl { font-size: 0.85rem; font-weight: 800; color: #555; text-transform: uppercase; margin-bottom: 2px;}
.pdfsig-sig-val { font-size: 1.05rem; font-weight: 900; color: #111; word-break: break-word;}
.pdfsig-sig-val.pdfsig-val-name { color: var(--clr-blue); font-size: 1.15rem; }

/* INFO BOX */
.pdfsig-info-box { background: rgba(255,255,255,0.6); padding: 12px; border: 2px dashed #111; border-radius: 8px; }
.pdfsig-info-box h4 { margin: 0 0 5px 0; font-weight: 900; color: #111; font-size: 0.95rem;}
.pdfsig-info-box p { margin: 0; font-size: 0.85rem; font-weight: 600; line-height: 1.5; color: #333; }
.pdfsig-info-box code { background: #fff; border: 1px solid #111; padding: 2px 5px; border-radius: 4px; font-weight: bold; }