/* Custom CSS for all pages with theme support and rounded containers */
/* Professional visual system: neutral palette + single accent */
:root {
    --bc-accent: #176a72;
    --bc-btn: #176a72;
    --bc-btn-d: #12575e;
    --bc-btn-rgb: 23, 106, 114;
    --bc-bg: #f6f8fb;
    --bc-surface: #ffffff;
    --bc-border: #d9e1ea;
    --bc-text-soft: #6b7280;
    --bc-brand-bg: #d2a15b;
    --bc-brand-text: #1f1308;
}

body {
    background: var(--bc-bg);
    color: #111827;
}

.navbar {
    background: var(--bc-brand-bg);
    border-bottom: 1px solid rgba(31, 19, 8, 0.18);
}

.footer {
    background: var(--bc-brand-bg);
    border-top: 1px solid rgba(31, 19, 8, 0.18);
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-toggle,
.footer,
.footer .footer-text,
.footer h6 {
    color: var(--bc-brand-text) !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background-color: rgba(31, 19, 8, 0.08);
    color: var(--bc-brand-text) !important;
}

/* =========================
   Admin layout + sidebar
   ========================= */

.admin-main {
    min-height: 100vh;
    padding-top: 0;
}

.admin-main.has-messages {
    padding-top: 0;
}

.admin-main > .container-fluid,
.admin-main > .container-fluid > .row {
    min-height: 100vh;
}

.admin-main > .container-fluid > .row {
    --bs-gutter-x: 0;
}

.admin-main-content {
    padding-left: 1.75rem;
}

@media (max-width: 768px) {
    .admin-main-content {
        padding-left: 0;
    }
}

.admin-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    max-height: 100vh;
    overflow: auto;
    background: var(--body-bg, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 1rem;
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: relative;
        top: 0;
        min-height: auto;
        max-height: none;
        margin-bottom: 1.25rem;
        border-radius: 1.25rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
    }
}

[data-bs-theme="dark"] .admin-sidebar {
    background: rgba(17, 24, 39, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.25rem 1rem 0.25rem;
}

.admin-sidebar__logo {
    width: 44px;
    height: 44px;
    border-radius: 0.9rem;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

[data-bs-theme="dark"] .admin-sidebar__logo {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.admin-sidebar__title {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1rem;
    line-height: 1.1;
    color: var(--bs-body-color);
}

.admin-sidebar__subtitle {
    font-size: 0.85rem;
    color: rgba(var(--bs-body-color-rgb), 0.65);
    margin-top: 0.15rem;
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.9rem;
    color: rgba(var(--bs-body-color-rgb), 0.72);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-sidebar__link:hover {
    background: rgba(var(--bc-btn-rgb), 0.12);
    color: var(--bc-btn);
    transform: translateX(2px);
}

.admin-sidebar__icon {
    width: 36px;
    height: 36px;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bc-btn-rgb), 0.08);
    border: 1px solid rgba(var(--bc-btn-rgb), 0.16);
    flex: 0 0 36px;
}

.admin-sidebar__icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.25;
}

.admin-sidebar__link.is-active {
    background: var(--bc-accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(var(--bc-btn-rgb), 0.30);
}

.admin-sidebar__link.is-active .admin-sidebar__icon {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.admin-sidebar__link.is-active .admin-sidebar__icon svg {
    stroke: #fff;
}

.admin-sidebar__divider {
    height: 1px;
    width: 100%;
    background: rgba(var(--bs-body-color-rgb), 0.10);
    margin: 0.9rem 0 0.75rem 0;
}

.admin-sidebar__logout {
    border-radius: 0.95rem !important;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(220, 53, 69, 0.35) !important;
    color: rgba(220, 53, 69, 1) !important;
    background: rgba(220, 53, 69, 0.06) !important;
}

.admin-sidebar__logout:hover {
    background: rgba(220, 53, 69, 0.12) !important;
    border-color: rgba(220, 53, 69, 0.55) !important;
    transform: translateY(-1px);
}

/* =========================
   Customer portal sidebar
   ========================= */
.customer-portal-body {
    background: #f4f7fb;
}

.customer-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

.customer-sidebar {
    background: #ffffff;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.customer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.customer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 0.8rem;
    object-fit: cover;
}

.customer-brand-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.customer-brand-sub {
    margin: 0.05rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.customer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.customer-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    border-radius: 0.85rem;
    padding: 0.64rem 0.75rem;
    font-weight: 700;
    color: #334155;
    border: 1px solid transparent;
    transition: all 180ms ease;
}

.customer-nav-link svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
}

.customer-nav-link:hover {
    border-color: rgba(23, 106, 114, 0.24);
    background: rgba(23, 106, 114, 0.07);
    color: #144e55;
}

.customer-nav-link.is-active {
    background: #176a72;
    color: #ffffff;
    border-color: #176a72;
    box-shadow: 0 10px 22px rgba(23, 106, 114, 0.24);
}

.customer-sidebar-foot {
    margin-top: auto;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 0.9rem;
}

.customer-user-name {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
}

.customer-user-balance {
    margin: 0.2rem 0 0.8rem;
    color: #475569;
    font-size: 0.84rem;
}

.customer-logout-btn {
    border-radius: 0.7rem !important;
}

.customer-main-wrap {
    padding: 1.2rem 1.4rem 1.4rem;
}

.customer-main-content {
    min-height: calc(100vh - 2.6rem);
}

.customer-flash-wrap {
    margin-bottom: 0.7rem;
}

@media (max-width: 991px) {
    .customer-shell {
        grid-template-columns: 1fr;
    }

    .customer-sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .customer-main-wrap {
        padding: 1rem 0.8rem 1rem;
    }
}

@media (max-width: 767px) {
    .customer-shell {
        display: block;
    }

    .customer-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        height: auto;
        min-height: 0;
        max-height: none;
        z-index: 130;
        border: none;
        border-top: 1px solid rgba(15, 23, 42, 0.1);
        box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.14);
        padding: 0.45rem calc(0.45rem + env(safe-area-inset-left)) calc(0.45rem + env(safe-area-inset-bottom)) calc(0.45rem + env(safe-area-inset-right));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .customer-brand,
    .customer-sidebar-foot {
        display: none;
    }

    .customer-nav {
        flex-direction: row;
        gap: 0.35rem;
        margin-top: 0;
    }

    .customer-nav-link {
        flex: 1;
        justify-content: center;
        flex-direction: column;
        gap: 0.22rem;
        text-align: center;
        padding: 0.46rem 0.25rem;
        border-radius: 0.78rem;
        font-size: 0.68rem;
        min-height: 56px;
    }

    .customer-nav-link svg {
        width: 18px;
        height: 18px;
    }

    .customer-nav-link span {
        line-height: 1.05;
    }

    .customer-nav-link.is-active {
        box-shadow: none;
    }

    .customer-main-wrap {
        padding: 0.8rem 0.65rem calc(82px + env(safe-area-inset-bottom));
    }

    .customer-main-content {
        min-height: calc(100vh - 84px);
    }

    /* Mobile app-style stat cards (equal-width side by side) */
    .customer-dashboard .stats-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-right: 0;
        margin-left: 0;
    }

    .customer-dashboard .stats-row > [class*="col-"] {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        min-width: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* Global rounded containers */
.card {
    border-radius: 1.5rem !important;
    border: 1px solid var(--bc-border);
    background-color: var(--bc-surface);
    transition: all 0.3s ease;
}

.card:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Rounded form elements */
.form-control,
.form-select {
    border-radius: 1rem !important;
    border: 2px solid var(--border-color, #dee2e6);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bc-accent);
    box-shadow: 0 0 0 0.2rem rgba(31, 79, 138, 0.16);
    border-radius: 1rem !important;
}

/* Rounded buttons */
.btn {
    border-radius: 0.75rem !important;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    background-image: none !important;
}

/* Global button palette: muted, professional (non-black) */
.btn-primary {
    background-color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--bc-btn-d) !important;
    border-color: var(--bc-btn-d) !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
    color: #ffffff !important;
}

.btn-success {
    background-color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
    color: #ffffff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: var(--bc-btn-d) !important;
    border-color: var(--bc-btn-d) !important;
    color: #ffffff !important;
}

.btn-outline-success {
    color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background-color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
    color: #ffffff !important;
}

.btn-info {
    background-color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
    color: #ffffff !important;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background-color: var(--bc-btn-d) !important;
    border-color: var(--bc-btn-d) !important;
    color: #ffffff !important;
}

.btn-outline-info {
    color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
}

.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active {
    background-color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
    color: #ffffff !important;
}

/* Muted tabs/pills (avoid bright default blue) */
.nav-pills .nav-link {
    color: var(--bc-btn);
    background-color: #edf7f8;
    border: 1px solid #cfe1e3;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
    color: var(--bc-btn-d);
    background-color: #e4f2f4;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #ffffff !important;
    background-color: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
}

.btn-sm {
    border-radius: 0.5rem !important;
    padding: 0.375rem 1rem;
}

.btn-lg {
    border-radius: 1rem !important;
    padding: 0.75rem 2rem;
}

/* Rounded alerts */
.alert {
    border-radius: 1rem !important;
    border: none;
}

/* Rounded dropdowns */
.dropdown-menu {
    border-radius: 1rem !important;
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.15));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .dropdown-menu {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    border-radius: 0.5rem !important;
    margin: 0.25rem 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

/* Rounded modals */
.modal-content {
    border-radius: 1.5rem !important;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.125));
    border-radius: 1.5rem 1.5rem 0 0 !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.125));
    border-radius: 0 0 1.5rem 1.5rem !important;
}

/* Feature icons for cards */
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--bc-btn-rgb), 0.10);
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon i {
    width: 28px;
    height: 28px;
}

/* Brand styling */
.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--bc-btn);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon i {
    color: white !important;
    width: 20px;
    height: 20px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--bc-accent), #2395a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme toggle button */
#theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

#theme-toggle:hover {
    background-color: rgba(var(--bc-btn-rgb), 0.1) !important;
}

/* Navigation improvements */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(var(--bc-btn-rgb), 0.1);
}

/* Table improvements */
.table {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.table th {
    background-color: rgba(var(--bc-btn-rgb), 0.1);
    font-weight: 600;
    border-bottom: 2px solid var(--bc-btn);
}

/* Badge improvements */
.badge {
    border-radius: 0.5rem !important;
    font-weight: 500;
}

/* Progress bars */
.progress {
    border-radius: 1rem !important;
    height: 0.75rem;
}

.progress-bar {
    border-radius: 1rem !important;
}

/* Input groups */
.input-group .form-control:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .form-control:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group .btn {
    border-radius: 0 !important;
}

.input-group .btn:last-child {
    border-top-right-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

.input-group .btn:first-child {
    border-top-left-radius: 1rem !important;
    border-bottom-left-radius: 1rem !important;
}

/* List groups */
.list-group {
    border-radius: 1rem !important;
}

.list-group-item:first-child {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.list-group-item:last-child {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

/* Pagination */
.page-link {
    border-radius: 0.5rem !important;
    margin: 0 0.125rem;
    border: 1px solid var(--border-color, #dee2e6);
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 0.5rem !important;
}

/* Tooltips and popovers */
.tooltip .tooltip-inner {
    border-radius: 0.5rem !important;
}

.popover {
    border-radius: 1rem !important;
}

/* Dashboard specific styles */
.dashboard-card {
    border-radius: 1.5rem !important;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .dashboard-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.stat-card {
    background: linear-gradient(135deg, var(--bc-accent) 0%, #2395a0 100%);
    border-radius: 1.5rem !important;
    color: white !important;
    border: none;
}

.stat-card * {
    color: white !important;
}

.stat-card .stat-number {
    color: white !important;
}

.stat-card .stat-label {
    color: white !important;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Call logs table */
.call-logs-table {
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.call-logs-table th {
    background: rgba(var(--bc-btn-rgb), 0.1);
    font-weight: 600;
    border-bottom: 2px solid var(--bc-btn);
}

.call-logs-table tr:hover {
    background-color: rgba(var(--bc-btn-rgb), 0.05);
}

/* Login/Register forms */
.auth-card {
    border-radius: 2rem !important;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .auth-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.auth-card .card-header {
    border-radius: 2rem 2rem 0 0 !important;
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.125));
    background: rgba(var(--bc-btn-rgb), 0.06);
}

/* Modern split login page */
.login-page {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
}

.login-split-shell {
    width: 100%;
    min-height: min(86vh, 760px);
    background: #ffffff;
    border: 1px solid #d8e4ea;
    border-radius: 1.4rem;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.login-split-art {
    position: relative;
    background: #e9f8fa;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-art-svg-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.login-art-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.login-art-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(20, 106, 116, 0.22);
    color: #12464d;
    border-radius: 999px;
    padding: 0.36rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.login-art-badge svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.login-art-copy {
    max-width: 420px;
    background: rgba(8, 26, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    color: #f4fdff;
    position: relative;
    z-index: 2;
}

.login-art-copy h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.35rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.login-art-copy p {
    margin: 0;
    color: rgba(239, 252, 255, 0.9);
    font-size: 0.92rem;
}

.login-split-form {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2rem 1.5rem;
}

.login-form-wrap {
    width: min(100%, 380px);
}

.login-form-wrap h1 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: #111827;
}

.login-sub {
    margin-bottom: 1.25rem;
    color: #5b6b7a;
    font-size: 0.92rem;
}

.login-form .form-label {
    font-size: 0.84rem;
    color: #3f4d5a;
    margin-bottom: 0.38rem;
    font-weight: 700;
}

.login-form .form-control {
    border-radius: 999px !important;
    padding: 0.68rem 1rem;
    border: 1px solid #d4dde6;
    box-shadow: none;
    font-size: 0.95rem;
}

.login-form .form-control:focus {
    border-color: #176a72;
    box-shadow: 0 0 0 0.16rem rgba(23, 106, 114, 0.14);
}

.login-submit-btn {
    margin-top: 0.35rem;
    border-radius: 999px !important;
    background: var(--bc-btn) !important;
    border-color: var(--bc-btn) !important;
    font-size: 1rem;
    padding: 0.7rem 1rem !important;
    font-weight: 700;
}

.login-submit-btn:hover,
.login-submit-btn:focus {
    background: var(--bc-btn-d) !important;
    border-color: var(--bc-btn-d) !important;
}

.login-helper {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.84rem;
    text-align: center;
}

@media (max-width: 992px) {
    .login-split-shell {
        grid-template-columns: 1fr;
    }

    .login-split-art {
        min-height: 210px;
        padding: 1.1rem;
    }

    .login-art-copy h2 {
        font-size: 1.55rem;
    }
}

/* Top-up form */
.topup-form .card {
    border-radius: 1.5rem !important;
    border: 2px solid rgba(var(--bc-btn-rgb), 0.2);
}

.payment-method-card {
    border-radius: 1rem !important;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method-card:hover {
    border-color: var(--bc-border);
    transform: none;
}

.payment-method-card.active {
    border-color: var(--bc-accent);
    background: rgba(var(--bc-btn-rgb), 0.08);
}

/* Customer dashboard: minimalistic palette */
.customer-dashboard .dashboard-card {
    border: 1px solid var(--bc-border) !important;
    box-shadow: none !important;
    background: #ffffff;
}

.customer-dashboard .dashboard-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.customer-dashboard .stat-card,
.customer-dashboard .stat-card * {
    background: #f8fafc !important;
    color: #0f172a !important;
}

.customer-dashboard .feature-icon {
    background: #eef2f7;
    border: 1px solid var(--bc-border);
}

.customer-dashboard .feature-icon i {
    color: #475569 !important;
}

.customer-dashboard .table th {
    background: #f8fafc;
    border-bottom: 1px solid var(--bc-border);
}

.customer-dashboard .status-badge {
    border: 1px solid transparent;
    font-weight: 600;
}

.customer-dashboard .status-completed {
    background: #eef6f1 !important;
    border-color: #c7e7d4;
    color: #1f5133 !important;
}

.customer-dashboard .status-failed {
    background: #f8f0f0 !important;
    border-color: #ebcdcd;
    color: #6f2d2d !important;
}

.customer-dashboard .status-connected {
    background: #edf4fb !important;
    border-color: #c8dbef;
    color: #1f4f8a !important;
}

.customer-dashboard .status-pending {
    background: #f5f5f5 !important;
    border-color: #dfdfdf;
    color: #4b5563 !important;
}

.customer-dashboard .list-group-item {
    border-color: #eef1f5;
}

/* Payment pages: keep headers neutral and reduce accent noise */
.payment-method-card .card-header,
.card.border-primary .card-header,
.card.border-success .card-header {
    background: #f8fafc !important;
    color: #111827 !important;
    border-bottom: 1px solid var(--bc-border);
}

.payment-method-card .card-header small {
    color: var(--bc-text-soft);
}

.topup-form .text-warning,
.topup-form .text-info,
.topup-form .text-success,
.topup-form .text-dark {
    color: var(--bc-text-soft) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        border-radius: 1rem !important;
    }
    
    .auth-card {
        border-radius: 1.5rem !important;
    }
    
    .dashboard-card {
        border-radius: 1rem !important;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        width: 24px;
        height: 24px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .form-control,
    .form-select {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    #theme-toggle {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    main {
        padding-top: 0 !important;
    }
}

/* Subtle placeholder styling for phone input */
input[type="tel"]::placeholder {
    color: #9ca3af !important;
    opacity: 0.6 !important;
    font-weight: 300 !important;
    font-style: italic;
}

input[type="tel"]:focus::placeholder {
    opacity: 0.4 !important;
}

[data-bs-theme="dark"] input[type="tel"]::placeholder {
    color: #6b7280 !important;
    opacity: 0.7 !important;
}

/* Playful emoji animations for PDF export */
.pdf-loading-emoji {
    display: inline-block;
    animation: bounce 0.6s ease-in-out infinite alternate;
    margin-right: 0.5rem;
    font-size: 1.2em;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.pdf-success-emoji {
    display: inline-block;
    animation: celebration 1s ease-in-out;
    margin-right: 0.5rem;
    font-size: 1.2em;
}

@keyframes bounce {
    0% {
        transform: translateY(0px) scale(1);
    }
    100% {
        transform: translateY(-5px) scale(1.1);
    }
}

@keyframes celebration {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.3) rotate(-5deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.5) rotate(5deg);
        opacity: 0.8;
    }
    75% {
        transform: scale(1.2) rotate(-3deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* PDF loading button special styling */
button:has(.pdf-loading-emoji) {
    background: var(--bc-accent) !important;
    border: none !important;
    color: white !important;
    position: relative;
    overflow: hidden;
}

button:has(.pdf-loading-emoji)::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}