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

    max-width: 1050px; 
    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;
}

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

.ip4e-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);
}
.ip4e-soft-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; color: var(--clr-cyan); text-transform: uppercase;}
.ip4e-soft-header p { margin: 0; font-weight: 600; font-size: 0.95rem; color: #ccc;}

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

/* CARDS */
.ip4e-card {
    padding: 20px; border: var(--neo-border); background: #fff;
    border-radius: 12px; box-shadow: var(--neo-shadow); display: flex; flex-direction: column; height: 100%; transition: 0.3s;
}
.ip4e-bg-yellow { background: var(--clr-yellow); }
.ip4e-bg-white { background: var(--clr-white); }
.ip4e-bg-dark { background: #111; color: #fff; box-shadow: 5px 5px 0px var(--clr-cyan);}
.ip4e-flex-between { display: flex; justify-content: space-between; align-items: center; }

.ip4e-section-title { font-size: 1.1rem; font-weight: 900; color: #111; text-transform: uppercase; }

/* INPUT & NÚT TRÊN CÙNG 1 DÒNG */
.ip4e-input-wrapper { display: flex; gap: 10px; margin-bottom: 15px; }

.ip4e-input-huge {
    margin: 0; flex: 1; min-width: 0; padding: 15px; border: 3px solid #111; border-radius: 8px;
    font-size: 1.1rem; font-weight: 900; outline: none; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05); font-family: monospace;
}
.ip4e-input-huge:focus { border-color: var(--clr-cyan); }

.ip4e-btn-myip {
    background: #fff; color: #111; padding: 0 15px; border: 3px solid #111; border-radius: 8px;
    font-size: 0.95rem; font-weight: 900; cursor: pointer; box-shadow: 3px 3px 0px #111; transition: 0.1s; white-space: nowrap;
}
.ip4e-btn-myip:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #111; }

/* NÚT ĐIỀN NHANH (QUICK FILLS) */
.ip4e-quick-fills {
    display: flex; gap: 8px; align-items: center; margin-bottom: 15px; flex-wrap: wrap;
}
.ip4e-btn-chip {
    background: #fff; color: #111; padding: 4px 10px; border: 2px solid #111; border-radius: 6px;
    font-size: 0.85rem; font-weight: 900; cursor: pointer; box-shadow: 2px 2px 0px #111; transition: 0.1s; font-family: monospace;
}
.ip4e-btn-chip:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }

.ip4e-btn-action {
    width: 100%; background: #111; color: var(--clr-cyan); padding: 15px;
    border: 3px solid #111; border-radius: 8px; font-size: 1.1rem; font-weight: 900;
    cursor: pointer; box-shadow: 4px 4px 0px #111; transition: 0.1s; text-transform: uppercase;
}
.ip4e-btn-action:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px #111; }

.ip4e-btn-small {
    padding: 6px 12px; background: #fff; border: 2px solid #111; border-radius: 6px;
    font-weight: 900; font-size: 0.85rem; cursor: pointer; box-shadow: 2px 2px 0px #111; transition: 0.1s; color: #111;
}
.ip4e-btn-small:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #111; }

.ip4e-btn-copy {
    background: #111; color: var(--clr-cyan); padding: 8px 15px; border: 2px solid #111; border-radius: 6px;
    font-size: 0.95rem; font-weight: 900; cursor: pointer; box-shadow: 3px 3px 0px #111; transition: 0.1s; white-space: nowrap;
}
.ip4e-btn-copy:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #111; }

/* BADGE */
.ip4e-badge { background: #eee; padding: 6px 10px; border: 2px solid #111; border-radius: 6px; font-weight: 900; font-size: 0.85rem; box-shadow: 2px 2px 0px #111; white-space: nowrap;}
.ip4e-badge.active { background: var(--clr-green); color: #111; }
.ip4e-badge.error { background: var(--clr-red); color: #fff; }

/* BẢNG THÔNG SỐ (DASHBOARD) */
.ip4e-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ip4e-stat-item { background: #222; border: 1px solid #444; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.ip4e-stat-item span { font-size: 0.75rem; color: #aaa; text-transform: uppercase; font-weight: bold; }
.ip4e-stat-item b { font-family: monospace; font-size: 1rem; color: #fff; word-break: break-all;}

/* TEXTAREA (Danh sách IP) */
.ip4e-textarea {
    width: 100%; min-height: 400px; flex: 1; padding: 15px; border: 3px solid #111; border-radius: 8px;
    font-size: 1rem; outline: none; box-shadow: inset 3px 3px 0px rgba(0,0,0,0.05); font-family: monospace; resize: vertical; line-height: 1.6; white-space: pre; background: #fdfdfd; color: #111; font-weight: bold;
}

/* CẢNH BÁO OVERLAY */
.ip4e-limit-warning {
    position: absolute; top: 10px; left: 10px; right: 10px; background: var(--clr-yellow); color: #111; border: 2px solid #111; border-radius: 6px; padding: 10px; font-weight: 900; font-size: 0.85rem; text-align: center; box-shadow: 3px 3px 0px #111; z-index: 10;
}

/* INFO BOX */
.ip4e-info-box { background: rgba(255,255,255,0.6); padding: 15px; border: 2px dashed #111; border-radius: 8px;}
.ip4e-info-box h4 { margin: 0 0 8px 0; font-weight: 900; color: #111; font-size: 1rem;}
.ip4e-info-box ul { margin: 0 0 10px 0; padding-left: 20px; font-size: 0.9rem; font-weight: 600; line-height: 1.6;}
.ip4e-info-box p { margin: 0; font-size: 0.85rem; font-weight: bold; color: var(--clr-red);}
.ip4e-info-box code { background: #fff; border: 1px solid #111; padding: 2px 6px; border-radius: 4px; font-family: monospace; }