/* ==========================================================================
   AL Theme — modern public-facing design system
   Used by: AccountList, Bill/Info, PayTaxD, PayTrans, UpdateContact, FPX/Result
   Design tokens, components, animations.
   Scoped under .al-page so it never leaks into staff/internal screens.
   ========================================================================== */

/* Body background fills any space below short pages */
body:has(.al-page) {
    background: #E5EAF3;
}

.al-page {
    --al-primary: #1E3A8A;
    --al-primary-2: #4F46E5;
    --al-primary-3: #06B6D4;
    --al-primary-soft: #E0E7FF;
    --al-bg: #E5EAF3;
    --al-bg-2: #DDE4F3;
    --al-surface: #FFFFFF;
    --al-border: #E2E8F0;
    --al-border-strong: #CBD5E1;
    --al-text: #0F172A;
    --al-text-muted: #475569;
    --al-text-subtle: #94A3B8;
    --al-success: #10B981;
    --al-danger: #DC2626;
    --al-warning: #D97706;
    --al-radius: 14px;
    --al-radius-lg: 20px;
    --al-radius-sm: 10px;
    --al-shadow-sm: 0 1px 2px rgba(15,23,42,0.04), 0 1px 3px rgba(15,23,42,0.06);
    --al-shadow-md: 0 4px 8px -1px rgba(15,23,42,0.06), 0 2px 4px -2px rgba(15,23,42,0.05);
    --al-shadow-lg: 0 12px 24px -8px rgba(30,58,138,0.18), 0 6px 10px -6px rgba(30,58,138,0.12);
    --al-ease: cubic-bezier(0.4, 0, 0.2, 1);

    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(1000px 500px at -10% -10%, rgba(99,102,241,0.08), transparent 60%),
        radial-gradient(800px 500px at 110% 0%, rgba(6,182,212,0.06), transparent 55%),
        var(--al-bg);
    color: var(--al-text);
    padding: 14px 16px 56px;
    font-feature-settings: "ss01", "cv01";
}

.al-container { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.al-container--narrow { max-width: 760px; }
.al-container > form { display: flex; flex-direction: column; gap: 10px; }

/* ============== Animations ============== */
@keyframes alFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes alFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8px, -10px) scale(1.04); } }
@keyframes alPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); } }
@keyframes alCardEnter {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0); }
}
.al-page .al-animate { opacity: 0; animation: alFadeUp 0.55s var(--al-ease) forwards; }
.al-page .al-card--enter { animation: alCardEnter 0.55s var(--al-ease) backwards; }

/* ============== Profile / Hero card ============== */
.al-profile {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: var(--al-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--al-shadow-lg);
    background:
        radial-gradient(at 20% 30%, hsla(225, 80%, 60%, 0.55) 0px, transparent 55%),
        radial-gradient(at 80% 20%, hsla(260, 85%, 65%, 0.55) 0px, transparent 50%),
        radial-gradient(at 60% 95%, hsla(190, 90%, 55%, 0.45) 0px, transparent 50%),
        linear-gradient(135deg, #0F1E5C 0%, #1E3A8A 45%, #4F46E5 100%);
    animation: alFadeUp 0.55s var(--al-ease) forwards;
}
.al-profile::before, .al-profile::after {
    content: ""; position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}
.al-profile::before { width: 280px; height: 280px; top: -120px; right: -80px; animation: alFloat 12s var(--al-ease) infinite; }
.al-profile::after  { width: 200px; height: 200px; bottom: -90px; left: 30%; animation: alFloat 16s var(--al-ease) infinite reverse; opacity: 0.6; }

.al-profile__inner { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.al-profile__avatar {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.10));
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; letter-spacing: 0.5px; color: #fff;
    box-shadow: 0 8px 18px -8px rgba(0,0,0,0.35);
}
.al-profile__main { min-width: 0; flex: 1; }
.al-profile__greeting {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; opacity: 0.95; margin: 0 0 6px;
    letter-spacing: 0.6px; text-transform: uppercase; font-weight: 600;
}
.al-profile__name { font-size: 26px; font-weight: 700; margin: 0 0 14px; line-height: 1.2; word-break: break-word; letter-spacing: -0.4px; }
.al-profile__info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; }
.al-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.18);
}
.al-chip svg { opacity: 0.85; }
.al-profile__contact { display: inline-flex; align-items: center; gap: 8px; opacity: 0.95; word-break: break-all; }
.al-profile__contact svg { flex-shrink: 0; opacity: 0.8; }

/* Time-of-day greeting badge */
.al-greet-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.22);
    flex-shrink: 0;
}
.al-greet-icon svg { width: 16px; height: 16px; }
.al-greet-icon--morning {
    color: #FCA5A5;
    background: linear-gradient(135deg, rgba(252,165,165,0.28), rgba(254,215,170,0.18));
    box-shadow: 0 0 18px rgba(254,215,170,0.35);
    animation: alGreetFloat 4s ease-in-out infinite;
}
.al-greet-icon--noon {
    color: #FCD34D;
    background: linear-gradient(135deg, rgba(252,211,77,0.30), rgba(251,191,36,0.18));
    box-shadow: 0 0 20px rgba(252,211,77,0.45);
    animation: alGreetSpin 22s linear infinite;
}
.al-greet-icon--evening {
    color: #FB923C;
    background: linear-gradient(135deg, rgba(251,146,60,0.28), rgba(244,114,182,0.18));
    box-shadow: 0 0 18px rgba(251,146,60,0.40);
}
.al-greet-icon--night {
    color: #C7D2FE;
    background: linear-gradient(135deg, rgba(199,210,254,0.28), rgba(167,139,250,0.18));
    box-shadow: 0 0 18px rgba(199,210,254,0.35);
    animation: alGreetTwinkle 3.5s ease-in-out infinite;
}
@keyframes alGreetFloat   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes alGreetSpin    { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes alGreetTwinkle { 0%, 100% { opacity: 1; filter: brightness(1); } 50% { opacity: 0.85; filter: brightness(1.15); } }

/* ============== Sections ============== */
.al-section { animation: alFadeUp 0.55s var(--al-ease) 0.1s forwards; opacity: 0; }
.al-section--late { animation-delay: 0.18s; }
.al-section__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.al-section__title-wrap { display: flex; align-items: center; gap: 10px; }
.al-section__title { font-size: 20px; font-weight: 700; margin: 0; color: var(--al-text); letter-spacing: -0.4px; line-height: 1.2; }
.al-section__title-accent { width: 4px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, var(--al-primary-2), var(--al-primary-3)); }
.al-section__count {
    font-size: 12px; color: var(--al-text-muted); font-weight: 600;
    background: var(--al-bg-2); padding: 3px 10px; border-radius: 999px; margin-left: 4px;
}

/* ============== Search ============== */
.al-search { position: relative; max-width: 360px; flex: 1 1 260px; }
.al-search input {
    width: 100%; padding: 12px 12px 12px 42px;
    border: 1px solid var(--al-border); border-radius: 12px;
    background: var(--al-surface); font-size: 14px; font-family: inherit;
    transition: border-color 0.2s var(--al-ease), box-shadow 0.2s var(--al-ease);
    box-sizing: border-box;
    box-shadow: var(--al-shadow-sm);
}
.al-search input:focus { outline: none; border-color: var(--al-primary-2); box-shadow: 0 0 0 4px rgba(79,70,229,0.12); }
.al-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--al-text-subtle); }

/* ============== Action grid (quick actions) ============== */
.al-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.al-action {
    --a-fg: #4F46E5; --a-bg: #EEF2FF; --a-glow: rgba(79,70,229,0.18);
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius);
    padding: 18px 40px 18px 18px;
    display: flex; align-items: flex-start; gap: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px -2px rgba(15,23,42,0.06), 0 4px 8px -4px rgba(15,23,42,0.04);
    transition: border-color 0.25s var(--al-ease), transform 0.25s var(--al-ease), box-shadow 0.25s var(--al-ease);
    text-align: left; font-family: inherit; color: inherit; width: 100%;
    overflow: hidden;
}
.al-action::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at top right, var(--a-glow), transparent 60%);
    opacity: 0; transition: opacity 0.25s var(--al-ease);
    pointer-events: none;
}
.al-action:hover { border-color: var(--a-fg); box-shadow: 0 14px 28px -12px var(--a-glow), 0 6px 12px -6px var(--a-glow); transform: translateY(-2px); }
.al-action:hover::before { opacity: 1; }
.al-action:focus-visible { outline: 2px solid var(--a-fg); outline-offset: 2px; }
.al-action__icon {
    position: relative;
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--a-bg), color-mix(in srgb, var(--a-bg) 70%, white));
    color: var(--a-fg);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: transform 0.25s var(--al-ease);
}
.al-action:hover .al-action__icon { transform: scale(1.06) rotate(-3deg); }
.al-action__icon svg { width: 22px; height: 22px; }
.al-action__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; }
.al-action__title { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--al-text); letter-spacing: -0.1px; }
.al-action__hint { font-size: 13px; color: var(--al-text-muted); line-height: 1.45; }
.al-action__arrow {
    position: absolute; top: 16px; right: 16px;
    color: var(--a-fg); opacity: 0.45;
    transition: opacity 0.25s var(--al-ease), transform 0.25s var(--al-ease);
}
.al-action:hover .al-action__arrow { opacity: 1; transform: translateX(3px); }
.al-action--add    { --a-fg: #4F46E5; --a-bg: #E0E7FF; --a-glow: rgba(79,70,229,0.20); }
.al-action--del    { --a-fg: #E11D48; --a-bg: #FFE4E6; --a-glow: rgba(225,29,72,0.18); }
.al-action--check  { --a-fg: #059669; --a-bg: #D1FAE5; --a-glow: rgba(5,150,105,0.18); }
.al-action--name   { --a-fg: #D97706; --a-bg: #FEF3C7; --a-glow: rgba(217,119,6,0.18); }
.al-action--remisi { --a-fg: #7C3AED; --a-bg: #EDE9FE; --a-glow: rgba(124,58,237,0.18); }
.al-action--rstat  { --a-fg: #0891B2; --a-bg: #CFFAFE; --a-glow: rgba(8,145,178,0.18); }

/* ============== Cards (data list items) ============== */
.al-card {
    position: relative;
    background: var(--al-surface);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius);
    padding: 14px 18px 14px 22px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.3s var(--al-ease), box-shadow 0.3s var(--al-ease), transform 0.3s var(--al-ease);
    overflow: hidden;
    isolation: isolate;
}
.al-card--static { cursor: default; }
.al-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--al-primary-2), var(--al-primary-3));
    opacity: 0.7; transform: scaleY(0.55); transform-origin: center;
    transition: transform 0.35s var(--al-ease), opacity 0.35s var(--al-ease);
    z-index: 1;
}
.al-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(99,102,241,0.10) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.7s var(--al-ease);
    pointer-events: none;
    z-index: 0;
}
.al-card:not(.al-card--static):hover {
    border-color: transparent;
    box-shadow: 0 12px 24px -10px rgba(30,58,138,0.20), 0 6px 10px -6px rgba(79,70,229,0.14);
    transform: translateY(-2px);
}
.al-card:not(.al-card--static):hover::before { transform: scaleY(1); opacity: 1; }
.al-card:not(.al-card--static):hover::after { transform: translateX(110%); }

.al-card__inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px 14px;
}
.al-card__icon {
    flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
    color: var(--al-primary-2);
    transition: transform 0.35s var(--al-ease), background 0.35s var(--al-ease), box-shadow 0.35s var(--al-ease);
}
.al-card__icon svg { width: 18px; height: 18px; }
.al-card:not(.al-card--static):hover .al-card__icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, var(--al-primary-2), var(--al-primary-3));
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(79,70,229,0.55);
}
.al-card__main { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.al-card__title { font-size: 14px; font-weight: 700; color: var(--al-text); margin: 0; line-height: 1.4; letter-spacing: -0.1px; }
.al-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.al-card__btn {
    flex-shrink: 0; margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: var(--al-primary-2);
    font-size: 12.5px; font-weight: 600;
    border: 1px solid rgba(79,70,229,0.14);
    transition: background 0.3s var(--al-ease), color 0.3s var(--al-ease), box-shadow 0.3s var(--al-ease), border-color 0.3s var(--al-ease), transform 0.3s var(--al-ease);
}
.al-card__btn svg { transition: transform 0.3s var(--al-ease); }
.al-card:not(.al-card--static):hover .al-card__btn {
    background: linear-gradient(135deg, var(--al-primary-2), var(--al-primary-3));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 14px -4px rgba(79,70,229,0.45);
    transform: translateX(2px);
}
.al-card:not(.al-card--static):hover .al-card__btn svg { transform: translateX(2px); }

/* ============== Tags ============== */
.al-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: #F1F5F9; color: var(--al-text-muted);
    padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
    transition: background 0.2s var(--al-ease);
}
.al-tag svg { color: var(--al-text-subtle); flex-shrink: 0; }
.al-tag--account {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: var(--al-primary-2);
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
    font-weight: 600; padding: 3px 10px;
    border: 1px solid rgba(79,70,229,0.12);
}
.al-tag--account svg { color: var(--al-primary-2); }
.al-tag--lot {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    color: #047857; border: 1px solid rgba(5,150,105,0.14);
}
.al-tag--lot svg { color: #059669; }
.al-tag--building {
    background: linear-gradient(135deg, #FEFCE8, #FEF08A);
    color: #854D0E; border: 1px solid rgba(202,138,4,0.22);
}
.al-tag--building svg { color: #CA8A04; }
.al-card:hover .al-tag { background: #E2E8F0; }
.al-card:hover .al-tag--account { background: linear-gradient(135deg, #DBEAFE, #C7D2FE); }
.al-card:hover .al-tag--lot { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); }
.al-card:hover .al-tag--building { background: linear-gradient(135deg, #FEF08A, #FDE047); }

/* ============== Status pills ============== */
.al-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.al-status::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
}
.al-status--active {
    color: var(--al-success);
    background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(5,150,105,0.06));
    border: 1px solid rgba(16,185,129,0.18);
}
.al-status--active::before { background: var(--al-success); animation: alPulse 2s var(--al-ease) infinite; }
.al-status--paid {
    color: var(--al-success);
    background: rgba(16,185,129,0.10);
    border: 1px solid rgba(16,185,129,0.18);
}
.al-status--paid::before { background: var(--al-success); }
.al-status--pending {
    color: #B45309;
    background: rgba(217,119,6,0.10);
    border: 1px solid rgba(217,119,6,0.18);
}
.al-status--pending::before { background: #D97706; }
.al-status--failed {
    color: var(--al-danger);
    background: rgba(220,38,38,0.10);
    border: 1px solid rgba(220,38,38,0.18);
}
.al-status--failed::before { background: var(--al-danger); }

/* ============== Forms ============== */
.al-form { display: flex; flex-direction: column; gap: 18px; }
.al-form__group { display: flex; flex-direction: column; gap: 6px; }
.al-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.al-label {
    font-size: 13px; font-weight: 600; color: var(--al-text-muted);
    letter-spacing: 0.1px;
}
.al-label--required::after { content: " *"; color: var(--al-danger); font-weight: 700; }
.al-input, .al-textarea, .al-select {
    width: 100%;
    min-height: 42px;
    padding: 11px 14px;
    border: 1px solid var(--al-border);
    border-radius: 10px;
    background: var(--al-surface);
    font-size: 14px; font-family: inherit; color: var(--al-text);
    transition: border-color 0.2s var(--al-ease), box-shadow 0.2s var(--al-ease), background 0.2s var(--al-ease);
    box-sizing: border-box;
    display: block;
    appearance: none;
    -webkit-appearance: none;
}
.al-select { padding-right: 36px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.al-input:focus, .al-textarea:focus, .al-select:focus {
    outline: none;
    border-color: var(--al-primary-2);
    box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
}
.al-input[readonly], .al-input:disabled, .al-textarea[readonly], .al-select:disabled {
    background: #F8FAFC; color: var(--al-text-muted); cursor: default;
}
.al-input--mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace; }
.al-input--upper { text-transform: uppercase; }
.al-input--upper::placeholder { text-transform: none; }
.al-textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.al-form__hint { font-size: 12px; color: var(--al-text-subtle); }
.al-form__error { font-size: 13px; color: var(--al-danger); font-weight: 500; }
.al-form__actions {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
    margin-top: 6px;
}

/* Radio / option group */
.al-options { display: flex; flex-wrap: wrap; gap: 10px; }
.al-option {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px;
    background: var(--al-surface); border: 1px solid var(--al-border);
    font-size: 14px; font-weight: 500; color: var(--al-text);
    cursor: pointer;
    transition: border-color 0.2s var(--al-ease), background 0.2s var(--al-ease), box-shadow 0.2s var(--al-ease);
}
.al-option:hover { border-color: var(--al-primary-2); }
.al-option input[type="radio"], .al-option input[type="checkbox"] {
    accent-color: var(--al-primary-2);
}
.al-option:has(input:checked) {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-color: var(--al-primary-2);
    color: var(--al-primary-2);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.10);
}

/* ============== Buttons ============== */
.al-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px;
    font-size: 14px; font-weight: 600; font-family: inherit;
    text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    background: var(--al-surface); color: var(--al-text);
    transition: background 0.2s var(--al-ease), color 0.2s var(--al-ease), border-color 0.2s var(--al-ease), box-shadow 0.2s var(--al-ease), transform 0.15s var(--al-ease);
    line-height: 1; white-space: nowrap;
}
.al-btn:hover { transform: translateY(-1px); text-decoration: none; }
.al-btn:active { transform: translateY(0); }
.al-btn:focus-visible { outline: 2px solid var(--al-primary-2); outline-offset: 2px; }
.al-btn--primary {
    background: linear-gradient(135deg, var(--al-primary-2), var(--al-primary-3));
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(79,70,229,0.40);
}
.al-btn--primary:hover { color: #fff; box-shadow: 0 10px 20px -6px rgba(79,70,229,0.50); }
.al-btn--success {
    background: linear-gradient(135deg, #059669, #10B981);
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(16,185,129,0.40);
}
.al-btn--success:hover { color: #fff; box-shadow: 0 10px 20px -6px rgba(16,185,129,0.50); }
.al-btn--danger {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: #fff;
    box-shadow: 0 6px 14px -4px rgba(220,38,38,0.40);
}
.al-btn--danger:hover { color: #fff; box-shadow: 0 10px 20px -6px rgba(220,38,38,0.50); }
.al-btn--ghost {
    background: transparent; color: var(--al-text-muted);
    border-color: var(--al-border);
}
.al-btn--ghost:hover { background: #F1F5F9; color: var(--al-text); border-color: var(--al-border-strong); }
.al-btn--soft {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    color: var(--al-primary-2);
    border-color: rgba(79,70,229,0.14);
}
.al-btn--soft:hover {
    background: linear-gradient(135deg, var(--al-primary-2), var(--al-primary-3));
    color: #fff; border-color: transparent;
    box-shadow: 0 6px 14px -4px rgba(79,70,229,0.40);
}
.al-btn--block { width: 100%; }
.al-btn--lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.al-btn--sm { padding: 8px 14px; font-size: 13px; }

/* ============== Surface card (for forms/details) ============== */
.al-surface {
    background: var(--al-surface);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius);
    padding: 24px;
    box-shadow: var(--al-shadow-sm);
}
.al-surface--lg { padding: 32px; border-radius: var(--al-radius-lg); }
.al-surface__head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--al-border); }
.al-surface__title { font-size: 18px; font-weight: 700; color: var(--al-text); margin: 0 0 4px; letter-spacing: -0.2px; }
.al-surface__hint { font-size: 13px; color: var(--al-text-muted); margin: 0; }

/* Definition list (label/value pairs for read-only details) */
.al-dl {
    display: grid; grid-template-columns: minmax(140px, max-content) 1fr;
    gap: 10px 24px; margin: 0;
}
.al-dl dt { color: var(--al-text-muted); font-size: 13px; font-weight: 500; }
.al-dl dd { color: var(--al-text); font-size: 14px; font-weight: 500; margin: 0; word-break: break-word; }
.al-dl--stack { grid-template-columns: 1fr; gap: 4px; }
.al-dl--stack dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
.al-dl--stack dd { font-size: 15px; font-weight: 600; }

/* ============== Hero banner (page-title style, lighter than al-profile) ============== */
.al-hero {
    position: relative;
    background:
        radial-gradient(1200px 300px at 100% -20%, rgba(56,189,248,0.18), transparent 60%),
        radial-gradient(800px 280px at 0% 100%, rgba(139,92,246,0.10), transparent 60%),
        linear-gradient(135deg, #F0F9FF 0%, #DBEAFE 45%, #E0E7FF 100%);
    border: 1px solid rgba(147,197,253,0.45);
    border-radius: var(--al-radius-lg);
    box-shadow: 0 4px 14px -6px rgba(30,58,138,0.10), 0 1px 2px rgba(15,23,42,0.04);
    overflow: hidden;
    isolation: isolate;
    animation: alFadeUp 0.55s var(--al-ease) forwards;
}
.al-hero::before {
    content: ""; position: absolute;
    left: 0; top: 0; bottom: 0; width: 6px;
    background: linear-gradient(180deg, var(--al-primary-2), var(--al-primary-3));
    box-shadow: 0 0 16px rgba(79,70,229,0.35);
}
.al-hero::after {
    content: ""; position: absolute;
    width: 280px; height: 280px;
    top: -120px; right: -80px;
    background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(186,230,253,0.25) 45%, transparent 75%);
    pointer-events: none;
    border-radius: 50%;
}
.al-hero__inner {
    position: relative; z-index: 1;
    display: flex; align-items: flex-start; gap: 18px;
    padding: 22px 28px 22px 34px;
}
.al-hero__icon {
    flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 100%);
    border: 1px solid rgba(255,255,255,0.7);
    color: var(--al-primary-2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(79,70,229,0.30), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.35s var(--al-ease), background 0.35s var(--al-ease), box-shadow 0.35s var(--al-ease);
}
.al-hero:hover .al-hero__icon {
    transform: scale(1.04) rotate(-3deg);
    background: linear-gradient(135deg, var(--al-primary-2), var(--al-primary-3));
    color: #fff;
    box-shadow: 0 10px 22px -6px rgba(79,70,229,0.50);
}
.al-hero__icon svg { width: 26px; height: 26px; }
.al-hero__main { min-width: 0; flex: 1; }
.al-hero__crumb {
    font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
    color: var(--al-text-subtle); text-transform: uppercase;
    margin: 2px 0 6px;
}
.al-hero__title {
    font-size: 24px; font-weight: 700; color: var(--al-text);
    margin: 0 0 10px; line-height: 1.25; letter-spacing: -0.4px;
    word-break: break-word;
}
.al-hero__meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px 18px;
    font-size: 13px; color: var(--al-text-muted); font-weight: 500;
}
.al-hero__meta-item { display: inline-flex; align-items: center; gap: 6px; word-break: break-all; }
.al-hero__meta-item svg { color: var(--al-primary-2); flex-shrink: 0; opacity: 0.85; }
.al-hero__meta-item strong { color: var(--al-text); font-weight: 600; }
@media (max-width: 640px) {
    .al-hero__inner { padding: 18px 20px 18px 26px; gap: 14px; }
    .al-hero__icon { width: 44px; height: 44px; border-radius: 12px; }
    .al-hero__icon svg { width: 22px; height: 22px; }
    .al-hero__title { font-size: 20px; }
}

/* ============== Info card (header + 2-col stat grid) ============== */
.al-info-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFE 100%);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius);
    overflow: hidden;
    box-shadow: none;
}
.al-info-card__head {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px 16px;
    border-bottom: 1px solid var(--al-border);
}
.al-info-card__icon {
    flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
    color: var(--al-primary-2);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.35s var(--al-ease), background 0.35s var(--al-ease), box-shadow 0.35s var(--al-ease);
}
.al-info-card__icon svg { width: 20px; height: 20px; }
.al-info-card:hover .al-info-card__icon {
    background: linear-gradient(135deg, var(--al-primary-2), var(--al-primary-3));
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(79,70,229,0.5);
}
.al-info-card__head-text { min-width: 0; }
.al-info-card__title { font-size: 17px; font-weight: 700; color: var(--al-text); margin: 0; line-height: 1.3; letter-spacing: -0.2px; }
.al-info-card__hint { font-size: 13px; color: var(--al-text-muted); margin: 2px 0 0; }

.al-info-card__body {
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 36px;
}
.al-info-card__divider {
    grid-column: 1 / -1;
    height: 1px; background: var(--al-border);
    margin: 0;
}
.al-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.al-info__label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
    color: var(--al-text-subtle);
    text-transform: uppercase;
}
.al-info__value {
    font-size: 15px; font-weight: 600; color: var(--al-text);
    word-break: break-word; line-height: 1.4;
    min-height: 1.4em;
}
.al-info--span2 { grid-column: span 2; }
@media (max-width: 640px) {
    .al-info-card__head { padding: 16px 18px 14px; }
    .al-info-card__body { padding: 18px; gap: 16px 24px; grid-template-columns: 1fr; }
    .al-info--span2 { grid-column: auto; }
}

/* ============== Status hero (success / pending / failed) ============== */
.al-status-hero {
    position: relative;
    border-radius: var(--al-radius-lg);
    padding: 36px 32px 32px;
    text-align: center; overflow: hidden;
    animation: alFadeUp 0.55s var(--al-ease) forwards;
}
.al-status-hero::before {
    content: ""; position: absolute;
    width: 320px; height: 320px;
    top: -140px; right: -90px;
    border-radius: 50%; pointer-events: none;
}
.al-status-hero--success {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 50%, #A7F3D0 100%);
    border: 1px solid rgba(5,150,105,0.20);
}
.al-status-hero--success::before {
    background: radial-gradient(circle, rgba(255,255,255,0.65), rgba(167,243,208,0.30) 50%, transparent 75%);
}
.al-status-hero--pending {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #FDE68A 100%);
    border: 1px solid rgba(217,119,6,0.22);
}
.al-status-hero--pending::before {
    background: radial-gradient(circle, rgba(255,255,255,0.65), rgba(252,211,77,0.30) 50%, transparent 75%);
}
.al-status-hero--failed {
    background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 50%, #FCA5A5 100%);
    border: 1px solid rgba(220,38,38,0.22);
}
.al-status-hero--failed::before {
    background: radial-gradient(circle, rgba(255,255,255,0.65), rgba(252,165,165,0.30) 50%, transparent 75%);
}
.al-status-hero__icon {
    position: relative;
    width: 84px; height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.al-status-hero__icon svg { width: 44px; height: 44px; color: #fff; }
.al-status-hero--success .al-status-hero__icon {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 10px 24px -6px rgba(5,150,105,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
.al-status-hero--pending .al-status-hero__icon {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    box-shadow: 0 10px 24px -6px rgba(217,119,6,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
    animation: alPendingSpin 6s linear infinite;
}
.al-status-hero--failed .al-status-hero__icon {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    box-shadow: 0 10px 24px -6px rgba(220,38,38,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
@keyframes alPendingSpin { to { transform: rotate(360deg); } }
.al-status-hero__label {
    position: relative; font-size: 12px; font-weight: 700; letter-spacing: 0.7px;
    text-transform: uppercase; margin: 0 0 6px;
}
.al-status-hero--success .al-status-hero__label { color: #047857; }
.al-status-hero--pending .al-status-hero__label { color: #92400E; }
.al-status-hero--failed .al-status-hero__label { color: #B91C1C; }
.al-status-hero__title {
    position: relative; font-size: 24px; font-weight: 700;
    margin: 0 0 10px; line-height: 1.2; letter-spacing: -0.3px;
}
.al-status-hero--success .al-status-hero__title { color: #064E3B; }
.al-status-hero--pending .al-status-hero__title { color: #78350F; }
.al-status-hero--failed .al-status-hero__title { color: #7F1D1D; }
.al-status-hero__id {
    position: relative; display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.7);
    padding: 6px 14px; border-radius: 999px;
    font-family: ui-monospace, "SF Mono", monospace;
    font-weight: 700; font-size: 14px;
    margin: 4px 0 14px;
}
.al-status-hero--success .al-status-hero__id { color: #064E3B; border: 1px solid rgba(5,150,105,0.25); }
.al-status-hero--pending .al-status-hero__id { color: #78350F; border: 1px solid rgba(217,119,6,0.25); }
.al-status-hero--failed .al-status-hero__id { color: #7F1D1D; border: 1px solid rgba(220,38,38,0.25); }
.al-status-hero__id-label {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.al-status-hero--success .al-status-hero__id-label { color: #047857; }
.al-status-hero--pending .al-status-hero__id-label { color: #92400E; }
.al-status-hero--failed .al-status-hero__id-label { color: #B91C1C; }
.al-status-hero__msg {
    position: relative; font-size: 15px; line-height: 1.55;
    max-width: 540px; margin: 0 auto;
}
.al-status-hero--success .al-status-hero__msg { color: #065F46; }
.al-status-hero--pending .al-status-hero__msg { color: #78350F; }
.al-status-hero--failed .al-status-hero__msg { color: #991B1B; }

/* ============== PPj DevExtreme popup theming (.ppj-pop) ============== */
/* Strip dxPopup chrome and let our custom panel render the entire UI */
.ppj-pop .dx-overlay-content {
    background: transparent !important;
    box-shadow: 0 30px 60px -20px rgba(15,23,42,0.40), 0 12px 24px -8px rgba(15,23,42,0.18) !important;
    border: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    max-height: 90vh !important;
    /* Prevent dxPopup half-pixel transform from blurring text */
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.ppj-pop .dx-popup-content {
    padding: 0 !important;
    background: transparent !important;
    height: 100% !important;
}
/* ScrollView inside popup fills the popup body */
.ppj-pop .dx-popup-content .dx-scrollview {
    height: 100% !important;
}
.ppj-pop .dx-popup-title { display: none !important; }

.ppj-pop__panel {
    background: #FFFFFF;
    border-radius: 18px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0F172A;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Simple header bar (clean reference style) */
.ppj-pop__head {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
    flex-shrink: 0;
}
.ppj-pop__head-title {
    flex: 1; min-width: 0;
    font-size: 17px; font-weight: 700; color: #0F172A;
    margin: 0; letter-spacing: -0.2px;
}
.ppj-pop__close {
    flex-shrink: 0;
    width: 30px; height: 30px;
    background: transparent; border: 0;
    color: #64748B; cursor: pointer;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.18s ease, color 0.18s ease;
}
.ppj-pop__close:hover { background: #F1F5F9; color: #0F172A; }

/* Body */
.ppj-pop__body {
    padding: 18px 22px 8px;
    background: #FFFFFF;
}

/* Info banner */
.ppj-pop__alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    background: #EFF6FF;
    border: 1px solid rgba(59,130,246,0.20);
    border-radius: 10px;
    color: #1E3A8A;
    font-size: 13px; line-height: 1.5;
    margin-bottom: 16px;
}
.ppj-pop__alert-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #3B82F6; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    margin-top: 1px;
}

/* Danger variant — used by destructive flows (e.g. Remove Favourite) */
.ppj-pop__alert--danger {
    background: #FEF2F2;
    border-color: rgba(220, 38, 38, 0.20);
    color: #991B1B;
}
.ppj-pop__alert-icon--danger { background: #DC2626; }

/* Field — label above, input with inset icon, helper text below */
.ppj-field {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 12px;
}
.ppj-field__label {
    font-size: 11.5px; font-weight: 700;
    color: #334155; letter-spacing: 0.5px; text-transform: uppercase;
}
.ppj-field__control {
    position: relative;
}
.ppj-field__control:focus-within .ppj-field__input {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.14);
}
.ppj-field__icon {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}
.ppj-field__input {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px 11px 42px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    font-size: 14px; font-family: inherit; color: #0F172A;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    appearance: none; -webkit-appearance: none;
    box-sizing: border-box;
    display: block;
}
.ppj-field__input::placeholder { color: #94A3B8; }
.ppj-field__input--mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace; letter-spacing: 0.3px; }
.ppj-field__input--select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.ppj-field__hint {
    font-size: 12px; color: #64748B;
    margin: 4px 0 0; line-height: 1.5;
}
.ppj-field__hint a { color: #3B82F6; text-decoration: none; font-weight: 600; }
.ppj-field__hint a:hover { text-decoration: underline; }

/* OR pill divider */
.ppj-pop__or {
    display: flex; align-items: center; gap: 12px;
    margin: 14px 0 18px;
}
.ppj-pop__or::before, .ppj-pop__or::after {
    content: ""; flex: 1; height: 1px; background: #E2E8F0;
}
.ppj-pop__or span {
    font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: #2563EB;
    background: #DBEAFE; padding: 5px 14px;
    border-radius: 999px;
}

/* Footer */
.ppj-pop__foot {
    padding: 14px 22px 18px;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
    display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap;
}
.ppj-pop__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px;
    font-size: 14px; font-weight: 600; font-family: inherit;
    border-radius: 10px; border: 1px solid transparent; cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.ppj-pop__btn:hover { transform: translateY(-1px); }
.ppj-pop__btn--ghost {
    background: #FFFFFF; color: #475569; border-color: #E2E8F0;
}
.ppj-pop__btn--ghost:hover { background: #F8FAFC; color: #0F172A; border-color: #CBD5E1; }
.ppj-pop__btn--success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    box-shadow: 0 4px 12px -3px rgba(5,150,105,0.40);
}
.ppj-pop__btn--success:hover { box-shadow: 0 8px 18px -4px rgba(5,150,105,0.50); }
.ppj-pop__btn--danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
    box-shadow: 0 4px 12px -3px rgba(220,38,38,0.40);
}
.ppj-pop__btn--danger:hover { box-shadow: 0 8px 18px -4px rgba(220,38,38,0.50); }

/* Status popup — head icon (left of title) */
.ppj-pop__head-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.ppj-pop__head-icon--info { background: #EFF6FF; color: #2563EB; }
.ppj-pop__head-icon--success { background: #ECFDF5; color: #059669; }
.ppj-pop__head-icon--warn { background: #FFFBEB; color: #D97706; }

/* Status list body (no padding so cards sit flush; scroll inside ScrollView) */
.ppj-pop__body--list { padding: 16px 18px 18px; background: #F8FAFC; }

/* Override DX list defaults inside our status popup */
.ppj-pop .ppj-status-list .dx-list-item { padding: 0 !important; background: transparent !important; border: 0 !important; }
.ppj-pop .ppj-status-list .dx-list-item-content { padding: 0 !important; }
.ppj-pop .ppj-status-list .dx-list-item:not(:last-child) { margin-bottom: 10px; }
.ppj-pop .ppj-status-list .dx-list-item.dx-state-hover .ppj-status-card,
.ppj-pop .ppj-status-list .dx-list-item.dx-state-active .ppj-status-card {
    border-color: #93C5FD;
    box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}
.ppj-pop .ppj-status-list .dx-empty-message { display: none; }

/* Status card */
.ppj-status-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    display: flex; flex-direction: column; gap: 8px;
}
.ppj-status-card__head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ppj-status-card__id {
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
    font-size: 12px; font-weight: 700;
    color: #475569;
    background: #F1F5F9;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}
.ppj-status-card__type {
    font-size: 13.5px; font-weight: 600;
    color: #0F172A;
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ppj-status-card__msg {
    font-size: 13px; line-height: 1.5;
    color: #475569;
    margin: 0;
}
.ppj-status-card__foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 6px;
    border-top: 1px dashed #E2E8F0;
    margin-top: 2px;
}
.ppj-status-card__date {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 500;
    color: #64748B;
}
.ppj-status-card__cta {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #EFF6FF; color: #2563EB;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.ppj-status-card:hover .ppj-status-card__cta { background: #2563EB; color: #FFFFFF; transform: translateX(2px); }

/* Empty state for status list */
.ppj-status-empty {
    display: none;
    flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 36px 20px;
    background: #FFFFFF;
    border: 1px dashed #CBD5E1;
    border-radius: 14px;
}
.ppj-status-empty__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: #F1F5F9; color: #94A3B8;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.ppj-status-empty__title { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: #0F172A; }
.ppj-status-empty__sub { margin: 0; font-size: 12.5px; color: #64748B; line-height: 1.5; }

@media (max-width: 480px) {
    .ppj-pop__head { padding: 16px 18px; }
    .ppj-pop__body { padding: 16px 18px 4px; }
    .ppj-pop__foot { padding: 14px 18px; }
}

/* ============== SweetAlert2 modern overrides (.al-swal-*) ============== */
.al-swal-popup {
    border-radius: 16px !important;
    padding: 32px 28px 22px !important;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.25), 0 8px 16px -8px rgba(15, 23, 42, 0.10) !important;
    background: #FFFFFF !important;
    max-width: 400px !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

/* Icon plate */
.al-swal-popup .swal2-icon {
    border: none !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 18px !important;
    position: relative;
}
.al-swal-popup .swal2-icon .swal2-icon-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 28px !important;
    line-height: 1 !important;
}
.al-swal-popup .swal2-icon .swal2-icon-content i { line-height: 1; }
.al-swal-popup .swal2-icon.al-swal-icon-success {
    background: #ECFDF5 !important;
    color: #059669 !important;
}
.al-swal-popup .swal2-icon.al-swal-icon-success::before {
    content: ""; position: absolute; inset: -6px;
    border-radius: 50%; border: 1.5px solid rgba(5, 150, 105, 0.18);
}
.al-swal-popup .swal2-icon.al-swal-icon-danger {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
}
.al-swal-popup .swal2-icon.al-swal-icon-danger::before {
    content: ""; position: absolute; inset: -6px;
    border-radius: 50%; border: 1.5px solid rgba(220, 38, 38, 0.18);
}
.al-swal-popup .swal2-icon.al-swal-icon-info {
    background: #EFF6FF !important;
    color: #2563EB !important;
}
.al-swal-popup .swal2-icon.al-swal-icon-info::before {
    content: ""; position: absolute; inset: -6px;
    border-radius: 50%; border: 1.5px solid rgba(37, 99, 235, 0.18);
}
.al-swal-popup .swal2-icon.al-swal-icon-warn {
    background: #FFFBEB !important;
    color: #D97706 !important;
}
.al-swal-popup .swal2-icon.al-swal-icon-warn::before {
    content: ""; position: absolute; inset: -6px;
    border-radius: 50%; border: 1.5px solid rgba(217, 119, 6, 0.18);
}

/* Hide SweetAlert's default drawn icon strokes/lines (we use Font Awesome via iconHtml) */
.al-swal-popup .swal2-icon .swal2-success-line-tip,
.al-swal-popup .swal2-icon .swal2-success-line-long,
.al-swal-popup .swal2-icon .swal2-success-ring,
.al-swal-popup .swal2-icon .swal2-success-fix,
.al-swal-popup .swal2-icon .swal2-x-mark,
.al-swal-popup .swal2-icon .swal2-x-mark-line-left,
.al-swal-popup .swal2-icon .swal2-x-mark-line-right { display: none !important; }

.al-swal-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.01em !important;
    line-height: 1.35 !important;
    padding: 0 !important;
}
.al-swal-text {
    font-size: 0.9rem !important;
    color: #64748B !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    padding: 0 4px !important;
}
.al-swal-actions {
    gap: 10px !important;
    margin: 22px 0 0 !important;
    flex-wrap: wrap;
}
.al-swal-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease !important;
    min-width: 100px !important;
    box-shadow: none !important;
}
.al-swal-btn:hover { transform: translateY(-1px); }
.al-swal-btn:focus { outline: none !important; box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important; }
.al-swal-btn-success { background: #059669 !important; color: #FFFFFF !important; }
.al-swal-btn-success:hover { background: #047857 !important; }
.al-swal-btn-danger { background: #DC2626 !important; color: #FFFFFF !important; }
.al-swal-btn-danger:hover { background: #B91C1C !important; }
.al-swal-btn-primary { background: #2563EB !important; color: #FFFFFF !important; }
.al-swal-btn-primary:hover { background: #1D4ED8 !important; }

@keyframes al-swal-pop-in {
    0%   { opacity: 0; transform: translateY(-8px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.al-swal-pop-in {
    animation: al-swal-pop-in 0.28s cubic-bezier(0.4, 0, 0.2, 1) both !important;
}

/* Backdrop tint */
.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ============== Environment badge (non-production only) ============== */
.al-env-badge {
    position: fixed;
    bottom: 16px; right: 16px;
    z-index: 9999;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px 7px 11px;
    background: rgba(15, 23, 42, 0.92);
    color: #FFFFFF;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.45);
    pointer-events: none;
    user-select: none;
}
.al-env-badge::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.30);
    animation: al-env-pulse 1.8s ease-in-out infinite;
}
.al-env-badge--staging::before { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.30); }
.al-env-badge--other::before   { background: #A855F7; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.30); }
@keyframes al-env-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.9); }
}

/* ============== Modal ============== */
.al-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: alModalFadeIn 0.2s ease-out;
}
.al-modal-backdrop.is-open { display: flex; }
@keyframes alModalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.al-modal {
    position: relative;
    background: var(--al-surface);
    border-radius: var(--al-radius-lg);
    box-shadow: 0 24px 56px -12px rgba(15,23,42,0.30), 0 8px 16px -8px rgba(15,23,42,0.10);
    max-width: 95vw; max-height: 90vh;
    width: 560px;
    display: flex; flex-direction: column;
    overflow: hidden;
    animation: alModalSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.al-modal--lg { width: 760px; }
.al-modal--sm { width: 480px; }
@keyframes alModalSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.al-modal__head {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--al-border);
    background: linear-gradient(180deg, #FFFFFF, #FAFBFE);
    flex-shrink: 0;
}
.al-modal__icon {
    flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(135deg, #EEF2FF, #DBEAFE);
    color: var(--al-primary-2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px -2px rgba(79,70,229,0.20);
}
.al-modal__icon--danger {
    background: linear-gradient(135deg, #FFE4E6, #FECACA);
    color: #DC2626;
    box-shadow: 0 2px 6px -2px rgba(220,38,38,0.20);
}
.al-modal__icon--success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #059669;
}
.al-modal__icon svg { width: 20px; height: 20px; }
.al-modal__head-text { flex: 1; min-width: 0; }
.al-modal__title { font-size: 17px; font-weight: 700; color: var(--al-text); margin: 0; line-height: 1.3; letter-spacing: -0.2px; }
.al-modal__hint { font-size: 13px; color: var(--al-text-muted); margin: 2px 0 0; }
.al-modal__close {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border: 0; background: transparent;
    color: var(--al-text-muted);
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s var(--al-ease), color 0.15s var(--al-ease);
}
.al-modal__close:hover { background: #F1F5F9; color: var(--al-text); }
.al-modal__close svg { width: 18px; height: 18px; }

.al-modal__body {
    padding: 22px 24px;
    overflow-y: auto;
    flex: 1;
    background: var(--al-surface);
}
.al-modal__body--flush { padding: 0; }

.al-modal__foot {
    padding: 14px 24px;
    border-top: 1px solid var(--al-border);
    display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
    background: #F8FAFC;
    flex-shrink: 0;
}

.al-modal__divider {
    text-align: center;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    color: var(--al-text-subtle);
    text-transform: uppercase;
    padding: 4px 0;
    position: relative;
}
.al-modal__divider::before, .al-modal__divider::after {
    content: ""; position: absolute; top: 50%;
    width: calc(50% - 24px); height: 1px;
    background: var(--al-border);
}
.al-modal__divider::before { left: 0; }
.al-modal__divider::after { right: 0; }

@media (max-width: 640px) {
    .al-modal { width: 100%; max-width: 100vw; max-height: 100vh; border-radius: 0; }
    .al-modal-backdrop { padding: 0; }
    .al-modal__head, .al-modal__body, .al-modal__foot { padding-left: 18px; padding-right: 18px; }
}

/* ============== Empty state ============== */
.al-empty {
    text-align: center; padding: 48px 24px;
    background: var(--al-surface);
    border: 1px dashed var(--al-border-strong);
    border-radius: var(--al-radius);
}
.al-empty__icon {
    width: 72px; height: 72px; margin: 0 auto 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--al-bg-2), #FFFFFF);
    display: flex; align-items: center; justify-content: center;
    color: var(--al-primary-2);
    box-shadow: var(--al-shadow-sm);
}
.al-empty__title { font-size: 16px; font-weight: 600; color: var(--al-text); margin: 0 0 6px; }
.al-empty__hint  { font-size: 14px; color: var(--al-text-muted); margin: 0; max-width: 380px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.al-empty--hidden { display: none; }

/* ============== Banner / Alert ============== */
.al-alert {
    display: flex; gap: 12px; padding: 14px 16px;
    border-radius: 12px; font-size: 14px;
    border: 1px solid transparent;
}
.al-alert__icon { flex-shrink: 0; }
.al-alert__body { flex: 1; min-width: 0; }
.al-alert__title { font-weight: 600; margin: 0 0 2px; }
.al-alert__text { margin: 0; opacity: 0.9; }
.al-alert--info     { background: #EEF2FF; color: #3730A3; border-color: rgba(79,70,229,0.18); }
.al-alert--success  { background: #ECFDF5; color: #047857; border-color: rgba(5,150,105,0.18); }
.al-alert--warning  { background: #FFFBEB; color: #B45309; border-color: rgba(217,119,6,0.18); }
.al-alert--danger   { background: #FEF2F2; color: #B91C1C; border-color: rgba(220,38,38,0.18); }

/* ============== Validation messages ============== */
.al-page .field-validation-error,
.al-page .field-validation-valid {
    display: block; font-weight: 500; font-size: 14px;
}
.al-page .field-validation-error:not(:empty) {
    padding: 10px 14px; border-radius: 10px;
    background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA;
}
.al-page .field-validation-valid:empty,
.al-page .field-validation-error:empty { display: none; }

/* ============== DevExtreme List host overrides ============== */
.al-page .dx-list { background: transparent; }
.al-page .dx-list-item { padding: 0 !important; background: transparent !important; border: 0 !important; }
.al-page .dx-list-item-content { padding: 0 !important; }
.al-page .dx-list-search, .al-page .dx-list-search-wrapper { display: none !important; }
.al-page .dx-empty-message { display: none !important; }
/* Hide dxList built-in loading indicator + text — pages render their own .al-empty / skeletons */
.al-page .dx-list .dx-loadindicator,
.al-page .dx-list .dx-list-loading,
.al-page .dx-list .dx-list-loading-content,
.al-page .dx-list .dx-loadpanel-content,
.al-page .dx-list .dx-list-next-button { display: none !important; }

/* ============== Responsive ============== */
@media (max-width: 768px) {
    .al-actions { grid-template-columns: repeat(2, 1fr); }
    .al-section__title { font-size: 18px; }
}
@media (max-width: 640px) {
    .al-page { padding: 10px 12px 32px; }
    .al-profile { padding: 22px; border-radius: 16px; }
    .al-profile__inner { gap: 14px; }
    .al-profile__avatar { width: 52px; height: 52px; font-size: 18px; border-radius: 14px; }
    .al-profile__name { font-size: 22px; }
    .al-card { padding: 12px 14px 12px 18px; }
    .al-surface { padding: 20px; }
    .al-surface--lg { padding: 24px; }
    .al-dl { grid-template-columns: 1fr; gap: 4px; }
    .al-dl dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
    .al-dl dd { font-size: 15px; font-weight: 600; }
    .al-form__actions { justify-content: stretch; }
    .al-form__actions .al-btn { flex: 1; }
}
@media (max-width: 480px) {
    .al-actions { grid-template-columns: 1fr; }
}
