:root {
    --nzt-bg: #020617;
    --nzt-card: rgba(15, 23, 42, 0.92);
    --nzt-border: rgba(148, 163, 184, 0.28);
    --nzt-cyan: #22d3ee;
    --nzt-green: #22c55e;
    --nzt-red: #ef4444;
    --nzt-warning: #f59e0b;
    --nzt-text: #e5e7eb;
    --nzt-muted: #9ca3af;
    --nzt-input: #111827;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: radial-gradient(circle at top left, #0f172a 0, #020617 44%, #000 100%);
    color: var(--nzt-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    padding: 1.2rem;
}

.nzt-page-shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.nzt-hero-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(34, 211, 238, 0.34);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.15), transparent 38%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.nzt-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #bae6fd;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.nzt-back-link:hover {
    color: #ffffff;
}

.nzt-hero-card h1 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.45rem;
    font-weight: 750;
    margin: 0 0 0.3rem 0;
    color: #f9fafb;
}

.nzt-hero-card h1 i {
    color: var(--nzt-cyan);
}

.nzt-hero-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.nzt-layout-grid {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.nzt-card {
    border-radius: 1rem;
    border: 1px solid var(--nzt-border);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.76));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.72);
    overflow: hidden;
}

.nzt-card-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.nzt-card-header h2 {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e5e7eb;
    font-weight: 700;
    margin: 0;
}

.nzt-card-header p {
    font-size: 0.76rem;
    color: var(--nzt-muted);
    margin: 0.25rem 0 0 0;
}

.nzt-card-body {
    padding: 1rem;
}

.nzt-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.nzt-form-row {
    margin-bottom: 0.9rem;
}

.nzt-form-row label,
.nzt-filter-row label {
    display: block;
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-bottom: 0.3rem;
}

.nzt-form-row input,
.nzt-filter-row input,
.nzt-filter-row select {
    width: 100%;
    min-height: 38px;
    border-radius: 0.5rem;
    border: 1px solid rgba(75, 85, 99, 0.95);
    background-color: var(--nzt-input);
    color: #f9fafb;
    font-size: 0.86rem;
    padding: 0.48rem 0.65rem;
    outline: none;
}

.nzt-form-row input:focus,
.nzt-filter-row input:focus,
.nzt-filter-row select:focus {
    border-color: rgba(34, 211, 238, 0.85);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.nzt-form-row input::placeholder,
.nzt-filter-row input::placeholder {
    color: rgba(156, 163, 175, 0.75);
}

.nzt-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.nzt-btn {
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.82rem;
    padding: 0.48rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    cursor: pointer;
}

.nzt-btn:hover {
    border-color: var(--nzt-cyan);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

.nzt-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.nzt-btn-ok {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
    font-weight: 650;
}

.nzt-btn-ok:hover {
    background: #16a34a;
    border-color: #16a34a;
}

.nzt-btn-primary {
    background: #06b6d4;
    border-color: var(--nzt-cyan);
    color: #020617;
    font-weight: 650;
}

.nzt-btn-primary:hover {
    background: var(--nzt-cyan);
    color: #020617;
}

.nzt-btn-soft {
    background: rgba(15, 23, 42, 0.9);
}

.nzt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.24rem 0.65rem;
    font-size: 0.72rem;
    border: 1px solid rgba(34, 211, 238, 0.38);
    color: #bae6fd;
    background: rgba(8, 47, 73, 0.35);
    white-space: nowrap;
}

.nzt-badge-ok {
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
    background: rgba(20, 83, 45, 0.24);
}

.nzt-badge-danger {
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
    background: rgba(127, 29, 29, 0.24);
}

.nzt-badge-muted {
    border-color: rgba(148, 163, 184, 0.38);
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.45);
}

.nzt-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px auto auto;
    gap: 0.55rem;
    align-items: end;
    margin-bottom: 1rem;
}

.nzt-table-shell {
    overflow-x: auto;
}

.nzt-table {
    width: 100%;
    margin: 0;
    color: #e5e7eb;
    border-collapse: collapse;
}

.nzt-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid rgba(34, 211, 238, 0.18);
    padding: 0.8rem 0.75rem;
    white-space: nowrap;
}

.nzt-table tbody td {
    font-size: 0.84rem;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    vertical-align: middle;
}

.nzt-table tbody tr:nth-child(odd) td {
    background-color: rgba(15, 23, 42, 0.72);
}

.nzt-table tbody tr:nth-child(even) td {
    background-color: rgba(30, 41, 59, 0.62);
}

.nzt-card-name {
    font-weight: 700;
    color: #f9fafb;
    white-space: nowrap;
}

.nzt-money {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.nzt-money-ok {
    color: #bbf7d0;
}

.nzt-money-danger {
    color: #fecaca;
}

.nzt-usage {
    min-width: 120px;
}

.nzt-usage-track {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.nzt-usage-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #22c55e;
}

.nzt-usage-fill.warning {
    background: #f59e0b;
}

.nzt-usage-fill.danger {
    background: #ef4444;
}

.nzt-usage-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: #cbd5e1;
    white-space: nowrap;
}

.nzt-actions-cell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.nzt-btn-icon {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nzt-btn-icon:hover {
    border-color: var(--nzt-cyan);
    color: var(--nzt-cyan);
}

.nzt-btn-icon-warning:hover {
    border-color: var(--nzt-warning);
    color: #fde68a;
    background: rgba(120, 53, 15, 0.25);
}

.nzt-btn-icon-danger:hover {
    border-color: var(--nzt-red);
    color: #fecaca;
    background: rgba(127, 29, 29, 0.25);
}

.nzt-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
}

.nzt-empty-state i {
    font-size: 2rem;
    color: var(--nzt-cyan);
    display: block;
    margin-bottom: 0.5rem;
}

@media (max-width: 1100px) {
    .nzt-layout-grid {
        grid-template-columns: 1fr;
    }

    .nzt-filter-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0.75rem;
    }

    .nzt-grid-two,
    .nzt-filter-row {
        grid-template-columns: 1fr;
    }

    .nzt-hero-card h1 {
        font-size: 1.2rem;
    }
}