.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.07);
}

.btn-primary {
    background: linear-gradient(135deg, #8b73ff 0%, #6f54ff 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 8px 30px rgba(111, 84, 255, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 12px 36px rgba(111, 84, 255, 0.30);
}

.btn-dark {
    background: rgba(255,255,255,0.02);
}

.btn-success {
    background: var(--success-soft);
    color: #b4f7cb;
}

.btn-danger {
    background: var(--danger-soft);
    color: #ffc3cd;
}

.btn-sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 12px;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    transition: 0.18s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(124, 92, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.10);
    background: rgba(255,255,255,0.05);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.label {
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.86);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pill-accent {
    background: var(--accent-soft);
    color: #c8bcff;
}

.pill-success {
    background: var(--success-soft);
    color: #b4f7cb;
}

.pill-warning {
    background: var(--warning-soft);
    color: #ffe98f;
}

.pill-danger {
    background: var(--danger-soft);
    color: #ffc3cd;
}

.help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.86);
    font-size: 13px;
    font-weight: 800;
    cursor: default;
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 280px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.006)),
        rgba(14,14,16,0.98);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    line-height: 1.55;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.18s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    z-index: 30;
    pointer-events: none;
}

.help:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.metric-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: rgba(255,255,255,0.02);
    padding: 18px;
    backdrop-filter: blur(8px);
}

.metric-value {
    font-size: 28px;
    line-height: 1;
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: 8px;
}

.metric-label {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.4;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-success {
    background: var(--success-soft);
    color: #b4f7cb;
}

.status-warning {
    background: var(--warning-soft);
    color: #ffe98f;
}

.status-danger {
    background: var(--danger-soft);
    color: #ffc3cd;
}

.status-info {
    background: rgba(94, 234, 212, 0.12);
    color: #aef6ec;
}

.table-wrap {
    overflow-x: auto;
}

.empty-state {
    text-align: center;
    color: rgba(255,255,255,0.52);
    padding: 30px 10px;
}

.toast {
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.006)),
        rgba(14,14,16,0.96);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.toast-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
}

.toast-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.toast-text {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}

.modal-shell {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 28px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.006)),
        var(--card-strong);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
}

.status-waiting_payment {
    background: rgba(255, 200, 0, 0.12);
    color: #ffcc00;
}

.status-paid {
    background: rgba(0, 200, 255, 0.12);
    color: #00c8ff;
}

.status-fulfilled {
    background: rgba(0, 255, 150, 0.12);
    color: #00ff96;
}

.status-cancelled {
    background: rgba(255, 70, 70, 0.12);
    color: #ff4646;
}
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    text-decoration: none;
}

.tab.active {
    background: rgba(255,255,255,0.12);
}

.card {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 20px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.checkbox-row {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.card {
    outline: 2px solid red !important;
}