﻿/* ===================================================
   IBG Marketplace – core.css
   =================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}
/* ---  Design tokens  --- */
:root {
    --bg: #f6f8fa;
    --card: #ffffff;
    --primary: #0078d4;
    --muted: #6b7280;
    --shadow-sm: 0 2px 8px rgba(16,24,40,0.06);
    --shadow-md: 0 6px 18px rgba(16,24,40,0.08);
    --shadow-lg: 0 12px 30px rgba(16,24,40,0.12);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* REMVOE FROME HER, MOVEE TO SHELL.CSS */

/* ---  CMS page body  --------------------------------------------------- */
.cms-body {
    width: min(100%, 1120px);
    margin: 0;
    padding: 1.5rem 1.25rem 2rem;
    line-height: 1.7;
}

.cms-notfound {
    text-align: center;
    padding: 4rem 1rem;
}

/* ---  #subscriptions# tag rendered output  ----------------------------- */
.cms-subscriptions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.cms-sub-card {
    background: var(--card, #fff);
    border: 1px solid #e5e9f0;
    border-radius: var(--radius-lg, 14px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(16,24,40,0.06));
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cms-sub-card__name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.cms-sub-card__desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted, #6b7280);
    line-height: 1.5;
}

.cms-sub-card__apps {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cms-sub-app {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cms-sub-app__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent, #0078d4);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.cms-sub-app__link:hover {
    text-decoration: underline;
}

.cms-sub-app__icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.cms-sub-app__desc {
    font-size: 0.8rem;
    color: var(--muted, #6b7280);
    line-height: 1.4;
}

/* ---  Global app tile  ----------------------------------------------- */
/* Used by My Apps page, Welcome page, and the footer My Apps section.    */
.app-tile {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 140px;
    height: 110px;
    padding: 0.9rem 0.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg,
        #f8f9fb 0%,
        #e8ecf2 40%,
        #d4dae5 70%,
        #e8ecf2 100%);
    border: 1px solid rgba(180,188,204,0.55);
    box-shadow: 0 2px 6px rgba(16,24,40,0.07),
                inset 0 1px 0 rgba(255,255,255,0.85);
    text-decoration: none;
    text-align: center;
    color: #1a2236;
    transition: transform 200ms cubic-bezier(.2,.9,.3,1), box-shadow 200ms ease, background 200ms ease;
}

.app-tile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 28px rgba(16,24,40,0.13),
                inset 0 1px 0 rgba(255,255,255,0.9);
    background: linear-gradient(160deg,
        #ffffff 0%,
        #edf0f6 40%,
        #dce1ec 70%,
        #edf0f6 100%);
}

.app-tile:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,120,212,0.15), var(--shadow-md);
}

.app-tile__icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}

.app-tile__name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a2236;
}

/* Footer tiles are slightly smaller */
.app-tile--sm {
    width: 110px;
    height: 90px;
}

.app-tile--sm .app-tile__icon {
    font-size: 1.6rem;
}

.app-tile--sm .app-tile__name {
    font-size: 0.75rem;
}

/* Welcome-page tiles are larger */
.app-tile--lg {
    width: 180px;
    height: 150px;
    border-radius: 16px;
}

.app-tile--lg .app-tile__icon {
    font-size: 2.75rem;
}

.app-tile--lg .app-tile__name {
    font-size: 1rem;
    font-weight: 700;
}

/* ---  Utility classes  --- */
.card {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,120,212,0.18);
}

/* ---------  ACCOUNT PAGE  --------- */
/* ---------                --------- */

.acct-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 760px;
}

.acct-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0b1220;
    margin: 0;
}

.acct-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.acct-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e5e9f0;
}

.acct-email {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.acct-loading,
.acct-empty {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0;
}

/* ── Subscription cards ─────────────────────────────────────── */
.acct-sub-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.acct-sub-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e5e9f0;
    box-shadow: 0 2px 8px rgba(16,24,40,0.05);
}

.acct-sub-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.acct-sub-card__icon {
    font-size: 1rem;
    color: #0078d4;
}

.acct-sub-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    flex: 1;
}

.acct-sub-public-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #065f46;
    background: #d1fae5;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.acct-sub-logon-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1e3a8a;
    background: #dbeafe;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.acct-sub-rights-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* View */
.acct-sub-rights-badge--1 { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; }
/* View + Edit */
.acct-sub-rights-badge--2 { color: #7e22ce; background: #faf5ff; border: 1px solid #e9d5ff; }
/* View + Edit + Admin */
.acct-sub-rights-badge--3 { color: #c2410c; background: #fff7ed; border: 1px solid #fed7aa; }
/* View + Edit + Admin + Super */
.acct-sub-rights-badge--4 { color: #065f46; background: #ecfdf5; border: 1px solid #6ee7b7; }

.acct-sub-card__desc {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0;
}

.acct-sub-card__public-note {
    font-size: 0.8rem;
    color: #16a34a;
    margin: 0;
    font-style: italic;
}

.acct-sub-card__dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.acct-sub-card__date-label {
    color: #9ca3af;
    font-weight: 600;
}

.acct-sub-card__date-val {
    color: #374151;
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    margin-right: 0.75rem;
}

.acct-sub-card__apps {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid #f0f2f5;
}

.acct-sub-card__apps-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.acct-sub-card__app-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.acct-sub-card__app-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #111827;
}

.acct-app-check {
    color: #16a34a;
    font-size: 0.8rem;
}

.acct-app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent, #0078d4);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 120ms ease;
}

.acct-app-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.acct-app-link__icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.acct-log-app {
    white-space: nowrap;
}

.acct-log-muted {
    color: #9ca3af;
}

/* ── Tab bar ────────────────────────────────────────────────── */
.acct-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e9f0;
}

.acct-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 120ms ease, border-color 120ms ease;
    white-space: nowrap;
}
.acct-tab:hover { color: #111827; }
.acct-tab--active {
    color: #0078d4;
    border-bottom-color: #0078d4;
    font-weight: 600;
}

/* ── Tab panel ──────────────────────────────────────────────── */
.acct-panel {
    min-height: 180px;
}

/* ── Log table (Logins + Activity tabs) ─────────────────────── */
.acct-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.acct-log-table thead tr {
    background: #f8fafc;
    border-bottom: 1px solid #e5e9f0;
}

.acct-log-table th {
    padding: 0.45rem 0.85rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.acct-log-table tbody tr {
    border-bottom: 1px solid #f0f2f5;
}
.acct-log-table tbody tr:last-child { border-bottom: none; }
.acct-log-table tbody tr:hover { background: #f8fafc; }
.acct-log-table td { padding: 0.45rem 0.85rem; color: #111827; }

.acct-log-date {
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
    color: #374151;
    white-space: nowrap;
}

.acct-log-ip {
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
    color: #6b7280;
}

.acct-log-event {
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.acct-log-event--10001 { color: #065f46; } /* Login  – green  */
.acct-log-event--10002 { color: #92400e; } /* Logout – amber  */
.acct-log-event--10003 { color: #1e3a8a; } /* Timeout – blue */

/* ── Workgroups list ────────────────────────────────────────── */
.acct-wg-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.acct-wg-item {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: #111827;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 6px;
    overflow: hidden;
}

.acct-wg-item--expanded {
    border-color: #d8b4fe;
}

.acct-wg-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4rem 0.7rem;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.acct-wg-btn:hover {
    background: #f3e8ff;
}

.acct-wg-chevron {
    color: #7e22ce;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.acct-wg-icon {
    color: #7e22ce;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.acct-wg-members {
    padding: 0.3rem 0.7rem 0.6rem 2.15rem;
    border-top: 1px solid #e9d5ff;
}

.acct-wg-member-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.acct-wg-member-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #374151;
}

.acct-wg-member-icon {
    color: #9333ea;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ── Pagination ─────────────────────────────────────────────── */
.acct-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.acct-pager__info {
    font-size: 0.78rem;
    color: #9ca3af;
}

.acct-pager__btns {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.acct-pager-btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 100ms ease, border-color 100ms ease;
}

.acct-pager-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.acct-pager-btn--active {
    background: #0078d4;
    border-color: #0078d4;
    color: #fff;
    font-weight: 700;
}

.acct-pager-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ── Session table ──────────────────────────────────────────── */
.acct-session-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.acct-session-table th,
.acct-session-table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e5e9f0;
    text-align: left;
    vertical-align: top;
}

.acct-session-table th {
    width: 160px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.acct-session-table td {
    color: #111827;
    word-break: break-all;
}

.acct-session-table tr:last-child th,
.acct-session-table tr:last-child td {
    border-bottom: none;
}

/* ── CRM form ──────────────────────────────────────────────────── */
.acct-crm-error {
    margin: 0 0 1rem;
    padding: .65rem .9rem;
    border-radius: 8px;
    background: rgba(220, 38, 38, .08);
    border: 1px solid rgba(220, 38, 38, .25);
    color: #b91c1c;
    font-size: .9rem;
}

.acct-crm-success {
    margin: 0 0 1rem;
    padding: .65rem .9rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, .08);
    border: 1px solid rgba(16, 185, 129, .25);
    color: #047857;
    font-size: .9rem;
}

.acct-crm-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.acct-crm-row {
    display: flex;
    gap: 1rem;
}

.acct-crm-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.acct-crm-field label {
    font-size: .85rem;
    font-weight: 600;
    color: #444;
}

.acct-crm-field input[type="text"],
.acct-crm-field select {
    padding: .55rem .7rem;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: .95rem;
}

.acct-crm-field input[type="text"]:focus,
.acct-crm-field select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, .15);
}

.acct-crm-tel-code {
    max-width: 160px;
}

.acct-crm-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.acct-crm-check {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    color: #333;
    cursor: pointer;
}

.acct-crm-actions {
    display: flex;
    justify-content: flex-end;
}

.acct-crm-btn {
    padding: .6rem 1.4rem;
    border: none;
    border-radius: 8px;
    background: #0078d4;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
}

.acct-crm-btn:disabled {
    opacity: .6;
    cursor: default;
}

/* ---------  ACCOUNT END  --------- */
/* ---------               --------- */

/* ---------  HOME PAGE  --------- */
/* ---------             --------- */

 .wpibg_content {
        min-height: 0;
    }

    .wpibg_footer {
        margin-top: 0;
    }

    .home-stage {
        position: relative;
        flex: 1;
        width: 100%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: linear-gradient(135deg,
            #ff3d9a 0%,
            #ff6eb4 22%,
            #ffa0d4 48%,
            #ffcce8 72%,
            #fff0f8 100%);
        background-size: 200% 200%;
        background-position: 50% 50%;
        animation: home-bg 9s ease-in-out infinite alternate;
    }

    @keyframes home-bg {
        0%   { background-position: 0% 0%; }
        100% { background-position: 100% 100%; }
    }

    .home-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

    .home-p {
        position: absolute;
        border-radius: 50%;
        animation: home-float 7s ease-in-out infinite;
    }

    @keyframes home-float {
        0%,100% { transform: translateY(0) scale(1); opacity: .35; }
        50%     { transform: translateY(-60px) scale(1.15); opacity: .80; }
    }

    .home-p:nth-child(1) { width:14px; height:14px; background:rgba(255,255,255,.70); top:10%; left: 7%; animation-delay:0.0s; animation-duration: 6s; }
    .home-p:nth-child(2) { width:22px; height:22px; background:rgba(255,100,175,.30); top:65%; left:13%; animation-delay:1.1s; animation-duration: 9s; }
    .home-p:nth-child(3) { width:10px; height:10px; background:rgba(255,255,255,.60); top:22%; left:80%; animation-delay:2.3s; animation-duration: 7s; }
    .home-p:nth-child(4) { width:18px; height:18px; background:rgba(255,150,200,.40); top:77%; left:70%; animation-delay:0.6s; animation-duration: 8s; }
    .home-p:nth-child(5) { width: 8px; height: 8px; background:rgba(255,255,255,.75); top:48%; left:47%; animation-delay:1.8s; animation-duration: 5s; }
    .home-p:nth-child(6) { width:26px; height:26px; background:rgba(255, 60,155,.18); top:17%; left:56%; animation-delay:3.0s; animation-duration:10s; }
    .home-p:nth-child(7) { width:12px; height:12px; background:rgba(255,255,255,.55); top:55%; left:89%; animation-delay:0.9s; animation-duration: 7s; }
    .home-p:nth-child(8) { width:20px; height:20px; background:rgba(255,100,175,.28); top:33%; left:21%; animation-delay:2.4s; animation-duration: 9s; }
    .home-p:nth-child(9) { width:16px; height:16px; background:rgba(255,255,255,.48); top:84%; left:38%; animation-delay:1.3s; animation-duration: 8s; }

    .home-scene {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
        max-width: 820px;
        width: 100%;
    }

    .home-label {
        margin: 0 0 0.35rem;
        font-size: clamp(.85rem, 2.5vw, 1.15rem);
        font-weight: 400;
        letter-spacing: .45em;
        text-transform: uppercase;
        color: rgba(140, 18, 72, .78);
        opacity: 0;
        animation: home-fly-up .75s cubic-bezier(.22,1,.36,1) .2s forwards;
    }

    @keyframes home-fly-up {
        from { opacity: 0; transform: translateY(22px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .home-title {
        margin: 0 0 .75rem;
        font-size: clamp(2.2rem, 9vw, 5rem);
        font-weight: 900;
        line-height: 1.0;
        letter-spacing: -.025em;
        background: linear-gradient(135deg, #a8004e 0%, #ff3d9a 50%, #ff88c2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        opacity: 0;
        animation: home-emerge 1s cubic-bezier(.22,1,.36,1) 1.0s forwards;
    }

    @keyframes home-emerge {
        from { opacity: 0; filter: blur(10px); transform: scale(.88) translateY(18px); }
        to   { opacity: 1; filter: blur(0); transform: scale(1) translateY(0); }
    }

    .home-message {
        margin: 0 0 1.2rem;
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        font-weight: 300;
        color: rgba(118, 14, 62, .9);
        max-width: 680px;
        line-height: 1.5;
        opacity: 0;
        animation: home-fade-rise .85s ease-out 2.1s forwards;
    }

    @keyframes home-fade-rise {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .home-signin {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        background: #0078d4;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        opacity: 0;
        animation: home-fade-rise .85s ease-out 2.7s forwards;
    }

/* ---------  HOME END  --------- */
/* ---------            --------- */

/* ---------  LOGIN PAGE  --------- */
/* ---------              --------- */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    padding: 2rem 1rem;
    background-image: url('/images/consumers.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
}

.login-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 380px;
    padding: 2.5rem 2rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,250,255,0.95));
    border: 1px solid rgba(16,24,40,0.07);
    box-shadow: 0 12px 40px rgba(16,24,40,0.1);
    position: relative;
    z-index: 1;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #0b1220;
}

.login-brand__icon {
    font-size: 2.8rem;
}

.login-brand__label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #374151;
}

.login-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b1220;
    text-align: center;
}

.login-consent {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.login-consent__item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #374151;
    font-size: 0.86rem;
    line-height: 1.35;
}

.login-consent__checkbox {
    margin-top: 0.15rem;
}

.login-consent__item a {
    color: #0b63b6;
    text-decoration: underline;
}

.login-consent__item a:hover {
    color: #084f91;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms ease, box-shadow 150ms ease, transform 100ms ease;
    cursor: pointer;
}

.login-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-btn--microsoft {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #d0d5dd;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.login-btn--microsoft:hover {
    background: #f5f5f5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.login-btn__ms-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Dev-only bypass section ──────────────────────────────── */
.login-dev-bypass {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px dashed #f59e0b;
}

.login-dev-bypass__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #b45309;
    background: #fef3c7;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.login-btn--bypass {
    background: #fffbeb;
    color: #92400e;
    border: 1px dashed #f59e0b;
    font-size: 0.85rem;
    font-weight: 600;
}

.login-btn--bypass:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

/* ---------  LOGIN END  --------- */
/* ---------             --------- */

/* ---------  MYAPPS PAGE  --------- */
/* ---------               --------- */

.my-apps-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    flex: 1;
    padding: 1rem 1rem 2rem;
}

.my-apps-list {
    list-style: none;
    padding: 0;
    margin: 1rem auto 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: calc(5 * 9rem + 4 * 1rem);
}

@media (max-width: 700px) {
    .my-apps-list {
        grid-template-columns: repeat(3, 1fr);
        max-width: calc(3 * 9rem + 2 * 1rem);
    }
}

@media (max-width: 420px) {
    .my-apps-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: calc(2 * 9rem + 1rem);
    }
}

h2 {
    margin: 1rem 0 0.35rem;
    font-size: 1rem;
}

.my-apps-empty {
    color: #6b7280;
    font-size: 0.95rem;
    padding: 1.5rem 0;
}

/* ---------  MYAPPS END  --------- */
/* ---------              --------- */

/* ---------  NOTIFICATIONS PAGE  --------- */
/* ---------                      --------- */

.notif-shell {
    max-width: 760px;
    margin: 2rem auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notif-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.notif-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.notif-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
}

.notif-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.notif-btn:hover {
    background: #f3f4f6;
}

.notif-btn--danger {
    color: #b91c1c;
    border-color: #fecaca;
}

.notif-btn--danger:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.notif-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.notif-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #9ca3af;
    padding: 3rem 0;
    text-align: center;
}

.notif-placeholder .bi {
    font-size: 2.25rem;
    color: #d1d5db;
}

.notif-placeholder p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.notif-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.notif-item:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.notif-item--new {
    background: #f5f7ff;
    border-color: #c7d2fe;
}

.notif-item--new .notif-item__icon {
    background: #4338ca;
    color: #fff;
}

.notif-item__new-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #4338ca;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.notif-item__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #eef2ff;
    color: #4338ca;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.notif-item__body {
    flex: 1;
    min-width: 0;
}

.notif-item__header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.notif-item__event {
    color: #111827;
    font-size: 0.98rem;
}

.notif-item__date {
    margin-left: auto;
    color: #9ca3af;
    font-size: 0.78rem;
    white-space: nowrap;
}

.notif-item__description {
    margin-top: 0.4rem;
    white-space: pre-wrap;
    color: #6b7280;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.4;
}

.notif-item__text {
    margin-top: 0.5rem;
    white-space: pre-wrap;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.45;
}

.notif-item__footer {
    margin-top: 0.6rem;
}

.notif-item__from {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6b7280;
    font-size: 0.78rem;
}

.notif-item__delete {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 0.1rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.notif-item__delete:hover {
    color: #b91c1c;
    background: #fef2f2;
}

@media (max-width: 560px) {
    .notif-shell {
        margin: 0.75rem;
        padding: 1.1rem;
    }

    .notif-item__date {
        margin-left: 0;
    }
}

/* ---------  NOTIFICATIONS END  --------- */
/* ---------                     --------- */

/* ---------  UNAUTHORIZED PAGE  --------- */
/* ---------                     --------- */

.unauth-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 50vh;
    text-align: center;
    padding: 2rem;
}

.unauth-icon {
    font-size: 3.5rem;
    color: #dc2626;
    opacity: 0.7;
}

.unauth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.unauth-msg {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    max-width: 420px;
}

.unauth-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.unauth-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #0078d4;
    color: #fff;
    border: 1px solid transparent;
    transition: background 150ms ease;
}

.unauth-btn:hover {
    background: #005fa3;
}

.unauth-btn--secondary {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.unauth-btn--secondary:hover {
    background: #f3f4f6;
}

/* ---------  UNAUTHORIZED END  --------- */
/* ---------                    --------- */

/* ---------  WELCOME PAGE  --------- */
/* ---------                --------- */

.wlc-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1rem 4rem;
}

.wlc-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.wlc-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b1220;
    margin: 0;
}

.wlc-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.wlc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}

.wlc-skip {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0;
}

.wlc-skip a {
    color: #0078d4;
    text-decoration: none;
}

.wlc-skip a:hover { text-decoration: underline; }

.wlc-loading {
    color: #9ca3af;
    font-size: 0.95rem;
    padding: 3rem;
    text-align: center;
}

/* ---------  WELCOME END  --------- */
/* ---------               --------- */