/* iOS Safari 滚动优化 */
body, .modal, .offcanvas, .scroll-container {
    -webkit-overflow-scrolling: touch;
}

/* 移除移动端点击高亮灰色方块 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 按钮点击反馈优化 */
.btn:active, .nav-item:active, .list-group-item:active {
    opacity: 0.7;
    transition: opacity 0.1s;
}

/* =========================================
   Global Variables & Theme Config
   ========================================= */
:root {
    /* 主色调 - 深空蓝灰 */
    --bg-body: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.6);
    
    /* 强调色 */
    --primary: #3b82f6;       /* Blue-500 */
    --primary-hover: #2563eb; /* Blue-600 */
    --accent: #06b6d4;        /* Cyan-500 */
    --success: #10b981;       /* Emerald-500 */
    --warning: #f59e0b;       /* Amber-500 */
    --danger: #ef4444;        /* Red-500 */
    
    /* 文字颜色 */
    --text-main: #f8fafc;     /* Slate-50 */
    --text-muted: #94a3b8;    /* Slate-400 */
    
    /* 边框 */
    --border-light: rgba(255, 255, 255, 0.08);
    
    /* 阴影 */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --safe-area-bottom: env(safe-area-inset-bottom);
}

/* 
   Accessibility: Forced Colors Mode Support
   (Addressing -ms-high-contrast deprecation)
*/
@media (forced-colors: active) {
    .btn, .form-control, .card, .navbar, .modal-content {
        forced-color-adjust: none;
        -ms-high-contrast-adjust: none; /* Explicitly disable legacy property to silence warnings */
    }
    
    /* Ensure borders are visible in high contrast mode */
    .btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-info {
        border: 1px solid ButtonText;
    }
}

/* Mobile Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + var(--safe-area-bottom)) 0;
    z-index: 1040; /* Above fixed-top */
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    padding: 4px;
}

.bottom-nav .nav-item.active {
    color: var(--danger);
}

.bottom-nav .nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

@media (max-width: 767.98px) {
    main.container {
        padding-bottom: 80px !important;
    }
}


/* =========================================
   Base Resets & Typography
   ========================================= */
body {
    font-family: 'Inter', system-ui, -apple-system, "Microsoft YaHei", sans-serif;
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

/* 表单与控件在深色主题下的可读性增强 */
.form-label {
    color: var(--text-main) !important;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-main) !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
    color: var(--text-main) !important;
}

.form-text, .text-muted {
    color: var(--text-muted) !important;
}

/* 输入框占位符颜色 */
::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.9;
}

/* 进度条文字对比度提升 */
.progress-bar {
    color: #fff !important;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* =========================================
   Bootstrap Overrides (Dark Glass Theme)
   ========================================= */

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Cards (Glassmorphism) */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-glass);
    border-radius: 16px;
    margin-bottom: 24px;
}

.admin-dashboard .card.text-center {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-dashboard .card.text-center:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    border-color: rgba(59, 130, 246, 0.25);
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 1.5rem;
}

.card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.admin-dashboard .card-body {
    padding: 1.75rem;
    min-height: 180px;
}

/* 文字颜色优化 - 提高对比度 */
:root {
    /* ...原有变量保持不变... */
    --text-muted: #cbd5e1;    /* Slate-300，更亮一点 */
}

.text-muted {
    color: var(--text-muted) !important;
}

/* 智能播报卡片优化 */
.bg-glass {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-glass .text-muted {
    color: #e2e8f0 !important; /* 强制更亮的颜色 */
}

/* 视频生成卡片优化 */
.admin-dashboard .card p.text-muted {
    color: #d1d5db !important;
}

/* 区域历史地图深色适配 */
#region-map .leaflet-tile-pane {
    filter: brightness(0.8) contrast(1.2) hue-rotate(180deg) invert(1);
}
/* 恢复标记的颜色，不让它被反转 */
#region-map .leaflet-marker-icon, 
#region-map .leaflet-popup-pane,
#region-map .leaflet-overlay-pane {
    filter: invert(1) hue-rotate(180deg) contrast(0.8) brightness(1.2);
}

/* 区域列表滚动条美化 */
.table-responsive::-webkit-scrollbar {
    width: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}
.table {
    color: var(--text-main);
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-table-hover-color: var(--text-main);
}

.table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
    white-space: nowrap;
}

.table td {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem;
    vertical-align: middle;
    color: var(--text-main);
}

.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: var(--text-main);
}

/* 强制覆盖 Bootstrap 可能的白色背景 */
.table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--text-main);
    box-shadow: none;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-1px);
}

.admin-dashboard .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.5);
}
.admin-dashboard .btn-success:hover { transform: translateY(-1px); }

.admin-dashboard .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.5);
}
.admin-dashboard .btn-danger:hover { transform: translateY(-1px); }

.admin-dashboard .btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5b7 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.5);
}
.admin-dashboard .btn-info:hover { transform: translateY(-1px); }

.admin-dashboard .btn-secondary {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(156, 163, 175, 0.5);
}
.admin-dashboard .btn-secondary:hover { transform: translateY(-1px); }

.admin-dashboard .card .btn { min-width: 140px; }

/* =========================================
   Custom Components
   ========================================= */

/* Map Container */
#map {
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-light);
    background: #0f172a;
    overflow: hidden;
}

/* Map Floating Title */
.map-floating-title {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    z-index: 999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: title-pulse 2s infinite;
}

@keyframes title-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Tech Table (Specific Override) */
.tech-table {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

/* Earthquake Markers */
.earthquake-marker {
    background: transparent !important;
    border: none !important;
}

.pulse-marker-container {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.marker-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.9);
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    padding: 2rem 0;
    color: var(--text-muted);
}

/* Magnitude Colors */
.magnitude-low { color: var(--success); }
.magnitude-moderate { color: var(--accent); }
.magnitude-strong { color: var(--warning); }
.magnitude-major { color: var(--danger); }

/* Dashboard Info Cards (Detail Page) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: transform 0.2s;
}

.info-box:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.info-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.info-value.large {
    font-size: 2rem;
    font-weight: 700;
}

/* Region Chips */
.region-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.region-chip {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.region-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.1rem; }
    .card-body { padding: 1rem; }
    
    /* Compact Info Grid for Mobile */
    .info-grid { 
        grid-template-columns: 1fr 1fr 1.6fr; /* Mag, Depth, LatLng(Combined) */
        gap: 8px;
    }
    .info-box {
        padding: 10px;
    }
    .info-label {
        font-size: 0.75rem;
        margin-bottom: 2px;
        gap: 4px;
    }
    .info-value {
        font-size: 0.95rem;
        word-break: break-all; /* Prevent overflow for long coordinates */
    }
    .info-value.large {
        font-size: 1.4rem;
    }
    
    /* Mobile Map Adjustments */
    #map, .responsive-map {
        height: 400px !important;
        min-height: 400px !important;
    }
    
    /* Leaflet Popup Mobile Optimization */
    .custom-popup .leaflet-popup-content {
        width: auto !important;
        max-width: 260px !important;
        margin: 10px !important;
    }
    
    .custom-popup .leaflet-popup-content-wrapper {
        border-radius: 12px !important;
        padding: 0 !important;
    }
    
    /* Adjust floating title on mobile */
    .map-floating-title {
        top: 16px;
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 80%;
        justify-content: center;
    }
    
    /* Adjust main title size */
    h1.display-5 {
        font-size: 1.8rem;
    }
    
    /* Hide some less critical columns in tables if needed, 
       but we use table-responsive so scrolling is better */
       
    /* Responsive Table Transformation */
    .tech-table thead {
        display: none;
    }

    .tech-table, .tech-table tbody, .tech-table tr, .tech-table td {
        display: block;
        width: 100%;
    }

    .tech-table tr {
        margin-bottom: 16px;
        border: 1px solid var(--border-light);
        border-radius: 12px;
        background: rgba(30, 41, 59, 0.4);
        overflow: hidden;
    }

    .tech-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        min-height: 48px;
    }

    .tech-table td:last-child {
        border-bottom: none;
        justify-content: center;
        padding: 16px;
        background: rgba(0, 0, 0, 0.1);
    }

    .tech-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        margin-right: auto; /* Push label to left */
        text-align: left;
        font-size: 0.9rem;
    }

    /* Hide label for Action button to center it cleanly */
    .tech-table td[data-label="操作"]::before {
        display: none;
    }

    .tech-table td[data-label="操作"] {
        display: flex;
        width: 100%;
    }

    .tech-table td[data-label="操作"] .btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Adjust specific columns */
    .tech-table td[data-label="震级(M)"] {
        font-size: 1.1rem;
    }
}

/* =========================================
   Mobile Optimization Updates (2025-01-22)
   ========================================= */

/* Default Region Map Height (Desktop) */
#region-map {
    height: 500px;
    width: 100%;
}

@media (max-width: 768px) {
    /* 区域历史地图高度优化 */
    #region-map {
        height: 350px !important;
    }

    /* 震情雷达数据字体适配 */
    .radar-stat-value {
        font-size: 1.25rem !important; /* fs-4 is 1.5rem, reducing to 1.25rem */
    }
    
    /* 调整震感反馈按钮的间距，使其更紧凑 */
    .interaction-btn {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .interaction-btn .fs-4 {
        font-size: 1.2rem !important; /* Icon size reduction */
    }

    /* 首页最新地震列表 H5风格优化 (Card Style) */
    .latest-earthquakes-table {
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    .latest-earthquakes-table thead {
        display: none !important;
    }

    .latest-earthquakes-table tbody {
        display: block !important;
    }

    .latest-earthquakes-table tr {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        grid-template-rows: auto auto !important;
        grid-template-areas:
            "mag loc arrow"
            "mag time arrow" !important;
        gap: 2px 16px !important;
        padding: 16px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.05) !important; /* Dark glass/card style */
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        align-items: center !important;
    }

    .latest-earthquakes-table tr:active {
        background: rgba(255, 255, 255, 0.1) !important;
        transform: scale(0.98);
        transition: all 0.2s;
    }

    /* Chevron Right Icon via CSS */
    .latest-earthquakes-table tr::after {
        content: '\F285'; /* Bootstrap Icons: chevron-right */
        font-family: 'bootstrap-icons';
        grid-area: arrow;
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
    }

    /* 隐藏不需要的列 */
    .latest-earthquakes-table th[data-label="序号"],
    .latest-earthquakes-table td[data-label="纬度(°)"],
    .latest-earthquakes-table td[data-label="经度(°)"],
    .latest-earthquakes-table td[data-label="深度(km)"],
    .latest-earthquakes-table td[data-label="操作"],
    .latest-earthquakes-table td[data-label="经纬度"] {
        display: none !important;
    }

    /* 震级样式重构 (Circular Badge) */
    .latest-earthquakes-table td[data-label="震级(M)"] {
        grid-area: mag !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        font-size: 1.1rem !important;
        font-weight: bold !important;
        border: none !important;
        padding: 0 !important;
        margin-right: 0 !important;
        color: white !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .latest-earthquakes-table td[data-label="震级(M)"]::before {
        display: none !important;
    }
    
    /* Magnitude Background Colors (Override text colors) */
    .latest-earthquakes-table .magnitude-low { background-color: var(--success) !important; }
    .latest-earthquakes-table .magnitude-moderate { background-color: var(--accent) !important; }
    .latest-earthquakes-table .magnitude-strong { background-color: var(--warning) !important; }
    .latest-earthquakes-table .magnitude-major { background-color: var(--danger) !important; }

    /* Add '级' suffix */
    .latest-earthquakes-table td[data-label="震级(M)"]::after {
        content: '级';
        font-size: 0.75rem;
        margin-left: 1px;
        font-weight: normal;
        display: inline-block !important;
    }

    /* 参考位置样式重构 */
    .latest-earthquakes-table td[data-label="参考位置"] {
        grid-area: loc !important;
        font-size: 1rem !important;
        font-weight: bold !important;
        color: #fff !important;
        border: none !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        min-height: auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        width: 100%;
        margin-bottom: 2px !important;
    }
    .latest-earthquakes-table td[data-label="参考位置"]::before {
        display: none !important;
    }

    /* 发震时刻样式重构 */
    .latest-earthquakes-table td[data-label="发震时刻"] {
        grid-area: time !important;
        font-size: 0.8rem !important;
        color: rgba(255, 255, 255, 0.5) !important;
        border: none !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        min-height: auto !important;
        margin-top: 0 !important;
    }
    .latest-earthquakes-table td[data-label="发震时刻"]::before {
        display: none !important;
    }

    /* 首页最新地震播报 移动端紧凑排版 */
    .broadcast-card .card-body {
        padding: 12px !important;
    }
    
    .broadcast-title {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .broadcast-text {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    
    .broadcast-action {
        margin-top: 8px !important;
    }

    /* =========================================
       Detail Page Optimization (Mobile)
       ========================================= */

    /* 1. Compact Header Info (Magnitude, Depth, etc.) */
    .info-grid {
        gap: 0.5rem !important;
    }

    .info-box {
        padding: 0.75rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .info-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .info-label i {
        font-size: 0.85rem !important;
    }

    .info-value {
        font-size: 1.1rem !important;
    }

    .info-value.large {
        font-size: 1.4rem !important;
    }

    /* 2. Optimized Region Info */
    .region-info-card .card-header {
        padding: 0.75rem 1rem !important;
    }
    
    .region-info-card .card-title {
        font-size: 0.95rem !important;
    }

    .region-info-card .card-body {
        padding: 0.75rem 1rem !important;
    }

    .region-chips {
        gap: 6px !important;
    }

    .region-chip {
        padding: 2px 10px !important;
        font-size: 0.85rem !important;
        height: auto !important;
    }

    .region-arrow {
        font-size: 0.75rem !important;
        margin: 0 2px !important;
        color: rgba(255, 255, 255, 0.3) !important;
    }

    /* 3. Concise Felt Reports (Interaction Buttons) */
    .interaction-btn {
        padding: 8px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        min-height: 48px !important;
    }

    .interaction-btn > div:first-child { /* Icon */
        font-size: 1.1rem !important;
        margin-bottom: 0 !important;
    }

    .interaction-btn > div:nth-child(2) { /* Text */
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
    }

    .interaction-btn .count {
        display: none !important; /* Hide count on mobile for conciseness as requested */
    }
}