﻿/* ========================================
   SURGICARE MOBILE UI FRAMEWORK
   Unified Mobile Styles
   Version: 2.0
   ======================================== */

/* ========================================
   MOBILE BASE SETUP
   ======================================== */

/* Hide desktop elements on mobile */
@media (max-width: 991px) {
    .navbar, footer { display: none !important; }
    body { padding-bottom: 80px; }
    main { padding-top: 0 !important; }
}

/* ========================================
   MOBILE APP CONTAINER
   ======================================== */
.mobile-app-container,
.mobile-page-container {
    display: none;
    min-height: 100vh; 
    background: #f5f7f9;
    position: relative;
    overflow-x: hidden;
}

@media (max-width: 991px) {
    .mobile-app-container,
    .mobile-page-container { display: block; }
    .desktop-content { display: none !important; }
}

/* Mobile page with gradient header variant */
.mobile-page-container.with-header {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color) 120px, #f5f7f9 120px);
}

/* ========================================
   MOBILE HEADER
   ======================================== */
.mobile-header {
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background:linear-gradient(5deg, var(--primary-color) 0%, var(--primary-dark) 100%);
} 

.mobile-header.with-gradient {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.mobile-logo-top {
    /* background: white;
    border-radius: 50px;
    padding: 8px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;
}

.mobile-logo-top img {
    max-height: 24px;
    width: auto;
}

/* ========================================
   MOBILE APP CONTAINER - Fixed App Layout
   ======================================== */
@media (max-width: 991px) {
    .mobile-app-container {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    html, body {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* ========================================
   MOBILE PAGE HEADER (Inner Pages) - Fixed
   ======================================== */
.mobile-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 14px 16px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    overflow: visible;
    min-height: 70px;
}

.mobile-page-header.header-tall {
    padding-bottom: 40px;
}

.mobile-page-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    padding: 0;
}

.mobile-page-header-content.align-start {
    align-items: flex-start;
}

.mobile-page-header-content.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 8px;
}

.mobile-page-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.mobile-page-title.title-large {
    font-size: 1.35rem;
}

.mobile-page-title.title-small {
    font-size: 1.1rem;
}

/* Standalone page title (without header-content wrapper) */
h1.mobile-page-title {
    padding: 4px 0px 0px;
}

.mobile-page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    margin: 4px 0 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    display: block;
}

/* Header title wrapper */
.mobile-page-header-content > div {
    flex: 1;
    min-width: 0;
}

/* Header with icon (verify, success pages) */
.mobile-page-header-content.centered .mobile-verify-icon,
.mobile-page-header-content.centered .mobile-success-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.mobile-page-header-content.centered .mobile-verify-icon i,
.mobile-page-header-content.centered .mobile-success-icon i {
    font-size: 2.5rem;
    color: white;
}

/* ========================================
   MOBILE BREADCRUMB
   ======================================== */
.mobile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.mobile-breadcrumb a,
.mobile-breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.mobile-breadcrumb a:hover {
    color: white;
}

.mobile-breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
}

.mobile-breadcrumb i {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   MOBILE NAVIGATION BUTTONS
   ======================================== */
.mobile-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    flex-shrink: 0;
}

.mobile-back-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    color: white;
}

.mobile-back-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.35);
}

.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* ========================================
   ANIMATED BACKGROUND BUBBLES
   ======================================== */
.mobile-page-header .background,
.mobile-header-wrapper .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 1;
}

.mobile-page-header .background li,
.mobile-header-wrapper .background li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    animation: mobileAnimate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.mobile-page-header .background li:nth-child(1),
.mobile-header-wrapper .background li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.mobile-page-header .background li:nth-child(2),
.mobile-header-wrapper .background li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.mobile-page-header .background li:nth-child(3),
.mobile-header-wrapper .background li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.mobile-page-header .background li:nth-child(4),
.mobile-header-wrapper .background li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.mobile-page-header .background li:nth-child(5),
.mobile-header-wrapper .background li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.mobile-page-header .background li:nth-child(6),
.mobile-header-wrapper .background li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.mobile-page-header .background li:nth-child(7),
.mobile-header-wrapper .background li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.mobile-page-header .background li:nth-child(8),
.mobile-header-wrapper .background li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.mobile-page-header .background li:nth-child(9),
.mobile-header-wrapper .background li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.mobile-page-header .background li:nth-child(10),
.mobile-header-wrapper .background li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }
.mobile-page-header .background li:nth-child(11),
.mobile-header-wrapper .background li:nth-child(11) { left: 5%; width: 40px; height: 40px; animation-delay: 1s; animation-duration: 20s; }
.mobile-page-header .background li:nth-child(12),
.mobile-header-wrapper .background li:nth-child(12) { left: 90%; width: 30px; height: 30px; animation-delay: 5s; animation-duration: 15s; }

@keyframes mobileAnimate {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 50%; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* ========================================
   RIPPLE CIRCLE BACKGROUND ANIMATIONS
   ======================================== */
.mobile-page-header .background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300%;
    overflow: visible;
    z-index: 0;
    pointer-events: none;
}

/* Static ambient circles with gentle breathing */
.static-circle {
    position: absolute;
    background: transparent;
    border-radius: 50%;
    animation: gentle-breathe 6s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.static-1 { width: 350px; height: 350px; bottom: -80px; left: -80px; border: 1px solid rgba(255, 255, 255, 0.25); animation-delay: 0s; }
.static-2 { width: 550px; height: 550px; bottom: -150px; left: -150px; border: 1px solid rgba(255, 255, 255, 0.18); animation-delay: 1s; }
.static-3 { width: 750px; height: 750px; bottom: -220px; left: -220px; border: 1px solid rgba(255, 255, 255, 0.12); animation-delay: 2s; }

/* Ripple origin point - bottom left corner */
.ripple-center { position: absolute; bottom: -30px; left: -30px; }

/* Base circle styles */
.circle {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Regular circles with weighted motion */
.circle-1 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.7); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 0s; }
.circle-2 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.65); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 0.7s; }
.circle-3 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.6); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 1.4s; }
.circle-4 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.55); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 2.1s; }
.circle-5 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.5); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 2.8s; }
.circle-6 { width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.45); animation: ripple-weighted 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite; animation-delay: 3.5s; }

/* Heavy thick circles */
.circle-thick-1 { width: 50px; height: 50px; border: 3px solid rgba(255, 255, 255, 0.6); animation: ripple-weighted-heavy 9s cubic-bezier(0.22, 0.1, 0.3, 1) infinite; animation-delay: 0.35s; }
.circle-thick-2 { width: 50px; height: 50px; border: 3px solid rgba(255, 255, 255, 0.5); animation: ripple-weighted-heavy 9s cubic-bezier(0.22, 0.1, 0.3, 1) infinite; animation-delay: 1.75s; }
.circle-thick-3 { width: 50px; height: 50px; border: 3px solid rgba(255, 255, 255, 0.4); animation: ripple-weighted-heavy 9s cubic-bezier(0.22, 0.1, 0.3, 1) infinite; animation-delay: 3.15s; }

/* Light thin circles */
.circle-thin-1 { width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.6); animation: ripple-weighted-light 7s cubic-bezier(0.28, 0.1, 0.22, 1) infinite; animation-delay: 0.5s; }
.circle-thin-2 { width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.5); animation: ripple-weighted-light 7s cubic-bezier(0.28, 0.1, 0.22, 1) infinite; animation-delay: 1.9s; }
.circle-thin-3 { width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.4); animation: ripple-weighted-light 7s cubic-bezier(0.28, 0.1, 0.22, 1) infinite; animation-delay: 3.3s; }

/* Ripple Keyframes */
@keyframes ripple-weighted {
    0% { transform: scale(0.5); opacity: 0; }
    5% { opacity: 1; }
    15% { transform: scale(2); opacity: 0.9; }
    40% { transform: scale(8); opacity: 0.6; }
    70% { transform: scale(18); opacity: 0.25; }
    100% { transform: scale(28); opacity: 0; }
}

@keyframes ripple-weighted-heavy {
    0% { transform: scale(0.3); opacity: 0; }
    8% { opacity: 0.9; }
    20% { transform: scale(2.5); opacity: 0.8; }
    50% { transform: scale(10); opacity: 0.5; }
    80% { transform: scale(22); opacity: 0.15; }
    100% { transform: scale(30); opacity: 0; }
}

@keyframes ripple-weighted-light {
    0% { transform: scale(0.8); opacity: 0; }
    3% { opacity: 0.85; }
    12% { transform: scale(1.8); opacity: 0.8; }
    35% { transform: scale(6); opacity: 0.55; }
    65% { transform: scale(15); opacity: 0.2; }
    100% { transform: scale(25); opacity: 0; }
}

@keyframes gentle-breathe {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.03); opacity: 1; }
}

/* ========================================
   MOBILE MAIN CONTENT - Fixed for Inner Pages
   ======================================== */
.mobile-main-content {
    background: #f5f7f9;
    border-radius: 0;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    box-shadow: none;
    padding: 0 16px 70px;
}

/* Remove Bootstrap g-* top gutter on the very first column so content starts flush */
.mobile-main-content > .row:first-child > *:first-child {
    margin-top: 0;
}

/* Inner scrollable area */
.mobile-main-content-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 16px 100px;
    -webkit-overflow-scrolling: touch;
}

/* When no inner wrapper, make content section scrollable */
.mobile-main-content > .mobile-content-section:first-child,
.mobile-main-content > .mobile-services-grid:first-child,
.mobile-main-content > .mobile-doctors-grid:first-child {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.mobile-main-content::-webkit-scrollbar,
.mobile-main-content-inner::-webkit-scrollbar {
    display: none;
}
.mobile-main-content,
.mobile-main-content-inner {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* For home page - relative positioning */
.mobile-page-container .mobile-main-content,
.mobile-main-content.relative {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: -30px;
    min-height: calc(100vh - 150px);
    padding: 0 0 100px;
}

.mobile-main-content.no-padding-top {
    padding-top: 0;
}

.mobile-main-content.no-radius {
    border-radius: 0;
    margin-top: 0;
}

/* Alternative: Content card style */
.mobile-content-card {
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 100px;
    min-height: calc(100vh - 140px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-content-section {
    padding: 16px;
}

/* ========================================
   MOBILE SECTION HEADERS
   ======================================== */
.mobile-section {
    padding: 24px 16px;
    background: white;
    border-radius: 20px;
    margin: 0 16px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.mobile-section.transparent {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 24px 16px;
}

.mobile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0; /* Remove any inherited padding */
}

.mobile-section-title,
.mobile-section-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a2233;
    margin: 0;
    letter-spacing: -0.02em;
}

.mobile-dept-section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2233;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.mobile-section-title i {
    color: var(--primary-color);
    margin-right: 8px;
}

.mobile-section-link,
.services-view-all {
    font-size: 0.813rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-section-link:hover,
.services-view-all:hover {
    color: var(--primary-dark);
}

.mobile-section-text {
    font-size: 0.938rem;
    color: #5a6370;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   MOBILE CARDS - List Style (Horizontal)
   ======================================== */
.mobile-list-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-list-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eef0f2;
    display: flex;
    flex-direction: row;
}

.mobile-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    border-color: transparent;
}

.mobile-list-card-image {
    width: 110px;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-list-card-placeholder {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.mobile-list-card-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.mobile-list-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-list-card-subtitle {
    font-size: 0.813rem;
    color: #7a8599;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-list-card-arrow {
    display: flex;
    align-items: center;
    padding-right: 14px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ========================================
   MOBILE CARDS - Scroll Style (Horizontal Scroll)
   ======================================== */
.mobile-scroll-container,
.services-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Remove negative margins that cause overflow */
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.mobile-scroll-container::-webkit-scrollbar,
.services-scroll-container::-webkit-scrollbar {
    display: none;
}

.mobile-scroll-card,
.mobile-card,
.service-card-mobile {
    flex: 0 0 auto;
    width: 130px;
    scroll-snap-align: start;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eef0f2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-card:first-child {
    margin-left: 0;
}

.mobile-card:last-child {
    margin-right: 0;
}

.mobile-scroll-card:hover,
.mobile-card:hover,
.service-card-mobile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    border-color: transparent;
}

.mobile-scroll-card-image,
.mobile-card-image,
.service-card-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.mobile-scroll-card-placeholder,
.mobile-card-placeholder,
.service-card-image-placeholder,
.mobile-card-image-placeholder {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.mobile-scroll-card-content,
.mobile-card-content,
.service-card-content {
    padding: 10px;
}

.mobile-scroll-card-title,
.mobile-card-title,
.service-card-name {
     font-size: 0.813rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-scroll-card-subtitle,
.mobile-card-subtitle,
.service-card-price {
    font-size: 0.75rem;
    color: #7a8599;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Wide scroll cards (160px) */
.mobile-scroll-card.card-wide,
.mobile-card.card-wide {
    width: 160px;
}

.mobile-scroll-card.card-wide .mobile-scroll-card-image,
.mobile-scroll-card.card-wide .mobile-scroll-card-placeholder {
    height: 100px;
}

/* ========================================
   MOBILE CARDS - Full Width Style
   ======================================== */
.mobile-card-full {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f2f4;
    display: flex;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-card-full:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(6, 24, 54, 0.12);
    text-decoration: none;
}

.mobile-card-full-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-card-full-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mobile-card-full-content {
    flex: 1;
    min-width: 0;
}

.mobile-card-full-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2233;
    margin-bottom: 4px;
}

.mobile-card-full-subtitle {
    font-size: 0.813rem;
    color: #7a8599;
    margin-bottom: 8px;
}

.mobile-card-full-meta {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   MOBILE INFO CARDS
   ======================================== */
.mobile-info-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* ========================================
   MOBILE AVATAR CARDS (Doctors, Users, etc)
   ======================================== */
.mobile-avatar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-avatar-card {
    background: white;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    border: 1px solid #eef0f2;
    transition: all 0.2s ease;
}

.mobile-avatar-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(6, 24, 54, 0.1);
    text-decoration: none;
}

.mobile-avatar-image {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mobile-avatar-placeholder.rounded,
.mobile-avatar-image.rounded {
    border-radius: 50%;
}

.mobile-avatar-info {
    flex: 1;
    min-width: 0;
}

.mobile-avatar-name {
    font-size: 0.938rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 2px;
}

.mobile-avatar-subtitle {
    font-size: 0.813rem;
    color: #7a8599;
    margin: 0;
}

.mobile-avatar-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ========================================
   MOBILE HERO IMAGE
   ======================================== */
.mobile-hero-image {
    width: calc(100% - 32px);
    margin: -20px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 15;
}

.mobile-hero-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mobile-hero-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* ========================================
   HERO BANNER (Home Page)
   ======================================== */
.hero-banner-container {
    padding: 0 20px 16px;
}

.hero-banner-mobile {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-banner-mobile .carousel-item {
    height: 200px;
}

.hero-banner-mobile .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-mobile .carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(6, 24, 54, 0.6) 0%, rgba(12, 56, 87, 0.5) 100%);
    z-index: 1;
}

.hero-banner-mobile .carousel-caption {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; z-index: 2;
    text-align: center;
    padding: 0; bottom: auto; right: auto;
}

.hero-banner-mobile .carousel-caption h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-banner-mobile .carousel-caption p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.hero-banner-mobile .carousel-caption .btn {
    padding: 8px 20px;
    font-size: 0.813rem;
    border-radius: 50px;
}

.hero-banner-mobile .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

.hero-banner-mobile .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255,255,255,0.5);
    border: none;
}

.hero-banner-mobile .carousel-indicators button.active {
    background-color: white;
    width: 20px;
    border-radius: 4px;
}

.hero-banner-default {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-banner-default h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.hero-banner-default p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

.banner-indicators-external {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
}

.banner-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicator-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   MOBILE CTA BUTTONS
   ======================================== */
.mobile-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.mobile-cta-btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 24, 54, 0.3);
}

.mobile-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 24, 54, 0.4);
    color: white;
}

.mobile-cta-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.mobile-cta-btn.secondary:hover {
    background: var(--primary-lightest);
    color: var(--primary-color);
}

/* ========================================
   MOBILE CTA CARD
   ======================================== */
.mobile-cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.mobile-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.mobile-cta-card h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.mobile-cta-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
}

.mobile-cta-card .btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.938rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.mobile-cta-card .btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ========================================
   MOBILE CONTACT INFO
   ======================================== */
.mobile-contact-info {
    background: #f8f9fb;
    border-radius: 14px;
    padding: 16px;
}

.mobile-contact-info h6 {
    font-size: 0.813rem;
    font-weight: 600;
    color: #7a8599;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.938rem;
    color: #1a2233;
}

.mobile-contact-item:last-child {
    margin-bottom: 0;
}

.mobile-contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ========================================
   QUICK ACTIONS GRID
   ======================================== */
.quick-actions-container,
.mobile-quick-actions {
    padding: 16px 20px;
}

.quick-actions-card,
.mobile-quick-actions-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.quick-actions-grid,
.mobile-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-action-item,
.mobile-quick-action-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafb;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    padding: 12px 8px;
}

.quick-action-item:hover,
.quick-action-item:active,
.mobile-quick-action-item:hover,
.mobile-quick-action-item:active {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(6, 24, 54, 0.15);
    text-decoration: none;
    color: var(--text-primary);
}

.quick-action-icon,
.mobile-quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
    transition: transform 0.25s ease;
}

.quick-action-item:hover .quick-action-icon,
.mobile-quick-action-item:hover .mobile-quick-action-icon {
    transform: scale(1.08);
}

.quick-action-label,
.mobile-quick-action-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--text-secondary);
}

/* Quick Action Icon Colors */
.quick-action-icon.appointments,
.mobile-quick-action-icon.primary,
.quick-action-icon.doctors,
.mobile-quick-action-icon.blue,
.quick-action-icon.departments,
.mobile-quick-action-icon.orange,
.quick-action-icon.services,
.mobile-quick-action-icon.pink,
.quick-action-icon.about,
.mobile-quick-action-icon.purple,
.quick-action-icon.contact,
.mobile-quick-action-icon.cyan,
.mobile-quick-action-icon.green,
.mobile-quick-action-icon.red {
    background: linear-gradient(135deg, #061836 0%, #0c3857 100%);
    color: #ffffff;
}

/* ========================================
   MOBILE RELATED SECTION
   ======================================== */
.mobile-related-section {
    background: white;
    padding: 24px 16px;
    margin-top: 8px;
}

.mobile-related-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a2233;
    margin: 0 0 16px;
}

/* ========================================
   BOTTOM NAVIGATION
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 8px 16px 16px;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 24px 24px 0 0;
}

 


@media (max-width: 991px) {
    .bottom-nav { display: flex; }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bottom-nav-item.active {
    color: white;
}

.bottom-nav-item:hover {
    color: white;
    text-decoration: none;
}


.bottom-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.bottom-nav-item.active .bottom-nav-icon {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bottom-nav-label {
    font-size: 0.650rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pulse animation for Now Serving button */
.pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ========================================
   NOW SERVING MODAL
   ======================================== */
.now-serving-modal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

.now-serving-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 20px 24px;
}

.now-serving-modal .modal-header .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.now-serving-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.now-serving-modal .modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.now-serving-modal .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.now-serving-modal .live-badge .live-dot {
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.doctor-token-card {
    background: #f8fafb;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.doctor-token-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(6, 24, 54, 0.1);
}

.doctor-token-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.doctor-token-info h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.doctor-token-info p {
    font-size: 0.813rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.doctor-token-info .room-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   MOBILE MENU DRAWER
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    background: white;
    z-index: 1101;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-drawer {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}

.mobile-menu-close {
    background: #f5f7f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--primary-color);
    color: white;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    margin-bottom: 8px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: linear-gradient(135deg, rgba(6, 24, 54, 0.08) 0%, rgba(12, 56, 87, 0.08) 100%);
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.mobile-menu-contact {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fb;
    border-radius: 14px;
}

.mobile-menu-contact h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #7a8599;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu-contact p {
    margin: 0 0 8px;
    font-size: 0.875rem;
    color: #1a2233;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-contact p:last-child {
    margin-bottom: 0;
}

.mobile-menu-contact i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* ========================================
   MOBILE FORM STYLES
   ======================================== */
.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a2233;
    margin-bottom: 8px;
}

.mobile-form-control,
.mobile-form-input,
.mobile-form-select,
.mobile-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    font-size: 1rem;
    color: #1a2233;
    background: white;
    transition: all 0.2s ease;
}

.mobile-form-control:focus,
.mobile-form-input:focus,
.mobile-form-select:focus,
.mobile-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(6, 24, 54, 0.1);
}

.mobile-form-control::placeholder,
.mobile-form-input::placeholder {
    color: #a0a8b5;
}

.mobile-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.mobile-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(6, 24, 54, 0.3);
}

.mobile-btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.mobile-btn-outline:hover {
    background: var(--primary-lightest);
}

/* ========================================
   MOBILE BADGES & TAGS
   ======================================== */
.mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-badge.primary {
    background: rgba(6, 24, 54, 0.1);
    color: var(--primary-color);
}

.mobile-badge.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.mobile-badge.warning {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.mobile-badge.danger {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* ========================================
   MOBILE TABS
   ======================================== */
.mobile-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 16px;
}

.mobile-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #7a8599;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-tab.active {
    background: var(--primary-color);
    color: white;
}

.mobile-tab:hover:not(.active) {
    background: #f5f7f9;
}

/* ========================================
   MOBILE EMPTY STATE
   ======================================== */
.mobile-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.mobile-empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.mobile-empty-state p {
    color: #7a8599;
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   MOBILE PAGINATION
   ======================================== */
.mobile-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* ========================================
   MOBILE DIVIDER
   ======================================== */
.mobile-divider {
    height: 1px;
    background: #eef0f2;
    margin: 16px 0;
}

.mobile-divider.thick {
    height: 8px;
    background: #f5f7f9;
    margin: 0 -16px;
}

/* ========================================
   MOBILE ANIMATIONS
   ======================================== */
@keyframes mobileSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mobileFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mobileFadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-animate-in {
    animation: mobileSlideUp 0.6s ease forwards;
}

.mobile-fade-in {
    animation: mobileFadeIn 0.4s ease forwards;
}

.mobile-delay-1 { animation-delay: 0.1s; opacity: 0; }
.mobile-delay-2 { animation-delay: 0.2s; opacity: 0; }
.mobile-delay-3 { animation-delay: 0.3s; opacity: 0; }
.mobile-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ========================================
   SAFE AREA (NOTCHED PHONES)
   ======================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(0px + env(safe-area-inset-bottom));
    }
    
    .mobile-main-content,
    .mobile-content-card,
    .services-section-mobile {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }
}

/* ========================================
   MOBILE UTILITIES
   ======================================== */
.mobile-text-center { text-align: center; }
.mobile-text-muted { color: #7a8599; }
.mobile-text-primary { color: var(--primary-color); }
.mobile-text-small { font-size: 0.813rem; }

.mobile-mt-0 { margin-top: 0; }
.mobile-mt-1 { margin-top: 8px; }
.mobile-mt-2 { margin-top: 16px; }
.mobile-mt-3 { margin-top: 24px; }

.mobile-mb-0 { margin-bottom: 0; }
.mobile-mb-1 { margin-bottom: 8px; }
.mobile-mb-2 { margin-bottom: 16px; }
.mobile-mb-3 { margin-bottom: 24px; }

.mobile-p-0 { padding: 0; }
.mobile-p-1 { padding: 8px; }
.mobile-p-2 { padding: 16px; }
.mobile-p-3 { padding: 24px; }

.mobile-px-20 { padding-left: 20px; padding-right: 20px; }

/* ========================================
   SURGICARE MOBILE - HOME PAGE ADDITIONS
   Merge these into surgicare-mobile-unified.css
   ======================================== */

/* ========================================
   STICKY HEADER WRAPPER (Home Page)
   ======================================== */
.mobile-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* ========================================
   HERO BANNER WRAPPER (Home Page)
   - Seamless blend with header
   ======================================== */
.hero-banner-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding-bottom: 0;
}

/* Override hero banner for seamless look */
.hero-banner-wrapper .hero-banner-container { 
    padding: 0;
}

.hero-banner-wrapper .hero-banner-mobile {
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: transparent;
    box-shadow: none;
}

.hero-banner-wrapper .hero-banner-mobile .carousel-item {
    height: 42vh;
    max-height: 280px;
    min-height: 180px;
    background: transparent;
}

.hero-banner-wrapper .hero-banner-mobile .carousel-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    object-position: center;
}

.hero-banner-wrapper .hero-banner-mobile .carousel-overlay {
    display: none;
}

.hero-banner-wrapper .hero-banner-mobile .carousel-caption h5 { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: white; 
    margin-bottom: 8px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.02em;
}

.hero-banner-wrapper .hero-banner-mobile .carousel-caption p { 
    font-size: 0.938rem; 
    color: rgba(255,255,255,0.9); 
    margin-bottom: 16px;
    font-weight: 400;
}

.hero-banner-wrapper .hero-banner-mobile .carousel-caption .btn { 
    padding: 10px 24px; 
    font-size: 0.875rem; 
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-banner-wrapper .hero-banner-mobile .carousel-indicators { 
    bottom: 16px; 
    margin-bottom: 0;
    gap: 6px;
}

.hero-banner-wrapper .hero-banner-mobile .carousel-indicators button { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    margin: 0;
    background-color: rgba(255,255,255,0.4); 
    border: none;
    transition: all 0.3s ease;
}

.hero-banner-wrapper .hero-banner-mobile .carousel-indicators button.active { 
    background-color: white; 
    width: 24px; 
    border-radius: 4px; 
}

/* Hero banner default in wrapper */
.hero-banner-wrapper .hero-banner-default {
    padding: 50px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 0;
    min-height: auto;
}

.hero-banner-wrapper .hero-banner-default h5 { 
    font-size: 1.75rem; 
    font-weight: 700; 
    color: white; 
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.hero-banner-wrapper .hero-banner-default p { 
    font-size: 1rem; 
    color: rgba(255,255,255,0.85); 
    margin-bottom: 20px;
}

/* ========================================
   MOBILE MAIN CONTENT (Home Page Override)
   - Adjusted margin for header wrapper
   ======================================== */
.mobile-header-wrapper + .mobile-main-content,
.hero-banner-wrapper + .mobile-main-content {
    margin-top: -30px;
}

/* ========================================
   QUICK ACTIONS - Refined Design (Home Page)
   ======================================== */
.quick-actions-container {
    padding: 8px 16px 16px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.quick-actions-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.03);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.quick-action-item {
    aspect-ratio: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f2f4;
    padding: 10px 6px 8px;
    min-width: 0;
    overflow: hidden;
}

.quick-action-item:hover, 
.quick-action-item:active {
    transform: translateY(-3px);
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(6, 24, 54, 0.12);
    text-decoration: none;
    color: var(--text-primary);
}

.quick-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 1.1rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.quick-action-item:hover .quick-action-icon {
    transform: scale(1.08);
}

/* Quick Action Icon Colors - Enhanced */
.quick-action-icon.appointments,
.quick-action-icon.doctors,
.quick-action-icon.departments,
.quick-action-icon.services,
.quick-action-icon.about,
.quick-action-icon.contact {
    background: linear-gradient(135deg, #061836 0%, #0c3857 100%);
    color: #ffffff;
}

.quick-action-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: #5a6370;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    word-break: keep-all;
    white-space: nowrap;
    max-width: 100%;
}

/* ========================================
   HOME PAGE ANIMATIONS
   ======================================== */
@keyframes fadeSlideUp { 
    from { opacity: 0; transform: translateY(16px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.animate-in { 
    animation: fadeSlideUp 0.5s ease forwards; 
}

.delay-1 { animation-delay: 0.05s; opacity: 0; }
.delay-2 { animation-delay: 0.1s; opacity: 0; }
.delay-3 { animation-delay: 0.15s; opacity: 0; }

/* ========================================
   CONSULTATION FEE STYLES
   ======================================== */
/* Fee card on doctor show page */
.mobile-fee-card {
    background: linear-gradient(135deg, #f0fdf9 0%, #e6f7f5 100%);
    border: 1px solid rgba(6, 24, 54, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.mobile-fee-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.mobile-fee-header i {
    font-size: 1.1rem;
}

.mobile-fee-details {
    background: white;
    border-radius: 8px;
    padding: 12px;
}

.mobile-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #4a5568;
}

.mobile-fee-row:not(:last-child) {
    border-bottom: 1px dashed #e2e8f0;
}

.mobile-fee-row.aasandha {
    color: #059669;
}

.mobile-fee-row.total {
    font-weight: 700;
    color: #1a202c;
    padding-top: 12px;
}

.mobile-fee-row.total .mobile-fee-amount {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.mobile-fee-amount {
    font-weight: 600;
}

/* Fee badge on doctor list page */
.mobile-doctor-fee-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f0fdf9 0%, #e6f7f5 100%);
    border: 1px solid rgba(6, 24, 54, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.mobile-doctor-fee-badge .fee-label {
    font-size: 0.75rem;
    color: #64748b;
}

.mobile-doctor-fee-badge .fee-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.mobile-doctor-fee-badge .aasandha-badge {
    background: #059669;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Service price badge on service list page */
.mobile-service-price-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.mobile-service-price-badge .price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.mobile-service-price-badge .aasandha-badge {
    background: #059669;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ----------------------------------------
   Responsive Adjustments
   ---------------------------------------- */
   @media (max-width: 360px) {
    .quick-actions-container {
        padding: 6px 12px 12px;
    }

    .quick-actions-card {
        padding: 12px;
    }

    .quick-actions-grid {
        gap: 8px;
    }

    .quick-action-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .quick-action-label {
        font-size: 0.6rem;
    }
    
    .mobile-section {
        margin: 0 12px 12px;
        padding: 20px 12px;
    }
    
    .mobile-card {
        width: 115px;
    }
    
    .mobile-card-image,
    .mobile-card-placeholder {
        height: 85px;
    }
}

@media (min-width: 400px) {
    .quick-action-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .quick-action-label {
        font-size: 0.68rem;
    }

    .mobile-card {
        width: 140px;
    }
}

/* ========================================
   PAGE-SPECIFIC STYLES
   ======================================== */

/* Department Cards */
.mobile-departments-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-department-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eef0f2;
    display: flex;
    flex-direction: row;
}

.mobile-department-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    border-color: transparent;
}

.mobile-department-image {
    width: 110px;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
}

.mobile-department-placeholder {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.mobile-department-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.mobile-department-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 6px;
    line-height: 1.3;
}

.mobile-department-description {
    font-size: 0.813rem;
    color: #7a8599;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-department-stats {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #7a8599;
}

.mobile-department-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-department-stat i {
    color: var(--primary-color);
}

.mobile-department-arrow {
    display: flex;
    align-items: center;
    padding-right: 14px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Doctor Cards - List View */
.mobile-doctors-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-doctor-card {
    background: white;
    border-radius: 16px;
    /* overflow: hidden; */
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eef0f2;
    display: flex;
    flex-direction: column;
}

.mobile-doctor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    border-color: transparent;
}

.mobile-doctor-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mobile-doctor-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.mobile-doctor-content {
    padding: 16px;
}

.mobile-doctor-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 4px;
}

.mobile-doctor-specialty {
    font-size: 0.938rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 8px;
}

.mobile-doctor-qualification {
    font-size: 0.813rem;
    color: #7a8599;
    margin: 0 0 12px;
}

.mobile-doctor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5f4;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.mobile-doctor-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
    padding-top: 12px;
    border-top: 1px solid #eef0f2;
}

.mobile-doctor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.938rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-doctor-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 24, 54, 0.3);
    color: white;
}

/* Doctor Detail Page */
.mobile-doctor-card.detail {
    text-align: center;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.mobile-doctor-card.detail .mobile-doctor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 4px solid #e5e7eb;
}

.mobile-doctor-qual {
    font-size: 1rem;
    color: #5a6370;
    margin-bottom: 16px;
}

.mobile-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fb;
    border-radius: 12px;
    margin-bottom: 8px;
}

.mobile-info-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #061836 0%, #0c3857 100%);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-value-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #061836 0%, #0c3857 100%);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mobile-info-text {
    font-size: 0.875rem;
    color: #1a2233;
    flex: 1;
}

.mobile-book-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 16px;
}

.mobile-bio-text {
    font-size: 1rem;
    color: #5a6370;
    line-height: 1.6;
}

/* Services List */
.mobile-services-grid {
    display: flex;
    flex-direction: column;
}

.mobile-service-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 12px 0px 0px;
    text-decoration: none;
    border-bottom: 1.5px solid #061836;
    transition: background 0.18s ease;
    overflow: hidden;
}

.mobile-service-card:hover,
.mobile-service-card:active {
    background: rgba(6, 24, 54, 0.05);
    text-decoration: none;
}

.mobile-service-image {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 50%;
}

.mobile-service-placeholder {
    width: 20px;
    height: 44px;
    min-width: 20px;
    min-height: 44px;
    background: #061836;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mobile-service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mobile-service-title {
    font-size: 0.938rem;
    font-weight: 600;
    color: #061836;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.mobile-service-description {
    font-size: 0.813rem;
    color: #7a8599;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-service-arrow {
    display: flex;
    align-items: center;
    padding-right: 14px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Service Detail Hero Image */
.mobile-service-hero-image {
    width: calc(100% - 32px);
    margin: -20px auto 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 15;
}

.mobile-service-hero-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mobile-service-hero-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.mobile-service-info-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Section Cards (Department Show, Doctor Show) */
.mobile-section-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Service Items in Section */
.mobile-service-item {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.mobile-service-name {
    font-size: 0.938rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 8px;
}

.mobile-service-desc {
    font-size: 0.813rem;
    color: #5a6370;
    line-height: 1.5;
    margin: 0;
}

/* Doctor Cards in Sections */
.mobile-section-card .mobile-doctor-card {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-direction: row;
    border: none;
    height: auto;
}

.mobile-section-card .mobile-doctor-card .mobile-doctor-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mobile-section-card .mobile-doctor-info h4 {
    font-size: 0.938rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 4px;
}

.mobile-section-card .mobile-doctor-info p {
    font-size: 0.813rem;
    color: #5a6370;
    margin: 0;
}

/* Form Styles */
.mobile-form-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.mobile-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-info-box {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    border-radius: 12px;
    padding: 12px;
    margin: 16px 0;
    font-size: 0.813rem;
    color: #0c4a6e;
}

/* OTP Form */
.mobile-otp-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.mobile-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.mobile-otp-digit {
    width: 45px;
    height: 55px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}

.mobile-otp-digit:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 24, 54, 0.1);
    outline: none;
}

.mobile-verify-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-timer {
    text-align: center;
    padding: 12px;
    background: #fef3c7;
    border-radius: 12px;
    margin: 16px 0;
    font-size: 0.875rem;
    color: #92400e;
}

.mobile-resend {
    text-align: center;
    margin-top: 20px;
}

.mobile-resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.938rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-back-link {
    text-align: center;
    margin-top: 16px;
}

.mobile-back-link a {
    color: #7a8599;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Success Page */
.mobile-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.mobile-success-icon i {
    font-size: 3rem;
    color: white;
}

.mobile-verify-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.mobile-verify-icon i {
    font-size: 3rem;
    color: white;
}

.mobile-details-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.mobile-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eef0f2;
}

.mobile-detail-row:last-child {
    border-bottom: none;
}

.mobile-detail-label {
    font-size: 0.875rem;
    color: #7a8599;
    font-weight: 600;
}

.mobile-detail-value {
    font-size: 0.875rem;
    color: #1a2233;
    text-align: right;
}

.mobile-info-card {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.mobile-info-card h6 {
    color: #0c4a6e;
    font-size: 0.938rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.mobile-info-card ul {
    margin: 0;
    padding-left: 20px;
    color: #0c4a6e;
    font-size: 0.813rem;
}

.mobile-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-home-btn:hover {
    background: #059669;
    color: white;
    transform: translateY(-1px);
}

/* Contact Page */
.mobile-contact-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.mobile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f8f9fb;
    border-radius: 12px;
    margin-bottom: 12px;
}

.mobile-info-item:last-child {
    margin-bottom: 0;
}

.mobile-info-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 4px;
}

.mobile-info-content p {
    font-size: 0.813rem;
    color: #5a6370;
    margin: 0;
    line-height: 1.5;
}

/* Search Page */
.mobile-search-form {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f5f7f9;
    padding: 0 0 16px 0;
    margin: 0 -16px 16px -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border-radius: 12px;
    border: none;
    background: white;
    font-size: 0.938rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-search-btn {
    position: absolute;
    right: 20px;
    top: 4px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Alert */
.mobile-alert {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.mobile-alert i {
    color: #2196f3;
    margin-right: 8px;
}

.mobile-alert-text {
    color: #1565c0;
    font-size: 0.875rem;
    margin: 0;
}

/* Related Cards Scroll */
.mobile-related-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.mobile-related-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-related-card {
    flex: 0 0 auto;
    width: 160px;
    scroll-snap-align: start;
    background: #f8f9fb;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #eef0f2;
}

.mobile-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    border-color: transparent;
}

.mobile-related-card-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.mobile-related-card-placeholder {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.mobile-related-card-content {
    padding: 12px;
}

.mobile-related-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Doctors List in Sections */
.mobile-doctors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Success Page Header - Green variant */
.mobile-page-header.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Header overlay for depth */
.mobile-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Native app-like status bar spacing */
@supports (padding-top: env(safe-area-inset-top)) {
    .mobile-page-header {
        padding-top: calc(24px + env(safe-area-inset-top));
    }

    .mobile-main-content {
        top: calc(165px + env(safe-area-inset-top));
    }
}

/* Smooth page transition animations */
.mobile-app-container .mobile-page-header {
    animation: headerSlideIn 0.4s ease-out;
}

.mobile-app-container .mobile-main-content {
    animation: contentSlideIn 0.5s ease-out;
}

@keyframes headerSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contentSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}