.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-primary {
    background: linear-gradient(to right, var(--accent), var(--accent2));
    color: var(--text);
    box-shadow: 0 14px 32px rgba(79, 70, 229, .6);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(79, 70, 229, .8);
}

.btn-secondary {
    background: var(--bg2);
    color: var(--text);
    border-color: rgba(99, 102, 241, .2);
}

.btn-secondary:hover {
    border-color: rgba(99, 102, 241, .7);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, .35);
    color: var(--muted);
}

.btn-ghost:hover {
    border-color: rgba(229, 231, 235, .75);
    color: var(--text);
}

.uy-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.uy-card {
    background: rgba(15, 23, 42, .92);
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 16px;
}

.uy-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .25);
    background: rgba(2, 6, 23, .35);
    color: rgba(229, 231, 235, .95);
    font-size: 12px;
}

/* Drawer */
.uy-menu-btn {
    width: 44px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .35);
    background: rgba(15, 23, 42, .8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.uy-menu-btn svg {
    width: 22px;
    height: 22px;
    color: rgba(229, 231, 235, .95);
    display: block;
}

.uy-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    z-index: 60;
}

.uy-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100vh;
    background: rgba(15, 23, 42, .98);
    border-left: 1px solid rgba(148, 163, 184, .25);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
    z-index: 70;
    transform: translateX(102%);
    transition: transform .2s ease-out;
    padding: 14px;
}

.uy-drawer.is-open {
    transform: translateX(0);
}

.uy-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.uy-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .35);
    background: rgba(2, 6, 23, .6);
    color: rgba(229, 231, 235, .95);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.uy-drawer-nav {
    display: grid;
    gap: 10px;
    padding-top: 12px;
}

.uy-drawer-nav a {
    text-decoration: none;
    color: rgba(229, 231, 235, .95);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .2);
    background: rgba(2, 6, 23, .45);
}

.uy-drawer-nav a:hover {
    border-color: rgba(99, 102, 241, .6);
}

/* Forms */
.uy-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.uy-form label {
    font-size: 12px;
    color: rgba(209, 213, 219, .95);
}

.uy-form input,
.uy-form textarea,
.uy-form select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .35);
    padding: 10px 12px;
    background: rgba(15, 23, 42, .9);
    color: var(--text);
    font-size: 13px;
    outline: none;
}

.uy-form input:focus,
.uy-form textarea:focus,
.uy-form select:focus {
    border-color: rgba(99, 102, 241, .8);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, .35);
}

/* Tables */
.uy-table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .25);
    background: rgba(15, 23, 42, .92);
}

.uy-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: 12px;
}

.uy-table th,
.uy-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    text-align: left;
    color: rgba(229, 231, 235, .95);
}

.uy-table th {
    color: rgba(156, 163, 175, .95);
    font-weight: 600;
}