.cij-admin-wrap {
    max-width: 1180px;
}

.cij-app,
.cij-app * {
    box-sizing: border-box;
}

.cij-app {
    --cij-primary: #5b38f4;
    --cij-primary-dark: #4122ce;
    --cij-success: #0a9b68;
    --cij-text: #172033;
    --cij-muted: #687083;
    --cij-border: #e5e8f0;
    --cij-bg: #f6f7fb;
    width: 100%;
    max-width: 1120px;
    margin: 18px 0;
    color: var(--cij-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.cij-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 210px;
    padding: 36px 42px;
    border-radius: 24px 24px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,.22), transparent 25%),
        linear-gradient(135deg, #4924dc 0%, #7547ff 52%, #b331ff 100%);
    box-shadow: 0 18px 45px rgba(60, 35, 150, .18);
}

.cij-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    border: 48px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.cij-hero > * {
    position: relative;
    z-index: 1;
}

.cij-badge {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.cij-hero h2 {
    max-width: 700px;
    margin: 15px 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 45px);
    line-height: 1.06;
}

.cij-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 16px;
    line-height: 1.6;
}

.cij-hero-icon {
    display: grid;
    place-items: center;
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 32px;
    background: rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
    transform: rotate(5deg);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.05em;
    backdrop-filter: blur(10px);
}

.cij-panel {
    padding: 34px;
    border: 1px solid var(--cij-border);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(28, 36, 58, .08);
}

.cij-dropzone {
    display: flex;
    min-height: 235px;
    padding: 34px 24px;
    border: 2px dashed #b9b5ff;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(180deg, #fbfaff, #f6f4ff);
    transition: .2s ease;
}

.cij-dropzone:hover,
.cij-dropzone.is-dragging {
    border-color: var(--cij-primary);
    background: #f1edff;
    transform: translateY(-2px);
}

.cij-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.cij-upload-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #5730ea, #9f35ff);
    box-shadow: 0 12px 28px rgba(88, 48, 234, .25);
    font-size: 38px;
    font-weight: 300;
}

.cij-dropzone strong {
    margin-bottom: 7px;
    font-size: 20px;
}

.cij-dropzone small {
    color: var(--cij-muted);
    font-size: 13px;
}

.cij-options {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(260px, .75fr);
    gap: 24px;
    align-items: center;
    margin: 25px 0 20px;
    padding: 20px;
    border-radius: 16px;
    background: var(--cij-bg);
}

.cij-label-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px;
    font-weight: 700;
}

.cij-label-row output {
    color: var(--cij-primary);
}

.cij-quality-wrap input[type="range"] {
    width: 100%;
    accent-color: var(--cij-primary);
}

.cij-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cij-muted);
    font-size: 13px;
    cursor: pointer;
}

.cij-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--cij-primary);
}

.cij-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0 2px;
}

.cij-counter {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: var(--cij-muted);
}

.cij-counter strong {
    color: var(--cij-primary);
    font-size: 25px;
}

.cij-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cij-btn,
.cij-mini-btn {
    appearance: none;
    border: 0;
    text-decoration: none !important;
    cursor: pointer;
    transition: .18s ease;
}

.cij-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 800;
}

.cij-btn:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(.97);
}

.cij-btn:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.cij-btn-light {
    color: #34394b;
    background: #eceef4;
}

.cij-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--cij-primary), #8f35f2);
    box-shadow: 0 8px 18px rgba(91, 56, 244, .2);
}

.cij-btn-success {
    color: #fff;
    background: var(--cij-success);
    box-shadow: 0 8px 18px rgba(10, 155, 104, .18);
}

.cij-progress-wrap {
    margin-top: 24px;
}

.cij-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
    color: var(--cij-muted);
    font-size: 13px;
}

.cij-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eceef4;
}

.cij-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cij-primary), #b43cff);
    transition: width .2s ease;
}

.cij-message {
    margin-top: 20px;
    padding: 13px 15px;
    border-radius: 12px;
    font-weight: 700;
}

.cij-message-success {
    color: #076846;
    background: #e7f8f1;
}

.cij-message-error {
    color: #a32727;
    background: #fff0f0;
}

.cij-message-warning {
    color: #85580b;
    background: #fff7dd;
}

.cij-files {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.cij-file {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 82px;
    padding: 10px 12px;
    border: 1px solid var(--cij-border);
    border-radius: 14px;
    background: #fff;
}

.cij-file-thumb {
    width: 64px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0f1f5;
}

.cij-file-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cij-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cij-file-meta,
.cij-file-status {
    color: var(--cij-muted);
    font-size: 12px;
}

.cij-status-done .cij-file-status {
    color: var(--cij-success);
    font-weight: 800;
}

.cij-status-error .cij-file-status {
    color: #b32e2e;
    font-weight: 700;
}

.cij-file-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cij-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.cij-mini-download {
    color: #fff !important;
    background: var(--cij-success);
}

.cij-mini-remove {
    color: #4f5566;
    background: #eef0f5;
}

.cij-mini-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.cij-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.cij-info-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 17px 18px;
    border: 1px solid var(--cij-border);
    border-radius: 15px;
    background: #fff;
}

.cij-info-card strong {
    font-size: 14px;
}

.cij-info-card span {
    color: var(--cij-muted);
    font-size: 12px;
    line-height: 1.5;
}

.cij-shortcode-tip {
    margin-top: 16px;
}

@media (max-width: 800px) {
    .cij-hero {
        min-height: 0;
        padding: 28px 24px;
    }

    .cij-hero-icon {
        display: none;
    }

    .cij-panel {
        padding: 22px 16px;
    }

    .cij-options,
    .cij-info-grid {
        grid-template-columns: 1fr;
    }

    .cij-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .cij-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cij-file {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .cij-file-thumb {
        width: 52px;
        height: 52px;
    }

    .cij-file-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
