/* ==========================================================================
   ARKTEST - PREMIUM DESIGN SYSTEM & UI COMPONENTS
   ========================================================================== */

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

:root {
    --bg-light: #f5eee6;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --border-light: #e6d7c3;
    --border-hover: #d8c3a5;

    --primary-black: #1c0d06;
    --primary-dark: #2b140b;
    --primary-chocolate: #3d1c0f;
    --accent-gold: #c98a4b;
    --accent-beige: #e6d7c3;
    
    --text-main: #1c0d06;
    --text-muted: #594134;
    --text-sub: #876957;

    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-sm: 0 4px 14px rgba(28, 13, 6, 0.04);
    --shadow-md: 0 8px 24px rgba(28, 13, 6, 0.08);
    --shadow-lg: 0 16px 40px rgba(28, 13, 6, 0.12);

    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}


body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #efe8df;
}
::-webkit-scrollbar-thumb {
    background: #cbb9a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8c766b;
}


/* Headings */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    color: var(--primary-black);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Glass Panels & Cards */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

/* Top Demo Banner */
.demo-banner {
    background: #0f172a;
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.88rem;
}

.demo-role-badge {
    cursor: pointer;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    transition: var(--transition);
    user-select: none;
    font-weight: 500;
}

.demo-role-badge:hover, .demo-role-badge.active {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
    font-weight: 700;
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(28, 13, 6, 0.85);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(28, 13, 6, 0.05);
}

.brand-text {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1c0d06;
    letter-spacing: -0.02em;
}

.nav-link {
    color: #594134 !important;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 6px 10px !important;
    border-radius: 8px;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background: #1c0d06;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(28, 13, 6, 0.15);
}

/* Install PWA Button Styling (Sleek Rectangle Pill) */
#btn-install-pwa {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.83rem !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    height: 32px !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
    transition: all 0.2s ease !important;
}

#btn-install-pwa:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35) !important;
}




/* Hero Section */
.hero-section {
    padding: 75px 0 55px;
    background: linear-gradient(180deg, #ffffff 0%, #f5eee6 100%);
    border-bottom: 1px solid #e6d7c3;
    color: #1c0d06;
}

.gradient-title {
    font-size: 3.4rem;
    line-height: 1.12;
    color: #1c0d06;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-section .text-muted {
    color: #594134 !important;
}

.hero-stats-card {
    background: #ffffff;
    border: 1px solid #e6d7c3;
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hero-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 13, 6, 0.08);
    border-color: #d8c3a5;
}

.hero-stats-val {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1c0d06;
    font-family: var(--font-heading);
}

.hero-stats-lbl {
    font-size: 0.8rem;
    color: #594134;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ArK Points & Tier Badges */
.badge-tier {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-bronze { background: #fdf3e7; color: #7c4116; border: 1px solid #f6d8b8; }
.tier-silver { background: #efe8df; color: #3d2317; border: 1px solid #d4c5b3; }
.tier-gold { background: #fef5d8; color: #854d0e; border: 1px solid #fde68a; }
.tier-platinum { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; }

.points-pill {
    background: #1c0d06;
    color: #f5eee6;
    padding: 5px 12px;
    font-size: 0.83rem;
    border-radius: 20px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(28, 13, 6, 0.2);
}


/* Campaign Cards */
.campaign-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow-wrap: break-word;
    word-break: break-word;
}

.table th {
    background: #efe6dc !important;
    color: #1c0d06 !important;
    font-weight: 700;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e6d7c3 !important;
    white-space: nowrap;
}


.table td {
    border-bottom: 1px solid #efe6dc;
    color: #1c0d06;
    vertical-align: middle;
}


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


.category-chip {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    background: #e6d7c3;
    color: #1c0d06;
    border: 1px solid #d8c3a5;
}

/* Buttons */
.btn-glow {
    background: #1c0d06;
    color: #f5eee6;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.btn-glow:hover {
    background: #3d1c0f;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(28, 13, 6, 0.3);
}

.btn-glow:active {
    transform: translateY(0);
}

.btn-outline-glass {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--primary-black);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-glass:hover {
    background: #f5eee6;
    border-color: var(--border-hover);
    color: var(--primary-black);
    transform: translateY(-1px);
}

/* Filter Chips */
.filter-btn {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: #1c0d06;
    color: #f5eee6;
    border-color: #1c0d06;
    box-shadow: 0 4px 14px rgba(28, 13, 6, 0.25);
}

/* Modals */
.modal-content-glass {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--primary-black);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: #f5eee6;
    color: #1c0d06;
    border-bottom: 1px solid #e6d7c3;
    padding: 18px 24px;
}

.modal-header .modal-title {
    color: #1c0d06 !important;
}

.modal-header .btn-close {
    filter: none;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 16px 24px;
}

.form-control-dark, .form-select-dark {
    background: #ffffff !important;
    border: 1px solid #d8c3a5 !important;
    color: var(--primary-black) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    transition: var(--transition);
}

.form-control-dark:focus, .form-select-dark:focus {
    border-color: #1c0d06 !important;
    box-shadow: 0 0 0 3px rgba(28, 13, 6, 0.15) !important;
}

/* Tables */
.table-dark {
    --bs-table-bg: #ffffff;
    --bs-table-color: #1c0d06;
    --bs-table-hover-bg: #f5eee6;
    border-color: var(--border-light);
}

.table-dark th {
    background: #e6d7c3;
    color: #1c0d06;
    font-weight: 700;
    border-bottom: 1px solid #d8c3a5;
    padding: 14px 16px;
}

.table-dark td {
    padding: 14px 16px;
}

/* Badges */
.badge-severity {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}
.sev-critical { background: #ffe4e6; color: #9f1239; border: 1px solid #fecdd3; }
.sev-high { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.sev-medium { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.sev-low { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

.badge-status {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}
.status-active, .status-verified, .status-accepted {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.status-pending, .status-submitted {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
.status-rejected {
    background: #ffe4e6;
    color: #b91c1c;
    border: 1px solid #fecdd3;
}

/* Tabs */
.nav-pills-glass .nav-link {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-muted) !important;
    margin-right: 8px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-pills-glass .nav-link.active {
    background: #1c0d06 !important;
    color: #f5eee6 !important;
    border-color: #1c0d06;
    box-shadow: 0 4px 14px rgba(28, 13, 6, 0.25);
}

/* Toast Notifications */
.custom-toast {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 450px;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-toast .toast-body,
.custom-toast div {
    color: #ffffff !important;
}

.custom-toast.toast-success {
    border-left: 5px solid #10b981 !important;
}

.custom-toast.toast-error {
    border-left: 5px solid #ef4444 !important;
}

.custom-toast.toast-warning {
    border-left: 5px solid #f59e0b !important;
}

.custom-toast.toast-info {
    border-left: 5px solid #3b82f6 !important;
}


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

/* Footer */
footer {
    border-top: 1px solid #e6d7c3;
    background: #f5eee6;
    color: #1c0d06;
    padding: 50px 0 26px;
    margin-top: auto;
}

footer h6, footer .brand-text {
    color: #1c0d06 !important;
}

footer .text-muted {
    color: #594134 !important;
}

footer a {
    color: #1c0d06 !important;
    transition: var(--transition);
}

footer a:hover {
    color: #3d1c0f !important;
    text-decoration: underline !important;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(28, 13, 6, 0.12) !important;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 12px;
        box-shadow: var(--shadow-md);
    }

    .navbar-collapse .d-flex.align-items-center.gap-3 {
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-light);
        width: 100%;
    }

    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        transform: none !important;
        margin-top: 8px !important;
        box-shadow: none !important;
        border: 1px solid var(--border-light) !important;
    }
}

@media (max-width: 991.98px) {
    /* Ensure top navbar header items stay strictly on one single line on mobile */
    .navbar-custom > .container-fluid {
        flex-wrap: nowrap !important;
    }

    .navbar-custom .navbar-brand {
        max-width: 52%;
        overflow: hidden;
        margin-right: 0.25rem !important;
    }

    .navbar-custom .brand-text {
        font-size: 1.05rem;
        white-space: nowrap;
    }

    .navbar-custom #current-user-name {
        max-width: 75px !important;
    }

    .navbar-custom #user-profile-menu .btn {
        padding: 3px 6px !important;
    }

    /* Hide top navbar badges & install button on mobile header to prevent horizontal overflow */
    .navbar-custom #btn-install-pwa,
    .navbar-custom #user-points-widget,
    .navbar-custom #current-user-tier {
        display: none !important;
    }
}


@media (max-width: 768px) {

    .navbar-custom {
        padding: 10px 0;
    }

    
    .brand-text {
        font-size: 1.25rem;
    }

    .hero-section {
        padding: 42px 0 32px;
    }

    .gradient-title {
        font-size: clamp(1.9rem, 7.5vw, 2.6rem);
        line-height: 1.18;
        margin-bottom: 0.75rem !important;
    }

    .hero-section .lead {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.4rem !important;
    }

    .hero-section .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 10px !important;
    }

    .hero-section .btn-lg {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.98rem;
    }

    .hero-stats-card {
        padding: 14px 8px;
    }

    .hero-stats-val {
        font-size: 1.45rem;
    }

    .hero-stats-lbl {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }

    /* Horizontal Category & Tab Menu Swiper on Mobile */
    #category-filters,
    .nav-pills-glass,
    #admin-tab-menu,
    #creator-tab-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
        margin-bottom: 1rem !important;
    }

    #category-filters::-webkit-scrollbar,
    .nav-pills-glass::-webkit-scrollbar,
    #admin-tab-menu::-webkit-scrollbar,
    #creator-tab-menu::-webkit-scrollbar {
        display: none;
    }

    .filter-btn,
    .nav-pills-glass .nav-link,
    #admin-tab-menu .nav-link,
    #creator-tab-menu .nav-link {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        margin-right: 8px !important;
        margin-bottom: 0 !important;
    }

    /* Table Mobile Formatting & Responsiveness */
    .table-responsive {
        font-size: 0.85rem;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .table {
        min-width: 580px;
    }

    .table th, .table td {
        padding: 10px 12px;
        vertical-align: middle;
    }

    .badge-tier, .badge-status, .badge-severity {
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center;
    }

    /* Founder Cards on Mobile */
    .glass-panel {
        padding: 18px 14px !important;
    }

    /* Toast Notification Positioning on Mobile */
    .toast-container {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        width: auto !important;
    }

    .custom-toast {
        min-width: 100% !important;
        width: 100% !important;
        padding: 12px 16px;
    }

    /* Modal Mobile Adjustments */
    .modal-dialog {
        margin: 12px;
    }

    .modal-body {
        padding: 18px;
    }
}


@media (max-width: 420px) {
    .gradient-title {
        font-size: 1.8rem;
    }
    
    .hero-stats-val {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   SKELETON LOADING SYSTEM
   ========================================================================== */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-box {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background-color: #eae1d7;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-line.title {
    height: 22px;
    width: 75%;
    margin-bottom: 14px;
}

.skeleton-line.chip {
    height: 22px;
    width: 80px;
    border-radius: 20px;
}

.skeleton-line.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-line.button {
    height: 34px;
    width: 90px;
    border-radius: 8px;
}

/* Google-Style Omnibox Hero Search Bar */
.google-search-container {
    transition: var(--transition);
}

.google-hero-search-box {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 56px !important;
    border-radius: 50px !important;
    background: #ffffff !important;
    border: 2px solid var(--border-light) !important;
    padding: 4px 6px 4px 18px !important;
    box-shadow: 0 8px 24px rgba(28, 13, 6, 0.08) !important;
    transition: all 0.25s ease !important;
}

.google-hero-search-box:focus-within {
    border-color: #c98a4b !important;
    box-shadow: 0 10px 30px rgba(201, 138, 75, 0.25) !important;
    transform: translateY(-1px);
}

.google-hero-search-box input {
    height: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    font-size: 15px !important;
    color: #1c0d06 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 10px !important;
}

.google-hero-search-box input::placeholder {
    color: #876957 !important;
    font-size: 14px !important;
    text-overflow: ellipsis !important;
}

.google-hero-search-box .btn-search-trigger {
    height: 44px !important;
    border-radius: 50px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

.active-search-pill {
    background: var(--primary-black) !important;
    color: #ffffff !important;
    border-color: var(--primary-black) !important;
}

/* Horizontal scrollable pills on mobile without wrapping into giant stacked blocks */
.google-pills-scroll-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.google-pills-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

@media (max-width: 576px) {
    .google-hero-search-box {
        height: 50px !important;
        padding: 3px 4px 3px 14px !important;
    }
    .google-hero-search-box input {
        font-size: 14px !important;
        padding: 0 6px !important;
    }
    .google-hero-search-box .btn-search-trigger {
        height: 40px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
    }
    .google-pills-scroll-wrapper {
        justify-content: flex-start;
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* ==========================================================================
   ARKTEST BETA — FLOATING NAVIGATION DOCK (DESKTOP & MOBILE)
   ========================================================================== */
.app-bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 630px;
    height: 68px;
    background: rgba(255, 253, 249, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 214, 199, 0.92);
    border-radius: 26px;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    box-shadow: 0 14px 38px rgba(43, 20, 11, 0.08), 0 2px 6px rgba(43, 20, 11, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.95);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    padding-bottom: 110px !important;
}

#pwa-install-banner {
    bottom: 96px !important;
    right: 20px !important;
    left: auto !important;
    max-width: 310px !important;
    width: auto !important;
}

@media (max-width: 576px) {
    #pwa-install-banner {
        bottom: 84px !important;
        right: 12px !important;
        left: auto !important;
        max-width: calc(100vw - 24px) !important;
    }
}

.pwa-banner-card {
    background: #fffdf9 !important;
    border: 1px solid rgba(226, 214, 199, 0.95) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 32px rgba(28, 13, 6, 0.16) !important;
    padding: 8px 12px !important;
}

.pwa-banner-avatar {
    border-radius: 8px !important;
    border: 1px solid rgba(226, 214, 199, 0.8) !important;
    object-fit: cover !important;
}

.pwa-banner-title {
    font-size: 0.80rem !important;
    font-weight: 700 !important;
    color: #1c0d06 !important;
    line-height: 1.2 !important;
}

.pwa-banner-subtitle {
    font-size: 0.68rem !important;
    color: #876957 !important;
    line-height: 1.2 !important;
    margin-top: 1px !important;
}

.pwa-banner-btn {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    line-height: 1.2 !important;
}

.pwa-banner-close {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1px solid rgba(135, 105, 87, 0.25) !important;
    color: #876957 !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.15s ease !important;
}

.pwa-banner-close:hover {
    background: rgba(28, 13, 6, 0.08) !important;
    color: #1c0d06 !important;
    border-color: #1c0d06 !important;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    outline: none;
    color: #876957;
    padding: 6px 4px;
    margin: 0 2px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    user-select: none;
    border-radius: 18px;
    -webkit-tap-highlight-color: transparent;
    height: 56px;
}

.bottom-nav-item:hover {
    background: rgba(28, 13, 6, 0.04);
    color: #1c0d06;
}

.bottom-nav-item:hover .bottom-nav-icon {
    color: #1c0d06;
    transform: translateY(-1px);
}

.bottom-nav-item:hover .bottom-nav-label {
    color: #1c0d06;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-icon {
    font-size: 1.18rem;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    color: #876957;
    transition: all 0.2s ease;
}

.bottom-nav-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15px;
    color: #876957;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Active State: Soft Golden/Cream Capsule Highlight with Espresso Brown text */
.bottom-nav-item.active {
    background: rgba(201, 138, 75, 0.12);
    border: 1px solid rgba(201, 138, 75, 0.22);
    color: #1c0d06;
}

.bottom-nav-item.active .bottom-nav-icon {
    color: #b47b3e;
    transform: translateY(-1px);
}

.bottom-nav-item.active .bottom-nav-label {
    color: #1c0d06;
    font-weight: 700;
}

/* Account Profile Avatar in Dock */
#bottom-nav-avatar {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1.5px solid #876957;
    box-shadow: 0 2px 5px rgba(28, 13, 6, 0.12);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.bottom-nav-item:hover #bottom-nav-avatar {
    transform: scale(1.10);
    border-color: #1c0d06;
}

.bottom-nav-item.active #bottom-nav-avatar {
    border-color: #b47b3e;
    box-shadow: 0 0 0 2px rgba(201, 138, 75, 0.28);
}

/* Mobile & Tablet Responsive Floating Dock (Vertically Expanded) */
@media (max-width: 991.98px) {
    .app-bottom-nav {
        bottom: 14px;
        width: calc(100% - 24px);
        max-width: 460px;
        height: 72px;
        border-radius: 25px;
        padding: 5px 8px;
        padding-bottom: max(5px, env(safe-area-inset-bottom));
        box-shadow: 0 12px 32px rgba(43, 20, 11, 0.10), inset 0 1px 1px rgba(255, 255, 255, 0.92);
    }
    
    body {
        padding-bottom: 108px !important;
    }
    
    #pwa-install-banner {
        bottom: 96px !important;
    }

    .bottom-nav-item {
        height: 60px;
        border-radius: 18px;
        margin: 0 2px;
        padding: 5px 3px;
    }

    .bottom-nav-icon {
        font-size: 1.18rem;
        height: 24px;
        margin-bottom: 3px;
    }

    .bottom-nav-label {
        font-size: 0.70rem;
        letter-spacing: 0.15px;
    }

    #bottom-nav-avatar {
        width: 27px !important;
        height: 27px !important;
    }
}

/* Standalone notification bell hidden on Phone/Mobile (< 992px) */
@media (max-width: 991.98px) {
    #notifications-widget {
        display: none !important;
    }
}

/* Mobile Floating Dropdown Sheet Menu (< 992px) - Prevents top navbar height expansion */
@media (max-width: 991.98px) {
    .navbar-custom .container-fluid {
        position: relative;
    }
    
    #navbarContent {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 12px !important;
        right: 12px !important;
        background: #fffdf9 !important;
        border: 1px solid rgba(226, 214, 199, 0.95) !important;
        border-radius: 20px !important;
        box-shadow: 0 16px 45px rgba(28, 13, 6, 0.18) !important;
        padding: 12px 14px !important;
        z-index: 1050 !important;
    }

    #navbarContent .navbar-nav {
        align-items: stretch !important;
        gap: 4px !important;
        margin: 0 !important;
    }

    #navbarContent .nav-link {
        padding: 8px 12px !important;
        border-radius: 12px !important;
        font-size: 0.86rem !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Mobile Asymmetric Two-Line Navbar Toggler (Phone/Mobile ONLY) */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

.navbar-toggler {
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    transition: all 0.2s ease;
}

.navbar-toggler svg {
    color: #1c0d06;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.navbar-toggler:hover svg {
    color: #b47b3e;
}



/* Derived Notifications Dropdown Menu Styling */
#notifications-widget .dropdown-menu {
    width: 330px !important;
    max-width: calc(100vw - 24px) !important;
    background: #fffdf9 !important; /* Solid warm cream to prevent background bleeding */
    border: 1px solid rgba(226, 214, 199, 0.95) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 45px rgba(28, 13, 6, 0.18) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

@media (max-width: 576px) {
    #notifications-widget .dropdown-menu {
        position: fixed !important;
        top: 64px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
    }
}

.notification-item {
    padding: 9px 12px;
    border-radius: 12px;
    margin-bottom: 2px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    background: transparent;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(226, 214, 199, 0.45);
}

.notification-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.notification-item:hover {
    background: rgba(201, 138, 75, 0.09);
}

.notification-icon-wrap {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 10px;
    background: rgba(201, 138, 75, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    color: #b47b3e;
}

.notification-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1c0d06;
    margin-bottom: 2px;
}

.notification-time {
    font-size: 0.68rem;
    color: #876957;
    white-space: nowrap;
    margin-left: 6px;
}

.notification-desc {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.32;
    margin-bottom: 0;
    word-break: break-word;
}

/* ==========================================================================
   SHARE PROFILE DIGITAL IDENTITY PASS CARD STYLES
   ========================================================================== */

.share-profile-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    background: #fffdf9;
    border: 1px solid rgba(226, 214, 199, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(28, 13, 6, 0.16);
}

.share-card-brand-panel {
    background: linear-gradient(150deg, #1c0d06 0%, #2e170c 60%, #1c0d06 100%);
    color: #ffffff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.share-card-brand-panel::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(229, 185, 116, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.share-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid rgba(229, 185, 116, 0.6);
    object-fit: cover;
}

.share-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.share-brand-sub {
    font-size: 0.68rem;
    color: #e5b974;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.share-ecosystem-tag {
    font-size: 0.70rem;
    color: #e5b974;
    background: rgba(229, 185, 116, 0.12);
    border: 1px solid rgba(229, 185, 116, 0.25);
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
    font-weight: 600;
}

.share-brand-center {
    margin: 18px 0;
}

.share-slogan {
    font-size: 1.22rem;
    font-weight: 800;
    color: #fffdf9;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.share-subtext {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.38;
    margin-top: 6px;
}

.share-brand-bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
}

.share-verified-stamp {
    font-size: 0.64rem;
    font-weight: 700;
    color: #e5b974;
    letter-spacing: 0.05em;
}

.share-web-url {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: monospace;
}

/* Right ID Panel */
.share-card-id-panel {
    background: #fffdf9;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid rgba(226, 214, 199, 0.85);
}

.share-id-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-pass-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2.5px solid #d97706;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(28, 13, 6, 0.14);
}

.share-pass-verified-badge {
    position: absolute;
    bottom: 0;
    end: 0;
    background: #0284c7;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.60rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
}

.share-id-meta {
    min-width: 0;
    flex: 1;
}

.share-id-username {
    font-size: 1.10rem;
    font-weight: 800;
    color: #1c0d06;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-id-stats-row {
    display: flex;
    gap: 8px;
}

.share-stat-box {
    flex: 1;
    background: #fdfaf5;
    border: 1px solid rgba(226, 214, 199, 0.75);
    border-radius: 10px;
    padding: 7px 10px;
    text-align: center;
}

.share-stat-label {
    font-size: 0.62rem;
    color: #876957;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.share-stat-val {
    font-size: 0.90rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 1px;
}

.share-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fdfaf5;
    border-radius: 14px;
    border: 1px dashed rgba(201, 138, 75, 0.45);
    padding: 10px 8px 8px;
}

.share-qr-wrap {
    background: #ffffff;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(226, 214, 199, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-qr-img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.share-qr-hint {
    font-size: 0.68rem;
    color: #876957;
    margin-top: 6px;
    font-weight: 600;
    text-align: center;
}

/* Mobile Stacked View (< 768px) */
@media (max-width: 767.98px) {
    .share-profile-card {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .share-card-brand-panel {
        padding: 18px 16px 14px;
    }

    .share-brand-center {
        margin: 12px 0 10px;
    }

    .share-slogan {
        font-size: 1.05rem;
    }

    .share-card-id-panel {
        border-left: none;
        border-top: 1px solid rgba(226, 214, 199, 0.85);
        padding: 16px 14px;
    }

    .share-qr-img {
        width: 90px;
        height: 90px;
    }
}













