/* ===== notifications.php ===== */
        .nt-main { overflow-x: hidden; }

        .nt-tabs {
            position: sticky;
            top: 0;
            z-index: 9;
            flex-wrap: nowrap;
            gap: 4px;
            margin: 10px 8px 4px;
            padding: 4px;
            background: var(--surface-1);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
        }
        .nt-tab-btn {
            width: 100%;
            color: var(--text-light);
            background: transparent;
            border: 0;
            border-radius: 11px;
            padding: 10px 8px;
            font-weight: 600;
            transition: background .2s, color .2s, box-shadow .2s;
        }
        .nt-tab-btn:not(.active):hover { background: var(--hover-bg); }
        .nt-tab-btn.active {
            color: #fff;
            background: linear-gradient(135deg, #129ae8, #7c3aed);
            box-shadow: 0 6px 14px rgba(18, 154, 232, .3);
        }
        html[data-theme="dark"] .nt-tab-btn.active { color: #fff; }

        .nt-tone-0 { --tone: #2563eb; --tone-2: #60a5fa; }
        .nt-tone-1 { --tone: #7c3aed; --tone-2: #a78bfa; }
        .nt-tone-2 { --tone: #059669; --tone-2: #34d399; }
        .nt-tone-3 { --tone: #ea580c; --tone-2: #fb923c; }
        .nt-tone-4 { --tone: #db2777; --tone-2: #f472b6; }
        .nt-tone-5 { --tone: #0891b2; --tone-2: #22d3ee; }

        .nt-card {
            position: relative;
            overflow: hidden;
            background: var(--surface-1);
            color: var(--text-dark);
            cursor: pointer;
            border-radius: 16px;
            border: 1px solid rgba(0, 0, 0, .05) !important;
            transition: transform .18s ease, box-shadow .18s ease;
        }
        .nt-card::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            z-index: 1;
            background: linear-gradient(180deg, var(--tone), var(--tone-2));
        }
        .nt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .15) !important; }
        .nt-img { display: block; width: 100%; height: auto; }
        .nt-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 18px; }
        .nt-icon {
            flex: 0 0 auto;
            width: 44px;
            height: 44px;
            display: grid;
            place-items: center;
            border-radius: 13px;
            background: linear-gradient(135deg, var(--tone), var(--tone-2));
            box-shadow: 0 6px 14px color-mix(in srgb, var(--tone) 35%, transparent);
        }
        .nt-icon .material-symbols-outlined { font-size: 24px; color: #fff; font-variation-settings: 'FILL' 1; }
        .nt-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
        .nt-date {
            display: inline-block;
            margin-bottom: 4px;
            padding: 1px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 600;
            color: var(--tone);
            background: color-mix(in srgb, var(--tone) 12%, transparent);
        }
        .nt-date:empty { display: none; }
        .nt-title { font-weight: 700; line-height: 1.4; }
        .nt-body { margin-top: 2px; font-size: 13px; color: var(--text-light); line-height: 1.5; }
        .nt-arrow {
            flex: 0 0 auto;
            align-self: center;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: color-mix(in srgb, var(--tone) 12%, transparent);
            color: var(--tone);
            transition: background .18s, color .18s, transform .18s;
        }
        .nt-arrow .material-symbols-outlined { font-size: 18px; }
        .nt-card:hover .nt-arrow { background: var(--tone); color: #fff; transform: translateX(3px); }

        #nt_modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
        #nt_modal .modal-footer { border: 0; }
        .nt-modal-ok { border: 0; border-radius: 999px; padding: 10px; font-weight: 700; background: linear-gradient(135deg, #129ae8, #7c3aed); }
        .nt-modal-body { white-space: pre-line; line-height: 1.5; }

        /* wider screens: the picture sits at the end of the card instead of stretching across the top */
        @media (min-width: 768px) {
            .nt-card { flex-direction: row; align-items: stretch; }
            .nt-card > .nt-img { order: 2; flex: 0 0 240px; width: 240px; height: auto; max-height: 160px; object-fit: cover; align-self: center; margin: 8px; border-radius: 8px; }
            .nt-card > .nt-row { flex: 1 1 auto; min-width: 0; align-items: center; }
        }
