/**
 * Modern Mobile App Design System
 * Optimized for native app experience in WebView
 */

/* ============================================
   Mobile App Container
   ============================================ */
body:has(.app-container) {
    margin: 0;
    padding: 0;
    background-color: #efefef;
    /* Material Design background */
    background-image: none;
    overflow-x: hidden;
}

.news-fab.integrated {
    position: unset !important;
    padding: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--text-heading-color) !important;
}

.affiliated_club_info {
    padding: 4px;
    border-radius: 10px;
    display: flex;
    gap: 0 20px;
    flex-wrap: wrap;
    text-align: left;
}

.affiliated_club_distance {
    display: inline-block;
}

.affiliated_club_dist_value::before {
    content: "Distance";
    margin-right: 3px;
    font-size: 12px;
}

.affiliated_club_dist_value {
    background: rgb(231, 231, 231);
}

.affiliated_club_info p {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

body:has(.app-container) main {
    margin: 0 auto;
    padding: 0;
    max-width: 729px;
    width: 100%;
    background: #f6f7fb;
    min-height: 100vh;
    position: relative;
}

/* Hide traditional website elements */
body.mobile-app header,
body.mobile-app footer,
/* Hide generic float_bottom on mobile app (reservation confirm container is exception) */
body.mobile-app .float_bottom:not(.reservation_confirm_container) {
    display: none !important;
}

/* Ensure reservation confirm container is always visible */
body.mobile-app .float_bottom.reservation_confirm_container {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    z-index: 999;
}

body.mobile-app .organization_details {
    display: none !important;
}

/* ============================================
   Modern App Header (White Theme)
   ============================================ */
.app-header {
    padding: 0 20px 8px;
}

.app-header .page-title {
    color: rgb(100 137 221) !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.affiliated_club_direction_btn {
    background: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
}

.affiliated_club_direction_btn p {
    width: 32px;
    height: 32px;
    margin: 0;
}

.app-header::before {
    display: none;
}

.user-greeting-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.greeting-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Ensure greeting text elements are visible */
.greeting-text .user-name {
    display: block;
    visibility: visible;
    opacity: 1;
}

.app-header .user-name {
    font-size: 32px;
    font-weight: 500;
    margin: 0;
    line-height: 1.15;
    color: #1f1f1f !important;
    letter-spacing: -0.6px;
    display: block;
    background: var(--text-heading-color);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-role-badge {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #8d8d94;
}

.user-avatar-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f2ff);
    border: 1px solid rgba(151, 151, 199, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(93, 93, 167, 0.12);
}

.user-avatar-wrapper:active {
    transform: scale(0.95);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ============================================
   Carousel Section
   ============================================ */
.carousel-section {
    margin: 0;
    padding: 12px 24px 20px;
    background: transparent;
}

.carousel {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #e9e9e9 0%, #eeeeee 45%, #e2e2e2 100%);
    box-shadow: 0 24px 60px rgba(122, 112, 255, 0.35);
    min-height: 180px;
}

.carousel-track,
.carousel-slide {
    height: 100%;
}

.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.85;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    align-items: center;
    z-index: 5;
}

.order-summary-card__add-companion-btn span::before {
    width: 34px;
    height: 34px;
}

.carousel-indicator-dot {
    width: 8px;
    height: 8px;
    background: rgba(233, 233, 233, 0.568);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.carousel-indicator-dot.active {
    background: #ffffffc0;
    width: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-color: #fff;
}

/* ============================================
   Content Sections
   ============================================ */
.app-container>.hero_section {
    padding: 0 24px 24px;
    margin-top: 0;
}

.hero_wrapper {
    max-width: 100%;
}

/* Page content wrapper */
.app-container>div:not(.app-header):not(.navigration_drawer),
.special-access-title {
    padding: 0 16px 24px;
}

.special-access-title {
    background: -webkit-linear-gradient(76deg, #948c8c, #000000) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.app-container>h2 {
    padding: 20px 20px 0;
    margin: 0;
    font-weight: 600;
    font-size: 24px;
    color: #1a1a1a;
    /* Better contrast than #333 */
}

/* ============================================
   Order Container (Modern Card Design)
   ============================================ */
.ordered_items {
    margin: 16px 0;
}

.order_container {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(230, 232, 236, 0.9);
    box-shadow: 0 18px 38px rgba(22, 22, 40, 0.08);
    padding: 20px 20px 22px;
}

.order-summary-card__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.order-summary-card__status {
    color: #42ba42;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.order-summary-card__status.checked-in {
    color: #0b6aa4;
}

.order-summary-card__status.cancelled {
    background: #ffe4e4;
    color: #c44242;
}

.order-summary-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-summary-card__cancel {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #d65454;
    align-self: flex-start;
}

.order-summary-card__cancel:hover,
.order-summary-card__cancel:focus {
    text-decoration: underline;
    color: #c04343;
}

.order-summary-card__view {
    background: none;
    border: none;
    color: #4f4f57;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
}

.order-summary-card__view:hover,
.order-summary-card__view:focus {
    color: #29292f;
    text-decoration: underline;
}

.order-summary-card__companions {
    display: flex;
    flex-direction: column;
}

.order-summary-card__companions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.order-summary-card__companions-header button {
    background: none;
}

.order-summary-card__section-title {
    font-weight: 700;
    font-size: 15px;
    color: #2c273f;
}

.order-summary-card__section-hint {
    font-size: 12px;
    color: #aaa6be;
}

.order-summary-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.companion-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(151, 117, 255, 0.15);
    border-radius: 18px;
    border: none;
    color: #5135ad;
    font-size: 13px;
    cursor: pointer;
}

.companion-chip__label {
    font-weight: 500;
    color: #6a4fb9;
    font-size: var(--font-size-s);
}

.companion-chip__meta {
    font-size: 12px;
    color: #6a4fb9;
}

.companion-chip__remove {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(81, 53, 173, 0.18);
    position: relative;
}

.companion-chip__remove::before,
.companion-chip__remove::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 2px;
    background: #5135ad;
    transform-origin: center;
}

.companion-chip__remove::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.companion-chip__remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.order-summary-card__empty {
    margin: 0;
    font-size: 12px;
    color: #a7a4bb;
}

/* ============================================
   User Menu (Navigation)
   ============================================ */
.user_menu.home {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 24px 30px;
    padding: 0;
}

.user_menu.home>div {
    display: flex;
    justify-content: center;
}

.user_menu.home a,
.user_menu.home button {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    min-width: auto;
    cursor: pointer;
    color: var(--lite-text-color);
}

.user_menu.home a::before,
.user_menu.home button::before {
    content: '';
    background-image: url("/static/decorative_images/hierarchy-decorative.a10cb03637f3.webp");
    background-size: 65%;
    background-repeat: no-repeat;
    background-position: center;
    width: 36px;
    height: 36px;
    background-color: #efdeff;
    padding: 12px;
    border-radius: 50%;

}

.user_menu.home .orders_btn a::before,
.user_menu.home .orders_btn button::before {
    background-image: url("/static/decorative_images/orders-decorative.8eda5c6d3de5.webp");
    background-color: #fff0ba;
}

.user_menu.home .clubs a::before,
.user_menu.home .clubs button::before {
    background-image: url("/static/decorative_images/clubs.5cd65f7d8fbc.webp");
    background-color: transparent;
}

.user_menu.home .profile_btn a::before,
.user_menu.home .profile_btn button::before {
    background-image: url("/static/decorative_images/id-decorative.b9d67557625f.webp");
    background-color: #e1e6ff;
}

.user_menu.home .waiters_btn a::before,
.user_menu.home .waiters_btn button::before {
    background-image: url("/static/decorative_images/waiter-icon.dbed3509b667.webp");
    background-color: #e2e2e2;
}

.user_menu.home a:active,
.user_menu.home button:active {
    transform: translateY(0);
}

/* ============================================
   Modern Button Styles
   ============================================ */

.cancel_user_order {
    color: var(--danger-red);
    min-width: auto;
}

/* ============================================
   Navigation Drawer (Admin)
   ============================================ */
.navigration_drawer {
    margin: 20px;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.navigration_drawer .nav-item {
    color: #1a1a1a;
    /* Better contrast than #333 */
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    /* Increased from 13px */
    transition: all 0.2s ease;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.5;
}

.navigration_drawer .nav-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.navigration_drawer .nav-item:active {
    transform: translateY(0);
    background: #dee2e6;
}

.grid-committee-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grid-committee-options>div {
    flex: 120px 1;
    border: 2px solid;
    border-image: linear-gradient(271deg, #8c93eba8, #46467a52) 1;
}

/* ============================================
   Mobile Optimizations
   ============================================ */
@media (max-width: 768px) {

    .app-header .user-name {
        font-size: 24px;
    }

    .user-avatar-wrapper {
        width: 48px;
        height: 48px;
    }

    .carousel-section {
        padding: 10px 16px 18px;
    }

    .app-container>.hero_section {
        padding: 0 16px 16px;
    }

    .order_container {
        padding: 16px;
        border-radius: 18px;
    }

    .user_menu.home {
        margin: 33px 16px;
        gap: 14px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .button_cluster.list_item_buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .corporate-section-wrapper,
    .reservation_booked,
    .companion_section {
        margin: 0 0 18px;
        padding: 20px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .user_menu.home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user_menu.home>div:nth-child(3) {
        grid-column: span 2;
    }

    .button_cluster.list_item_buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .button_cluster.list_item_buttons button {
        padding: 10px 12px;
        border-radius: 22px;
    }

    .button_cluster.list_item_buttons button.graphic::before,
    .list_item_buttons button.graphic::before {
        width: 66px;
        height: 66px;
    }
}

/* ============================================
   Remove Bottom Margins/Padding
   ============================================ */
body.mobile-app .mobile_pad {
    margin-bottom: 0;
    padding-bottom: 0;
}

body.mobile-app .app-container {
    padding-bottom: 20px;
    box-sizing: border-box;
}

/* ============================================
   Modern Card Styles
   ============================================ */
.corporate-section-wrapper,
.reservation_booked,
.companion_section {
    background: #ffffff;
    border-radius: 26px;
    padding: 22px 24px;
    margin: 0 0 20px;
    box-shadow: 0 24px 60px rgba(120, 115, 210, 0.08);
    border: none;
}

/* ============================================
   Modern Button Styles
   ============================================ */

button:active,
.button:active {
    transform: scale(0.98);
}

/* ============================================
   Form Inputs
   ============================================ */

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    min-height: 30px;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ============================================
   Floating Action Elements
   ============================================ */
.float_bottom.reservation_confirm_container {
    padding-bottom: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.confirm_reservation_wrapper button {
    border-radius: 12px;
    transition: all 0.2s ease;
}

.confirm_reservation_wrapper button:active {
    transform: scale(0.98);
}

/* Hide system bars and traditional web elements */
body.mobile-app::before,
body.mobile-app::after {
    display: none;
}

/* ============================================
   Smooth Scrolling
   ============================================ */
body.mobile-app {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* ============================================
   Booking Buttons
   ============================================ */
.reservation_options {
    margin: 10px 0 0;
}

.active-orders-header-row {
    width: 210px;
    gap: 0;
}

.active-orders-header-row button {
    min-width: 60px;
    padding: 8px;
}

.button_cluster.list_item_buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.button_cluster.list_item_buttons button {
    color: rgb(87, 87, 87);
    display: flex;
    flex-direction: column;
}

/* Hover effect moved to ::after to avoid conflict with icon ::before */
.button_cluster.list_item_buttons button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.0), rgba(123, 118, 231, 0.08));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.button_cluster.list_item_buttons button:hover::after,
.button_cluster.list_item_buttons button:active::after {
    opacity: 1;
}

.button_cluster.list_item_buttons button:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 65px rgba(120, 115, 210, 0.22);
}

.button_cluster.list_item_buttons button:active {
    transform: translateY(0);
}

.affiliated_club_direction_btn {
    color: rgb(75, 75, 226) !important;
    font-size: 14px;
    font-weight: 600;
}

.button_cluster.list_item_buttons button.graphic::before {
    content: '';
    width: 74px;
    height: 74px;
    background-image: url("/static/decorative_images/tables-decorative.15f664bc021d.webp");
    display: block;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================
   Selected Items & Companions
   ============================================ */

.reservation_booked .fatty_sweet_text {
    font-size: 20px;
    font-weight: 700;
    color: #1f1f1f;
}

.reservation_booked #reservations_booked_status {
    color: #9a9aa2;
}

.companion_section .fatty_sweet_text {
    font-size: 20px;
    font-weight: 700;
    color: #1f1f1f;
}

.companion_section .nano,
.reservation_booked .nano {
    color: #9a9aa2;
}

.companion_section .instance_create_form {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: baseline;
}

.add_companion_btn:hover {
    transform: translateY(-3px);
}

.add_companion_btn:active {
    transform: translateY(0);
}

/* ============================================
   Touch Optimizations
   ============================================ */
@media (hover: none) and (pointer: coarse) {

    button,
    a,
    .user-avatar-wrapper,
    .add_companion_btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* ============================================
   List View Enhancements
   ============================================ */

.button_cluster.list_item_buttons button.graphic.bed-icon::before,
.button_cluster.list_item_buttons button.graphic.room-icon::before,
.button_cluster.list_item_buttons button.graphic.alcohol-icon::before,
.list_item_buttons button.graphic.bed-icon::before,
.list_item_buttons button.graphic.room-icon::before {
    background-image: url("/static/decorative_images/rooms-decorative.b519951f8aec.webp");
    content: '';
}

.button_cluster.list_item_buttons button.graphic.food-icon::before,
.list_item_buttons button.graphic.food-icon::before {
    background-image: url("/static/decorative_images/food-decorative.c3640ed05ffd.webp");
    content: '';
}

.button_cluster.list_item_buttons button.graphic.sports-icon::before,
.list_item_buttons button.graphic.sports-icon::before {
    background-image: url("/static/decorative_images/badminton-decorative.2a6fbe4329a9.webp");
    content: '';
}

.button_cluster.list_item_buttons button.graphic.pre-booking-icon::before,
.list_item_buttons button.graphic.pre-booking-icon::before {
    background-image: url("/static/decorative_images/pre-booking.4181b4528739.webp");
    content: '';
}

.button_cluster.list_item_buttons button.graphic.alcohol-icon::before,
.list_item_buttons button.graphic.alcohol-icon::before {
    background-image: url("/static/decorative_images/alcohol.9616789e3989.webp");
    content: '';
}

/* ============================================
   List View Pages (Tables, Rooms, Food)
   ============================================ */
.booking.item_view_container {
    background: #f8f9fa;
    /* Material Design background */
    min-height: 100vh;
    padding: 0;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Ensure modal wrapper allows scrolling for item view containers */
.modal .booking.item_view_container {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal .booking.item_view_container .item_type_title,
.modal .booking.item_view_container .list_items_filter {
    flex-shrink: 0;
}

.modal .booking.item_view_container .item_view_wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    min-height: 0;
    /* Important for flex scrolling */
}

/* Ensure modal itself doesn't prevent scrolling */
.modal:has(.booking.item_view_container) {
    overflow: hidden;
    height: 100vh;
}

.modal:has(.booking.item_view_container) .modal_wrapper {
    height: 100%;
    overflow: hidden;
}

.modal:has(.booking.item_view_container) .modal_body {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    padding: 0;
    top: 0;
    transform: none;
    left: 0;
    border-radius: 0;
}

.list_items_filter {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.list_items_filter #filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.list_items_filter #filters button:hover,
.list_items_filter #filters button.active {
    color: #fff;
    background-color: #363636;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.item_view_wrapper {
    padding: 16px 20px;
}

.items_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list_card_container {
    padding: 16px;
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: start;
}

.list_card_container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Fix wrapping for description and buttons */
.list_card_container .col-2 {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.list_card_container .col-3,
.list_card_container .col-4,
.list_card_container .col-5,
.list_card_container .col-6 {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.list_card_container .col-7 {
    grid-column: 1 / -1;
}

.item_image {
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item_name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.item_name .title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.item_name .description {
    font-size: 14px;
    /* Increased from 13px */
    color: #4a4a4a;
    /* Better contrast than #666 */
    line-height: 1.5;
    /* Improved from 1.4 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal;
}

.col-3,
.col-4,
.col-5,
.col-6 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.availability_status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    /* Increased from 11px */
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.4;
}

.availability_status[data-available="false"] {
    background: #ffeaa7;
    color: #856404;
}

.item_status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    /* Increased from 11px */
    font-weight: 600;
    line-height: 1.4;
}

.item_status.clean {
    background: #d1f2eb;
    color: #0c5460;
}

.item_status.vacant {
    background: #d1f2eb;
    color: #0c5460;
}

.item_status.occupied,
.item_status.reserved {
    background: #ffeaa7;
    color: #856404;
}

.order_my_item {
    padding: 8px 15px;
    border: none;
    border-radius: 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    grid-column: 1 / -1;
    background: #9c88ff;
}

.order_my_item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.order_my_item:active {
    transform: translateY(0);
}

.view_cart_items {
    position: fixed;
    bottom: 40px;
    transform: translateX(-50%);
    left: 50%;
    padding: 16px 20px;
    padding-bottom: 0;
    z-index: 150;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.app-main .view_cart_items {
    width: 100%;
}

.waiter-items-container .view_cart_items {
    width: auto;
}

.view_cart_btn {
    padding: 8px 16px;
    background-color: var(--white);
    color: var(--black);
    border: 1.4px solid var(--lite-shade-color);
    border-radius: 28px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: block;
    box-shadow: var(--shadow-lite);
    gap: 3px;
    display: inline-flex;
    align-items: anchor-center;
    min-width: auto;
}

.view_cart_btn:active {
    transform: translateY(0);
}

/* Adjust padding for view cart */
.item_view_wrapper {
    padding-bottom: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .list_card_container {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }

    .order_my_item {
        grid-column: 1 / -1;
    }
}

/* ============================================
   Login Page Modern Design (White Theme)
   ============================================ */
.login-app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-app-container::before {
    display: none;
}

.login-header {
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-brand {
    color: #1a1a1a;
    /* Better contrast */
}

.login-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    /* Better contrast */
    letter-spacing: -1px;
}

.login-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    /* Better contrast than #666 */
    margin: 0;
    letter-spacing: 1px;
}

.login-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 20px 40px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-card-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    /* Better contrast */
    margin: 0 0 8px 0;
}

.login-description {
    font-size: 14px;
    color: #4a4a4a;
    /* Better contrast than #666 */
    margin: 0;
}

.login-form-wrapper {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

/* Hide float_bottom on mobile app (except reservation confirm container) */
body.mobile-app .float_bottom:not(.reservation_confirm_container) {
    display: none !important;
}

/* Ensure reservation confirm container is visible */
body.mobile-app .float_bottom.reservation_confirm_container {
    display: block !important;
}

/* ============================================
   Profile Modal (White Theme)
   ============================================ */
body.mobile-app .corporate-hierarchy.modal {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.mobile-app .corporate-hierarchy.modal .hierarchy-gripper-wrapper {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: 90%;
    width: 100%;
    margin: auto;
    background: #ffffff;
    border: none;
}

body.mobile-app .corporate-hierarchy.modal .hierarchy_modal {
    background: transparent;
    padding: 20px 0;
}

body.mobile-app .corporate-hierarchy.modal .close::before {
    content: "✕";
    font-size: 20px;
    font-weight: 700;
    color: #333;
}


body.mobile-app .corporate-hierarchy.modal .logout_btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.mobile-app .corporate-hierarchy.modal .logout_btn:hover {
    background: #d32f2f;
    color: var(--white);
}

.skeleton-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 12px;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 8px;
}

.skeleton-description {
    height: 14px;
    width: 80%;
}

.skeleton-small {
    height: 12px;
    width: 40px;
}

.skeleton-price {
    height: 18px;
    width: 80px;
}

.skeleton-button {
    height: 40px;
    width: 100px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 12px;
}

.skeleton-badge {
    height: 24px;
    width: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 12px;
}

.skeleton-input {
    height: 36px;
    width: 150px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-quantity {
    height: 36px;
    width: 100px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.organization-header {
    padding: 0;
    font-size: 12px;
    color: #7d7d85;
    display: flex;
    gap: 6px;
}

.organization-header span {
    background: -webkit-linear-gradient(45deg, #1b1b1ba1, #301163);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.selected_items_amount {
    font-size: 18px;
}

/* ============================================
   Multiple Active Orders & Target Selection
   ============================================ */
.active_orders_header {
    margin-top: 10px;
}

.new_order_btn {
    color: white;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #9c88ff 0%, #7158e2 100%);
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 12px rgba(156, 136, 255, 0.3);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.new_order_btn:hover {
    box-shadow: 0 6px 16px rgba(156, 136, 255, 0.4);
    transform: translateY(-1px);
}

.new_order_btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(156, 136, 255, 0.3);
}

.order_container {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.order_container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.order_container.current-target {
    border: 2px solid #9c88ff;
    background: linear-gradient(to bottom right, #ffffff, #fcfbff);
    box-shadow: 0 8px 24px rgba(156, 136, 255, 0.12);
}

.order-card-click-target {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.order-card-actions {
    position: relative;
    z-index: 2;
    /* Bring select radio above click target */
    display: flex;
    align-items: center;
    top: 24px;
}

/* Modern Radio Button Styling */
.modern-radio-container {
    display: inline-block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
}

.modern-radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    top: -12px;
    right: 0;
    height: 24px;
    width: 24px;
    background-color: #f0f0f5;
    border-radius: 50%;
    border: 2px solid #5538ac;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

span.radio-checkmark::before {
    content: "Select to add item";
    position: absolute;
    width: 100%;
    display: flex;
    font-size: 8px;
    left: -46px;
    min-width: 38px;
    bottom: 0;
}

.modern-radio-container:hover input~.radio-checkmark {
    background-color: #e8e8f0;
    border-color: #9c88ff;
}

.modern-radio-container input:checked~.radio-checkmark {
    background-color: #9c88ff;
    border-color: #9c88ff;
    box-shadow: 0 0 10px rgba(156, 136, 255, 0.4);
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.modern-radio-container input:checked~.radio-checkmark:after {
    display: block;
}

.modern-radio-container .radio-checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.target-badge {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 500;
    margin-left: 8px;
    color: #9c88ff;
}


.orders_list_wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.affiliated_club_card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: var(--border-lite);
}

#open-my-subscriptions-modal {
    font-size: 10px;
    padding: 6px 11px;
    color: var(--green-blue-text);
    background: #eaefff;
}

#theme-toggle-btn {
    padding: 0;
}

.user_theme_toggle {
    align-items: center;
    gap: 3px;
}

/* ============================================
   Profile Breakdown Modal Utils
   ============================================ */
.bg_brand_lite {
    background: rgba(74, 123, 167, 0.1);
}

.border_lite {
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.radius_4 {
    border-radius: 4px;
}

.radius_6 {
    border-radius: 6px;
}

.radius_8 {
    border-radius: 8px;
}

.gap_10 {
    gap: 10px;
}

.brand_brandy_color {
    color: #4a7ba7;
}

.padding_12 {
    padding: 12px;
}

.padding_x_4 {
    padding: 0 4px;
}

.padding_top_0 {
    padding-top: 0;
}

.padding_btn_lite {
    padding: 2px 8px;
}

.padding_y_4 {
    padding: 4px 0;
}

.font_11 {
    font-size: 11px;
}

.margin_top_8 {
    margin-top: 8px;
}

.z_index_1100 {
    z-index: 1100;
}

/* ============================================
   Payment History – Payment Type Badge
   ============================================ */
.payment-history-meta {
    margin: 6px 0 4px;
}

.payment-type-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
}

/* Renewal – blue/indigo */
.payment-type-tag--renewal {
    background-color: #eef0ff;
    color: #3a4fd4;
    border-color: #c5cbf5;
}

/* Bill Balance – amber/orange */
.payment-type-tag--bill {
    background-color: #fff8e6;
    color: #b56b00;
    border-color: #f5d8a0;
}

/* Old Balance – muted gray-green */
.payment-type-tag--old {
    background-color: #f0f8f2;
    color: #2d7a4f;
    border-color: #b4dfc5;
}

/* Mixed (Renewal + Bill Balance, etc.) – purple tint */
.payment-type-tag--mixed {
    background-color: #f5f0ff;
    color: #6a3fc8;
    border-color: #d3bef5;
}

/* General / unrecognised payment */
.payment-type-tag--general {
    background-color: #f3f4f6;
    color: #555562;
    border-color: #d8dae0;
}