        img,
        svg,
        canvas,
        video {
            max-width: 100%;
        }
        .table thead th {
            background: #2d5a27 !important;
            color: white !important;
            border: none !important;
            vertical-align: middle !important;
            text-align: center !important;
        }
        .spinner-border {
            color: var(--brand-900);
        }
        .rank-badge {
            padding: 5px 10px;
            border-radius: 15px;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
            line-height: 1;
            max-width: 100%;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: keep-all;
        }
        /* 表格排序样式 */
        .sortable {
            position: relative;
            transition: background-color 0.2s;
        }
        .table thead th.sortable:hover {
            background-color: #2d5a27 !important;
            color: white !important;
        }
        
        /* 表格优化样式 */
        .table-responsive {
            border-radius: 10px;
        }
        .paged-container {
            --table-row-height: 40px;
            max-height: calc(35 * var(--table-row-height));
            overflow-y: auto;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }
        .main-two-col-row {
            align-items: stretch;
        }
        @media (min-width: 992px) {
            .main-two-col-row > [class*="col-lg-"] {
                display: flex;
                flex-direction: column;
            }
        }
        .table-page-controls .form-select {
            background-color: transparent;
            color: #ffffff;
            border-color: rgba(255,255,255,0.5);
        }
        .table-page-controls .form-select option {
            color: #000;
        }
        
        /* 表格基础样式 - 所有表格单元格居中对齐 */
        .table th, .table td {
            text-align: center !important;
            vertical-align: middle !important;
        }

        .username-display {
            min-width: 0;
        }
        
        /* 用户表格特定样式 */
        #users-table td {
            vertical-align: middle;
            padding: 12px 8px;
        }
        
        /* 响应式优化 */
        @media (max-width: 768px) {
            .table th, .table td {
                padding: 8px 4px;
                font-size: 0.875rem;
            }
            
            .btn-sm {
                padding: 0.25rem 0.5rem;
                font-size: 0.75rem;
            }
            
            /* 在小屏幕上进一步限制QQ昵称列宽度 */
            .table th:nth-child(2), .table td:nth-child(2) {
                max-width: 80px !important;
                width: 80px !important;
            }
            
            /* 用户名列在小屏幕上的优化 */
            .table th:nth-child(3), .table td:nth-child(3) {
                max-width: 120px !important;
                width: 120px !important;
            }
        }

        @media (max-width: 576px) {
            .rank-badge {
                padding: 4px 8px;
                border-radius: 14px;
                font-size: 0.75rem;
            }
        }
        
        @media (max-width: 576px) {
            /* 超小屏幕优化 */
            .table th:nth-child(2), .table td:nth-child(2) {
                max-width: 60px !important;
                width: 60px !important;
            }
            
            .table th:nth-child(3), .table td:nth-child(3) {
                max-width: 100px !important;
                width: 100px !important;
            }

            #guildCard .d-flex.align-items-center.justify-content-between {
                flex-wrap: wrap;
                gap: 10px;
            }

            #guildCard .d-flex.align-items-center.justify-content-between > div:last-child {
                width: 100%;
            }

            #guildCard .d-flex.align-items-center.justify-content-between > div:last-child .btn {
                width: 100%;
            }

            #profileModal .mb-2.d-flex.align-items-center.justify-content-between {
                flex-wrap: wrap;
                gap: 10px;
            }

            #profileModal #profileSeasonSelect {
                width: 100% !important;
            }

            #profileModal #profileSeasonAllBtn {
                width: 100%;
            }
        }
        .btn-primary {
            background-color: #2d5a27;
            border-color: #2d5a27;
        }
        .btn-primary:hover {
            background-color: #4a7c59;
            border-color: #4a7c59;
        }
        .btn-outline-primary {
            color: #2d5a27;
            border-color: #2d5a27;
        }
        .btn-outline-primary:hover {
            background-color: #2d5a27;
            border-color: #2d5a27;
        }
        .btn-qq-login {
            backdrop-filter: blur(6px);
            background: rgba(255,255,255,0.15);
            border-color: transparent;
        }
        .btn-qq-login:hover {
            background: rgba(255,255,255,0.25);
        }
        
        /* 搜索选择器样式 */
        .search-select-container {
            position: relative;
            width: 100%;
        }
        
        .search-select-input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ced4da;
            border-radius: 0.375rem;
            font-size: 1rem;
            line-height: 1.5;
            background-color: #fff;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 6 6-6 6'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 16px 12px;
            cursor: pointer;
        }
        
        .search-select-input:focus {
            border-color: rgba(45, 90, 39, 0.55);
            outline: 0;
            box-shadow: 0 0 0 0.25rem var(--ring);
        }
        
        .search-select-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            z-index: 1000;
            max-height: 200px;
            overflow-y: auto;
            background-color: #fff;
            border: 1px solid #ced4da;
            border-top: none;
            border-radius: 0 0 0.375rem 0.375rem;
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
            display: none;
        }
        
        .search-select-option {
            padding: 8px 12px;
            cursor: pointer;
            border-bottom: 1px solid #f8f9fa;
            transition: background-color 0.15s ease-in-out;
        }
        
        .search-select-option:hover,
        .search-select-option.highlighted {
            background-color: #e9ecef;
        }
        
        .search-select-option.selected {
            background-color: #2d5a27;
            color: white;
        }
        
        .search-select-option:last-child {
            border-bottom: none;
        }
        
        .search-select-no-results {
            padding: 8px 12px;
            color: #6c757d;
            font-style: italic;
            text-align: center;
        }
        
        .search-highlight {
            background-color: #fff3cd;
            font-weight: bold;
        }
        
        /* 页脚样式 */
        .footer {
            background:
                radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
                linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            color: white;
            padding: 40px 0 20px 0;
            margin-top: 50px;
        }
        
        .footer h5 {
            color: #a8d5a8;
            margin-bottom: 20px;
            font-weight: bold;
        }
        
        .footer a {
            color: #ffffff;
            text-decoration: none;
            transition: color 0.3s ease;
            display: block;
            padding: 5px 0;
        }
        
        .footer a:hover {
            color: #a8d5a8;
        }
        
        .footer .copyright {
            border-top: 1px solid #4a7c59;
            margin-top: 30px;
            padding-top: 20px;
            text-align: center;
            color: #a8d5a8;
            font-size: 0.9rem;
        }
        
        .footer .social-links {
            margin-bottom: 15px;
        }
        
        .footer .social-links a {
            display: inline-block;
            margin-right: 15px;
            padding: 8px 15px;
            background: rgba(255,255,255,0.1);
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }
        
        .footer .social-links a:hover {
            background: rgba(255,255,255,0.2);
        }

        /* 移动端响应式设计 */
        @media (max-width: 768px) {
            body {
                -webkit-text-size-adjust: 100%;
                -webkit-tap-highlight-color: transparent;
            }
            
            /* 移动端禁用表格内容的hover效果 */
            .table tbody .sortable:hover {
                background-color: transparent !important;
                color: inherit !important;
            }
            
            .container-fluid {
                padding: 10px;
            }
            
            .card {
                margin-bottom: 15px;
                border-radius: 10px;
            }
            
            .card-header {
                padding: 10px 15px;
                border-radius: 10px 10px 0 0 !important;
            }
            
            .card-header h1 {
                font-size: 1.5rem !important;
            }
            
            .card-header h5 {
                font-size: 1.1rem !important;
            }
            
            #pills-tab.nav-pills {
                display: flex;
                flex-wrap: nowrap;
                justify-content: flex-start;
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior-x: contain;
                gap: 6px;
                padding-bottom: 8px;
                scrollbar-gutter: stable both-edges;
            }

            #pills-tab.nav-pills .nav-item {
                flex: 0 0 auto;
            }

            #pills-tab.nav-pills .nav-link {
                margin: 0;
                padding: 8px 12px;
                font-size: 0.9rem;
                white-space: nowrap;
                min-width: auto;
            }

            #pills-tab.nav-pills .nav-link i {
                display: none;
            }
            
            /* 表格响应式 */
            .table-responsive {
                font-size: 0.8rem;
                border-radius: 10px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .table th, .table td {
                padding: 8px 4px;
                white-space: nowrap;
                min-width: 60px;
                font-size: 0.8rem !important;
                vertical-align: middle !important;
                text-align: center !important;
            }
            
            /* 移除表格列的特殊背景色 */
            .table th:nth-child(4), 
            .table td:nth-child(4) {
                background-color: transparent;
            }
            
            /* 按钮优化 */
            .btn {
                padding: 12px 16px;
                margin: 3px;
                font-size: 0.9rem;
                min-height: 44px; /* 符合移动端触摸标准 */
                border-radius: 8px;
                transition: all 0.2s ease;
            }
            
            .btn-sm {
                padding: 8px 12px;
                font-size: 0.8rem;
                min-height: 36px;
            }
            
            /* 表格内按钮特殊处理 */
            .table .btn {
                padding: 6px 10px;
                margin: 1px;
                font-size: 0.75rem;
                min-height: 32px;
            }
            
            /* 触摸反馈 */
            .btn:active {
                transform: scale(0.98);
            }
            
            /* 统计卡片 */
            .stat-card {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .stat-number {
                font-size: 2rem;
            }
            
            /* 列布局调整 */
            .col-lg-8, .col-lg-4, .col-md-12 {
                margin-bottom: 15px;
            }
            
            /* 模态框优化 */
            .modal-dialog {
                margin: 10px;
            }
            
            .modal-body {
                padding: 15px;
            }
            
            /* 表单优化 */
            .form-control, .form-select {
                font-size: 16px; /* 防止iOS缩放 */
            }
            
            /* 图表容器 */
            #pointsChart {
                max-height: 250px;
            }

            /* 数据管理按钮统一尺寸 */
            .card-body.d-flex.flex-wrap.justify-content-center.align-items-center.gap-2 .btn {
                flex: 1 1 220px;
                min-width: 160px;
                max-width: 100%;
                min-height: 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
            
            /* 页脚移动端优化 */
            .footer {
                padding: 20px 0 15px 0;
                margin-top: 30px;
            }
            
            .footer .row {
                margin: 0;
            }
            
            .footer .col-md-3 {
                margin-bottom: 20px;
                padding: 0 15px;
            }
            
            .footer h5 {
                font-size: 1rem;
                margin-bottom: 10px;
            }
            
            .footer p {
                font-size: 0.8rem !important;
                line-height: 1.4 !important;
            }
            
            .footer a {
                font-size: 0.85rem;
                padding: 3px 0;
            }
            
            .footer .copyright {
                margin-top: 20px;
                padding-top: 15px;
                font-size: 0.8rem;
            }
            
            .footer .copyright img {
                height: 60px !important;
                margin-top: 10px;
            }
            
            /* 标题移动端优化 */
            .card-header {
                flex-direction: column !important;
                align-items: flex-start !important;
            }
            
            .card-header h1 {
                font-size: 1.2rem !important;
                margin-bottom: 10px !important;
                display: flex;
                align-items: center;
                flex-wrap: nowrap;
            }
            
            .card-header h1 img {
                height: 40px !important;
                width: 40px !important;
                margin-right: 8px !important;
            }
            
            /* 用户状态区域移动端优化 */
            #user-status-area {
                width: 100%;
                margin-top: 10px;
            }
            
            #auth-buttons {
                display: flex !important;
                gap: 8px;
                flex-wrap: wrap;
            }
            
            #auth-buttons .btn {
                flex: 1;
                min-width: 120px;
                padding: 10px 15px;
                font-size: 0.9rem;
                min-height: 42px;
            }
            
            #user-info {
                display: flex !important;
                flex-direction: column;
                gap: 8px;
                width: 100%;
            }
            
            #user-info .btn {
                width: 100%;
                margin: 2px 0;
            }
        }
        
        @media (max-width: 576px) {
            .container-fluid {
                padding: 5px;
            }
            
            .card-header h1 {
                font-size: 1.1rem !important;
            }
            
            .card-header h1 img {
                height: 35px !important;
                width: 35px !important;
                margin-right: 6px !important;
            }
            
            .nav-pills .nav-link {
                padding: 6px 10px;
                font-size: 0.8rem;
            }

            #pills-quiz .card-header.d-flex.align-items-center.justify-content-between {
                flex-wrap: wrap;
                gap: 10px;
            }

            #pills-quiz .card-header.d-flex.align-items-center.justify-content-between > div:last-child {
                width: 100%;
                flex-wrap: wrap;
            }

            #quizStartDifficulty,
            #quizStartCategory {
                width: 100% !important;
                min-width: 0;
            }

            #pills-quiz button[onclick="startQuizSession()"] {
                width: 100%;
            }
            
            .table-responsive {
                font-size: 0.7rem;
            }
            
            .btn {
                padding: 8px 12px;
                font-size: 0.8rem;
            }
            
            .stat-number {
                font-size: 1.8rem;
            }
            
            /* 隐藏部分列以节省空间 - 优化版本 */
            .table th:nth-child(5), 
            .table td:nth-child(5) {
                display: none;
            }
            
            .table th:nth-child(6), 
            .table td:nth-child(6) {
                font-size: 0.7rem;
                padding: 4px 2px;
            }
            
            /* 页脚小屏幕优化 */
            .footer {
                padding: 15px 0 10px 0;
                margin-top: 20px;
            }
            
            .footer .col-md-3 {
                margin-bottom: 15px;
                padding: 0 10px;
            }
            
            .footer h5 {
                font-size: 0.9rem;
                margin-bottom: 8px;
            }
            
            .footer p {
                font-size: 0.75rem !important;
                line-height: 1.3 !important;
            }
            
            .footer a {
                font-size: 0.8rem;
                padding: 2px 0;
            }
            
            .footer .copyright {
                margin-top: 15px;
                padding-top: 10px;
                font-size: 0.75rem;
            }
            
            .footer .copyright img {
                height: 50px !important;
                margin-top: 8px;
            }
            
            /* 登录注册按钮小屏幕优化 */
            #auth-buttons .btn {
                min-width: 100px;
                padding: 8px 12px;
                font-size: 0.85rem;
                min-height: 38px;
            }
            
            /* 用户信息区域小屏幕优化 */
            #user-info .btn {
                padding: 8px 12px;
                font-size: 0.8rem;
                min-height: 36px;
            }
        }

        :root {
            --brand-900: #2d5a27;
            --brand-700: #4a7c59;
            --surface: rgba(255, 255, 255, 0.95);
            --surface-2: rgba(255, 255, 255, 0.98);
            --text: #0F172A;
            --muted: #475569;
            --border: rgba(15, 23, 42, 0.12);
            --hover: rgba(45, 90, 39, 0.10);
            --ring: rgba(168, 213, 168, 0.75);
            --felt-line: rgba(0, 0, 0, 0.06);
            --felt-speck: rgba(255, 255, 255, 0.05);
        }

        body {
            background:
                radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.10), transparent 46%),
                radial-gradient(circle at 70% 30%, rgba(0, 0, 0, 0.12), transparent 52%),
                repeating-linear-gradient(135deg, transparent 0 14px, var(--felt-line) 14px 15px),
                radial-gradient(circle at 50% 50%, transparent 0 70%, rgba(0, 0, 0, 0.18) 100%),
                linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
            color: var(--text);
            font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
            overflow-x: hidden;
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
            padding-bottom: env(safe-area-inset-bottom);
        }

        .container-fluid {
            max-width: 1680px;
            margin: 0 auto;
            padding: 18px;
        }

        @media (min-width: 1600px) {
            .container-fluid {
                max-width: 1920px;
            }
        }

        .card {
            background: var(--surface);
            border: 1px solid rgba(15, 23, 42, 0.06);
            position: relative;
            isolation: isolate;
            border-radius: 16px;
            overflow: hidden;
        }

        .app-shell {
            background: rgba(255, 255, 255, 0.86);
            border-color: rgba(15, 23, 42, 0.12);
            box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
            border-radius: 22px;
            overflow: hidden;
        }

        .app-shell::before {
            opacity: 0.42;
        }

        .card::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.26), transparent 56%),
                radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.14), transparent 48%),
                repeating-linear-gradient(0deg, transparent 0 12px, rgba(255, 255, 255, 0.03) 12px 13px),
                radial-gradient(circle at 14% 62%, var(--felt-speck), transparent 40%),
                radial-gradient(circle at 62% 76%, rgba(0, 0, 0, 0.03), transparent 42%);
            border-radius: inherit;
            pointer-events: none;
            mix-blend-mode: soft-light;
            opacity: 0.55;
            z-index: 0;
        }

        .card > * {
            position: relative;
            z-index: 1;
        }

        .card-header {
            background: var(--brand-900);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            border-top-left-radius: inherit !important;
            border-top-right-radius: inherit !important;
        }

        .card-header small.text-muted {
            color: rgba(255, 255, 255, 0.85) !important;
        }

        .stat-card {
            background:
                radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.08), transparent 58%),
                linear-gradient(135deg, rgba(45, 90, 39, 1) 0%, rgba(74, 124, 89, 1) 100%);
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: #ffffff;
            border-radius: 14px;
            box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
        }

        #stats-overview .stat-card {
            padding: 22px 18px;
            min-height: 124px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-align: center;
        }

        .stat-number {
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.05;
        }

        #stats-overview .stat-number {
            font-size: 2.75rem;
        }

        #stats-overview .stat-card > div:not(.stat-number) {
            font-size: 0.95rem;
            font-weight: 650;
            opacity: 0.92;
        }

        .table-hover tbody tr:hover {
            background-color: var(--hover);
        }

        .table tbody .sortable:hover {
            background-color: var(--hover);
            color: inherit;
        }

        .sort-indicator {
            color: rgba(255, 255, 255, 0.9);
        }

        .btn {
            transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
        }

        .btn:hover {
            transform: none;
        }

        .btn:focus-visible,
        .nav-link:focus-visible,
        .search-select-input:focus-visible,
        .sortable:focus-visible {
            outline: none;
            box-shadow: 0 0 0 0.25rem var(--ring);
        }

        a:focus-visible {
            outline: 3px solid var(--ring);
            outline-offset: 2px;
            border-radius: 6px;
        }

        .form-control,
        .form-select,
        .search-select-input {
            background-color: var(--surface-2);
            border-color: rgba(15, 23, 42, 0.16);
            color: var(--text);
        }

        .form-control:focus,
        .form-select:focus,
        .search-select-input:focus {
            border-color: rgba(45, 90, 39, 0.55);
            box-shadow: 0 0 0 0.25rem var(--ring);
        }

        .modal-content {
            background: var(--surface-2);
            color: var(--text);
        }

        .modal-backdrop.show {
            opacity: 0.62;
            background-color: rgba(9, 22, 9, 0.92);
        }

        .modal-dialog {
            margin: 1.25rem auto;
            display: flex;
            align-items: center;
            min-height: calc(100% - var(--bs-modal-margin, 1.25rem) * 2);
        }

        .modal-content {
            border-radius: 16px;
            border: 1px solid rgba(0, 0, 0, 0.32);
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
            overflow: hidden;
        }

        .modal-header {
            background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
            color: #ffffff;
            border-bottom: 1px solid rgba(255, 255, 255, 0.18);
            padding: 16px 18px;
        }

        .modal-title {
            font-weight: 700;
            letter-spacing: 0.2px;
        }

        .modal-header .btn-close {
            filter: invert(1) grayscale(1);
            opacity: 0.85;
        }

        .modal-header .btn-close:hover {
            opacity: 1;
        }

        .modal-body {
            padding: 18px;
            overflow: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        .modal-footer {
            padding: 14px 18px;
            background: rgba(45, 90, 39, 0.04);
            border-top: 1px solid rgba(15, 23, 42, 0.08);
        }

        .modal-section {
            background: rgba(255, 255, 255, 0.78);
            border: 1px solid rgba(15, 23, 42, 0.10);
            border-radius: 14px;
            padding: 14px;
        }

        .modal-section-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 10px;
        }

        .modal-kv {
            display: grid;
            gap: 8px;
        }

        .modal-kv-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(45, 90, 39, 0.05);
            border: 1px solid rgba(45, 90, 39, 0.10);
        }

        .modal-kv-key {
            color: rgba(15, 23, 42, 0.72);
            font-weight: 600;
            font-size: 0.9rem;
            white-space: nowrap;
        }

        .modal-kv-value {
            color: rgba(15, 23, 42, 0.92);
            font-weight: 600;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
            word-break: break-word;
        }

        .modal-kv-value code {
            font-size: 0.82rem;
            color: rgba(15, 23, 42, 0.82);
            word-break: break-all;
        }

        .modal-body .alert {
            border-radius: 12px;
        }

        .modal-body .table {
            margin-bottom: 0;
        }

        .modal-body .form-label {
            font-weight: 600;
            color: #1f2a1f;
        }

        .modal-body .form-text,
        .modal-body .text-muted {
            color: rgba(15, 23, 42, 0.72) !important;
        }

        .modal-body .btn-close:focus-visible,
        .modal-header .btn-close:focus-visible {
            outline: none;
            box-shadow: 0 0 0 0.25rem var(--ring);
        }

        @media (max-width: 576px) {
            .modal-dialog {
                margin: 0.75rem;
            }

            .modal-content {
                border-radius: 14px;
            }

            .modal-header {
                padding: 14px 14px;
            }

            .modal-body {
                padding: 14px;
            }

            .modal-footer {
                padding: 12px 14px;
            }

            .modal-footer {
                flex-wrap: wrap;
                gap: 10px;
            }

            .modal-footer .btn {
                flex: 1 1 auto;
                min-width: 120px;
            }

            .modal-body .input-group {
                flex-wrap: wrap;
                gap: 10px;
            }

            .modal-body .input-group > .form-control {
                flex: 1 0 100%;
                width: 100%;
                border-radius: 12px !important;
            }

            .modal-body .input-group > .btn {
                flex: 1 0 calc(50% - 5px);
                border-radius: 12px !important;
            }
        }

        @supports (height: 100dvh) {
            .modal-dialog {
                min-height: calc(100dvh - var(--bs-modal-margin, 1.25rem) * 2);
            }

            .modal-content {
                max-height: calc(100dvh - var(--bs-modal-margin, 1.25rem) * 2);
            }
        }

        @supports not (height: 100dvh) {
            .modal-dialog {
                min-height: calc(100vh - var(--bs-modal-margin, 1.25rem) * 2);
            }

            .modal-content {
                max-height: calc(100vh - var(--bs-modal-margin, 1.25rem) * 2);
            }
        }

        @media (max-width: 768px) {
            #pills-tab.nav-pills {
                padding-bottom: 8px;
            }
        }

        .page-header h1 {
            font-weight: 800;
            letter-spacing: 0.2px;
            line-height: 1.1;
            font-size: clamp(1.25rem, 1vw + 1rem, 2rem);
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .card {
            border-radius: 18px;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
        }

        .card-header {
            padding: 14px 18px;
        }

        .card-header h5 {
            font-weight: 700;
            letter-spacing: 0.2px;
        }

        .card-body {
            padding: 18px;
        }

        #pills-tab.nav-pills {
            background: rgba(255, 255, 255, 0.50);
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 999px;
            padding: 10px 12px;
            gap: 8px;
        }

        .nav-pills .nav-link {
            border: 1px solid rgba(45, 90, 39, 0.18);
            padding: 10px 14px;
            font-weight: 650;
            color: var(--brand-900);
            background: rgba(255, 255, 255, 0.55);
        }

        .nav-pills .nav-link.active {
            background: var(--brand-900);
            border-color: var(--brand-900);
            color: #ffffff;
            box-shadow: 0 10px 22px rgba(45, 90, 39, 0.25);
        }

        .nav-pills .nav-link:hover {
            background: rgba(45, 90, 39, 0.12);
            color: var(--brand-900);
        }

        .nav-pills .nav-link.active:hover {
            background: var(--brand-900);
            color: #ffffff;
        }

        @media (max-width: 768px) {
            #stats-overview .stat-card {
                min-height: 104px;
                padding: 16px 14px;
            }

            #stats-overview .stat-number {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 576px) {
            #stats-overview .stat-card {
                min-height: 96px;
                padding: 14px 12px;
            }

            #stats-overview .stat-number {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .card-header {
                padding: 10px 14px;
            }

            .card-body {
                padding: 14px;
            }

            #pills-tab.nav-pills {
                border-radius: 16px;
                padding: 8px 10px;
                background: rgba(255, 255, 255, 0.6);
            }

            .nav-pills .nav-link {
                padding: 8px 12px;
                font-weight: 600;
            }
        }

        .stat-card {
            position: relative;
            overflow: hidden;
        }

        .stat-card::after {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.10), transparent 62%);
            pointer-events: none;
        }

        .stat-number {
            letter-spacing: -0.8px;
        }

        .table {
            background: rgba(255, 255, 255, 0.85);
            border-radius: 10px;
            overflow: hidden;
        }

        .paged-container thead th {
            position: sticky;
            top: 0;
            z-index: 3;
            box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
        }

        .table-hover {
            --bs-table-hover-bg: var(--hover);
        }

        .table tbody tr:nth-child(even) {
            background-color: rgba(15, 23, 42, 0.02);
        }

        th.sortable {
            cursor: pointer;
            user-select: none;
        }

        th.sortable:hover {
            filter: brightness(1.03);
        }

        .btn {
            border-radius: 10px;
        }

        .btn-primary {
            box-shadow: 0 10px 22px rgba(45, 90, 39, 0.22);
        }

        .btn-primary:active {
            box-shadow: 0 6px 14px rgba(45, 90, 39, 0.18);
        }

        .table-responsive {
            scrollbar-color: rgba(15, 23, 42, 0.35) rgba(255, 255, 255, 0.1);
            scrollbar-width: thin;
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }
    
