:root{
    --sidebar-width: 270px;
    --sidebar-collapsed-width: 84px;
    --topbar-height: 70px;

    --primary: #96b8cc;
    --primary-dark: #7ea7be;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e8edf3;
    --sidebar-bg: #0f172a;
    --sidebar-bg-2: #111c34;
    --sidebar-text: #dbe4ef;
    --danger: #ef4444;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

*{
    box-sizing: border-box;
}

html, body{
    margin: 0;
    padding: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body.admin-body{
    min-height: 100vh;
}

/* Sidebar */
.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
    color: #fff;
    z-index: 1200;
    transition: width 0.25s ease, transform 0.25s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.10);
    overflow: hidden;
}

.sidebar-header{
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand{
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.brand-logo{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(150,184,204,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-text{
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: opacity .2s ease;
}

.brand-text strong{
    font-size: 15px;
    white-space: nowrap;
}

.brand-text span{
    font-size: 12px;
    color: #b6c3d3;
    white-space: nowrap;
}

.sidebar-toggle,
.sidebar-close,
.topbar-menu-btn{
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    transition: .2s ease;
}

.sidebar-toggle:hover,
.sidebar-close:hover,
.topbar-menu-btn:hover{
    background: rgba(255,255,255,0.16);
}

.sidebar-body{
    padding: 14px 12px 20px;
    overflow-y: auto;
    height: calc(100vh - var(--topbar-height));
}

.sidebar-section-title{
    font-size: 11px;
    color: #8ea0b6;
    margin: 14px 10px 8px;
    font-weight: 700;
    letter-spacing: .4px;
    transition: opacity .2s ease;
}

.sidebar-link{
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 6px;
    transition: .2s ease;
    white-space: nowrap;
}

.sidebar-link:hover{
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-link.active{
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(150,184,204,0.20);
}

.sidebar-icon{
    width: 22px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-text{
    transition: opacity .2s ease, visibility .2s ease;
}

.logout-link:hover{
    background: rgba(239,68,68,0.15);
    color: #fff;
}

/* Overlay */
.sidebar-overlay{
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
}

/* Page wrapper */
.page-wrapper{
    min-height: 100vh;
    margin-right: var(--sidebar-width);
    transition: margin-right 0.25s ease;
}

.topbar{
    height: var(--topbar-height);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-title{
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.topbar-menu-btn{
    display: none;
    background: var(--primary);
}

.page-content{
    padding: 20px;
}

/* Collapsed desktop state */
body.sidebar-collapsed .sidebar{
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .page-wrapper{
    margin-right: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .sidebar-text,
body.sidebar-collapsed .sidebar-section-title{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.sidebar-collapsed .sidebar-link{
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
}

body.sidebar-collapsed .sidebar-header{
    justify-content: center;
    gap: 8px;
}

body.sidebar-collapsed .brand{
    justify-content: center;
}

body.sidebar-collapsed .sidebar-toggle{
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
}

/* Mobile */
.mobile-only{
    display: none;
}

.desktop-only{
    display: inline-flex;
}

@media (max-width: 991px){
    .sidebar{
        transform: translateX(100%);
        width: var(--sidebar-width);
    }

    .page-wrapper{
        margin-right: 0;
    }

    .topbar-menu-btn{
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-only{
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-only{
        display: none;
    }

    body.sidebar-mobile-open .sidebar{
        transform: translateX(0);
    }

    body.sidebar-mobile-open .sidebar-overlay{
        opacity: 1;
        visibility: visible;
    }

    body.sidebar-collapsed .sidebar{
        width: var(--sidebar-width);
    }

    body.sidebar-collapsed .page-wrapper{
        margin-right: 0;
    }

    body.sidebar-collapsed .brand-text,
    body.sidebar-collapsed .sidebar-text,
    body.sidebar-collapsed .sidebar-section-title{
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.sidebar-collapsed .sidebar-link{
        justify-content: flex-start;
        padding: 12px 14px;
    }

    body.sidebar-collapsed .sidebar-toggle{
        position: static;
        transform: none;
    }
}

/* Utility cards/forms/tables optional basic style */
.card{
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid #eef2f7;
}

.cards-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.form-control{
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7dee7;
    border-radius: 14px;
    padding: 10px 14px;
    outline: none;
    background: #fff;
}

.form-control:focus{
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(150,184,204,0.15);
}

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 700;
    transition: .2s ease;
}

.btn-primary{
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover{
    background: var(--primary-dark);
}

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

.table{
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table th,
.table td{
    padding: 14px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
}

.table th{
    background: #f8fafc;
    font-weight: 800;
}

body {
    direction: rtl;
    text-align: right;
}

.page-content {
    padding: 24px;
}

.nay-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.nay-module-header h1 {
    margin: 0;
    font-size: 28px;
    color: #1f2d3d;
    font-weight: 800;
}

.nay-module-header p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.nay-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nay-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(150, 184, 204, 0.18);
}

.nay-filter-card,
.nay-form-card,
.nay-table-card {
    padding: 22px;
    margin-bottom: 24px;
}

.nay-filter-form,
.nay-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.nay-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nay-form-group label {
    font-weight: 700;
    color: #334155;
    font-size: 14px;
}

.nay-form-group input,
.nay-form-group select,
.nay-form-group textarea {
    height: 46px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    padding: 0 14px;
    background: #f8fbfd;
    color: #1f2937;
    font-size: 14px;
    outline: none;
}

.nay-form-group input:focus,
.nay-form-group select:focus,
.nay-form-group textarea:focus {
    border-color: #96b8cc;
    box-shadow: 0 0 0 4px rgba(150, 184, 204, 0.16);
    background: #fff;
}

.nay-filter-actions,
.nay-form-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.nay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.nay-btn-primary {
    background: #96b8cc;
    color: #ffffff;
}

.nay-btn-primary:hover {
    background: #84aabd;
}

.nay-btn-light {
    background: #eef5f8;
    color: #345166;
}

.nay-btn-light:hover {
    background: #e3eef3;
}

.nay-btn-info {
    background: #dbeef8;
    color: #215a7a;
}

.nay-btn-info:hover {
    background: #cbe5f3;
}

.nay-btn-warning {
    background: #fff3d8;
    color: #8a6400;
}

.nay-btn-warning:hover {
    background: #ffeabf;
}

.nay-btn-danger {
    background: #fde7e7;
    color: #b42318;
}

.nay-btn-danger:hover {
    background: #fbd4d4;
}

.nay-btn-small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.nay-table-responsive {
    overflow-x: auto;
}

.nay-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.nay-table thead th {
    background: #f4f9fb;
    color: #3a5568;
    font-size: 13px;
    font-weight: 800;
    padding: 14px 12px;
    text-align: right;
    border-bottom: 1px solid #e5edf2;
}

.nay-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf2f6;
    color: #1f2937;
    font-size: 14px;
    vertical-align: middle;
}

.nay-title-cell {
    font-weight: 700;
    color: #1e293b;
}

.nay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.nay-badge-success {
    background: #e7f8ee;
    color: #117a37;
}

.nay-badge-muted {
    background: #eef2f6;
    color: #667085;
}

.nay-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nay-alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
}

.nay-alert-danger {
    background: #fdecec;
    color: #b42318;
    border: 1px solid #f6caca;
}

.nay-empty-state {
    text-align: center;
    padding: 30px 10px;
    color: #6b7280;
    font-weight: 700;
}

.nay-form-wrapper {
    max-width: 900px;
}

@media (max-width: 768px) {
    .page-content {
        padding: 16px;
    }

    .nay-module-header h1 {
        font-size: 22px;
    }

    .nay-filter-form,
    .nay-form-grid {
        grid-template-columns: 1fr;
    }

    .nay-filter-actions,
    .nay-form-actions,
    .nay-header-actions,
    .nay-action-group {
        width: 100%;
    }

    .nay-btn {
        width: 100%;
    }
}

.page-content {
    padding: 24px;
}

.nay-page-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.nay-page-top-text h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #1f2d3d;
}

.nay-page-top-text p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.nay-page-top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nay-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.nay-stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border: 1px solid rgba(150, 184, 204, 0.22);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.nay-stat-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 700;
}

.nay-stat-value {
    font-size: 34px;
    font-weight: 800;
    color: #223649;
    line-height: 1;
    margin-bottom: 10px;
}

.nay-stat-note {
    font-size: 13px;
    color: #7b8794;
}

.nay-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(150, 184, 204, 0.18);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    margin-bottom: 24px;
}

.nay-filter-card,
.nay-table-card {
    padding: 22px;
}

.nay-card-header {
    margin-bottom: 18px;
}

.nay-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2d3d;
    font-weight: 800;
}

.nay-card-header span {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

.nay-card-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nay-results-chip {
    background: #eef5f8;
    color: #345166;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
}

.nay-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.nay-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nay-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.nay-form-group input,
.nay-form-group select {
    height: 46px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: #f8fbfd;
    padding: 0 14px;
    color: #1f2937;
    font-size: 14px;
    outline: none;
}

.nay-form-group input:focus,
.nay-form-group select:focus {
    border-color: #96b8cc;
    box-shadow: 0 0 0 4px rgba(150, 184, 204, 0.16);
    background: #ffffff;
}

.nay-filter-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.nay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nay-btn-primary {
    background: #96b8cc;
    color: #ffffff;
}

.nay-btn-primary:hover {
    background: #86aabd;
}

.nay-btn-light {
    background: #eef5f8;
    color: #35556a;
}

.nay-btn-light:hover {
    background: #e1edf2;
}

.nay-btn-info {
    background: #dceef8;
    color: #225b7a;
}

.nay-btn-info:hover {
    background: #cae4f1;
}

.nay-btn-warning {
    background: #fff2d7;
    color: #8a6400;
}

.nay-btn-warning:hover {
    background: #ffe8bb;
}

.nay-btn-danger {
    background: #fde8e8;
    color: #b42318;
}

.nay-btn-danger:hover {
    background: #fbd6d6;
}

.nay-btn-small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.nay-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}

.nay-alert-success {
    background: #e9f8ef;
    border: 1px solid #cdeed8;
    color: #117a37;
}

.nay-alert-danger {
    background: #fdecec;
    border: 1px solid #f5d0d0;
    color: #b42318;
}

.nay-table-responsive {
    overflow-x: auto;
}

.nay-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.nay-table thead th {
    background: #f3f8fb;
    color: #3a5568;
    font-size: 13px;
    font-weight: 800;
    padding: 15px 12px;
    text-align: right;
    border-bottom: 1px solid #e5edf2;
}

.nay-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #edf2f6;
    color: #1f2937;
    font-size: 14px;
    vertical-align: middle;
}

.nay-cell-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nay-cell-title {
    font-weight: 800;
    color: #1f2d3d;
}

.nay-cell-subtitle {
    font-size: 12px;
    color: #7b8794;
}

.nay-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5f8;
    color: #35556a;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.nay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.nay-badge-success {
    background: #e7f8ee;
    color: #117a37;
}

.nay-badge-muted {
    background: #edf2f7;
    color: #667085;
}

.nay-action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nay-empty-state {
    text-align: center;
    padding: 36px 12px;
}

.nay-empty-state-title {
    font-size: 18px;
    font-weight: 800;
    color: #1f2d3d;
    margin-bottom: 8px;
}

.nay-empty-state-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .page-content {
        padding: 16px;
    }

    .nay-page-top-text h1 {
        font-size: 22px;
    }

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

    .nay-filter-actions,
    .nay-page-top-actions,
    .nay-action-group {
        width: 100%;
    }

    .nay-btn {
        width: 100%;
    }
}

/* ===== صفحة إضافة منتج ===== */

.page {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* عنوان الصفحة */
.page h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #333;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* كارت */
.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

/* عنوان داخل الكارت */
.card h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

/* Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #96b8cc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(150,184,204,0.2);
}

/* Textarea */
textarea {
    min-height: 80px;
    resize: vertical;
}

/* Checkbox */
label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #444;
}

/* زر الحفظ */
.btn {
    background: linear-gradient(135deg, #96b8cc, #7aa6bd);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    grid-column: span 2;
}

.btn:hover {
    opacity: 0.9;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.success {
    background: #d4edda;
    color: #155724;
}

.error {
    background: #f8d7da;
    color: #721c24;
}

/* ===== التعبئات ===== */

.variant {
    background: #f9fbfc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px dashed #ddd;
}

.variant input {
    margin-bottom: 5px;
}

/* زر إضافة تعبئة */
#variantsBox button {
    background: #4CAF50;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

/* زر حذف */
.variant button {
    background: #e74c3c;
    color: #fff;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    margin-top: 5px;
    cursor: pointer;
}

/* ===== Responsive ===== */

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

    .btn {
        grid-column: span 1;
    }
}
/* Unified page style inspired by brands/index.php */
.ns-page{direction:rtl}
.ns-hero{background:linear-gradient(135deg,#183153 0%,#27496a 45%,#96b8cc 100%);border-radius:26px;padding:26px;box-shadow:0 18px 40px rgba(24,49,83,.18);color:#fff;margin-bottom:20px;display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.ns-hero-title h1{margin:0;font-size:31px;font-weight:900;letter-spacing:-.3px;color:#fff}
.ns-hero-title p{margin:10px 0 0;color:rgba(255,255,255,.88);font-size:15px;line-height:1.8;max-width:760px}
.ns-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.ns-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 18px;border-radius:14px;text-decoration:none;border:none;font-weight:800;cursor:pointer;transition:.18s ease}
.ns-btn:hover{transform:translateY(-1px)}
.ns-btn-primary{background:#fff;color:#183153}
.ns-btn-dark{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.18)}
.ns-btn-light{background:#eef6fa;color:#183153}
.ns-alert{margin-bottom:18px;padding:14px 16px;border-radius:16px;font-weight:800;border:1px solid transparent}
.ns-alert-success{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}
.ns-alert-error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.ns-alert-warn{background:#fff7ed;color:#9a3412;border-color:#fdba74}
.ns-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:20px}
.ns-stat-card{position:relative;background:#fff;border:1px solid #edf2f7;border-radius:24px;padding:18px 18px 20px;box-shadow:0 12px 28px rgba(15,23,42,.06);overflow:hidden}
.ns-stat-card:before{content:'';position:absolute;top:0;right:0;width:84px;height:84px;background:radial-gradient(circle,#eef6fa,transparent 70%)}
.ns-stat-label{font-size:13px;font-weight:800;color:#64748b;margin-bottom:10px}
.ns-stat-value{font-size:32px;font-weight:900;color:#0f172a;line-height:1}
.ns-stat-note{margin-top:10px;color:#64748b;font-size:12px}
.ns-panel{background:#fff;border:1px solid #edf2f7;border-radius:24px;box-shadow:0 12px 28px rgba(15,23,42,.06);overflow:hidden;margin-bottom:20px}
.ns-panel-head{padding:18px 20px;border-bottom:1px solid #f1f5f9;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(180deg,#fff,#fbfdff)}
.ns-panel-head h2,.ns-panel-head h3{margin:0;color:#183153;font-size:21px;font-weight:900}
.ns-panel-head p{margin:6px 0 0;color:#64748b;font-size:13px}
.ns-panel-body{padding:18px 20px}
.ns-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.ns-link-card{background:#fff;border:1px solid #e6edf3;border-radius:18px;padding:18px;text-decoration:none;color:#0f172a;display:flex;flex-direction:column;gap:8px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.ns-link-card i{font-size:24px;color:#2563eb}
.ns-link-card strong{font-size:17px}
.ns-link-card span{color:#64748b;line-height:1.7;font-size:14px}
.ns-grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.ns-grid-2.equal{grid-template-columns:1fr 1fr}
.ns-list{display:flex;flex-direction:column;gap:10px}
.ns-list-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 16px;border-radius:16px;background:#f8fbfd;border:1px solid #e7eef5}
.ns-list-item small,.ns-muted{display:block;color:#64748b;font-size:12px;margin-top:4px}
.ns-chip{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;background:#eef2f6;color:#475569;border:1px solid #e2e8f0}
.ns-chip.success{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.ns-chip.warn{background:#fef3c7;color:#92400e;border-color:#fde68a}
.ns-chip.error{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.ns-chip.info{background:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}
.ns-table-wrap{overflow:auto}
.ns-table{width:100%;border-collapse:separate;border-spacing:0;min-width:900px}
.ns-table thead th{position:sticky;top:0;background:#f8fbfe;color:#475569;font-size:13px;font-weight:900;padding:15px 12px;border-bottom:1px solid #eaf0f5;text-align:center;white-space:nowrap}
.ns-table tbody td{padding:14px 12px;border-bottom:1px solid #f1f5f9;text-align:center;vertical-align:middle;color:#1e293b}
.ns-table tbody tr:hover{background:#fbfeff}
.ns-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.ns-btn-sm{padding:10px 12px;border-radius:12px;text-decoration:none;font-size:13px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;min-width:68px;transition:.15s ease;border:none;cursor:pointer}
.ns-btn-sm:hover{transform:translateY(-1px)}
.ns-btn-edit{background:#eff6ff;color:#1d4ed8}
.ns-btn-delete{background:#fef2f2;color:#dc2626}
.ns-btn-view{background:#eef6fa;color:#183153}
.ns-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.ns-form-group{display:flex;flex-direction:column;gap:8px}
.ns-form-group label{font-size:14px;font-weight:800;color:#334155}
.ns-form-group input,.ns-form-group select,.ns-form-group textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid #dbe4ea;border-radius:14px;background:#fff;font-size:14px;outline:none}
.ns-form-group textarea{min-height:120px;resize:vertical}
.ns-form-group input:focus,.ns-form-group select:focus,.ns-form-group textarea:focus{border-color:#96b8cc;box-shadow:0 0 0 4px rgba(150,184,204,.16)}
.ns-empty{padding:34px 16px;text-align:center;color:#64748b;font-weight:700}
@media (max-width:991px){.ns-grid-2,.ns-grid-2.equal{grid-template-columns:1fr}.ns-hero{padding:20px;border-radius:22px}.ns-hero-title h1{font-size:24px}}
@media (max-width:640px){.ns-stats-grid{grid-template-columns:1fr 1fr}.ns-page .page-wrap{padding:0}.ns-hero-actions,.ns-btn{width:100%}}
@media (max-width:460px){.ns-stats-grid{grid-template-columns:1fr}}
