/* Biến nội bộ Neo-Brutalism */
.tc-neo-wrapper {
    --bg-white: #ffffff;
    --border-ink: 3px solid #111111;
    --shadow-solid: 6px 6px 0px #111111;
    
    /* Bảng màu Neon Vui Nhộn */
    --clr-main: #ff9f1c;
    --clr-card-1: #ff99c8;
    --clr-card-2: #fcf6bd;
    --clr-card-3: #d0f4de;
    --clr-card-4: #a9def9;
    --clr-card-5: #e4c1f9;
    --clr-bg: #f8f9fa;

    max-width: 800px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
    color: #111111;
    background: var(--clr-bg);
    padding: 25px;
    border: var(--border-ink);
    border-radius: 16px;
    box-shadow: 10px 10px 0px #111;
}

.tc-neo-wrapper * { box-sizing: border-box; }

.tc-neo-header { background: var(--clr-main); color: #111; border: var(--border-ink); box-shadow: var(--shadow-solid); padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 25px; }
.tc-neo-header h2 { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 900; text-transform: uppercase;}
.tc-neo-header p { margin: 0; font-weight: 800; font-size: 0.95rem; }

/* Khu vực Nhập */
.tc-input-section { background: #fff; padding: 20px; border-radius: 12px; border: var(--border-ink); box-shadow: var(--shadow-solid); margin-bottom: 30px;}
.tc-input-section label { display: block; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 10px; color: #111;}

.tc-input-group { display: flex; gap: 15px; align-items: stretch; }
.tc-neo-input { flex: 2; padding: 15px 20px; font-size: 2rem; font-weight: 900; font-family: monospace, system-ui; color: #111; border: var(--border-ink); border-radius: 10px; background: #fff; box-shadow: inset 4px 4px 0px rgba(0,0,0,0.1); outline: none; transition: all 0.1s; width: 100%;}
.tc-neo-input:focus { background: #e0fbfc; }

.tc-neo-select { flex: 1; padding: 15px; font-size: 1.2rem; font-weight: 900; border: var(--border-ink); border-radius: 10px; background: #111; color: #fff; cursor: pointer; outline: none; box-shadow: 4px 4px 0px #ffca3a;}
.tc-neo-select:focus { box-shadow: 4px 4px 0px #8ac926; }

/* Lưới Kết quả */
.tc-results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.tc-card { position: relative; border: var(--border-ink); border-radius: 12px; padding: 20px; text-align: center; box-shadow: 4px 4px 0px #111; cursor: pointer; transition: transform 0.1s, box-shadow 0.1s; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 120px;}
.tc-card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0px #111; }
.tc-card:active { transform: translateY(2px); box-shadow: 2px 2px 0px #111; }

/* Hiệu ứng báo Copy thành công */
.tc-card.copied::after { content: 'ĐÃ COPY! ✔️'; position: absolute; inset: 0; background: rgba(17, 17, 17, 0.9); color: #fff; font-weight: 900; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10; animation: fadeInOut 0.8s forwards;}

.card-title { font-size: 1rem; font-weight: 900; text-transform: uppercase; color: #333; margin-bottom: 8px;}
.card-value { font-size: 1.8rem; font-weight: 900; font-family: monospace, system-ui; color: #111; word-break: break-all; line-height: 1.1;}
.card-copy-hint { font-size: 0.8rem; font-weight: 800; color: #555; margin-top: 10px; opacity: 0; transition: opacity 0.2s;}
.tc-card:hover .card-copy-hint { opacity: 1; }

@keyframes fadeInOut { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 600px) {
    .tc-input-group { flex-direction: column; }
    .tc-neo-input { font-size: 1.6rem; }
    .tc-neo-select { padding: 12px; font-size: 1.1rem; }
}