/* HNO+ UI Standard v2.1 (Mobile PWA — Light Blue-Indigo Theme) */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #dbeafe 0%, #e0e7ff 40%, #f1f5f9 100%);
    background-attachment: fixed;
    color: #1e3a8a;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

.glass {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 10px 28px -8px rgba(30, 64, 175, 0.16);
    border-radius: 18px;
    position: relative;
}

.glass-input {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid #bfdbfe;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    font-weight: 600;
    font-size: 13px;
}

.glass-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-glass {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    color: #1d4ed8;
    transition: all 0.15s ease;
    font-weight: 700;
    cursor: pointer;
}

.btn-glass:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.badge-glass {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

.hno-banner {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #4338ca 100%);
    color: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.28);
}

.hno-badge-amber {
    background: #fbbf24;
    color: #020617;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hno-back-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.hno-back-pill:hover {
    background: rgba(255, 255, 255, 0.26);
}

.hno-pill-tray {
    background: rgba(23, 37, 84, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap;
}

.hno-pill-btn {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #dbeafe;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hno-pill-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.hno-pill-btn.active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.hno-dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom, 8px) + 10px);
    z-index: 80;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 12px 30px -6px rgba(30, 64, 175, 0.28);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: min(92vw, 440px);
}

.hno-dock a {
    text-decoration: none;
    text-align: center;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.hno-dock a:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.hno-dock a.active {
    background: linear-gradient(135deg, #2563eb, #4338ca);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

/* Standard Table */
.hno-table-container {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    background: #ffffff;
}

.hno-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

.hno-table th {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    padding: 10px 8px;
    border-bottom: 2px solid #1e3a8a;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 20;
    white-space: nowrap;
}

.hno-table td {
    padding: 9px 8px;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f8fafc;
    color: #334155;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hno-table tbody tr:nth-child(even) td {
    background-color: #f8fbff;
}

.hno-table tbody tr:hover td {
    background-color: #eff6ff !important;
}

.hno-card-item {
    content-visibility: auto;
    contain-intrinsic-size: 0 260px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .no-print, .hno-dock, .hno-banner {
        display: none !important;
    }
}
