:root {
    --rmts-bg: #f4f8f7;
    --rmts-surface: rgba(255, 255, 255, 0.86);
    --rmts-surface-solid: #ffffff;
    --rmts-ink: #14211f;
    --rmts-muted: #65746f;
    --rmts-brand: #0f8f72;
    --rmts-brand-strong: #08644f;
    --rmts-accent: #ffc21a;
    --rmts-info: #0b74de;
    --rmts-danger: #b42318;
    --rmts-radius: 22px;
    --rmts-radius-sm: 16px;
    --rmts-shadow: 0 18px 50px rgba(9, 38, 32, 0.12);
    --rmts-shadow-soft: 0 10px 30px rgba(9, 38, 32, 0.08);
    --rmts-border: rgba(15, 89, 74, 0.12);
    --rmts-bottom-nav-height: 76px;
    --rmts-alert-height: 34px;
    --rmts-font-body: "Manrope", "Noto Sans Gujarati", sans-serif;
    --rmts-font-display: "Space Grotesk", "Manrope", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(15, 143, 114, 0.14), transparent 34rem),
        radial-gradient(circle at 85% 10%, rgba(255, 194, 26, 0.12), transparent 26rem),
        linear-gradient(180deg, #f7fbfa 0%, var(--rmts-bg) 100%);
    color: var(--rmts-ink);
    font-family: var(--rmts-font-body);
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

body.has-service-alert {
    padding-top: var(--rmts-alert-height);
}

a {
    color: var(--rmts-brand-strong);
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--rmts-brand);
}

:focus-visible {
    outline: 3px solid rgba(255, 194, 26, 0.9);
    outline-offset: 3px;
}

/* Reverted to premium-redesign.css navbar styles */

.dropdown-menu {
    border: 1px solid var(--rmts-border);
    border-radius: 18px;
    box-shadow: var(--rmts-shadow-soft);
}

.main-content {
    padding-top: clamp(1rem, 2vw, 2rem);
}

@media (min-width: 992px) {
    .main-content {
        padding-top: 104px;
    }
}

.container,
.container-fluid {
    --bs-gutter-x: clamp(1rem, 3vw, 2rem);
}

.page-title,
h1, h2, h3,
.section-header h1,
.section-header h2 {
    color: var(--rmts-ink);
    font-family: var(--rmts-font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.page-title {
    font-size: clamp(2.2rem, 7vw, 4.9rem);
    line-height: 0.98;
}

.section-subtitle,
.lead,
.text-muted {
    color: var(--rmts-muted) !important;
}

.eyebrow {
    align-items: center;
    background: rgba(15, 143, 114, 0.1);
    border: 1px solid rgba(15, 143, 114, 0.16);
    border-radius: 999px;
    color: var(--rmts-brand-strong);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.38rem 0.75rem;
    text-transform: uppercase;
}

.glass-panel,
.card,
.route-card,
.feature-card,
.dashboard-card,
.stats-card,
.search-card,
.auth-card {
    background: var(--rmts-surface);
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    border-radius: var(--rmts-radius) !important;
    box-shadow: var(--rmts-shadow-soft);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card,
.route-card,
.feature-card,
.dashboard-card,
.stats-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (hover: hover) {
    .card:hover,
    .route-card:hover,
    .feature-card:hover,
    .dashboard-card:hover,
    .stats-card:hover {
        border-color: rgba(15, 143, 114, 0.22) !important;
        box-shadow: var(--rmts-shadow);
        transform: translateY(-4px);
    }
}

.card-body {
    padding: clamp(1.15rem, 2.2vw, 1.7rem);
}

.btn {
    border-radius: 999px;
    font-weight: 800;
    min-height: 46px;
    padding-inline: 1.2rem;
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--rmts-brand), var(--rmts-brand-strong)) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 28px rgba(15, 143, 114, 0.26);
}

.btn-warning {
    background: linear-gradient(135deg, #ffd45a, var(--rmts-accent)) !important;
    border-color: transparent !important;
    color: #1f271f !important;
}

.btn-outline-primary,
.btn-outline-success {
    border-color: rgba(15, 143, 114, 0.35) !important;
    color: var(--rmts-brand-strong) !important;
}

.form-control,
.form-select,
.input-group-text {
    border: 1px solid rgba(22, 52, 48, 0.16);
    border-radius: 18px !important;
    min-height: 52px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 143, 114, 0.7);
    box-shadow: 0 0 0 0.24rem rgba(15, 143, 114, 0.14);
}

.table {
    --bs-table-bg: transparent;
    border-color: rgba(22, 52, 48, 0.1);
}

.table thead th {
    background: rgba(15, 143, 114, 0.08);
    border-bottom: 0;
    color: #18332d;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.alert {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--rmts-shadow-soft);
}

.alert-info,
.empty-state {
    background: linear-gradient(135deg, rgba(11, 116, 222, 0.1), rgba(15, 143, 114, 0.12)) !important;
    border: 1px solid rgba(11, 116, 222, 0.16) !important;
    color: #063f73;
}

.empty-state,
.success-state {
    align-items: center;
    border-radius: var(--rmts-radius);
    display: flex;
    gap: 1rem;
    justify-content: center;
    min-height: 116px;
    padding: 1.3rem;
    text-align: center;
}

.success-state {
    background: linear-gradient(135deg, rgba(15, 143, 114, 0.12), rgba(255, 194, 26, 0.12));
    color: var(--rmts-brand-strong);
}

.global-loader {
    align-items: center;
    background: rgba(244, 248, 247, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 5000;
}

.loader-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: var(--rmts-shadow);
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.skeleton {
    animation: rmts-shimmer 1.25s linear infinite;
    background: linear-gradient(90deg, rgba(15, 143, 114, 0.08), rgba(255, 255, 255, 0.7), rgba(15, 143, 114, 0.08));
    background-size: 220% 100%;
    border-radius: 16px;
    min-height: 1rem;
}

@keyframes rmts-shimmer {
    to {
        background-position: -220% 0;
    }
}

.service-alert-bar {
    background: linear-gradient(90deg, #092b25, var(--rmts-brand-strong));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    color: #ffffff;
    height: var(--rmts-alert-height);
    inset: 0 0 auto 0;
    overflow: hidden;
    position: fixed;
    z-index: 2600;
}

.service-alert-track {
    align-items: center;
    display: flex;
    height: 100%;
    white-space: nowrap;
}

.service-alert-track span {
    animation: rmts-marquee 22s linear infinite;
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    min-width: 100%;
    padding-left: 100%;
    text-shadow: 0 0 14px rgba(255, 194, 26, 0.6);
}

@keyframes rmts-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.reference-ad-shell {
    margin-bottom: 1rem;
    max-width: 980px;
    text-align: center;
}

.reference-ad-shell > * {
    border-radius: 18px;
    max-width: 100%;
    overflow: hidden;
}

.somee-hosting-credit {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 143, 114, 0.12);
    border-radius: 999px;
    box-shadow: var(--rmts-shadow-soft);
    color: var(--rmts-brand-strong) !important;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    max-width: min(92vw, 340px);
    padding: 0.28rem 0.62rem;
}

.premium-sticky-cta {
    align-items: center;
    background: linear-gradient(135deg, var(--rmts-accent), #ffe190);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    bottom: 96px;
    box-shadow: 0 14px 36px rgba(120, 73, 0, 0.18);
    color: #231b06;
    display: inline-flex;
    font-weight: 900;
    gap: 0.45rem;
    padding: 0.72rem 1rem;
    position: fixed;
    right: 18px;
    text-decoration: none;
    z-index: 1200;
}

.premium-sticky-cta:hover {
    color: #231b06;
    transform: translateY(-2px);
}

.mobile-bottom-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 26px 26px 0 0;
    bottom: 0;
    box-shadow: 0 -16px 40px rgba(9, 38, 32, 0.16);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.2rem;
    left: 0;
    min-height: var(--rmts-bottom-nav-height);
    padding: 0.55rem 0.55rem calc(0.55rem + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 2300;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.mobile-bottom-nav .nav-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 18px;
    color: var(--rmts-muted);
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.12rem;
    justify-content: center;
    min-height: 58px;
    text-decoration: none;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
}

.mobile-bottom-nav .nav-item.active {
    background: rgba(15, 143, 114, 0.12);
    color: var(--rmts-brand-strong);
}

.mobile-more-canvas {
    border-radius: 28px 28px 0 0;
    min-height: 320px;
}

.auth-page {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding-block: clamp(1.2rem, 4vw, 3rem);
}

.auth-page .card,
.auth-shell,
.login-container,
.register-container {
    border-radius: 28px !important;
    box-shadow: var(--rmts-shadow);
}

.hero-section,
.hero,
.home-hero {
    border-radius: 0 0 42px 42px;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(var(--rmts-bottom-nav-height) + env(safe-area-inset-bottom));
    }

    .main-content {
        padding-top: 0.75rem;
    }

    .page-title {
        font-size: clamp(2rem, 12vw, 3.1rem);
        text-align: center;
    }

    .section-header {
        align-items: center !important;
        text-align: center;
    }

    .card-body {
        padding: 1.05rem;
    }

    .container.my-5 {
        margin-top: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    .premium-sticky-cta {
        bottom: calc(var(--rmts-bottom-nav-height) + 14px);
        left: 16px;
        right: 16px;
        justify-content: center;
    }

    .table-responsive {
        border-radius: 18px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --rmts-alert-height: 32px;
    }

    .service-alert-track span {
        font-size: 0.76rem;
    }

    .reference-ad-shell {
        padding-inline: 0.65rem;
    }

    .btn,
    .form-control,
    .form-select {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* RMTS premium visual refresh v2: final overrides for older page-level CSS. */
body {
    background:
        radial-gradient(circle at 4% 8%, rgba(8, 100, 79, 0.18), transparent 24rem),
        radial-gradient(circle at 90% 12%, rgba(255, 194, 26, 0.18), transparent 28rem),
        linear-gradient(180deg, #eef7f4 0%, #f8faf7 48%, #eef5f3 100%) !important;
    color: #14211f !important;
    font-family: var(--rmts-font-body) !important;
}

/* Reverted to premium-redesign.css navbar styles */

@media (min-width: 992px) {
    .main-content {
        padding-top: 128px !important;
    }
}

.welcome-banner {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
        radial-gradient(circle at 88% 30%, rgba(255, 194, 26, 0.24), transparent 20rem),
        linear-gradient(135deg, #064c42 0%, #0f8f72 52%, #2fb8aa 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    border-radius: 34px !important;
    box-shadow: 0 30px 90px rgba(10, 58, 49, 0.2) !important;
    margin: clamp(1rem, 2vw, 1.5rem) auto 2.5rem !important;
    max-width: min(1480px, calc(100% - 28px)) !important;
    min-height: 430px !important;
    overflow: hidden !important;
    padding: clamp(3rem, 8vw, 6.8rem) 1.25rem !important;
    position: relative !important;
}

.welcome-banner::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    inset: 0;
    opacity: 0.22;
    position: absolute;
}

.welcome-banner > .container {
    position: relative;
    z-index: 1;
}

.welcome-banner .eyebrow {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffe8a3 !important;
}

.welcome-banner h1,
.welcome-banner .page-title {
    color: #ffffff !important;
    font-size: clamp(2.8rem, 6.3vw, 5rem) !important;
    letter-spacing: -0.065em !important;
    line-height: 0.95 !important;
    margin-inline: auto !important;
    max-width: 1060px !important;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.22) !important;
}

.welcome-banner p,
.welcome-banner .section-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: clamp(1.05rem, 1.6vw, 1.38rem) !important;
    letter-spacing: -0.01em !important;
    margin-inline: auto !important;
    max-width: 760px !important;
}

.welcome-banner-actions .btn {
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(1, 38, 31, 0.22) !important;
    color: #07382f !important;
    min-width: 170px !important;
    padding: 0.9rem 1.25rem !important;
}

.welcome-banner-actions .btn-primary {
    background: linear-gradient(135deg, #ffe194, #ffc21a) !important;
}

.welcome-banner-actions .btn-outline-primary,
.welcome-banner-actions .btn-outline-dark {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 14px 34px rgba(1, 38, 31, 0.16) !important;
}

.section-header {
    margin-bottom: clamp(1.1rem, 2vw, 1.8rem) !important;
}

.page-title,
.section-header h2,
.section-header h1 {
    color: #14211f !important;
    font-size: clamp(2rem, 4.2vw, 4.1rem) !important;
}

.section-subtitle,
.lead,
p {
    color: #58706a !important;
}

.glass-panel,
.card,
.route-card,
.feature-card,
.dashboard-card,
.stats-card,
.search-card,
.table-responsive,
.empty-state {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 251, 248, 0.82)) !important;
    border: 1px solid rgba(12, 90, 73, 0.11) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 50px rgba(7, 48, 41, 0.1) !important;
}

.card-body,
.glass-panel {
    padding: clamp(1.15rem, 2.4vw, 2rem) !important;
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, #0f8f72, #065d4b) !important;
    color: #ffffff !important;
}

.btn-outline-primary,
.btn-outline-success {
    background: rgba(15, 143, 114, 0.08) !important;
    border-color: rgba(15, 143, 114, 0.2) !important;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(12, 90, 73, 0.16) !important;
    border-radius: 18px !important;
}

.service-alert-bar {
    height: var(--rmts-alert-height) !important;
    background: linear-gradient(90deg, #052f27, #08644f, #0f8f72) !important;
}

.service-alert-track span {
    color: #ffffff !important;
    font-weight: 900 !important;
}

@media (max-width: 1199.98px) {
    /* Reverted */
}

@media (max-width: 991.98px) {
    .welcome-banner {
        border-radius: 28px !important;
        margin-top: 0.9rem !important;
        min-height: auto !important;
        padding: 3rem 1rem !important;
    }

    .welcome-banner h1,
    .welcome-banner .page-title {
        font-size: clamp(2.25rem, 11vw, 3.4rem) !important;
    }

    .welcome-banner-actions .btn {
        min-width: 100% !important;
    }
}
255, 255, 0.22) !important;
    color: #ffe8a3 !important;
}

.welcome-banner h1,
.welcome-banner .page-title {
    color: #ffffff !important;
    font-size: clamp(2.8rem, 6.3vw, 5rem) !important;
    letter-spacing: -0.065em !important;
    line-height: 0.95 !important;
    margin-inline: auto !important;
    max-width: 1060px !important;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.22) !important;
}

.welcome-banner p,
.welcome-banner .section-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: clamp(1.05rem, 1.6vw, 1.38rem) !important;
    letter-spacing: -0.01em !important;
    margin-inline: auto !important;
    max-width: 760px !important;
}

.welcome-banner .btn {
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(1, 38, 31, 0.22) !important;
    color: #07382f !important;
    min-width: 170px !important;
    padding: 0.9rem 1.25rem !important;
}

.welcome-banner .btn-primary {
    background: linear-gradient(135deg, #ffe194, #ffc21a) !important;
}

.welcome-banner .btn-outline-primary,
.welcome-banner .btn-outline-dark {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 14px 34px rgba(1, 38, 31, 0.16) !important;
}

.section-header {
    margin-bottom: clamp(1.1rem, 2vw, 1.8rem) !important;
}

.page-title,
.section-header h2,
.section-header h1 {
    color: #14211f !important;
    font-size: clamp(2rem, 4.2vw, 4.1rem) !important;
}

.section-subtitle,
.lead,
p {
    color: #58706a !important;
}

.glass-panel,
.card,
.route-card,
.feature-card,
.dashboard-card,
.stats-card,
.search-card,
.table-responsive,
.limit-banner,
.empty-state {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 251, 248, 0.82)) !important;
    border: 1px solid rgba(12, 90, 73, 0.11) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 50px rgba(7, 48, 41, 0.1) !important;
}

.card-body,
.glass-panel {
    padding: clamp(1.15rem, 2.4vw, 2rem) !important;
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, #0f8f72, #065d4b) !important;
    color: #ffffff !important;
}

.btn-outline-primary,
.btn-outline-success {
    background: rgba(15, 143, 114, 0.08) !important;
    border-color: rgba(15, 143, 114, 0.2) !important;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(12, 90, 73, 0.16) !important;
    border-radius: 18px !important;
}

.service-alert-bar {
    height: var(--rmts-alert-height) !important;
    background: linear-gradient(90deg, #052f27, #08644f, #0f8f72) !important;
}

.service-alert-track span {
    color: #ffffff !important;
    font-weight: 900 !important;
}

@media (max-width: 1199.98px) {
    .navbar.fixed-top {
        width: min(1120px, calc(100vw - 28px)) !important;
    }

    .navbar-nav .nav-link {
        padding-inline: 0.58rem !important;
    }

    .navbar-brand {
        min-width: auto !important;
    }
}

@media (max-width: 991.98px) {
    .welcome-banner {
        border-radius: 28px !important;
        margin-top: 0.9rem !important;
        min-height: auto !important;
        padding: 3rem 1rem !important;
    }

    .welcome-banner h1,
    .welcome-banner .page-title {
        font-size: clamp(2.25rem, 11vw, 3.4rem) !important;
    }

    .welcome-banner .btn {
        min-width: 100% !important;
    }
}
