/* ═══════════════════════════════════════════
   TRANSFER — style.css
   ═══════════════════════════════════════════ */

.tr2-wrap {
    --tr-bg:    #0d0d12;
    --tr-card:  #13131a;
    --tr-inp:   #1a1a24;
    --tr-brd:   #252530;
    --tr-fg:    #f0f0f8;
    --tr-muted: #6b6b88;
    --tr-acc:   var(--mod-c1, #3b82f6);
    --tr-acc2:  var(--mod-c2, #06b6d4);
    --tr-grad:  linear-gradient(135deg, var(--tr-acc), var(--tr-acc2));

    background: var(--tr-bg);
    border-radius: 24px;
    max-width: fit-content;
    margin: 28px auto;
    color: var(--tr-fg);
    box-shadow: 0 0 0 1px var(--tr-brd), 0 32px 80px rgba(0,0,0,.55);
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
}

/* Декоративное свечение */
.tr2-wrap::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(59,130,246,.07) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

/* ── ШАПКА ────────────────────────────────── */
.tr2-header {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 28px;
    background: var(--tr-card);
    border-bottom: 1px solid var(--tr-brd);
    position: relative; z-index: 1;
}
.tr2-header-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 14px;
    background: var(--tr-grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.tr2-title   { font-size: 17px; font-weight: 800; margin: 0 0 4px; color: var(--tr-fg); }
.tr2-subtitle { color: var(--tr-muted); margin: 0; line-height: 1.4; }

/* ── BODY ─────────────────────────────────── */
.tr2-body { padding: 24px 28px; position: relative; z-index: 1; }

/* ── ТАБЫ ─────────────────────────────────── */
.tr2-tabs {
    display: flex;
    background: var(--tr-inp);
    border-radius: 14px; padding: 4px;
    margin-bottom: 22px;
    border: 1px solid var(--tr-brd);
}
.tr2-tab {
    flex: 1; background: none; border: none;
    color: var(--tr-muted);
    font-weight: 600;
    padding: 10px 16px; border-radius: 11px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    transition: all .2s; font-family: inherit;
}
.tr2-tab.active {
    background: var(--tr-card);
    color: var(--tr-fg);
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.tr2-tab:not(.active):hover { color: #aaa; }

/* ── ОБЩИЙ ИНПУТ ──────────────────────────── */
.tr2-input {
    width: 100%; box-sizing: border-box;
    background: var(--tr-inp);
    border: 1.5px solid var(--tr-brd);
    border-radius: 12px;
    padding: 13px 16px;
    color: var(--tr-fg); font-size: 14px;
    outline: none; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.tr2-input:focus {
    border-color: var(--tr-acc);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.tr2-input::placeholder { color: var(--tr-muted); }

/* ── ПОЛЕ ИМЕНИ ───────────────────────────── */
.tr2-name-field { margin-bottom: 16px; }
.tr2-field-label {
    display: block;
    font-size: 12px; font-weight: 700;
    color: var(--tr-muted);
    text-transform: uppercase; letter-spacing: .6px;
    margin-bottom: 8px;
}
.tr2-field-label span { text-transform: none; font-weight: 400; font-style: italic; }

/* ── ДРОПЗОНА ─────────────────────────────── */
.tr2-dropzone {
    border: 2px dashed var(--tr-brd);
    border-radius: 18px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--tr-card);
    transition: border-color .2s, background .2s;
}
.tr2-dropzone:hover,
.tr2-dropzone.dragover {
    border-color: var(--tr-acc);
    background: rgba(59,130,246,.04);
}
.tr2-dropzone-icon {
    width: 52px; height: 52px; margin: 0 auto 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(6,182,212,.15));
    border: 1px solid rgba(59,130,246,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--tr-acc);
}
.tr2-dropzone-text {
    font-weight: 600; color: #ccc;
    margin: 0 0 10px; line-height: 1.5;
}
.tr2-dropzone-text span {
    background: var(--tr-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer;
}
.tr2-dropzone-meta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; color: #a0a0b8; margin-bottom: 8px; font-weight: 500;
}
.tr2-sep { color: #6a6a80; }
.tr2-dropzone-meta i { margin-right: 3px; }
.tr2-dropzone-forbidden {
    display: inline-block;
    color: #f87171;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.18);
    border-radius: 8px; padding: 6px 12px;
    margin-top: 4px;
}

/* ── ЗАМЕТКА ОБ ИСТЕЧЕНИИ ─────────────────── */
.tr2-expire-note {
    margin-top: 14px;
    text-align: center;
    color: var(--tr-muted);
}
.tr2-expire-note b { color: #aaa; }
.tr2-expire-note i { margin-right: 5px; }

/* ── ТАБ ССЫЛКИ ───────────────────────────── */
.tr2-url-row {
    display: flex; gap: 10px; margin-bottom: 0;
}
.tr2-url-input { flex: 1; min-width: 0; }
.tr2-btn-shorten {
    flex-shrink: 0;
    border: none; border-radius: 12px;
    padding: 0 22px;
    background: var(--tr-grad);
    color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(59,130,246,.25);
    transition: opacity .2s, transform .2s;
    display: flex; align-items: center; gap: 7px;
}
.tr2-btn-shorten:hover    { opacity: .9; transform: translateY(-1px); }
.tr2-btn-shorten:disabled { opacity: .5; cursor: wait; transform: none; }

/* ── РЕЗУЛЬТАТ ────────────────────────────── */
.tr2-result { margin-top: 22px; }

.tr2-result-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .6px;
    color: #4ade80; margin-bottom: 10px;
}

.tr2-result-box {
    display: flex; align-items: stretch;
    background: rgba(74,222,128,.05);
    border: 1.5px solid rgba(74,222,128,.25);
    border-radius: 14px; overflow: hidden;
    animation: tr2-in .3s ease;
}
@keyframes tr2-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tr2-result-input {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none;
    padding: 14px 18px;
    color: #4ade80; font-size: 14px; font-family: monospace;
}

.tr2-copy-btn {
    flex-shrink: 0;
    width: 52px;
    background: rgba(74,222,128,.08);
    border: none;
    border-left: 1px solid rgba(74,222,128,.2);
    color: #4ade80;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.tr2-copy-btn:hover { background: rgba(74,222,128,.18); }

/* ── АДАПТИВ ──────────────────────────────── */
@media (max-width: 480px) {
    .tr2-header { padding: 18px 20px; }
    .tr2-body   { padding: 20px; }
    .tr2-url-row { flex-direction: column; }
    .tr2-btn-shorten { padding: 13px; justify-content: center; }
}