:root {
    --ws-primary: #ff6c36;
    --ws-primary-dark: #e45520;
    --ws-primary-soft: #fff1ea;
    --ws-ink: #111827;
    --ws-muted: #6b7280;
    --ws-line: #e5e7eb;
    --ws-bg: #f4f5f7;
    --ws-card: #ffffff;
    --ws-success: #0f9d73;
    --ws-warning: #d97706;
    --ws-danger: #dc2626;
    --ws-info: #2563eb;
    --ws-radius: 16px;
    --ws-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    --ws-nav: 64px;
    --ws-bottom: 72px;
}

html {
    font-size: 16px !important;
}

body.ws-body {
    background: var(--ws-bg);
    color: var(--ws-ink);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
}

body.ws-body.ws-has-nav {
    padding-bottom: calc(var(--ws-bottom) + env(safe-area-inset-bottom));
}

.ws-main {
    flex: 1 0 auto;
    width: 100%;
}

.ws-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 14px 12px;
}

@media (min-width: 768px) {
    .ws-container {
        padding: 24px 20px 16px;
    }
}

/* Undo old stylesheet traps */
body.ws-body p,
body.ws-body .ws-main p,
body.ws-body .ws-card p,
body.ws-body .ws-empty p {
    color: var(--ws-muted) !important;
    font-size: 15px !important;
    line-height: 1.7;
}

body.ws-body .text-acent {
    color: #fff !important;
}

body.ws-body .text-primary,
body.ws-body a.text-primary {
    color: var(--ws-primary) !important;
}

body.ws-body section {
    padding: 0;
}

body.ws-body .w-500,
body.ws-body section .add-new-device,
body.ws-body .add-new-device {
    width: 100% !important;
    max-width: 720px;
    margin-inline: auto;
}

body.ws-body .font-xxs { font-size: 12px !important; }
body.ws-body .font-xs { font-size: 13px !important; }
body.ws-body .font-sm { font-size: 14px !important; }
body.ws-body .font-normal,
body.ws-body p { font-size: 15px !important; }
body.ws-body .font-regular { font-size: 16px !important; }
body.ws-body .font-lg { font-size: 18px !important; }
body.ws-body .font-xl { font-size: 20px !important; }
body.ws-body .font-xxl { font-size: 22px !important; }
body.ws-body .font-3xl { font-size: 24px !important; }

.ws-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #111;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ws-header .navbar {
    min-height: var(--ws-nav);
    padding: 8px 0;
}

.ws-header .navbar .container,
.ws-header .navbar .ws-nav-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ws-header .navbar-brand {
    margin: 0;
    padding: 0;
}

.ws-header .navbar-brand img {
    height: 42px;
    width: auto;
}

.ws-header .navbar-toggler {
    border: 1px solid rgba(255, 108, 54, 0.7);
    padding: 6px 10px;
}

.ws-header .nav-link {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500;
    padding: 10px 14px !important;
    margin: 0 !important;
    border-radius: 10px;
}

.ws-header .nav-link:hover,
.ws-header .nav-link.active {
    color: var(--ws-primary) !important;
    background: rgba(255, 108, 54, 0.12);
}

.ws-header .navbar-collapse {
    width: 100%;
}

@media (max-width: 991.98px) {
    .ws-header .navbar-collapse {
        background: #1a1a1a;
        border-radius: 14px;
        margin-top: 10px;
        padding: 8px;
    }

    .ws-header .navbar-nav {
        width: 100%;
    }

    .ws-header .nav-link {
        width: 100%;
    }
}

.ws-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ws-page-head h1,
.ws-page-head h2,
.ws-page-head h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--ws-ink);
}

.ws-page-head p {
    margin: 4px 0 0;
}

.ws-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 992px) {
    .ws-shell {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }
}

.ws-side {
    background: var(--ws-card);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    padding: 16px;
    box-shadow: var(--ws-shadow);
}

.ws-hello {
    margin-bottom: 14px;
}

.ws-hello strong {
    display: block;
    font-size: 1.05rem;
    color: var(--ws-ink);
}

.ws-hello span {
    color: var(--ws-muted);
    font-size: 13px;
}

.ws-side-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.ws-side-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    color: var(--ws-ink) !important;
    background: var(--ws-bg);
    border: 1px solid var(--ws-line);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
}

.ws-side-nav a.active,
.ws-side-nav a:hover {
    background: var(--ws-primary);
    border-color: var(--ws-primary);
    color: #fff !important;
}

@media (min-width: 992px) {
    .ws-side-nav {
        flex-direction: column;
        overflow: visible;
    }

    .ws-side-nav a {
        width: 100%;
        border-radius: 12px;
        white-space: normal;
    }

    .ws-has-nav .ws-side {
        display: block;
    }
}

@media (max-width: 991.98px) {
    body.ws-has-nav .ws-side-nav-wrap {
        display: none;
    }

    body.ws-has-nav .ws-hello {
        margin-bottom: 0;
    }
}

.ws-card,
body.ws-body .card,
body.ws-body .profile-card {
    display: block !important;
    background: var(--ws-card);
    border: 1px solid var(--ws-line) !important;
    border-radius: var(--ws-radius) !important;
    box-shadow: var(--ws-shadow);
}

body.ws-body .card:has(.ws-form) {
    padding-bottom: 16px !important;
}

.ws-auth-card {
    width: 100%;
    max-width: 460px;
    margin: 12px auto 0;
    padding: 22px 16px 18px;
}

@media (min-width: 768px) {
    .ws-auth-card {
        padding: 32px 28px;
        margin-top: 32px;
    }
}

.ws-auth-hero {
    text-align: center;
    margin-bottom: 22px;
}

.ws-auth-hero img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: var(--ws-primary-soft);
    border: 1px solid #ffd8c7;
    border-radius: 50%;
    padding: 12px;
}

.ws-auth-hero h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 14px 0 6px;
}

.ws-auth-hero p {
    margin: 0;
}

.ws-form {
    display: flex;
    flex-direction: column;
}

.ws-form .form-group,
.ws-form .ws-field {
    margin-bottom: 16px;
    position: relative;
}

.ws-form .form-group:last-of-type,
.ws-form .ws-field:last-of-type {
    margin-bottom: 12px;
}

.ws-form > .btn,
.ws-form > button {
    display: flex;
    margin: 0;
}

.ws-form label,
body.ws-body .form-group label {
    display: block;
    font-size: 14px !important;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ws-ink);
}

body.ws-body .form-control,
body.ws-body .form-select,
body.ws-body select.form-control,
body.ws-body textarea.form-control,
body.ws-body input.form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--ws-line);
    font-size: 16px !important;
    color: var(--ws-ink) !important;
    background: #fff;
    width: 100%;
}

body.ws-body textarea.form-control {
    height: auto;
    min-height: 110px;
    padding-top: 12px;
}

body.ws-body .form-control:focus,
body.ws-body .form-select:focus {
    border-color: var(--ws-primary);
    box-shadow: 0 0 0 3px rgba(255, 108, 54, 0.15) !important;
}

.ws-phone {
    display: flex;
    direction: ltr;
    align-items: stretch;
    border: 1px solid var(--ws-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-phone:focus-within {
    border-color: var(--ws-primary);
    box-shadow: 0 0 0 3px rgba(255, 108, 54, 0.15);
}

.ws-phone select,
.ws-phone input {
    height: 48px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ws-phone select,
body.ws-body .ws-phone #country_code,
body.ws-body section #country_code {
    position: static !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: 128px !important;
    flex: 0 0 128px;
    height: 48px !important;
    text-align: center;
    background-color: #f8fafc !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.2 1.5L6 6.3l4.8-4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 10px;
    border-right: 1px solid var(--ws-line) !important;
    border-left: 0 !important;
    color: var(--ws-ink) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 0 8px 0 28px !important;
    cursor: pointer;
    z-index: 1;
}

.ws-phone select:hover,
body.ws-body .ws-phone #country_code:hover {
    background-color: #f1f5f9 !important;
}

.ws-phone select:focus,
body.ws-body section #country_code:focus,
body.ws-body section #country_code:focus-visible {
    outline: none !important;
    border: 0 !important;
    border-right: 1px solid var(--ws-line) !important;
}

.ws-phone select option {
    color: var(--ws-ink) !important;
    font-weight: 600;
    padding: 8px;
}

.ws-phone input {
    flex: 1;
    min-width: 0;
    padding: 0 14px !important;
    text-align: left;
    direction: ltr;
}

body.ws-body section #mobile_code {
    padding-left: 14px !important;
}

.ws-btn,
body.ws-body .btn.bg-primary,
body.ws-body .btn-primary,
body.ws-body .btn-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 12px !important;
    font-weight: 700;
    font-size: 16px !important;
    width: 100%;
    border: 0;
}

body.ws-body .btn.bg-primary,
body.ws-body .btn-primary {
    background: var(--ws-primary) !important;
    color: #fff !important;
}

body.ws-body .btn-info {
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

body.ws-body .btn-outline {
    background: #fff;
    border: 1px solid var(--ws-line);
    color: var(--ws-ink);
}

.ws-btn-row .ws-badge {
    min-height: 48px;
    justify-content: center;
    width: 100%;
}

@media (min-width: 480px) {
    .ws-btn-row {
        grid-template-columns: 1fr 1fr;
    }
}

.ws-list {
    display: grid;
    gap: 12px;
}

.ws-device,
.ws-reservation {
    background: var(--ws-card);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    padding: 14px;
}

.ws-device-top,
.ws-reservation-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ws-device-copy {
    min-width: 0;
    flex: 1;
}

.ws-device-copy h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.ws-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: var(--ws-muted);
    font-size: 13px;
}

.ws-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.ws-thumb,
.ws-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid var(--ws-line);
}

.ws-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--ws-muted);
    font-size: 12px;
    text-decoration: none;
}

.ws-thumb span {
    padding: 6px;
    text-align: center;
}

.ws-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.ws-badge-success { background: #e8f8f2; color: var(--ws-success); }
.ws-badge-warning { background: #fff7e6; color: var(--ws-warning); }
.ws-badge-danger { background: #fdecec; color: var(--ws-danger); }
.ws-badge-info { background: #e8f0fe; color: var(--ws-info); }
.ws-badge-muted { background: #f3f4f6; color: var(--ws-muted); }

.ws-empty {
    text-align: center;
    background: var(--ws-card);
    border: 1px dashed var(--ws-line);
    border-radius: var(--ws-radius);
    padding: 36px 16px;
}

.ws-empty h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.ws-notes {
    background: var(--ws-bg);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--ws-ink) !important;
    margin: 0 0 12px;
}

.ws-terms {
    background: var(--ws-card);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    padding: 16px;
    margin-top: 16px;
    box-shadow: var(--ws-shadow);
}

.ws-terms h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.ws-terms ul {
    margin: 0;
    padding-right: 18px;
}

.ws-terms li {
    margin-bottom: 8px;
    color: var(--ws-muted);
    font-size: 14px;
}

.ws-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 576px) {
    .ws-times {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .ws-times {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.ws-time {
    position: relative;
}

.ws-time input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ws-time label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    border: 1px solid var(--ws-line);
    border-radius: 12px;
    background: #fff;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
}

.ws-time input:checked + label {
    background: var(--ws-primary);
    border-color: var(--ws-primary);
    color: #fff !important;
}

.ws-time.is-taken label,
.ws-time input:disabled + label {
    color: #9ca3af !important;
    text-decoration: line-through;
    background: #f3f4f6;
    cursor: not-allowed;
}

.ws-otp input {
    width: 100% !important;
    max-width: 220px;
    height: 56px !important;
    font-size: 28px !important;
    letter-spacing: 10px;
    text-align: center;
    border-radius: 14px !important;
}

.ws-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 18px 14px 16px;
}

.ws-footer img {
    height: 36px;
}

.ws-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 12px 0 8px;
    margin: 0;
}

.ws-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    font-size: 16px;
}

.ws-footer small,
.ws-footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.ws-bottom {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid var(--ws-line);
    display: none;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}

body.ws-has-nav .ws-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ws-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    color: var(--ws-muted) !important;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.ws-bottom i {
    font-size: 18px;
}

.ws-bottom a.active,
.ws-bottom a:hover {
    color: var(--ws-primary) !important;
    background: var(--ws-primary-soft);
}

@media (min-width: 992px) {
    body.ws-body.ws-has-nav {
        padding-bottom: 0;
    }

    body.ws-has-nav .ws-bottom {
        display: none;
    }
}

@media (max-width: 991.98px) {
    body.ws-has-nav .ws-footer {
        display: none;
    }
}

.ws-visa .modal-dialog {
    margin: 12px;
}

.ws-visa .visa-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 210px;
    padding: 16px;
}

.ws-visa .visa-card .font-3xl {
    font-size: 20px !important;
}

.ws-visa .visa-card .font-xl,
.ws-visa .visa-card .font-lg,
.ws-visa .visa-card .font-regular {
    font-size: 14px !important;
}

@media (max-width: 991.98px) {
    .ws-header .navbar-brand img {
        height: 36px;
    }

    body.ws-body .login {
        background-image: none !important;
        min-height: auto;
    }

    body.ws-body .login .card {
        background: #fff !important;
    }

    body.ws-body .profile-picture {
        display: flex !important;
    }

    .slider {
        display: none !important;
    }
}

.ws-link-row {
    text-align: center;
    margin-top: 8px;
}

.ws-link-row a {
    font-weight: 700;
}

body.ws-body .select2-container {
    width: 100% !important;
    height: 48px !important;
    display: block !important;
}

body.ws-body select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    background: transparent !important;
}

body.ws-body .select2-container .select2-selection--single,
body.ws-body .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid var(--ws-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center;
    padding: 0 14px 0 36px !important;
}

body.ws-body .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--ws-ink) !important;
    font-size: 16px !important;
    line-height: 46px !important;
    padding: 0 !important;
}

body.ws-body .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
}

body.ws-body .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    left: 10px;
    right: auto;
    width: 24px;
}

body.ws-body .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    margin-left: -5px;
    margin-top: -2px;
}

body.ws-body .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--ws-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 108, 54, 0.15);
}

body.ws-body .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #6b7280 transparent;
    border-width: 0 5px 6px 5px;
}

body.ws-body .select2-dropdown {
    border: 1px solid var(--ws-line) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--ws-shadow);
    z-index: 2000;
    margin-top: 4px;
}

body.ws-body .select2-search--dropdown {
    padding: 8px;
}

body.ws-body .select2-search--dropdown .select2-search__field {
    height: 42px !important;
    border: 1px solid var(--ws-line) !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    font-size: 15px !important;
    color: var(--ws-ink) !important;
    direction: rtl;
}

body.ws-body .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--ws-primary) !important;
    outline: none;
}

body.ws-body .select2-results__options {
    max-height: 240px;
}

body.ws-body .select2-container--default .select2-results__option {
    padding: 10px 14px;
    font-size: 15px;
    color: var(--ws-ink);
}

body.ws-body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--ws-primary) !important;
    color: #fff !important;
}

body.ws-body .select2-container--default .select2-results__option--selected {
    background: var(--ws-primary-soft);
    color: var(--ws-ink);
}

body.ws-body .select2-container--open {
    z-index: 2000;
}

.modal-content {
    border-radius: 16px;
}

@media (max-width: 520px) {
    body.ws-body .text-primary {
        color: var(--ws-primary) !important;
    }
}
