/* =====================================================
   TenTen Domain Checker — Stylesheet v2
   ===================================================== */

:root {
    --tdc-primary:   #e83030;   /* TenTen red */
    --tdc-primary-h: #c41f1f;
    --tdc-ok:        #059669;
    --tdc-ok-bg:     #ecfdf5;
    --tdc-taken:     #dc2626;
    --tdc-taken-bg:  #fef2f2;
    --tdc-warn:      #d97706;
    --tdc-warn-bg:   #fffbeb;
    --tdc-border:    #e5e7eb;
    --tdc-bg:        #f9fafb;
    --tdc-text:      #111827;
    --tdc-muted:     #6b7280;
    --tdc-radius:    14px;
    --tdc-radius-sm: 8px;
    --tdc-shadow:    0 4px 20px rgba(0,0,0,.09);
}

.tdc-wrapper {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    color: var(--tdc-text);
}

/* ── Notice ─────────────────────────────────────────── */
.tdc-notice-warn {
    background: var(--tdc-warn-bg);
    border: 1px solid #fcd34d;
    border-radius: var(--tdc-radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #92400e;
}

/* ── Search card ─────────────────────────────────────── */
.tdc-search-card {
    background: #fff;
    border: 2px solid var(--tdc-border);
    border-radius: var(--tdc-radius);
    padding: 14px;
    box-shadow: var(--tdc-shadow);
    margin-bottom: 18px;
    transition: border-color .2s, box-shadow .2s;
}
.tdc-search-card:focus-within {
    border-color: var(--tdc-primary);
    box-shadow: 0 0 0 4px rgba(232,48,48,.12);
}

.tdc-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.tdc-input-wrap {
    flex: 1;
    position: relative;
}
.tdc-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--tdc-muted);
    pointer-events: none;
}
.tdc-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 17px;
    padding: 11px 14px 11px 46px;
    background: transparent;
    color: var(--tdc-text);
    box-sizing: border-box;
}
.tdc-input::placeholder { color: #9ca3af; }

.tdc-btn-search {
    background: var(--tdc-primary);
    color: #fff;
    border: none;
    border-radius: var(--tdc-radius-sm);
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.tdc-btn-search:hover  { background: var(--tdc-primary-h); }
.tdc-btn-search:active { transform: scale(.97); }

.tdc-error {
    margin-top: 8px;
    color: var(--tdc-taken);
    font-size: 13px;
    padding: 0 4px;
}

/* ── Tabs ───────────────────────────────────────────── */
.tdc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.tdc-tab {
    background: var(--tdc-bg);
    border: 1.5px solid var(--tdc-border);
    border-radius: 99px;
    padding: 7px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--tdc-muted);
    transition: all .15s;
}
.tdc-tab:hover  { border-color: var(--tdc-primary); color: var(--tdc-primary); }
.tdc-tab.active {
    background: var(--tdc-primary);
    border-color: var(--tdc-primary);
    color: #fff;
}

/* ── Extension box ──────────────────────────────────── */
.tdc-ext-box {
    background: #fff;
    border: 1.5px solid var(--tdc-border);
    border-radius: var(--tdc-radius);
    padding: 18px 20px;
    margin-bottom: 26px;
}
.tdc-ext-group { margin-bottom: 16px; }
.tdc-ext-group:last-child { margin-bottom: 0; }

.tdc-ext-group-label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--tdc-muted);
    margin-bottom: 10px;
}
.tdc-ext-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tdc-chip input { display: none; }
.tdc-chip-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--tdc-bg);
    border: 1.5px solid var(--tdc-border);
    border-radius: var(--tdc-radius-sm);
    padding: 8px 14px 7px;
    cursor: pointer;
    transition: all .15s;
    min-width: 74px;
    text-align: center;
    user-select: none;
}
.tdc-chip-body:hover { border-color: var(--tdc-primary); background: #fff5f5; }
.tdc-chip input:checked ~ .tdc-chip-body {
    border-color: var(--tdc-primary);
    background: #fee2e2;
}
.tdc-chip-ext   { font-size: 14px; font-weight: 700; color: var(--tdc-text); }
.tdc-chip-price { font-size: 10.5px; color: var(--tdc-muted); margin-top: 2px; }

/* ── Skeleton ───────────────────────────────────────── */
.tdc-skel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tdc-border);
}
.tdc-skel {
    background: linear-gradient(90deg,#e5e7eb 25%,#f3f4f6 50%,#e5e7eb 75%);
    background-size: 200% 100%;
    animation: tdc-shimmer 1.3s infinite;
    border-radius: 6px;
    height: 16px;
}
.tdc-skel-a { flex: 1; max-width: 160px; }
.tdc-skel-b { flex: 2; }
.tdc-skel-c { width: 100px; }
@keyframes tdc-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Spinner ────────────────────────────────────────── */
.tdc-spin-icon { width: 18px; height: 18px; display: block; }
@keyframes tdc-spin { to { transform: rotate(360deg); } }
.tdc-spin-icon { animation: tdc-spin .7s linear infinite; }

/* ── Results ────────────────────────────────────────── */
.tdc-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.tdc-results-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
}
.tdc-results-badges { display: flex; gap: 10px; }
.tdc-bdg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
}
.tdc-bdg svg { width: 13px; height: 13px; }
.tdc-bdg-ok    { background: var(--tdc-ok-bg);    color: var(--tdc-ok); }
.tdc-bdg-taken { background: var(--tdc-taken-bg); color: var(--tdc-taken); }

.tdc-results-list {
    border: 1.5px solid var(--tdc-border);
    border-radius: var(--tdc-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--tdc-shadow);
}

.tdc-row {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid var(--tdc-border);
    gap: 10px;
    animation: tdc-fadein .25s ease forwards;
    opacity: 0;
    transition: background .12s;
}
.tdc-row:last-child { border-bottom: none; }
.tdc-row:hover { background: var(--tdc-bg); }

@keyframes tdc-fadein {
    from { opacity:0; transform:translateY(5px); }
    to   { opacity:1; transform:translateY(0); }
}

.tdc-row-domain {
    font-size: 15px;
    font-weight: 700;
    min-width: 170px;
    flex-shrink: 0;
}
.tdc-row-info {
    flex: 1;
    font-size: 12.5px;
    color: var(--tdc-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tdc-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}
.tdc-status svg { width: 12px; height: 12px; }
.tdc-s-ok       { background: var(--tdc-ok-bg);    color: var(--tdc-ok); }
.tdc-s-taken    { background: var(--tdc-taken-bg); color: var(--tdc-taken); }
.tdc-s-error    { background: var(--tdc-warn-bg);  color: var(--tdc-warn); }
.tdc-s-checking { background: var(--tdc-bg); color: var(--tdc-muted); }

.tdc-row-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.tdc-btn-reg {
    background: var(--tdc-primary);
    color: #fff !important;
    border: none;
    border-radius: var(--tdc-radius-sm);
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity .15s;
}
.tdc-btn-reg:hover { opacity: .85; }

.tdc-btn-whois {
    background: var(--tdc-bg);
    color: var(--tdc-muted);
    border: 1.5px solid var(--tdc-border);
    border-radius: var(--tdc-radius-sm);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.tdc-btn-whois:hover { background: var(--tdc-border); color: var(--tdc-text); }

/* ── WHOIS Modal ────────────────────────────────────── */
.tdc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tdc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
}
.tdc-modal-box {
    position: relative;
    background: #fff;
    border-radius: var(--tdc-radius);
    width: min(640px, 94vw);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: tdc-fadein .2s ease;
}
.tdc-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tdc-border);
    font-weight: 700;
    font-size: 16px;
}
.tdc-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--tdc-muted);
    line-height: 1;
    padding: 0;
}
.tdc-modal-body {
    overflow-y: auto;
    padding: 18px 20px;
}
.tdc-modal-loading { color: var(--tdc-muted); font-size: 14px; }
.tdc-whois-pre {
    font-family: inherit;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    max-height: 420px;
    overflow-y: auto;
    color: #1e293b;
    line-height: 1.7;
}

/* ── WHOIS card format ───────────────────────── */
.tdc-whois-card {
    padding: 4px 0;
}
.tdc-wi-domain {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    padding: 0 0 14px;
    letter-spacing: .3px;
}
.tdc-wi-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}
.tdc-wi-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 5px 0;
    font-size: 13.5px;
}
.tdc-wi-label {
    min-width: 130px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding-top: 2px;
}
.tdc-wi-val {
    color: #1e293b;
    font-weight: 500;
    line-height: 1.5;
}
.tdc-wi-ns code {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 12px;
    color: #334155;
    margin: 2px 3px 2px 0;
    font-family: monospace;
}
.tdc-wi-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
}
.tdc-wi-badge-active { background: #dcfce7; color: #166534; }
.tdc-wi-badge-warn   { background: #fef9c3; color: #854d0e; }
.tdc-wi-badge-default{ background: #f1f5f9; color: #475569; }
.tdc-wi-source {
    margin-top: 14px;
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
}
.tdc-whois-err {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ── Source badge ────────────────────────────────────── */
.tdc-source {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--tdc-muted);
    background: var(--tdc-bg);
    border: 1px solid var(--tdc-border);
    border-radius: 4px;
    padding: 2px 6px;
    align-self: center;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
    .tdc-row-info   { display: none; }
    .tdc-btn-search .tdc-btn-label { display: none; }
    .tdc-btn-search { padding: 12px 16px; }
    .tdc-row        { flex-wrap: wrap; }
    .tdc-row-domain { min-width: unset; }
}

/* ================================================================
   Registration Modal
   ================================================================ */

.tdc-reg-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tdc-reg-box {
    width: min(680px, 95vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.tdc-reg-domain-badge {
    display: inline-block;
    background: var(--tdc-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ── Steps indicator ──────────────────────────────────── */
.tdc-reg-steps {
    display: flex;
    align-items: center;
    padding: 14px 24px 0;
    gap: 0;
}
.tdc-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tdc-muted);
    white-space: nowrap;
}
.tdc-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tdc-border);
    color: var(--tdc-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all .2s;
}
.tdc-step.active span {
    background: var(--tdc-primary);
    color: #fff;
}
.tdc-step.active { color: var(--tdc-primary); }
.tdc-step.done span {
    background: var(--tdc-ok);
    color: #fff;
}
.tdc-step-line {
    flex: 1;
    height: 2px;
    background: var(--tdc-border);
    margin: 0 8px;
    min-width: 20px;
}

/* ── Form fields ──────────────────────────────────────── */
.tdc-reg-body { overflow-y: auto; padding: 20px 24px; flex: 1; }

.tdc-reg-section-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--tdc-text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--tdc-border);
}
.tdc-reg-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.tdc-reg-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}
.tdc-reg-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tdc-text);
}
.tdc-reg-field label .req { color: var(--tdc-primary); }
.tdc-reg-input,
.tdc-reg-select {
    border: 1.5px solid var(--tdc-border);
    border-radius: var(--tdc-radius-sm);
    padding: 9px 12px;
    font-size: 14px;
    color: var(--tdc-text);
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.tdc-reg-input:focus,
.tdc-reg-select:focus {
    outline: none;
    border-color: var(--tdc-primary);
    box-shadow: 0 0 0 3px rgba(232,48,48,.1);
}
.tdc-reg-input.error { border-color: var(--tdc-taken); }

.tdc-reg-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--tdc-radius-sm);
    padding: 10px 14px;
    font-size: 12.5px;
    color: #1e40af;
    margin-bottom: 14px;
    line-height: 1.6;
}
.tdc-reg-note code {
    background: #dbeafe;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 12px;
}

/* ── Summary (step 3) ─────────────────────────────────── */
.tdc-reg-summary {
    background: var(--tdc-bg);
    border: 1.5px solid var(--tdc-border);
    border-radius: var(--tdc-radius-sm);
    overflow: hidden;
}
.tdc-sum-row {
    display: flex;
    padding: 10px 16px;
    border-bottom: 1px solid var(--tdc-border);
    font-size: 13.5px;
    gap: 12px;
}
.tdc-sum-row:last-child { border-bottom: none; }
.tdc-sum-label {
    font-weight: 700;
    color: var(--tdc-muted);
    min-width: 140px;
    flex-shrink: 0;
}
.tdc-sum-value { color: var(--tdc-text); font-weight: 500; }
.tdc-sum-domain .tdc-sum-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--tdc-primary);
}

/* ── Result panel ─────────────────────────────────────── */
.tdc-reg-result {
    text-align: center;
    padding: 30px 20px;
}
.tdc-reg-result.success .tdc-res-icon { font-size: 52px; }
.tdc-reg-result.success .tdc-res-title { color: var(--tdc-ok); font-size: 20px; font-weight: 800; margin: 12px 0 8px; }
.tdc-reg-result.error   .tdc-res-icon  { font-size: 52px; }
.tdc-reg-result.error   .tdc-res-title { color: var(--tdc-taken); font-size: 18px; font-weight: 700; margin: 12px 0 8px; }
.tdc-res-msg { font-size: 14px; color: var(--tdc-muted); line-height: 1.6; }

/* ── Footer buttons ───────────────────────────────────── */
.tdc-reg-footer {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--tdc-border);
    gap: 10px;
    background: var(--tdc-bg);
    border-radius: 0 0 var(--tdc-radius) var(--tdc-radius);
}
.tdc-btn-ghost {
    background: none;
    border: 1.5px solid var(--tdc-border);
    color: var(--tdc-muted);
    border-radius: var(--tdc-radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.tdc-btn-ghost:hover { border-color: var(--tdc-text); color: var(--tdc-text); }
.tdc-btn-primary {
    background: var(--tdc-primary);
    color: #fff;
    border: none;
    border-radius: var(--tdc-radius-sm);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
}
.tdc-btn-primary:hover { opacity: .88; }
.tdc-btn-success {
    background: var(--tdc-ok);
    color: #fff;
    border: none;
    border-radius: var(--tdc-radius-sm);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity .15s;
}
.tdc-btn-success:hover { opacity: .88; }
.tdc-btn-success:disabled { opacity: .6; cursor: not-allowed; }

/* ── VN-only fields ───────────────────────────────────── */
.tdc-field-vn-only { transition: opacity .2s; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 540px) {
    .tdc-reg-row2 { grid-template-columns: 1fr; }
    .tdc-reg-steps .tdc-step { font-size: 11px; }
    .tdc-reg-body { padding: 16px; }
}

/* ================================================================
   BẢNG GIÁ TÊN MIỀN — [tenten_price_table]
================================================================ */
/* ================================================================
   BẢNG GIÁ TÊN MIỀN
================================================================ */
.tdc-pt-wrap {
    margin-bottom: 40px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.09);
}
.tdc-pt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}
/* Heading row */
.tdc-pt-table thead tr {
    background: linear-gradient(90deg, #1565c0 0%, #1e88e5 100%);
}
.tdc-pt-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .8px;
    text-transform: uppercase;
    white-space: nowrap;
}
.tdc-pt-th-reg,
.tdc-pt-th-ren  { text-align: center; }
.tdc-pt-th-btn  { width: 140px; text-align: right; }

/* Body rows */
.tdc-pt-row {
    border-bottom: 1px solid #edf2f7;
    transition: background .12s;
}
.tdc-pt-row:last-child { border-bottom: none; }
.tdc-pt-row:nth-child(even) { background: #f8faff; }
.tdc-pt-row:hover { background: #eff6ff !important; }

.tdc-pt-table td {
    padding: 15px 20px;
    vertical-align: middle;
}
.tdc-pt-td-name { min-width: 180px; }
.tdc-pt-td-reg,
.tdc-pt-td-ren  { text-align: center; }
.tdc-pt-td-btn  { text-align: right; }

/* Extension label */
.tdc-pt-ext-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    letter-spacing: .2px;
}

/* Old + new price */
.tdc-pt-old-price {
    display: block;
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}
.tdc-pt-new-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
}

/* Renewal price */
.tdc-pt-td-ren { color: #475569; font-size: 14px; font-weight: 500; }

/* Register button */
.tdc-pt-reg-btn {
    display: inline-block;
    padding: 9px 24px;
    background: #1565c0;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(21,101,192,.25);
}
.tdc-pt-reg-btn:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21,101,192,.35);
    color: #fff !important;
}
.tdc-pt-reg-btn:active { transform: none; }

/* Section heading above table */
.tdc-pt-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 32px 0 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1565c0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 640px) {
    .tdc-pt-table th,
    .tdc-pt-table td  { padding: 11px 12px; font-size: 13px; }
    .tdc-pt-th-ren,
    .tdc-pt-td-ren    { display: none; }
    .tdc-pt-reg-btn   { padding: 8px 14px; font-size: 12px; }
    .tdc-pt-ext-label { font-size: 14px; }
}

/* ================================================================
   GOOGLE FORM POPUP
================================================================ */
.tdc-form-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.tdc-form-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
}
.tdc-form-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: tdc-popup-in .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes tdc-popup-in {
    from { opacity:0; transform:scale(.92) translateY(12px); }
    to   { opacity:1; transform:scale(1)  translateY(0); }
}
.tdc-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}
.tdc-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}
.tdc-form-domain-badge {
    background: #fee2e2;
    color: #e53935;
    font-weight: 800;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .3px;
}
.tdc-form-close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.tdc-form-close:hover { background:#fee2e2; color:#e53935; }
.tdc-form-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 500px;
}
.tdc-form-body::before {
    content: '⏳ Đang tải form...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}
#tdc-form-iframe {
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: none;
    display: block;
    position: relative;
    z-index: 1;
}
@media (max-width: 480px) {
    .tdc-form-box { max-height: 95vh; border-radius: 12px; }
    #tdc-form-iframe { min-height: 480px; }
}

/* ================================================================
   MODAL ĐĂNG KÝ — CÁ NHÂN / TỔ CHỨC
================================================================ */
.tdc-reg-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}
.tdc-reg-tab {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all .15s;
    margin-bottom: -2px;
}
.tdc-reg-tab:hover { color: #e53935; background: #fff5f5; }
.tdc-reg-tab.active { color: #e53935; border-bottom-color: #e53935; background: #fff; }

.tdc-reg-panel { animation: tdc-fadein .18s ease; }
@keyframes tdc-fadein { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }

.tdc-reg-field {
    margin-bottom: 11px;
}
.tdc-reg-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.tdc-reg-field label small {
    display: block;
    font-weight: 400;
    color: #94a3b8;
    font-style: italic;
    font-size: 11px;
    margin-top: 1px;
}
.tdc-reg-field .req { color: #e53935; }

.tdc-reg-input,
.tdc-reg-select {
    width: 100%;
    padding: 8px 11px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border .15s;
    box-sizing: border-box;
}
.tdc-reg-input:focus,
.tdc-reg-select:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,.1);
}
.tdc-reg-input:invalid:not(:placeholder-shown) { border-color: #f59e0b; }

.tdc-reg-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}
@media (max-width: 520px) { .tdc-reg-row2 { grid-template-columns: 1fr; } }

.tdc-radio-group {
    display: flex;
    gap: 20px;
    padding: 9px 0;
}
.tdc-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}
.tdc-radio input[type="radio"] { accent-color: #e53935; width:16px; height:16px; }

.tdc-reg-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.tdc-reg-note {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
}
.tdc-reg-footer-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}
.tdc-btn-cancel {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: background .15s;
}
.tdc-btn-cancel:hover { background: #e2e8f0; }
.tdc-btn-submit {
    padding: 10px 28px;
    background: #e53935;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    transition: background .15s, transform .1s;
    letter-spacing: .3px;
}
.tdc-btn-submit:hover:not(:disabled) { background: #c62828; transform: translateY(-1px); }
.tdc-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Success screen */
.tdc-reg-success {
    padding: 40px 24px;
    text-align: center;
}
.tdc-success-icon { font-size: 56px; margin-bottom: 12px; }
.tdc-reg-success h3 { font-size: 20px; color: #166534; margin-bottom: 8px; }
.tdc-reg-success p { color: #374151; font-size: 14px; line-height: 1.7; }

/* Override reg-box to be wider for the form */
.tdc-reg-box {
    max-width: 640px !important;
    max-height: 90vh;
    overflow-y: auto;
}

/* ================================================================
   DOMAIN INFO BAR IN REGISTER MODAL
================================================================ */
.tdc-reg-domain-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}
.tdc-reg-domain-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
}
.tdc-reg-domain-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.tdc-price-old {
    text-decoration: line-through;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}
.tdc-price-new {
    font-weight: 800;
    font-size: 18px;
    color: #fcd34d;
}
