/* ===== Note & Lịch học ===== */

/* Header */
.nlh-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    padding: 56px 24px 48px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.nlh-header::before {
    content: '';
    position: absolute;
    inset: 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='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.nlh-header::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 40px;
    background: #f6f7fb;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.nlh-header-content { position: relative; z-index: 1; }
.nlh-header-icon {
    font-size: 3.5rem;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.nlh-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    margin: 0 0 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
    letter-spacing: -0.5px;
}
.nlh-header p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin: 0 0 20px;
}
.nlh-header-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.nlh-hstat {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main */
.nlh-main { padding: 40px 16px 72px; background: #f6f7fb; min-height: 70vh; }
.nlh-container { max-width: 1140px; margin: 0 auto; }

/* Tabs */
.nlh-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    background: #fff;
    padding: 6px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    width: fit-content;
    border: 1px solid rgba(0,0,0,0.05);
}
.nlh-tab {
    padding: 10px 22px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.22s;
    white-space: nowrap;
}
.nlh-tab:hover { color: #4f46e5; background: #f0f0ff; }
.nlh-tab.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,0.38);
}

/* Panels */
.nlh-panel { display: none; }
.nlh-panel.active { display: block; }

/* ===== NOTES ===== */
.nlh-notes-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
    min-height: 580px;
}
.nlh-notes-sidebar {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.nlh-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    font-weight: 800;
    font-size: 0.92rem;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a2e;
}
.nlh-notes-search { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.nlh-notes-search input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
    background: #f8f9ff;
    transition: border-color .2s;
}
.nlh-notes-search input:focus { border-color: #4f46e5; background: #fff; }

.nlh-notes-list {
    list-style: none;
    padding: 8px;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}
.nlh-note-item {
    padding: 11px 12px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 4px;
    border-left: 4px solid transparent;
    transition: background 0.15s, transform 0.15s;
}
.nlh-note-item:hover { background: #f5f5ff; transform: translateX(2px); }
.nlh-note-item.active { background: #f0f0ff; border-left-color: #4f46e5; }
.nlh-note-item-title { font-weight: 700; font-size: 0.88rem; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlh-note-item-preview { font-size: 0.75rem; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.nlh-note-item-date { font-size: 0.7rem; color: #bbb; margin-top: 3px; }

.nlh-note-item.color-yellow { border-left-color: #f59e0b; }
.nlh-note-item.color-blue   { border-left-color: #3b82f6; }
.nlh-note-item.color-green  { border-left-color: #22c55e; }
.nlh-note-item.color-pink   { border-left-color: #ec4899; }
.nlh-note-item.color-purple { border-left-color: #a855f7; }

.nlh-notes-empty { text-align: center; padding: 32px 16px; color: #bbb; font-size: 0.88rem; }

/* Editor */
.nlh-notes-editor {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.nlh-editor-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #bbb;
    padding: 40px;
}
.nlh-editor-empty-icon { font-size: 3.5rem; }
.nlh-editor-empty p { font-size: 0.95rem; margin: 0; color: #aaa; }

.nlh-editor-active { display: flex; flex-direction: column; height: 100%; }
.nlh-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    background: #fafaff;
}
.nlh-note-title-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a2e;
    min-width: 0;
    background: transparent;
}
.nlh-note-title-input::placeholder { color: #d0d0e0; }
.nlh-editor-actions { display: flex; gap: 8px; align-items: center; }
.nlh-color-pick {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    background: #fff;
}
.nlh-note-textarea {
    flex: 1;
    border: none;
    outline: none;
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    resize: none;
    color: #333;
    font-family: inherit;
    min-height: 360px;
    background: #fff;
}
.nlh-editor-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 18px;
    font-size: 0.75rem;
    color: #bbb;
    border-top: 1px solid #f0f0f0;
    background: #fafaff;
}

/* ===== SCHEDULE ===== */
.nlh-schedule-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    align-items: start;
}

/* Calendar */
.nlh-calendar-wrap {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 22px;
    overflow: hidden;
}
.nlh-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.nlh-cal-title { font-weight: 900; font-size: 1.05rem; color: #1a1a2e; }
.nlh-cal-nav {
    background: #f0f0ff;
    border: none;
    border-radius: 10px;
    width: 34px; height: 34px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #4f46e5;
    transition: background 0.15s, transform 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.nlh-cal-nav:hover { background: #e0e0ff; transform: scale(1.1); }
.nlh-cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #aaa;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.nlh-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.nlh-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    transition: background 0.15s, transform 0.15s;
    color: #333;
    font-weight: 600;
}
.nlh-cal-day:hover { background: #f0f0ff; transform: scale(1.08); }
.nlh-cal-day.other-month { color: #ddd; cursor: default; font-weight: 400; }
.nlh-cal-day.other-month:hover { background: transparent; transform: none; }
.nlh-cal-day.today { background: #f0f0ff; color: #4f46e5; font-weight: 900; box-shadow: inset 0 0 0 2px #c7d2fe; }
.nlh-cal-day.selected { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff !important; font-weight: 900; box-shadow: 0 4px 12px rgba(79,70,229,0.35); }
.nlh-cal-day.has-task::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4f46e5;
}
.nlh-cal-day.selected.has-task::after { background: rgba(255,255,255,0.85); }

/* Tasks */
.nlh-tasks-wrap {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 22px;
    min-height: 420px;
}
.nlh-tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #1a1a2e;
}
.nlh-tasks-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nlh-tasks-empty { color: #bbb; font-size: 0.88rem; text-align: center; padding: 40px 0; }
.nlh-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    background: #f8f9ff;
    border-left: 4px solid #4f46e5;
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}
.nlh-task-item:hover { transform: translateX(3px); box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
.nlh-task-item.color-blue   { border-left-color: #3b82f6; background: #eff6ff; }
.nlh-task-item.color-green  { border-left-color: #22c55e; background: #f0fdf4; }
.nlh-task-item.color-red    { border-left-color: #ef4444; background: #fef2f2; }
.nlh-task-item.color-orange { border-left-color: #f97316; background: #fff7ed; }
.nlh-task-item.color-purple { border-left-color: #a855f7; background: #faf5ff; }
.nlh-task-item.done .nlh-task-subject { text-decoration: line-through; color: #bbb; }
.nlh-task-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    cursor: pointer;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    background: #fff;
}
.nlh-task-check.checked { background: #22c55e; border-color: #22c55e; color: #fff; font-size: 0.7rem; }
.nlh-task-info { flex: 1; min-width: 0; }
.nlh-task-subject { font-weight: 700; font-size: 0.9rem; color: #1a1a2e; }
.nlh-task-time { font-size: 0.75rem; color: #888; margin-top: 2px; }
.nlh-task-delete {
    background: none; border: none; color: #ddd; cursor: pointer; font-size: 1rem;
    padding: 2px 6px; border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.nlh-task-delete:hover { color: #ef4444; background: #fef2f2; }

/* Modal */
.nlh-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,10,40,0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.nlh-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%; max-width: 440px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    overflow: hidden;
    animation: modalIn .25s cubic-bezier(.22,.68,0,1.2);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.nlh-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-weight: 800; font-size: 1rem;
}
.nlh-modal-close { background: rgba(255,255,255,0.2); border: none; font-size: 1rem; cursor: pointer; color: #fff; border-radius: 8px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.nlh-modal-close:hover { background: rgba(255,255,255,0.35); }
.nlh-modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.nlh-modal-body label { font-size: 0.82rem; font-weight: 700; color: #555; }
.nlh-input {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.nlh-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
.nlh-time-row { display: flex; align-items: center; gap: 8px; }
.nlh-time-row span { color: #888; font-size: 0.85rem; flex-shrink: 0; }
.nlh-color-row { display: flex; gap: 10px; }
.nlh-color-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.nlh-color-dot:hover { transform: scale(1.18); }
.nlh-color-dot.active { border-color: #1a1a2e; transform: scale(1.18); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.nlh-modal-footer {
    display: flex; gap: 10px; justify-content: flex-end;
    padding: 16px 22px;
    border-top: 1px solid #f0f0f0;
    background: #fafaff;
}

/* Buttons */
.nlh-btn-add {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; border: none; border-radius: 10px;
    width: 30px; height: 30px; font-size: 1.2rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
.nlh-btn-add:hover { opacity: 0.88; transform: scale(1.08); }
.nlh-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; border: none; border-radius: 12px;
    padding: 10px 24px; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.nlh-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.nlh-btn-secondary {
    background: #f5f5f5; color: #555; border: none; border-radius: 12px;
    padding: 10px 22px; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s;
}
.nlh-btn-secondary:hover { background: #e5e7eb; }
.nlh-btn-danger {
    background: #fef2f2; color: #ef4444; border: 1px solid #fecaca;
    border-radius: 10px; padding: 6px 14px; font-size: 0.82rem;
    font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.nlh-btn-danger:hover { background: #fee2e2; }

/* Responsive */
@media (max-width: 768px) {
    .nlh-notes-layout {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .nlh-schedule-layout { grid-template-columns: 1fr; }
    .nlh-notes-sidebar {
        max-height: 240px;
        min-height: 160px;
    }
    .nlh-notes-editor {
        min-height: 420px;
    }
    .nlh-note-textarea { min-height: 280px; }
    .nlh-editor-active { height: auto; }
}

/* ===== TIMER TAB ===== */
.nlh-timer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.nlh-timer-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.nlh-timer-badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    box-shadow: 0 3px 10px rgba(79,70,229,0.3);
}

/* Pomodoro modes */
.nlh-pomo-modes {
    display: flex;
    gap: 6px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 14px;
}
.nlh-pomo-mode {
    border: none;
    background: transparent;
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}
.nlh-pomo-mode.active {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Ring */
.nlh-timer-ring-wrap {
    position: relative;
    width: 190px;
    height: 190px;
}
.nlh-ring {
    width: 190px;
    height: 190px;
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 12px rgba(79,70,229,0.2));
}
.nlh-ring-bg {
    fill: none;
    stroke: #f0f0f8;
    stroke-width: 10;
}
.nlh-ring-progress {
    fill: none;
    stroke: url(#timerGrad);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 553;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}
.nlh-timer-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a2e;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}
.nlh-pomo-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #7c3aed;
    background: #f5f0ff;
    padding: 4px 14px;
    border-radius: 20px;
}

/* Controls */
.nlh-timer-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.nlh-timer-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 11px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.nlh-timer-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.nlh-timer-btn-ghost {
    background: #f5f5f5;
    color: #555;
    box-shadow: none;
}
.nlh-timer-btn-ghost:hover { background: #e5e7eb; }

/* Pomo sessions */
.nlh-pomo-sessions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
#pomoSessionDots { display: flex; gap: 5px; }
.pomo-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background .3s;
}
.pomo-dot.done { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.nlh-pomo-session-label { font-size: 0.78rem; color: #aaa; }

/* Stopwatch */
.nlh-sw-display {
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    padding: 20px 0 4px;
}
.nlh-sw-laps {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nlh-sw-lap {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f8f8ff;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #555;
    border: 1px solid #ede9ff;
}
.nlh-sw-lap span:first-child { color: #999; }
.nlh-sw-lap span:last-child { font-weight: 700; color: #4f46e5; }

/* Stats */
.nlh-study-stats {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 26px;
}
.nlh-stats-title {
    font-weight: 900;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 18px;
}
.nlh-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.nlh-stat-box {
    flex: 1;
    min-width: 100px;
    background: linear-gradient(135deg, #f5f0ff, #ede9ff);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    border: 1px solid #e9e0ff;
    transition: transform .2s;
}
.nlh-stat-box:hover { transform: translateY(-3px); }
.nlh-stat-num {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nlh-stat-lbl { font-size: 0.75rem; color: #888; margin-top: 4px; font-weight: 600; }

@media (max-width: 768px) {
    .nlh-timer-layout { grid-template-columns: 1fr; }
    .nlh-sw-display { font-size: 2.2rem; }
}

/* Custom time input */
.nlh-custom-time {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9ff;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #555;
}
.nlh-custom-input {
    width: 56px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    color: #222;
}
.nlh-custom-input:focus { border-color: #667eea; }
.nlh-custom-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.nlh-custom-btn:hover { opacity: 0.85; }

/* ===== Music Card ===== */
.nlh-music-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 26px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.nlh-music-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.nlh-music-vol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.nlh-music-vol input[type=range] {
    width: 100px;
    accent-color: #667eea;
    cursor: pointer;
}
.nlh-music-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.nlh-music-preset {
    background: #f0f0ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.nlh-music-preset:hover,
.nlh-music-preset.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(79,70,229,0.3);
}
.nlh-music-input-row {
    display: flex;
    gap: 10px;
}
.nlh-music-input-row .nlh-input {
    flex: 1;
}
.nlh-music-play-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 3px 10px rgba(79,70,229,0.3);
}
.nlh-music-play-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.nlh-music-iframe {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    border: none;
}
.nlh-music-iframe.yt { height: 240px; }
#musicAudio {
    width: 100%;
    border-radius: 12px;
}
.nlh-music-tip {
    font-size: 0.75rem;
    color: #bbb;
}

.nlh-music-yt-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #92400e;
    flex-wrap: wrap;
}
.nlh-music-yt-link {
    color: #667eea;
    font-weight: 700;
    text-decoration: none;
}
.nlh-music-yt-link:hover { text-decoration: underline; }

/* ==============================
   THỜI KHÓA BIỂU
   ============================== */
.tkb-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.tkb-week-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(2,136,209,0.08);
    border: 1px solid rgba(2,136,209,0.2);
    border-radius: 10px;
    padding: 0.35rem 0.75rem;
}

.tkb-nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #0288d1;
    cursor: pointer;
    padding: 0 0.3rem;
    line-height: 1;
    transition: transform 0.15s;
}
.tkb-nav-btn:hover { transform: scale(1.2); }

.tkb-week-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2a3a;
    white-space: nowrap;
    min-width: 180px;
    text-align: center;
}

.tkb-btn-today, .tkb-btn-save {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tkb-btn-today {
    background: rgba(79,70,229,0.1);
    color: #4f46e5;
    border: 1px solid rgba(79,70,229,0.25);
}
.tkb-btn-today:hover { background: rgba(79,70,229,0.2); }

.tkb-btn-save {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 3px 12px rgba(79,70,229,0.3);
}
.tkb-btn-save:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(79,70,229,0.4); }

.tkb-wrap {
    overflow-x: auto;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

.tkb-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.tkb-table thead tr {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.tkb-table thead th {
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.75rem 0.5rem;
    text-align: center;
    letter-spacing: 0.3px;
}

.tkb-th-session {
    width: 72px;
    text-align: center !important;
}

.tkb-session-row td {
    background: linear-gradient(90deg, #f5f0ff, #f0f0ff);
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
    border-top: 2px solid rgba(79,70,229,0.15);
    letter-spacing: 0.3px;
}

.tkb-row:hover td { background: #f8fbff; }

.tkb-slot-num {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #607d8b;
    background: #f8fafc;
    border-right: 1px solid #e8f0f7;
    white-space: nowrap;
    padding: 0.4rem 0.3rem;
}

.tkb-cell {
    padding: 0.3rem 0.25rem;
    border: 1px solid #eef2f7;
    min-width: 100px;
}

.tkb-today-col {
    background: rgba(79,70,229,0.04) !important;
}

.tkb-today-col .tkb-input {
    border-color: rgba(79,70,229,0.3) !important;
}

.tkb-input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
    color: #1a2a3a;
    background: transparent;
    transition: all 0.2s;
    box-sizing: border-box;
    text-align: center;
}

.tkb-input:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.tkb-input::placeholder { color: #cdd5db; }

/* Toast */
.tkb-saved-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(79,70,229,0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

.tkb-saved-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
    .tkb-week-label { min-width: 140px; font-size: 0.8rem; }
    .tkb-table { min-width: 500px; }
    .tkb-input { font-size: 0.75rem; padding: 0.3rem; }
}

/* ── Gợi ý nhạc học ── */
.nlh-music-suggest {
    margin-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.2rem;
}

.nlh-ms-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 0.9rem;
    letter-spacing: 0.3px;
}

.nlh-ms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.nlh-ms-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.nlh-ms-head {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0277bd;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.nlh-ms-tag {
    font-size: 0.65rem;
    background: rgba(2,136,209,0.1);
    border: 1px solid rgba(2,136,209,0.25);
    color: #0288d1;
    border-radius: 20px;
    padding: 0.1rem 0.5rem;
    font-weight: 600;
}

.nlh-ms-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nlh-ms-card ul li {
    font-size: 0.76rem;
    color: #334155;
    padding-left: 0.8rem;
    position: relative;
}

.nlh-ms-card ul li::before {
    content: '♪';
    position: absolute;
    left: 0;
    color: #42a5f5;
    font-size: 0.7rem;
}

.nlh-ms-tip {
    font-size: 0.72rem;
    color: #64748b;
    font-style: italic;
    margin-top: 0.4rem;
}

.nlh-ms-tips-box {
    background: linear-gradient(135deg, rgba(2,136,209,0.08), rgba(0,200,83,0.06));
    border: 1px solid rgba(2,136,209,0.15);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.nlh-ms-tips-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0277bd;
    margin-bottom: 0.5rem;
}

.nlh-ms-tips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nlh-ms-tips-list span {
    font-size: 0.75rem;
    color: #334155;
    background: rgba(2,136,209,0.07);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(2,136,209,0.15);
}

@media (max-width: 600px) {
    .nlh-ms-grid { grid-template-columns: 1fr; }
}

/* ── Toast thông báo đến hạn ── */
.nlh-due-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 280px;
    max-width: 360px;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(.22,.68,0,1.2);
    z-index: 99999;
}

.nlh-due-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nlh-due-start  { background: linear-gradient(135deg, #0288d1, #00897b); }
.nlh-due-remind { background: linear-gradient(135deg, #f59e0b, #d97706); }
.nlh-due-overdue { background: linear-gradient(135deg, #ef4444, #b91c1c); }

/* ============================================
   NOTE & LỊCH HỌC — MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
    /* Timer layout */
    .nlh-timer-layout { grid-template-columns: 1fr; }

    /* TKB toolbar */
    .tkb-toolbar { flex-wrap: wrap; gap: 0.5rem; }
    .tkb-week-label { min-width: 120px; font-size: 0.78rem; }

    /* Music card */
    .nlh-music-presets { flex-wrap: wrap; gap: 0.4rem; }
    .nlh-music-preset { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
    .nlh-music-input-row { flex-direction: column; }
    .nlh-music-play-btn { width: 100%; }

    /* Gợi ý nhạc */
    .nlh-ms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    /* Header */
    .nlh-header { padding: 32px 16px 28px; }
    .nlh-header h1 { font-size: 1.5rem; }

    /* Tabs */
    .nlh-tabs { gap: 0.3rem; flex-wrap: wrap; }
    .nlh-tab { font-size: 0.78rem; padding: 0.45rem 0.75rem; }

    /* Notes */
    .nlh-notes-sidebar { max-height: 200px; min-height: 140px; }
    .nlh-notes-editor { min-height: 380px; }
    .nlh-editor-active { height: auto; padding: 0; }

    /* Calendar */
    .nlh-cal-day { font-size: 0.78rem; }
    .nlh-cal-title { font-size: 0.9rem; }

    /* Tasks */
    .nlh-task-subject { font-size: 0.85rem; }
    .nlh-tasks-header { font-size: 0.88rem; }

    /* Timer */
    .nlh-timer-card { padding: 20px 16px; }
    .nlh-ring { width: 160px; height: 160px; }
    .nlh-timer-display { font-size: 2rem; }
    .nlh-pomo-modes { flex-wrap: wrap; }
    .nlh-pomo-mode { font-size: 0.78rem; padding: 0.35rem 0.7rem; }

    /* TKB */
    .tkb-table { min-width: 480px; font-size: 0.75rem; }
    .tkb-input { font-size: 0.72rem; padding: 0.25rem; }
    .tkb-slot-num { font-size: 0.68rem; }

    /* Stats */
    .nlh-stats-row { gap: 0.5rem; }
    .nlh-stat-num { font-size: 1.4rem; }

    /* Toast */
    .nlh-due-toast { right: 1rem; left: 1rem; min-width: unset; bottom: 1rem; }
}

/* ==============================
   BIỂU ĐỒ
   ============================== */
.nlh-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.nlh-chart-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 22px 24px;
}
.nlh-chart-full { grid-column: 1 / -1; }
.nlh-chart-title { font-size: .95rem; font-weight: 800; color: #1a1a2e; margin-bottom: 4px; }
.nlh-chart-sub { font-size: .75rem; color: #aaa; margin-bottom: 18px; }
.nlh-chart-empty { font-size: .82rem; color: #bbb; font-style: italic; text-align: center; padding: 24px 0; }

/* Bar chart */
.nlh-bar-chart { display: flex; flex-direction: column; gap: 10px; }
.nlh-bar-row { display: flex; align-items: center; gap: 10px; }
.nlh-bar-label { font-size: .78rem; font-weight: 600; color: #444; width: 110px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nlh-bar-track { flex: 1; background: #f0f0f8; border-radius: 20px; height: 14px; overflow: hidden; }
.nlh-bar-fill { height: 100%; border-radius: 20px; transition: width .6s cubic-bezier(.22,.68,0,1.2); min-width: 4px; }
.nlh-bar-val { font-size: .75rem; font-weight: 700; color: #555; width: 28px; text-align: right; flex-shrink: 0; }

/* Heatmap */
.nlh-heatmap { display: flex; flex-wrap: wrap; gap: 5px; }
.nlh-hm-day {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700;
    cursor: default;
    transition: transform .15s;
    position: relative;
}
.nlh-hm-day:hover { transform: scale(1.15); z-index: 1; }
.nlh-hm-day.hm-empty { background: #f0f0f8; color: #ccc; }
.nlh-hm-day.hm-1 { background: #e0e7ff; color: #4f46e5; }
.nlh-hm-day.hm-2 { background: #c7d2fe; color: #4338ca; }
.nlh-hm-day.hm-3 { background: #a5b4fc; color: #3730a3; }
.nlh-hm-day.hm-4 { background: #818cf8; color: #fff; }
.nlh-hm-day.hm-5plus { background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.35); }
.nlh-hm-day.hm-today { box-shadow: 0 0 0 2px #4f46e5; }
.nlh-hm-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .72rem; color: #aaa; }
.nlh-hm-legend-box { width: 14px; height: 14px; border-radius: 4px; }

/* Donut */
.nlh-donut-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto 14px; }
.nlh-donut { width: 140px; height: 140px; transform: rotate(-90deg); }
.nlh-donut-bg { fill: none; stroke: #f0f0f8; stroke-width: 14; }
.nlh-donut-fill {
    fill: none;
    stroke: url(#donutGrad);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 301.6;
    stroke-dashoffset: 301.6;
    transition: stroke-dashoffset .8s cubic-bezier(.22,.68,0,1.2);
}
.nlh-donut-label {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 900;
    background: linear-gradient(135deg,#4f46e5,#7c3aed);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nlh-donut-legend { display: flex; justify-content: center; gap: 16px; font-size: .8rem; color: #555; }
.nlh-dl-done { color: #22c55e; font-weight: 600; }
.nlh-dl-todo { color: #f59e0b; font-weight: 600; }

/* Color chart (notes) */
.nlh-color-chart { display: flex; flex-direction: column; gap: 10px; }
.nlh-cc-row { display: flex; align-items: center; gap: 10px; }
.nlh-cc-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.nlh-cc-label { font-size: .8rem; font-weight: 600; color: #444; width: 80px; }
.nlh-cc-track { flex: 1; background: #f0f0f8; border-radius: 20px; height: 12px; overflow: hidden; }
.nlh-cc-fill { height: 100%; border-radius: 20px; transition: width .6s cubic-bezier(.22,.68,0,1.2); }
.nlh-cc-val { font-size: .75rem; font-weight: 700; color: #555; width: 24px; text-align: right; }

@media (max-width: 768px) {
    .nlh-chart-grid { grid-template-columns: 1fr; }
    .nlh-chart-full { grid-column: 1; }
    .nlh-hm-day { width: 26px; height: 26px; font-size: .65rem; }
}

/* ==============================
   WAVE TIMELINE
   ============================== */
.nlh-wave-wrap {
    margin-top: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 18px 20px 20px;
    overflow: hidden;
}
.nlh-wave-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.nlh-wave-title { font-size: .9rem; font-weight: 800; color: #1a1a2e; }
.nlh-wave-hint { font-size: .72rem; color: #bbb; }

/* Scrollable container */
.nlh-wave-scroll {
    overflow-x: auto;
    overflow-y: visible;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    /* hide scrollbar but keep scroll */
    scrollbar-width: thin;
    scrollbar-color: #c7d2fe #f0f0f8;
}
.nlh-wave-scroll::-webkit-scrollbar { height: 5px; }
.nlh-wave-scroll::-webkit-scrollbar-track { background: #f0f0f8; border-radius: 10px; }
.nlh-wave-scroll::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 10px; }
.nlh-wave-scroll.grabbing { cursor: grabbing; }

/* Inner canvas area */
.nlh-wave-inner {
    position: relative;
    height: 130px;
    min-width: 1440px; /* 24h × 60px */
    background: #fafaff;
    border-radius: 14px;
    border: 1px solid #ede9ff;
}

/* Hour grid lines */
.nlh-wave-hour {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: #ede9ff;
}
.nlh-wave-hour-label {
    position: absolute;
    bottom: 6px;
    font-size: .65rem;
    color: #c4b5fd;
    font-weight: 600;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Current time indicator */
.nlh-wave-now {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ef4444, #f97316);
    z-index: 10;
    border-radius: 2px;
}
.nlh-wave-now::before {
    content: '▼';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .55rem;
    color: #ef4444;
}
.nlh-wave-now-label {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Task blocks */
.nlh-wave-block {
    position: absolute;
    top: 18px;
    height: 68px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    min-width: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.nlh-wave-block:hover {
    transform: translateY(-3px) scaleY(1.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    z-index: 5;
}
.nlh-wave-block-name {
    font-size: .75rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.nlh-wave-block-time {
    font-size: .65rem;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
    white-space: nowrap;
}
.nlh-wave-block.done-block {
    opacity: .55;
    filter: grayscale(.4);
}

/* No-time tasks strip */
.nlh-wave-notime {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    overflow: hidden;
}
.nlh-wave-notime-chip {
    background: rgba(79,70,229,.12);
    border: 1px solid rgba(79,70,229,.2);
    color: #4f46e5;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Wave SVG decoration */
.nlh-wave-svg {
    position: absolute;
    bottom: 22px; left: 0; right: 0;
    height: 18px;
    pointer-events: none;
    opacity: .18;
}

/* Wave detail modal */
.nlh-wave-detail-modal { max-width: 400px; }
.nlh-wave-detail-body { gap: 16px; }
.nlh-wd-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    background: #fafaff;
    border-radius: 12px;
    border: 1px solid #ede9ff;
}
.nlh-wd-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.nlh-wd-label { font-size: .72rem; font-weight: 700; color: #aaa; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .4px; }
.nlh-wd-val { font-size: .95rem; font-weight: 700; color: #1a1a2e; }

/* Wave detail edit mode */
.nlh-btn-ghost-edit {
    background: #f0f0ff;
    color: #4f46e5;
    border: 1.5px solid #c7d2fe;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.nlh-btn-ghost-edit:hover { background: #e0e7ff; transform: translateY(-1px); }
.nlh-wd-edit-label {
    font-size: .78rem;
    font-weight: 700;
    color: #888;
    margin-bottom: 4px;
    display: block;
}

/* ── Banner học cùng nhau ── */
.nlh-banner-wrap {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    background:
        radial-gradient(ellipse at 0% 50%, #ede9fe 0%, transparent 55%),
        radial-gradient(ellipse at 100% 0%, #dbeafe 0%, transparent 50%),
        radial-gradient(ellipse at 60% 100%, #fce7f3 0%, transparent 50%),
        #f8f7ff;
    overflow: hidden;
    min-height: 260px;
    position: relative;
    border-bottom: 1px solid #e8e4ff;
}
.nlh-banner-info {
    padding: 2.5rem 2.5rem 2.5rem 3rem;
    position: relative;
    z-index: 1;
}
.nlh-banner-badge {
    display: inline-block;
    background: #f0f0ff;
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: .4px;
}
.nlh-banner-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.25;
    margin: 0 0 .9rem;
}
.nlh-banner-title-accent {
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nlh-banner-desc {
    color: #5a6a8a;
    font-size: .88rem;
    line-height: 1.7;
    margin: 0 0 1.1rem;
    max-width: 520px;
}
.nlh-banner-tagline {
    font-size: .85rem;
    font-weight: 700;
    color: #4f46e5;
    margin: .9rem 0 0;
    padding: .6rem 1rem;
    background: rgba(79,70,229,.07);
    border-left: 3px solid #4f46e5;
    border-radius: 0 8px 8px 0;
    display: inline-block;
}
.nlh-banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.nlh-banner-features span {
    background: #f5f0ff;
    border: 1px solid #e0d9ff;
    color: #4f46e5;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .85rem;
    border-radius: 20px;
}
.nlh-banner-img-wrap {
    height: 260px;
    overflow: hidden;
    position: relative;
}
.nlh-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 768px) {
    .nlh-banner-wrap { grid-template-columns: 1fr; min-height: unset; }
    .nlh-banner-info { padding: 2rem 1.5rem 1.5rem; }
    .nlh-banner-img-wrap { height: 200px; }
    .nlh-banner-img-wrap::before { background: linear-gradient(to bottom, #312e81 0%, transparent 40%); }
}
