:root,
[data-bs-theme="light"] {
    --nso-primary-color: #dc3545;
    --nso-primary-color-hover: #c82333;
    --nso-text-dark: #333333;
    --nso-text-muted: #888888;
    --nso-bg-light: #f4f6f9;
    --nso-sidebar-bg: #ffffff;
    --nso-card-bg: #ffffff;
    --nso-card-footer-bg: #ffffff;
    --nso-card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --nso-border-radius: 8px;
    --nso-border-color: #eee;
    --nso-btn-outline-bg: #ffffff;
    --nso-btn-outline-border: #ddd;
    --nso-btn-outline-hover-bg: #f8f9fa;
    --nso-login-btn-bg: #ffffff;
    --nso-login-btn-border: #ccc;
    --nso-login-btn-hover-bg: #f8f9fa;
    --nso-header-mobile-bg: #ffffff;
}

[data-bs-theme="dark"] {
    --nso-primary-color: #e4606d;
    --nso-primary-color-hover: #dc3545;
    --nso-text-dark: #e0e0e0;
    --nso-text-muted: #a0a0a0;
    --nso-bg-light: #1a1d21;
    --nso-sidebar-bg: #212529;
    --nso-card-bg: #2b3035;
    --nso-card-footer-bg: #2b3035;
    --nso-card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --nso-border-color: #3a3f44;
    --nso-btn-outline-bg: #2b3035;
    --nso-btn-outline-border: #3a3f44;
    --nso-btn-outline-hover-bg: #343a40;
    --nso-login-btn-bg: #2b3035;
    --nso-login-btn-border: #3a3f44;
    --nso-login-btn-hover-bg: #343a40;
    --nso-header-mobile-bg: #212529;
}

/* NSO Typography & Core */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Utilities */
.text-nso-primary {
    color: var(--nso-primary-color) !important;
}

.text-nso-muted {
    color: var(--nso-text-muted) !important;
}

.bg-nso-primary {
    background-color: var(--nso-primary-color) !important;
    color: white !important;
}

.btn-nso-primary {
    background-color: var(--nso-primary-color);
    border-color: var(--nso-primary-color);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: var(--nso-border-radius);
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-nso-primary:hover {
    background-color: var(--nso-primary-color-hover);
    border-color: var(--nso-primary-color-hover);
    color: white;
}

.btn-nso-outline {
    border: 1px solid var(--nso-btn-outline-border);
    color: var(--nso-text-dark);
    background-color: var(--nso-btn-outline-bg);
    border-radius: var(--nso-border-radius);
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-nso-outline:hover {
    background-color: var(--nso-btn-outline-hover-bg);
    color: var(--nso-primary-color);
}

/* Sidebar Customization */
.app-sidebar.nso-sidebar {
    background-color: var(--nso-sidebar-bg) !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}

.nso-sidebar .sidebar-brand {
    border-bottom: 0 !important;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.nso-sidebar .nav-sidebar .nav-header {
    color: var(--nso-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    padding-top: 1rem;
}

.nso-sidebar .nav-sidebar .nav-link {
    color: var(--nso-text-dark);
    border-radius: var(--nso-border-radius);
    margin: 0.2rem 0;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nso-sidebar .nav-sidebar .nav-link:hover,
.nso-sidebar .nav-sidebar .nav-link.active {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: var(--nso-primary-color) !important;
}

.nso-sidebar .nav-sidebar .nav-icon {
    color: var(--nso-primary-color);
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Sidebar treeview text color in dark mode */
.nso-sidebar .nav-treeview .nav-link p {
    color: var(--nso-text-dark);
}

/* App Header Customization */
.app-header.nso-header {
    background-color: transparent !important;
    border: none;
    padding-top: 1rem;
    transition: background-color 0.3s ease;
}

@media (max-width: 991.98px) {
    .app-header.nso-header {
        background-color: var(--nso-header-mobile-bg) !important;
        border-bottom: 1px solid var(--nso-border-color);
        padding-top: 0.5rem;
    }
}

.nso-login-btn {
    border-radius: 20px;
    padding: 0.375rem 1.25rem;
    font-size: 0.9rem;
    border: 1px solid var(--nso-login-btn-border);
    background-color: var(--nso-login-btn-bg);
    color: var(--nso-text-dark);
    font-weight: 600;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.nso-login-btn:hover {
    border-color: var(--nso-text-muted);
    background-color: var(--nso-login-btn-hover-bg);
}

/* Dark mode toggle button */
#darkModeToggle {
    color: var(--nso-text-dark) !important;
    transition: color 0.2s;
}
#darkModeToggle:hover {
    color: var(--nso-primary-color) !important;
}

/* News Cards */
.nso-card {
    border: none;
    border-radius: var(--nso-border-radius);
    box-shadow: var(--nso-card-shadow);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
    height: 100%;
    background-color: var(--nso-card-bg);
}

.nso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.nso-card .card-img-top {
    object-fit: cover;
    height: auto;
    aspect-ratio: 16/9;
}

.nso-card .card-body {
    padding: 1.25rem;
}

.nso-card .card-title {
    display: block;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    color: var(--nso-primary-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.nso-card .card-text {
    font-size: 0.9rem;
    color: var(--nso-text-muted);
    /* removed webkit clamp to prevent text disappearing */
}

.nso-card .card-footer {
    background-color: var(--nso-card-footer-bg);
    border-top: 1px solid var(--nso-border-color);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--nso-text-muted);
}

.nso-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
    flex-shrink: 0;
}

.nso-badge-danger {
    background-color: #dc3545;
    color: white;
}
.nso-badge-primary {
    background-color: #ff3399; /* Example pinkish color from screenshot */
    color: white;
}

/* Carousel / Banner */
.nso-banner-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--nso-card-shadow);
}

.nso-banner-container img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 3/1; /* Keep banner short while ensuring full width */
}

/* Page Header */
.nso-page-title-box {
    margin-bottom: 1.5rem;
}
.nso-page-title-box .title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--nso-text-dark);
}
.nso-page-title-box .title-dot {
    color: var(--nso-primary-color);
    margin-right: 0.5rem;
}
.nso-page-title-box .subtitle {
    font-size: 0.9rem;
    color: var(--nso-text-muted);
    margin-left: 1.5rem;
}

/* Footer dark mode */
.app-footer {
    background-color: var(--nso-card-bg);
    color: var(--nso-text-muted);
    border-top: 1px solid var(--nso-border-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =============================================
   AUTH MODAL STYLES
   ============================================= */

/* Modal Content */
.nso-modal-content {
    background-color: var(--nso-card-bg);
    border: 1px solid var(--nso-border-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.nso-modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.nso-modal-header .modal-title {
    color: var(--nso-text-dark);
    font-size: 1.2rem;
}

.nso-modal-header .btn-close {
    filter: var(--nso-close-filter, none);
}

[data-bs-theme="dark"] .nso-modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Auth Tabs */
.nso-auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--nso-border-color);
    padding: 0;
    position: relative;
}

.nso-auth-tabs .nav-item {
    flex: 1;
}

.nso-auth-tabs .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nso-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    border-radius: 0;
}

.nso-auth-tabs .nav-link:hover {
    color: var(--nso-primary-color);
    transform: translateY(-1px);
}

.nso-auth-tabs .nav-link.active {
    color: var(--nso-primary-color);
    border-bottom-color: var(--nso-primary-color);
    background: none;
}

/* Smooth tab content transitions */
#authTabsContent .tab-pane {
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: translateY(8px);
    opacity: 0;
}

#authTabsContent .tab-pane.active.show {
    transform: translateY(0);
    opacity: 1;
}

/* Smooth modal body height transition */
#loginModal .modal-body {
    transition: height 0.3s ease;
    overflow: hidden;
}

/* Form Controls */
.nso-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nso-text-dark);
    margin-bottom: 0.4rem;
}

.nso-form-control {
    background-color: var(--nso-btn-outline-bg);
    border: 1px solid var(--nso-border-color);
    color: var(--nso-text-dark);
    border-radius: 0 var(--nso-border-radius) var(--nso-border-radius) 0;
    padding: 0.6rem 0.875rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s;
}

.nso-form-control::placeholder {
    color: var(--nso-text-muted);
    opacity: 0.7;
}

.nso-form-control:focus {
    background-color: var(--nso-btn-outline-bg);
    border-color: var(--nso-primary-color);
    color: var(--nso-text-dark);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.nso-input-icon {
    background-color: var(--nso-btn-outline-bg);
    border: 1px solid var(--nso-border-color);
    border-right: none;
    color: var(--nso-primary-color);
    border-radius: var(--nso-border-radius) 0 0 var(--nso-border-radius);
    transition: background-color 0.3s, border-color 0.2s;
}

/* Toggle Password Button */
.nso-toggle-password {
    background-color: var(--nso-btn-outline-bg);
    border: 1px solid var(--nso-border-color);
    border-left: none;
    color: var(--nso-text-muted);
    border-radius: 0 var(--nso-border-radius) var(--nso-border-radius) 0;
    transition: color 0.2s, background-color 0.3s;
}

.nso-toggle-password:hover {
    color: var(--nso-primary-color);
}

/* When input-group has toggle button, middle input has no right radius */
.input-group .nso-form-control:not(:last-child) {
    border-radius: 0;
}

/* Validation styles */
.was-validated .nso-form-control:invalid,
.nso-form-control.is-invalid {
    border-color: #dc3545;
}

.was-validated .nso-form-control:invalid:focus,
.nso-form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.was-validated .nso-form-control:valid,
.nso-form-control.is-valid {
    border-color: var(--nso-primary-color);
}

/* Form check (Remember me) */
.form-check-input:checked {
    background-color: var(--nso-primary-color);
    border-color: var(--nso-primary-color);
}

/* Auth Alert */
#authAlert {
    font-size: 0.9rem;
    border-radius: var(--nso-border-radius);
    padding: 0.75rem 1rem;
}

/* =============================================
   HEADER BRAND & ACTION BUTTONS
   ============================================= */

/* Header Brand (moved from Index) */
.nso-header-brand {
    margin-left: 0.25rem;
}

.nso-header-brand .title-dot {
    color: var(--nso-primary-color);
    font-size: 0.6rem;
}

.nso-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nso-text-dark);
    line-height: 1.1;
}

/* Header Action Buttons — shared style for Tải Game, Đăng Nhập, Đăng Xuất */
.nso-header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--nso-border-radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Login button */
.nso-auth-btn {
    background-color: var(--nso-primary-color);
    color: white;
    border-color: var(--nso-primary-color);
}

.nso-auth-btn:hover {
    background-color: var(--nso-primary-color-hover);
    border-color: var(--nso-primary-color-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Logout button */
.nso-logout-btn {
    background-color: transparent;
    border-color: #dc3545;
    color: #dc3545;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.95rem !important;
}

.nso-logout-btn:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Responsive */
@media (max-width: 576px) {
    .nso-modal-content {
        border-radius: 12px;
        margin: 0.5rem;
    }
    .nso-auth-tabs .nav-link {
        font-size: 0.78rem;
        padding: 0.6rem 0.25rem;
    }
    .nso-user-display {
        display: none;
    }
    .nso-header-action-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    .nso-header-title {
        font-size: 0.95rem;
    }
}

/* =============================================
   CATEGORY SECTION & VIEW MORE
   ============================================= */

.nso-category-section {
    position: relative;
}

.nso-view-more-btn {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nso-view-more-btn:hover {
    background-color: var(--nso-primary-color) !important;
    border-color: var(--nso-primary-color) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

/* Category Badge */
.nso-badge-category {
    background-color: var(--nso-primary-color);
    color: white;
}

/* =============================================
   PAGINATION
   ============================================= */

.nso-pagination {
    gap: 0.25rem;
}

.nso-pagination .page-item .page-link {
    border: 1px solid var(--nso-border-color);
    color: var(--nso-text-dark);
    background-color: var(--nso-card-bg);
    border-radius: var(--nso-border-radius) !important;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.nso-pagination .page-item .page-link:hover {
    background-color: var(--nso-primary-color);
    border-color: var(--nso-primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.nso-pagination .page-item.active .page-link {
    background-color: var(--nso-primary-color);
    border-color: var(--nso-primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.nso-pagination .page-item.disabled .page-link {
    background-color: var(--nso-btn-outline-bg);
    border-color: var(--nso-border-color);
    color: var(--nso-text-muted);
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================
   ARTICLE DETAIL
   ============================================= */

.nso-article-detail {
    background-color: var(--nso-card-bg);
    border-radius: var(--nso-border-radius);
    padding: 2rem 2.5rem;
    box-shadow: var(--nso-card-shadow);
    transition: background-color 0.3s ease;
    animation: nsoFadeInUp 0.5s ease-out;
}

@keyframes nsoFadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero Thumbnail */
.nso-article-hero {
    position: relative;
    border-radius: var(--nso-border-radius);
    overflow: hidden;
    max-height: 480px;
}

.nso-article-hero-img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nso-article-hero:hover .nso-article-hero-img {
    transform: scale(1.02);
}

.nso-article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    pointer-events: none;
}

/* Title */
.nso-article-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--nso-text-dark);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* Meta Items */
.nso-article-meta {
    font-size: 0.85rem;
}

.nso-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--nso-text-muted);
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    background-color: var(--nso-bg-light);
    border-radius: 20px;
    font-size: 0.82rem;
    transition: background-color 0.3s ease;
}

.nso-meta-item i {
    font-size: 0.9rem;
    color: var(--nso-primary-color);
}

/* Badge Large variant */
.nso-badge-lg {
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
    border-radius: 16px;
}

/* Divider */
.nso-divider {
    border: none;
    border-top: 1px solid var(--nso-border-color);
    margin: 1.5rem 0;
    opacity: 0.6;
}

/* Lead / Description */
.nso-article-lead {
    position: relative;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.04), rgba(220, 53, 69, 0.08));
    border-left: 4px solid var(--nso-primary-color);
    border-radius: 0 var(--nso-border-radius) var(--nso-border-radius) 0;
}

.nso-article-lead p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--nso-text-dark);
    font-weight: 500;
    font-style: italic;
}

/* Article content — styles for Html.Raw output (Summernote / rich text) */
.nso-article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--nso-text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.nso-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--nso-border-radius);
    margin: 1.25rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nso-article-content p {
    margin-bottom: 1.15rem;
}

.nso-article-content h1,
.nso-article-content h2,
.nso-article-content h3,
.nso-article-content h4 {
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    font-weight: 700;
    color: var(--nso-text-dark);
}

.nso-article-content a {
    color: var(--nso-primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nso-article-content a:hover {
    color: var(--nso-primary-color-hover);
}

.nso-article-content blockquote {
    border-left: 4px solid var(--nso-primary-color);
    padding: 0.85rem 1.25rem;
    margin: 1.25rem 0;
    background-color: rgba(220, 53, 69, 0.05);
    border-radius: 0 var(--nso-border-radius) var(--nso-border-radius) 0;
    color: var(--nso-text-muted);
    font-style: italic;
}

.nso-article-content pre,
.nso-article-content code {
    background-color: var(--nso-bg-light);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 0.9em;
}

.nso-article-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.nso-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.nso-article-content table th,
.nso-article-content table td {
    border: 1px solid var(--nso-border-color);
    padding: 0.5rem 0.75rem;
}

.nso-article-content ul,
.nso-article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Share Buttons */
.nso-share-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--nso-border-color);
    background-color: var(--nso-btn-outline-bg);
    color: var(--nso-text-muted);
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
}

.nso-share-btn:hover {
    background-color: var(--nso-primary-color);
    border-color: var(--nso-primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.25);
}

/* Article Actions bar */
.nso-article-actions {
    padding-top: 1.5rem;
    border-top: 1px solid var(--nso-border-color);
}

/* Breadcrumb bar */
.nso-breadcrumb-bar {
    font-size: 0.9rem;
}

/* Related Articles Section */
.nso-related-section {
    animation: nsoFadeInUp 0.6s ease-out 0.15s both;
}

/* Breadcrumb styling */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--nso-text-muted);
}

.breadcrumb-item.active {
    color: var(--nso-text-muted);
}

@media (max-width: 576px) {
    .nso-article-detail {
        padding: 1.25rem;
    }
    .nso-article-title {
        font-size: 1.35rem;
    }
    .nso-article-hero {
        max-height: 280px;
    }
    .nso-article-hero-img {
        max-height: 280px;
    }
    .nso-article-content {
        font-size: 0.98rem;
        line-height: 1.75;
    }
    .nso-article-lead {
        padding: 1rem 1.15rem;
    }
}

/* =============================================
   ACTIVATION ALERT
   ============================================= */

.nso-activation-alert {
    border-radius: var(--nso-border-radius);
    overflow: hidden;
    animation: nsoAlertSlideIn 0.4s ease-out;
}

@keyframes nsoAlertSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nso-activation-alert-inner {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.15) 100%);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: var(--nso-border-radius);
    padding: 1.25rem 1.5rem;
}

[data-bs-theme="dark"] .nso-activation-alert-inner {
    background: linear-gradient(135deg, rgba(228, 96, 109, 0.08) 0%, rgba(228, 96, 109, 0.15) 100%);
    border-color: rgba(228, 96, 109, 0.25);
}

.nso-activation-alert-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nso-text-dark);
    margin-bottom: 0.5rem;
}

.nso-activation-alert-header i {
    color: var(--nso-primary-color);
}

.nso-activation-alert-content p {
    color: var(--nso-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.nso-activation-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nso-activation-benefits li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--nso-text-dark);
}

/* =============================================
   PROFILE PAGE
   ============================================= */

.nso-profile-header {
    padding: 1.5rem 0;
}

.nso-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nso-primary-color), var(--nso-primary-color-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nso-profile-avatar i {
    font-size: 2rem;
    color: white;
}

.nso-profile-card {
    background-color: var(--nso-card-bg);
    border-radius: var(--nso-border-radius);
    box-shadow: var(--nso-card-shadow);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.nso-profile-card-header {
    background: linear-gradient(135deg, var(--nso-primary-color), var(--nso-primary-color-hover));
    color: white;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.nso-profile-card-body {
    padding: 1.25rem;
}

.nso-profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--nso-border-color);
}

.nso-profile-info-row:last-child {
    border-bottom: none;
}

.nso-profile-label {
    font-size: 0.85rem;
    color: var(--nso-text-muted);
    font-weight: 500;
}

.nso-profile-value {
    font-size: 0.9rem;
    color: var(--nso-text-dark);
    text-align: right;
}

/* Progress Bar */
.nso-progress-track {
    position: relative;
    height: 10px;
    background-color: var(--nso-border-color);
    border-radius: 5px;
    margin: 2.5rem 0 3rem;
}

.nso-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--nso-primary-color), #e4606d);
    border-radius: 5px;
    transition: width 0.8s ease;
}

.nso-milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nso-milestone-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--nso-card-bg);
    border: 3px solid var(--nso-border-color);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.nso-milestone.reached .nso-milestone-dot {
    background-color: var(--nso-primary-color);
    border-color: var(--nso-primary-color);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}

.nso-milestone-label {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--nso-text-muted);
    white-space: nowrap;
}

.nso-milestone.reached .nso-milestone-label {
    color: var(--nso-primary-color);
}

/* Profile Table */
.nso-profile-table {
    font-size: 0.88rem;
}

.nso-profile-table thead th {
    background-color: var(--nso-bg-light);
    color: var(--nso-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--nso-border-color);
    padding: 0.75rem 1rem;
}

.nso-profile-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--nso-border-color);
    color: var(--nso-text-dark);
}

.nso-profile-table tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.04);
}

/* Status badges for transaction history */
.nso-badge-warning {
    background-color: #ffc107;
    color: #333;
}

.nso-badge-info {
    background-color: #17a2b8;
    color: white;
}

.nso-badge-success {
    background-color: var(--nso-primary-color);
    color: white;
}

.nso-badge-secondary {
    background-color: var(--nso-text-muted);
    color: white;
}

@media (max-width: 576px) {
    .nso-profile-avatar {
        width: 48px;
        height: 48px;
    }
    .nso-profile-avatar i {
        font-size: 1.5rem;
    }
    .nso-milestone-label {
        font-size: 0.6rem;
    }
}

/* =============================================
   SESSION EXPIRED TOAST
   ============================================= */

.nso-session-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: var(--nso-border-radius);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.4);
    font-size: 0.95rem;
    font-weight: 600;
    animation: nsoToastSlideIn 0.4s ease-out;
    transition: opacity 0.4s ease;
    max-width: 90vw;
    white-space: nowrap;
}

.nso-session-toast i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

@keyframes nsoToastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* =============================================
   MOBILE RESPONSIVE FIXES
   ============================================= */

@media (max-width: 768px) {
    /* Banner Aspect Ratio on mobile */
    .nso-banner-container img {
        aspect-ratio: 16/9;
    }
    
    /* Table responsive adjustments to prevent borders from breaking */
    .table-responsive {
        border-radius: var(--nso-border-radius);
        border: 1px solid var(--nso-border-color);
        margin-bottom: 1rem;
    }
    
    .table-responsive .table {
        margin-bottom: 0;
    }
    
    /* Ensure action buttons don't stretch unnaturally */
    .nso-header-action-btn {
        justify-content: center;
    }
}

/* =============================================
   FIREBASE reCAPTCHA BADGE (hidden for invisible mode)
   ============================================= */

.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    position: fixed !important;
    bottom: -100px !important;
}
