/* ══════════════════════════════════════════
   Hostmargin Temp CDN — Upload & My Files
   ══════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────── */
.tc-hero {
    background: #0d1117;
    background-image:
        radial-gradient(ellipse 70% 50% at 60% -10%, rgba(56,97,251,.2) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 5% 90%,  rgba(56,200,180,.07) 0%, transparent 60%);
    padding: 160px 0 60px; /* 160px top = top-bar (~40px) + navbar (~80px) + breathing room */
    border-bottom: 1px solid #21262d;
    position: relative; overflow: hidden;
}
.tc-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 48px 48px;
}
.tc-hero__inner { position: relative; text-align: center; }
.tc-hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(56,97,251,.12); color: #7aa2f7;
    border: 1px solid rgba(56,97,251,.28);
    border-radius: 20px; font-size: 11px; font-weight: 700;
    padding: 5px 14px; letter-spacing: .7px;
    text-transform: uppercase; margin-bottom: 20px;
}
.tc-hero__badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #3fb950; box-shadow: 0 0 7px #3fb950;
    animation: tcDot 2s ease infinite;
}
@keyframes tcDot {
    0%,100% { opacity:1; box-shadow:0 0 7px #3fb950; }
    50%      { opacity:.6; box-shadow:0 0 14px #3fb950; }
}
.tc-hero h1 {
    font-size: 44px; font-weight: 800; color: #fff;
    line-height: 1.1; letter-spacing: -1.5px; margin: 0 0 16px;
}
.tc-hero h1 em { font-style: normal; color: #7aa2f7; }
.tc-hero p {
    font-size: 16px; color: #8b949e; max-width: 520px;
    margin: 0 auto 0; line-height: 1.7;
}
.tc-hero__meta {
    display: flex; justify-content: center; gap: 32px;
    margin-top: 28px; flex-wrap: wrap;
}
.tc-hero__meta-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #6e7681;
}
.tc-hero__meta-item i { color: #3b82f6; font-size: 14px; }
@media(max-width: 991px) {
    .tc-hero { padding: 130px 0 50px; }
}
@media(max-width: 600px) {
    .tc-hero { padding: 120px 0 40px; }
    .tc-hero h1 { font-size: 28px; }
    .tc-hero__meta { gap: 16px; }
}

/* ── Main card ───────────────────────────── */
.tc-main { padding: 60px 0 80px; background: #f8fafc; min-height: 60vh; }
.tc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,.07);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}
.tc-card__head {
    background: #0d1117;
    padding: 24px 28px;
    border-bottom: 1px solid #21262d;
    display: flex; align-items: center; gap: 14px;
}
.tc-card__head-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: rgba(59,130,246,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #7aa2f7; flex-shrink: 0;
}
.tc-card__head h2 { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.tc-card__head p  { margin: 3px 0 0; font-size: 13px; color: #8b949e; }
.tc-card__body { padding: 28px; }

/* ── Steps indicator ─────────────────────── */
.tc-steps {
    display: flex; align-items: center;
    gap: 0; margin-bottom: 28px;
}
.tc-step {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: #94a3b8;
}
.tc-step__num {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #94a3b8;
    flex-shrink: 0;
}
.tc-step.active .tc-step__num  { border-color: #3b82f6; background: #3b82f6; color: #fff; }
.tc-step.active { color: #1e3a5f; }
.tc-step.done .tc-step__num   { border-color: #22c55e; background: #22c55e; color: #fff; }
.tc-step-line { flex: 1; height: 2px; background: #e2e8f0; margin: 0 8px; }
.tc-step-line.done { background: #22c55e; }

/* ── Form elements ───────────────────────── */
.tc-label {
    display: block; font-size: 13px; font-weight: 600;
    color: #374151; margin-bottom: 6px;
}
.tc-input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; color: #1e293b;
    transition: border-color .2s, box-shadow .2s;
    outline: none; background: #fff;
}
.tc-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.tc-input.error { border-color: #ef4444; }

/* ── Drop zone ───────────────────────────── */
.tc-dropzone {
    border: 2px dashed #cbd5e1; border-radius: 10px;
    padding: 36px 20px; text-align: center;
    cursor: pointer; transition: border-color .2s, background .2s;
    background: #f8fafc; position: relative;
}
.tc-dropzone:hover, .tc-dropzone.drag-over {
    border-color: #3b82f6; background: #eff6ff;
}
.tc-dropzone input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}
.tc-dropzone__icon { font-size: 32px; color: #3b82f6; margin-bottom: 10px; }
.tc-dropzone__text { font-size: 14px; color: #475569; font-weight: 600; }
.tc-dropzone__sub  { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.tc-dropzone__file {
    display: none; align-items: center; gap: 10px;
    background: #f0f9ff; border: 1.5px solid #bae6fd;
    border-radius: 8px; padding: 10px 14px; margin-top: 12px;
    text-align: left;
}
.tc-dropzone__file.show { display: flex; }
.tc-dropzone__file-name { font-size: 13px; color: #0369a1; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-dropzone__file-size { font-size: 12px; color: #64748b; }

/* ── OTP box ─────────────────────────────── */
.tc-otp-section { display: none; }
.tc-otp-section.show { display: block; }
.tc-otp-inputs {
    display: flex; gap: 10px; justify-content: center; margin: 16px 0;
}
.tc-otp-inputs input {
    width: 48px; height: 54px; border: 2px solid #e2e8f0;
    border-radius: 10px; text-align: center; font-size: 22px;
    font-weight: 700; color: #1e293b; outline: none;
    transition: border-color .2s;
}
.tc-otp-inputs input:focus { border-color: #3b82f6; }
.tc-otp-inputs input.filled { border-color: #3b82f6; background: #eff6ff; }
.tc-otp-hint {
    font-size: 13px; color: #64748b; text-align: center; margin-bottom: 16px;
}
.tc-otp-hint strong { color: #1e293b; }
.tc-resend {
    font-size: 13px; text-align: center; color: #94a3b8; margin-top: 12px;
}
.tc-resend a { color: #3b82f6; cursor: pointer; text-decoration: none; font-weight: 600; }
.tc-resend a:hover { text-decoration: underline; }

/* ── Buttons ─────────────────────────────── */
.tc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 11px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .2s; border: none; width: 100%; margin-top: 6px;
}
.tc-btn-primary {
    background: #3b82f6; color: #fff;
}
.tc-btn-primary:hover:not(:disabled) { background: #2563eb; }
.tc-btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }
.tc-btn-outline {
    background: transparent; color: #3b82f6;
    border: 1.5px solid #3b82f6;
}
.tc-btn-outline:hover { background: #eff6ff; }
.tc-spinner {
    width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff; border-radius: 50%; animation: tcSpin .7s linear infinite;
    display: none;
}
.tc-spinner.show { display: inline-block; }
@keyframes tcSpin { to { transform: rotate(360deg); } }

/* ── Success result ──────────────────────── */
.tc-result { display: none; }
.tc-result.show { display: block; }
.tc-result__check {
    width: 60px; height: 60px; border-radius: 50%;
    background: #dcfce7; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 16px; font-size: 26px; color: #16a34a;
}
.tc-result__title { font-size: 18px; font-weight: 700; color: #1e293b; text-align: center; margin-bottom: 6px; }
.tc-result__sub   { font-size: 14px; color: #64748b; text-align: center; margin-bottom: 24px; }
.tc-url-box {
    background: #f1f5f9; border: 1.5px solid #e2e8f0;
    border-radius: 10px; padding: 14px 16px;
    display: flex; align-items: center; gap: 10px;
    overflow: hidden;
}
.tc-url-box__text {
    flex: 1; font-size: 13px; color: #0369a1; font-weight: 500;
    font-family: monospace; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.tc-url-copy {
    flex-shrink: 0; background: #3b82f6; color: #fff;
    border: none; border-radius: 6px; padding: 7px 12px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background .2s;
}
.tc-url-copy:hover { background: #2563eb; }
.tc-expire-note {
    display: flex; align-items: center; gap: 8px;
    background: #fff7ed; border: 1px solid #fed7aa;
    border-radius: 8px; padding: 10px 14px; margin-top: 14px;
    font-size: 13px; color: #92400e;
}
.tc-expire-note i { color: #f59e0b; flex-shrink: 0; }

/* ── Error / alert ───────────────────────── */
.tc-alert {
    display: none; padding: 11px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 500; margin-bottom: 16px;
    align-items: center; gap: 8px;
}
.tc-alert.show { display: flex; }
.tc-alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.tc-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── Files table ─────────────────────────── */
.tc-files-empty {
    text-align: center; padding: 48px 20px; color: #94a3b8;
}
.tc-files-empty i { font-size: 40px; color: #e2e8f0; display: block; margin-bottom: 12px; }
.tc-files-grid { display: flex; flex-direction: column; gap: 10px; }
.tc-file-row {
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    padding: 14px 16px; display: flex; align-items: center; gap: 14px;
    transition: border-color .15s;
}
.tc-file-row:hover { border-color: #bfdbfe; }
.tc-file-icon {
    width: 38px; height: 38px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.tc-file-icon.img  { background: #fef3c7; color: #d97706; }
.tc-file-icon.css  { background: #dbeafe; color: #2563eb; }
.tc-file-icon.js   { background: #fef9c3; color: #ca8a04; }
.tc-file-icon.pdf  { background: #fee2e2; color: #dc2626; }
.tc-file-icon.font { background: #f3e8ff; color: #9333ea; }
.tc-file-icon.misc { background: #f1f5f9; color: #64748b; }
.tc-file-info { flex: 1; min-width: 0; }
.tc-file-name { font-size: 13px; font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-file-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.tc-file-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.tc-file-action-btn {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px; border: 1.5px solid #e2e8f0; background: #fff;
    font-size: 13px; cursor: pointer; text-decoration: none;
    color: #475569; transition: all .15s; flex-shrink: 0;
}
.tc-file-action-copy:hover  { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
.tc-file-action-open:hover  { border-color: #6366f1; color: #6366f1; background: #eef2ff; }
.tc-file-action-delete      { border-color: #fecaca; color: #ef4444; }
.tc-file-action-delete:hover{ border-color: #ef4444; background: #fef2f2; }

/* ── Nav link ────────────────────────────── */
.tc-nav {
    text-align: center; margin-top: 20px;
    font-size: 13px; color: #64748b;
}
.tc-nav a { color: #3b82f6; font-weight: 600; text-decoration: none; }
.tc-nav a:hover { text-decoration: underline; }
