:root {
    --nyw-primary: #2563eb;
    --nyw-primary-hover: #1d4ed8;
    --nyw-primary-light: #eff6ff;
    --nyw-secondary: #64748b;
    --nyw-success: #10b981;
    --nyw-warning: #f59e0b;
    --nyw-danger: #ef4444;
    --nyw-bg-body: #f8fafc;
    --nyw-card-bg: #ffffff;
    --nyw-text-main: #0f172a;
    --nyw-text-muted: #64748b;
    --nyw-border: #e2e8f0;
    --nyw-radius-lg: 12px;
    --nyw-radius-md: 8px;
    --nyw-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --nyw-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --nyw-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--nyw-bg-body);
    color: var(--nyw-text-main);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}


.nyw_form_group {
    margin-bottom: 18px;
}

.nyw_form_group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.2px;
}

.nyw_input,
.nyw_select {
    width: 100%;
    padding: 11px 15px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--nyw-radius-md);
    color: var(--nyw-text-main);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: var(--nyw-shadow-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.nyw_input:hover,
.nyw_select:hover {
    border-color: #94a3b8;
}

.nyw_input:focus,
.nyw_select:focus {
    border-color: var(--nyw-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.nyw_input[readonly],
.nyw_input[disabled] {
    background-color: #f8fafc !important;
    border-color: #e2e8f0;
    color: #475569;
    cursor: not-allowed;
    box-shadow: none;
}

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


.nyw_navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--nyw-border);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nyw_navbar_brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--nyw-primary);
}

.nyw_navbar_nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nyw_navbar_link {
    padding: 8px 14px;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nyw_navbar_link i {
    font-size: 1.15rem;
}

.nyw_navbar_link:hover,
.nyw_navbar_link.nyw_active {
    color: var(--nyw-primary);
    background: var(--nyw-primary-light);
}

.nyw_user_pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
}

.nyw_mobile_toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #0f172a;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 992px) {
    .nyw_navbar {
        padding: 0 20px;
    }

    .nyw_mobile_toggle {
        display: block;
    }

    .nyw_navbar_nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 15px 20px;
        border-bottom: 1px solid var(--nyw-border);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        gap: 8px;
    }

    .nyw_navbar_nav.active {
        display: flex;
    }

    .nyw_navbar_link {
        width: 100%;
        padding: 12px 16px;
    }

    .nyw_user_pill {
        display: none;
    }

    .nyw_mobile_user_row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        background: #f8fafc;
        border-radius: 8px;
        margin-top: 6px;
        width: 100%;
        border: 1px solid #e2e8f0;
    }
}



.nyw_client_hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 30px 35px;
    color: #ffffff;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
}

.nyw_client_hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.nyw_client_container {
    max-width: 1320px;
    margin: 35px auto;
    padding: 0 25px;
}

.nyw_dashboard_grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}


.nyw_profile_card {
    background: var(--nyw-card-bg);
    border: 1px solid var(--nyw-border);
    border-radius: var(--nyw-radius-lg);
    padding: 24px;
    box-shadow: var(--nyw-shadow-md);
    margin-bottom: 24px;
}

.nyw_profile_avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--nyw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.nyw_profile_name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nyw-text-main);
    margin-bottom: 4px;
}

.nyw_profile_email {
    font-size: 0.82rem;
    color: var(--nyw-text-muted);
    margin-bottom: 16px;
    word-break: break-all;
}

.nyw_shortcut_box {
    background: var(--nyw-card-bg);
    border: 1px solid var(--nyw-border);
    border-radius: var(--nyw-radius-lg);
    padding: 20px;
    box-shadow: var(--nyw-shadow-md);
}

.nyw_shortcut_title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nyw-text-muted);
    margin-bottom: 14px;
}

.nyw_shortcut_list {
    list-style: none;
}

.nyw_shortcut_item {
    margin-bottom: 8px;
}

.nyw_shortcut_link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--nyw-radius-md);
    transition: background 0.15s ease;
}

.nyw_shortcut_link:hover {
    background: #f1f5f9;
    color: var(--nyw-primary);
}


.nyw_stats_row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.nyw_metric_card {
    background: var(--nyw-card-bg);
    border: 1px solid var(--nyw-border);
    border-radius: var(--nyw-radius-lg);
    padding: 22px;
    box-shadow: var(--nyw-shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nyw_metric_card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nyw-shadow-lg);
}

.nyw_metric_val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--nyw-text-main);
    line-height: 1.2;
}

.nyw_metric_lbl {
    font-size: 0.82rem;
    color: var(--nyw-text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.nyw_metric_icon_box {
    width: 48px;
    height: 48px;
    border-radius: var(--nyw-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.nyw_icon_blue {
    background: #dbeafe;
    color: #2563eb;
}

.nyw_icon_green {
    background: #d1fae5;
    color: #10b981;
}

.nyw_icon_amber {
    background: #fef3c7;
    color: #d97706;
}

.nyw_icon_purple {
    background: #f3e8ff;
    color: #9333ea;
}


.nyw_main_card {
    background: var(--nyw-card-bg);
    border: 1px solid var(--nyw-border);
    border-radius: var(--nyw-radius-lg);
    padding: 25px;
    box-shadow: var(--nyw-shadow-md);
    margin-bottom: 30px;
}

.nyw_main_card_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.nyw_card_title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nyw-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nyw_modern_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.nyw_modern_table th {
    background: #f8fafc;
    color: var(--nyw-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--nyw-border);
}

.nyw_modern_table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    color: var(--nyw-text-main);
}

.nyw_modern_table tr:last-child td {
    border-bottom: none;
}


.nyw_service_item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nyw_service_icon {
    width: 40px;
    height: 40px;
    border-radius: var(--nyw-radius-md);
    background: #eff6ff;
    color: var(--nyw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.nyw_service_name {
    font-weight: 600;
    color: var(--nyw-text-main);
}

.nyw_service_domain {
    font-size: 0.8rem;
    color: var(--nyw-text-muted);
}


.nyw_pill_badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nyw_badge_active {
    background: #d1fae5;
    color: #065f46;
}

.nyw_badge_pending {
    background: #fef3c7;
    color: #92400e;
}

.nyw_badge_suspended {
    background: #fee2e2;
    color: #991b1b;
}


.nyw_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--nyw-radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nyw_btn_primary {
    background: var(--nyw-primary);
    color: #ffffff;
}

.nyw_btn_primary:hover {
    background: var(--nyw-primary-hover);
}

.nyw_btn_outline {
    background: transparent;
    border: 1px solid var(--nyw-border);
    color: #334155;
}

.nyw_btn_outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.nyw_btn_sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}


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

    .nyw_stats_row {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nyw_navbar {
        padding: 0 15px;
        flex-direction: column;
        height: auto;
        padding-bottom: 15px;
    }
}

.nyw_layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--nyw-bg-body);
}

.nyw_sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--nyw-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.nyw_sidebar_header {
    padding: 20px 24px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nyw-primary);
    border-bottom: 1px solid var(--nyw-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nyw_sidebar_menu {
    list-style: none;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nyw_sidebar_group_title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    padding: 12px 16px 6px 16px;
    margin-top: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.15s ease;
}

.nyw_sidebar_group_title:hover {
    color: var(--nyw-primary);
}

.nyw_sidebar_group_title .nyw_arrow_icon {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.nyw_sidebar_group_title.collapsed .nyw_arrow_icon {
    transform: rotate(-90deg);
}

.nyw_sidebar_group_content {
    overflow: hidden;
    transition: all 0.25s ease-in-out;
}

.nyw_sidebar_group_content.collapsed {
    display: none;
}

.nyw_sidebar_item {
    margin: 0;
}

.nyw_sidebar_link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--nyw-radius-md);
    transition: all 0.2s ease;
}

.nyw_sidebar_link i {
    font-size: 1.2rem;
}

.nyw_sidebar_link:hover {
    color: var(--nyw-primary);
    background: var(--nyw-primary-light);
}

.nyw_sidebar_link.nyw_active {
    color: var(--nyw-primary);
    background: var(--nyw-primary-light);
    font-weight: 600;
}

.nyw_main_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nyw_header {
    height: 65px;
    background: #ffffff;
    border-bottom: 1px solid var(--nyw-border);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nyw_user_menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nyw_content_body {
    padding: 30px;
    flex: 1;
}

.nyw_grid_4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.nyw_stat_card {
    background: #ffffff;
    border: 1px solid var(--nyw-border);
    border-radius: var(--nyw-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--nyw-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nyw_stat_card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nyw-shadow-md);
}

.nyw_stat_icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--nyw-primary-light);
    color: var(--nyw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.nyw_stat_title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nyw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nyw_stat_value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--nyw-text-main);
    margin-top: 2px;
}

.nyw_card {
    background: #ffffff;
    border: 1px solid var(--nyw-border);
    border-radius: var(--nyw-radius-lg);
    padding: 24px;
    box-shadow: var(--nyw-shadow-sm);
}

.nyw_btn_danger {
    background: #fee2e2;
    color: #dc2626;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.nyw_btn_danger:hover {
    background: #fca5a5;
}


.nyw_mobile_menu_btn {
    display: none;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 1.4rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nyw_sidebar_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1040;
}

.nyw_sidebar_overlay.active {
    display: block;
}


.table-responsive,
.nyw_table_wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .nyw_mobile_menu_btn {
        display: flex;
    }

    .nyw_sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 270px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .nyw_sidebar.nyw_mobile_open {
        left: 0;
    }

    .nyw_header {
        padding: 0 15px !important;
    }

    .nyw_content_body {
        padding: 15px !important;
    }

    .nyw_grid_4,
    .nyw_stats_row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .nyw_card,
    .nyw_main_card {
        padding: 15px !important;
    }


    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    #adminNotifDropdown {
        right: -50px !important;
        width: 300px !important;
    }
}

@media (max-width: 640px) {

    .nyw_grid_4,
    .nyw_stats_row {
        grid-template-columns: 1fr !important;
    }

    .nyw_user_menu {
        gap: 10px !important;
    }

    .nyw_user_menu a span,
    .nyw_user_menu a.nyw_btn_sm {
        font-size: 0.75rem !important;
        padding: 5px 8px !important;
    }

    .nyw_tabs_header {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .nyw_hide_mobile {
        display: none !important;
    }
}

/* Nywhash Pagination */
.nyw_pagination_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 0 6px 0;
}

.nyw_pagination_info {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.nyw_pagination_info strong {
    color: #1e293b;
    font-weight: 700;
}

.nyw_pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    align-items: center;
}

.nyw_page_item {
    display: inline-block;
}

.nyw_page_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nyw_page_link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--nyw-primary, #2563eb);
    transform: translateY(-1px);
}

.nyw_page_item.active .nyw_page_link {
    background-color: var(--nyw-primary, #2563eb);
    border-color: var(--nyw-primary, #2563eb);
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    cursor: default;
    transform: none;
}

.nyw_page_item.disabled .nyw_page_link {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.nyw_page_dots {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    cursor: default !important;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .nyw_pagination_wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nyw_page_link {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
        padding: 0 6px;
    }
}