:root {
    --b2e-primary: #0f3f6f;
    --b2e-primary-2: #1f6db2;
    --b2e-primary-3: #0b2d4f;
    --b2e-bg: #f3f6fb;
    --b2e-card: #ffffff;
    --b2e-text: #1e293b;
    --b2e-muted: #5f6b7a;
    --b2e-border: #dbe3ef;
    --b2e-focus: #1f6db2;
}

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    background: var(--b2e-bg);
    color: var(--b2e-text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--b2e-primary-2);
}

a:hover {
    color: var(--b2e-primary-3);
}

.b2e-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.b2e-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.b2e-main-wrapper {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.btn:focus-visible,
.btn:active:focus-visible,
.btn-link.nav-link:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.12rem #fff, 0 0 0 0.26rem rgba(31, 109, 178, 0.45);
}

.form-control,
.form-select {
    border-color: var(--b2e-border);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--b2e-focus);
}

.navbar-brand {
    font-weight: 700;
    color: var(--b2e-primary) !important;
}

.navbar-brand .brand-icon {
    color: var(--b2e-primary-2);
    font-size: 1.05rem;
}

.b2e-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(219, 227, 239, 0.9);
    box-shadow: 0 8px 20px rgba(16, 45, 80, 0.05);
}

.b2e-navbar .nav-link {
    color: var(--b2e-text);
    font-weight: 500;
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
}

.b2e-navbar .nav-link:hover,
.b2e-navbar .nav-link:focus-visible {
    background: #eef4fb;
    color: var(--b2e-primary-3);
}

.b2e-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #f7faff;
    border: 1px solid var(--b2e-border);
    border-radius: 999px;
    padding: 0.35rem 0.5rem;
}

.b2e-language-switch .btn {
    border-radius: 999px;
    min-width: 4.25rem;
}

.btn-b2e {
    background: linear-gradient(135deg, var(--b2e-primary), var(--b2e-primary-2));
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 63, 111, 0.22);
}

.btn-b2e:hover,
.btn-b2e:focus-visible {
    color: #fff;
    filter: brightness(0.97);
}

.b2e-hero {
    background: linear-gradient(145deg, var(--b2e-primary), var(--b2e-primary-2));
    color: #fff;
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: 0 20px 36px rgba(15, 63, 111, 0.24);
}

.b2e-hero h1 {
    font-weight: 700;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.3;
}

.b2e-hero .lead {
    max-width: 42rem;
}

.b2e-highlight-panel {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 1.25rem;
}

.b2e-highlight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}

.b2e-highlight-row strong {
    font-weight: 700;
}

.b2e-feature {
    background: var(--b2e-card);
    border: 1px solid var(--b2e-border);
    border-radius: 18px;
    padding: 1.65rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 24px rgba(16, 45, 80, 0.05);
}

.b2e-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(16, 45, 80, 0.09);
}

.b2e-feature .icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf4fd;
    color: var(--b2e-primary-2);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.b2e-auth-card,
.b2e-section-card,
.b2e-error-card {
    background: var(--b2e-card);
    border: 1px solid var(--b2e-border);
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(16, 45, 80, 0.08);
}

.b2e-auth-card {
    padding: 2rem;
    max-width: 500px;
    margin: 2.75rem auto;
}

.b2e-auth-card .nav-pills .nav-link {
    border-radius: 12px;
    font-weight: 600;
}

.b2e-auth-card .nav-pills .nav-link.active {
    background-color: var(--b2e-primary);
}

.b2e-section-card,
.b2e-error-card {
    padding: 1.5rem;
}

.b2e-otp-input {
    letter-spacing: 0.4rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    direction: ltr;
}

.b2e-booking-card {
    background: var(--b2e-card);
    border: 1px solid var(--b2e-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.b2e-booking-card:hover,
.b2e-booking-card:focus-visible {
    box-shadow: 0 12px 30px rgba(16, 45, 80, 0.1);
    transform: translateY(-2px);
    border-color: #b6c7df;
    color: inherit;
}

.b2e-status {
    display: inline-block;
    padding: 0.34rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.b2e-status.pending {
    background: #fef3c7;
    color: #7a5107;
}

.b2e-status.underrequest {
    background: #dbeafe;
    color: #173b8f;
}

.b2e-status.completed {
    background: #dcfce7;
    color: #166534;
}

.b2e-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.b2e-kv {
    color: var(--b2e-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.b2e-error-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f0;
    color: #b42318;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.b2e-footer {
    padding: 1rem 0;
    background: #fff;
    border-top: 1px solid var(--b2e-border);
    color: var(--b2e-muted);
}

[dir="rtl"] .b2e-navbar .nav-link,
[dir="rtl"] .b2e-auth-card,
[dir="rtl"] .b2e-section-card,
[dir="rtl"] .b2e-error-card {
    text-align: right;
}

@media (max-width: 991.98px) {
    .b2e-main-wrapper {
        margin-top: 1.25rem;
    }

    .b2e-language-switch {
        margin-bottom: 0.75rem;
    }

    .b2e-language-switch .small {
        display: none;
    }
}
