/* ===== Brainy Bunkers - Global Theme Variables ===== */
/* 
   Central color configuration for the entire application.
   To change colors across all pages, simply update the values here.
*/

:root {
    /* Primary Brand Colors */
    --color-primary: #ea580c;
    --color-primary-light: #f97316;
    --color-primary-dark: #c2410c;
    --color-primary-rgb: 234, 88, 12;
    
    /* Secondary Colors */
    --color-secondary: #3b82f6;
    --color-secondary-light: #60a5fa;
    --color-secondary-dark: #2563eb;
    --color-secondary-rgb: 59, 130, 246;
    
    /* Success/Green */
    --color-success: #28a745;
    --color-success-light: #48c774;
    --color-success-dark: #1e7e34;
    --color-success-rgb: 40, 167, 69;
    
    /* Warning/Yellow */
    --color-warning: #ffc107;
    --color-warning-light: #ffda6a;
    --color-warning-dark: #e0a800;
    --color-warning-rgb: 255, 193, 7;
    
    /* Danger/Red */
    --color-danger: #dc3545;
    --color-danger-light: #f1aeb5;
    --color-danger-dark: #b02a37;
    --color-danger-rgb: 220, 53, 69;
    
    /* Info/Cyan */
    --color-info: #17a2b8;
    --color-info-light: #3dd5f3;
    --color-info-dark: #0d6efd;
    --color-info-rgb: 23, 162, 184;
    
    /* Purple */
    --color-purple: #6f42c1;
    --color-purple-light: #9c27b0;
    --color-purple-rgb: 111, 66, 193;
    
    /* Background Colors */
    --color-bg-dark: #1a1a2e;
    --color-bg-dark-secondary: #302b63;
    --color-bg-dark-tertiary: #24243e;
    --color-bg-light: #f0f2f5;
    --color-bg-white: #ffffff;
    
    /* Text Colors */
    --color-text-dark: #333333;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    --color-text-white: #ffffff;
    
    /* Border Colors */
    --color-border: #e0e0e0;
    --color-border-light: #f0f0f0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    --gradient-dark: linear-gradient(135deg, var(--color-bg-dark), var(--color-bg-dark-secondary), var(--color-bg-dark-tertiary));
    --gradient-purple: linear-gradient(135deg, #667eea, #764ba2);
    
    /* Shadows */
    --shadow-primary: 0 6px 20px rgba(var(--color-primary-rgb), 0.4);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 25px;
}

/* ===== Common Utility Classes ===== */

/* Brand Logo Icon - Bed */
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 10px;
    color: #fff;
    font-size: 1.4rem;
}
.brand-logo svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Primary colored elements */
.text-primary { color: var(--color-primary) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-primary-gradient { background: var(--gradient-primary) !important; }
.border-primary { border-color: var(--color-primary) !important; }

/* Brand text with gradient */
.brand-text {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Primary button style */
.btn-primary-gradient {
    background: var(--gradient-primary);
    border: none;
    color: var(--color-text-white);
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: var(--color-text-white);
}

/* Icon backgrounds */
.icon-bg-primary {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
}

.icon-bg-secondary {
    background: rgba(var(--color-secondary-rgb), 0.1);
    color: var(--color-secondary);
}

.icon-bg-success {
    background: rgba(var(--color-success-rgb), 0.1);
    color: var(--color-success);
}

/* Hero sections */
.hero-gradient {
    background: var(--gradient-dark);
}

.hero-glow::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.1), transparent 70%);
    top: -100px;
    right: -50px;
    border-radius: 50%;
}

/* Navbar brand */
.navbar-brand span {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Login/Action button */
.btn-login {
    background: var(--gradient-primary);
    border: none;
    color: var(--color-text-white);
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: var(--color-text-white);
}

/* Form focus states */
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

/* Links */
.link-primary {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.link-primary:hover {
    color: var(--color-primary-light);
}

/* Cards */
.card-themed {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.card-themed:hover {
    box-shadow: var(--shadow-card-hover);
}

/* Footer */
.footer-themed {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Utility Classes for Inline Style Replacement ===== */

/* Display utilities */
.d-none-initial { display: none; }

/* Text colors */
.text-color-555 { color: #555; }
.text-color-666 { color: #666; }
.text-color-777 { color: #777; }
.text-color-888 { color: #888; }
.text-color-999 { color: #999; }
.text-color-aaa { color: #aaa; }

/* Font sizes */
.fs-075 { font-size: 0.75rem; }
.fs-078 { font-size: 0.78rem; }
.fs-08 { font-size: 0.8rem; }
.fs-082 { font-size: 0.82rem; }
.fs-085 { font-size: 0.85rem; }
.fs-088 { font-size: 0.88rem; }
.fs-09 { font-size: 0.9rem; }
.fs-092 { font-size: 0.92rem; }
.fs-095 { font-size: 0.95rem; }
.fs-1 { font-size: 1rem; }
.fs-105 { font-size: 1.05rem; }
.fs-11 { font-size: 1.1rem; }
.fs-12 { font-size: 1.2rem; }
.fs-13 { font-size: 1.3rem; }
.fs-14 { font-size: 1.4rem; }
.fs-15 { font-size: 1.5rem; }
.fs-16 { font-size: 1.6rem; }
.fs-18 { font-size: 1.8rem; }
.fs-2 { font-size: 2rem; }
.fs-22 { font-size: 2.2rem; }
.fs-25 { font-size: 2.5rem; }
.fs-3 { font-size: 3rem; }

/* Width utilities */
.w-3rem { width: 3rem; }
.h-15rem { height: 1.5rem; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Flex utilities */
.flex-row-between { 
    flex-direction: row; 
    justify-content: space-between; 
    align-items: center; 
}

/* Gap utilities */
.gap-2px { gap: 2px; }
.gap-4px { gap: 4px; }
.gap-6px { gap: 6px; }
.gap-8px { gap: 8px; }
.gap-10px { gap: 10px; }
.gap-12px { gap: 12px; }
.gap-16px { gap: 16px; }

/* Min-width utilities */
.min-w-120 { min-width: 120px; }
.min-w-140 { min-width: 140px; }

/* Max-width utilities */
.max-w-200 { max-width: 200px; }
.max-w-300 { max-width: 300px; }
.max-w-400 { max-width: 400px; }
.max-w-500 { max-width: 500px; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }

/* Line height */
.lh-14 { line-height: 1.4; }
.lh-15 { line-height: 1.5; }
.lh-16 { line-height: 1.6; }
.lh-17 { line-height: 1.7; }

/* Object fit */
.object-cover { object-fit: cover; }

/* Z-index */
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-10 { z-index: 10; }

/* Form switch large */
.form-switch-lg .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

/* Settings card row layout */
.settings-card-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Section header with icon */
.section-header-icon {
    color: #555;
}

/* Stat card variations */
.stat-card-settings {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Badge styles */
.badge-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Table utilities */
.table-cell-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Image containers */
.img-thumbnail-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.img-thumbnail-md {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.img-thumbnail-lg {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

/* Avatar sizes */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

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

/* Icon sizes */
.icon-sm { font-size: 1rem; }
.icon-md { font-size: 1.5rem; }
.icon-lg { font-size: 2rem; }
.icon-xl { font-size: 2.5rem; }
.icon-xxl { font-size: 3rem; }

/* Background opacity variations */
.bg-white-05 { background: rgba(255, 255, 255, 0.05); }
.bg-white-08 { background: rgba(255, 255, 255, 0.08); }
.bg-white-10 { background: rgba(255, 255, 255, 0.1); }
.bg-black-50 { background: rgba(0, 0, 0, 0.5); }
.bg-black-70 { background: rgba(0, 0, 0, 0.7); }

/* Border radius extras */
.rounded-8 { border-radius: 8px; }
.rounded-12 { border-radius: 12px; }
.rounded-16 { border-radius: 16px; }
.rounded-20 { border-radius: 20px; }
.rounded-24 { border-radius: 24px; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

/* Transitions */
.transition-all { transition: all 0.3s ease; }
.transition-fast { transition: all 0.2s ease; }

/* Navbar backdrop */
.navbar-backdrop {
    background: rgba(15, 12, 41, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Stat icon backgrounds */
.stat-icon-primary { background: rgba(234, 88, 12, 0.1); color: var(--color-primary); }
.stat-icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-icon-green { background: rgba(40, 167, 69, 0.1); color: #28a745; }
.stat-icon-yellow { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.stat-icon-purple { background: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.stat-icon-orange { background: rgba(255, 152, 0, 0.1); color: #ff9800; }
.stat-icon-cyan { background: rgba(0, 212, 255, 0.1); color: #00bcd4; }
.stat-icon-red { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.stat-icon-teal { background: rgba(0, 188, 212, 0.1); color: #00bcd4; }
.stat-icon-pink { background: rgba(233, 30, 99, 0.1); color: #e91e63; }

/* Section headers */
.section-title { color: #555; }

/* Search input styled */
.search-input-styled {
    border-radius: 14px;
    border: 2px solid #e9ecef;
    padding: 12px 18px;
    font-size: 0.9rem;
}

/* Icon with primary color large */
.icon-primary-lg {
    font-size: 2.5rem;
    color: var(--color-primary);
}

/* Icon with primary color medium */
.icon-primary-md {
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* Muted text styles */
.text-muted-50 { color: rgba(255, 255, 255, 0.5); }
.text-muted-55 { color: rgba(255, 255, 255, 0.55); }
.text-muted-40 { color: rgba(255, 255, 255, 0.4); }

/* Position relative inline-block */
.pos-rel-inline { position: relative; display: inline-block; }

/* Button inline auto width */
.btn-inline-auto {
    display: inline-block;
    width: auto;
    padding: 12px 28px;
}

/* Modal header purple gradient */
.modal-header-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* PG select width */
.pg-select-width { max-width: 300px; }

/* Sharing section styles */
.sharing-section-title { font-size: 0.92rem; margin-bottom: 14px; }
.sharing-section-hint { font-weight: 400; font-size: 0.8rem; color: #999; margin-left: 6px; }

/* User info box */
.user-info-box { min-height: 58px; }

/* Preview images */
.preview-img { max-width: 250px; max-height: 200px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.profile-preview-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #667eea; }

/* Input group rounded borders */
.input-group-start { border-radius: 12px 0 0 12px; }
.input-group-end { border-radius: 0 12px 12px 0; }
.input-group-start-dark { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); border-radius: 12px 0 0 12px; }
.input-group-end-dark { border-radius: 0 12px 12px 0; cursor: pointer; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); }

/* Toggle password button */
.btn-toggle-password { cursor: pointer; }

/* Link primary bold */
.link-primary-bold { color: var(--color-primary); font-weight: 600; text-decoration: none; }

/* No PG prompt */
.no-pg-prompt { text-align: center; padding: 30px 20px; }

/* Icon sizes */
.icon-lg-muted { font-size: 2.5rem; color: #ccc; }
.icon-xl-muted { font-size: 3rem; color: #ddd; }

/* Font sizes */
.fs-2rem { font-size: 2rem; }
.fs-15rem { font-size: 1.5rem; }

/* Background */
.bg-light-gray { background: #f8f9fc; }

/* CTA description */
.cta-desc { color: rgba(255,255,255,0.65); max-width: 500px; margin: 0 auto; }

/* Footer description */
.footer-desc { color: rgba(255,255,255,0.4); font-size: 0.9rem; max-width: 300px; }

/* Profile avatar image */
.profile-avatar-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,0.2); box-shadow: 0 8px 30px rgba(var(--color-primary-rgb),0.3); }

/* Change photo button */
.change-photo-btn { position: absolute; bottom: 0; right: 0; width: 32px; height: 32px; padding: 0; border: 2px solid #fff; }

/* Icon variations */
.icon-lg-light { font-size: 2.5rem; color: rgba(255,255,255,0.3); }
.icon-md-primary { font-size: 1.3rem; color: var(--color-primary); }

/* Text variations */
.text-muted-30 { color: rgba(255,255,255,0.3); }
.text-primary-orange { color: var(--color-primary); }

/* PG display box */
.pg-display-box { background: rgba(var(--color-primary-rgb),0.1); border: 1px solid rgba(var(--color-primary-rgb),0.3); border-radius: 12px; padding: 14px 16px; color: #fff; display: flex; align-items: center; gap: 10px; }

/* Line heights */
.lh-18 { line-height: 1.8; }

/* Width auto */
.w-auto { width: auto; }

/* Footer styles */
.footer-hr { border-color: rgba(255,255,255,0.08); }
.footer-copyright { color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* Action icon variations */
.action-icon-primary { background: rgba(var(--color-primary-rgb),0.1); color: var(--color-primary); }
.action-icon-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.action-icon-danger { background: rgba(220,53,69,0.1); color: #dc3545; }

/* ===== Tablet Responsive Optimizations (768px) ===== */
@media (max-width: 768px) {
    /* Reduce padding for tablet */
    .container { padding-left: 16px !important; padding-right: 16px !important; }
    
    /* Tablet compact hero */
    .hero-section { padding: 50px 0 40px !important; }
    .hero-title { font-size: 1.8rem !important; }
    .hero-subtitle { font-size: 0.95rem !important; }
    
    /* Tablet compact cards */
    .card-body { padding: 20px !important; }
    .booking-card-body { padding: 24px !important; }
    .sidebar-card-bs { padding: 20px !important; }
    
    /* Tablet compact forms */
    .form-control, .form-select { padding: 11px 14px !important; }
    .form-label { font-size: 0.88rem !important; }
    
    /* Tablet compact modals */
    .modal-body { padding: 20px !important; }
    
    /* Tablet compact page headers */
    .page-hero { padding: 28px 0 !important; }
    .page-hero h1 { font-size: 1.6rem !important; }
    .booking-hero h1 { font-size: 1.6rem !important; }
    
    /* Tablet compact summary */
    .summary-card { padding: 18px 20px !important; }
    
    /* Tablet compact stat cards */
    .stat-card-bs, .action-card-bs { padding: 18px !important; }
    
    /* Tablet compact tables */
    .table { font-size: 0.85rem !important; }
    .table th, .table td { padding: 10px 8px !important; }
    
    /* Tablet admin table */
    .admin-table-bs { font-size: 0.82rem !important; }
    
    /* Tablet member cards */
    .member-card { padding: 14px !important; }
}

/* ===== Mobile Responsive Optimizations ===== */
@media (max-width: 576px) {
    /* Compact spacing variables for mobile */
    :root {
        --spacing-xs: 4px;
        --spacing-sm: 8px;
        --spacing-md: 12px;
        --spacing-lg: 16px;
    }
    
    /* Global body padding reduction */
    body { font-size: 14px !important; }
    
    /* Container padding reduction */
    .container { padding-left: 12px !important; padding-right: 12px !important; }
    
    /* Compact PG cards */
    .pg-card-bs .card-body,
    .pg-card .card-body { padding: 12px !important; }
    .pg-card-bs .card-footer,
    .pg-card .card-footer { padding: 10px 12px !important; gap: 6px !important; }
    .pg-card-bs .card-title,
    .pg-card .card-title { font-size: 1rem !important; margin-bottom: 4px !important; }
    .pg-card-img-wrap { height: 140px !important; }
    .pg-card-price-val { font-size: 1.1rem !important; }
    .pg-card-price-row { margin-top: 10px !important; padding-top: 10px !important; }
    
    /* Compact hero sections */
    .hero-section { min-height: auto !important; padding: 60px 0 40px !important; }
    .hero-title { font-size: 1.6rem !important; line-height: 1.2 !important; margin-bottom: 12px !important; }
    .hero-subtitle { font-size: 0.9rem !important; margin-bottom: 20px !important; }
    .hero-badge { padding: 4px 12px !important; font-size: 0.75rem !important; margin-bottom: 12px !important; }
    .hero-cta { gap: 8px !important; }
    .hero-cta .btn { padding: 10px 20px !important; font-size: 0.9rem !important; }
    .hero-trust { margin-top: 16px !important; }
    .hero-stat-card { padding: 12px !important; }
    .hero-stat-number { font-size: 1.6rem !important; }
    .hero-stat-label { font-size: 0.7rem !important; }
    .hero-visual { padding: 16px !important; border-radius: 16px !important; }
    
    /* Compact sections */
    .section-badge { padding: 4px 10px !important; font-size: 0.7rem !important; }
    .section-heading { font-size: 1.4rem !important; }
    .section-desc { font-size: 0.9rem !important; }
    
    /* Compact step cards */
    .step-card-bs { padding: 24px 16px !important; }
    .step-num { width: 28px !important; height: 28px !important; font-size: 0.75rem !important; top: -12px !important; }
    .step-icon-wrap { width: 50px !important; height: 50px !important; font-size: 1.4rem !important; margin-bottom: 12px !important; }
    .step-card-bs h4 { font-size: 1rem !important; }
    .step-card-bs p { font-size: 0.8rem !important; }
    
    /* Compact feature cards */
    .feature-card-bs { padding: 20px 14px !important; }
    .feature-icon-wrap { width: 48px !important; height: 48px !important; font-size: 1.3rem !important; margin-bottom: 10px !important; }
    .feature-card-bs h5 { font-size: 0.95rem !important; }
    .feature-card-bs p { font-size: 0.8rem !important; }
    
    /* Compact login/register cards */
    .login-card, .register-card, .form-card, .inquiry-card { 
        padding: 24px 20px !important; 
        border-radius: 16px !important;
        max-width: 100% !important;
    }
    .login-card h2, .register-card h2, .form-card h2 { font-size: 1.4rem !important; }
    .login-card .subtitle, .register-card .subtitle { font-size: 0.85rem !important; margin-bottom: 20px !important; }
    
    /* Compact OTP inputs */
    .otp-input { width: 38px !important; height: 44px !important; font-size: 1.2rem !important; }
    
    /* Compact CTA section */
    .cta-section { padding: 30px 20px !important; border-radius: 16px !important; }
    .cta-section h2 { font-size: 1.3rem !important; }
    .cta-section p { font-size: 0.85rem !important; }
    .btn-cta { padding: 12px 24px !important; font-size: 0.9rem !important; }
    
    /* Compact footer */
    .footer-section { padding-top: 30px !important; }
    .footer-section h6 { font-size: 0.9rem !important; margin-bottom: 10px !important; }
    .footer-link { font-size: 0.8rem !important; }
    .social-icon { width: 34px !important; height: 34px !important; font-size: 0.95rem !important; }
    
    /* Compact admin/owner dashboard */
    .stat-card-bs, .action-card-bs { padding: 14px !important; border-radius: 12px !important; }
    .stat-card-bs h3 { font-size: 1.6rem !important; }
    .stat-card-bs p { font-size: 0.8rem !important; }
    .action-card-bs h5 { font-size: 0.95rem !important; }
    .action-card-bs p { font-size: 0.78rem !important; }
    .action-card-bs .icon { width: 40px !important; height: 40px !important; font-size: 1.1rem !important; }
    
    /* Compact tables */
    .table { font-size: 0.8rem !important; }
    .table th, .table td { padding: 8px 6px !important; }
    
    /* Compact booking disabled message */
    .alert-warning { font-size: 0.75rem !important; padding: 6px 10px !important; }
    
    /* Tighter button spacing in card footers */
    .pg-card-footer { flex-wrap: wrap !important; gap: 4px !important; }
    .pg-card-footer .btn { flex: 1 1 auto !important; min-width: 70px !important; padding: 6px 8px !important; font-size: 0.78rem !important; }
    
    /* Profile page compact */
    .profile-avatar-img { width: 70px !important; height: 70px !important; }
    .change-photo-btn { width: 26px !important; height: 26px !important; }
    
    /* Compact page headers */
    .page-hero { padding: 20px 0 !important; }
    .page-hero h1 { font-size: 1.4rem !important; }
    
    /* ===== New Mobile Optimizations ===== */
    
    /* Compact navbar */
    .navbar { padding: 8px 0 !important; }
    .navbar-brand { font-size: 1rem !important; }
    .navbar-brand-icon { font-size: 1.2rem !important; }
    .nav-link { font-size: 0.85rem !important; padding: 6px 10px !important; }
    .btn-login { padding: 6px 16px !important; font-size: 0.85rem !important; }
    
    /* Compact form controls */
    .form-control, .form-select { 
        padding: 10px 12px !important; 
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }
    .form-control-bs, .form-select-bs {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }
    .form-label, .form-label-bs { font-size: 0.82rem !important; margin-bottom: 4px !important; }
    .form-hint-bs { font-size: 0.72rem !important; }
    
    /* Compact buttons */
    .btn { padding: 8px 16px !important; font-size: 0.85rem !important; border-radius: 10px !important; }
    .btn-sm { padding: 5px 12px !important; font-size: 0.78rem !important; }
    .btn-lg { padding: 10px 20px !important; font-size: 0.95rem !important; }
    .btn-gradient { padding: 10px 20px !important; font-size: 0.9rem !important; }
    
    /* Compact modals */
    .modal-dialog { margin: 10px !important; }
    .modal-content { border-radius: 14px !important; }
    .modal-header { padding: 12px 16px !important; }
    .modal-title { font-size: 1.1rem !important; }
    .modal-body { padding: 16px !important; }
    .modal-footer { padding: 10px 16px !important; gap: 8px !important; }
    
    /* Compact cards */
    .card { border-radius: 12px !important; }
    .card-body { padding: 16px !important; }
    .card-header { padding: 12px 16px !important; }
    .card-footer { padding: 10px 16px !important; }
    
    /* Compact alerts */
    .alert { padding: 10px 14px !important; font-size: 0.82rem !important; border-radius: 10px !important; }
    
    /* Compact badges */
    .badge { padding: 4px 8px !important; font-size: 0.7rem !important; }
    
    /* Compact spacing utilities */
    .mb-3 { margin-bottom: 0.75rem !important; }
    .mb-4 { margin-bottom: 1rem !important; }
    .mt-3 { margin-top: 0.75rem !important; }
    .mt-4 { margin-top: 1rem !important; }
    .py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
    .p-3 { padding: 0.75rem !important; }
    .p-4 { padding: 1rem !important; }
    .gap-2 { gap: 0.375rem !important; }
    .gap-3 { gap: 0.5rem !important; }
    .gap-4 { gap: 0.75rem !important; }
    .g-3 { gap: 0.75rem !important; }
    .g-4 { gap: 1rem !important; }
    
    /* Row gutters */
    .row.g-4 { --bs-gutter-x: 0.75rem !important; --bs-gutter-y: 0.75rem !important; }
    .row.g-3 { --bs-gutter-x: 0.5rem !important; --bs-gutter-y: 0.5rem !important; }
    
    /* Sidebar cards compact */
    .sidebar-card-bs { padding: 16px !important; border-radius: 12px !important; margin-bottom: 12px !important; }
    .sidebar-card-bs h5 { font-size: 0.92rem !important; margin-bottom: 10px !important; }
    .sidebar-card-bs p { font-size: 0.82rem !important; }
    .tips-list li { padding: 6px 0 !important; font-size: 0.8rem !important; }
    
    /* Booking page compact */
    .booking-card-bs { border-radius: 14px !important; }
    .booking-card-header { padding: 16px 18px !important; }
    .booking-card-header h3 { font-size: 1.05rem !important; }
    .booking-card-header p { font-size: 0.8rem !important; }
    .booking-card-body { padding: 18px !important; }
    .booking-hero { padding: 28px 0 24px !important; }
    .booking-hero h1 { font-size: 1.4rem !important; }
    .booking-hero p { font-size: 0.88rem !important; }
    
    /* Summary card compact */
    .summary-card { padding: 14px 16px !important; border-radius: 12px !important; margin-top: 14px !important; }
    .summary-card h5 { font-size: 0.88rem !important; margin-bottom: 10px !important; }
    .summary-row { padding: 6px 0 !important; font-size: 0.82rem !important; }
    .summary-total { margin: 10px -16px -14px !important; padding: 12px 16px !important; }
    
    /* Sharing options compact */
    .sharing-option { padding: 12px !important; border-radius: 10px !important; }
    .sharing-option .sharing-type { font-size: 0.88rem !important; }
    .sharing-option .sharing-price { font-size: 0.95rem !important; }
    .sharing-option .sharing-beds { font-size: 0.72rem !important; }
    
    /* PG info card compact */
    .pg-info-card-bs { padding: 12px 14px !important; border-radius: 12px !important; margin-top: 12px !important; }
    .pg-info-card-bs h5 { font-size: 0.92rem !important; }
    .pg-info-card-bs .price-tag { padding: 3px 10px !important; font-size: 0.78rem !important; }
    
    /* Login/Success prompts compact */
    .login-prompt-bs { padding: 24px 16px !important; }
    .login-prompt-bs .icon-circle { width: 56px !important; height: 56px !important; margin-bottom: 14px !important; }
    .login-prompt-bs .icon-circle i { font-size: 1.6rem !important; }
    .login-prompt-bs h4 { font-size: 1.1rem !important; }
    .login-prompt-bs p { font-size: 0.85rem !important; margin-bottom: 14px !important; }
    .success-card-bs { padding: 24px 16px !important; }
    .success-card-bs .check-circle { width: 56px !important; height: 56px !important; }
    .success-card-bs .check-circle i { font-size: 1.6rem !important; }
    .success-card-bs h4 { font-size: 1.1rem !important; }
    
    /* Owner/Admin pages compact */
    .page-content { padding-bottom: 40px !important; }
    .stat-card { padding: 12px !important; border-radius: 10px !important; }
    .stat-card .stat-number { font-size: 1.4rem !important; }
    .stat-card .stat-label { font-size: 0.75rem !important; }
    .stat-card .stat-icon { width: 36px !important; height: 36px !important; font-size: 1rem !important; }
    
    /* Member modal compact */
    .unified-step { padding: 16px 0 !important; }
    .user-search-input { padding: 10px 14px !important; font-size: 0.9rem !important; }
    
    /* Payment cards compact */
    .member-card { padding: 12px !important; border-radius: 10px !important; }
    .member-card .member-name { font-size: 0.92rem !important; }
    .member-card .member-info { font-size: 0.78rem !important; }
    
    /* Month navigation compact */
    .month-nav-btn { width: 34px !important; height: 34px !important; font-size: 0.9rem !important; }
    .month-selector input { font-size: 0.88rem !important; padding: 6px 10px !important; }
    
    /* Collection summary compact */
    .collection-summary { padding: 14px 16px !important; border-radius: 10px !important; }
    .collection-summary .amount { font-size: 1.2rem !important; }
    .collection-summary .label { font-size: 0.75rem !important; }
    
    /* Due date warning compact */
    .due-date-warning { padding: 10px 14px !important; font-size: 0.82rem !important; border-radius: 10px !important; }
    
    /* Empty states compact */
    .empty-state { padding: 30px 20px !important; }
    .empty-state i { font-size: 2.5rem !important; margin-bottom: 12px !important; }
    .empty-state h5 { font-size: 1rem !important; }
    .empty-state p { font-size: 0.82rem !important; }
    
    /* PG details page compact */
    .pg-hero { padding: 24px 0 !important; }
    .pg-hero h1 { font-size: 1.3rem !important; }
    .pg-detail-card { padding: 16px !important; border-radius: 12px !important; }
    .pg-detail-card h5 { font-size: 0.95rem !important; }
    
    /* Room/Bed cards compact */
    .room-card { padding: 12px !important; border-radius: 10px !important; }
    .bed-badge { padding: 4px 10px !important; font-size: 0.72rem !important; }
    
    /* Admin table compact */
    .admin-table-bs { font-size: 0.78rem !important; }
    .admin-table-bs th, .admin-table-bs td { padding: 8px 10px !important; }
    .btn-icon-bs { width: 30px !important; height: 30px !important; font-size: 0.8rem !important; }
    
    /* Inquiry page compact */
    .inquiry-hero { padding: 28px 0 24px !important; }
    .inquiry-hero h1 { font-size: 1.3rem !important; }
    .inquiry-card { padding: 20px 16px !important; border-radius: 14px !important; }
    
    /* Available beds page compact */
    .filter-section { padding: 14px 16px !important; border-radius: 10px !important; }
    .bed-count-badge { padding: 3px 8px !important; font-size: 0.7rem !important; }
    
    /* Profile page compact */
    .profile-hero { padding: 28px 0 24px !important; }
    .profile-card { padding: 16px !important; border-radius: 12px !important; }
    .profile-card h5 { font-size: 0.95rem !important; }
    .profile-info-row { padding: 10px 0 !important; font-size: 0.85rem !important; }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    body { font-size: 13px !important; }
    .container { padding-left: 10px !important; padding-right: 10px !important; }
    .hero-title { font-size: 1.4rem !important; }
    .hero-cta .btn { padding: 8px 16px !important; font-size: 0.85rem !important; width: 100% !important; }
    .pg-card-footer .btn { font-size: 0.72rem !important; padding: 5px 6px !important; }
    .otp-input { width: 34px !important; height: 40px !important; }
    .login-card, .register-card { padding: 20px 16px !important; }
    
    /* Extra compact forms */
    .form-control, .form-select { padding: 8px 10px !important; font-size: 0.85rem !important; }
    .form-label { font-size: 0.78rem !important; }
    
    /* Extra compact buttons */
    .btn { padding: 7px 14px !important; font-size: 0.82rem !important; }
    .btn-gradient { padding: 9px 16px !important; }
    
    /* Extra compact cards */
    .card-body { padding: 12px !important; }
    .booking-card-body { padding: 14px !important; }
    
    /* Extra compact modals */
    .modal-body { padding: 12px !important; }
    .modal-header, .modal-footer { padding: 10px 12px !important; }
    
    /* Extra compact sharing options */
    .sharing-option { padding: 10px 8px !important; }
    .sharing-option .sharing-type { font-size: 0.82rem !important; }
    .sharing-option .sharing-price { font-size: 0.88rem !important; }
    
    /* Extra compact summary */
    .summary-card { padding: 12px !important; }
    .summary-row { font-size: 0.78rem !important; }
    
    /* Extra compact navbar */
    .navbar-brand span { font-size: 0.95rem !important; }
    .nav-link { font-size: 0.8rem !important; padding: 5px 8px !important; }
}
