:root {
    --brand-primary: #2f6bff;
    --brand-primary-deep: #1b3faf;
    --brand-cta: #ff7a18;
    --brand-cta-deep: #ff3d2e;
    --brand-ink: #132345;
    --brand-accent: #4d74ff;
    --brand-soft: #edf3ff;
    --brand-surface: #ffffff;
    --brand-muted: #6c7896;
    --brand-border: rgba(27, 63, 175, 0.1);
    --brand-shadow: 0 18px 42px rgba(24, 52, 126, 0.10);
    --brand-radius-lg: 1rem;
    --brand-radius-xl: 1.25rem;
}

body {
    background:
        radial-gradient(circle at top left, rgba(47, 107, 255, 0.16), transparent 33%),
        radial-gradient(circle at right 20%, rgba(255, 122, 24, 0.10), transparent 28%),
        linear-gradient(180deg, #f6f9ff 0%, #eef3ff 100%);
    color: var(--brand-ink);
    font-family: "Inter", "Roboto", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn,
.metric-value {
    font-family: "Poppins", "Montserrat", "Inter", sans-serif;
}

[dir="rtl"] body {
    text-align: right;
}

.navbar-glass,
.surface-card,
.metric-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--brand-shadow);
}

.navbar-glass {
    border-bottom: 1px solid var(--brand-border);
}

.hero-panel,
.surface-card,
.metric-card,
.booking-shell {
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius-xl);
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(47, 107, 255, 0.96), rgba(27, 63, 175, 0.92)),
        linear-gradient(225deg, rgba(255, 122, 24, 0.18), transparent 55%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.18);
}

.surface-card,
.booking-shell {
    background: var(--brand-surface);
}

.brand-text-logo {
    display: block;
    height: 34px;
    width: auto;
}

.brand-full-logo {
    display: block;
    max-width: min(320px, 100%);
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 26px rgba(9, 26, 74, 0.18));
}

.auth-brand-logo {
    width: min(220px, 100%);
    height: auto;
}

.auth-card {
    max-width: 540px;
    margin-inline: auto;
}

.hero-metrics-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
}

.business-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.business-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 107, 255, 0.18);
    box-shadow: 0 22px 44px rgba(24, 52, 126, 0.14);
}

.metric-card {
    border-radius: var(--brand-radius-lg);
    padding: 1.25rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-soft {
    background: rgba(47, 107, 255, 0.12);
    color: var(--brand-primary);
}

.table-clean thead th {
    border-bottom: 0;
    color: var(--brand-muted);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table-clean tbody tr {
    vertical-align: middle;
}

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

.booking-shell {
    padding: 1.5rem;
}

.slot-pill {
    border: 1px solid rgba(47, 107, 255, 0.18);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: rgba(47, 107, 255, 0.08);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.booking-summary li + li {
    margin-top: 0.8rem;
}

.booking-selection-card,
.branding-preview,
.service-inline-editor {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(47, 107, 255, 0.05);
    border: 1px solid rgba(27, 63, 175, 0.08);
}

.branding-preview {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branding-preview__logo {
    max-width: 240px;
    max-height: 90px;
    width: auto;
    height: auto;
}

.branding-preview__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.public-booking-logo {
    max-width: 220px;
    max-height: 72px;
    width: auto;
    height: auto;
}

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

.booking-service-card {
    display: block;
    cursor: pointer;
}

.booking-service-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.booking-service-card__body {
    display: block;
    height: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(27, 63, 175, 0.12);
    box-shadow: 0 14px 28px rgba(24, 52, 126, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.booking-service-card:hover .booking-service-card__body,
.booking-service-card.is-selected .booking-service-card__body {
    transform: translateY(-2px);
    border-color: rgba(47, 107, 255, 0.32);
    box-shadow: 0 18px 34px rgba(24, 52, 126, 0.14);
}

.sidebar-links .nav-link {
    border-radius: 999px;
    color: var(--brand-ink);
}

.sidebar-links .nav-link.active,
.sidebar-links .nav-link:hover {
    background: rgba(47, 107, 255, 0.1);
    color: var(--brand-primary);
}

.portal-nav {
    position: sticky;
    top: 96px;
}

.portal-nav .nav-link {
    border-radius: 0.9rem;
    color: var(--brand-ink);
    padding: 0.7rem 0.9rem;
}

.portal-nav .nav-link.active,
.portal-nav .nav-link:hover {
    background: rgba(47, 107, 255, 0.1);
    color: var(--brand-primary);
}

.timeline-thread {
    display: grid;
    gap: 1rem;
}

.ticket-message {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(22, 50, 79, 0.04);
    border: 1px solid rgba(22, 50, 79, 0.08);
}

.ticket-message--platform_admin {
    background: rgba(47, 107, 255, 0.08);
    border-color: rgba(47, 107, 255, 0.14);
}

.ticket-message--business_user {
    background: rgba(255, 122, 24, 0.12);
    border-color: rgba(255, 122, 24, 0.16);
}

.form-control,
.form-select {
    border-radius: 0.9rem;
    border-color: rgba(27, 63, 175, 0.16);
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(47, 107, 255, 0.38);
    box-shadow: 0 0 0 0.25rem rgba(47, 107, 255, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep));
    border-color: transparent;
    border-radius: 0.9rem;
    box-shadow: 0 14px 26px rgba(47, 107, 255, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #3e79ff, #234ac5);
    border-color: transparent;
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: rgba(47, 107, 255, 0.28);
    border-radius: 0.9rem;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(47, 107, 255, 0.08);
    color: var(--brand-primary-deep);
    border-color: rgba(47, 107, 255, 0.32);
}

.btn-cta,
.booking-shell .btn-primary,
.public-booking-cta {
    background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-deep));
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(255, 90, 34, 0.24);
}

.btn-cta:hover,
.btn-cta:focus,
.booking-shell .btn-primary:hover,
.booking-shell .btn-primary:focus,
.public-booking-cta:hover,
.public-booking-cta:focus {
    background: linear-gradient(135deg, #ff8b32, #ff4d3f);
    border-color: transparent;
}

.navbar-nav .nav-link {
    color: var(--brand-ink);
    font-weight: 600;
}

.page-section + .page-section {
    margin-top: 1.5rem;
}

.subnav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.subnav-tabs__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--brand-ink);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(27, 63, 175, 0.08);
}

.subnav-tabs__link.active,
.subnav-tabs__link:hover {
    background: rgba(47, 107, 255, 0.12);
    color: var(--brand-primary);
}

.hint-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: 0.35rem;
    color: var(--brand-primary);
    cursor: help;
}

.report-filter {
    border-radius: var(--brand-radius-xl);
}

.stack-list {
    display: grid;
    gap: 0.9rem;
}

.mini-summary-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(47, 107, 255, 0.05);
    border: 1px solid rgba(27, 63, 175, 0.08);
}

.empty-state {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(22, 50, 79, 0.04);
    border: 1px dashed rgba(22, 50, 79, 0.12);
    color: var(--brand-muted);
}

.gateway-card__intro {
    position: sticky;
    top: 120px;
}

.gateway-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.12);
    color: var(--brand-cta-deep);
    font-weight: 700;
}

.notification-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-cta), var(--brand-cta-deep));
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.1rem;
    text-align: center;
    box-shadow: 0 10px 24px rgba(255, 122, 24, 0.35);
}

.notification-dropdown {
    width: min(390px, calc(100vw - 2rem));
    border-radius: 1rem;
    overflow: hidden;
}

.notification-dropdown__body {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: rgba(47, 107, 255, 0.05);
}

.notification-item__title {
    font-weight: 700;
    color: var(--brand-deep);
    margin-bottom: 0.25rem;
}

.notification-item__body {
    color: var(--brand-muted);
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
}

.notification-item__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.notification-item.is-read {
    opacity: 0.72;
}

.landing-hero {
    overflow: hidden;
}

.landing-hero-panel {
    background:
        radial-gradient(circle at top right, rgba(47, 107, 255, 0.18), transparent 55%),
        rgba(255, 255, 255, 0.96);
}

.landing-metric-chip {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.landing-metric-chip__value {
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.landing-metric-chip__label {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.landing-info-card {
    position: relative;
    overflow: hidden;
}

.landing-info-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
    background: rgba(47, 107, 255, 0.1);
}

.landing-step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(47, 107, 255, 0.05);
    border: 1px solid rgba(27, 63, 175, 0.08);
}

.landing-step-card__index {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
    color: #fff;
    font-weight: 700;
}

.landing-plan-card {
    display: block;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.landing-plan-card:hover,
.landing-plan-card.is-selected {
    transform: translateY(-2px);
    border-color: rgba(47, 107, 255, 0.36);
    box-shadow: 0 18px 34px rgba(27, 63, 175, 0.12);
}

.landing-plan-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.landing-plan-card__price {
    font-family: "Poppins", sans-serif;
    font-size: 1.05rem;
    color: var(--brand-deep);
}

.landing-plan-card__price strong {
    font-size: 2rem;
    line-height: 1;
}

.landing-plan-highlight {
    border-color: rgba(255, 122, 24, 0.25);
    background: rgba(255, 122, 24, 0.06);
}

.bridge-loading-state {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(47, 107, 255, 0.22);
    background: rgba(47, 107, 255, 0.05);
}

.bridge-loading-state__spinner {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    border: 3px solid rgba(47, 107, 255, 0.14);
    border-top-color: var(--brand-primary);
    animation: bridge-spin 0.9s linear infinite;
}

.bridge-loading-state__bars {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.bridge-loading-state__bars span {
    width: 100%;
    max-width: 4.5rem;
    height: 0.38rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 107, 255, 0.1), rgba(47, 107, 255, 0.45), rgba(47, 107, 255, 0.1));
    background-size: 180% 100%;
    animation: bridge-pulse 1.2s ease-in-out infinite;
}

.bridge-loading-state__bars span:nth-child(2) {
    animation-delay: 0.15s;
}

.bridge-loading-state__bars span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bridge-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bridge-pulse {
    0% {
        background-position: 100% 50%;
        opacity: 0.4;
    }

    50% {
        background-position: 0% 50%;
        opacity: 1;
    }

    100% {
        background-position: 100% 50%;
        opacity: 0.4;
    }
}

@media (max-width: 991.98px) {
    .hero-panel,
    .booking-shell {
        border-radius: 1rem;
    }

    .brand-text-logo {
        height: 30px;
    }

    .brand-full-logo {
        max-width: 240px;
    }

    .gateway-card__intro {
        position: static;
    }

    .booking-service-grid {
        grid-template-columns: 1fr;
    }
}

.location-map-frame {
    width: 100%;
    min-height: 240px;
    border: 0;
    border-radius: 1rem;
    background: #f3f6fb;
}
