/* ========================================================
   SHUB STYLIO - LUXURY SALON DESIGN SYSTEM & STYLESHEET
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #c85a24;
    --primary-hover: #b04e1c;
    --primary-light: #fbeee7;
    --primary-subtle: #fae4d7;
    --secondary: #202020;
    --secondary-hover: #000000;
    --bg-peach: #fcf4ef;
    --bg-cream: #fbf7f4;
    --bg-surface: #ffffff;
    --text-dark: #1e1e1e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border-color: #ebdcd3;
    --border-light: #f2e9e3;
    --star-gold: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(184, 76, 27, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.09);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent layout elements from exceeding their containers */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-peach);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
}

/* ========================================================
   BASE RESPONSIVE FOUNDATION
   ======================================================== */
.container,
.container-wide,
.hero,
.hero-section,
.hero-content,
.main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
}

.main-content {
    min-width: 0;
    padding: 24px;
    flex: 1;
}

.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}

.table-wrapper,
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    margin-bottom: 1rem;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================================
   TYPOGRAPHY & ACCENTS
   ======================================================== */
.text-terracotta {
    color: var(--primary) !important;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.badge-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-title {
    font-size: 38px;
    margin-top: 14px;
    letter-spacing: -0.5px;
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(200, 90, 36, 0.28);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 90, 36, 0.38);
    color: #ffffff;
}

.btn-outline {
    background-color: #ffffff;
    color: var(--text-dark);
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background-color: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: #171717;
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13.5px;
}

/* ========================================================
   NAVBAR
   ======================================================== */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(252, 244, 239, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(235, 220, 211, 0.6);
    transition: var(--transition);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    font-family: 'Outfit', sans-serif;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: #faebe2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.brand-orange {
    color: var(--primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1f2937;
    font-size: 18px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: #fdf6f0;
    color: var(--primary);
}

/* Mobile Drawer Backdrop (Public, Salon Admin, Super Admin) */
.mobile-nav-backdrop,
.admin-sidebar-backdrop,
.salon-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active,
.admin-sidebar-backdrop.active,
.salon-sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Mobile Slide-Out Drawer for Public/Customer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 340px);
    background: #ffffff;
    z-index: 1001;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

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

.mobile-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-drawer-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: var(--transition);
    min-height: 44px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #faede5;
    color: var(--primary);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Mobile Bottom Navigation Bars (Mobile & iPhone <= 768px) */
.mobile-bottom-bar,
.salon-bottom-bar,
.admin-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    z-index: 900;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    justify-content: space-around;
    align-items: center;
}

.salon-bottom-bar {
    background: rgba(18, 20, 26, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.35);
}

.admin-bottom-bar {
    background: rgba(23, 23, 23, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.35);
}

.mobile-bottom-item,
.salon-bottom-item,
.admin-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    min-width: 52px;
    background: none;
    border: none;
    cursor: pointer;
}

.salon-bottom-item,
.admin-bottom-item {
    color: #94a3b8;
}

.mobile-bottom-item i,
.salon-bottom-item i,
.admin-bottom-item i {
    font-size: 17px;
    line-height: 1;
}

.mobile-bottom-item.active,
.mobile-bottom-item:hover {
    color: var(--primary);
}

.salon-bottom-item.active,
.salon-bottom-item:hover,
.admin-bottom-item.active,
.admin-bottom-item:hover {
    color: #ffffff;
}

.mobile-bottom-item.highlight,
.salon-bottom-item.highlight,
.admin-bottom-item.highlight {
    background: var(--primary);
    color: #ffffff !important;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    margin-top: -16px;
    box-shadow: 0 6px 16px rgba(200, 90, 36, 0.45);
    border: 3px solid #ffffff;
    padding: 0;
}

.salon-bottom-item.highlight {
    border-color: #12141a;
}

.admin-bottom-item.highlight {
    border-color: #171717;
}

.mobile-bottom-item.highlight i,
.salon-bottom-item.highlight i,
.admin-bottom-item.highlight i {
    font-size: 19px;
}

/* Auth Cards & Containers */
.auth-section {
    padding: clamp(30px, 6vw, 70px) 0;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    width: 100%;
}

/* Invoices & Receipts */
.invoice-card {
    padding: 44px;
}

/* ========================================================
   HERO SECTION (Screenshot 1)
   ======================================================== */
.hero-section,
.hero {
    position: relative;
    padding: 40px 0 80px;
    background: radial-gradient(circle at 75% 40%, #f7ded0 0%, #fcf4ef 55%);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-waves-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hero-content {
    width: 100%;
    max-width: 620px;
    min-width: 0;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 100%;
    flex-wrap: wrap;
}

.review-avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.review-avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -10px;
    object-fit: cover;
}

.review-avatars img:first-child {
    margin-left: 0;
}

.review-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Hero heading and description */
.hero-title,
.hero h1 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle,
.hero p {
    width: 100%;
    max-width: 530px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: clamp(14px, 2vw, 17px);
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 28px;
}

/* Buttons */
.hero-buttons,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hero-buttons a,
.hero-buttons button,
.hero-actions a,
.hero-actions button {
    min-height: 48px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    flex: 1 1 160px;
    text-align: center;
    border-radius: var(--radius-pill);
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hero-circle-frame {
    position: relative;
    width: clamp(240px, 42vw, 480px);
    height: clamp(240px, 42vw, 480px);
    max-width: 100%;
    border-radius: 50%;
    background: #e89f78;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(184, 76, 27, 0.22);
}

.hero-circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s ease;
}

.hero-circle-frame:hover img {
    transform: scale(1.04);
}

.hero-floating-card {
    position: absolute;
    bottom: 20px;
    left: clamp(0px, 3vw, 20px);
    max-width: calc(100% - 24px);
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================================
   POPULAR CATEGORIES (Screenshot 2)
   ======================================================== */
.categories-section {
    padding: 90px 0;
    background-color: var(--bg-peach);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 42px;
}

.category-card {
    position: relative;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #ffffff;
}

.category-overlay h3 {
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-overlay p {
    font-size: 14px;
    color: #d1d5db;
    font-weight: 500;
}

/* ========================================================
   ABOUT US SECTION (Screenshot 3)
   ======================================================== */
.about-section {
    padding: 90px 0;
    background-color: var(--bg-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 70px;
}

.about-images-wrapper {
    position: relative;
    height: 480px;
}

.about-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 5px solid #ffffff;
}

.about-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card-front {
    position: absolute;
    bottom: 0;
    right: 30px;
    width: 300px;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid #ffffff;
}

.about-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    top: 48%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 105px;
    height: 105px;
    background: #171717;
    color: #ffffff;
    border-radius: 50%;
    border: 5px solid #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.experience-badge .years {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

.experience-badge .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.about-title {
    font-size: 42px;
    margin: 16px 0 20px;
    letter-spacing: -0.5px;
}

.about-desc {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 28px;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-bottom: 36px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.feature-icon {
    color: #10b981;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #e6f7ef;
    border-radius: 50%;
    font-size: 11px;
}

/* Stats Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-subtle);
}

.stat-number {
    font-size: 44px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #171717;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

/* ========================================================
   RECOMMENDED SERVICES (Screenshot 4)
   ======================================================== */
.services-section {
    padding: 90px 0;
    background-color: var(--bg-peach);
}

.services-carousel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.service-media {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
    transform: scale(1.06);
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: var(--radius-pill);
}

.service-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-body h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.service-body p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.service-price {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #111827;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 700;
    color: #374151;
}

.service-rating .stars {
    color: var(--star-gold);
}

.service-rating .count {
    color: #9ca3af;
    font-weight: 500;
}

/* ========================================================
   FAQ SECTION (Screenshot 5)
   ======================================================== */
.faq-section {
    padding: 90px 0;
    background-color: var(--bg-cream);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.faq-visual {
    position: relative;
    height: 520px;
}

.faq-img-tall {
    width: 320px;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.faq-float-card {
    position: absolute;
    top: 40px;
    right: 20px;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    width: 200px;
}

.faq-float-card .avatars-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.faq-float-card .avatars-row img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -8px;
}

.faq-float-card .avatars-row img:first-child {
    margin-left: 0;
}

.faq-float-card .count {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #111827;
}

.faq-float-card .label {
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7280;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.accordion-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.accordion-item.active {
    border-color: var(--primary-subtle);
    box-shadow: 0 6px 20px rgba(200, 90, 36, 0.08);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.accordion-header h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
}

.accordion-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #4b5563;
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    color: var(--primary);
    transform: rotate(45deg);
}

.accordion-body {
    display: none;
    padding: 0 24px 22px;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}

.accordion-item.active .accordion-body {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ========================================================
   MODAL & BOOKING SYSTEM
   ======================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-light);
    background: #fbf7f4;
}

.modal-header h3 {
    font-size: 22px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
}

.modal-close:hover {
    color: #111827;
}

.modal-body {
    padding: 30px;
}

.modal-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 90, 36, 0.15);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.slot-btn {
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.slot-btn:hover, .slot-btn.selected {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
    background-color: #171717;
    color: #e5e7eb;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    font-size: 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14.5px;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer h5 {
    font-size: 17px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 14.5px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
}

/* ========================================================
   UNIVERSAL RESPONSIVE UTILITIES & DRAWERS
   ======================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    position: relative;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Hamburger Menu Toggle Button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-dark);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Navigation Off-Canvas Drawer */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

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

.mobile-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-drawer-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    transition: var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

/* Responsive Grid Helpers */
.portal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.salon-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.timings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: flex-end;
}

.salons-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.radius-scroll-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================================
   RESPONSIVE COMPONENT CLASSES & MOBILE HELPERS
   ======================================================== */

/* Responsive Table Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Booking Checkout Flow */
.booking-page-wrapper {
    background: linear-gradient(180deg, #fbf7f4 0%, #ffffff 100%);
    min-height: 85vh;
    padding: 48px 20px;
}

.booking-checkout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}

.booking-details-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.booking-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.slot-select-btn {
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slot-select-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.slot-select-btn.selected {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(200, 90, 36, 0.25);
}

.slot-select-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
}

.booking-summary-sticky {
    position: sticky;
    top: 100px;
}

.booking-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

/* Salon Details View */
.salon-service-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.salon-service-item:hover {
    box-shadow: var(--shadow-md);
}

.salon-service-item-cta {
    text-align: right;
    flex-shrink: 0;
}

/* Lookup Appointment View */
.lookup-form {
    display: flex;
    gap: 12px;
}

.lookup-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.lookup-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

/* Quick Modal Grid */
.modal-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Hero Near Me Pill & Radius Discovery */
.hero-near-me-pill,
.nearby-radius-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-near-me-pill .nearby-radius-label,
.nearby-radius-options .nearby-radius-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.hero-near-me-pill .radius-chip,
.nearby-radius-options .radius-chip {
    border-radius: var(--radius-pill);
    font-size: 12px;
    padding: 6px 14px;
    min-height: 34px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* ========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ======================================================== */

/* 1. TABLET LANDSCAPE & SMALL LAPTOP (<= 1024px) */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-grid, .about-grid, .faq-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-subtitle {
        margin: 0 auto 28px;
    }
    .review-badge {
        justify-content: center;
    }
    .hero-media {
        display: flex;
        justify-content: center;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-carousel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-grid,
    div[style*="grid-template-columns: 2fr 1fr"],
    div[style*="grid-template-columns: 3fr 2fr"],
    div[style*="grid-template-columns: 1.2fr 0.8fr"],
    div[style*="grid-template-columns: 1.6fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .salon-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .booking-checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .booking-summary-sticky {
        position: static;
        top: auto;
    }

    /* Super Admin & Salon Admin Sidebar Off-Canvas */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.3);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0 !important;
    }
    .admin-topbar {
        padding: 0 20px;
    }
    .admin-mobile-toggle {
        display: inline-flex !important;
    }
    .admin-sidebar-close {
        display: block !important;
    }
    .admin-content {
        padding: 24px 20px;
    }

    .salon-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.3);
    }
    .salon-sidebar.open {
        transform: translateX(0);
    }
    .salon-main {
        margin-left: 0 !important;
    }
    .salon-topbar {
        padding: 0 20px;
    }
    .mobile-toggle-btn {
        display: inline-flex !important;
    }
    .salon-sidebar-close {
        display: block !important;
    }
    .salon-content {
        padding: 24px 20px;
    }
}

/* 2. TABLET PORTRAIT & MEDIUM SCREENS (<= 768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .container, .container-wide {
        padding: 0 16px;
    }

    .navbar {
        height: 70px;
    }
    .navbar-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: inline-flex !important;
    }

    /* Show Bottom Quick Navigation */
    .mobile-bottom-bar,
    .salon-bottom-bar,
    .admin-bottom-bar {
        display: flex !important;
    }

    /* Touch Input Standardization: 16px font prevents iOS Safari auto-zoom */
    input, select, textarea, .form-control {
        font-size: 16px !important;
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
    }

    .main-content,
    .admin-content,
    .salon-content {
        padding: 20px 16px 80px !important;
    }

    .hero-section {
        padding: 36px 0 54px;
    }
    .hero-title {
        font-size: clamp(30px, 7vw, 42px);
    }
    .hero-circle-frame {
        width: 290px;
        height: 290px;
    }
    .hero-floating-card {
        right: 10px;
        bottom: 10px;
        padding: 12px 16px;
    }

    .stat-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }

    .timings-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .timings-form-grid button {
        grid-column: span 2;
    }

    .booking-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .booking-grid-2col,
    .modal-grid-2col,
    div[style*="grid-template-columns: 1fr 1fr"]:not(.keep-2col),
    div[style*="grid-template-columns: 1fr 1fr 1fr"],
    div[style*="grid-template-columns: 2fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Tables in Tablet mode */
    .table-wrapper,
    .table-responsive,
    [style*="overflow-x: auto"],
    [style*="overflow-x:auto"] {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    table.admin-table,
    table.table-custom {
        min-width: 620px;
        font-size: 13.5px;
    }

    .invoice-card {
        padding: 32px 24px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .footer {
        padding: 50px 0 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* 3. MOBILE PHONES & IPHONE (<= 640px) */
@media (max-width: 640px) {
    .container, .container-wide {
        padding: 0 14px !important;
    }

    .navbar {
        height: 64px;
    }
    .navbar-brand {
        font-size: 19px;
        gap: 8px;
    }
    .brand-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .navbar-actions .btn {
        display: none !important;
    }
    .mobile-menu-btn {
        display: inline-flex !important;
    }
    .hide-mobile {
        display: none !important;
    }

    /* Topbars on mobile */
    .admin-topbar,
    .salon-topbar {
        padding: 0 14px;
        height: 60px;
    }

    .admin-content,
    .salon-content,
    .main-content {
        padding: 14px 12px 80px !important;
    }

    .admin-card,
    .salon-card {
        padding: 16px 14px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    /* Hero section on Mobile */
    .hero,
    .hero-section {
        padding: 24px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .review-badge {
        justify-content: flex-start !important;
    }

    .hero-title,
    .hero h1 {
        font-size: clamp(1.7rem, 6.8vw, 2.25rem) !important;
        line-height: 1.22 !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        letter-spacing: -0.3px !important;
    }

    .hero-title br,
    .hero h1 br {
        display: none !important;
    }

    .hero-subtitle,
    .hero p {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 22px !important;
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    .hero-buttons,
    .hero-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
    }

    .hero-buttons a,
    .hero-buttons button,
    .hero-actions a,
    .hero-actions button {
        width: 100% !important;
        min-width: 100% !important;
        min-height: 48px !important;
        flex: none !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
    }

    .hero-near-me-pill,
    .nearby-radius-options {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        border-radius: var(--radius-md) !important;
        padding: 12px 14px !important;
        margin-top: 18px !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }

    .hero-near-me-pill .nearby-radius-label,
    .nearby-radius-options .nearby-radius-label {
        width: 100% !important;
        font-size: 13px !important;
        margin-bottom: 2px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .hero-near-me-pill .radius-chip,
    .nearby-radius-options .radius-chip {
        flex: 1 1 calc(33.333% - 8px) !important;
        min-width: 58px !important;
        min-height: 38px !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 8px 6px !important;
        font-size: 12px !important;
    }

    .hero-circle-frame {
        width: min(260px, 72vw) !important;
        height: min(260px, 72vw) !important;
        margin: 0 auto !important;
    }

    .hero-floating-card {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 14px auto 0 !important;
        width: 100% !important;
        max-width: 290px !important;
        box-sizing: border-box !important;
    }

    /* Search & Filters */
    .salon-search-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .salon-search-bar > div,
    .salon-search-bar button,
    .salon-search-bar a {
        width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* Grids stacking */
    .categories-grid,
    .services-carousel-grid,
    .stats-grid,
    .salons-directory-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .stat-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)) !important;
        gap: 10px;
        margin-bottom: 20px;
    }
    .stat-card {
        padding: 16px 14px;
    }
    .stat-card .stat-number {
        font-size: 26px !important;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    /* Booking Checkout Mobile Optimization */
    .booking-page-wrapper {
        padding: 18px 10px;
    }
    .booking-details-card,
    .booking-summary-card {
        padding: 18px 14px;
        border-radius: 14px;
    }
    .booking-grid-2col {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    .booking-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Collapse Wide Auto-Fill Grids on Mobile */
    div[style*="minmax(320px, 1fr)"],
    div[style*="minmax(300px, 1fr)"],
    div[style*="minmax(280px, 1fr)"],
    div[style*="minmax(250px, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Salon Services Mobile Stacking */
    .salon-service-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 14px;
    }
    .salon-service-item-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px dashed var(--border-light);
        padding-top: 12px;
        width: 100%;
        text-align: left;
    }

    /* Invoices on Mobile */
    .invoice-card {
        padding: 18px 14px !important;
        border-radius: 14px;
    }
    .invoice-header-flex {
        flex-direction: column;
        gap: 16px;
    }
    .invoice-meta-right {
        text-align: left !important;
    }
    .invoice-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Auth Views on Mobile */
    .auth-section {
        padding: 24px 0 !important;
    }
    .auth-card {
        padding: 24px 16px !important;
        border-radius: 16px;
    }
    .booking-details-card,
    .booking-summary-card {
        padding: 20px 14px !important;
        border-radius: 16px !important;
    }

    /* Lookup Appointment Mobile */
    .lookup-form {
        flex-direction: column;
        gap: 10px;
    }
    .lookup-form .btn {
        width: 100%;
        justify-content: center;
    }
    .lookup-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .lookup-actions {
        flex-direction: column;
        gap: 10px;
    }
    .lookup-actions .btn,
    .lookup-actions form,
    .lookup-actions form button {
        width: 100%;
        justify-content: center;
    }

    /* Quick Modal Mobile */
    .modal-overlay {
        padding: 12px;
    }
    .modal-grid-2col {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .modal-container {
        width: 100%;
        max-height: 94vh;
        border-radius: 16px;
        margin: 0;
    }
    .modal-header {
        padding: 16px 18px;
    }
    .modal-body {
        padding: 18px 14px;
    }

    .radius-scroll-container {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .radius-scroll-container::-webkit-scrollbar {
        height: 4px;
    }
    .radius-scroll-container::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
}

/* 4. COMPACT MOBILE SCREENS & IPHONE SE (<= 480px & <= 375px) */
@media (max-width: 480px) {
    .container, .container-wide {
        padding: 0 10px !important;
    }

    .main-content,
    .admin-content,
    .salon-content {
        padding: 12px 10px 76px !important;
    }

    .responsive-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .hero-title,
    .hero h1 {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }
    .hero-circle-frame {
        width: min(210px, 70vw) !important;
        height: min(210px, 70vw) !important;
    }
    .hero-near-me-pill .radius-chip,
    .nearby-radius-options .radius-chip {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 50px !important;
        font-size: 11.5px !important;
        padding: 6px 4px !important;
    }

    .stat-grid-4 {
        grid-template-columns: 1fr !important;
    }

    .timings-form-grid {
        grid-template-columns: 1fr;
    }
    .timings-form-grid button {
        grid-column: span 1;
    }

    .navbar-brand span {
        font-size: 17px;
    }

    .booking-slots-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }
    .slot-select-btn {
        font-size: 12.5px;
        padding: 10px 4px;
    }

    table.admin-table,
    table.table-custom {
        min-width: 520px;
        font-size: 12px;
    }
    .admin-table th, .table-custom th {
        padding: 8px 10px;
        font-size: 10.5px;
    }
    .admin-table td, .table-custom td {
        padding: 10px;
        font-size: 12px;
    }
}

/* 5. PRINT STYLES */
@media print {
    .navbar-wrapper,
    .admin-topbar,
    .salon-topbar,
    .admin-sidebar,
    .salon-sidebar,
    .mobile-bottom-bar,
    .salon-bottom-bar,
    .admin-bottom-bar,
    .no-print,
    .mobile-menu-btn,
    footer {
        display: none !important;
    }
    .admin-main,
    .salon-main {
        margin-left: 0 !important;
    }
    body {
        background: #ffffff !important;
        padding: 0 !important;
    }
    #printableInvoice {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}
