:root {
    --wdx-blue:  rgb(2, 2, 209);
    --wdx-lime:  #cbfd56;
    --wdx-light: #f4f5f6;
    --wdx-dark:  #010164;
    --font-logo: 'Stagtic', sans-serif;
    --font-body: 'Qurova', sans-serif;
}

::-webkit-scrollbar { width: 20px; height: 20px; }
::-webkit-scrollbar-track { background: var(--wdx-light); }
::-webkit-scrollbar-thumb { background: var(--wdx-blue); border-radius: 999px; border: 6px solid var(--wdx-light); }
::-webkit-scrollbar-thumb:hover { background: #0101a0; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

* { cursor: default; }
a, button, [role="button"], label[for], select,
input[type="checkbox"], input[type="radio"],
input[type="submit"], input[type="button"],
input[type="range"], input[type="file"],
.btn, .cs-opt, .cs-trigger, .tag, .tab,
.pg, .drop-item, .tag-opt { cursor: pointer; }
input[type="text"], input[type="email"],
input[type="password"], input[type="tel"],
input[type="search"], input[type="url"],
input[type="number"], textarea { cursor: text; resize: none; }

.wdx-name, .site-name, .brand { font-family: var(--font-logo); }

body { background: var(--wdx-light); color: #111; min-height: 100vh; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; }
::selection { background: var(--wdx-lime); color: #111; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    border-radius: 9px; padding: 11px 22px; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
    text-decoration: none; border: none; white-space: nowrap;
    letter-spacing: 0.2px; line-height: 1; outline: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--wdx-blue); color: var(--wdx-lime); }
.btn-primary:hover { background: #0101a0; box-shadow: 0 8px 28px rgba(2,2,209,0.28); }
.btn-lime { background: var(--wdx-lime); color: #111; }
.btn-lime:hover { background: #b8f030; box-shadow: 0 8px 28px rgba(203,253,86,0.35); }
.btn-outline { background: transparent; color: var(--wdx-blue); border: 2px solid var(--wdx-blue); }
.btn-outline:hover { background: var(--wdx-blue); color: var(--wdx-lime); }
.btn-ghost { background: transparent; color: #555; border: 1.5px solid #ddd; }
.btn-ghost:hover { border-color: var(--wdx-blue); color: var(--wdx-blue); background: rgba(2,2,209,0.04); }
.btn-danger { background: #c53030; color: #fff; }
.btn-danger:hover { background: #9b2c2c; box-shadow: 0 8px 24px rgba(197,48,48,0.28); }
.btn-sm { padding: 7px 15px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: 11px; }
.btn-pill { border-radius: 999px; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn.disabled, .btn:disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }
.btn img { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm img { width: 14px; height: 14px; }
.btn-lg img { width: 18px; height: 18px; }
.btn-primary img { filter: brightness(0) saturate(100%) invert(97%) sepia(4%) saturate(200%) hue-rotate(180deg); }
.btn-lime    img { filter: brightness(0) saturate(100%) invert(13%) sepia(97%) saturate(5000%) hue-rotate(228deg) brightness(95%); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
.badge-blue    { background: var(--wdx-blue); color: var(--wdx-lime); }
.badge-lime    { background: var(--wdx-lime); color: #111; }
.badge-active  { background: rgba(2,2,209,0.09); color: var(--wdx-blue); border: 1.5px solid rgba(2,2,209,0.22); }
.badge-draft   { background: #efefef; color: #777; border: 1.5px solid #e0e0e0; }
.badge-danger  { background: rgba(197,48,48,0.09); color: #c53030; border: 1.5px solid rgba(197,48,48,0.22); }
.badge-success { background: rgba(203,253,86,0.28); color: #3d4d00; border: 1.5px solid rgba(150,200,0,0.4); }
.b-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

.notice {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 18px; border-radius: 11px;
    font-size: 14px; font-weight: 500; margin-bottom: 20px;
    word-break: break-word; overflow-wrap: anywhere;
}
.notice img { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.notice-ok      { background: rgba(203,253,86,0.28); color: #3a4d00; border: 1.5px solid rgba(150,200,0,0.38); }
.notice-err     { background: rgba(197,48,48,0.07); color: #c53030; border: 1.5px solid rgba(197,48,48,0.2); }
.notice-info    { background: rgba(2,2,209,0.07); color: var(--wdx-blue); border: 1.5px solid rgba(2,2,209,0.18); }
.notice-warning { background: #111; color: var(--wdx-lime); border: 1.5px solid #333; }

.alert {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 20px; min-height: 56px; border-radius: 11px;
    font-size: 14px; font-weight: 500;
    overflow: hidden; word-break: break-word; overflow-wrap: anywhere;
}
.alert img { width: 18px; height: 18px; flex-shrink: 0; }
.alert-text { min-width: 0; flex: 1; }
.alert-text strong { display: block; font-weight: 700; font-size: 14px; line-height: 1.2; }
.alert-text span { font-size: 12px; opacity: 0.8; }
.al-info    { background: rgba(2,2,209,0.08); color: var(--wdx-blue); border: 1.5px solid rgba(2,2,209,0.2); }
.al-success { background: rgba(203,253,86,0.35); color: #3d4d00; border: 1.5px solid rgba(150,200,0,0.4); }
.al-warning { background: #111; color: var(--wdx-lime); border: 1.5px solid #333; }
.al-danger  { background: rgba(197,48,48,0.08); color: #c53030; border: 1.5px solid rgba(197,48,48,0.2); }
.al-lime    { background: var(--wdx-lime); color: #111; border: 1.5px solid #b8f030; }

.toast-wrap {
    position: fixed; top: 76px; left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: max-content; max-width: min(480px, 92vw);
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 999;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
}
.toast-wrap.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-wrap .alert { border-radius: 999px; padding: 0 22px; white-space: normal; word-break: break-word; min-height: 48px; font-size: 13px; }

.svg-on-blue  img { filter: brightness(0) saturate(100%) invert(97%) sepia(4%) saturate(200%) hue-rotate(180deg); }
.svg-on-dark  img { filter: brightness(0) saturate(100%) invert(87%) sepia(50%) saturate(400%) hue-rotate(27deg); }
.svg-on-light img,
.svg-on-white img,
.svg-on-lime  img { filter: brightness(0) saturate(100%) invert(13%) sepia(97%) saturate(5000%) hue-rotate(228deg) brightness(95%); }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 440px; overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,0.22); }
.modal-head { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; background: var(--wdx-blue); }
.modal-head-title { font-size: 16px; font-weight: 700; color: var(--wdx-lime); }
.modal-close { background: none; border: none; color: rgba(244,245,246,0.6); font-size: 20px; cursor: pointer; line-height: 1; padding: 0; transition: color 0.15s; }
.modal-close:hover { color: var(--wdx-lime); }
.modal-body { padding: 22px 24px; font-size: 14px; color: #444; line-height: 1.65; }
.modal-foot { padding: 14px 22px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.dialogue-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; align-items: center; justify-content: center; padding: 20px; }
.dialogue-overlay.open { display: flex; }
.dialogue { background: #fff; border-radius: 16px; width: 100%; max-width: 440px; overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,0.22); }
.dialogue-head { padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
.dialogue-head img { width: 20px; height: 20px; flex-shrink: 0; }
.dialogue-head-title { font-size: 16px; font-weight: 700; flex: 1; }
.dialogue-close { background: none; border: none; font-size: 20px; cursor: pointer; line-height: 1; padding: 0; transition: opacity 0.15s; opacity: 0.6; }
.dialogue-close:hover { opacity: 1; }
.dialogue-body { padding: 22px 24px; font-size: 14px; color: #444; line-height: 1.65; }
.dialogue-foot { padding: 14px 22px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dialogue.d-info    .dialogue-head { background: rgba(2,2,209,0.08); }
.dialogue.d-info    .dialogue-head-title { color: var(--wdx-blue); }
.dialogue.d-info    .dialogue-head img { filter: brightness(0) saturate(100%) invert(13%) sepia(97%) saturate(5000%) hue-rotate(228deg) brightness(95%); }
.dialogue.d-info    .dialogue-close { color: var(--wdx-blue); }
.dialogue.d-success .dialogue-head { background: rgba(203,253,86,0.35); }
.dialogue.d-success .dialogue-head-title { color: #3d4d00; }
.dialogue.d-success .dialogue-head img { filter: brightness(0) saturate(100%) invert(13%) sepia(97%) saturate(5000%) hue-rotate(228deg) brightness(95%); }
.dialogue.d-success .dialogue-close { color: #3d4d00; }
.dialogue.d-warning .dialogue-head { background: var(--wdx-blue); }
.dialogue.d-warning .dialogue-head-title { color: var(--wdx-lime); }
.dialogue.d-warning .dialogue-head img { filter: brightness(0) saturate(100%) invert(87%) sepia(50%) saturate(400%) hue-rotate(27deg); }
.dialogue.d-warning .dialogue-close { color: rgba(244,245,246,0.6); }
.dialogue.d-warning .dialogue-close:hover { color: var(--wdx-lime); }

.cs-tick img { width: 9px; height: 9px; filter: brightness(0) invert(1); }

.form-card { background: #fff; border-radius: 14px; border: 1.5px solid #eee; padding: 28px; margin-bottom: 20px; overflow: visible; }
.form-card-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--wdx-blue); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1.5px solid #f0f0f0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; overflow: visible; }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: #555; display: flex; align-items: center; gap: 4px; }
.form-label .req { color: #c53030; }
.form-hint { font-size: 11px; color: #bbb; }

.input {
    font-family: var(--font-body); font-size: 14px;
    padding: 11px 14px; border-radius: 9px;
    border: 2px solid #e2e2e2; background: #fff; color: #111;
    width: 100%; min-width: 0; outline: none;
    appearance: none; -webkit-appearance: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.input:focus { border-color: var(--wdx-blue); box-shadow: 0 0 0 4px rgba(2,2,209,0.08); }
.input::placeholder { color: #bbb; }
textarea.input { min-height: 110px; line-height: 1.6; resize: none; }

.input-group { display: flex; border-radius: 9px; overflow: hidden; border: 2px solid #e2e2e2; transition: border-color 0.18s, box-shadow 0.18s; }
.input-group:focus-within { border-color: var(--wdx-blue); box-shadow: 0 0 0 4px rgba(2,2,209,0.08); }
.input-group .input { border: none; border-radius: 0; box-shadow: none; flex: 1; }
.input-addon { display: flex; align-items: center; padding: 0 12px; background: rgba(2,2,209,0.05); font-size: 12px; color: var(--wdx-blue); font-weight: 700; white-space: nowrap; border-right: 2px solid #e2e2e2; flex-shrink: 0; }

.cs-wrap { position: relative; }
.cs-trigger {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 14px; border-radius: 9px; border: 2px solid #e2e2e2;
    background: #fff; color: #111; font-family: var(--font-body); font-size: 14px;
    cursor: pointer; transition: border-color 0.18s, box-shadow 0.18s;
    user-select: none; width: 100%;
}
.cs-trigger:hover { border-color: var(--wdx-blue); }
.cs-trigger.open { border-color: var(--wdx-blue); box-shadow: 0 0 0 4px rgba(2,2,209,0.08); border-radius: 9px 9px 0 0; }
.cs-arrow { display: flex; align-items: center; transition: transform 0.2s; flex-shrink: 0; }
.cs-arrow img { width: 13px; height: 13px; }
.cs-trigger.open .cs-arrow { transform: rotate(180deg); }
.cs-menu {
    display: none; position: absolute; left: 0; right: 0; z-index: 100;
    background: #fff; border: 2px solid var(--wdx-blue); border-top: none;
    border-radius: 0 0 9px 9px; box-shadow: 0 10px 28px rgba(2,2,209,0.1);
    overflow: hidden; max-height: 240px; overflow-y: auto;
}
.cs-menu.open { display: block; }
.cs-opt {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 14px; font-size: 14px; font-weight: 500; color: #333;
    cursor: pointer; transition: background 0.1s; font-family: var(--font-body);
}
.cs-opt:hover { background: rgba(2,2,209,0.05); color: var(--wdx-blue); }
.cs-opt.sel { color: var(--wdx-blue); font-weight: 700; }
.cs-tick { width: 16px; height: 16px; border-radius: 50%; background: var(--wdx-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.toggle-row { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: #333; }
.toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: #ccc; border-radius: 999px; transition: background 0.2s; cursor: pointer; }
.toggle input:checked + .toggle-track { background: var(--wdx-blue); }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.toggle input:checked ~ .toggle-thumb { transform: translateX(20px); }

.action-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 28px; background: #fff; border-top: 1.5px solid #eee; border-radius: 14px; margin-top: 8px; }
.action-bar-right { display: flex; gap: 10px; }
.action-info { font-size: 12px; color: #aaa; }

.tbl-wrap { background: #fff; border-radius: 14px; border: 1.5px solid #eee; overflow: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl thead tr { background: var(--wdx-blue); }
.tbl th { padding: 12px 18px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--wdx-lime); white-space: nowrap; }
.tbl td { padding: 13px 18px; border-bottom: 1px solid #f4f4f4; color: #333; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: rgba(2,2,209,0.025); }

@keyframes shimmer { 0%{background-position:-600px 0} 100%{background-position:600px 0} }
.skel { background: linear-gradient(90deg,#e8e8e8 25%,#f4f4f4 50%,#e8e8e8 75%); background-size:600px 100%; animation:shimmer 1.4s infinite; border-radius:7px; }

.av { width: 42px; height: 42px; border-radius: 50%; background: var(--wdx-blue); color: var(--wdx-lime); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; border: 2.5px solid var(--wdx-lime); }
.av-sm { width: 30px; height: 30px; font-size: 11px; }
.av-lg { width: 60px; height: 60px; font-size: 22px; }

.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pg { min-width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #666; cursor: pointer; border: 1.5px solid #ddd; background: #fff; transition: all 0.15s; text-decoration: none; padding: 0 10px; }
.pg:hover { border-color: var(--wdx-blue); color: var(--wdx-blue); }
.pg.active { background: var(--wdx-blue); color: var(--wdx-lime); border-color: var(--wdx-blue); }
.pg.disabled { opacity: 0.3; pointer-events: none; }

.drop-menu { background: #fff; border: 1.5px solid #eee; border-radius: 12px; min-width: 200px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); overflow: hidden; }
.drop-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 14px; font-weight: 500; color: #333; cursor: pointer; transition: background 0.12s; border: none; background: none; width: 100%; text-align: left; font-family: var(--font-body); }
.drop-item:hover { background: rgba(2,2,209,0.06); color: var(--wdx-blue); }
.drop-item.danger:hover { background: rgba(197,48,48,0.06); color: #c53030; }
.drop-item img { width: 15px; height: 15px; flex-shrink: 0; }
.drop-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }

.tabs-wrap { border-bottom: 2px solid #e2e2e2; display: flex; gap: 0; overflow-x: auto; }
.tabs-wrap::-webkit-scrollbar { height: 0; }
.tab { padding: 12px 20px; font-size: 14px; font-weight: 600; color: #999; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; white-space: nowrap; text-decoration: none; display: inline-block; }
.tab:hover { color: var(--wdx-blue); }
.tab.active { color: var(--wdx-blue); border-bottom-color: var(--wdx-blue); }

.page-wrap { flex: 1; max-width: 1100px; margin: 0 auto; padding: 36px 28px 60px; width: 100%; }
.page-wrap-sm { flex: 1; max-width: 860px; margin: 0 auto; padding: 36px 28px 60px; width: 100%; }
.page-title { font-size: 26px; font-weight: 700; color: #111; margin-bottom: 28px; letter-spacing: -0.5px; }

.progress-track { height: 8px; background: #e4e4e4; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.pf-blue { background: var(--wdx-blue); }
.pf-lime { background: var(--wdx-lime); }

@media (max-width: 768px) {
    .page-wrap, .page-wrap-sm { padding: 28px 20px 48px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-full { grid-column: auto; }
}
@media (max-width: 480px) {
    .page-wrap, .page-wrap-sm { padding: 20px 16px 40px; }
    .action-bar { flex-direction: column; align-items: stretch; padding: 16px; }
    .modal-box, .dialogue { border-radius: 12px; }
    .btn-lg { padding: 13px 22px; font-size: 15px; }
}