/* ======================================================
   BUTTON EFFECTS ONLY (NO COLORS)
   ====================================================== */
.btn-effects{
    position: relative;
    overflow: hidden; /* required for ripple */
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-effects:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.btn-effects:active{
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.btn-effects::after{
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: scale(1);
    transition: opacity 0.6s, transform 0.6s;
}
.btn-effects:active::after{
    opacity: 1;
    transform: scale(18);
    transition: 0s;
    top: var(--y, 50%);
    left: var(--x, 50%);
}
.btn-effects:active{
    --x: 50%;
    --y: 50%;
}

/* ======================================================
   AUTH BACKGROUND + LAYERING
   ====================================================== */
.auth-main{
    position: relative;
    min-height: 100vh;
    background: url("../../../public/assets/images/bg/breoyin_bg.webp") no-repeat center center;
    background-size: cover;
}

/* Overlay base (light/dark set below) */
.auth-main::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* COMMON LAYERING */
.auth-wrapper,
.auth-form,
.card{
    position: relative;
    z-index: 2;
}

.img-white{
    filter: brightness(0) invert(1);
}

/* LIGHT MODE */
[data-pc-theme="light"] .auth-main::before{
    background: rgba(0, 0, 0, 0.55);
}

[data-pc-theme="light"] .auth-form .card{
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border-radius: 12px;
}

/* DARK MODE */
[data-pc-theme="dark"] .auth-main::before{
    background: rgba(0, 0, 0, 0.75);
}

[data-pc-theme="dark"] .auth-form .card{
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    color: #eaeaea;
}

/* ======================================================
   PAGE TOP LOADER
   ====================================================== */
#page-loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
}

#page-loader .page-loader-bar{
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #198754, #28a745, #20c997);
    transition: width 0.35s ease, opacity 0.4s ease;
    box-shadow: 0 0 6px rgba(25, 135, 84, 0.6);
}

/* ======================================================
   SHARED UTILITIES
   ====================================================== */
.cur-pointer{ cursor: pointer; }

.isDisabled{
    pointer-events: none;
    opacity: 0.55;
}

.btn-group-xs .btn{
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ======================================================
   HEADER PANELS
   ====================================================== */
.min-w-0{ min-width: 0; }

.pc-head-link.header-icon-button{
    border: 0;
    background: transparent;
}

.header-user-toggle{
    padding-inline: .45rem;
}

.header-avatar{
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .12);
    color: var(--bs-primary);
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
}

.header-avatar-lg{
    width: 46px;
    height: 46px;
    font-size: 1rem;
    flex: 0 0 auto;
}

.header-notification-menu{
    width: min(420px, calc(100vw - 24px));
}

.header-notification-scroll{
    max-height: min(520px, calc(100vh - 210px));
    overflow-y: auto;
    padding: .5rem;
}

.header-notification-item{
    display: flex;
    gap: .85rem;
    padding: .85rem;
    border-radius: 8px;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: background-color .16s ease, transform .16s ease;
}

.header-notification-item:hover{
    background: rgba(var(--bs-primary-rgb), .06);
    color: var(--bs-body-color);
    transform: translateY(-1px);
}

.header-notification-icon{
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(var(--bs-primary-rgb), .10);
    color: var(--bs-primary);
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.header-notification-item.is-warning .header-notification-icon{
    background: rgba(var(--bs-warning-rgb), .14);
    color: #b7791f;
}

.header-notification-item.is-danger .header-notification-icon{
    background: rgba(var(--bs-danger-rgb), .12);
    color: var(--bs-danger);
}

.header-notification-copy{
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.header-notification-title{
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.25;
}

.header-notification-body{
    color: var(--bs-secondary-color);
    font-size: .82rem;
    line-height: 1.35;
}

.header-notification-meta{
    color: var(--bs-secondary-color);
    font-size: .76rem;
}

.header-empty-state{
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: 1rem;
}

.header-empty-state > i{
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(145, 158, 171, .12);
    color: var(--bs-secondary-color);
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.header-profile-menu{
    width: min(340px, calc(100vw - 24px));
    padding: .5rem;
}

.header-profile-card{
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem;
}

.header-company-card{
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 .35rem .5rem;
    padding: .75rem;
    border: 1px solid rgba(145, 158, 171, .18);
    border-radius: 8px;
    background: rgba(145, 158, 171, .08);
}

.header-company-card img,
.header-company-card > span{
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
    padding: 3px;
    flex: 0 0 auto;
}

.header-company-card > span{
    background: rgba(var(--bs-primary-rgb), .10);
    color: var(--bs-primary);
    padding: 0;
}

body[data-pc-theme="dark"] .pc-h-dropdown{
    background: #1f2329;
    border-color: rgba(255,255,255,.11);
    color: rgba(255,255,255,.88);
}

body[data-pc-theme="dark"] .header-notification-item:hover{
    background: rgba(255,255,255,.06);
}

body[data-pc-theme="dark"] .header-notification-body,
body[data-pc-theme="dark"] .header-notification-meta{
    color: rgba(255,255,255,.62);
}

body[data-pc-theme="dark"] .header-company-card{
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.11);
}

body[data-pc-theme="dark"] .header-company-card img{
    background: #fff;
}

/* ======================================================
   APPEARANCE PICKER
   ====================================================== */
.appearance-panel{
    width: 320px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    box-shadow: -16px 0 36px rgba(15, 23, 42, 0.16);
}

.appearance-panel-header,
.appearance-panel-footer{
    padding: 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.appearance-panel-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.appearance-panel-footer{
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 0;
}

.appearance-icon-btn{
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 8px;
    color: #334155;
    background: #ffffff;
}

.appearance-icon-btn:hover{
    background: #f8fafc;
}

.appearance-panel-body{
    padding: 18px;
}

.appearance-section + .appearance-section{
    margin-top: 22px;
}

.appearance-section-title{
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.appearance-mode-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.appearance-mode-option{
    min-height: 64px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 8px;
    color: #334155;
    background: #f8fafc;
    font-weight: 600;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.appearance-mode-option i{
    font-size: 1.25rem;
}

.appearance-mode-option:hover,
.appearance-mode-option.active{
    border-color: #2563eb;
    color: #1d4ed8;
    background: #eff6ff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.appearance-accent-grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.appearance-accent-option{
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.appearance-accent-option span{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
}

.appearance-accent-option:hover,
.appearance-accent-option.active{
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

body[data-pc-theme="dark"] .appearance-panel{
    background: #111827;
    color: rgba(255,255,255,.92);
}

body[data-pc-theme="dark"] .appearance-panel-header,
body[data-pc-theme="dark"] .appearance-panel-footer{
    border-color: rgba(255,255,255,.10);
}

body[data-pc-theme="dark"] .appearance-icon-btn,
body[data-pc-theme="dark"] .appearance-mode-option,
body[data-pc-theme="dark"] .appearance-accent-option{
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.86);
    background: #172033;
}

body[data-pc-theme="dark"] .appearance-mode-option:hover,
body[data-pc-theme="dark"] .appearance-mode-option.active{
    border-color: #60a5fa;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.18);
}

body[data-pc-theme="dark"] .appearance-icon-btn:hover{
    background: #1f2937;
}

@media (max-width: 575.98px){
    .appearance-panel{
        width: min(100vw, 330px);
    }
}

/* ======================================================
   LOGIN PAGE ENHANCEMENT
   ====================================================== */
.auth-login-modern .auth-main{
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(246, 248, 251, 0.96), rgba(237, 242, 247, 0.9)),
        url("../images/bg/breoyin_bg.webp") center / cover no-repeat;
}

.auth-login-modern .auth-main::before{
    display: none;
}

.auth-login-modern .smart-login-shell{
    position: relative;
    z-index: 2;
    width: min(1080px, 100%);
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    overflow: hidden;
    border: 1px solid rgba(37, 48, 63, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 70px rgba(22, 34, 51, 0.18);
}

.auth-login-modern .smart-login-media{
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(10, 30, 28, 0.14), rgba(8, 19, 26, 0.8)),
        url("../images/bg/breoyin_bg.webp") center / cover no-repeat;
}

.auth-login-modern .smart-login-brand img{
    width: 190px;
    max-width: 100%;
    height: auto;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.auth-login-modern .smart-login-copy{
    max-width: 460px;
}

.auth-login-modern .smart-login-kicker,
.auth-login-modern .smart-login-eyebrow{
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: #0f6b4b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-login-modern .smart-login-kicker{
    color: #f4c46d;
}

.auth-login-modern .smart-login-copy h1{
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: 3rem;
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-login-modern .smart-login-copy p{
    margin: 0;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.55;
}

.auth-login-modern .smart-login-badges{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-login-modern .smart-login-badges span{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(12, 23, 31, 0.42);
    backdrop-filter: blur(5px);
}

.auth-login-modern .smart-login-panel{
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    padding: 34px;
    background: #ffffff;
}

.auth-login-modern .auth-form .card.smart-login-card{
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.auth-login-modern .smart-login-card .card-body{
    padding: 0;
}

.auth-login-modern .smart-login-header{
    margin-bottom: 28px;
}

.auth-login-modern .smart-login-header h2{
    margin: 6px 0 8px;
    color: #172033;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-login-modern .smart-login-header p{
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.auth-login-modern .smart-field{
    margin-bottom: 18px;
}

.auth-login-modern .smart-field label{
    display: block;
    margin-bottom: 7px;
    color: #25303f;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-login-modern .smart-input-shell{
    position: relative;
    display: flex;
    align-items: center;
}

.auth-login-modern .smart-input-shell > i{
    position: absolute;
    left: 14px;
    color: #7d8796;
    font-size: 1.05rem;
    z-index: 2;
}

.auth-login-modern #LoginForm .form-control{
    min-height: 50px;
    width: 100%;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    color: #172033;
    background: #f8fafc;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-login-modern .smart-input-shell .form-control{
    padding-left: 44px;
}

.auth-login-modern .smart-input-shell .form-control[type="password"],
.auth-login-modern .smart-input-shell .form-control[type="text"]#userPassword{
    padding-right: 48px;
}

.auth-login-modern #LoginForm .form-control:focus{
    border-color: #1d7a58;
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(29, 122, 88, 0.16);
}

.auth-login-modern .smart-password-toggle{
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #4b5563;
    background: transparent;
    z-index: 3;
}

.auth-login-modern .smart-password-toggle:hover,
.auth-login-modern .smart-password-toggle:focus{
    color: #1d7a58;
    background: rgba(29, 122, 88, 0.1);
}

.auth-login-modern .smart-two-factor{
    margin-bottom: 18px;
}

.auth-login-modern .smart-two-factor-message{
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(49, 95, 157, 0.18);
    border-radius: 8px;
    color: #1f3f69;
    background: #eef5ff;
}

.auth-login-modern .smart-two-factor-message i{
    margin-top: 2px;
    font-size: 1.2rem;
}

.auth-login-modern .smart-two-factor-message span{
    display: block;
    margin-bottom: 3px;
    font-weight: 800;
}

.auth-login-modern .smart-two-factor-message p{
    margin: 0;
    color: #375373;
    line-height: 1.45;
}

.auth-login-modern .smart-code-input{
    text-align: center;
    font-size: 1.28rem;
    font-weight: 800;
}

.auth-login-modern .smart-step-actions,
.auth-login-modern .smart-login-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.auth-login-modern .smart-login-submit{
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 12px 22px rgba(29, 122, 88, 0.22);
}

.auth-login-modern .smart-login-submit:disabled{
    opacity: 0.82;
}

.auth-login-modern .smart-login-footer{
    justify-content: flex-end;
    margin-top: 18px;
    font-weight: 700;
}

.auth-login-modern .smart-two-factor-switch-btn {
    color: #1d6fb8 !important;
    text-decoration: underline;
    font-weight: 700;
    text-underline-offset: 3px;
}

.auth-login-modern .smart-two-factor-switch-btn:hover {
    color: #0f4d91 !important;
}

.auth-login-modern .smart-two-factor-switch-btn:disabled {
    opacity: 0.7;
    text-decoration: none;
}

.auth-login-modern .smart-two-factor-method-hint {
    color: #6c757d !important;
    line-height: 1.35;
}

[data-pc-theme="dark"] .auth-login-modern .smart-two-factor-switch-btn {
    color: #8fb4ff !important;
}

[data-pc-theme="dark"] .auth-login-modern .smart-two-factor-switch-btn:hover {
    color: #b3d0ff !important;
}

.auth-login-modern .link-primary{
    color: #1d6fb8 !important;
    transition: color 0.2s ease;
}

.auth-login-modern .link-primary:hover{
    color: #0f6b4b !important;
}

[data-pc-theme="dark"] .auth-login-modern .auth-main,
body[data-pc-theme="dark"].auth-login-modern .auth-main{
    background:
        linear-gradient(135deg, rgba(10, 16, 24, 0.96), rgba(20, 28, 35, 0.9)),
        url("../images/bg/breoyin_bg.webp") center / cover no-repeat;
}

[data-pc-theme="dark"] .auth-login-modern .smart-login-shell,
body[data-pc-theme="dark"].auth-login-modern .smart-login-shell{
    border-color: rgba(255, 255, 255, 0.11);
    background: #101822;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

[data-pc-theme="dark"] .auth-login-modern .smart-login-panel,
body[data-pc-theme="dark"].auth-login-modern .smart-login-panel{
    background: #101822;
}

[data-pc-theme="dark"] .auth-login-modern .smart-login-header h2,
[data-pc-theme="dark"] .auth-login-modern .smart-field label,
body[data-pc-theme="dark"].auth-login-modern .smart-login-header h2,
body[data-pc-theme="dark"].auth-login-modern .smart-field label{
    color: rgba(255, 255, 255, 0.94);
}

[data-pc-theme="dark"] .auth-login-modern .smart-login-header p,
body[data-pc-theme="dark"].auth-login-modern .smart-login-header p{
    color: rgba(255, 255, 255, 0.64);
}

[data-pc-theme="dark"] .auth-login-modern #LoginForm .form-control,
body[data-pc-theme="dark"].auth-login-modern #LoginForm .form-control{
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    background: #162232;
}

[data-pc-theme="dark"] .auth-login-modern #LoginForm .form-control:focus,
body[data-pc-theme="dark"].auth-login-modern #LoginForm .form-control:focus{
    border-color: #55c49a;
    background: #19293b;
    box-shadow: 0 0 0 0.2rem rgba(85, 196, 154, 0.14);
}

[data-pc-theme="dark"] .auth-login-modern .smart-input-shell > i,
[data-pc-theme="dark"] .auth-login-modern .smart-password-toggle,
body[data-pc-theme="dark"].auth-login-modern .smart-input-shell > i,
body[data-pc-theme="dark"].auth-login-modern .smart-password-toggle{
    color: rgba(255, 255, 255, 0.6);
}

[data-pc-theme="dark"] .auth-login-modern .smart-two-factor-message,
body[data-pc-theme="dark"].auth-login-modern .smart-two-factor-message{
    border-color: rgba(85, 196, 154, 0.2);
    color: #bcf4dc;
    background: rgba(85, 196, 154, 0.1);
}

[data-pc-theme="dark"] .auth-login-modern .smart-two-factor-message p,
body[data-pc-theme="dark"].auth-login-modern .smart-two-factor-message p{
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 991.98px){
    .auth-login-modern .smart-login-shell{
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-login-modern .smart-login-media{
        min-height: 260px;
    }

    .auth-login-modern .smart-login-copy h1{
        font-size: 2.35rem;
    }
}

@media (max-width: 575.98px){
    .auth-login-modern .auth-main{
        min-height: 100svh;
        display: grid;
        place-items: center;
        padding: clamp(14px, 6svh, 56px) 12px;
    }

    .auth-login-modern .smart-login-media{
        min-height: 210px;
        padding: 22px;
    }

    .auth-login-modern .smart-login-brand img{
        width: 154px;
    }

    .auth-login-modern .smart-login-copy h1{
        font-size: 2rem;
    }

    .auth-login-modern .smart-login-copy p{
        font-size: 0.98rem;
    }

    .auth-login-modern .smart-login-badges{
        display: none;
    }

    .auth-login-modern .smart-login-panel{
        padding: 24px 20px;
    }

    .auth-login-modern .smart-login-header h2{
        font-size: 1.72rem;
    }

    .auth-login-modern .smart-step-actions{
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ======================================================
   BREOYIN BOOKS PRO AUTH REDESIGN
   ====================================================== */
.auth-login-modern .auth-main{
    background:
        linear-gradient(135deg, rgba(246, 248, 251, 0.96), rgba(237, 242, 247, 0.88)),
        url("../images/marketing/breoyin-books-pro-app-hero.webp") center / cover no-repeat;
}

.auth-login-modern .smart-login-shell{
    width: min(1120px, 100%);
    min-height: 690px;
    grid-template-columns: minmax(0, 1.08fr) 450px;
}

.auth-login-modern .smart-reset-shell,
.auth-login-modern .smart-verify-shell{
    min-height: 620px;
}

.auth-login-modern .smart-login-media{
    gap: 28px;
    background:
        linear-gradient(135deg, rgba(7, 26, 51, 0.78), rgba(10, 42, 90, 0.46)),
        url("../images/marketing/breoyin-books-pro-app-hero.webp") center / cover no-repeat;
}

.auth-login-modern .smart-login-topline{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.auth-login-modern .smart-login-site-link{
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(12, 23, 31, 0.36);
    font-weight: 800;
}

.auth-login-modern .smart-login-site-link:hover{
    color: #ffffff;
    background: rgba(12, 23, 31, 0.52);
}

.auth-login-modern .smart-login-product-preview{
    width: min(520px, 100%);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
}

.auth-login-modern .preview-topbar{
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.auth-login-modern .preview-topbar span{
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.68);
}

.auth-login-modern .preview-content{
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    min-height: 190px;
}

.auth-login-modern .preview-sidebar,
.auth-login-modern .preview-main{
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.auth-login-modern .preview-sidebar{
    background: linear-gradient(180deg, #0f6b4b, #064733);
}

.auth-login-modern .preview-main{
    display: grid;
    gap: 12px;
    padding: 14px;
}

.auth-login-modern .preview-title,
.auth-login-modern .preview-lines span{
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #d7dee8;
}

.auth-login-modern .preview-title{
    width: 46%;
}

.auth-login-modern .preview-metrics{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.auth-login-modern .preview-metrics span{
    min-height: 42px;
    border-radius: 8px;
    background: #eef5f1;
}

.auth-login-modern .preview-chart{
    min-height: 62px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 107, 75, 0.18), rgba(29, 111, 184, 0.16)),
        #f8fafc;
}

.auth-login-modern .preview-lines{
    display: grid;
    gap: 7px;
}

.auth-login-modern .preview-lines span:nth-child(1){ width: 92%; }
.auth-login-modern .preview-lines span:nth-child(2){ width: 78%; }
.auth-login-modern .preview-lines span:nth-child(3){ width: 64%; }

.auth-login-modern .smart-login-brand-row{
    display: none;
    margin-bottom: 24px;
}

.auth-login-modern .smart-login-brand-row img{
    width: 170px;
    height: auto;
}

.auth-login-modern .smart-label-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 7px;
}

.auth-login-modern .smart-label-row label{
    margin-bottom: 0;
}

.auth-login-modern .smart-label-row a{
    color: #1d6fb8;
    font-size: 0.84rem;
    font-weight: 800;
}

.auth-login-modern #LoginForm .form-control,
.auth-login-modern #ResetForm .form-control,
.auth-login-modern #VerifyForm .form-control{
    min-height: 50px;
    width: 100%;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    color: #172033;
    background: #f8fafc;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-login-modern #LoginForm .form-control:focus,
.auth-login-modern #ResetForm .form-control:focus,
.auth-login-modern #VerifyForm .form-control:focus{
    border-color: #1d7a58;
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(29, 122, 88, 0.16);
}

.auth-login-modern #ResetForm .smart-input-shell .form-control{
    padding-left: 44px;
}

.auth-login-modern .smart-auth-note{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(29, 122, 88, 0.18);
    border-radius: 8px;
    color: #245645;
    background: #eef8f3;
}

.auth-login-modern .smart-auth-note i{
    color: #0f6b4b;
    font-size: 1.1rem;
}

.auth-login-modern .smart-login-footer{
    justify-content: space-between;
}

[data-pc-theme="dark"] .auth-login-modern .auth-main,
body[data-pc-theme="dark"].auth-login-modern .auth-main{
    background:
        linear-gradient(135deg, rgba(10, 16, 24, 0.94), rgba(20, 28, 35, 0.88)),
        url("../images/marketing/breoyin-books-pro-app-hero.webp") center / cover no-repeat;
}

[data-pc-theme="dark"] .auth-login-modern #ResetForm .form-control,
[data-pc-theme="dark"] .auth-login-modern #VerifyForm .form-control,
body[data-pc-theme="dark"].auth-login-modern #ResetForm .form-control,
body[data-pc-theme="dark"].auth-login-modern #VerifyForm .form-control{
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    background: #162232;
}

[data-pc-theme="dark"] .auth-login-modern #ResetForm .form-control:focus,
[data-pc-theme="dark"] .auth-login-modern #VerifyForm .form-control:focus,
body[data-pc-theme="dark"].auth-login-modern #ResetForm .form-control:focus,
body[data-pc-theme="dark"].auth-login-modern #VerifyForm .form-control:focus{
    border-color: #55c49a;
    background: #19293b;
    box-shadow: 0 0 0 0.2rem rgba(85, 196, 154, 0.14);
}

[data-pc-theme="dark"] .auth-login-modern .smart-auth-note,
body[data-pc-theme="dark"].auth-login-modern .smart-auth-note{
    border-color: rgba(85, 196, 154, 0.2);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(85, 196, 154, 0.1);
}

@media (max-width: 991.98px){
    .auth-login-modern .smart-login-shell{
        grid-template-columns: 1fr;
        width: min(720px, 100%);
    }

    .auth-login-modern .smart-login-brand-row{
        display: block;
    }

    .auth-login-modern .smart-login-product-preview{
        display: none;
    }
}

@media (max-width: 575.98px){
    .auth-login-modern .smart-login-shell{
        min-height: auto;
    }

    .auth-login-modern .smart-login-topline{
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-login-modern .smart-login-site-link{
        min-height: 36px;
    }

    .auth-login-modern .smart-login-footer{
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ======================================================
   BREOYIN BOOKS PRO MARKETING WEBSITE
   ====================================================== */
.marketing-site{
    background: #f6f8fb;
    color: #172033;
}

.marketing-site .btn{
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0;
}

.marketing-nav{
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 76px;
    padding: 0;
    border-bottom: 1px solid rgba(23, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.marketing-nav-container{
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 54px);
}

.marketing-brand{
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.marketing-brand img{
    width: 158px;
    height: auto;
}

.marketing-navbar-links{
    gap: 4px;
}

.marketing-navbar-links .nav-link{
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 8px 8px !important;
    border-radius: 8px;
    color: #374151;
    font-size: 0.94rem;
    font-weight: 800;
}

.marketing-navbar-links .nav-link:hover,
.marketing-navbar-links .nav-link:focus{
    color: #0f6b4b;
    background: rgba(15, 107, 75, 0.08);
}

.marketing-nav-actions{
    display: flex;
    align-items: center;
    gap: 12px;
}

.marketing-toggler{
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 8px;
    box-shadow: none !important;
}

.marketing-toggler:focus{
    box-shadow: 0 0 0 0.2rem rgba(29, 122, 88, 0.16) !important;
}

.marketing-toggler .navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2823, 32, 51, 0.88%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.marketing-hero{
    position: relative;
    min-height: clamp(640px, 86svh, 860px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(64px, 10vw, 112px) clamp(20px, 7vw, 96px);
    color: #ffffff;
    background-color: #071a33;
    background:
        linear-gradient(90deg, rgba(7, 26, 51, 0.96) 0%, rgba(7, 26, 51, 0.84) 34%, rgba(12, 46, 103, 0.46) 62%, rgba(12, 46, 103, 0.24) 100%),
        linear-gradient(180deg, rgba(255, 151, 0, 0.14), rgba(37, 99, 235, 0.08)),
        url("../images/marketing/breoyin-books-pro-app-hero.webp") center / cover no-repeat;
}

.marketing-hero::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(246, 248, 251, 0), #f6f8fb);
}

.marketing-hero-content{
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.marketing-kicker{
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    color: #c8942e;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.marketing-hero .marketing-kicker{
    color: #ffd36e;
}

.marketing-hero h1{
    margin: 12px 0 18px;
    color: #ffffff;
    font-size: 4.75rem;
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
}

.marketing-hero p{
    width: min(620px, 100%);
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.16rem;
    line-height: 1.65;
}

.marketing-hero-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.marketing-proof{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.marketing-proof span{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.marketing-proof strong{
    color: #ffffff;
}

.marketing-workflow{
    position: relative;
    z-index: 3;
    margin-top: -38px;
    padding: 0 clamp(18px, 5vw, 72px) 52px;
}

.marketing-workflow-strip{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    background: rgba(23, 32, 51, 0.08);
    box-shadow: 0 18px 48px rgba(23, 32, 51, 0.12);
}

.marketing-workflow-strip article{
    min-height: 154px;
    padding: 22px;
    background: #ffffff;
}

.marketing-workflow-strip span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 8px;
    color: #1d6fb8;
    background: #eaf1ff;
    font-weight: 900;
}

.marketing-workflow-strip strong{
    display: block;
    margin-bottom: 8px;
    color: #172033;
    font-size: 1.06rem;
}

.marketing-workflow-strip p{
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.marketing-section{
    padding: clamp(64px, 8vw, 104px) clamp(18px, 5vw, 72px);
    scroll-margin-top: 86px;
}

.marketing-section-inner{
    width: min(1160px, 100%);
    margin: 0 auto;
}

.marketing-section-heading{
    width: min(780px, 100%);
    margin-bottom: 34px;
}

.marketing-section-heading h2,
.register-layout h2{
    margin: 8px 0 12px;
    color: #172033;
    font-size: 3.25rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.marketing-section-heading p,
.register-layout p{
    margin: 0;
    color: #667085;
    font-size: 1.04rem;
    line-height: 1.68;
}

.marketing-about{
    background: #f6f8fb;
}

.marketing-stat-grid,
.marketing-feature-grid,
.marketing-plan-grid{
    display: grid;
    gap: 18px;
}

.marketing-stat-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-stat-grid article,
.marketing-feature-grid article,
.marketing-plan,
.register-form-wrap{
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.marketing-stat-grid article{
    min-height: 170px;
    padding: 24px;
}

.marketing-stat-grid i,
.marketing-feature-grid i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #0f6b4b;
    background: #e7f5ef;
    font-size: 1.35rem;
}

.marketing-stat-grid strong{
    display: block;
    margin-bottom: 8px;
    color: #172033;
    font-size: 1.08rem;
}

.marketing-stat-grid span,
.marketing-feature-grid p{
    color: #667085;
    line-height: 1.58;
}

.marketing-operations-panel{
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: center;
    margin-top: 22px;
    padding: 30px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(232, 245, 239, 0.9), rgba(234, 241, 255, 0.88)),
        #ffffff;
}

.marketing-operations-panel h3{
    margin: 6px 0 10px;
    color: #172033;
    font-size: 2rem;
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: 0;
}

.marketing-operations-panel p{
    margin: 0;
    color: #667085;
    line-height: 1.65;
}

.marketing-operations-list{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.marketing-operations-list span{
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    color: #25303f;
    background: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.marketing-operations-list i{
    color: #1d6fb8;
    font-size: 1.25rem;
}

.marketing-product,
.marketing-pricing,
.marketing-documentation{
    background: #ffffff;
}

.marketing-feature-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-feature-grid article{
    min-height: 230px;
    padding: 24px;
}

.marketing-feature-grid h3,
.marketing-feature-list h3,
.marketing-resource-grid h3,
.support-options h3,
.marketing-screen h3,
.marketing-plan h3{
    margin: 0 0 10px;
    color: #172033;
    font-size: 1.16rem;
    font-weight: 900;
    letter-spacing: 0;
}

.marketing-features{
    background: #f6f8fb;
}

.marketing-feature-list{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.marketing-feature-list article,
.marketing-resource-grid article,
.support-options article{
    display: flex;
    gap: 16px;
    min-height: 180px;
    padding: 24px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.marketing-feature-list i,
.marketing-resource-grid i,
.support-options i{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #0f6b4b;
    background: #e7f5ef;
    font-size: 1.35rem;
}

.marketing-feature-list p,
.marketing-resource-grid p,
.support-options p{
    margin: 0;
    color: #667085;
    line-height: 1.58;
}

.marketing-screenshots{
    background: #eef3f8;
}

.marketing-resource-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.marketing-resource-grid article,
.support-options article{
    flex-direction: column;
}

.marketing-support{
    background: #eef3f8;
}

.support-layout{
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 5vw, 62px);
    align-items: start;
}

.support-layout h2{
    margin: 8px 0 12px;
    color: #172033;
    font-size: 3.25rem;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
}

.support-layout p{
    margin: 0;
    color: #667085;
    font-size: 1.04rem;
    line-height: 1.68;
}

.support-options{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.marketing-tour-carousel{
    position: relative;
}

.marketing-tour-carousel .carousel-inner{
    overflow: hidden;
    border-radius: 8px;
}

.marketing-tour-tabs{
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 18px;
}

.marketing-tour-tabs [data-bs-target]{
    width: auto;
    height: auto;
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(23, 32, 51, 0.1);
    border-radius: 8px;
    color: #42526b;
    background: #ffffff;
    text-indent: 0;
    opacity: 1;
    font-size: 0.84rem;
    font-weight: 850;
}

.marketing-tour-tabs [data-bs-target].active{
    border-color: rgba(37, 99, 235, 0.42);
    color: #1d4ed8;
    background: #eef5ff;
}

.marketing-screen{
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    min-height: 560px;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 51, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
}

.marketing-screen-figure{
    margin: 0;
    min-height: 100%;
    overflow: hidden;
    background: #172033;
}

.marketing-screen-figure img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.marketing-screen-copy{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: clamp(24px, 4vw, 42px);
}

.tour-meta{
    display: block;
    color: #1d6fb8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.marketing-screen h3{
    margin: 0;
    color: #172033;
    font-size: 1.18rem;
    line-height: 1.25;
    font-weight: 900;
}

.marketing-screen-copy p{
    margin: 0;
    color: #667085;
    line-height: 1.62;
}

.tour-note{
    max-width: 820px;
    margin: 18px 0 0;
    color: #667085;
    font-size: 0.94rem;
    line-height: 1.6;
}

.marketing-tour-controls{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.tour-control{
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 8px;
    color: #172033;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

.tour-control:hover,
.tour-control:focus{
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.35);
}

.marketing-plan-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.marketing-plan{
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 540px;
    padding: 24px;
}

.marketing-plan.is-popular{
    border-color: rgba(29, 122, 88, 0.34);
    box-shadow: 0 20px 50px rgba(29, 122, 88, 0.16);
}

.plan-badge{
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 5px 9px;
    border-radius: 8px;
    color: #0f6b4b;
    background: #e7f5ef;
    font-size: 0.74rem;
    font-weight: 900;
}

.marketing-plan p{
    min-height: 48px;
    margin: 0 0 22px;
    color: #667085;
    line-height: 1.55;
}

.plan-price{
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 22px;
}

.plan-price strong{
    color: #172033;
    font-size: 2.4rem;
    line-height: 1;
}

.plan-price span{
    color: #667085;
}

.plan-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -6px 0 22px;
}

.plan-meta span{
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #1d6fb8;
    background: #eaf1ff;
    font-size: 0.76rem;
    font-weight: 900;
}

.marketing-plan ul{
    flex: 1 1 auto;
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}

.marketing-plan li{
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    color: #374151;
    line-height: 1.45;
}

.marketing-plan li i{
    color: #0f6b4b;
    margin-top: 3px;
}

.marketing-register{
    background:
        linear-gradient(135deg, rgba(246, 248, 251, 0.96), rgba(235, 242, 247, 0.94)),
        url("../images/bg/breoyin_bg.webp") center / cover no-repeat;
}

.register-layout{
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
    gap: clamp(24px, 5vw, 62px);
    align-items: start;
}

.register-checklist{
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.register-checklist span{
    display: flex;
    align-items: center;
    gap: 9px;
    color: #25303f;
    font-weight: 800;
}

.register-checklist i{
    color: #0f6b4b;
}

.register-form-wrap{
    padding: 26px;
}

.marketing-register-form{
    display: grid;
    gap: 16px;
}

.marketing-register-form .form-row{
    display: grid;
    gap: 16px;
}

.marketing-register-form .form-row.two{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-register-form label span{
    display: block;
    margin-bottom: 7px;
    color: #25303f;
    font-size: 0.88rem;
    font-weight: 800;
}

.marketing-register-form .form-control,
.marketing-register-form .form-select{
    min-height: 48px;
    border-color: #d7dee8;
    border-radius: 8px;
    background-color: #f8fafc;
}

.marketing-register-form .form-control:focus,
.marketing-register-form .form-select:focus{
    border-color: #1d7a58;
    box-shadow: 0 0 0 0.2rem rgba(29, 122, 88, 0.14);
}

.marketing-terms{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #667085;
    line-height: 1.45;
}

.marketing-terms input{
    margin-top: 4px;
}

.marketing-footer{
    background: #101822;
    color: rgba(255, 255, 255, 0.8);
}

.marketing-footer-inner{
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 54px) 28px;
}

.marketing-footer-cta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 42px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(29, 122, 88, 0.24), rgba(29, 111, 184, 0.16)),
        rgba(255, 255, 255, 0.05);
}

.marketing-footer-cta .marketing-kicker{
    color: #ffd36e;
}

.marketing-footer-cta h2{
    max-width: 720px;
    margin: 6px 0 0;
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: 0;
}

.marketing-footer-cta-actions,
.marketing-footer-badges,
.marketing-footer-bottom div{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.marketing-footer-cta-actions{
    justify-content: flex-end;
}

.marketing-footer-main{
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
    gap: clamp(30px, 6vw, 72px);
    align-items: start;
    padding: 6px 0 36px;
}

.marketing-footer-brand img{
    width: 154px;
    height: auto;
    padding: 8px;
    border-radius: 8px;
    background: #ffffff;
}

.marketing-footer-brand p{
    max-width: 390px;
    margin: 22px 0 20px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
}

.marketing-footer-badges span{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    font-weight: 800;
}

.marketing-footer-badges i{
    color: #55c49a;
}

.marketing-footer-links{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.marketing-footer-links h3{
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.marketing-footer-links a{
    display: block;
    width: fit-content;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.45;
    font-weight: 700;
}

.marketing-footer a{
    text-decoration: none;
}

.marketing-footer a:hover{
    color: #ffffff;
}

.marketing-footer-bottom{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.88rem;
}

body[data-pc-theme="dark"].marketing-site{
    background: #101822;
    color: rgba(255, 255, 255, 0.9);
}

body[data-pc-theme="dark"].marketing-site .marketing-nav{
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(16, 24, 34, 0.94);
}

body[data-pc-theme="dark"].marketing-site .marketing-navbar-links .nav-link,
body[data-pc-theme="dark"].marketing-site .marketing-section-heading p,
body[data-pc-theme="dark"].marketing-site .register-layout p{
    color: rgba(255, 255, 255, 0.68);
}

body[data-pc-theme="dark"].marketing-site .marketing-navbar-links .nav-link:hover,
body[data-pc-theme="dark"].marketing-site .marketing-navbar-links .nav-link:focus{
    color: rgba(255, 255, 255, 0.94);
    background: rgba(85, 196, 154, 0.12);
}

body[data-pc-theme="dark"].marketing-site .marketing-toggler{
    border-color: rgba(255, 255, 255, 0.14);
}

body[data-pc-theme="dark"].marketing-site .marketing-toggler .navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.86%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body[data-pc-theme="dark"].marketing-site .marketing-section,
body[data-pc-theme="dark"].marketing-site .marketing-product,
body[data-pc-theme="dark"].marketing-site .marketing-pricing,
body[data-pc-theme="dark"].marketing-site .marketing-features,
body[data-pc-theme="dark"].marketing-site .marketing-documentation,
body[data-pc-theme="dark"].marketing-site .marketing-support,
body[data-pc-theme="dark"].marketing-site .marketing-about,
body[data-pc-theme="dark"].marketing-site .marketing-screenshots{
    background: #101822;
}

body[data-pc-theme="dark"].marketing-site .marketing-section-heading h2,
body[data-pc-theme="dark"].marketing-site .register-layout h2,
body[data-pc-theme="dark"].marketing-site .support-layout h2,
body[data-pc-theme="dark"].marketing-site .marketing-stat-grid strong,
body[data-pc-theme="dark"].marketing-site .marketing-feature-grid h3,
body[data-pc-theme="dark"].marketing-site .marketing-feature-list h3,
body[data-pc-theme="dark"].marketing-site .marketing-resource-grid h3,
body[data-pc-theme="dark"].marketing-site .support-options h3,
body[data-pc-theme="dark"].marketing-site .marketing-screen h3,
body[data-pc-theme="dark"].marketing-site .marketing-plan h3,
body[data-pc-theme="dark"].marketing-site .plan-price strong,
body[data-pc-theme="dark"].marketing-site .register-checklist span,
body[data-pc-theme="dark"].marketing-site .marketing-register-form label span{
    color: rgba(255, 255, 255, 0.94);
}

body[data-pc-theme="dark"].marketing-site .marketing-stat-grid article,
body[data-pc-theme="dark"].marketing-site .marketing-feature-grid article,
body[data-pc-theme="dark"].marketing-site .marketing-feature-list article,
body[data-pc-theme="dark"].marketing-site .marketing-resource-grid article,
body[data-pc-theme="dark"].marketing-site .support-options article,
body[data-pc-theme="dark"].marketing-site .marketing-workflow-strip article,
body[data-pc-theme="dark"].marketing-site .marketing-operations-panel,
body[data-pc-theme="dark"].marketing-site .marketing-plan,
body[data-pc-theme="dark"].marketing-site .register-form-wrap,
body[data-pc-theme="dark"].marketing-site .marketing-screen{
    border-color: rgba(255, 255, 255, 0.1);
    background: #162232;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

body[data-pc-theme="dark"].marketing-site .marketing-stat-grid span,
body[data-pc-theme="dark"].marketing-site .marketing-feature-grid p,
body[data-pc-theme="dark"].marketing-site .marketing-feature-list p,
body[data-pc-theme="dark"].marketing-site .marketing-resource-grid p,
body[data-pc-theme="dark"].marketing-site .marketing-workflow-strip p,
body[data-pc-theme="dark"].marketing-site .marketing-operations-panel p,
body[data-pc-theme="dark"].marketing-site .support-layout p,
body[data-pc-theme="dark"].marketing-site .support-options p,
body[data-pc-theme="dark"].marketing-site .marketing-plan p,
body[data-pc-theme="dark"].marketing-site .marketing-plan li,
body[data-pc-theme="dark"].marketing-site .marketing-terms{
    color: rgba(255, 255, 255, 0.68);
}

body[data-pc-theme="dark"].marketing-site .marketing-workflow-strip strong,
body[data-pc-theme="dark"].marketing-site .marketing-operations-panel h3,
body[data-pc-theme="dark"].marketing-site .marketing-operations-list span,
body[data-pc-theme="dark"].marketing-site .marketing-screen h3{
    color: rgba(255, 255, 255, 0.92);
}

body[data-pc-theme="dark"].marketing-site .marketing-operations-list span{
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

body[data-pc-theme="dark"].marketing-site .marketing-screen-copy p,
body[data-pc-theme="dark"].marketing-site .tour-note{
    color: rgba(255, 255, 255, 0.68);
}

body[data-pc-theme="dark"].marketing-site .tour-meta{
    color: #8dbbff;
}

body[data-pc-theme="dark"].marketing-site .marketing-register-form .form-control,
body[data-pc-theme="dark"].marketing-site .marketing-register-form .form-select{
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    background-color: #101822;
}

@media (max-width: 991.98px){
    .marketing-hero{
        background:
            linear-gradient(90deg, rgba(7, 26, 51, 0.96) 0%, rgba(7, 26, 51, 0.82) 48%, rgba(12, 46, 103, 0.48) 100%),
            linear-gradient(180deg, rgba(255, 151, 0, 0.16), rgba(37, 99, 235, 0.08)),
            url("../images/marketing/breoyin-books-pro-app-hero.webp") 58% center / cover no-repeat;
    }

    .marketing-hero h1{
        font-size: 3.65rem;
    }

    .marketing-section-heading h2,
    .register-layout h2,
    .support-layout h2{
        font-size: 2.6rem;
    }

    .marketing-nav-container{
        min-height: 68px;
        padding: 10px 16px;
    }

    .marketing-nav .navbar-collapse{
        margin-top: 12px;
        padding: 14px;
        border: 1px solid rgba(23, 32, 51, 0.08);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 16px 34px rgba(23, 32, 51, 0.12);
    }

    body[data-pc-theme="dark"].marketing-site .marketing-nav .navbar-collapse{
        border-color: rgba(255, 255, 255, 0.1);
        background: #162232;
    }

    .marketing-navbar-links{
        gap: 2px;
    }

    .marketing-navbar-links .nav-link{
        width: 100%;
        justify-content: space-between;
        padding: 11px 12px !important;
    }

    .marketing-nav-actions{
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 12px;
    }

    .marketing-nav-actions .btn{
        min-height: 44px;
    }

    .marketing-stat-grid,
    .marketing-feature-grid,
    .marketing-feature-list,
    .marketing-resource-grid,
    .marketing-workflow-strip,
    .marketing-operations-panel,
    .marketing-operations-list,
    .marketing-plan-grid,
    .support-layout,
    .support-options,
    .register-layout{
        grid-template-columns: 1fr;
    }

    .register-layout{
        gap: 28px;
    }

    .marketing-workflow{
        margin-top: 0;
        padding: 18px clamp(18px, 5vw, 72px) 34px;
    }

    .marketing-operations-panel{
        padding: 24px;
    }

    .marketing-screen{
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .marketing-screen-figure{
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .marketing-footer-cta,
    .marketing-footer-main{
        align-items: flex-start;
        flex-direction: column;
    }

    .marketing-footer-main{
        display: flex;
    }

    .marketing-footer-cta-actions{
        justify-content: flex-start;
    }

    .marketing-footer-links{
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px){
    .marketing-nav{
        min-height: 64px;
    }

    .marketing-brand img{
        width: 136px;
    }

    .marketing-nav-container{
        min-height: 64px;
        padding: 9px 12px;
    }

    .marketing-nav .navbar-collapse{
        padding: 12px;
    }

    .marketing-nav-actions{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .marketing-hero{
        min-height: 620px;
        padding: 72px 18px 86px;
        background:
            linear-gradient(90deg, rgba(7, 26, 51, 0.97) 0%, rgba(7, 26, 51, 0.9) 60%, rgba(12, 46, 103, 0.7) 100%),
            linear-gradient(180deg, rgba(255, 151, 0, 0.17), rgba(37, 99, 235, 0.1)),
            url("../images/marketing/breoyin-books-pro-app-hero.webp") 61% center / cover no-repeat;
    }

    .marketing-hero h1{
        font-size: 2.55rem;
        line-height: 1.04;
    }

    .marketing-section-heading h2,
    .register-layout h2,
    .support-layout h2{
        font-size: 2rem;
        line-height: 1.14;
    }

    .marketing-hero p{
        font-size: 1rem;
    }

    .marketing-proof{
        display: none;
    }

    .marketing-section{
        padding: 54px 14px;
        scroll-margin-top: 76px;
    }

    .marketing-screen-copy{
        padding: 20px;
    }

    .marketing-operations-panel h3{
        font-size: 1.65rem;
    }

    .marketing-feature-list article{
        flex-direction: column;
    }

    .marketing-plan,
    .register-form-wrap{
        padding: 22px;
    }

    .marketing-register-form .form-row.two{
        grid-template-columns: 1fr;
    }

    .marketing-footer-inner{
        padding: 34px 16px 24px;
    }

    .marketing-footer-cta{
        padding: 22px;
    }

    .marketing-footer-cta-actions{
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .marketing-footer-links{
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .marketing-footer-bottom{
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ======================================================
   SUBDOMAIN STARTER PAGES
   ====================================================== */
.subdomain-page{
    min-height: 100vh;
    background: #f6f8fb;
    color: #172033;
}

.subdomain-nav{
    min-height: 76px;
    border-bottom: 1px solid rgba(23, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.subdomain-container{
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 54px);
}

.subdomain-brand{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: #172033;
    font-weight: 900;
}

.subdomain-brand img{
    width: 150px;
    height: auto;
}

.subdomain-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.subdomain-actions .btn{
    border-radius: 8px;
    font-weight: 800;
}

.subdomain-main{
    width: min(1160px, 100%);
    margin: 0 auto;
    padding: clamp(44px, 7vw, 86px) clamp(16px, 4vw, 32px);
}

.subdomain-hero{
    width: min(780px, 100%);
    margin-bottom: 34px;
}

.subdomain-hero h1{
    margin: 8px 0 12px;
    color: #172033;
    font-size: 4rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.subdomain-hero p{
    margin: 0;
    color: #667085;
    font-size: 1.08rem;
    line-height: 1.66;
}

.subdomain-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.subdomain-grid article,
.backoffice-panel,
.backoffice-menu{
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.subdomain-grid article{
    min-height: 260px;
    padding: 24px;
}

.subdomain-grid article.active{
    border-color: rgba(29, 122, 88, 0.34);
    box-shadow: 0 18px 42px rgba(29, 122, 88, 0.14);
}

.subdomain-grid i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #0f6b4b;
    background: #e7f5ef;
    font-size: 1.35rem;
}

.subdomain-grid h2,
.backoffice-panel h2{
    margin: 0 0 10px;
    color: #172033;
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: 0;
}

.subdomain-grid p,
.backoffice-panel p{
    color: #667085;
    line-height: 1.58;
}

.subdomain-grid a{
    color: #1d6fb8;
    font-weight: 900;
}

.backoffice-layout{
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
}

.backoffice-menu{
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 12px;
}

.backoffice-menu a{
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    color: #374151;
    font-weight: 900;
}

.backoffice-menu a.active,
.backoffice-menu a:hover{
    color: #0f6b4b;
    background: #e7f5ef;
}

.backoffice-panel{
    min-height: 320px;
    padding: 26px;
}

.backoffice-metrics{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.backoffice-metrics span{
    display: grid;
    gap: 4px;
    min-height: 110px;
    padding: 18px;
    border-radius: 8px;
    background: #f6f8fb;
}

.backoffice-metrics strong{
    color: #172033;
    font-size: 1.05rem;
}

.backoffice-metrics em{
    color: #667085;
    font-style: normal;
}

body[data-pc-theme="dark"].subdomain-page{
    background: #101822;
    color: rgba(255, 255, 255, 0.9);
}

body[data-pc-theme="dark"].subdomain-page .subdomain-nav,
body[data-pc-theme="dark"].subdomain-page .subdomain-grid article,
body[data-pc-theme="dark"].subdomain-page .backoffice-panel,
body[data-pc-theme="dark"].subdomain-page .backoffice-menu{
    border-color: rgba(255, 255, 255, 0.1);
    background: #162232;
}

body[data-pc-theme="dark"].subdomain-page .subdomain-brand,
body[data-pc-theme="dark"].subdomain-page .subdomain-hero h1,
body[data-pc-theme="dark"].subdomain-page .subdomain-grid h2,
body[data-pc-theme="dark"].subdomain-page .backoffice-panel h2,
body[data-pc-theme="dark"].subdomain-page .backoffice-metrics strong{
    color: rgba(255, 255, 255, 0.94);
}

body[data-pc-theme="dark"].subdomain-page .subdomain-hero p,
body[data-pc-theme="dark"].subdomain-page .subdomain-grid p,
body[data-pc-theme="dark"].subdomain-page .backoffice-panel p,
body[data-pc-theme="dark"].subdomain-page .backoffice-metrics em{
    color: rgba(255, 255, 255, 0.68);
}

body[data-pc-theme="dark"].subdomain-page .backoffice-metrics span{
    background: #101822;
}

@media (max-width: 991.98px){
    .subdomain-grid,
    .backoffice-layout,
    .backoffice-metrics{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px){
    .subdomain-container{
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        min-height: auto;
        padding: 12px;
    }

    .subdomain-brand img{
        width: 136px;
    }

    .subdomain-actions{
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .subdomain-main{
        padding: 44px 14px;
    }

    .subdomain-grid article,
    .backoffice-panel{
        padding: 22px;
    }
}

/* ======================================================
   SUBDOMAIN PRODUCT PAGES
   ====================================================== */
.subdomain-toggler{
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 8px;
    box-shadow: none !important;
}

.subdomain-toggler:focus{
    box-shadow: 0 0 0 0.2rem rgba(29, 122, 88, 0.16) !important;
}

.subdomain-toggler .navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2823, 32, 51, 0.88%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.subdomain-navbar-links{
    gap: 4px;
}

.subdomain-navbar-links .nav-link{
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px !important;
    border-radius: 8px;
    color: #374151;
    font-size: 0.94rem;
    font-weight: 800;
}

.subdomain-navbar-links .nav-link.active,
.subdomain-navbar-links .nav-link:hover,
.subdomain-navbar-links .nav-link:focus{
    color: #0f6b4b;
    background: rgba(15, 107, 75, 0.08);
}

.subdomain-hero h1{
    font-size: 4rem;
}

.subdomain-grid article{
    display: flex;
    flex-direction: column;
}

.subdomain-grid a{
    margin-top: auto;
}

.subdomain-hero-actions,
.subdomain-next-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.subdomain-band,
.subdomain-article,
.support-panel,
.support-form{
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.subdomain-band{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 28px;
}

.subdomain-band h2,
.subdomain-article h2,
.support-panel h2{
    margin: 6px 0 10px;
    color: #172033;
    font-size: 1.7rem;
    line-height: 1.16;
    font-weight: 900;
}

.subdomain-band p,
.subdomain-article p,
.support-panel p{
    margin: 0;
    color: #667085;
    line-height: 1.65;
}

.subdomain-doc-layout,
.support-contact-layout{
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.support-contact-layout{
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.subdomain-side-nav{
    position: sticky;
    top: 96px;
    display: grid;
    gap: 8px;
}

.subdomain-side-nav a{
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    color: #374151;
    background: #ffffff;
    font-weight: 900;
}

.subdomain-side-nav a.active,
.subdomain-side-nav a:hover{
    color: #0f6b4b;
    background: #e7f5ef;
}

.subdomain-side-nav i{
    color: inherit;
    font-size: 1.12rem;
}

.subdomain-article,
.support-panel,
.support-form{
    padding: 28px;
}

.subdomain-step-list{
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.subdomain-step-list section{
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    background: #f8fafc;
}

.subdomain-step-list strong{
    color: #c8942e;
    font-size: 1rem;
    font-weight: 900;
}

.support-response-targets,
.support-form{
    display: grid;
    gap: 14px;
}

.support-response-targets{
    margin-top: 24px;
}

.support-response-targets span{
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 8px;
    background: #f8fafc;
}

.support-response-targets strong{
    color: #172033;
}

.support-response-targets em{
    color: #667085;
    font-style: normal;
}

.support-form label{
    display: grid;
    gap: 7px;
    margin: 0;
}

.support-form label span{
    color: #172033;
    font-size: 0.84rem;
    font-weight: 900;
}

.support-form .form-control,
.support-form .form-select{
    min-height: 46px;
    border-radius: 8px;
}

.support-form textarea.form-control{
    min-height: 150px;
}

.backoffice-metrics small{
    color: #98a2b3;
    font-size: 0.8rem;
}

.subdomain-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 4vw, 54px);
    border-top: 1px solid rgba(23, 32, 51, 0.08);
    background: #ffffff;
}

.subdomain-footer div,
.subdomain-footer nav{
    display: flex;
    align-items: center;
    gap: 14px;
}

.subdomain-footer img{
    width: 138px;
    height: auto;
}

.subdomain-footer span{
    color: #172033;
    font-weight: 900;
}

.subdomain-footer a{
    color: #667085;
    font-weight: 800;
}

.subdomain-footer a:hover{
    color: #0f6b4b;
}

body[data-pc-theme="dark"].subdomain-page .subdomain-band,
body[data-pc-theme="dark"].subdomain-page .subdomain-article,
body[data-pc-theme="dark"].subdomain-page .support-panel,
body[data-pc-theme="dark"].subdomain-page .support-form,
body[data-pc-theme="dark"].subdomain-page .subdomain-side-nav a,
body[data-pc-theme="dark"].subdomain-page .subdomain-footer{
    border-color: rgba(255, 255, 255, 0.1);
    background: #162232;
}

body[data-pc-theme="dark"].subdomain-page .subdomain-band h2,
body[data-pc-theme="dark"].subdomain-page .subdomain-article h2,
body[data-pc-theme="dark"].subdomain-page .support-panel h2,
body[data-pc-theme="dark"].subdomain-page .support-response-targets strong,
body[data-pc-theme="dark"].subdomain-page .support-form label span,
body[data-pc-theme="dark"].subdomain-page .subdomain-footer span{
    color: rgba(255, 255, 255, 0.94);
}

body[data-pc-theme="dark"].subdomain-page .subdomain-band p,
body[data-pc-theme="dark"].subdomain-page .subdomain-article p,
body[data-pc-theme="dark"].subdomain-page .support-panel p,
body[data-pc-theme="dark"].subdomain-page .support-response-targets em,
body[data-pc-theme="dark"].subdomain-page .subdomain-footer a{
    color: rgba(255, 255, 255, 0.68);
}

body[data-pc-theme="dark"].subdomain-page .subdomain-step-list section,
body[data-pc-theme="dark"].subdomain-page .support-response-targets span{
    background: #101822;
}

body[data-pc-theme="dark"].subdomain-page .subdomain-toggler{
    border-color: rgba(255, 255, 255, 0.14);
}

body[data-pc-theme="dark"].subdomain-page .subdomain-toggler .navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.86%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px){
    .subdomain-nav .navbar-collapse{
        margin-top: 12px;
        padding: 14px;
        border: 1px solid rgba(23, 32, 51, 0.08);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 16px 34px rgba(23, 32, 51, 0.12);
    }

    body[data-pc-theme="dark"].subdomain-page .subdomain-nav .navbar-collapse{
        border-color: rgba(255, 255, 255, 0.1);
        background: #162232;
    }

    .subdomain-navbar-links .nav-link{
        width: 100%;
        justify-content: space-between;
        padding: 11px 12px !important;
    }

    .subdomain-actions{
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 12px;
        margin-left: 0;
    }

    .subdomain-hero h1{
        font-size: 3.1rem;
    }

    .subdomain-doc-layout,
    .support-contact-layout{
        grid-template-columns: 1fr;
    }

    .subdomain-side-nav{
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .subdomain-band{
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px){
    .subdomain-container{
        align-items: stretch;
    }

    .subdomain-hero h1{
        font-size: 2.35rem;
        line-height: 1.06;
    }

    .subdomain-side-nav,
    .subdomain-step-list section{
        grid-template-columns: 1fr;
    }

    .subdomain-article,
    .support-panel,
    .support-form,
    .subdomain-band{
        padding: 22px;
    }

    .subdomain-footer{
        align-items: flex-start;
        flex-direction: column;
    }

    .subdomain-footer nav{
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ======================================================
   SETTINGS SIDEBAR NAV
   ====================================================== */
.settings-nav .list-group-item{
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 14px;
}

.settings-nav .list-group-item:hover{
    background: #f5f5f8;
    border-left-color: #198754;
}

.settings-nav .list-group-item.active{
    background: #198754;
    color: #fff;
    font-weight: 600;
}

.settings-nav .list-group-item.active i{
    color: #fff !important;
}

/* ======================================================
   BADGES
   ====================================================== */
.permission-badge{
    display: inline-block;
    padding: 1px 10px;
    border: 1px solid #198754;
    background: #e8f5e9;
    border-radius: 12px;
    margin: 3px;
    font-size: 11px;
}

.perm-no{
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    background: #fff;
}

/* ======================================================
   CARD SURFACES
   ====================================================== */
.role-card,
.module-card,
.perm-card,
.role-box{
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    transition: background 0.15s ease;
}

.role-card:hover,
.module-card:hover,
.perm-card:hover{
    background: #f8fafc;
}

/* Active highlight */
.role-card.is-active{
    border-color: rgba(25, 135, 84, 0.35);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.12);
}

/* ======================================================
   STAFF META BOX
   ====================================================== */
.staff-meta{
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 12px;
    background: #fafbfc;
}

/* ======================================================
   PERMISSION BADGE ANIMATIONS
   ====================================================== */
.role-perm-badges.is-updating{
    opacity: 0.35;
    transition: opacity 0.15s ease;
}

.role-perm-badges.flash{
    animation: permFlash 0.6s ease;
}

@keyframes permFlash{
    0%{ transform: scale(1); }
    35%{ transform: scale(1.01); }
    100%{ transform: scale(1); }
}

/* ======================================================
   TEXT HELPERS
   ====================================================== */
.text-truncate-2{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ======================================================
   MODERN UI (HERO, CARDS, TILES, PROFILE)
   ====================================================== */

/* Slim module header */
.module-hero{
    border-radius: 16px;
    padding: 18px 18px;
    color: #fff;
    background: linear-gradient(135deg, black 0%, #20c997 100%);
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
    position: relative;
    overflow: hidden;
}
.module-hero::after{
    content:"";
    position:absolute;
    right:-70px;
    top:-90px;
    width:240px;
    height:240px;
    border-radius:999px;
    background: rgba(255,255,255,.18);
    filter: blur(0.5px);
}
.module-hero .hero-icon{
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
    font-size: 26px;
}

/* Modern cards */
.card-modern{
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    background: #fff;
}

/* Quick action tiles */
.action-tile{
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
    padding: 16px;
    height: 100%;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
    overflow: hidden;
}
.action-tile:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.action-icon{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: #f2f4f8;
    font-size: 20px;
}
.action-title{ font-weight: 700; }
.action-desc{ color: #6c757d; font-size: 13px; }

/* Compact profile strip */
.profile-strip img{
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 14px;
}

/* MODULE TILES – CLEAN & DISTINCT */
.module-tile.card{
    cursor: pointer;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.08);
    background: linear-gradient(180deg, #ffffff 0%, #f3f5f9 100%);
    box-shadow:
            0 10px 28px rgba(0,0,0,.14),
            inset 0 1px 0 rgba(255,255,255,.95);
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
    overflow: hidden;
}
.module-tile.card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #dee2e6, #f8f9fa);
}
.module-tile.card:hover{
    transform: translateY(-6px);
    box-shadow:
            0 20px 45px rgba(0,0,0,.20),
            inset 0 1px 0 rgba(255,255,255,1);
}
.module-tile.card:hover::after{
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0,0,0,.06), transparent 70%);
    pointer-events: none;
}
.module-icon{
    font-size: 52px;
    line-height: 1;
    margin-bottom: 6px;
    color: #495057;
}
.module-label{
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
    color: #212529;
}

/* ======================================================
   FORMS (MODERN / ADMINDEK FRIENDLY)
   ====================================================== */

/* Spacing */
.form-group.row.pb-3 {
    padding-bottom: 14px !important;
}

/* ------------------------------------------------------
   Inputs & Selects (ALL SIZES)
   ------------------------------------------------------ */
.form-control,
.form-select {
    border-radius: 10px;
}

/* Optional: smoother focus (recommended) */
.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* ------------------------------------------------------
   Buttons
   ------------------------------------------------------ */
.btn-round {
    border-radius: 999px;
}

.btn-soft {
    background: #f7f8fb;
    border: 1px solid #eef1f6;
}

/* ------------------------------------------------------
   Divider
   ------------------------------------------------------ */
.divider-soft {
    border-top: 1px dashed #e9edf3;
    margin: 10px 0 14px;
}

/* ------------------------------------------------------
   Input Groups (ALL SIZES)
   ------------------------------------------------------ */
.input-group {
    border-radius: 10px;
    overflow: hidden; /* clips inner corners cleanly */
}

/* Let the group control rounding */
.input-group > .form-control,
.input-group > .form-select{
    border-radius: 0;
}

/* Optional: input-group text consistency */
.input-group-text {
    border-radius: 0;
}

/* ------------------------------------------------------
   Validation states (keeps rounding intact)
   ------------------------------------------------------ */
.form-control.is-valid,
.form-control.is-invalid,
.form-select.is-valid,
.form-select.is-invalid {
    border-radius: 10px;
}



/* ======================================================
   PROFILE PAGE ENHANCEMENT
   ====================================================== */
.section-title{
    font-weight: 700;
    font-size: 14px;
    color: #2b2f38;
}

/* ===== Hero ===== */
.profile-hero{
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef1f6;
    box-shadow: 0 8px 20px rgba(18,38,63,.04);
}
.profile-hero-top{
    background: linear-gradient(135deg,#47a447,#47a447cc);
    padding: 18px;
    color: #fff;
}
.profile-hero-bottom{
    background: #fff;
    padding: 14px 18px;
}

/* ===== Avatar (hero) ===== */
.avatar-wrap{
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.75);
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dashboard profile picture: force true circle + proper crop */
.change-profile .profile-dp{
    width: 100px;          /* matches wid-100 */
    height: 100px;         /* matches wid-100 */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-profile .profile-dp img{
    width: 100% !important;
    height: 100% !important;      /* overrides .img-fluid height:auto */
    object-fit: cover;
    object-position: center;
    display: block;               /* avoids baseline/inline shifts */
}

/* ===== Meta pills ===== */
.meta-pill{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

/* ===== Sticky left ===== */
@media(min-width:992px){
    .sticky-left{ position: sticky; top: 92px; }
}

/* ===== Profile Nav ===== */
.profile-nav-list{
    border: 1px solid #eef1f6;
    border-radius: 14px;
    overflow: hidden;
}
.profile-nav-list .list-group-item{
    border: 0;
    border-bottom: 1px solid #f0f2f7;
    border-left: 3px solid transparent;
    padding: 12px 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-nav-list .list-group-item i{
    width: 24px;
    text-align: center;
    font-size: 18px;
    color: #47a447;
}
.profile-nav-list .list-group-item:hover{
    background: #f7f8fb;
    border-left-color: #47a447;
    cursor: pointer;
}
.profile-nav-list .list-group-item.active{
    background: #47a447;
    border-left-color: #47a447;
    color: #fff;
    font-weight: 700;
}
.profile-nav-list .list-group-item.active i{ color:#fff; }

/* ===== Profile Photo Alert ===== */
.profile-photo-alert{
    background: #dff3df;
    border: 1px solid rgba(71,164,71,.22);
    border-radius: 18px;
    padding: 16px 18px;
}
.profile-photo-wrap{ flex-shrink: 0; }

.profile-photo-circle{
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: hidden;
    background: #47a447;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,.92);
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.profile-photo-img{ width: 100%; height: 100%; object-fit: cover; }
.profile-photo-initials{ color:#fff; font-weight: 800; font-size: 26px; }

@media(max-width:480px){
    .profile-photo-circle{ width: 64px; height: 64px; }
    .profile-photo-initials{ font-size: 22px; }
}
.profile-photo-text{
    font-size: 13px;
    line-height: 1.45;
    color: #3b3f45;
}

/* ======================================================
   DARK MODE OVERRIDES (Porto/PC theme switch uses data-pc-theme)
   ====================================================== */

/* Settings nav */
body[data-pc-theme="dark"] .settings-nav .list-group-item{ color: rgba(255,255,255,.82); }
body[data-pc-theme="dark"] .settings-nav .list-group-item:hover{ background: rgba(255,255,255,.06); }
body[data-pc-theme="dark"] .settings-nav .list-group-item.active{
    background: #198754;
    color: #fff;
}

/* Page loader glow stronger */
body[data-pc-theme="dark"] #page-loader .page-loader-bar{
    box-shadow: 0 0 10px rgba(25,135,84,.75);
}

/* Permission badge */
body[data-pc-theme="dark"] .permission-badge{
    border-color: rgba(25,135,84,.65);
    background: rgba(25,135,84,.14);
    color: rgba(255,255,255,.86);
}

/* Card surfaces */
body[data-pc-theme="dark"] .role-card,
body[data-pc-theme="dark"] .module-card,
body[data-pc-theme="dark"] .perm-card,
body[data-pc-theme="dark"] .role-box{
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.10);
}
body[data-pc-theme="dark"] .role-card:hover,
body[data-pc-theme="dark"] .module-card:hover,
body[data-pc-theme="dark"] .perm-card:hover{
    background: rgba(255,255,255,.06);
}
body[data-pc-theme="dark"] .role-card.is-active{
    border-color: rgba(25,135,84,.55);
    box-shadow: 0 0 0 3px rgba(25,135,84,.18);
}

/* perm number */
body[data-pc-theme="dark"] .perm-no{
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.15);
}

/* Disabled */
body[data-pc-theme="dark"] .isDisabled{ opacity: .45; }

/* Updating state */
body[data-pc-theme="dark"] .role-perm-badges.is-updating{ opacity: .30; }

/* Module hero */
body[data-pc-theme="dark"] .module-hero{ box-shadow: 0 18px 42px rgba(0,0,0,.45); }
body[data-pc-theme="dark"] .module-hero::after{ background: rgba(255,255,255,.08); }
body[data-pc-theme="dark"] .module-hero .hero-icon{
    background: rgba(0,0,0,.18);
    border-color: rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* Modern cards */
body[data-pc-theme="dark"] .card-modern{
    background: none;
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 14px 34px rgba(0,0,0,.55);
}

/* Action tiles */
body[data-pc-theme="dark"] .action-tile{
    background: none;
    border-color: rgba(255,255,255,.10);
}
body[data-pc-theme="dark"] .action-tile:hover{ box-shadow: 0 18px 40px rgba(0,0,0,.70); }
body[data-pc-theme="dark"] .action-icon{ background: rgba(255,255,255,.06); }
body[data-pc-theme="dark"] .action-desc{ color: rgba(255,255,255,.65); }
body[data-pc-theme="dark"] .action-title{ color: rgba(255,255,255,.92); }

/* Text-muted override */
body[data-pc-theme="dark"] .profile-strip .text-muted,
body[data-pc-theme="dark"] .text-muted{
    color: rgba(255,255,255,.65) !important;
}

/* Module tiles (dark) */
body[data-pc-theme="dark"] .module-tile.card{
    border-color: rgba(255,255,255,.10);
    background: linear-gradient(180deg, #292a2c 0%, #161617 100%);
    box-shadow:
            0 12px 32px rgba(0,0,0,.65),
            inset 0 1px 0 rgba(255,255,255,.04);
}
body[data-pc-theme="dark"] .module-tile.card::before{
    background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}
body[data-pc-theme="dark"] .module-tile.card:hover{
    box-shadow:
            0 22px 50px rgba(0,0,0,.85),
            inset 0 1px 0 rgba(255,255,255,.06);
}
body[data-pc-theme="dark"] .module-tile.card:hover::after{
    background: radial-gradient(circle at top, rgba(255,255,255,.08), transparent 70%);
}
body[data-pc-theme="dark"] .module-icon{ color: rgba(255,255,255,.85); }
body[data-pc-theme="dark"] .module-label{ color: rgba(255,255,255,.92); }

/* Profile (dark) - keep existing look but readable */
body[data-pc-theme="dark"] .section-title{ color: rgba(255,255,255,.82); }
body[data-pc-theme="dark"] .profile-hero{
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 14px 34px rgba(0,0,0,.55);
}
body[data-pc-theme="dark"] .profile-hero-bottom{
    background: rgba(255,255,255,.03);
}
body[data-pc-theme="dark"] .profile-nav-list{
    border-color: rgba(255,255,255,.08);
}
body[data-pc-theme="dark"] .profile-nav-list .list-group-item{
    border-bottom-color: rgba(255,255,255,.06);
    color: rgba(255,255,255,.82);
}
body[data-pc-theme="dark"] .profile-nav-list .list-group-item:hover{
    background: rgba(255,255,255,.06);
}
body[data-pc-theme="dark"] .profile-photo-text{
    color: rgba(255,255,255,.72);
}
body[data-pc-theme="dark"] .profile-photo-alert{
    background: rgba(25,135,84,.14);
    border-color: rgba(25,135,84,.25);
}

/* ======================================================
   TABLE ACTION BUTTONS
   ====================================================== */
.table .btn{
    --breoyin-table-btn-size: 32px;
    min-height: var(--breoyin-table-btn-size);
    height: var(--breoyin-table-btn-size);
    max-height: var(--breoyin-table-btn-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding-block: 0;
    padding-inline: .625rem;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    flex: 0 0 auto;
}

.table .btn i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

.table .btn:has(> i:only-child){
    width: var(--breoyin-table-btn-size);
    min-width: var(--breoyin-table-btn-size);
    max-width: var(--breoyin-table-btn-size);
    padding-inline: 0;
}

.table td .btn-group,
.table td .btn-toolbar,
.table td .d-flex:has(.btn),
.table td .d-inline-flex:has(.btn){
    align-items: center;
    flex-wrap: nowrap;
}

.table td .btn-group > .btn{
    flex: 0 0 auto;
}

.table td .dropdown-toggle.btn::after{
    margin-left: .35rem;
}

@media (max-width: 575.98px){
    .table .btn{
        --breoyin-table-btn-size: 30px;
        padding-inline: .5rem;
    }
}

/* ======================================================
   DARK REPORT AND TABLE SURFACES
   ====================================================== */
@media screen{
    body[data-pc-theme="dark"] .pc-content .card:not(.bg-transparent){
        background-color: rgba(255, 255, 255, .035);
        border-color: rgba(255, 255, 255, .11);
        color: rgba(255, 255, 255, .86);
    }

    body[data-pc-theme="dark"] .pc-content .card-header,
    body[data-pc-theme="dark"] .pc-content .card-footer{
        background-color: rgba(255, 255, 255, .045);
        border-color: rgba(255, 255, 255, .11);
        color: rgba(255, 255, 255, .88);
    }

    body[data-pc-theme="dark"] .pc-content .card-body{
        color: rgba(255, 255, 255, .84);
    }

    body[data-pc-theme="dark"] .pc-content .report-summary,
    body[data-pc-theme="dark"] .pc-content .summary-tile,
    body[data-pc-theme="dark"] .pc-content .summary-box,
    body[data-pc-theme="dark"] .pc-content .meta-box,
    body[data-pc-theme="dark"] .pc-content .policy-panel,
    body[data-pc-theme="dark"] .pc-content .allocation-block,
    body[data-pc-theme="dark"] .pc-content .assist-panel,
    body[data-pc-theme="dark"] .pc-content .staff-meta,
    body[data-pc-theme="dark"] .pc-content .company-logo-empty,
    body[data-pc-theme="dark"] .pc-content .empty-state{
        background: rgba(255, 255, 255, .055) !important;
        border-color: rgba(255, 255, 255, .12) !important;
        color: rgba(255, 255, 255, .88);
    }

    body[data-pc-theme="dark"] .pc-content :is(
        .report-summary,
        .summary-tile,
        .summary-box,
        .meta-box,
        .policy-panel,
        .allocation-block,
        .assist-panel,
        .staff-meta,
        .company-logo-empty,
        .empty-state
    ) :is(h1, h2, h3, h4, h5, h6){
        color: rgba(255, 255, 255, .92);
    }

    body[data-pc-theme="dark"] .table{
        --bs-table-color: rgba(255, 255, 255, .82);
        --bs-table-bg: transparent;
        --bs-table-border-color: rgba(255, 255, 255, .10);
        --bs-table-striped-bg: rgba(255, 255, 255, .03);
        --bs-table-hover-bg: rgba(255, 255, 255, .055);
        color: var(--bs-table-color);
        border-color: var(--bs-table-border-color);
    }

    body[data-pc-theme="dark"] .table > :not(caption) > * > *{
        border-color: var(--bs-table-border-color);
    }

    body[data-pc-theme="dark"] .table-light{
        --bs-table-bg: rgba(255, 255, 255, .09);
        --bs-table-color: rgba(255, 255, 255, .86);
        --bs-table-border-color: rgba(255, 255, 255, .12);
        background-color: var(--bs-table-bg) !important;
        color: var(--bs-table-color) !important;
        border-color: var(--bs-table-border-color) !important;
    }

    body[data-pc-theme="dark"] .table-light > th,
    body[data-pc-theme="dark"] .table-light > td,
    body[data-pc-theme="dark"] thead.table-light th,
    body[data-pc-theme="dark"] tfoot.table-light th,
    body[data-pc-theme="dark"] tfoot.table-light td,
    body[data-pc-theme="dark"] tr.table-light > th,
    body[data-pc-theme="dark"] tr.table-light > td{
        background-color: var(--bs-table-bg) !important;
        color: var(--bs-table-color) !important;
        border-color: var(--bs-table-border-color) !important;
    }

    body[data-pc-theme="dark"] .pc-content .bg-light,
    body[data-pc-theme="dark"] .pc-content .badge.bg-light,
    body[data-pc-theme="dark"] .pc-content .company-pill.bg-light{
        background-color: rgba(255, 255, 255, .085) !important;
        border-color: rgba(255, 255, 255, .14) !important;
        color: rgba(255, 255, 255, .84) !important;
    }

    body[data-pc-theme="dark"] .pc-content .badge.text-dark,
    body[data-pc-theme="dark"] .pc-content .bg-light.text-dark,
    body[data-pc-theme="dark"] .pc-content .company-pill.bg-light strong{
        color: rgba(255, 255, 255, .88) !important;
    }

    body[data-pc-theme="dark"] .pc-content .btn-light{
        --bs-btn-color: rgba(255, 255, 255, .86);
        --bs-btn-bg: rgba(255, 255, 255, .075);
        --bs-btn-border-color: rgba(255, 255, 255, .14);
        --bs-btn-hover-color: rgba(255, 255, 255, .95);
        --bs-btn-hover-bg: rgba(255, 255, 255, .12);
        --bs-btn-hover-border-color: rgba(255, 255, 255, .20);
        --bs-btn-active-color: rgba(255, 255, 255, .95);
        --bs-btn-active-bg: rgba(255, 255, 255, .16);
        --bs-btn-active-border-color: rgba(255, 255, 255, .22);
        background-color: var(--bs-btn-bg) !important;
        border-color: var(--bs-btn-border-color) !important;
        color: var(--bs-btn-color) !important;
    }

    body[data-pc-theme="dark"] .score-ring{
        background: conic-gradient(var(--bs-primary) calc(var(--score) * 1%), rgba(255, 255, 255, .14) 0) !important;
    }

    body[data-pc-theme="dark"] .score-ring > span{
        background: #1f2329 !important;
        color: rgba(255, 255, 255, .9);
    }

    body[data-pc-theme="dark"] .audit-meta pre{
        background: rgba(255, 255, 255, .055) !important;
        border-color: rgba(255, 255, 255, .12) !important;
        color: rgba(255, 255, 255, .82);
    }
}

/* ======================================================
   ACCOUNT SECURITY SETTINGS
   ====================================================== */
.security-summary-card .security-icon{
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), .1);
    color: var(--bs-primary);
    font-size: 1.6rem;
    flex: 0 0 auto;
}

.security-meta{
    display: grid;
    gap: 1rem;
}

.security-meta > div{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(145, 158, 171, .18);
}

.security-meta > div:last-child{
    border-bottom: 0;
    padding-bottom: 0;
}

.security-meta span{
    color: var(--bs-secondary-color);
}

.security-meta strong{
    text-align: right;
    font-weight: 600;
}

.security-callout{
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid rgba(var(--bs-primary-rgb), .16);
    border-radius: 8px;
    background: rgba(var(--bs-primary-rgb), .04);
}

.security-callout > i{
    color: var(--bs-primary);
    font-size: 1.45rem;
    line-height: 1;
    margin-top: .1rem;
}

.security-callout.is-enabled{
    border-color: rgba(var(--bs-success-rgb), .2);
    background: rgba(var(--bs-success-rgb), .06);
}

.security-callout.is-enabled > i{
    color: var(--bs-success);
}

.security-method-card{
    padding: 1rem;
    border: 1px solid rgba(145, 158, 171, .18);
    border-radius: 8px;
    background: var(--bs-card-bg);
}

.security-method-card.is-active{
    border-color: rgba(var(--bs-success-rgb), .28);
    box-shadow: 0 0 0 1px rgba(var(--bs-success-rgb), .04);
}

.security-method-icon{
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), .10);
    color: var(--bs-primary);
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.security-qr-wrap{
    width: min(100%, 260px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid rgba(145, 158, 171, .22);
    border-radius: 8px;
    background: #fff;
}

.security-qr-img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.security-qr-placeholder{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary-color);
    background: rgba(145, 158, 171, .08);
    border-radius: 6px;
    font-size: 3rem;
}

.security-secret{
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    padding: .55rem .7rem;
    border-radius: 6px;
    background: rgba(145, 158, 171, .12);
    color: var(--bs-body-color);
}

body[data-pc-theme="dark"] .security-qr-wrap{
    background: #fff;
}

body[data-pc-theme="dark"] .security-method-card{
    background: rgba(255, 255, 255, .035);
    border-color: rgba(255, 255, 255, .11);
}

body[data-pc-theme="dark"] .security-method-card.is-active{
    border-color: rgba(var(--bs-success-rgb), .42);
}

body[data-pc-theme="dark"] .security-method-card .badge.bg-light{
    background: rgba(255, 255, 255, .09) !important;
    color: rgba(255, 255, 255, .78) !important;
}

body[data-pc-theme="dark"] .security-secret{
    background: rgba(255, 255, 255, .08);
}

/* ======================================================
   MODAL VIEWPORT CONTAINMENT
   ====================================================== */
.modal:not(.modal-lightbox):not(.notification-modal){
    --breoyin-modal-gap: 1rem;
}

.modal:not(.modal-lightbox):not(.notification-modal) .modal-dialog{
    margin-top: var(--breoyin-modal-gap);
    margin-bottom: var(--breoyin-modal-gap);
}

.modal.fade.modal-animate:not(.modal-lightbox):not(.notification-modal) .modal-dialog{
    height: calc(100dvh - (var(--breoyin-modal-gap) * 2));
    max-height: calc(100dvh - (var(--breoyin-modal-gap) * 2));
}

.modal:not(.modal-lightbox):not(.notification-modal) .modal-content{
    max-height: calc(100dvh - (var(--breoyin-modal-gap) * 2));
    overflow: hidden;
}

.modal:not(.modal-lightbox):not(.notification-modal) .modal-header,
.modal:not(.modal-lightbox):not(.notification-modal) .modal-footer{
    flex-shrink: 0;
}

.modal:not(.modal-lightbox):not(.notification-modal) .modal-body{
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal:not(.modal-lightbox):not(.notification-modal) .modal-footer{
    gap: .5rem;
}

.modal:not(.modal-lightbox):not(.notification-modal) .modal-footer > small{
    max-width: min(56ch, 100%);
    line-height: 1.35;
}

@media (max-width: 575.98px){
    .modal:not(.modal-lightbox):not(.notification-modal){
        --breoyin-modal-gap: .5rem;
    }

    .modal:not(.modal-lightbox):not(.notification-modal) .modal-footer{
        align-items: stretch;
    }

    .modal:not(.modal-lightbox):not(.notification-modal) .modal-footer > small{
        flex-basis: 100%;
    }

    .modal:not(.modal-lightbox):not(.notification-modal) .modal-footer .d-flex{
        width: 100%;
        justify-content: flex-end;
    }
}

/* ======================================================
   TENANT APP WORKSPACE REFINEMENT
   ====================================================== */
.pc-container .pc-content{
    --breoyin-border: rgba(15, 23, 42, .09);
    --breoyin-soft: #f6f8fb;
    --breoyin-soft-2: #eef6ff;
    --breoyin-ink: #111827;
    --breoyin-muted: #64748b;
    --breoyin-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

body[data-pc-theme="dark"] .pc-container .pc-content{
    --breoyin-border: rgba(255, 255, 255, .12);
    --breoyin-soft: rgba(255, 255, 255, .045);
    --breoyin-soft-2: rgba(13, 110, 253, .10);
    --breoyin-ink: #f8fafc;
    --breoyin-muted: #94a3b8;
    --breoyin-shadow: none;
}

.pc-container .pc-content > .card,
.pc-container .pc-content > section.card,
.pc-container .pc-content .card{
    border: 1px solid var(--breoyin-border);
    border-radius: 8px;
    box-shadow: none;
}

.pc-container .pc-content > .card:first-of-type:not(.dashboard-hero){
    background:
        linear-gradient(135deg, rgba(13, 110, 253, .08), rgba(32, 201, 151, .07)),
        var(--bs-card-bg, #fff);
    overflow: hidden;
}

.pc-container .pc-content > .card:first-of-type:not(.dashboard-hero) .card-body{
    min-height: 112px;
}

.pc-container .pc-content > .card:first-of-type:not(.dashboard-hero) h1,
.pc-container .pc-content > .card:first-of-type:not(.dashboard-hero) h2,
.pc-container .pc-content > .card:first-of-type:not(.dashboard-hero) h3,
.pc-container .pc-content > .card:first-of-type:not(.dashboard-hero) h4{
    color: var(--breoyin-ink);
    font-weight: 700;
    line-height: 1.2;
}

.pc-container .pc-content > .card:first-of-type:not(.dashboard-hero) .text-muted{
    color: var(--breoyin-muted) !important;
}

.pc-container .pc-content .card-header{
    background: transparent;
    border-bottom-color: var(--breoyin-border);
    padding: 1rem 1.1rem;
}

.pc-container .pc-content .card-header h5,
.pc-container .pc-content .card-header h6{
    color: var(--breoyin-ink);
    font-weight: 700;
}

.pc-container .pc-content .card-body{
    min-width: 0;
}

.pc-container .pc-content .company-pill,
.pc-container .pc-content .badge-soft{
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    border: 1px solid var(--breoyin-border) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .64) !important;
    color: var(--bs-body-color) !important;
    padding: .45rem .68rem !important;
}

body[data-pc-theme="dark"] .pc-container .pc-content .company-pill,
body[data-pc-theme="dark"] .pc-container .pc-content .badge-soft{
    background: rgba(15, 23, 42, .38) !important;
}

.pc-container .pc-content .summary-tile,
.pc-container .pc-content .dashboard-stat,
.pc-container .pc-content .security-method-card{
    border: 1px solid var(--breoyin-border) !important;
    border-radius: 8px !important;
    background: var(--breoyin-soft) !important;
}

.pc-container .pc-content .summary-tile h1,
.pc-container .pc-content .summary-tile h2,
.pc-container .pc-content .summary-tile h3,
.pc-container .pc-content .summary-tile h4,
.pc-container .pc-content .summary-tile h5,
.pc-container .pc-content .summary-tile h6{
    color: var(--breoyin-ink);
    font-weight: 700;
}

.pc-container .pc-content form.row,
.pc-container .pc-content .input-group,
.pc-container .pc-content .form-control,
.pc-container .pc-content .form-select{
    min-width: 0;
}

.pc-container .pc-content .form-control,
.pc-container .pc-content .form-select,
.pc-container .pc-content .input-group-text{
    border-color: var(--breoyin-border);
    border-radius: 8px;
}

.pc-container .pc-content .input-group > :not(:first-child){
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.pc-container .pc-content .input-group > :not(:last-child){
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pc-container .pc-content .searchbox{
    width: min(100%, 340px);
    max-width: 100% !important;
}

.pc-container .pc-content .btn{
    border-radius: 8px;
    white-space: nowrap;
}

.pc-container .pc-content .btn-effects{
    contain: paint;
}

.pc-container .pc-content .btn-effects::after{
    display: none;
}

.pc-container .pc-content .btn-sm{
    min-height: 34px;
}

.pc-container .pc-content .btn > i:only-child,
.pc-container .pc-content .btn > .fa:only-child,
.pc-container .pc-content .btn > .ph:only-child,
.pc-container .pc-content .btn > .ti:only-child{
    margin: 0;
}

.pc-container .pc-content .action-btns{
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.pc-container .pc-content .action-btns .btn{
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px !important;
}

.pc-container .pc-content .table-responsive{
    border-radius: 0 0 8px 8px;
    scrollbar-width: thin;
}

.pc-container .pc-content .table{
    margin-bottom: 0;
    width: 100%;
}

.pc-container .pc-content .table thead th,
.pc-container .pc-content .table .table-light th{
    background: var(--breoyin-soft);
    border-bottom-color: var(--breoyin-border);
    color: var(--breoyin-muted);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: normal;
}

.pc-container .pc-content .table tbody td{
    border-color: rgba(15, 23, 42, .06);
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}

.pc-container .pc-content .table tbody td:last-child,
.pc-container .pc-content .table thead th:last-child,
.pc-container .pc-content .table .action-col{
    overflow-wrap: normal;
}

body[data-pc-theme="dark"] .pc-container .pc-content .table tbody td{
    border-color: rgba(255, 255, 255, .08);
}

.pc-container .pc-content .table-hover > tbody > tr:hover > *{
    background-color: rgba(13, 110, 253, .035);
}

.pc-container .pc-content .amount-col,
.pc-container .pc-content .text-end{
    font-variant-numeric: tabular-nums;
}

.pc-container .pc-content .amount-col,
.pc-container .pc-content .table .text-end,
.pc-container .pc-content .table .text-center{
    white-space: nowrap;
}

.pc-container .pc-content .alert{
    border-radius: 8px;
    border-width: 1px;
}

.pc-container .pc-content .card-footer{
    border-top-color: var(--breoyin-border);
    background: transparent;
}

.pc-container .pc-content .pagination{
    gap: .35rem;
    flex-wrap: wrap;
}

.pc-container .pc-content .page-link{
    border-radius: 8px;
    border-color: var(--breoyin-border);
}

.pc-container .pc-content .modal-content{
    border: 1px solid var(--breoyin-border);
    border-radius: 8px;
}

.pc-container .pc-content .modal-header,
.pc-container .pc-content .modal-footer{
    border-color: var(--breoyin-border);
}

.pc-container .pc-content .empty-state,
.pc-container .pc-content .workspace-empty-state{
    border: 1px dashed var(--breoyin-border);
    border-radius: 8px;
    background: var(--breoyin-soft);
    color: var(--breoyin-muted);
    padding: 1rem;
}

@media (min-width: 992px){
    .pc-container .pc-content .card:hover{
        border-color: rgba(13, 110, 253, .18);
    }
}

@media (max-width: 767.98px){
    .pc-container .pc-content{
        padding-inline: 14px;
    }

    .pc-container .pc-content > .card:first-of-type:not(.dashboard-hero) .card-body{
        min-height: auto;
        align-items: stretch !important;
    }

    .pc-container .pc-content > .card:first-of-type:not(.dashboard-hero) .d-flex.flex-wrap,
    .pc-container .pc-content .card-header .d-flex.flex-wrap{
        width: 100%;
    }

    .pc-container .pc-content .company-pill,
    .pc-container .pc-content .searchbox,
    .pc-container .pc-content .card-header form.input-group{
        width: 100%;
    }

    .pc-container .pc-content .btn:not(.btn-icon){
        min-height: 38px;
    }

    .pc-container .pc-content .action-btns{
        gap: .45rem;
    }

    .pc-container .pc-content .table-responsive{
        border-radius: 8px;
    }
}

/* ======================================================
   PHASE 5 UX CONSISTENCY
   ====================================================== */
.modal .modal-content{
    border-radius: 8px;
}

.modal .modal-footer{
    gap: .75rem;
}

.modal .modal-footer .text-muted:empty{
    display: none;
}

.smart-table-wrap{
    border-radius: 8px;
}

.smart-table-wrap > .table{
    min-width: 0;
}

.smart-row-actions,
.action-btns{
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    white-space: nowrap;
}

.smart-row-actions .btn,
.action-btns .btn{
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
}

.smart-row-actions .btn i,
.action-btns .btn i{
    margin: 0 !important;
    line-height: 1;
}

.smart-row-actions .dropdown-toggle,
.action-btns .dropdown-toggle{
    width: auto;
    min-width: 2.15rem;
    padding-inline: .65rem;
}

.smart-empty-state{
    display: grid;
    gap: .35rem;
    justify-items: center;
    padding: 2rem 1rem;
    color: var(--bs-secondary-color);
    text-align: center;
}

.smart-empty-state > i{
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), .08);
    color: var(--bs-primary);
    font-size: 1.25rem;
}

.is-busy{
    pointer-events: none;
}

.smart-field-error{
    display: block;
}

@media (min-width: 992px){
    .table-responsive.smart-table-wrap:not(.table-scroll-x){
        overflow-x: visible;
    }
}

@media (max-width: 575.98px){
    .modal .modal-footer{
        flex-direction: column;
        align-items: stretch;
    }

    .modal .modal-footer > .d-flex{
        width: 100%;
    }

    .modal .modal-footer .btn{
        flex: 1 1 auto;
    }

    .smart-row-actions,
    .action-btns{
        gap: .3rem;
    }

    .smart-row-actions .btn,
    .action-btns .btn{
        width: 2rem;
        height: 2rem;
    }
}

