/* =====================================================
 *  Clipboard Uploader v5 - Midnight Sapphire
 *  چیدمان مرتب‌شده: هرو+سرویس داخل دراپ‌زون، بج هدر، FAB راهنما
 * =================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* پالت Midnight Sapphire */
    --bg-0:   #050a18;
    --bg-1:   #0a1428;
    --bg-2:   #0f1d3a;
    --bg-3:   #16264a;

    --cyan-1: #00d4ff;
    --cyan-2: #06b6d4;
    --cyan-3: #0891b2;
    --cyan-glow: rgba(0, 212, 255, 0.5);

    --blue-1: #3b82f6;
    --blue-2: #2563eb;

    --plat-1: #e2e8f0;
    --plat-2: #cbd5e1;
    --plat-3: #94a3b8;

    --amber:  #fbbf24;
    --amber-glow: rgba(251, 191, 36, 0.4);

    --text:       #f1f5f9;
    --text-dim:   #cbd5e1;
    --text-mute:  #94a3b8;
    --text-faint: #64748b;

    --glass:        rgba(255, 255, 255, 0.05);
    --glass-strong: rgba(255, 255, 255, 0.08);
    --glass-brd:    rgba(255, 255, 255, 0.12);
    --glass-brd-hi: rgba(0, 212, 255, 0.4);

    --shadow-soft:  0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-deep:  0 20px 60px -10px rgba(0, 0, 0, 0.6);

    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --font: 'Vazirmatn', 'IRANSans', 'Tahoma', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* =================== پس‌زمینه =================== */
.bg-mesh {
    position: fixed; inset: 0; z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(59, 130, 246, 0.10) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 22s ease-in-out infinite;
}
.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--cyan-2) 0%, transparent 70%);
    top: -200px; right: -100px;
}
.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--blue-1) 0%, transparent 70%);
    bottom: -150px; left: -100px;
    animation-delay: -7s;
}
.blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--cyan-3) 0%, transparent 70%);
    top: 40%; left: 50%;
    animation-delay: -14s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -40px) scale(1.05); }
    66%      { transform: translate(-20px, 30px) scale(0.95); }
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

#particles {
    position: fixed; inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* =================== اپلیکیشن =================== */
.app {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 18px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =================== هدر =================== */
.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
}

/* دکمه‌های آیکونی هدر */
.header-btn.icon-btn {
    position: relative;
    width: 38px; height: 38px;
    border: 1px solid var(--glass-brd);
    background: var(--glass);
    border-radius: var(--r-sm);
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.header-btn.icon-btn:hover {
    background: var(--glass-strong);
    border-color: var(--glass-brd-hi);
    color: var(--cyan-1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}
.header-btn.icon-btn svg {
    width: 19px; height: 19px;
}
.badge-count {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    background: linear-gradient(135deg, var(--cyan-1), var(--blue-1));
    color: var(--bg-0);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px var(--cyan-glow);
    border: 2px solid var(--bg-1);
}
.badge-count[data-count="0"] { display: none; }

/* (بج قانون ۱۲ سال به پنل راهنما منتقل شد — استایل‌ها در help-disclaimer-box) */
@keyframes amber-sweep {
    0%   { transform: translateX(-100%); }
    50%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* سمت وسط هدر: برند */
.header-center {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan-1), var(--blue-1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-0);
    box-shadow: 0 0 16px var(--cyan-glow);
}
.brand-icon svg {
    width: 17px; height: 17px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}
.brand-tag {
    font-size: 9px;
    font-weight: 600;
    color: var(--cyan-1);
    letter-spacing: 2px;
}

/* =================== محتوای وسط =================== */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    min-height: 0;
}

/* کانتینر یکپارچه: هرو + سرویس + دراپ‌زون — کارت اصلی بزرگ */
.upload-stack {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: linear-gradient(180deg, rgba(15, 29, 58, 0.6) 0%, rgba(10, 20, 40, 0.7) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px dashed rgba(0, 212, 255, 0.35);
    border-radius: var(--r-lg);
    padding: 54px 44px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    transition: all 0.3s ease;
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.08),
        0 20px 60px -20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.upload-stack::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--r-xl);
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), transparent 30%, transparent 70%, rgba(59, 130, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.upload-stack:hover::before,
.upload-stack.dragover::before {
    opacity: 1;
}
.upload-stack.dragover {
    border-color: var(--cyan-1);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.2),
        0 0 60px rgba(0, 212, 255, 0.25),
        0 20px 60px -20px rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}
.upload-stack.paste-active {
    animation: pulse-paste 0.5s ease-out;
}
@keyframes pulse-paste {
    0%   { box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2), 0 0 0 rgba(0, 212, 255, 0.5); }
    50%  { box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.6), 0 0 80px rgba(0, 212, 255, 0.6); }
    100% { box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08), 0 20px 60px -20px rgba(0, 0, 0, 0.7); }
}

/* هرو داخل کانتینر — اسلایدر با افکت تاپ راست‌به‌چپ */
.hero-inline {
    text-align: center;
    width: 100%;
}
.hero-carousel {
    position: relative;
    width: 100%;
    height: 44px;
    overflow: hidden;
}

/* ردیف پایه: مخفی، موقعیت در سمت راست، آماده برای ورود */
.hero-row {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    opacity: 0;
    transform: translateX(90px) scale(0.92);
    filter: blur(4px);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.35s ease,
                transform 0.5s cubic-bezier(0.4, 0, 0.6, 1),
                filter 0.35s ease;
}

/* ردیف فعال: با افکت تاپ از راست وارد می‌شه — یه overshoot کوچیک می‌خوره */
.hero-row.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
    animation: hero-tap-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes hero-tap-in {
    0%   { transform: translateX(90px) scale(0.92); opacity: 0; filter: blur(4px); }
    30%  { transform: translateX(0) scale(1); opacity: 1; filter: blur(0); }
    55%  { transform: translateX(-8px) scale(1.05); opacity: 1; filter: blur(0); }
    100% { transform: translateX(0) scale(1); opacity: 1; filter: blur(0); }
}

/* ردیف خروجی: سریع محو می‌شه (۱۵۰ms) تا با ورود ردیف جدید هم‌پوشانی نکنه */
.hero-row.leaving {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    filter: blur(4px);
    pointer-events: none;
    transition: opacity 0.15s ease-out,
                transform 0.15s ease-out,
                filter 0.15s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan-1) 0%, var(--blue-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.arrow {
    color: var(--cyan-1);
    opacity: 0.7;
    font-size: 1em;
}
.kbd-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan-1);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 7px;
    box-shadow: 0 2px 0 rgba(0, 212, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}
.plus {
    color: var(--text-mute);
    font-weight: 700;
}
.hero-subtitle {
    margin-top: 4px;
    color: var(--text-mute);
    font-size: 12px;
}

/* =================== انتخاب سرویس =================== */
.service-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}
.service-chip {
    position: relative;
    cursor: pointer;
    display: block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-chip:hover {
    transform: translateY(-2px);
}
.service-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.chip-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}
.chip-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 50%, rgba(0, 212, 255, 0.22) 0%, transparent 55%),
        linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.service-chip:hover .chip-content {
    border-color: rgba(0, 212, 255, 0.35);
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.06) 0%, rgba(255,255,255,0.02) 100%);
}
.service-chip.active .chip-glow {
    opacity: 1;
}
.service-chip.active .chip-content {
    border-color: rgba(0, 212, 255, 0.65);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.3),
        0 0 32px rgba(0, 212, 255, 0.25),
        inset 0 0 24px rgba(0, 212, 255, 0.08);
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.10) 0%, rgba(59, 130, 246, 0.04) 100%);
}

/* نوار پایین انیمیشن‌دار — فقط هنگام انتخاب */
.chip-bottom-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--cyan-1) 30%,
        var(--blue-1) 70%,
        transparent 100%);
    background-size: 200% 100%;
    background-position: 200% 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.service-chip.active .chip-bottom-bar {
    opacity: 1;
    animation: chip-bar-sweep 2.2s linear infinite;
}
@keyframes chip-bar-sweep {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* بج «پیشنهادی» شناور در گوشه بالا-راست کارت */
.chip-badge {
    position: absolute;
    top: -7px;
    right: 10px;
    z-index: 3;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 700;
    color: #0a1428;
    background: linear-gradient(135deg, var(--cyan-1) 0%, var(--blue-1) 100%);
    border-radius: 999px;
    box-shadow:
        0 2px 8px rgba(0, 212, 255, 0.5),
        0 0 0 1px rgba(0, 212, 255, 0.3);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* آیکون با هاله نورانی */
.chip-icon-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.chip-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.12) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-dim);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chip-icon svg {
    width: 18px;
    height: 18px;
}
.service-chip:hover .chip-icon {
    color: var(--cyan-1);
    border-color: rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}
.service-chip.active .chip-icon {
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: var(--cyan-1);
    color: var(--cyan-1);
    box-shadow:
        0 0 16px rgba(0, 212, 255, 0.4),
        inset 0 0 8px rgba(0, 212, 255, 0.2);
}

/* چک‌مارک روی آیکون — فقط هنگام انتخاب */
.chip-check {
    position: absolute;
    inset: -3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--cyan-1) 0%, var(--blue-1) 100%);
    color: #0a1428;
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}
.chip-check svg {
    width: 18px;
    height: 18px;
}
.service-chip.active .chip-check {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.chip-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.chip-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}
.service-chip.active .chip-name {
    color: var(--cyan-1);
}
.chip-note {
    font-size: 11px;
    color: var(--text-mute);
    transition: color 0.3s ease;
}
.service-chip.active .chip-note {
    color: var(--text-dim);
}

/* =========================================================
 *  رنگ‌بندی تیک هرو (chip-check) بر اساس سرویس
 *  filebin.net → طلایی
 *  tmpfile.link → نقره‌ای
 *  فقط روی چک‌مارک اعمال می‌شه، بقیه چیپ دست‌نخورده
 * ========================================================= */
.service-chip[data-service="filebin"].active .chip-check {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.7), 0 0 8px rgba(251, 191, 36, 0.5);
}
.service-chip[data-service="tmpfile"].active .chip-check {
    background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
    box-shadow: 0 0 22px rgba(203, 213, 225, 0.6), 0 0 8px rgba(203, 213, 225, 0.4);
}

/* =================== ناحیه دراپ‌زون =================== */
.dropzone-area {
    position: relative;
    width: 100%;
    padding: 28px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.dropzone-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
}
.ring {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.05) inset,
        0 0 12px rgba(0, 212, 255, 0.04);
}
.ring-1 {
    width: 130px; height: 130px;
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.15) inset, 0 0 24px rgba(0, 212, 255, 0.12);
}
.ring-2 {
    width: 180px; height: 180px;
    border-color: rgba(0, 212, 255, 0.22);
    border-style: dashed;
    animation: ring-rotate-cw 32s linear infinite;
}
.ring-3 {
    width: 230px; height: 230px;
    border-color: rgba(59, 130, 246, 0.18);
    animation: ring-rotate-ccw 48s linear infinite;
}
.ring-4 {
    width: 280px; height: 280px;
    border-color: rgba(0, 212, 255, 0.10);
    border-style: dotted;
}
.ring-5 {
    width: 330px; height: 330px;
    border-color: rgba(59, 130, 246, 0.06);
}
@keyframes ring-rotate-cw  { to { transform: rotate(360deg); } }
@keyframes ring-rotate-ccw { to { transform: rotate(-360deg); } }

/* مدارها با ذرات چرخان — حس کهکشانی */
.ring-orbit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.orbit-a {
    width: 180px; height: 180px;
    animation: ring-rotate-cw 14s linear infinite;
}
.orbit-b {
    width: 230px; height: 230px;
    animation: ring-rotate-ccw 22s linear infinite;
}
.orbit-c {
    width: 280px; height: 280px;
    animation: ring-rotate-cw 32s linear infinite;
}
.orbit-dot {
    position: absolute;
    top: -3px; left: 50%;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cyan-1);
    box-shadow: 0 0 12px var(--cyan-1), 0 0 24px rgba(0, 212, 255, 0.6);
    transform: translateX(-50%);
}
.orbit-b .orbit-dot {
    background: var(--blue-1);
    box-shadow: 0 0 12px var(--blue-1), 0 0 24px rgba(59, 130, 246, 0.6);
    width: 5px; height: 5px;
}
.orbit-c .orbit-dot {
    background: var(--cyan-2);
    box-shadow: 0 0 10px var(--cyan-2), 0 0 20px rgba(6, 182, 212, 0.5);
    width: 4px; height: 4px;
}

.dropzone-icon {
    width: 56px; height: 56px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(59, 130, 246, 0.10));
    border: 1px solid rgba(0, 212, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-1);
    box-shadow: 0 0 32px rgba(0, 212, 255, 0.28), inset 0 0 12px rgba(0, 212, 255, 0.1);
    position: relative;
    z-index: 2;
}
.dropzone-icon svg {
    width: 28px; height: 28px;
}
.dropzone-text {
    text-align: center;
    z-index: 2;
    position: relative;
}
.dropzone-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dropzone-text h3 kbd {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
}
.dropzone-text p {
    margin-top: 4px;
    color: var(--text-mute);
    font-size: 12px;
}

/* دکمه انتخاب فایل */
.file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: linear-gradient(135deg, var(--cyan-1), var(--blue-1));
    color: var(--bg-0);
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4), 0 0 24px rgba(0, 212, 255, 0.2);
    z-index: 2;
    position: relative;
}
.file-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 212, 255, 0.6), 0 0 32px rgba(0, 212, 255, 0.3);
}
.file-btn svg {
    width: 15px; height: 15px;
}

/* موج paste */
.paste-ripple {
    position: absolute;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--cyan-1);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
}
.paste-ripple.active {
    animation: ripple 0.8s ease-out;
}
@keyframes ripple {
    0%   { opacity: 0.6; width: 20px; height: 20px; }
    100% { opacity: 0;   width: 600px; height: 600px; }
}

/* =================== Overlay آپلود =================== */
.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.upload-overlay.hidden {
    display: none;
}
.upload-overlay.show {
    opacity: 1;
}
.overlay-card {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--glass-brd-hi);
    border-radius: var(--r-md);
    padding: 18px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-deep), 0 0 60px rgba(0, 212, 255, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.upload-overlay.show .overlay-card {
    transform: scale(1);
}
.overlay-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(0, 212, 255, 0.15);
    border-top-color: var(--cyan-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.overlay-name {
    text-align: center;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 12px;
    word-break: break-all;
}
.overlay-progress {
    height: 6px;
    background: var(--glass);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan-1), var(--blue-1));
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--cyan-glow);
}
.overlay-status {
    text-align: center;
    font-size: 13px;
    color: var(--text-mute);
}
.overlay-status.success { color: var(--success); }
.overlay-status.error   { color: var(--danger); }

/* =================== کارت نتیجه (هم‌سان با history-item) =================== */
/* تنوع‌های اختصاصی برای کارت نتیجه که داخل overlay نمایش داده می‌شه */
.result-item {
    margin-bottom: 0;
    border: 1px solid var(--glass-brd-hi);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.15);
}
.result-item .hi-name {
    font-size: 14px;
}
.result-item .hi-ext {
    min-width: 32px;
    padding: 3px 6px;
    font-size: 10px;
}
.result-item .hi-url {
    font-size: 11px;
    padding: 6px 10px;
}
.result-item .hi-actions {
    grid-template-columns: repeat(4, 1fr);
}
.result-item .h-action {
    padding: 9px 4px;
    font-size: 11px;
}
.result-item .h-action svg {
    width: 14px;
    height: 14px;
}
.result-item .hi-service.second {
    color: var(--text-mute);
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
}
.rr-num { color: var(--amber); font-weight: 700; }
@keyframes retention-shrink {
    to { width: 0%; }
}

/* legacy badge colors (still referenced inline if needed) */
.badge.tmpfile { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge.filebin { background: rgba(0, 212, 255, 0.15); color: var(--cyan-1); }


/* =================== پنل تاریخچه =================== */
.history-drawer {
    position: fixed;
    top: 0; left: -360px;
    width: 360px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border-right: 1px solid var(--glass-brd);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
}
.history-drawer.open {
    left: 0;
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--glass-brd);
}
.drawer-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.drawer-close {
    width: 32px; height: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    color: var(--text-mute);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.drawer-close:hover {
    background: var(--glass-strong);
    color: var(--text);
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.drawer-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--glass-brd);
}
.clear-btn {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 199;
}
.drawer-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-faint);
}
.empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* =================== کارت آپلود اخیر =================== */
.history-item {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 29, 58, 0.55) 0%, rgba(10, 20, 40, 0.55) 100%);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-md);
    padding: 12px 12px 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
}
.history-item:hover {
    border-color: var(--glass-brd-hi);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.4);
}
.history-item.deleted {
    opacity: 0.55;
}

/* نوار رنگی سمت راست — طلا برای filebin، نقره‌ای برای tmpfile */
.hi-accent {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 3px;
}
.history-item.svc-filebin .hi-accent {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}
.history-item.svc-tmpfile .hi-accent {
    background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
    box-shadow: 0 0 8px rgba(203, 213, 225, 0.4);
}

.hi-body {
    padding-left: 8px;
}

/* سطر سرتیتر: بَج پسوند فایل + نام فایل */
.hi-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}
.hi-ext {
    flex-shrink: 0;
    min-width: 28px;
    padding: 2px 5px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--cyan-1);
    border-radius: 4px;
    font-family: 'Vazirmatn', monospace;
    font-size: 9.5px;
    font-weight: 700;
    text-align: center;
    direction: ltr;
}
.history-item.svc-filebin .hi-ext {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}
.history-item.svc-tmpfile .hi-ext {
    background: rgba(226, 232, 240, 0.1);
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}
.hi-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: right;
}

/* URL کامل با استایل code-block */
.hi-url {
    font-family: 'Vazirmatn', monospace;
    font-size: 10.5px;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: left;
}

/* سطر متادیتا: زمان + بَج سرویس */
.hi-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.hi-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--text-mute);
}
.hi-time svg {
    width: 11px;
    height: 11px;
    opacity: 0.7;
}
.hi-service {
    font-family: 'Vazirmatn', monospace;
    font-size: 9.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    direction: ltr;
}
.history-item.svc-filebin .hi-service {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.history-item.svc-tmpfile .hi-service {
    color: #cbd5e1;
    background: rgba(226, 232, 240, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* دکمه‌های اکشن — گرید ۴ ستونی */
.hi-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.h-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-brd);
    color: var(--text-dim);
    border-radius: var(--r-sm);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}
.h-action svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.h-action span {
    white-space: nowrap;
}
.h-action:hover {
    background: var(--glass-strong);
    transform: translateY(-1px);
}
.h-action.copy { color: var(--cyan-1); border-color: rgba(0, 212, 255, 0.2); }
.h-action.copy:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyan-1);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}
.h-action.copy.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.h-action.download { color: var(--success); border-color: rgba(16, 185, 129, 0.2); }
.h-action.download:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}
.h-action.open { color: var(--text-soft); border-color: rgba(255, 255, 255, 0.08); }
.h-action.open:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-soft);
    color: var(--text);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}
.h-action.delete {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}
.h-action.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}
.h-action.deleted-mark {
    color: var(--text-mute);
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 480px) {
    .hi-actions { grid-template-columns: repeat(2, 1fr); }
}

/* =================== Toast =================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 29, 58, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-md);
    padding: 12px 20px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-deep);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.success {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}
.toast.error {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
}

/* =================== پنل کشویی راهنما (سمت راست) =================== */
.help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.78);
    z-index: 220;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.help-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.help-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border-left: 1px solid var(--glass-brd);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    z-index: 225;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}
.help-overlay.show .help-drawer {
    right: 0;
}
.help-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    contain: layout style;
    will-change: scroll-position;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* کادر بالا: قانون ۱۲ سال */
.help-disclaimer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 212, 255, 0.03));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--r-md);
    position: relative;
    overflow: visible;
    text-align: center;
}
.help-disclaimer-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.10), transparent);
    pointer-events: none;
    border-radius: var(--r-md);
    z-index: 0;
}
.help-disclaimer-box .hp-icon {
    display: flex;
    color: var(--cyan-1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.help-disclaimer-box .hp-icon svg {
    width: 18px; height: 18px;
}
.help-disclaimer-box .hp-text {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    width: 100%;
}
.help-disclaimer-box .hp-text strong {
    color: var(--cyan-1);
    font-weight: 700;
}
.help-disclaimer-box .hp-main {
    white-space: nowrap;
    color: var(--text);
    font-weight: 500;
}
.help-disclaimer-box .hp-sub {
    color: var(--text-mute);
    font-size: 11px;
    display: block;
    font-weight: 400;
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
}

/* کادر پایین: محتوای راهنما */
.help-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.help-section {
    padding: 14px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-md);
}
.help-section.highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(59, 130, 246, 0.03));
    border-color: rgba(0, 212, 255, 0.25);
}
.help-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan-1);
    margin-bottom: 10px;
}
.help-section p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    line-height: 1.7;
}
.help-section ul, .help-section ol {
    padding-right: 20px;
    margin-bottom: 8px;
}
.help-section li {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 6px;
    line-height: 1.7;
}
.help-section strong {
    color: var(--text);
    font-weight: 700;
}
.help-section code {
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan-1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}
.help-section kbd {
    min-width: 24px;
    height: 24px;
    font-size: 11px;
    padding: 0 6px;
}
.help-note {
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
}
.service-card {
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-sm);
    padding: 8px 10px;
    margin-bottom: 6px;
}
.sc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.sc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.sc-badge:hover {
    transform: translateY(-1px);
    text-decoration: none;
}
.sc-badge.tmpfile { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.sc-badge.tmpfile:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}
.sc-badge.filebin { background: rgba(0, 212, 255, 0.15); color: var(--cyan-1); }
.sc-badge.filebin:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}
.sc-external {
    width: 11px; height: 11px;
    opacity: 0.7;
}
.sc-meta {
    font-size: 10px;
    color: var(--text-mute);
}
.service-card p {
    font-size: 11px;
    color: var(--text-mute);
    margin: 0;
    line-height: 1.5;
}
.service-card p + p.sc-note {
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 10.5px;
    color: var(--text-soft);
    background: rgba(251, 191, 36, 0.08);
    border-right: 2px solid rgba(251, 191, 36, 0.55);
    border-radius: 4px;
    line-height: 1.55;
}
.service-card p.sc-note strong {
    color: #fbbf24;
}
.file-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.ft-chip {
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    color: var(--text-dim);
}

/* =================== Responsive =================== */
@media (max-width: 720px) {
    .app { padding: 10px; }
    .header {
        grid-template-columns: auto 1fr auto;
        gap: 6px;
        padding: 6px 8px;
    }
    .brand-text { display: none; }
    .upload-stack {
        padding: 18px 14px 14px;
        gap: 12px;
        max-width: 100%;
    }
    .hero-carousel {
        height: 32px;
    }
    .hero-row {
        font-size: 14px;
        gap: 6px;
    }
    .service-selector {
        grid-template-columns: 1fr;
    }
    .dropzone-area {
        padding: 12px 8px 8px;
    }
    .result-actions {
        gap: 4px;
    }
    .delete-btn, .view-btn, .download-btn {
        font-size: 8px;
        padding: 3px 5px;
        min-width: 44px;
    }
    .dropzone-area { padding: 22px 8px 10px; }
    .ring-4, .ring-5, .orbit-c { display: none; }
    .ring-3 { width: 200px; height: 200px; }
    .orbit-b { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 26px;
    }
    .hero-row {
        font-size: 11px;
        gap: 4px;
    }
    .hero-subtitle {
        font-size: 11px;
    }
    .dropzone-icon {
        width: 40px; height: 40px;
    }
    .dropzone-icon svg {
        width: 22px; height: 22px;
    }
    .result-thumb {
        width: 56px; height: 56px;
    }
    .result-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
    background: var(--glass-brd);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-3);
}

/* =================== دکمه‌های نمایش/دانلود در کارت نتیجه =================== */
.view-btn, .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
    min-width: 50px;
    border: 1px solid;
}
.view-btn {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.35);
    color: var(--cyan-1);
}
.view-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--cyan-1);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.3);
}
.download-btn {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--success);
}
.download-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}
.view-btn svg, .download-btn svg {
    width: 10px; height: 10px;
}

/* دکمه‌های history-item در بلوک بالا تعریف شدن */

/* =================== مدال نمایش فایل (viewer) =================== */
.viewer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 280;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.viewer-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.viewer-modal {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--glass-brd-hi);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-deep), 0 0 80px rgba(0, 212, 255, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.viewer-overlay.show .viewer-modal {
    transform: scale(1);
}
.viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--glass-brd);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.viewer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.vv-icon { font-size: 18px; }
.vv-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: right;
}
.viewer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.viewer-dl {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--success);
    border-radius: var(--r-sm);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.viewer-dl:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
}
.viewer-dl svg {
    width: 12px; height: 12px;
}
.viewer-close {
    width: 32px; height: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    color: var(--text-mute);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
}
.viewer-close:hover {
    background: var(--glass-strong);
    color: var(--text);
}
.viewer-body {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    min-height: 0;
}
.vv-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--r-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.vv-video {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--r-sm);
    background: #000;
}
.vv-audio-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 20px;
}
.vv-audio {
    width: 100%;
    max-width: 500px;
}
.vv-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--r-sm);
    background: white;
}
.vv-pre {
    width: 100%;
    height: 100%;
    background: var(--bg-0);
    color: var(--text);
    padding: 16px;
    border-radius: var(--r-sm);
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid var(--glass-brd);
    direction: ltr;
    text-align: left;
}
.vv-pre.error {
    color: var(--danger);
}

/* Mobile: viewer */
@media (max-width: 720px) {
    .viewer-modal {
        max-width: 100%;
        height: 90vh;
    }
    .viewer-header {
        padding: 10px 12px;
    }
    .vv-name {
        font-size: 12px;
    }
    .viewer-body {
        padding: 10px;
    }
}

/* =================== سکشن سلب مسئولیت در باکس راهنما =================== */
.help-section.disclaimer-section {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(239, 68, 68, 0.03));
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.help-section.disclaimer-section h4 {
    color: var(--amber);
}
.disclaimer-body {
    font-size: 12px !important;
    color: var(--text-dim) !important;
    line-height: 1.7;
    margin-bottom: 10px !important;
}
.disclaimer-list {
    padding-right: 20px;
    margin-bottom: 8px;
}
.disclaimer-list li {
    font-size: 11px !important;
    color: var(--text-mute) !important;
    margin-bottom: 6px !important;
    line-height: 1.7;
}
.disclaimer-list li strong {
    color: var(--amber);
}
.warning-note {
    background: rgba(245, 158, 11, 0.08) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: var(--amber) !important;
    font-weight: 600;
}

/* =================== مدال سلب مسئولیت (اولین آپلود) =================== */
.disclaimer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 320;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.disclaimer-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.disclaimer-modal {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-deep), 0 0 80px rgba(251, 191, 36, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}
.disclaimer-overlay.show .disclaimer-modal {
    transform: scale(1);
}
.disclaimer-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--glass-brd);
    background: rgba(245, 158, 11, 0.04);
}
.dmh-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}
.dmh-icon svg {
    width: 22px; height: 22px;
}
.disclaimer-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.disclaimer-modal-body {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1;
}
.dm-intro {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 12px;
    line-height: 1.6;
}
.dm-scroll {
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 14px;
}
.dm-scroll p {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
    line-height: 1.7;
}
.dm-scroll p strong { color: var(--text); }
.dm-scroll ul {
    padding-right: 18px;
}
.dm-scroll li {
    font-size: 12px;
    color: var(--text-mute);
    margin-bottom: 6px;
    line-height: 1.7;
}
.dm-scroll li strong { color: var(--amber); }

.dm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 8px 4px;
}
.dm-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.dmc-box {
    width: 20px; height: 20px;
    border-radius: 5px;
    border: 1.5px solid var(--glass-brd-hi);
    background: var(--glass);
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 1px;
}
.dm-checkbox input:checked + .dmc-box {
    background: var(--cyan-1);
    border-color: var(--cyan-1);
    box-shadow: 0 0 12px var(--cyan-glow);
}
.dm-checkbox input:checked + .dmc-box::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 5px; height: 11px;
    border: solid var(--bg-0);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.dmc-text {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.5;
}
.disclaimer-modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--glass-brd);
    background: rgba(0, 0, 0, 0.2);
}
.dm-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
    font-family: inherit;
}
.dm-btn.cancel {
    background: var(--glass);
    border-color: var(--glass-brd);
    color: var(--text-mute);
}
.dm-btn.cancel:hover {
    background: var(--glass-strong);
    color: var(--text);
}
.dm-btn.accept {
    background: linear-gradient(135deg, var(--cyan-1), var(--blue-1));
    border-color: var(--cyan-1);
    color: var(--bg-0);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}
.dm-btn.accept:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 212, 255, 0.5);
}
.dm-btn.accept:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* Mobile: disclaimer modal */
@media (max-width: 720px) {
    .disclaimer-modal {
        max-width: 100%;
        max-height: 92vh;
    }
    .disclaimer-modal-header,
    .disclaimer-modal-body,
    .disclaimer-modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }
    .dmh-icon { width: 34px; height: 34px; }
    .dmh-icon svg { width: 18px; height: 18px; }
    .disclaimer-modal-header h3 { font-size: 15px; }
}

/* ============================================================
 * بهینه‌سازی کامل موبایل + PWA + Landscape
 * ============================================================ */

/* گروه دکمه‌های هدر */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pwa-install-btn {
    position: relative;
}
.pwa-install-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--success, #10b981);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
    animation: pwa-pulse 1.8s ease-in-out infinite;
}
@keyframes pwa-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* safe-area برای موبایل‌های دارای نَچ/جزیره */
.app {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

/* viewport-fit برای drawerها و toast */
@supports (padding: env(safe-area-inset-top)) {
    .help-drawer,
    .history-drawer {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .help-drawer .drawer-header,
    .history-drawer .drawer-header {
        padding-top: max(14px, env(safe-area-inset-top));
    }
    .toast {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    .help-drawer .help-body,
    .history-drawer .drawer-body {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* استایل standalone PWA — جلوگیری از pull-to-refresh و text-selection غیرضروری */
@media all and (display-mode: standalone) {
    html, body {
        overscroll-behavior-y: contain;
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    .hi-url, .link-row a, .result-item, input, textarea, code, kbd {
        user-select: text;
        -webkit-user-select: text;
    }
}

/* prevent text size adjust */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* jلوگیری از zoom روی input focus (iOS) */
input, select, textarea {
    font-size: 16px;
}

/* selection style */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #fff;
}

/* ────────────────────────────────
 * تبلت و موبایل بزرگ (≤ 768px)
 * ──────────────────────────────── */
@media (max-width: 768px) {
    /* هدر فشرده‌تر */
    .header {
        gap: 8px;
        padding: 8px 10px;
    }
    .header-actions {
        gap: 4px;
    }
    .header-btn.icon-btn {
        width: 36px;
        height: 36px;
    }
    .header-btn.icon-btn svg {
        width: 17px;
        height: 17px;
    }
    .brand-text .brand-name { font-size: 13px; }
    .brand-text .brand-tag { font-size: 7px; letter-spacing: 1px; }
    .brand-icon {
        width: 30px;
        height: 30px;
    }
    .brand-icon svg { width: 15px; height: 15px; }

    /* اپ: padding کمتر */
    .app {
        padding: 12px 12px;
    }

    /* upload-stack: padding و gap کمتر */
    .upload-stack {
        padding: 24px 16px 22px;
        gap: 22px;
        max-width: 100%;
    }

    /* هرو */
    .hero-inline .hero-row {
        font-size: 15px;
        gap: 8px;
    }
    .hero-inline .hero-row .kbd-group kbd {
        font-size: 11px;
        padding: 2px 6px;
        height: 24px;
        min-width: 24px;
    }
    .hero-carousel {
        height: 38px;
    }

    /* dropzone-area */
    .dropzone-area {
        padding: 16px 8px 8px;
        gap: 8px;
    }
    .dropzone-rings .ring-1 { width: 100px; height: 100px; }
    .dropzone-rings .ring-2 { width: 140px; height: 140px; }
    .dropzone-rings .ring-3 { width: 180px; height: 180px; }
    .dropzone-rings .ring-4 { width: 220px; height: 220px; }
    .dropzone-rings .ring-5 { width: 260px; height: 260px; }
    .dropzone-rings .orbit-a { width: 140px; height: 140px; }
    .dropzone-rings .orbit-b { width: 180px; height: 180px; }
    .dropzone-rings .orbit-c { width: 220px; height: 220px; }

    .dropzone-icon {
        width: 46px;
        height: 46px;
    }
    .dropzone-icon svg {
        width: 22px;
        height: 22px;
    }
    .file-btn {
        font-size: 12px;
        padding: 8px 18px;
    }
    .file-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ────────────────────────────────
 * موبایل متوسط (≤ 480px)
 * ──────────────────────────────── */
@media (max-width: 480px) {
    /* اپ بدون حاشیه اضافه */
    .app {
        padding: 10px 10px;
        height: auto;
        min-height: 100vh;
    }

    /* main روی موبایل scrollable */
    .main {
        padding: 14px 0;
        align-items: flex-start;
    }

    /* upload-stack فشرده */
    .upload-stack {
        padding: 18px 12px 18px;
        gap: 18px;
        max-width: 100%;
    }

    /* هدر کوچیک‌تر */
    .header {
        gap: 4px;
        padding: 6px 8px;
    }
    .brand-text .brand-name { font-size: 12px; }
    .brand-text .brand-tag { font-size: 6.5px; letter-spacing: 0.8px; }
    .brand-icon {
        width: 26px;
        height: 26px;
    }
    .brand-icon svg { width: 14px; height: 14px; }
    .header-btn.icon-btn {
        width: 34px;
        height: 34px;
    }
    .header-btn.icon-btn svg {
        width: 16px;
        height: 16px;
    }
    .badge-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* هرو کوچیک‌تر */
    .hero-inline .hero-row {
        font-size: 13.5px;
        gap: 6px;
    }
    .hero-inline .hero-row .kbd-group kbd {
        font-size: 10px;
        padding: 1px 5px;
        height: 22px;
        min-width: 22px;
    }
    .hero-inline .hero-row .arrow {
        font-size: 0.85em;
    }
    .hero-carousel {
        height: 32px;
    }

    /* dropzone — حلقه‌های کوچک‌تر */
    .dropzone-area {
        padding: 12px 4px 4px;
        gap: 6px;
    }
    .dropzone-rings .ring-1 { width: 88px; height: 88px; }
    .dropzone-rings .ring-2 { width: 124px; height: 124px; }
    .dropzone-rings .ring-3 { width: 160px; height: 160px; }
    .dropzone-rings .ring-4 { width: 196px; height: 196px; }
    .dropzone-rings .ring-5 { width: 230px; height: 230px; }
    .dropzone-rings .orbit-a { width: 124px; height: 124px; }
    .dropzone-rings .orbit-b { width: 160px; height: 160px; }
    .dropzone-rings .orbit-c { width: 196px; height: 196px; }

    .dropzone-icon {
        width: 42px;
        height: 42px;
    }
    .dropzone-icon svg {
        width: 20px;
        height: 20px;
    }
    .file-btn {
        font-size: 11.5px;
        padding: 7px 16px;
    }
    .file-btn svg {
        width: 13px;
        height: 13px;
    }

    /* service-selector روی موبایل متوسط: همچنان دو ستونه */
    .service-selector {
        gap: 8px;
    }
    .chip-content {
        padding: 10px 10px;
        gap: 8px;
    }
    .chip-icon {
        width: 26px;
        height: 26px;
    }
    .chip-icon svg {
        width: 14px;
        height: 14px;
    }
    .chip-name {
        font-size: 11px;
    }

    /* overlay آپلود: عرض کامل و گوشه گرد */
    .upload-overlay {
        padding: 10px;
        align-items: center;
    }
    .overlay-card {
        max-width: 100%;
        padding: 12px;
    }
    .overlay-icon .spinner {
        width: 40px;
        height: 40px;
    }
    .overlay-name {
        font-size: 13px;
    }
    .overlay-status {
        font-size: 12px;
    }

    /* کارت نتیجه: بهینه برای لمس */
    .result-item {
        padding: 10px 10px 8px;
    }
    .result-item .hi-head {
        gap: 6px;
        margin-bottom: 4px;
    }
    .result-item .hi-ext {
        min-width: 28px;
        padding: 2px 5px;
        font-size: 9.5px;
    }
    .result-item .hi-name {
        font-size: 12.5px;
    }
    .result-item .hi-url {
        font-size: 10px;
        padding: 5px 7px;
        margin-bottom: 6px;
    }
    .result-item .hi-meta {
        margin-bottom: 6px;
    }
    .result-item .hi-meta .hi-time {
        font-size: 9.5px;
    }
    .result-item .hi-meta .hi-service {
        font-size: 9px;
    }
    .result-item .hi-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    .result-item .h-action {
        padding: 10px 4px;
        font-size: 11px;
        gap: 4px;
    }
    .result-item .h-action svg {
        width: 13px;
        height: 13px;
    }

    /* history-item بهینه */
    .history-item {
        padding: 10px 10px 8px;
    }
    .hi-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    .h-action {
        padding: 9px 4px;
        font-size: 10.5px;
        gap: 3px;
    }
    .h-action svg {
        width: 12px;
        height: 12px;
    }

    /* history drawer عرض کامل — باید از سمت چپ خارج از صفحه بشه */
    .history-drawer {
        width: 100%;
        max-width: 100%;
        left: -100%;
    }
    .history-drawer.open {
        left: 0;
    }
    .drawer-body {
        padding: 12px 12px;
    }
    .drawer-header {
        padding: 12px 14px 10px;
    }
    .drawer-header h3 {
        font-size: 14px;
    }
    .drawer-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    .drawer-footer {
        padding: 10px 12px;
    }
    .clear-btn {
        width: 100%;
        font-size: 11px;
        padding: 8px 12px;
    }

    /* help drawer عرض کامل */
    .help-drawer {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    .help-overlay.show .help-drawer {
        right: 0;
    }
    .help-body {
        padding: 14px 12px;
    }
    .help-section {
        padding: 10px 12px;
    }
    .help-section h4 {
        font-size: 12.5px;
    }
    .help-section p,
    .help-section li {
        font-size: 11.5px;
        line-height: 1.7;
    }
    .help-section code,
    .help-section kbd {
        font-size: 10px;
    }

    /* disclaimer-box در help */
    .help-disclaimer-box {
        padding: 8px 10px;
        gap: 8px;
    }
    .help-disclaimer-box .hp-icon svg {
        width: 16px;
        height: 16px;
    }
    .help-disclaimer-box .hp-text {
        font-size: 10.5px;
        gap: 1px;
    }
    .help-disclaimer-box .hp-sub {
        font-size: 9.5px;
    }

    /* disclaimer modal: bottom-sheet style */
    .disclaimer-overlay {
        align-items: flex-end;
    }
    .disclaimer-modal {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }

    /* viewer modal: bottom-sheet */
    .viewer-overlay {
        align-items: flex-end;
    }
    .viewer-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }
    .viewer-body {
        max-height: calc(95vh - 60px);
    }

    /* toast */
    .toast {
        bottom: 16px;
        left: 10px;
        right: 10px;
        transform: translateY(20px);
        max-width: none;
        font-size: 12px;
        padding: 10px 14px;
    }
    .toast.show {
        transform: translateY(0);
    }
}

/* ────────────────────────────────
 * موبایل خیلی کوچک (≤ 360px)
 * ──────────────────────────────── */
@media (max-width: 360px) {
    /* brand text مخفی می‌شه، فقط آیکون می‌مونه */
    .brand-text {
        display: none;
    }
    /* service chips به صورت عمودی */
    .service-selector {
        grid-template-columns: 1fr;
    }
    /* هرو کوچیک‌تر */
    .hero-inline .hero-row {
        font-size: 12px;
        gap: 4px;
    }
    .hero-inline .hero-row .kbd-group kbd {
        font-size: 9px;
        padding: 1px 4px;
        height: 20px;
        min-width: 20px;
    }
}

/* ────────────────────────────────
 * حالت Landscape موبایل
 * ──────────────────────────────── */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    /* اپ scrollable، نه fit-to-screen */
    .app {
        height: auto;
        min-height: 100vh;
        padding: 10px 16px;
    }
    .main {
        flex: none;
        padding: 10px 0;
    }
    /* هرو مخفی می‌شه چون فضا کمه */
    .hero-inline {
        display: none;
    }
    /* upload-stack افقی */
    .upload-stack {
        padding: 14px 16px;
        gap: 14px;
        max-width: 720px;
    }
    /* dropzone-rings کوچک‌تر */
    .dropzone-rings .ring-1 { width: 80px; height: 80px; }
    .dropzone-rings .ring-2 { width: 110px; height: 110px; }
    .dropzone-rings .ring-3 { width: 140px; height: 140px; }
    .dropzone-rings .ring-4 { width: 170px; height: 170px; }
    .dropzone-rings .ring-5 { width: 200px; height: 200px; }
    .dropzone-rings .orbit-a { width: 110px; height: 110px; }
    .dropzone-rings .orbit-b { width: 140px; height: 140px; }
    .dropzone-rings .orbit-c { width: 170px; height: 170px; }

    .dropzone-icon {
        width: 38px;
        height: 38px;
    }
    .dropzone-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ────────────────────────────────
 * لمسی: hover effects غیرفعال + touch target بزرگ‌تر
 * ──────────────────────────────── */
@media (pointer: coarse) {
    .header-btn.icon-btn,
    .h-action,
    .copy-btn,
    .file-btn,
    .dm-btn,
    .viewer-dl,
    .viewer-close,
    .drawer-close,
    .clear-btn {
        min-height: 40px;
    }
    .header-btn.icon-btn {
        min-width: 40px;
    }
    /* hover effects روی لمسی غیرفعال */
    .history-item:hover,
    .h-action:hover,
    .service-chip:hover,
    .upload-stack:hover::before {
        transform: none;
        box-shadow: none;
    }
    .upload-stack:hover::before {
        opacity: 0.6;
    }
}
