/*!
 * Inkor style for Kleeja — مركز أنكور لرفع الملفات
 * v1.0
 */

/* ========== tokens ========== */
:root {
    color-scheme: light;
    --bg: #f3fbfc;
    --bg2: #eaf8f2;
    --surface: rgba(255, 255, 255, .78);
    --solid: #fff;
    --text: #173e4c;
    --muted: #5f7a84;
    --line: rgba(51, 128, 137, .16);
    --blue: #238fc9;
    --green: #2dbb92;
    --aqua: #5ed5cd;
    --danger: #d9534f;
    --danger-bg: rgba(217, 83, 79, .09);
    --info-bg: rgba(35, 143, 201, .08);
    --ok-bg: rgba(45, 187, 146, .1);
    --shadow: 0 24px 70px rgba(33, 111, 130, .1);
    --shadow-sm: 0 6px 18px rgba(33, 111, 130, .08);
    --glow: rgba(45, 187, 146, .17);
    --grad: linear-gradient(110deg, var(--blue), var(--green));
    --radius: 24px;
    --font: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', Arial, sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c1c29;
    --bg2: #0e2830;
    --surface: rgba(22, 45, 56, .84);
    --solid: #142e3b;
    --text: #e7f6fa;
    --muted: #9ab5c1;
    --line: rgba(152, 212, 220, .15);
    --blue: #56baf4;
    --green: #63dcb6;
    --aqua: #69e3da;
    --danger: #ff8a85;
    --danger-bg: rgba(255, 120, 115, .12);
    --info-bg: rgba(86, 186, 244, .1);
    --ok-bg: rgba(99, 220, 182, .1);
    --shadow: 0 25px 70px rgba(0, 0, 0, .25);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .2);
    --glow: rgba(45, 187, 146, .1);
}

/* ========== base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: linear-gradient(150deg, var(--bg), var(--bg2)) fixed;
    transition: background-color .25s, color .25s;
}
html[lang="en"] body, html[dir="ltr"] body { letter-spacing: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.ik-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 83% 3%, rgba(94, 213, 205, .16), transparent 32%),
        radial-gradient(circle at 8% 28%, rgba(35, 143, 201, .1), transparent 29%);
}

.ik-skip {
    position: absolute;
    inset-inline-start: 12px;
    top: -60px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--solid);
    box-shadow: var(--shadow-sm);
}
.ik-skip:focus { top: 12px; }

.ik-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.ik-main { flex: 1; padding-bottom: 20px; }

/* ========== header ========== */
.ik-topbar {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.ik-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    min-width: 0;
}
.ik-brand:hover { color: var(--text); }
.ik-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--blue), var(--green));
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 9px 22px var(--glow);
}
.ik-logo svg { width: 28px; }
.ik-brand-text { min-width: 0; }
.ik-brand-text strong {
    display: block;
    font-size: 21px;
    line-height: 1.4;
    letter-spacing: -.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ik-brand-text small { display: block; font-size: 11px; color: var(--muted); }

.ik-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.ik-nav a {
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
    transition: color .2s, background-color .2s;
}
.ik-nav a:hover { color: var(--blue); background: var(--info-bg); }
.ik-nav a.is-active { color: var(--blue); }

.ik-actions { display: flex; align-items: center; gap: 8px; }
.ik-user { display: flex; align-items: center; gap: 6px; }
.ik-user-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    padding: 9px 14px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--solid);
    white-space: nowrap;
}
.ik-user-link:hover { border-color: var(--blue); color: var(--blue); }
.ik-user-register { background: var(--grad); color: #fff; border-color: transparent; }
.ik-user-register:hover { color: #fff; filter: brightness(1.05); }

.ik-round {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    padding: 0;
    transition: border-color .2s, color .2s;
}
.ik-round:hover { border-color: var(--blue); color: var(--blue); }
.ik-round svg { width: 20px; height: 20px; }
.ik-ico-sun { display: none; }
:root[data-theme="dark"] .ik-ico-sun { display: block; }
:root[data-theme="dark"] .ik-ico-moon { display: none; }
.ik-menu-btn { display: none; }

.ik-drawer {
    display: grid;
    gap: 2px;
    padding: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--solid);
    box-shadow: var(--shadow);
}
.ik-drawer a { color: var(--text); padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.ik-drawer a:hover, .ik-drawer a.is-active { background: var(--info-bg); color: var(--blue); }
.ik-drawer-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.ik-drawer-user { padding: 4px 12px; font-size: 12px; color: var(--muted); }

/* ========== buttons & inputs ========== */
.ik-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, filter .2s, background-color .2s;
    -webkit-appearance: none;
    appearance: none;
}
.ik-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.ik-btn:active { transform: translateY(1px); }
.ik-btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 9px 25px rgba(38, 163, 164, .24);
}
.ik-btn-primary:hover { color: #fff; filter: brightness(1.06); box-shadow: 0 12px 30px rgba(38, 163, 164, .32); }
.ik-btn-primary:disabled { filter: grayscale(.4); opacity: .7; cursor: not-allowed; }
.ik-btn-soft { background: var(--solid); color: var(--blue); border-color: var(--line); }
.ik-btn-soft:hover { border-color: var(--blue); color: var(--blue); }
.ik-btn-danger { background: var(--danger); color: #fff; }
.ik-btn-danger:hover { color: #fff; filter: brightness(1.05); }
.ik-btn-danger-soft { background: var(--danger-bg); color: var(--danger); }
.ik-btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.ik-btn-block { display: flex; width: 100%; }
.ik-btn-sub { font-size: 12px; font-weight: 500; opacity: .85; padding-inline-start: 8px; border-inline-start: 1px solid rgba(255, 255, 255, .4); }

.ik-link-btn { border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 600; padding: 4px; }
.ik-link-btn:hover { color: var(--danger); }

.ik-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--solid);
    color: var(--text);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.ik-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--glow); }
.ik-input[readonly] { background: transparent; }
textarea.ik-input { resize: vertical; min-height: 90px; }
select.ik-input { cursor: pointer; }

.ik-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

/* ========== panel ========== */
.ik-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 24px;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.ik-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 4px 6px 18px;
}
.ik-panel-head h2 { margin: 0 0 2px; font-size: 18px; }
.ik-panel-head p { margin: 0; font-size: 13px; color: var(--muted); }
.ik-secure { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ik-secure svg { width: 15px; height: 15px; }
.ik-panel-foot { padding: 16px 6px 0; font-size: 12px; text-align: center; }
.ik-panel-foot a { color: var(--muted); }
.ik-panel-foot a:hover { color: var(--blue); }

/* ========== hero ========== */
.ik-hero { text-align: center; padding: 34px 0 6px; }
.ik-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border: 1px solid var(--line);
    border-radius: 80px;
    background: var(--surface);
    font-size: 12px;
    color: var(--muted);
}
.ik-star { color: var(--green); }
.ik-hero h1 {
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.35;
    letter-spacing: -1.5px;
    margin: 16px 0 10px;
    font-weight: 700;
}
.ik-gradient {
    background: linear-gradient(95deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.ik-subtitle { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.95; }

/* ========== ad spaces ========== */
.ik-ad {
    margin: 22px auto;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}
.ik-ad > * { margin-inline: auto; }
.ik-ad img { height: auto; border-radius: 12px; }
.ik-ad iframe { max-width: 100%; }
.ik-extras { margin: 18px 0; }

/* ========== upload ========== */
.ik-upload { position: relative; margin-top: 22px; }
.ik-home .ik-upload::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 20px 12% auto;
    height: 320px;
    background: var(--glow);
    filter: blur(100px);
}

.ik-dropzone {
    position: relative;
    border: 2px dashed rgba(63, 171, 175, .38);
    border-radius: 22px;
    background: linear-gradient(125deg, rgba(98, 217, 205, .07), rgba(56, 157, 212, .045));
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 16px;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, transform .2s;
}
.ik-dropzone:hover, .ik-dropzone.is-drag { border-color: var(--green); background-color: var(--glow); }
.ik-dropzone.is-drag { transform: scale(1.01); }
.ik-dropzone h3 { font-size: 19px; margin: 6px 0 2px; }
.ik-dropzone p { margin: 0; color: var(--muted); font-size: 13px; }
.ik-browse { margin-top: 18px; pointer-events: none; }
.ik-picker { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.ik-upload-symbol { position: relative; width: 102px; height: 84px; margin-bottom: 4px; }
.ik-upload-symbol::before {
    content: "";
    position: absolute;
    width: 76px;
    height: 54px;
    left: 14px;
    top: 21px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(35, 143, 201, .25), rgba(45, 187, 146, .31));
    transform: rotate(-11deg);
}
.ik-upload-symbol::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 29px;
    width: 57px;
    height: 44px;
    border-radius: 12px;
    background: var(--solid);
    box-shadow: 0 8px 21px rgba(14, 76, 96, .13);
}
.ik-upload-symbol svg { position: absolute; z-index: 2; top: 37px; left: 39px; width: 29px; color: var(--green); }
.ik-dropzone:hover .ik-upload-symbol svg { animation: ik-bounce 1s ease infinite; }

.ik-chips { margin-top: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.ik-chip {
    display: inline-block;
    font-size: 11px;
    line-height: 1.6;
    background: var(--solid);
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: 4px 11px;
    color: var(--muted);
}

/* no-js classic inputs */
.ik-fallback { display: grid; gap: 8px; margin-top: 14px; }
.js .ik-fallback { display: none; }
.js .ik-classic .ik-fallback { display: grid; }
.js .ik-classic .ik-dropzone { display: none; }
.no-js .ik-dropzone { display: none; }
.ik-input-file { padding: 9px; }

/* queue */
.ik-queue { margin-top: 16px; }
.ik-queue-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 8px; }
.ik-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ik-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--solid);
    border: 1px solid var(--line);
    border-radius: 14px;
    animation: ik-in .25s ease;
}
.ik-file-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--ok-bg);
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.ik-file-icon img { width: 100%; height: 100%; object-fit: cover; }
.ik-file-info { flex: 1; min-width: 0; }
.ik-file-info strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ik-file-info small { font-size: 11px; color: var(--muted); }
.ik-remove {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
}
.ik-remove:hover { background: var(--danger-bg); color: var(--danger); }

.ik-submit-row { margin-top: 16px; }
.ik-terms { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.ik-loadbox { margin-top: 14px; padding: 12px; text-align: center; border-radius: 12px; background: var(--info-bg); }

/* progress */
.ik-progress { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--solid); border: 1px solid var(--line); }
.ik-progress-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 9px; }
.ik-progress-top strong { color: var(--green); }
.ik-progress-track { height: 10px; border-radius: 10px; background: var(--ok-bg); overflow: hidden; }
.ik-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--grad);
    background-size: 200% 100%;
    transition: width .25s ease;
    animation: ik-shine 1.4s linear infinite;
}

/* captcha */
.ik-captcha { margin-top: 16px; }
.ik-captcha label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ik-captcha-row { display: flex; align-items: center; gap: 10px; }
.ik-captcha-row img { border-radius: 10px; cursor: pointer; flex-shrink: 0; background: #fff; }
.ik-captcha-row .ik-input { max-width: 220px; }

/* ========== results ========== */
.ik-results { margin-top: 4px; scroll-margin-top: 20px; }
.ik-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ik-results-head strong { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.ik-ok { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--green); color: #fff; font-size: 14px; }
#ikResultsList { display: grid; gap: 12px; }
.ik-messages { display: grid; gap: 12px; margin: 22px 0 0; }

.ik-result {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--solid);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 10px;
    animation: ik-in .3s ease;
}
.ik-result .up-box-title {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}
.ik-result .up-box-title::before {
    content: "\2713";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--ok-bg);
    color: var(--green);
    font-size: 12px;
}
.ik-thumb { text-align: center; }
.ik-thumb img { max-height: 180px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }

.ik-field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.ik-copy {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    overflow: hidden;
    transition: border-color .2s;
}
.ik-copy:focus-within { border-color: var(--green); }
.ik-copy input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 9px 12px;
    font-size: 13px;
    font-family: Consolas, 'Courier New', monospace;
    color: var(--text);
    outline: none;
}
.ik-field-main .ik-copy { background: var(--ok-bg); }
.ik-field-main .ik-copy input { font-weight: 600; color: var(--blue); }
.ik-field-del .ik-copy input { color: var(--danger); }
.ik-copy-btn, .ik-open-btn {
    flex-shrink: 0;
    width: 42px;
    border: 0;
    border-inline-start: 1px solid var(--line);
    background: var(--solid);
    color: var(--muted);
    display: grid;
    place-items: center;
    padding: 0;
    transition: color .2s, background-color .2s;
}
.ik-copy-btn svg, .ik-open-btn svg { width: 17px; height: 17px; }
.ik-copy-btn:hover, .ik-open-btn:hover { color: var(--blue); }
.ik-copy-btn.is-copied { background: var(--green); color: #fff; }

/* ========== alerts ========== */
.ik-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid transparent;
}
.ik-alert ul { margin: 0; padding-inline-start: 18px; }
.ik-alert-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(217, 83, 79, .2); margin-top: 14px; }
.ik-alert-info { background: var(--info-bg); color: var(--text); border-color: var(--line); }
.ik-messages .ik-alert-error { margin-top: 0; }
.ik-alert-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: var(--blue);
    color: #fff;
}
.ik-alert-error .ik-alert-icon { background: var(--danger); }
.ik-alert-actions { margin-top: 10px; }
.ik-message { max-width: 720px; margin: 40px auto; }
.ik-message .ik-alert { padding: 22px; font-size: 15px; box-shadow: var(--shadow-sm); background-color: var(--solid); }

/* ========== features ========== */
.ik-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 10px; }
.ik-feature {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}
.ik-feature-icon {
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--info-bg);
    font-size: 18px;
}
.ik-feature:nth-child(2) .ik-feature-icon { color: var(--green); background: var(--ok-bg); }
.ik-feature h3 { margin: 0 0 4px; font-size: 14px; }
.ik-feature p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }

.ik-online {
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.ik-online-names { display: flex; flex-wrap: wrap; gap: 6px; }

/* ========== download page ========== */
.ik-dl { max-width: 860px; margin: 0 auto; padding-top: 18px; }
.ik-dl-card { padding: 26px; }
.ik-dl-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ik-dl-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(35, 143, 201, .14), rgba(45, 187, 146, .18));
}
.ik-dl-title { min-width: 0; }
.ik-dl-title h1 { margin: 0 0 6px; font-size: 21px; line-height: 1.5; word-break: break-word; }
.ik-dl-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.ik-dl-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; padding-top: 22px; align-items: center; }

.ik-dl-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 22px 18px;
    border-radius: 22px;
    background: linear-gradient(125deg, rgba(98, 217, 205, .08), rgba(56, 157, 212, .05));
    border: 1px solid var(--line);
}
.ik-count { position: relative; width: 150px; height: 150px; }
.ik-count-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ik-stop-a { stop-color: var(--blue); }
.ik-stop-b { stop-color: var(--green); }
.ik-count-track { fill: none; stroke: var(--ok-bg); stroke-width: 9; }
.ik-count-bar {
    fill: none;
    stroke: url(#ikRingGrad);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset .2s linear;
}
.ik-count-num, .ik-count-done {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .3s, transform .3s;
}
.ik-count-num strong { font-size: 48px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.ik-count-num small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ik-count-done { opacity: 0; transform: scale(.6); color: var(--green); }
.ik-count-done svg { width: 54px; height: 54px; }
.ik-dl-box.is-ready .ik-count-num { opacity: 0; transform: scale(1.3); }
.ik-dl-box.is-ready .ik-count-done { opacity: 1; transform: scale(1); }
.ik-dl-box.is-ready .ik-count-done svg { animation: ik-bounce 1.2s ease infinite; }
.ik-dl-status strong { display: block; font-size: 16px; }
.ik-dl-status span { display: block; font-size: 12px; color: var(--muted); }
.ik-dl-btn { animation: ik-pop .35s ease; }

.ik-dl-meta { list-style: none; margin: 0; padding: 0; }
.ik-dl-meta li, .ik-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 4px;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}
.ik-dl-meta li:last-child, .ik-list li:last-child { border-bottom: 0; }
.ik-dl-meta span, .ik-list span { color: var(--muted); }
.ik-dl-meta b, .ik-list b { font-weight: 600; text-align: end; word-break: break-word; }

.ik-dl-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; }
.ik-dl-foot a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.ik-dl-foot a:hover { color: var(--danger); }
.ik-dl-foot svg { width: 14px; height: 14px; }

/* ========== inner pages ========== */
.ik-page { max-width: 820px; margin: 26px auto 0; padding: 30px; }
.ik-page-narrow { max-width: 520px; }
.ik-page-wide { margin-top: 26px; }
.ik-page-head { margin-bottom: 20px; }
.ik-page-head h1 { margin: 0 0 4px; font-size: 24px; line-height: 1.5; }
.ik-page-head p { margin: 0; color: var(--muted); font-size: 14px; }
.ik-prose { line-height: 2; font-size: 15px; word-wrap: break-word; }
.ik-list { list-style: none; margin: 0; padding: 0; }

.ik-form { display: grid; gap: 16px; }
.ik-form .ik-alert-error { margin-top: 0; }
.ik-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ik-form .ik-captcha { margin-top: 0; }
.ik-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.ik-form-actions a { font-size: 13px; }
.ik-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.ik-check input { width: 18px; height: 18px; accent-color: var(--green); }
.ik-check small { color: var(--muted); }

.ik-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); overflow-x: auto; }
.ik-tab { flex: 1; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ik-tab.is-active { background: var(--solid); color: var(--blue); box-shadow: var(--shadow-sm); }
.js .ik-tab-pane { display: none; }
.js .ik-tab-pane.is-active { display: grid; gap: 16px; }
.no-js .ik-tabs { display: none; }
.no-js .ik-tab-pane { display: grid; gap: 16px; }

/* guide */
.ik-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ik-guide-group { padding: 18px; border-radius: 22px; }
.ik-guide-group h2 { margin: 0 0 8px; font-size: 16px; }
.ik-guide-group ul { list-style: none; margin: 0; padding: 0; }
.ik-guide-group li { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ik-guide-group li:last-child { border-bottom: 0; }
.ik-guide-group li span { color: var(--blue); font-weight: 600; }
.ik-guide-group li b { font-weight: 500; color: var(--muted); }

/* user files */
.ik-files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ik-file-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.ik-file-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ik-file-thumb { display: grid; place-items: center; height: 130px; background: var(--bg); }
.ik-file-thumb img { max-width: 56px; max-height: 56px; }
.ik-file-card.is-image .ik-file-thumb img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.ik-file-body { padding: 10px 12px 12px; display: grid; gap: 2px; }
.ik-file-name { color: var(--text); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ik-file-body small { font-size: 11px; color: var(--muted); }
.ik-file-check { position: absolute; top: 8px; inset-inline-end: 8px; padding: 4px; border-radius: 8px; background: var(--solid); line-height: 0; box-shadow: var(--shadow-sm); }
.ik-file-check input { width: 18px; height: 18px; accent-color: var(--danger); margin: 0; }
.ik-files-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.ik-share-folder { margin-top: 10px; padding: 18px; border-radius: 20px; }

/* pagination (kleeja markup) */
.ik-pager { margin-top: 18px; }
.ik-pager .pagination { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; }
.ik-pager .page-link {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--solid);
    color: var(--text);
    font-size: 13px;
}
.ik-pager .page-link.current { background: var(--grad); color: #fff; border-color: transparent; }

/* ========== footer ========== */
.ik-footer {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    padding: 24px 0 30px;
    font-size: 13px;
    color: var(--muted);
}
.ik-footer a { color: var(--muted); }
.ik-footer a:hover { color: var(--blue); }
.ik-footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.ik-footer-copy { display: grid; gap: 2px; }
.ik-footer-copy a { color: var(--text); font-weight: 600; }
.ik-footer-note { font-size: 12px; }
.ik-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ik-footer-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 11px; }
.ik-admin-link a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    border: 1px solid var(--line);
    color: var(--blue);
    font-weight: 600;
}
.ik-stats { opacity: .8; }

/* debug kleeja */
.debug_kleeja { width: 80%; margin: 20px auto; background: var(--solid); border: 1px solid var(--line); }

/* ========== animations ========== */
@keyframes ik-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ik-pop { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes ik-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ik-shine { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* ========== responsive ========== */
@media (max-width: 920px) {
    .ik-nav, .ik-user { display: none; }
    .ik-menu-btn { display: grid; }
}

@media (max-width: 760px) {
    .ik-features { grid-template-columns: 1fr; }
    .ik-dl-grid { grid-template-columns: 1fr; }
    .ik-dl-meta { order: 2; }
}

@media (max-width: 540px) {
    body { font-size: 14px; }
    .ik-shell { padding: 0 14px; }
    .ik-topbar { height: 72px; }
    .ik-logo { width: 42px; height: 42px; border-radius: 14px; }
    .ik-logo svg { width: 24px; }
    .ik-brand-text strong { font-size: 18px; }
    .ik-brand-text small { font-size: 10px; }
    .ik-hero { padding-top: 18px; }
    .ik-hero h1 { letter-spacing: -.8px; }
    .ik-subtitle { font-size: 13px; }
    .ik-panel { padding: 14px; border-radius: 22px; }
    .ik-panel-head { padding: 8px 4px 14px; }
    .ik-panel-head h2 { font-size: 16px; }
    .ik-panel-head p { font-size: 12px; }
    .ik-dropzone { min-height: 230px; padding: 20px 10px; }
    .ik-dropzone h3 { font-size: 16px; }
    .ik-page { padding: 20px 16px; }
    .ik-dl-card { padding: 16px; }
    .ik-dl-head { gap: 12px; }
    .ik-dl-icon { width: 52px; height: 52px; border-radius: 16px; }
    .ik-dl-title h1 { font-size: 17px; }
    .ik-count { width: 128px; height: 128px; }
    .ik-count-num strong { font-size: 40px; }
    .ik-files-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ik-file-thumb { height: 100px; }
    .ik-captcha-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
