html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--app-background);
    color: var(--app-text);
}

.app-main {
    flex: 1 0 auto;
}

.app-footer {
    flex-shrink: 0;
    background: var(--app-surface);
    padding: 1rem 0;
    border-color: var(--app-border) !important;
}

body,
.form-control,
.form-select,
.btn,
.card,
.nav-link {
    color: var(--app-text);
}

.text-muted,
.form-text,
small {
    color: var(--app-text-muted) !important;
}

.border,
.card,
.form-control,
.form-select,
.input-group-text,
.table,
.table > :not(caption) > * > * {
    border-color: var(--app-border) !important;
}

.bg-light {
    background: var(--app-background) !important;
}

.card-soft {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: var(--app-surface);
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.05);
}

.app-form-shell {
    max-width: 640px;
    margin: 0 auto;
}

.auth-card,
.form-card-unified {
    max-width: 640px;
    margin: 0 auto;
}

.auth-screen-body {
    min-height: 100vh;
}

.auth-screen-main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
}

.brand-logo-wrap,
.auth-logo-wrap,
.dashboard-logo-wrap {
    width: 250px;
    height: 50px;
    max-width: 250px;
    max-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.auth-logo-wrap {
    justify-content: center;
}

.auth-logo,
.app-brand img,
.dashboard-logo {
    width: 250px !important;
    height: 50px !important;
    min-width: 250px;
    max-width: 250px !important;
    min-height: 50px;
    max-height: 50px !important;
    object-fit: contain !important;
    display: block;
}

.app-navbar {
    background: var(--app-dark);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.28);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.app-brand img {
    width: 250px;
    height: 50px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #fff;
}

.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.navbar .btn-outline-light:hover {
    background: #fff;
    color: var(--app-dark);
}

.btn-primary {
    background: #C7EAFB;
    border-color: #C7EAFB;
    color: #2E3192;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #b3e1f7 !important;
    border-color: #b3e1f7 !important;
    color: #2E3192 !important;
}

.btn-outline-primary {
    border-color: #2E3192;
    color: #2E3192;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: #C7EAFB !important;
    border-color: #C7EAFB !important;
    color: #2E3192 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--app-primary-rgb), 0.7) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--app-primary-rgb), 0.18);
}

.password-toggle-btn {
    min-width: 52px;
}

.avatar-preview,
.profile-avatar-large {
    border-radius: 50%;
    object-fit: cover;
    background: rgba(var(--app-secondary-rgb), 0.08);
    border: 2px solid rgba(var(--app-primary-rgb), 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--app-secondary);
}

.avatar-preview img,
.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
}

.dashboard-avatar {
    width: 50px;
    height: 50px;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    font-size: 2rem;
}

.profile-avatar-100 {
    width: 100px;
    height: 100px;
}

.dashboard-summary-grid {
    display: grid;
    gap: 1rem;
}

.stat-card {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: transparent;
    box-shadow: none;
}

.stat-card .card-body,
.stat-card .card-body div,
.stat-card .card-body small {
    color: var(--app-text) !important;
}

.dashboard-logo {
    flex-shrink: 0;
}

.app-surface-box {
    background: var(--app-surface);
}

.alert-info {
    color: #083344;
    background: rgba(var(--app-info-rgb), 0.12);
    border-color: rgba(var(--app-info-rgb), 0.25);
}

.toast.text-bg-success {
    background-color: var(--app-success) !important;
}

.toast.text-bg-danger {
    background-color: var(--app-error) !important;
}

.toast.text-bg-warning {
    background-color: var(--app-warning) !important;
    color: #1f2937 !important;
}

.toast.text-bg-info {
    background-color: var(--app-info) !important;
}

.app-toast-container {
    z-index: 1085;
}

.user-table-wrap {
    overflow-x: auto;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--app-text);
}

.user-manage-actions {
    min-width: 140px;
}

@media (max-width: 767.98px) {
    .brand-logo-wrap,
    .auth-logo-wrap,
    .dashboard-logo-wrap,
    .auth-logo,
    .app-brand img,
    .dashboard-logo {
        width: 220px !important;
        max-width: 220px !important;
    }
}

.user-list-avatar {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    flex-shrink: 0;
}


.signup-amount-box {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: rgba(var(--app-primary-rgb), 0.08);
    padding: 1rem 1.25rem;
}

.signup-amount-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--app-text);
    margin-bottom: 0.25rem;
}

.signup-amount-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2E3192;
}

.bkash-config-note {
    border: 1px dashed var(--app-border);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

.congrats-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--app-success-rgb), 0.12);
    color: var(--app-success);
    font-size: 2.25rem;
}

.tool-section-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dashboard-tools-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

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

.tool-item {
    width: 100%;
    min-height: 86px;
    border-radius: 1.1rem;
    padding: 1rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(var(--app-primary-rgb), 0.18);
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(var(--app-primary-rgb), 0.08));
    color: var(--app-text);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
    pointer-events: none;
}

.tool-item:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(var(--app-primary-rgb), 0.38);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255,255,255,0.95);
}

.tool-item:active {
    transform: translateY(-2px) scale(0.995);
}

.tool-item-label {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}


.profile-action-row .btn {
    min-width: 160px;
}

.btn-bkash {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #DF146E;
    --bs-btn-border-color: #DF146E;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #c41264;
    --bs-btn-hover-border-color: #c41264;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #ab1057;
    --bs-btn-active-border-color: #ab1057;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #DF146E;
    color: #ffffff;
    border-color: #DF146E;
}

.bkash-button-logo {
    width: 28px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
}

.app-transactions-shell {
    max-width: 100%;
}

.app-table thead th {
    background: var(--app-surface);
    white-space: nowrap;
}

.pagination .page-link {
    color: var(--app-text);
    border-color: var(--app-border);
    background: var(--app-surface);
}

.pagination .page-item.active .page-link {
    background: var(--app-primary);
    border-color: #2E3192;
    color: #fff;
}

.amount-positive {
    color: #166534 !important;
}

.amount-negative {
    color: var(--app-error) !important;
}

.txn-info-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
    border: 1px solid var(--app-border);
    color: var(--app-info);
    cursor: help;
    background: var(--app-surface);
    user-select: none;
}

.txn-info-icon:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--app-info-rgb), 0.16);
}


.btn-bkash {
    background: #DF146E;
    border-color: #DF146E;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-bkash:hover,
.btn-bkash:focus,
.btn-bkash:active {
    background: #c51261 !important;
    border-color: #c51261 !important;
    color: #fff !important;
}

.bkash-button-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.dashboard-transactions-preview {
    border-top: 1px solid var(--app-border);
    padding-top: 1rem;
}

.app-table-sm th,
.app-table-sm td {
    font-size: 0.92rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.credit-prompt-modal .modal-content {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: var(--app-surface);
    box-shadow: 0 1.2rem 2.5rem rgba(15, 23, 42, 0.16);
}

.credit-prompt-modal .modal-header,
.credit-prompt-modal .modal-footer {
    border-color: var(--app-border);
}

.credit-prompt-title {
    font-weight: 700;
}

.credit-prompt-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.credit-prompt-input {
    height: 52px;
    font-size: 1.05rem;
    text-align: center;
    border-radius: 0.85rem;
}

.credit-prompt-hint {
    text-align: center;
}


.btn-bkash {
    text-align: center;
}

.btn-bkash span {
    flex: 0 1 auto;
    text-align: center;
}

.dashboard-actions .btn-bkash,
.dashboard-credit-button {
    width: 100%;
    justify-content: center;
}

.profile-action-row .btn-bkash {
    justify-content: center;
}


.landing-page {
    display: grid;
    gap: 1.5rem;
}

.landing-hero,
.landing-section,
.landing-final-cta {
    padding: 2rem;
}

.landing-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--app-secondary);
}

.landing-title,
.section-title {
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.12;
    margin: 0;
}

.section-title {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
}

.landing-subtitle,
.section-text,
.landing-cta-text {
    color: var(--app-text-muted);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 58rem;
}

.landing-micro-meta {
    display: grid;
    gap: 0.5rem;
    color: var(--app-text);
    font-size: 0.96rem;
}

.landing-hero-visual img,
.landing-benefit-card img,
.landing-section img {
    width: 100%;
    object-fit: cover;
}

.landing-feature-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.landing-feature-card {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: rgba(255,255,255,0.55);
    padding: 1rem;
    box-shadow: 0 0.75rem 1.5rem rgba(17, 24, 39, 0.04);
}

.landing-feature-card i {
    font-size: 1.4rem;
    color: var(--app-accent);
}

.landing-feature-card h3,
.landing-benefit-card h3 {
    font-size: 1.1rem;
    margin-top: 0.75rem;
    margin-bottom: 0.45rem;
}

.landing-feature-card p,
.landing-benefit-card p {
    margin-bottom: 0;
    color: var(--app-text-muted);
}

.landing-check-list {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.25rem;
}

.landing-check-list div {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--app-text);
}

.landing-check-list i {
    color: var(--app-success);
    font-size: 1.1rem;
    line-height: 1.5;
}

.landing-final-cta {
    padding: 2.5rem 2rem;
}

@media (max-width: 991.98px) {
    .landing-hero,
    .landing-section,
    .landing-final-cta {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .landing-feature-grid {
        grid-template-columns: 1fr;
    }

    .landing-title,
    .section-title {
        font-size: 1.6rem;
    }
}


.create-account-page .landing-hero,
.create-account-page .landing-section > .card-soft,
.create-account-page .landing-copy-card,
.create-account-page .landing-signup-card {
    padding: 2rem;
}

.create-account-page .landing-hero {
    background:
        radial-gradient(circle at top right, rgba(130, 92, 245, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(223, 20, 110, 0.10), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,247,255,0.96));
}

.landing-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.landing-hero-points span,
.landing-price-strip div {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: rgba(255,255,255,0.72);
    box-shadow: 0 0.75rem 1.5rem rgba(17, 24, 39, 0.05);
}

.landing-hero-points i {
    color: var(--app-success);
}

.landing-price-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.landing-hero-main-img {
    min-height: 320px;
    object-fit: cover;
}

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

.landing-signup-card {
    position: relative;
}

.landing-signup-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(130, 92, 245, 0.35), rgba(223, 20, 110, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.landing-form-title {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.signup-amount-meta {
    color: var(--app-text-muted);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

@media (max-width: 991.98px) {
    .landing-feature-grid-3 {
        grid-template-columns: 1fr;
    }

    .create-account-page .landing-hero,
    .create-account-page .landing-section > .card-soft,
    .create-account-page .landing-copy-card,
    .create-account-page .landing-signup-card {
        padding: 1.5rem;
    }
}


.landing-body {
    background:
        radial-gradient(circle at top left, rgba(130, 92, 245, 0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(223, 20, 110, 0.08), transparent 24%),
        linear-gradient(180deg, #f7f8ff 0%, #ffffff 42%, #f9f7ff 100%);
}

.landing-conversion-page {
    flex: 1 0 auto;
}

.sales-hero,
.sales-story-section,
.sales-showcase-section,
.sales-final-cta-section {
    position: relative;
}

.sales-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sales-brand-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(130, 92, 245, 0.14);
    box-shadow: 0 1rem 2.2rem rgba(33, 39, 73, 0.08);
}

.sales-brand-pill img {
    width: 250px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.sales-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: var(--app-dark);
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(130, 92, 245, 0.18);
    box-shadow: 0 1rem 2rem rgba(17, 24, 39, 0.05);
    font-weight: 700;
}

.sales-eyebrow i {
    color: var(--app-accent);
}

.sales-title {
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    max-width: 13ch;
    margin: 0;
}

.sales-subtitle {
    max-width: 60rem;
    color: var(--app-text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.sales-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sales-proof-card {
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(130, 92, 245, 0.12);
    background: rgba(255,255,255,0.84);
    box-shadow: 0 1rem 2.2rem rgba(17, 24, 39, 0.05);
}

.sales-proof-card strong,
.sales-module-card h3 {
    display: block;
    font-size: 1.02rem;
    margin-bottom: 0.45rem;
}

.sales-proof-card span,
.sales-module-card p,
.sales-benefit-list span {
    color: var(--app-text-muted);
}

.sales-scroll-note span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--app-secondary);
    font-weight: 600;
}

.sales-hero-visual {
    overflow: hidden;
    padding: 1rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,255,0.95));
    box-shadow: 0 1.5rem 3.5rem rgba(31, 38, 69, 0.12);
}

.sales-banner-img {
    min-height: 360px;
    object-fit: cover;
    width: 100%;
}

.sales-visual-overlay {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.9rem;
}

.sales-mini-stat {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(130, 92, 245, 0.06);
    border: 1px solid rgba(130, 92, 245, 0.10);
}

.sales-mini-stat .label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--app-text-muted);
    margin-bottom: 0.35rem;
}

.sales-copy-block,
.sales-signup-block,
.sales-final-cta,
.sales-module-card {
    padding: 2rem;
}

.sales-copy-block,
.sales-signup-block,
.sales-final-cta {
    box-shadow: 0 1.5rem 3rem rgba(31, 38, 69, 0.08);
}

.sales-benefit-list {
    display: grid;
    gap: 1rem;
}

.sales-benefit-list div {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.sales-benefit-list i {
    color: var(--app-success);
    font-size: 1.1rem;
    line-height: 1.5;
}

.sales-tool-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sales-tool-cluster span {
    display: inline-flex;
    align-items: center;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    background: rgba(130, 92, 245, 0.08);
    border: 1px solid rgba(130, 92, 245, 0.11);
    font-weight: 600;
}

.sales-signup-block {
    position: sticky;
    top: 1.25rem;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(249,246,255,0.98));
}

.sales-form-heading {
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.sales-price-card {
    border: 1px solid rgba(130, 92, 245, 0.14);
    border-radius: 1.1rem;
    background: rgba(130, 92, 245, 0.05);
    padding: 1rem 1rem 0.9rem;
}

.sales-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
}

.sales-price-note {
    margin-top: 0.7rem;
    color: var(--app-text-muted);
    font-size: 0.92rem;
}

.sales-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sales-trust-row div {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--app-text-muted);
}

.sales-trust-row i {
    color: var(--app-accent);
}

.sales-section-head .section-text {
    max-width: 48rem;
}

.sales-module-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.sales-final-cta {
    background:
        radial-gradient(circle at top right, rgba(130, 92, 245, 0.14), transparent 26%),
        radial-gradient(circle at bottom left, rgba(223, 20, 110, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,244,255,0.95));
}

.landing-footer-simple {
    background: transparent;
    padding-bottom: 1.5rem;
}

@media (max-width: 1199.98px) {
    .sales-proof-grid {
        grid-template-columns: 1fr;
    }

    .sales-title {
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .sales-copy-block,
    .sales-signup-block,
    .sales-final-cta,
    .sales-module-card {
        padding: 1.5rem;
    }

    .sales-signup-block {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .sales-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .sales-brand-pill img {
        width: 210px;
        height: 42px;
    }

    .sales-title {
        font-size: 2rem;
    }

    .sales-visual-overlay {
        grid-template-columns: 1fr;
    }

    .sales-price-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


.app-form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: var(--app-surface);
}

.app-form-switch .form-check-input {
    cursor: pointer;
    float: none;
    margin: 0;
    flex-shrink: 0;
}

.app-form-switch .form-check-label {
    cursor: pointer;
    font-weight: 600;
    margin: 0;
}


.ticket-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.ticket-message-box{border:1px solid var(--app-border);border-radius:1rem;padding:1rem;background:var(--app-surface)}
.ticket-reply{border:1px solid var(--app-border);border-radius:1rem;padding:1rem;background:#fff}
.ticket-reply.admin{border-left:4px solid var(--app-primary)}
.ticket-reply.user{border-left:4px solid var(--app-accent)}
.ticket-attachments a{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .6rem;border:1px solid var(--app-border);border-radius:999px;text-decoration:none;color:var(--app-text);margin:.15rem .35rem .15rem 0;background:#fff}
.ticket-status-badge{padding:.35rem .6rem;border-radius:999px;font-size:.75rem;font-weight:600;border:1px solid var(--app-border);display:inline-block}
.ticket-status-Open{background:#eff6ff;color:#1d4ed8}.ticket-status-Answered{background:#ecfeff;color:#0f766e}.ticket-status-Customer-Reply{background:#fff7ed;color:#c2410c}.ticket-status-Closed{background:#f3f4f6;color:#374151}
.ticket-priority-Low{color:#0f766e}.ticket-priority-Medium{color:#c2410c}.ticket-priority-Heigh{color:#b91c1c}


.user-menu-dropdown .dropdown-toggle::after {
    display: none;
}

.user-avatar-toggle {
    padding: 0.15rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-menu-panel {
    min-width: 340px;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    padding: 0.5rem;
    background: var(--app-surface);
}

.user-menu-meta {
    padding: 0.5rem 0.625rem;
}

.user-menu-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--app-text);
}

.user-menu-email {
    font-size: 0.9rem;
    color: var(--app-text-muted);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.user-menu-divider {
    margin: 0.45rem 0 0.6rem;
}

.user-menu-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.user-menu-line .label {
    color: var(--app-text-muted);
    font-weight: 700;
}

.user-menu-line .value {
    color: var(--app-text);
    font-weight: 400;
    text-align: right;
}

.user-menu-panel .dropdown-item {
    border-radius: 0.75rem;
    padding: 0.65rem 0.8rem;
}

.user-menu-panel .dropdown-item.active,
.user-menu-panel .dropdown-item:active {
    background: rgba(var(--app-primary-rgb), 0.12);
    color: var(--app-text);
}


.ai-chat-shell{max-width:100%;margin:0 auto}.ai-chat-card{border-radius:1.25rem}.ai-chat-messages{min-height:420px;max-height:65vh;overflow-y:auto;padding:1rem;border:1px solid var(--app-border);border-radius:1rem;background:linear-gradient(180deg,rgba(130,92,245,.04),rgba(247,198,0,.04))}.ai-message-row{display:flex;margin-bottom:1rem}.ai-message-row.user{justify-content:flex-end}.ai-message-row.assistant{justify-content:flex-start}.ai-message-bubble{max-width:min(100%,780px);border-radius:1.15rem;padding:1rem 1rem .85rem;box-shadow:0 .5rem 1.2rem rgba(15,23,42,.06)}.ai-message-bubble.user{background:var(--app-dark);color:#fff;border-bottom-right-radius:.45rem}.ai-message-bubble.assistant{background:#fff;border:1px solid var(--app-border);border-bottom-left-radius:.45rem}.ai-message-meta{text-transform:uppercase;font-size:.72rem;letter-spacing:.04em;font-weight:700;margin-bottom:.45rem;opacity:.85}.ai-message-content{line-height:1.7}.ai-message-content p:last-child{margin-bottom:0}.ai-message-content pre{background:#0f172a;color:#fff;padding:.9rem;border-radius:.85rem;overflow:auto}.ai-message-content code{background:rgba(15,23,42,.08);padding:.1rem .35rem;border-radius:.3rem}.ai-message-content pre code{background:transparent;padding:0}.ai-message-actions{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.ai-message-actions .btn-link{text-decoration:none}.ai-input-wrap{border:1px solid var(--app-border);border-radius:1rem;padding:.85rem;background:var(--app-surface)}.ai-chat-textarea{border:none!important;box-shadow:none!important;resize:none;min-height:120px;background:transparent!important}.ai-input-actions{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap;padding-top:.75rem;border-top:1px solid var(--app-border)}.ai-template-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.ai-template-btn{width:100%;white-space:normal;text-align:center;justify-content:center;min-height:44px}.ai-selected-files{display:flex;gap:.5rem;flex-wrap:wrap}.ai-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:320px;color:var(--app-text)}.ai-empty-icon{width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(130,92,245,.1);font-size:1.9rem;margin-bottom:1rem;color:var(--app-dark)}.ai-empty-image-wrap{overflow:hidden;padding:0;background:rgba(130,92,245,.08)}.ai-empty-image-wrap img{width:100%;height:100%;object-fit:contain;padding:14px}.ai-settings-shell{max-width:100%}@media (max-width:991.98px){.ai-template-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:767.98px){.ai-chat-messages{min-height:340px;padding:.8rem}.ai-message-bubble{max-width:100%}.ai-input-actions{justify-content:stretch}.ai-input-actions .btn{flex:1 1 auto}.ai-template-strip{grid-template-columns:1fr}}
.ai-modal-open{overflow:hidden}.ai-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;padding:1rem;z-index:1080}.ai-modal-backdrop.show{display:flex}.ai-modal-card{width:min(100%,480px);background:#fff;border-radius:1.25rem;padding:1.6rem 1.4rem;box-shadow:0 1.5rem 3rem rgba(15,23,42,.18);text-align:center;border:1px solid var(--app-border)}.ai-modal-icon{width:72px;height:72px;border-radius:50%;margin:0 auto 1rem;background:linear-gradient(135deg,rgba(130,92,245,.15),rgba(247,198,0,.22));display:flex;align-items:center;justify-content:center;color:var(--app-dark);font-size:1.7rem}.ai-modal-actions{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;margin-top:1.25rem}@media (max-width:767.98px){.ai-modal-card{padding:1.25rem}.ai-modal-actions .btn{width:100%}}


.app-form-shell.app-transactions-shell,
.app-form-shell.ai-settings-shell {
    max-width: 100%;
}

.app-form-shell.app-transactions-shell .form-card-unified,
.app-form-shell.ai-settings-shell .form-card-unified {
    max-width: 100%;
}


.app-file-chip-list {
    margin-top: .65rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.app-file-chip {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .62rem .9rem;
    border: 1px solid #d3dbe6;
    border-radius: .6rem;
    background: #f3f6fb;
    color: #1f2a44;
}
.app-file-chip-name {
    font-size: .925rem;
    font-weight: 500;
    word-break: break-word;
}
.app-file-chip-remove {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: #dc3545;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
.app-file-chip-remove img {
    height: 1em;
    width: auto;
    display: block;
}
.app-file-chip-remove:hover {
    opacity: .8;
}

/* AI TOOLBOX 07_08 - requested topbar solid color and menu text color */
.navbar.app-navbar,
.topbar {
    background: #C7EAFB !important;
}

.navbar.app-navbar .navbar-nav .nav-link,
.navbar.app-navbar .navbar-nav .nav-link:visited,
.topbar .nav-link,
.topbar .nav-link:visited {
    color: #2E3192 !important;
    font-weight: 700;
    text-shadow: none;
}

.navbar.app-navbar .navbar-nav .nav-link:hover,
.navbar.app-navbar .navbar-nav .nav-link:focus,
.navbar.app-navbar .navbar-nav .nav-link.active,
.topbar .nav-link:hover,
.topbar .nav-link:focus,
.topbar .nav-link.active {
    color: #1f2378 !important;
    background: rgba(46, 49, 146, 0.10);
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .navbar.app-navbar .navbar-collapse {
        padding-top: 0.75rem;
    }

    .navbar.app-navbar .navbar-nav .nav-link {
        color: #2E3192 !important;
        font-weight: 700;
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
        text-shadow: none;
    }

    .navbar.app-navbar .navbar-nav .nav-link:hover,
    .navbar.app-navbar .navbar-nav .nav-link:focus,
    .navbar.app-navbar .navbar-nav .nav-link.active {
        color: #1f2378 !important;
        background: rgba(46, 49, 146, 0.12);
    }
}


/* AI TOOLBOX 07_10 - requested button color update */
.btn-primary,
.btn-primary:visited,
button.btn-primary,
input[type="submit"].btn-primary,
input[type="button"].btn-primary,
a.btn-primary {
    background: #C7EAFB !important;
    border-color: #C7EAFB !important;
    color: #2E3192 !important;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.show {
    background: #b3e1f7 !important;
    border-color: #b3e1f7 !important;
    color: #2E3192 !important;
}

.btn-outline-primary {
    border-color: #C7EAFB !important;
    color: #2E3192 !important;
    font-weight: 700;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: #C7EAFB !important;
    border-color: #C7EAFB !important;
    color: #2E3192 !important;
}
