:root {
    --bs-body-color: #000000;
    --bs-body-bg: #FFFFFF;
    --bs-primary: #0B3D91;
    --bs-secondary: #000000;
    --bs-border-color: #E5E7EB;
    --bs-card-bg: #FFFFFF;
    --bs-white: #FFFFFF;
    --bs-gray-100: #F5F5F5;
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --luxe-black: #000000;
    --luxe-white: #FFFFFF;
    --luxe-primary: #0B3D91;
    --luxe-accent: #0B3D91;
    --luxe-gray: #F5F5F5;
    --luxe-bg: #FFFFFF;
    --luxe-text: #000000;
    --luxe-card-bg: #FFFFFF;
    --luxe-border: #E5E7EB;
    --luxe-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    --luxe-transition: all 0.25s ease;
    --sidebar-width: 260px;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: var(--luxe-text);
    background-color: var(--luxe-bg);
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, .luxe-title {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

p, label, .lead, .small {
    color: #374151;
}

/* Sidebar Styling */
 .sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--luxe-black);
    padding: 2rem 1.5rem;
    z-index: 1100;
    transition: var(--luxe-transition);
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: var(--luxe-transition);
}


.sidebar-link i {
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* Global Bootstrap Icons styling to ensure a premium, consistent look */
.bi {
    font-size: 1.15rem;
    vertical-align: -0.125em;
    color: inherit;
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-block;
}

.bi:hover {
    color: var(--luxe-accent);
    transform: translateY(-2px);
}

/* Larger icon variant */
.bi-lg {
    font-size: 1.6rem;
}

/* Utility classes for icon buttons and compact icon badges */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.icon-only {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--luxe-white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

/* Sidebar Logo */
.sidebar .navbar-brand {
    color: var(--luxe-white) !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sidebar Auth Message */
.sidebar .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Sidebar User Profile */
.sidebar .border-top {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.sidebar .fw-bold {
    color: var(--luxe-white);
}

.sidebar .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Sidebar Logout Button */
.sidebar .text-danger {
    color: rgba(255, 215, 0, 0.9) !important;
}

.sidebar .text-danger:hover {
    color: var(--luxe-white) !important;
}

.profile-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--luxe-white);
    color: var(--luxe-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
}

/* Layout Adjustments for Sidebar */
@media (min-width: 992px) {
    #content-wrapper {
        margin-left: var(--sidebar-width);
    }
}

/* Colors & Backgrounds */
.bg-luxe-black { background-color: var(--luxe-black) !important; }
.bg-luxe-royal-blue { background-color: var(--luxe-primary) !important; }
.text-royal-blue { color: var(--luxe-primary) !important; }
.text-muted { color: #6B7280 !important; }

/* Cards */
.luxe-card {
    background: var(--luxe-card-bg);
    border-radius: 18px;
    border: 1px solid var(--luxe-border);
    box-shadow: var(--luxe-shadow);
    transition: var(--luxe-transition);
}

.luxe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-soft {
    background: var(--luxe-gray);
    border-color: transparent;
}

/* Buttons */
.btn-premium {
    background-color: var(--luxe-primary);
    color: var(--luxe-white);
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    border: 1px solid var(--luxe-primary);
    transition: var(--luxe-transition);
}

.btn-premium:hover {
    background-color: #0B3D91;
    color: var(--luxe-white);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--luxe-black);
    border: 1px solid var(--luxe-black);
    border-radius: 10px;
    transition: var(--luxe-transition);
}

.btn-secondary-custom:hover {
    background: rgba(10, 31, 68, 0.05);
}

.btn-royal-blue {
    background-color: var(--luxe-primary);
    color: var(--luxe-white);
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    border: 1px solid var(--luxe-primary);
    transition: var(--luxe-transition);
}

/* Auth Forms */
.auth-panel {
    border-radius: 28px;
    overflow: hidden;
    background: var(--luxe-card-bg);
    border: 1px solid var(--luxe-border);
}

.auth-label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--luxe-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-input {
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--luxe-border);
    background: var(--luxe-card-bg);
    color: var(--luxe-text);
    transition: var(--luxe-transition);
}

.home-splash {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero {
    background: var(--luxe-black);
    color: var(--luxe-white);
    border-radius: 28px;
    padding: 4rem 3rem;
    max-width: 820px;
    margin: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.16);
}

.home-hero h1 {
    font-size: clamp(3rem, 4.5vw, 4.5rem);
    letter-spacing: -0.05em;
    line-height: 1;
}

.home-hero p {
    max-width: 640px;
    margin: 1.5rem auto 2.5rem;
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
}

.feature-card {
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--luxe-border);
    background: var(--luxe-card-bg);
}

.feature-card i {
    font-size: 1.75rem;
    color: var(--luxe-primary);
    margin-bottom: 1rem;
}

.feature-card h5 {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.feature-card p {
    color: #6B7280;
}

.profile-heading {
    margin-bottom: 1.25rem;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    color: var(--luxe-black);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #E5E7EB;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: var(--luxe-gray);
    color: var(--luxe-primary);
    font-weight: 700;
    font-size: 1.35rem;
}

.info-box {
    background: var(--luxe-gray);
    border-radius: 16px;
    padding: 1.1rem 1rem;
}

.qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    background: var(--luxe-gray);
    border-radius: 20px;
}

.card-meta {
    font-size: 0.95rem;
    color: #6B7280;
}

.link-muted {
    color: #111827;
    text-decoration: none;
}

.link-muted:hover {
    text-decoration: underline;
}

.letter-spacing {
    letter-spacing: 0.22em;
}

.form-control, .form-select {
    border-radius: 14px;
    border: 1px solid var(--luxe-border);
    box-shadow: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--luxe-primary);
    box-shadow: 0 0 0 4px rgba(10, 31, 68, 0.12);
}

@media (max-width: 991px) {
    .home-hero {
        padding: 3rem 2rem;
    }
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--luxe-royal-blue);
    cursor: pointer;
}

.public-profile-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(246,251,255,0.95) 100%);
    border: 1px solid rgba(15,23,42,0.08);
    overflow: hidden;
}

.public-profile-card .card-top {
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(15,23,42,0.08);
}

.public-profile-card .card-body {
    background: transparent;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    border: 4px solid var(--luxe-white);
}

.card-smallline {
    width: 60px;
    height: 4px;
    border-radius: 999px;
    background: var(--luxe-primary);
}

.card-label {
    display: inline-flex;
    align-items: center;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-meta,
.business-meta,
.medical-meta,
.love-meta,
.bible-meta,
.product-meta,
.event-meta,
.memorial-meta {
    background: rgba(248,250,252,0.9);
    border-radius: 20px;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(226,232,240,0.9);
}

.profile-meta strong,
.business-meta strong,
.medical-meta strong,
.love-meta strong,
.bible-meta strong,
.product-meta strong,
.event-meta strong,
.memorial-meta strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--luxe-primary);
    font-size: 0.95rem;
}

.profile-card {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.business-card {
    background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
}

.medical-card {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.love-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
}

.bible-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.product-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.event-card {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.memorial-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.public-profile-card .luxe-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.public-profile-card .card-body a.link-muted {
    color: var(--luxe-primary);

    font-size: 1rem;
    padding: 0;
}

.password-toggle:hover {
    color: var(--luxe-gold);
}

.auth-note {
    color: var(--luxe-royal-blue);
    font-size: 0.9rem;
}

.auth-footer {
    font-size: 0.92rem;
}

.auth-footer a {
    color: var(--luxe-gold);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Badges */
.badge-status {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-active { background-color: var(--luxe-gold); color: var(--luxe-white); }
.badge-expired { background-color: var(--luxe-black); color: var(--luxe-white); }
.badge-pending { background-color: var(--luxe-royal-blue); color: var(--luxe-white); }

/* Navigation */
.luxe-navbar {
    background-color: var(--luxe-card-bg);
    border-bottom: 1px solid var(--luxe-border);
    padding: 15px 0;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.65rem 0.5rem;
    background: var(--luxe-card-bg);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--luxe-border);
    z-index: 1000;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.12);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.5rem;
    margin: 0 0.1rem;
    color: var(--luxe-text);
    text-decoration: none;
    font-size: 0.72rem;
    border-radius: 999px;
    transition: var(--luxe-transition);
}

.bottom-nav-item:hover {
    background: #0B3D91;
    color: var(--luxe-gold);
}

.bottom-nav-item i {
    font-size: 1.25rem;
    display: block;
    transition: var(--luxe-transition);
}

.bottom-nav-item span {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: inherit;
}

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

/* Softer floating bubble for active state (softer than YouTube) */
.bottom-nav-item.active i,
.bottom-nav-item.active .icon-only {
    background: linear-gradient(180deg, rgba(11,61,145,0.95) 0%, rgba(11,61,145,0.88) 100%);
    color: var(--luxe-white);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 6px 14px rgba(11, 61, 145, 0.12);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.18s ease;
}

.bottom-nav-item.active span {
    color: rgba(11,61,145,0.95);
    font-weight: 700;
    font-size: 0.72rem;
    margin-top: 4px;
}

/* QR Code Container */
.qr-container {
    padding: 15px;
    background: white; /* Always white for QR contrast */
    border-radius: 12px;
    display: inline-block;
    box-shadow: var(--luxe-shadow);
}

.qr-container img {
    margin: 0 auto;
}

/* Scanner Simulation */
.scanner-viewport {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: #000;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
}

.scanner-line {
    width: 100%;
    height: 2px;
    background: var(--luxe-gold);
    position: absolute;
    top: 0;
    box-shadow: 0 0 15px var(--luxe-gold);
    animation: scanMove 2s infinite linear;
}

@keyframes scanMove {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Transitions */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

/* Theme Toggle Button */
.theme-toggle {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--luxe-card-bg);
    border: 1px solid var(--luxe-border);
    color: var(--luxe-text);
    transition: var(--luxe-transition);
}

.theme-toggle:hover {
    background: var(--luxe-gold);
    color: var(--luxe-white);
}
