/* MPXS Web - Main Stylesheet */

/* Custom Variables */
:root {
    --primary-color: #0d6efd;
    --primary-color-dark: #0a58ca;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* General Styles */
html {
    height: 100%;
    background-color: #f8faff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* ============================================
   PAGE BACKGROUND — Subtle textured backdrop
   ============================================ */
.page-bg {
    background:
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0) 0 0 / 24px 24px,
        #edf0f5;
    overflow-x: clip;
}

/* ============================================
   NAVIGATION - Modern Redesign
   ============================================ */

.navbar-mpxs {
    background: linear-gradient(135deg, #0a3d8f 0%, #0d6efd 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

/* Brand */
.navbar-brand-mpxs {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.375rem;
    color: #fff !important;
    text-decoration: none;
    padding: 0.25rem 0;
}

.navbar-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 1rem;
}

.navbar-brand-text {
    letter-spacing: -0.5px;
}

.navbar-brand-accent {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.navbar-brand-mpxs:hover .navbar-brand-icon {
    background: rgba(255, 255, 255, 0.25);
}

/* Toggler */
.navbar-toggler-mpxs {
    border: none;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.navbar-toggler-mpxs:focus {
    box-shadow: none;
}

.navbar-toggler-mpxs .navbar-toggler-icon {
    filter: brightness(2);
}

/* Main Nav Links */
.navbar-nav-main {
    gap: 0.25rem;
}

.nav-link-mpxs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link-mpxs:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link-mpxs.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
}

.nav-link-mpxs.active .nav-link-icon {
    opacity: 1;
}

.nav-link-icon {
    font-size: 0.875rem;
    opacity: 0.8;
}

.nav-link-mpxs:hover .nav-link-icon {
    opacity: 1;
}

/* Actions Nav */
.navbar-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item-action {
    display: flex;
    align-items: center;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.theme-toggle i {
    font-size: 1rem;
}

[data-theme="light"] #themeIconLight,
[data-theme="dark"] #themeIconDark {
    display: none;
}

/* Notification Toggle */
.notification-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.notification-toggle i {
    font-size: 1rem;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0d6efd;
}

/* User Menu */
.nav-item-user {
    margin-left: 0.5rem;
}

.nav-link-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff !important;
    transition: all 0.2s ease;
}

.nav-link-user:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link-user::after {
    margin-left: 0.25rem;
    opacity: 0.7;
}

.nav-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 600;
}

.nav-user-name {
    font-weight: 500;
    font-size: 0.9375rem;
}

/* User Dropdown */
.dropdown-menu-mpxs {
    min-width: 220px;
    padding: 0.5rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
}

.dropdown-menu-mpxs .dropdown-header {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.dropdown-header-name {
    display: block;
    font-weight: 600;
    color: #212529;
    font-size: 0.9375rem;
}

.dropdown-header-email {
    display: block;
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.125rem;
}

.dropdown-menu-mpxs .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: #495057;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.dropdown-menu-mpxs .dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9375rem;
    color: #6c757d;
}

.dropdown-menu-mpxs .dropdown-item:hover {
    background: #f0f6ff;
    color: #0d6efd;
}

.dropdown-menu-mpxs .dropdown-item:hover i {
    color: #0d6efd;
}

.dropdown-menu-mpxs .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

.dropdown-menu-mpxs .dropdown-label {
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-item-logout {
    color: #dc3545 !important;
}

.dropdown-item-logout i {
    color: #dc3545 !important;
}

.dropdown-item-logout:hover {
    background: #fff5f5 !important;
    color: #dc3545 !important;
}

/* Sign In Button (for non-authenticated users) */
.btn-nav-login {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0d6efd;
    background: #fff;
    border: none;
    border-radius: 50px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-nav-login:hover {
    color: #0d6efd;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-mpxs {
        padding: 0.625rem 0;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar-nav-main {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link-mpxs {
        padding: 0.75rem 1rem !important;
    }

    .navbar-nav-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-item-user {
        margin-left: 0;
        width: 100%;
    }

    .nav-link-user {
        width: 100%;
        justify-content: flex-start;
        padding: 0.5rem 0.75rem !important;
        border-radius: 8px;
    }

    .btn-nav-login {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
    }
}

/* Hero Section */
.hero-section {
    background: #0a58ca;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: var(--light-color);
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-color), 0.05);
}

/* Badges */
.badge {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Statistics Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-danger {
    background: linear-gradient(45deg, var(--primary-color), #0a58ca) !important;
}

.card.bg-success {
    background: linear-gradient(45deg, var(--success-color), #157347) !important;
}

.card.bg-warning {
    background: linear-gradient(45deg, var(--warning-color), #e0a800) !important;
}

.card.bg-danger {
    background: linear-gradient(45deg, var(--danger-color), #b02a37) !important;
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: #f8faff;
    border-top: 1px solid #eef2f9;
    padding: 1.25rem 0;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0a58ca, #0d6efd);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8125rem;
}

.site-footer__name {
    display: block;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1a1f36;
    line-height: 1.2;
}

.site-footer__accent {
    color: #6c757d;
    font-weight: 500;
}

.site-footer__tagline {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.2;
}

.site-footer__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.site-footer__version {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #eef2f9;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
}

.site-footer__divider {
    width: 1px;
    height: 16px;
    background: #dee2e6;
}

.site-footer__copy {
    font-size: 0.8125rem;
    color: #94a3b8;
}

@media (max-width: 575px) {
    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__brand {
        justify-content: center;
    }

    .site-footer__meta {
        justify-content: center;
    }
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

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

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert improvements */
.alert {
    border: none;
    border-left: 4px solid;
    border-radius: var(--border-radius);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-left-color: var(--success-color);
    color: #0f5132;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger-color);
    color: #842029;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
    color: #664d03;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-left-color: var(--info-color);
    color: #055160;
}

/* Status indicators */
.status-pending {
    color: var(--warning-color);
}

.status-completed {
    color: var(--success-color);
}

.status-failed {
    color: var(--danger-color);
}

/* Notifications */
.notification-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 360px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: notificationSlideIn 0.2s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.notification-panel__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.notification-panel__clear {
    font-size: 0.75rem;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.notification-panel__clear:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.notification-panel__body {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}

.notification-arrow {
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 8px;
    overflow: hidden;
}

.notification-arrow::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 1px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transform: rotate(45deg);
    border-radius: 2px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.15s ease;
    animation: slideInNotification 0.3s ease-out;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item:last-child {
    margin-bottom: 0;
}

.notification-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.notification-item.success {
    border-left-color: #22c55e;
}

.notification-item.success .notification-item__icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.notification-item.error {
    border-left-color: #ef4444;
}

.notification-item.error .notification-item__icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.notification-item.warning {
    border-left-color: #f59e0b;
}

.notification-item.warning .notification-item__icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.notification-item.info {
    border-left-color: #3b82f6;
}

.notification-item.info .notification-item__icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.notification-item .notification-text {
    font-size: 0.825rem;
    color: #334155;
    margin: 0;
    line-height: 1.4;
}

.notification-item .notification-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateX(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.825rem;
    padding: 2rem 1rem;
}

.notification-empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Flash Messages Overlay */
.flash-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 560px;
    padding: 0 1rem;
    pointer-events: none;
}

.flash-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    animation: flashSlideIn 0.35s ease-out;
    border-left: 4px solid;
}

.flash-toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.flash-toast__content {
    flex: 1;
    min-width: 0;
}

.flash-toast__text {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1f36;
}

.flash-toast__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8125rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.flash-toast__close:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Flash toast variants */
.flash-toast--success {
    border-left-color: #22c55e;
}

.flash-toast--success .flash-toast__icon {
    background: #f0fdf4;
    color: #16a34a;
}

.flash-toast--danger {
    border-left-color: #ef4444;
}

.flash-toast--danger .flash-toast__icon {
    background: #fef2f2;
    color: #dc2626;
}

.flash-toast--warning {
    border-left-color: #f59e0b;
}

.flash-toast--warning .flash-toast__icon {
    background: #fffbeb;
    color: #d97706;
}

.flash-toast--info {
    border-left-color: #3b82f6;
}

.flash-toast--info .flash-toast__icon {
    background: #eff6ff;
    color: #2563eb;
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   TRANSPORT PAGE — Modern Section Layout
   ============================================ */

/* Section Container */
.transport-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.02);
    position: relative;
}

.transport-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #3b82f6, #60a5fa);
    opacity: 0.7;
    border-radius: 16px 16px 0 0;
}

.transport-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.transport-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.transport-section__title i {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(59, 130, 246, 0.06));
    margin-right: 0.75rem;
}

.transport-section__subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Object Type Cards */
.object-type-card {
    background: #fff;
    border: 2px solid #e8ecf1;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.object-type-card:hover:not(.disabled) {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
}

.object-type-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.06) 0%, rgba(13, 110, 253, 0.02) 100%);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.object-type-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: #fafbfc;
}

.object-type-card.disabled:hover {
    border-color: #e8ecf1;
    transform: none;
    box-shadow: none;
}

.object-type-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(59, 130, 246, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.object-type-card__icon--muted {
    background: #f1f5f9;
    color: #94a3b8;
}

.object-type-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: #1a1a2e;
}

.object-type-card__desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Transport Options (Step 4) */
.transport-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transport-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.transport-option:hover {
    background: #f0f4ff;
    border-color: #c7d2fe;
}

.transport-option__info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transport-option__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(59, 130, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.transport-option__label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a2e;
}

.transport-option__desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Review Step — Summary Cards */
.transport-summary-card {
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.transport-summary-card--warning {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.06) 0%, rgba(255, 193, 7, 0.02) 100%);
    border-color: rgba(255, 193, 7, 0.3);
}

.transport-summary-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.transport-summary-card__icon--source {
    background: rgba(13, 202, 240, 0.12);
    color: #0dcaf0;
}

.transport-summary-card__icon--target {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.transport-summary-card__icon--warning {
    background: rgba(255, 193, 7, 0.15);
    color: #cc9a06;
}

.transport-summary-card__label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.transport-summary-card__value {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.transport-summary-card__meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.transport-config-card {
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    padding: 1.25rem;
    height: 100%;
}

/* Legacy compat */
.transport-header {
    background: var(--primary-color);
    border-radius: 10px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.transport-options {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.option-group {
    border-left: 4px solid var(--info-color);
    background-color: white;
    border-radius: 6px;
}

.option-group .form-check {
    margin-bottom: 0.5rem;
}

.comparison-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    min-height: 100px;
}

.domain-selection {
    position: relative;
}

.domain-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.progress-indicator {
    display: none;
}

/* Version panel styles */
.versions-container {
    background-color: #ffffff;
}

.versions-label {
    color: #6c757d;
}

.version-item {
    cursor: pointer;
    transition: background-color 0.15s ease;
    color: inherit;
}

.version-item.version-active {
    background-color: #e9ecef;
}

.version-item.version-inactive {
    background-color: #f8f9fa;
}

.version-item:hover {
    filter: brightness(0.95);
}

.version-item .version-icon {
    color: #6c757d;
}

.items-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f8f9fa;
}

.items-container::-webkit-scrollbar {
    width: 8px;
}

.items-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.items-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.items-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* User profile styles */
.profile-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.profile-header {
    background: var(--primary-color);
    border-radius: 10px 10px 0 0;
    padding: 2rem;
    color: white;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    color: #212529;
    margin-bottom: 1rem;
}

.info-value:last-child {
    margin-bottom: 0;
}

.password-form {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.domain-item {
    background: #e9ecef;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: between;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0 !important;
}

.domain-item:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.domain-name {
    font-weight: 600;
    color: #495057;
}

.domain-url {
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: auto;
}

.domain-management-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.domain-form-modal {
    border: 1px solid #dee2e6;
    background: #f8f9fa !important;
}

.clickable-badge {
    transition: all 0.2s ease;
    user-select: none;
}

.clickable-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0.9;
}

.clickable-badge:active {
    transform: translateY(0);
}

/* User index styles */
.user-header {
    background: var(--primary-color);
    border-radius: 10px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.filter-card {
    background: #f8f9fa;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background-color: #d1edff;
    color: #0956af;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.role-badge {
    background-color: #e7f3ff;
    color: #0366d6;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    margin: 0 0.125rem;
    border-radius: 4px;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.875rem;
}

/* User form styles */
.user-form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.user-form-header {
    background: var(--primary-color);
    border-radius: 10px 10px 0 0;
    padding: 1.5rem;
    color: white;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsive adjustments for specific components */
@media (max-width: 768px) {
    .domain-arrow {
        position: relative;
        margin: 1rem auto;
        transform: rotate(90deg);
    }

    .step {
        flex-direction: column;
    }

    .profile-header {
        padding: 1.5rem;
        text-align: center;
    }

    .info-card {
        padding: 1rem;
    }

    .password-form {
        padding: 1.5rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .action-buttons .btn {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }

    .filter-form .col-md-3 {
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   COMPARER - Modern Redesign
   ============================================ */

/* Comparer Sections (modern open layout) */
.comparer-section {
    margin-bottom: 0;
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    border: 1px solid #e8ecf1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.02);
    position: relative;
}

/* Subtle top accent stripe */
.comparer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #3b82f6, #60a5fa);
    opacity: 0.7;
    border-radius: 16px 16px 0 0;
}

.comparer-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.comparer-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
}

.comparer-section__title i {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(59, 130, 246, 0.06));
    margin-right: 0.75rem;
}

.comparer-section__subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0.35rem 0 0;
}

/* Comparer Cards */
.comparer-card {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.comparer-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparer-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #f8faff;
    border-bottom: 1px solid #eef2f9;
}

.comparer-card__header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 10px;
    color: #0d6efd;
    font-size: 1rem;
    flex-shrink: 0;
}

.comparer-card__header-icon--info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.comparer-card__header-icon--success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.comparer-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1f36;
    margin: 0;
}

.comparer-card__subtitle {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0.125rem 0 0;
}

.comparer-card__body {
    padding: 1.5rem;
}

/* Domain Selection Layout */
.comparer-domain-col {
    flex: 1;
    min-width: 0;
    background: linear-gradient(180deg, #f8faff 0%, #f1f5fb 100%);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid #dce3ed;
    transition: all 0.25s ease;
    position: relative;
}

.comparer-domain-col:hover {
    border-color: #c7d2e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.comparer-domain-col:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1), 0 4px 16px rgba(13, 110, 253, 0.06);
    background: linear-gradient(180deg, #f0f6ff 0%, #e8f0fe 100%);
}

.comparer-domain-arrow {
    display: flex;
    align-items: center;
    padding-top: 1.75rem;
    flex-shrink: 0;
}

.comparer-domain-arrow__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    position: relative;
}

.comparer-domain-arrow__icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(13, 110, 253, 0.2);
    animation: arrowPulse 3s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.12); opacity: 0.2; }
}

.comparer-domain-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.75rem;
    margin-right: 0.625rem;
}

.comparer-domain-badge--source {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(59, 130, 246, 0.08));
    color: #0d6efd;
}

.comparer-domain-badge--target {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
    color: #059669;
}

.comparer-form-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.comparer-form-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.375rem;
}

.comparer-form-hint i {
    font-size: 0.6875rem;
}

/* Upload Card */
.comparer-upload-card {
    margin-top: 1.25rem;
    border: 2px dashed #bee3f8;
    border-radius: 10px;
    overflow: hidden;
    max-width: 420px;
}

.comparer-upload-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    color: #0284c7;
    font-weight: 600;
    font-size: 0.875rem;
}

.comparer-upload-card__body {
    padding: 1rem;
}

/* Filter Bar */
.comparer-filter-bar {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

/* Items Container */
.comparer-items-container {
    min-height: 200px;
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    background: linear-gradient(180deg, #fafbff 0%, #f5f7fc 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.comparer-items-container::-webkit-scrollbar {
    width: 6px;
}

.comparer-items-container::-webkit-scrollbar-track {
    background: transparent;
}

.comparer-items-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.comparer-items-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.comparer-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.comparer-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.comparer-empty-state p {
    font-size: 0.9375rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Hierarchy */
.hierarchy-container .product-hierarchy-item {
    transition: background-color 0.15s ease;
    border-radius: 6px;
}

.hierarchy-container .product-hierarchy-item:hover {
    background-color: rgba(13, 110, 253, 0.06) !important;
}

.hierarchy-container .product-hierarchy-item.active {
    background-color: #0d6efd !important;
    color: white !important;
}

.hierarchy-container .product-hierarchy-item.active .text-primary {
    color: white !important;
}

.hierarchy-container .product-hierarchy-item.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}


/* Pagination */
.comparer-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f9;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Comparer Tabs */
.comparer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.375rem;
    background: linear-gradient(135deg, #eef2f7, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
}

.comparer-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Override Bootstrap nav-link defaults within comparer tabs */
.comparer-tabs .nav-link {
    padding: 0.5625rem 1rem;
    border: none;
    border-radius: 9px;
}

.comparer-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #334155;
}

.comparer-tab.active {
    background: #fff;
    color: #0d6efd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(13, 110, 253, 0.06);
    font-weight: 600;
}

.comparer-tab i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.comparer-tab.active i {
    opacity: 1;
}

/* Help Section */
.comparer-help-section {
    padding: 1.25rem;
    background: #f8faff;
    border-radius: 10px;
    border: 1px solid #eef2f9;
    height: 100%;
}

.comparer-help-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    color: #0d6efd;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.comparer-help-section__icon--warning {
    background: rgba(255, 193, 7, 0.12);
    color: #e0a800;
}

/* Element list styling for comparison results */
.element-list-container {
    overflow: hidden;
}

.element-list-header {
    font-size: 0.9rem;
}

.element-list-group-header {
    font-size: 0.75rem;
    background-color: #f1f5f9;
}

.element-list-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: none;
    border-bottom: 1px solid #eef2f9;
    transition: background-color 0.15s ease;
}

.element-list-item:last-child {
    border-bottom: none;
}

.element-list-item:hover {
    background-color: #f0f6ff;
}

.element-list-item.active {
    background-color: var(--primary-color);
    color: white;
}

.element-list-item.active .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.element-list-item[data-type="source_only"] {
    border-left: 3px solid #0dcaf0;
}

.element-list-item[data-type="target_only"] {
    border-left: 3px solid #6c757d;
}

.element-list-item[data-type="common"] {
    border-left: 3px solid #198754;
}

/* Responsive */
@media (max-width: 768px) {
    .comparer-domain-row {
        flex-direction: column;
    }

    .comparer-domain-arrow {
        padding-top: 0;
        justify-content: center;
    }

    .comparer-domain-arrow__icon {
        transform: rotate(90deg);
    }

    .comparer-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .comparer-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* Client page styles */
.client-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Client form styles */
.client-form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f3ff;
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.user-selection-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6 !important;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 340px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    padding: 1.25rem;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-consent-buttons .btn {
    flex: 1;
}

@media (max-width: 576px) {
    .cookie-consent {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ============================================
   HOMEPAGE STYLES - Modern Redesign
   ============================================ */

/* Hero Section */
.homepage-hero {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 40%, #1e3a5f 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
    margin-bottom: 0;
    /* Break out of container-fluid padding to reach edges */
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

/* Animated grid background */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-grid-svg {
    width: 100%;
    height: 100%;
}

/* Circuit lines */
.hero-circuit-line {
    stroke-dasharray: 8 4;
    animation: circuitFlow 20s linear infinite;
}

.hero-circuit-line--2 {
    stroke-dasharray: 12 6;
    animation-duration: 25s;
    animation-direction: reverse;
}

.hero-circuit-line--3 {
    stroke-dasharray: 6 8;
    animation-duration: 30s;
}

@keyframes circuitFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -200; }
}

/* Data packets – the glow is handled by the SVG filter */
.hero-data-packet--1 { opacity: 0.9; }
.hero-data-packet--2 { opacity: 0.8; }
.hero-data-packet--3 { opacity: 0.7; }
.hero-data-packet--4 { opacity: 0.85; }

/* Junction node pulse */
.hero-node-pulse {
    animation: nodePulse 3s ease-in-out infinite;
}
.hero-node-pulse--delayed {
    animation-delay: 1s;
}
.hero-node-pulse--delayed-2 {
    animation-delay: 2s;
}

@keyframes nodePulse {
    0%, 100% { r: 4; opacity: 0.4; }
    50% { r: 7; opacity: 0.15; }
}

.min-vh-50 {
    min-height: 45vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #93c5fd;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title-accent {
    background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(203, 213, 225, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-hero-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.btn-hero-secondary:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-2px);
}

/* ---- Hero Data Transfer Illustration ---- */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-transfer {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-transfer__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.hero-transfer__node-ring {
    display: none;
}

.hero-transfer__node-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-transfer__node--source .hero-transfer__node-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(71, 85, 105, 0.08));
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hero-transfer__node--target .hero-transfer__node-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.08));
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.hero-transfer__node-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(148, 163, 184, 0.8);
}

/* Stream between nodes */
.hero-transfer__stream {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.5rem;
    min-width: 160px;
}

.hero-transfer__svg {
    width: 100%;
    height: 60px;
}

.hero-transfer__path {
    stroke-dasharray: 8 6;
    animation: streamDash 6s linear infinite;
}

@keyframes streamDash {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -56; }
}

.hero-transfer__status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(16, 185, 129, 0.9);
}

.hero-transfer__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Features Section */
.homepage-features {
    padding: 5rem 0;
    background: #f8f9fb;
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(30, 41, 59, 0.08);
    border-color: #cbd5e1;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.375rem;
}

.feature-card__icon--primary {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.feature-card__icon--success {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.feature-card__icon--info {
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
}

.feature-card__icon--warning {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.feature-card__icon--secondary {
    background: rgba(71, 85, 105, 0.08);
    color: #475569;
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-card__description {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card__list li {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #475569;
    padding: 0.375rem 0;
}

.feature-card__list li i {
    color: #10b981;
    margin-right: 0.625rem;
    font-size: 0.75rem;
}

/* CTA Section */
.homepage-cta {
    padding: 4rem 0;
    background: #fff;
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

.cta-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e3a5f 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    transform: translate(30%, -30%);
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.cta-description {
    font-size: 1.0625rem;
    color: rgba(203, 213, 225, 0.9);
    margin-bottom: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-cta:hover {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Responsive adjustments for homepage */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .text-lg-start {
        text-align: center !important;
    }

    .cta-card {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .homepage-hero {
        padding: 3rem 0 2.5rem;
    }

    .min-vh-50 {
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .homepage-features {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* About Hero Section */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e3a5f 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
    margin-bottom: 0;
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

.about-version-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mission Section */
.about-mission {
    padding: 5rem 0;
    background: #fff;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.mission-content {
    padding-right: 2rem;
}

.mission-text {
    font-size: 1.0625rem;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.mission-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mission-card {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.mission-card__icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.mission-card__icon--success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.mission-card__icon--info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.mission-card__content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.mission-card__content p {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* About Features Section */
.about-features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    height: 100%;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.about-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}

.about-feature-card__icon--primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.about-feature-card__icon--success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.about-feature-card__icon--info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.about-feature-card__icon--warning {
    background: rgba(255, 193, 7, 0.1);
    color: #cc9a06;
}

.about-feature-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.625rem;
}

.about-feature-card__description {
    font-size: 0.9375rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Changelog Section */
.about-changelog {
    padding: 5rem 0;
    background: #fff;
}

.changelog-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.changelog-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.changelog-header__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
    margin-right: 1rem;
}

.changelog-header__content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.changelog-header__content p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.changelog-body {
    padding: 2rem;
    max-height: 500px;
    overflow-y: auto;
}

.changelog-content h1,
.changelog-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.changelog-content h1:first-child,
.changelog-content h2:first-child {
    margin-top: 0;
}

.changelog-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.changelog-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.changelog-content li {
    color: #495057;
    margin-bottom: 0.375rem;
    line-height: 1.6;
}

.changelog-content code {
    background: #f1f3f4;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    color: #d63384;
}

.changelog-empty {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.changelog-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.changelog-empty p {
    margin-bottom: 0;
    font-style: italic;
}

/* About CTA Section */
.about-cta {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Responsive adjustments for about page */
@media (max-width: 992px) {
    .mission-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .section-title.text-start {
        text-align: center !important;
    }

    .section-badge {
        display: block;
        text-align: center;
    }

    .mission-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 3rem 0 2.5rem;
    }

    .about-mission,
    .about-features,
    .about-changelog {
        padding: 3rem 0;
    }

    .mission-card {
        padding: 1rem;
    }

    .mission-card__icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .changelog-header {
        padding: 1.25rem 1.5rem;
    }

    .changelog-body {
        padding: 1.5rem;
    }

    .about-cta {
        padding: 3rem 0;
    }
}

/* ============================================
   PROFILE PAGE STYLES - Modern Redesign
   ============================================ */

/* Profile Hero Section */
.profile-hero {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e3a5f 100%);
    padding: 4rem 0 3rem;
    overflow: hidden;
    margin-bottom: 0;
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

.profile-hero__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1.25rem;
    text-transform: uppercase;
}

.profile-hero__name {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.profile-hero__fullname {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.profile-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.profile-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-hero__badge--success {
    background: rgba(25, 135, 84, 0.3);
    border-color: rgba(25, 135, 84, 0.5);
}

.profile-hero__badge--danger {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.profile-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Profile Info Section */
.profile-info-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.profile-info-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.profile-info-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.profile-info-card__header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.profile-info-card__header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0;
}

.profile-info-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.125rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.profile-info-card__icon--info {
    background: rgba(13, 202, 240, 0.3);
}

.profile-info-card__body {
    padding: 1.5rem;
}

.profile-info-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.profile-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-info-item:first-child {
    padding-top: 0;
}

.profile-info-item__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.375rem;
}

.profile-info-item__value {
    display: block;
    font-size: 0.9375rem;
    color: #212529;
}

.profile-info-item__empty {
    color: #adb5bd;
    font-style: italic;
}

/* Profile Client Section */
.profile-client-section {
    padding: 4rem 0;
    background: #fff;
}

.profile-stat-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.profile-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.profile-stat-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.profile-stat-card__icon--secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.profile-stat-card__icon--warning {
    background: rgba(255, 193, 7, 0.1);
    color: #cc9a06;
}

.profile-stat-card__content {
    flex: 1;
    min-width: 0;
}

.profile-stat-card__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.profile-stat-card__value {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}

/* Profile Edit Page */
.profile-hero--compact {
    padding: 2.5rem 0 2rem;
}

.profile-hero--compact .profile-hero__avatar {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.profile-hero--compact .profile-hero__name {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
}

.profile-hero--compact .profile-hero__fullname {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.profile-edit-field {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.profile-edit-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-edit-field:first-child {
    padding-top: 0;
}

.profile-edit-field__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.375rem;
}

.profile-edit-field__input {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-edit-field__input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.profile-edit-field__input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.profile-edit-field__input[disabled] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.profile-edit-field__error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.profile-edit-field__hint {
    display: block;
    font-size: 0.775rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Profile Domain Card */
.profile-domain-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.profile-domain-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.profile-domain-card__header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0;
}

.profile-domain-card__header-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-domain-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-domain-card__body {
    padding: 1.5rem;
}

.profile-domain-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.profile-domain-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.profile-domain-item:last-child {
    margin-bottom: 0;
}

.profile-domain-item__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-domain-item__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-domain-item__icon {
    color: var(--primary-color);
    font-size: 1rem;
}

.profile-domain-item__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-domain-empty {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.profile-domain-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
}

.profile-domain-empty p {
    margin-bottom: 0;
    font-style: italic;
}

.profile-domain-add {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px dashed #dee2e6;
    margin-top: 1rem;
}

.profile-domain-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.profile-domain-limit {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Responsive adjustments for profile page */
@media (max-width: 992px) {
    .profile-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .profile-hero__actions .btn {
        width: 200px;
    }

    .profile-domain-card__header {
        flex-direction: column;
        text-align: center;
    }

    .profile-domain-card__header-content {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .profile-hero {
        padding: 3rem 0 2rem;
    }

    .profile-hero__avatar {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .profile-hero__name {
        font-size: 1.5rem;
    }

    .profile-hero__meta {
        flex-direction: column;
        align-items: center;
    }

    .profile-info-section,
    .profile-client-section {
        padding: 2.5rem 0;
    }

    .profile-info-card__header {
        padding: 1rem 1.25rem;
    }

    .profile-info-card__body {
        padding: 1.25rem;
    }

    .profile-domain-card__body {
        padding: 1rem;
    }

    .profile-domain-item {
        padding: 0.875rem 1rem;
    }

    .profile-domain-item__main {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-domain-item__actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* ============================================
   AUTH PAGES - Login, Password Reset, etc.
   ============================================ */

/* Auth Hero - full page background */
.auth-hero {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e3a5f 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 2rem 0;
    /* Break out of container-fluid padding */
    margin: -1rem calc(-0.5 * var(--bs-gutter-x, 1.5rem)) 0;
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
}

/* Auth Card */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    animation: authCardIn 0.5s ease-out;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Header */
.auth-card__header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
    border-bottom: 1px solid #eef2f9;
}

.auth-card__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.auth-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    color: #0d6efd;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-card__icon--warning {
    background: rgba(255, 193, 7, 0.12);
    color: #e0a800;
}

.auth-card__icon--success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 0.375rem;
}

.auth-card__subtitle {
    font-size: 0.9375rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Card Body */
.auth-card__body {
    padding: 2rem;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form-label i {
    font-size: 0.75rem;
    color: #94a3b8;
}

.auth-form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #1a1f36;
    background: #f8faff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.auth-form-input::placeholder {
    color: #a0aec0;
}

.auth-form-input:focus {
    background: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.auth-form-input.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.auth-form-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.auth-form-error {
    font-size: 0.8125rem;
    color: #dc3545;
    margin-top: 0.375rem;
    padding-left: 0.25rem;
}

/* Remember Me / Forgot Password row */
.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.auth-form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-check-input {
    -webkit-appearance: none;
    appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    background: #f8faff;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
}

.auth-check-input:checked {
    background: #0d6efd;
    border-color: #0d6efd;
}

.auth-check-input:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4.5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    outline: none;
}

.auth-check-label {
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

.auth-form-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-form-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Primary Button */
.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    color: #fff;
}

.auth-btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.auth-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #4a5568;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.auth-btn-secondary:hover {
    background: #e2e8f0;
    color: #1a1f36;
    border-color: #cbd5e1;
    text-decoration: none;
}

/* Divider */
.auth-form-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    gap: 1rem;
}

.auth-form-divider::before,
.auth-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-form-divider span {
    font-size: 0.8125rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Success Message */
.auth-success-message {
    text-align: center;
    padding: 1.5rem;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    margin-bottom: 1.5rem;
}

.auth-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    color: #198754;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.auth-success-message p {
    font-size: 0.9375rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Card Footer */
.auth-card__footer {
    text-align: center;
    padding: 1rem 2rem;
    background: #f8faff;
    border-top: 1px solid #eef2f9;
}

.auth-footer-text {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.auth-footer-brand {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0d6efd;
    margin-left: 0.25rem;
}

/* Auth Page Responsive */
@media (max-width: 575px) {
    .auth-hero {
        padding: 1rem 0;
    }

    .auth-card__header {
        padding: 2rem 1.5rem 1.25rem;
    }

    .auth-card__body {
        padding: 1.5rem;
    }

    .auth-card__title {
        font-size: 1.25rem;
    }

    .auth-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ============================================
   DEV FEATURES - Explorer & Product Selection
   ============================================ */

/* ============================================
   EXPLORER - Modern Layout
   ============================================ */

/* Explorer Hero Banner */
/* Explorer Main Area */
/* ── Explorer Layout ── */
.explorer-main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1200px) 260px;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    margin: 1.5rem auto 2rem;
    padding: 0 1.5rem;
    align-items: start;
}

/* ── Sidebar (bubble, own column beside content) ── */
.explorer-sidebar {
    grid-column: 1;
    flex: none;
    position: sticky;
    top: 5rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e0e5ec;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    overflow: hidden;
}

.explorer-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #3b82f6, #60a5fa);
    opacity: 0.7;
}

/* ── Content Wrapper (takes remaining space) ── */
.explorer-content-wrapper {
    grid-column: 2;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e0e5ec;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

.explorer-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #3b82f6, #60a5fa);
    opacity: 0.7;
}

.explorer-sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.explorer-sidebar select.form-select {
    font-size: 0.8125rem;
    white-space: normal;
    text-overflow: ellipsis;
    overflow: hidden;
}

.explorer-sidebar__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.explorer-sidebar__load-btn {
    margin-top: 0.25rem;
}

.explorer-sidebar__divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.25rem 0;
}

.explorer-sidebar__info {
    font-size: 0.775rem;
    color: #94a3b8;
    line-height: 1.5;
}

.explorer-sidebar__info i {
    color: #0d6efd;
}

/* ── Pagination Bar (below products grid) ── */
.explorer-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    border-radius: 10px;
}

.explorer-pagination__info {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.explorer-pagination__controls {
    display: flex;
    gap: 0.375rem;
}

.explorer-pagination__per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}

/* ── Main Content ── */
.explorer-content {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Action Toolbar */
.explorer-action-toolbar {
    position: fixed;
    bottom: 3.5rem;
    left: 50%;
    width: 900px;
    transform: translateX(-50%) translateY(calc(100% + 3rem));
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
    gap: 1.25rem;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    pointer-events: none;
}

.explorer-action-toolbar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.explorer-action-toolbar__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.explorer-action-toolbar__label i {
    color: #60a5fa;
}

.explorer-action-toolbar__buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.explorer-action-toolbar__buttons .btn {
    transition: all 0.2s ease;
}

.explorer-action-toolbar__buttons .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.explorer-action-toolbar__buttons .btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Products Area */
.explorer-products {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    flex: 1;
}

.products-container {
    min-height: 450px;
    max-height: 72vh;
    overflow-y: auto;
    padding: 1.25rem;
    background: #f1f5f9;
}

/* Empty State */
.empty-state {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6c757d;
    padding: 2rem;
}

.empty-state__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #3b82f6;
    margin-bottom: 1.25rem;
}

.empty-state__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.empty-state__text {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}


/* ============================================
   RAW DATA VIEWER — Overview Tab
   ============================================ */

/* Modal chrome refinements */
#rawDataModal .modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
}

#rawDataModal .modal-header {
    background: #f8f9fb;
    border-bottom: 1px solid #e8eaed;
    padding: 1rem 1.5rem;
}

#rawDataModal .modal-header .modal-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    letter-spacing: -0.01em;
}

#rawDataModal .modal-body {
    padding: 1.5rem;
    background: #fff;
}

/* Raw data nav-tabs */
#rawDataTabNav {
    border-bottom: 2px solid #e5e7eb;
    gap: 0.125rem;
}

#rawDataTabNav .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.8375rem;
    padding: 0.625rem 1rem;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

#rawDataTabNav .nav-link:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
    background: transparent;
}

#rawDataTabNav .nav-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: transparent;
    font-weight: 600;
}

/* Overview container */
#overviewContent {
    background-color: #f3f4f6;
    border-radius: 10px;
    padding: 1.25rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Slim scrollbar for overview */
#overviewContent::-webkit-scrollbar {
    width: 5px;
}
#overviewContent::-webkit-scrollbar-track {
    background: transparent;
}
#overviewContent::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
#overviewContent::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Product cards */
#overviewContent > .card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

#overviewContent > .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

#overviewContent > .card > .card-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.875rem 1.125rem;
}

#overviewContent > .card > .card-header h5 {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

#overviewContent > .card > .card-header .badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
}

#overviewContent > .card > .card-body {
    padding: 0;
}

/* Accordion sections */
#overviewContent .accordion-item {
    border: none;
    border-bottom: 1px solid #edf0f3;
    margin-bottom: 0;
    border-radius: 0;
    background: transparent;
}

#overviewContent .accordion-item:last-child {
    border-bottom: none;
}

#overviewContent .accordion-button {
    background-color: #fafbfc;
    border-radius: 0;
    border-left: 3px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.125rem;
    color: #374151;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#overviewContent .accordion-button .fas {
    font-size: 0.8rem;
    opacity: 0.7;
}

#overviewContent .accordion-button .badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2em 0.55em;
    border-radius: 5px;
}

#overviewContent .accordion-button:not(.collapsed) {
    background-color: #eef2ff;
    border-left-color: #3b82f6;
    color: #1e40af;
    box-shadow: none;
}

#overviewContent .accordion-button:hover {
    background-color: #f0f2f7;
}

#overviewContent .accordion-button::after {
    width: 0.85rem;
    height: 0.85rem;
    background-size: 0.85rem;
    transition: transform 0.25s ease;
}

#overviewContent .accordion-body {
    background-color: #fff;
    border-left: 3px solid transparent;
    padding: 0;
}

#overviewContent .accordion-button:not(.collapsed) + .accordion-collapse .accordion-body {
    border-left-color: #3b82f6;
}

/* Smooth accordion collapse transition */
#overviewContent .accordion-collapse {
    transition: height 0.3s ease;
}

/* ── Tables inside accordion sections ── */
#overviewContent .table {
    margin-bottom: 0;
    font-size: 0.8125rem;
}

#overviewContent .table thead th {
    background-color: #f8f9fb;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

#overviewContent .table tbody td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

#overviewContent .table tbody tr:last-child td {
    border-bottom: none;
}

#overviewContent .table-hover tbody tr:hover td {
    background-color: #f8fafc;
}

#overviewContent .table tbody td code {
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 0.75rem;
    padding: 0.15em 0.4em;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    color: #0d6efd;
}

#overviewContent .table tbody td .badge {
    font-size: 0.65rem;
    font-weight: 600;
}

/* ── Detail expand rows + recursive nested tables ── */
#overviewContent .ov-detail-row > td {
    padding: 0 !important;
    background: transparent !important;
}

#overviewContent .ov-detail-body {
    background: #f9fafb;
    border-left: 3px solid #cbd5e1;
    border-radius: 0 0 8px 8px;
    padding: 0.875rem 1rem;
}

#overviewContent .ov-nested-table {
    background: transparent;
    margin-bottom: 0;
}

#overviewContent .ov-nested-table td {
    border-color: #f0f1f3;
    padding: 0.35rem 0.6rem;
    font-size: 0.7875rem;
    line-height: 1.5;
}

#overviewContent .ov-key-cell {
    color: #6b7280;
    white-space: nowrap;
    font-weight: 500;
}

#overviewContent .ov-nested-table .ov-nested-table {
    margin-left: 0.875rem;
    border-left: 2px solid #e5e7eb;
    padding-left: 0.125rem;
}

#overviewContent .ov-pre-wrap {
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    color: #1f2937;
}

#overviewContent .ov-array-item .btn {
    white-space: nowrap;
}

/* ── Expand/collapse buttons ── */
#overviewContent .ov-expand-btn {
    border-color: #d1d5db;
    color: #6b7280;
    border-radius: 5px;
    transition: all 0.15s ease;
}

#overviewContent .ov-expand-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

#overviewContent .ov-expand-btn[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

#overviewContent .ov-expand-btn .fa-chevron-down {
    transition: transform 0.25s ease;
}

/* ── Array item collapse chevrons ── */
#overviewContent .ov-arr-chevron {
    transition: transform 0.2s ease;
    font-size: 0.55rem;
}

/* ── Scripts section layout ── */
#overviewContent .border-bottom {
    border-bottom-color: #f0f1f3 !important;
}

#overviewContent .accordion-body pre {
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.65;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8f9fb;
}

/* ── List group items (Layout tab) ── */
#overviewContent .list-group-item {
    border-color: #f0f1f3;
    padding: 0.625rem 1rem;
    transition: background-color 0.15s ease;
}

#overviewContent .list-group-item:hover {
    background-color: #fafbfc;
}

/* Product group divider (multi-product view) */
.ov-group-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0 1.25rem;
}
.ov-group-divider::before,
.ov-group-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1d5db;
}
.ov-group-divider__label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ov-group-divider:first-child {
    margin-top: 0;
}

/* ── Product Hierarchy Visualization ── */
.hierarchy-legend {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.hierarchy-product-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    transition: margin-left 0.3s ease;
}

.hierarchy-product-wrapper .hierarchy-card {
    flex: 1;
    min-width: 0;
}

/* Hierarchy connector lines container */
.hierarchy-connector {
    display: flex;
    align-items: stretch;
    margin-right: 8px;
    min-width: fit-content;
    align-self: stretch;
}

/* Individual hierarchy line segments */
.hierarchy-line {
    display: inline-block;
    width: 16px;
    position: relative;
    min-height: 40px;
}

.hierarchy-line--vertical::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #94a3b8;
}

.hierarchy-line--spacer {
    /* Empty spacer for alignment */
}

.hierarchy-line--corner::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    height: 28px;
    width: 2px;
    background: #94a3b8;
}

.hierarchy-line--corner::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 28px;
    width: 8px;
    height: 2px;
    background: #94a3b8;
}

.hierarchy-line--tee::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #94a3b8;
}

.hierarchy-line--tee::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 28px;
    width: 8px;
    height: 2px;
    background: #94a3b8;
}

/* Depth-based visual styling */
.hierarchy-product-wrapper[data-depth="1"] .hierarchy-card {
    border-left: 3px solid #60a5fa;
}

.hierarchy-product-wrapper[data-depth="2"] .hierarchy-card {
    border-left: 3px solid #34d399;
}

.hierarchy-product-wrapper[data-depth="3"] .hierarchy-card {
    border-left: 3px solid #fbbf24;
}

.hierarchy-product-wrapper[data-depth="4"] .hierarchy-card {
    border-left: 3px solid #f472b6;
}

.hierarchy-product-wrapper[data-depth="5"] .hierarchy-card {
    border-left: 3px solid #93c5fd;
}

/* Parent product indicator */
.hierarchy-product-wrapper.has-children .hierarchy-card {
    border-left: 3px solid #3b82f6;
}

.hierarchy-product-wrapper.has-children .hierarchy-card > .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

/* Root product (depth 0) styling */
.hierarchy-product-wrapper[data-depth="0"] .hierarchy-card {
    border-left: 3px solid transparent;
}

.hierarchy-product-wrapper[data-depth="0"].has-children .hierarchy-card {
    border-left: 3px solid #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Depth classes for additional styling hooks */
.hierarchy-depth-1,
.hierarchy-depth-2,
.hierarchy-depth-3,
.hierarchy-depth-4,
.hierarchy-depth-5 {
    position: relative;
}

/* Subtle background gradient for child products */
.hierarchy-product-wrapper:not([data-depth="0"]) .hierarchy-card > .card-header {
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
}

/* Animation for hierarchy cards on load */
@keyframes hierarchyFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.hierarchy-product-wrapper[data-depth="1"] { animation-delay: 0.05s; }
.hierarchy-product-wrapper[data-depth="2"] { animation-delay: 0.1s; }
.hierarchy-product-wrapper[data-depth="3"] { animation-delay: 0.15s; }
.hierarchy-product-wrapper[data-depth="4"] { animation-delay: 0.2s; }
.hierarchy-product-wrapper[data-depth="5"] { animation-delay: 0.25s; }

/* Collapsible card chevron */
.hierarchy-card__chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.hierarchy-card__chevron.collapsed {
    transform: rotate(-180deg);
}

.modal-fullscreen #overviewContent {
    max-height: calc(100vh - 180px);
}

/* ============================================
   RAW DATA VIEWER — Raw JSON Tab (Monaco)
   ============================================ */

.raw-data-content {
    height: 70vh;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fafbfc;
}

.monaco-editor {
    border-radius: 10px;
}

/* Fullscreen raw data modal optimization */
.modal-fullscreen .raw-data-content {
    height: calc(100vh - 140px);
    border-radius: 0;
}

.modal-fullscreen .monaco-editor {
    border-radius: 0;
}

/* Fullscreen modal chrome */
#rawDataModal .modal-fullscreen .modal-content {
    border-radius: 0;
}

#rawDataModal .modal-fullscreen .modal-header {
    border-radius: 0;
}

/* Explorer responsive */
@media (max-width: 991px) {
    .explorer-main {
        grid-template-columns: 1fr;
    }

    .explorer-sidebar {
        grid-column: 1;
        width: 100%;
        position: static;
        border-radius: 12px;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: end;
    }

    .explorer-content-wrapper {
        grid-column: 1;
        padding: 0;
    }

    .explorer-sidebar__section {
        flex: 1;
        min-width: 160px;
    }

    .explorer-sidebar__load-btn {
        flex: 0 0 auto;
        width: auto;
        min-width: 140px;
        align-self: end;
    }

    .explorer-sidebar__divider {
        display: none;
    }

    .explorer-sidebar__info {
        width: 100%;
    }

    .explorer-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
}

@media (max-width: 576px) {
    .explorer-action-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .explorer-action-toolbar__buttons {
        justify-content: center;
        flex-wrap: wrap;
    }


    .explorer-sidebar {
        flex-direction: column;
    }

    .explorer-sidebar__load-btn {
        width: 100%;
    }
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Smooth transitions for state changes */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Loading spinner */
/* Alert improvements */
/* Status indicators */
/* Flash Messages Overlay */
.flash-messages-container {
    animation: slideInFromTop 0.2s ease-out;
}

.flash-messages-container .alert {
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: none;
    border-left: 4px solid;
    border-radius: 8px;
    width: 1000px;
}

.flash-messages-container .alert-danger {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #842029;
}

.flash-messages-container .alert-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #664d03;
}

.flash-messages-container .alert-success {
    background-color: #d1e7dd;
    border-left-color: #198754;
    color: #0f5132;
}

.flash-messages-container .alert-info {
    background-color: #cff4fc;
    border-left-color: #0dcaf0;
    color: #055160;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transport — Progress & Completion States */
.transport-success-state {
    display: none;
}

.transport-complete-banner {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.06) 0%, rgba(25, 135, 84, 0.02) 100%);
    border: 1px solid rgba(25, 135, 84, 0.25);
    border-left: 4px solid #198754;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    animation: bannerSlideIn 0.4s ease both;
}

.transport-complete-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transport-status-icon {
    font-size: 1.35rem;
    animation: successPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Warning state — completed with errors */
.transport-complete-banner[data-state="warning"] {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.06) 0%, rgba(255, 193, 7, 0.02) 100%);
    border-color: rgba(255, 193, 7, 0.25);
    border-left-color: #ffc107;
}

.transport-complete-icon-wrap[data-state="warning"] {
    background: rgba(255, 193, 7, 0.1);
}

/* Danger state — transport failed */
.transport-complete-banner[data-state="danger"] {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.06) 0%, rgba(220, 53, 69, 0.02) 100%);
    border-color: rgba(220, 53, 69, 0.25);
    border-left-color: #dc3545;
}

.transport-complete-icon-wrap[data-state="danger"] {
    background: rgba(220, 53, 69, 0.1);
}

@keyframes successPop {
    0%   { transform: scale(0.3); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1);   opacity: 1; }
}

@keyframes bannerSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Row slide-in for live issue entries */
#inlineIssuesList tr {
    animation: issueRowSlideIn 0.3s ease both;
}

@keyframes issueRowSlideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Inline issues accordion refinements */
#issuesAccordion .accordion-button {
    background: transparent;
    box-shadow: none;
}

#issuesAccordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: inherit;
}

/* ── Compare Summary ────────────────────────────────────────── */

.cmp-summary {
    overflow: hidden;
}

/* ── Domains row ── */
.cmp-summary__domains {
    display: flex;
    align-items: center;
    padding: 0.85rem 0.25rem;
    gap: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.cmp-summary__domain {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.cmp-summary__domain-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.cmp-summary__domain-badge--source {
    background: rgba(13, 202, 240, 0.12);
    color: #0dcaf0;
}

.cmp-summary__domain-badge--target {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.cmp-summary__domain-detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cmp-summary__domain-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    line-height: 1;
}

.cmp-summary__domain-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-summary__domain-sub {
    font-size: 0.72rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-summary__domain-arrow {
    color: #adb5bd;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ── Products collapsible ── */
.cmp-summary__products-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.6rem 0.25rem;
    border: none;
    background: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 6px;
}

.cmp-summary__products-toggle:hover {
    background: #f8f9fa;
}

.cmp-summary__toggle-icon {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.cmp-summary__products-toggle[aria-expanded="false"] .cmp-summary__toggle-icon {
    transform: rotate(-90deg);
}

.cmp-summary__product-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 0 0.25rem;
}

.cmp-summary__product-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 0.82rem;
}

.cmp-summary__product-icon {
    color: #0d6efd;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.cmp-summary__product-info {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
    flex: 1;
}

.cmp-summary__product-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-summary__product-id {
    font-size: 0.72rem;
    color: #6c757d;
    white-space: nowrap;
}

.cmp-summary__product-version {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    flex-shrink: 0;
    margin-left: auto;
}

/* User profile styles */
/* Settings page */
.settings-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #6c757d;
    padding: 0 0.25rem;
    margin-bottom: 0.5rem;
}

.settings-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row:hover {
    background: rgba(0, 0, 0, 0.025);
}

.settings-row-label {
    font-size: 0.925rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.15rem;
}

.settings-row-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.35;
}

.settings-row .form-check-input[role="switch"] {
    cursor: pointer;
    width: 2.75em;
    height: 1.45em;
    flex-shrink: 0;
    margin: 0;
}
/* User index styles */
.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    margin: 0 0.125rem;
    border-radius: 4px;
}
/* User form styles */
/* Responsive adjustments for specific components */
@media (max-width: 768px) {
    .step {
        flex-direction: column;
    }

    .profile-header {
        padding: 1.5rem;
        text-align: center;
    }

    .info-card {
        padding: 1rem;
    }

    .password-form {
        padding: 1.5rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .action-buttons .btn {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }

    .filter-form .col-md-3 {
        margin-bottom: 0.5rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   Page Hero — Universal premium header component
   Usage: .page-hero with modifier --blue, --emerald, --slate
   ══════════════════════════════════════════════════════════════ */

.page-hero {
    position: relative;
    padding: 1.75rem 0;
    overflow: hidden;
    margin: -1rem calc(-0.5 * var(--bs-gutter-x, 1.5rem)) 0;
    padding-left: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    padding-right: calc(0.5 * var(--bs-gutter-x, 1.5rem));
    background: linear-gradient(135deg, #1e293b 0%, #334155 40%, #475569 100%);
}


/* ── SVG Background ── */
.page-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-hero__bg svg {
    width: 100%;
    height: 100%;
}


/* ── Content layout ── */
.page-hero__content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.page-hero__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-hero__text {
    flex: 1;
    min-width: 0;
}

.page-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.page-hero__subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0.3rem 0 0;
    line-height: 1.4;
}

.page-hero__actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

/* ── Action buttons ── */
.page-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.page-hero__btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Breadcrumb-style badge ── */
/* ── Responsive ── */
@media (max-width: 768px) {
    .page-hero {
        padding: 1.75rem 0;
    }

    .page-hero__content {
        flex-direction: column;
        text-align: center;
    }

    .page-hero__title {
        font-size: 1.375rem;
    }

    .page-hero__actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 1.5rem 0;
    }

    .page-hero__icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        border-radius: 12px;
    }
}

/* Compare page styles */
.client-header {
    background: var(--primary-color);
    border-radius: 10px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Element list styling for comparison results */
.element-list-item.active {
    background-color: var(--primary-color);
    color: white;
}

.element-list-item.active .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.element-list-item[data-type="source_only"] {
    border-left: 3px solid #0dcaf0;
}

.element-list-item[data-type="target_only"] {
    border-left: 3px solid #6c757d;
}

.element-list-item[data-type="common"] {
    border-left: 3px solid #198754;
}

/* Client page styles */
/* Client form styles */
/* ============================================
   DEV FEATURES - Hierarchy, Sort, Accordion
   ============================================ */

.hierarchy-container .product-hierarchy-item:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.hierarchy-container .product-hierarchy-item.selectable-product {
    transition: background-color 0.2s ease;
}

.hierarchy-container .product-hierarchy-item.active {
    background-color: #0d6efd !important;
    color: white !important;
}

.hierarchy-container .product-hierarchy-item.active .text-primary {
    color: white !important;
}

.hierarchy-container .product-hierarchy-item.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hierarchy-node {
    position: relative;
}

.children-container {
    border-left: 1px dashed #dee2e6;
    margin-left: 15px;
}

.tooltip-wide .tooltip-inner {
    max-width: 400px;
}

/* Sort indicators for table columns */
.sort-indicator {
    transition: color 0.2s ease;
}

.sort-indicator:hover {
    color: #0d6efd !important;
}

.sort-indicator.current-sort {
    font-weight: 600;
    color: #0d6efd !important;
}

.sort-indicator.current-sort i {
    color: #0d6efd;
}

#clientAccordion .accordion-button::after {
    display: none;
}
#clientAccordion .accordion-button .accordion-chevron {
    transition: transform 0.2s ease; margin-left: 0.4rem;
}
#clientAccordion .accordion-button:not(.collapsed) .accordion-chevron {
    transform: rotate(180deg);
}

/* ============================================
   HELP MODAL
   ============================================ */
.help-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.help-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.help-modal__header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-modal__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.help-modal__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
    letter-spacing: -0.01em;
}

.help-modal__subtitle {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0.15rem 0 0;
}

.help-modal__body {
    padding: 1.25rem 1.75rem 1.75rem;
}

/* Help Grid — two-column layout */
.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

/* Help Section — each card block */
.help-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #f0f0f5;
}

.help-section__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.help-section__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.help-section__icon--primary {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.help-section__icon--accent {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.help-section__title {
    font-size: 0.85rem;
    font-weight: 650;
    margin: 0;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.help-section__content {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.55;
}

/* Help Steps — numbered list */
.help-steps {
    list-style: none;
    counter-reset: help-step;
    padding: 0;
    margin: 0;
}

.help-steps li {
    counter-increment: help-step;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.help-steps li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.help-steps li:first-child {
    padding-top: 0;
}

.help-steps li::before {
    content: counter(help-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.help-steps li strong {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.83rem;
}

.help-steps li span {
    color: #64748b;
    font-size: 0.8rem;
    flex-basis: 100%;
    padding-left: 1.65rem;
}

/* Help List — bullet items */
.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.help-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.help-list li:first-child {
    padding-top: 0;
}

.help-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
    margin-top: 0.4em;
}

.help-list li strong {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.83rem;
}

.help-list li span {
    color: #64748b;
    font-size: 0.8rem;
    flex-basis: 100%;
    padding-left: 1.3rem;
}

/* Help Hint — small tip text */
.help-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.75rem 0 0;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}
