/**
 * Lurnixe Health Card System - Public Custom Theme
 * June 2026
 */

/* Root variables for our design system */
:root {
    --primary-blue: #1A5276;
    --primary-blue-hover: #154360;
    --primary-green: #27AE60;
    --primary-green-hover: #219653;
    --light-blue: #D6EAF8;
    --light-green: #D5F5E3;
    --dark-text: #1C2833;
    --body-bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --danger-red: #E74C3C;
    --warning-orange: #E67E22;
    --muted-gray: #7F8C8D;
    --border-color: #E5E8E8;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-code: 'Courier New', Courier, monospace;
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--body-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Top info bar styling */
.top-info-bar {
    background-color: var(--primary-blue);
    font-size: 0.85rem;
    font-family: var(--font-heading);
}

/* Brand Logo Styling */
.brand-logo-container {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo-container {
    transform: rotate(15deg);
}

.brand-icon {
    color: #FFFFFF;
    font-size: 1.4rem;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.1;
    color: var(--primary-blue);
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--muted-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Navbar Nav Links */
.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-text);
    padding: 0.75rem 0.9rem !important;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s ease;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 1rem;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Buttons Design */
.btn {
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.3);
}

.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-success:hover {
    background-color: var(--primary-green-hover);
    border-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #EBF5FB 0%, #E8F8F5 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(39, 174, 96, 0.05);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted-gray);
    margin-bottom: 2rem;
}

/* Cards System */
.custom-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Feature Icons */
.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.bg-light-blue {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.bg-light-green {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.bg-light-danger {
    background-color: #FADBD8;
    color: var(--danger-red);
}

.bg-light-warning {
    background-color: #FDEBD0;
    color: var(--warning-orange);
}

/* Stats Section */
.stats-section {
    background-color: #FFFFFF;
    box-shadow: 0 15px 40px rgba(26, 82, 118, 0.08) !important;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 15px;
    border-top: 4px solid var(--primary-green);
}

.stat-item {
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

/* How It Works Section */
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

/* QR Code Scan Profile Page */
.qr-profile-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    background-color: #FFFFFF;
    overflow: hidden;
}

.qr-profile-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
    padding: 30px;
    text-align: center;
}

.qr-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    object-fit: cover;
    margin-top: -60px;
    background-color: #FFFFFF;
}

/* Badges */
.badge-active {
    background-color: var(--primary-green);
    color: #FFFFFF;
}

.badge-expired {
    background-color: var(--warning-orange);
    color: #FFFFFF;
}

.badge-suspended {
    background-color: #F1C40F;
    color: #FFFFFF;
}

.badge-deactivated {
    background-color: var(--danger-red);
    color: #FFFFFF;
}

/* Social links hover */
.hover-white:hover {
    color: #FFFFFF !important;
}

/* Sticky top navbar glassmorphism fallback */
@supports (backdrop-filter: blur(10px)) {
    .navbar.sticky-top {
        background-color: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(10px);
    }
}

/* Media Queries for Responsive Design */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .stats-section {
        margin-top: 0;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* Mobile Hero Card Enhancement */
.mobile-hero-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}
.mobile-hero-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #2C3E50;
}
.mobile-hero-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #7F8C8D;
}
.mobile-hero-card .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
    transition: all 0.2s ease;
}
.mobile-hero-card .btn-primary {
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.15);
}
.mobile-hero-card .btn:active {
    transform: scale(0.98);
}

/* Mobile Viewport Safety & Shaking Resets */
html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

/* Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #85929e;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    height: 100%;
    min-width: 0;
    padding: 2px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.58rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    text-align: center;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

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

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-2px);
    color: var(--primary-green);
}

/* Floating Center Scanner Button (FAB) */
.mobile-bottom-nav .scan-fab-item {
    position: relative;
    overflow: visible;
}

.mobile-bottom-nav .scan-fab-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(to right, #007bff, #20c997);
    border: 4px solid #ffffff;
    box-shadow: 0 6px 18px rgba(32, 201, 151, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    color: #ffffff;
    font-size: 1.45rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav .scan-fab-item:hover .scan-fab-btn {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(17, 120, 100, 0.45);
}

.mobile-bottom-nav .scan-label {
    margin-top: 2px;
    color: #85929e;
    font-weight: 600;
    font-size: 0.58rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    text-align: center;
}

.mobile-bottom-nav .scan-fab-item:hover .scan-label {
    color: var(--primary-blue);
}

/* Prevent layout clipping from sticky footer */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px !important;
    }
}

/* Mobile layout transform alignment safety reset */
@media (max-width: 767.98px) {
    .custom-card {
        transform: none !important;
    }
}

/* Mobile App Layout Styles (d-block d-md-none) */
.mobile-app-container {
    background-color: #f7f9fa;
    padding: 0 0 75px 0;
}

/* Mobile Search Banner */
.mobile-search-banner {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    border-radius: 20px;
    padding: 24px;
    color: #ffffff;
    position: relative;
    box-shadow: 0 10px 25px rgba(26, 82, 118, 0.15);
    margin-bottom: 25px;
    overflow: hidden;
}

.mobile-search-banner::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    right: -30px;
    pointer-events: none;
}

.mobile-search-banner-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #ffffff !important;
}

.mobile-search-banner-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.4;
}

.mobile-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-search-input-group {
    position: relative;
    flex: 1;
}

.mobile-search-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 1rem;
}

.mobile-search-input {
    width: 100%;
    height: 48px;
    padding: 10px 15px 10px 42px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--dark-text);
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mobile-search-filter-btn {
    height: 48px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background-color: #ffffff;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

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

/* Horizontal Categories Scrollbar */
.mobile-category-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 16px;
    padding: 5px 4px 15px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.mobile-category-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.mobile-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    min-width: 76px;
}

.mobile-category-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-category-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted-gray);
    font-family: var(--font-heading);
}

.mobile-category-item.active .mobile-category-icon-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2980b9 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(26, 82, 118, 0.25);
    transform: scale(1.05);
}

.mobile-category-item.active .mobile-category-label {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Mobile Doctor Cards */
.mobile-doctors-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.mobile-doctors-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.mobile-doctors-viewall {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.mobile-doctor-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.02);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    position: relative;
}

.mobile-doctor-photo {
    width: 75px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    background-color: #eaecee;
}

.mobile-doctor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-doctor-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mobile-doctor-specialization {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted-gray);
    margin-bottom: 1px;
}

.mobile-doctor-degree {
    font-size: 0.72rem;
    color: var(--muted-gray);
    margin-bottom: 4px;
}

.mobile-doctor-rating {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f1c40f;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.mobile-doctor-rating span {
    color: var(--muted-gray);
    font-weight: 600;
}

.mobile-doctor-location {
    font-size: 0.74rem;
    color: var(--muted-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-doctor-location i {
    color: var(--primary-blue);
}

.mobile-doctor-availability {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.availability-today {
    background-color: #e8f8f5;
    color: #27ae60;
}

.availability-tomorrow {
    background-color: #fdf2e9;
    color: #e67e22;
}

.mobile-doctor-book-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-doctor-book-btn:active {
    background-color: var(--primary-blue);
    color: #ffffff;
    transform: scale(0.96);
}

/* Premium Scanner Redesign */
.scanner-viewport-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px !important; /* more compact and centered */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 1;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.scanner-frame-overlay {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border: 2px solid rgba(39, 174, 96, 0.4);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
    z-index: 5;
    pointer-events: none;
}

.scanner-frame-overlay::before,
.scanner-frame-overlay::after,
.scanner-frame-overlay span::before,
.scanner-frame-overlay span::after {
    border-color: #27ae60 !important; /* glowing neon green corners */
    border-width: 4px 0 0 4px !important;
}

.scanner-laser {
    height: 2px;
    background: linear-gradient(to right, transparent, #27ae60, transparent);
    box-shadow: 0 0 8px #27ae60;
}

/* Stats Grid Borders on Mobile Viewports */
@media (max-width: 991.98px) {
    .stat-item {
        border-right: none !important;
        border-bottom: none !important;
        padding-bottom: 12px;
        margin-bottom: 0 !important;
    }
    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--border-color) !important;
    }
    .stat-item:nth-child(1), .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 16px;
    }
    .stat-item:nth-child(3), .stat-item:nth-child(4) {
        padding-top: 16px;
    }
}

/* Scanner Desktop Wrapper & Mobile Dark Mode Overrides */
body.scanner-page {
    transition: background-color 0.3s ease;
}
@media (max-width: 991.98px) {
    body.scanner-page {
        background-color: #121212 !important;
        color: #ffffff !important;
    }
    .scanner-page .mobile-header {
        background-color: #1a1a1a !important;
        border-bottom: 1px solid #2d2d2d !important;
    }
    .scanner-page .mobile-header .text-dark {
        color: #ffffff !important;
    }
    .scanner-page .scanner-title-section h2 {
        color: #ffffff !important;
    }
    .scanner-page .scanner-title-section p {
        color: #aaaaaa !important;
    }
}
@media (min-width: 992px) {
    body.scanner-page {
        background-color: var(--body-bg) !important;
        color: var(--dark-text) !important;
    }
    .scanner-page .scanner-container {
        background-color: #ffffff;
        border-radius: 20px;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.04);
        padding: 45px 30px !important;
        margin-top: 40px !important;
        margin-bottom: 60px !important;
    }
    .scanner-page .scanner-title-section h2 {
        color: var(--primary-blue) !important;
    }
    .scanner-page .scanner-title-section p {
        color: var(--muted-gray) !important;
    }
    .scanner-page .scanner-viewport-wrapper {
        border: 4px solid var(--border-color) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
        background-color: #000000 !important;
    }
}

/* Ensure HTML5-QRCode components center correctly inside viewport */
#reader div, #reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ============================================
   PREMIUM PVC HEALTH CARD
   ============================================ */
.pvc-card-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 856 / 540;
    container-type: inline-size;
}

.pvc-card {
    width: 856px;
    height: 540px;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.2);
    overflow: hidden;
    color: white;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transform: scale(calc(100cqw / 856));
    user-select: none;
    -webkit-user-select: none;
}

/* Card Backgrounds */
.pvc-front {
    background: linear-gradient(135deg, #0A2540 0%, #1A5276 50%, #229954 100%);
}
.pvc-back {
    background: linear-gradient(135deg, #1A5276 0%, #0A2540 100%);
}

/* Glassmorphism overlays */
.pvc-shape-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.4) 0%, rgba(26, 188, 156, 0.1) 100%);
    border-radius: 50%;
    filter: blur(20px);
}
.pvc-shape-2 {
    position: absolute;
    bottom: -80px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(41, 128, 185, 0.05) 100%);
    border-radius: 50%;
    filter: blur(30px);
}

.pvc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 35px 40px;
    position: relative;
    z-index: 2;
}
.pvc-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.pvc-logo-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}
.pvc-logo-text {
    display: flex;
    flex-direction: column;
}
.pvc-brand {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.1;
    margin: 0;
}
.pvc-brand-sub {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
    color: #2ecc71;
    margin: 0;
}

.pvc-member-id-badge {
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.pvc-body {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.pvc-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pvc-user-name {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.pvc-attributes {
    display: flex;
    gap: 35px;
}

.pvc-attr {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pvc-attr-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    font-weight: 600;
    margin: 0;
}

.pvc-attr-val {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.pvc-qr-container {
    width: 150px;
    height: 150px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pvc-qr-container img, .pvc-qr-container svg {
    width: 100%;
    height: 100%;
}

.pvc-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
}

.pvc-footer-text {
    font-size: 14px;
    letter-spacing: 1.5px;
    opacity: 0.9;
    font-weight: 500;
}
.pvc-validity {
    font-size: 16px;
    font-weight: 700;
    color: #2ecc71;
}

/* BACK SIDE */
.pvc-back-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.pvc-mag-stripe {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 80px;
    background: #0f1821;
    z-index: 2;
    opacity: 0.95;
}

.pvc-back-info {
    margin-top: 150px; /* Below mag stripe */
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.pvc-terms {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.85;
}

.pvc-support {
    width: 340px;
    background: rgba(255,255,255,0.08);
    padding: 25px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}

.pvc-support h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2ecc71;
    font-weight: 700;
    margin-top: 0;
}

.pvc-support-row {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.pvc-support-row i {
    margin-top: 3px;
    opacity: 0.8;
}

/* Global Fixes */
body, html {
    overflow-x: hidden;
}

@media (max-width: 576px) {
    /* Keep old media query for profile */

    
    
    
    .profile-header {
        padding: 24px 0;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin: 0 auto 12px;
    }
    
    .profile-name {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .profile-section-title {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .profile-item {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .profile-item-label {
        font-size: 11px;
    }
    
    .profile-item-value {
        font-size: 13px;
    }
    
    .account-menu-item {
        padding: 14px 16px;
    }
    
    .account-menu-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .account-menu-text h6 {
        font-size: 13px;
    }
    
    .account-menu-text p {
        font-size: 11px;
    }
    
    body {
        padding-bottom: 80px;
    }
}

/* ============================================
   IMPROVED MOBILE NAVBAR STYLES
   ============================================ */

.mobile-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E8E8;
    z-index: 1020;
}

.mobile-header .brand-logo-container {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background-color: var(--primary-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-header .brand-icon {
    color: white;
    font-size: 1.4rem;
}


.mobile-header .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #1C2833;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */

.profile-container {
    background-color: #F8F9FA;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: inherit;
    clip-path: polygon(0 50%, 100% 0%, 100% 100%, 0 100%);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    background-color: #E8F4F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    object-fit: cover;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.profile-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Profile Section */
.profile-section {
    margin-bottom: 20px;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 16px;
    background-color: white;
    border-bottom: 2px solid var(--primary-green);
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.profile-section-content {
    background-color: white;
    padding: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
    transition: background-color 0.2s ease;
}

.profile-item:hover {
    background-color: #F8F9FA;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item-label {
    font-size: 13px;
    color: var(--muted-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-item-value {
    font-size: 15px;
    color: var(--dark-text);
    font-weight: 600;
}

.profile-item-value.empty {
    color: var(--muted-gray);
    font-style: italic;
}

/* Profile Card Grid */
.profile-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}

.profile-info-card {
    background: linear-gradient(135deg, var(--light-blue) 0%, #E8F6FA 100%);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border-left: 4px solid var(--primary-blue);
}

.profile-info-card.health {
    background: linear-gradient(135deg, var(--light-green) 0%, #E8F6F0 100%);
    border-left-color: var(--primary-green);
}

.profile-info-label {
    font-size: 11px;
    color: var(--muted-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.profile-info-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
}

.profile-info-card.health .profile-info-value {
    color: var(--primary-green);
}

/* Account Menu Items */
.account-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #F0F0F0;
    text-decoration: none;
    color: var(--dark-text);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.account-menu-item:hover {
    background-color: #F8F9FA;
}

.account-menu-item:last-child {
    border-bottom: none;
}

.account-menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.account-menu-text h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
}

.account-menu-text p {
    margin: 0;
    font-size: 12px;
    color: var(--muted-gray);
}

.account-menu-arrow {
    color: var(--muted-gray);
    font-size: 18px;
}

/* Logout Button */
.profile-logout-btn {
    width: 100%;
    padding: 14px;
    background-color: #E74C3C;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.profile-logout-btn:hover {
    background-color: #C0392B;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E8E8;
    display: flex;
    height: 70px;
    z-index: 1050;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted-gray);
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    transition: color 0.2s ease;
    padding: 8px 4px;
    min-height: 70px;
}

.nav-item.active {
    color: var(--primary-green);
}

.nav-item i {
    font-size: 1.5rem;
}

.nav-item:hover {
    color: var(--primary-green);
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
    
    .profile-container,
    .mobile-footer {
        padding-bottom: 20px !important;
    }
}

