/* Custom CSS for CCI DIRECT - Ultra Premium Styling */

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background-color: #040200;
    color: #ffffff;
    overflow-x: hidden;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(51, 51, 51, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(202, 159, 116, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(202, 159, 116, 0.4);
    box-shadow: 0 20px 40px -15px rgba(202, 159, 116, 0.1);
    transform: translateY(-4px);
}

/* Metallic Text & Gradients */
.text-gradient-gold {
    background: linear-gradient(135deg, #FFFFFF 0%, #CA9F74 50%, #A87A50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-dark-radial {
    background: radial-gradient(circle at 50% 0%, rgba(51, 51, 51, 0.8) 0%, rgba(4, 2, 0, 1) 70%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.18;
}

.glow-orb-sand {
    background: #CA9F74;
}

.glow-orb-charcoal {
    background: #333333;
}

/* Custom Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #E2BE98 0%, #CA9F74 60%, #A87A50 100%);
    color: #040200;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(202, 159, 116, 0.3);
}

/* Custom Secondary Button */
.btn-secondary {
    background: transparent;
    color: #CA9F74;
    font-weight: 700;
    border: 1px solid #CA9F74;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(202, 159, 116, 0.1);
    transform: translateY(-2px);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #F3DDC7 0%, #E2BE98 60%, #CA9F74 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(202, 159, 116, 0.45);
}

/* Timeline & Flow Badges */
.step-number-badge {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: #333333;
    border: 1px solid rgba(202, 159, 116, 0.3);
    color: #CA9F74;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Pulse Glow Badge */
.badge-glow {
    box-shadow: 0 0 15px rgba(202, 159, 116, 0.2);
}

/* ===== Section 4: "Looking Toward the Future" Bento Styles ===== */

/* Icon pulse glow */
.future-icon-pulse {
    animation: futureIconPulse 3s ease-in-out infinite;
}

@keyframes futureIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(202, 159, 116, 0.25); }
    50%      { box-shadow: 0 0 20px 6px rgba(202, 159, 116, 0.12); }
}

/* Progress bar fill on page load */
.future-bar-fill {
    animation: barGrow 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes barGrow {
    to { width: 78%; }
}

/* Bento cards — soft glow on hover instead of lifting */
.grid > [class*="bg-gradient-to-b"] {
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.grid > [class*="bg-gradient-to-b"]:hover {
    box-shadow: 0 0 30px -8px rgba(202, 159, 116, 0.12);
}

/* ==============================================================
   Mobile App Navigation Bar & Action Drawer (App Experience)
   ============================================================== */

.mobile-app-nav {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
}

.app-tab-btn {
    position: relative;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.app-tab-btn:active {
    transform: scale(0.9);
}

.app-fab-btn {
    position: relative;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    animation: fabGlowPulse 3.5s ease-in-out infinite;
}

.app-fab-btn:active {
    transform: translateY(-10px) scale(0.92);
}

@keyframes fabGlowPulse {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(202, 159, 116, 0.4);
    }
    50% {
        box-shadow: 0 8px 26px rgba(202, 159, 116, 0.65), 0 0 14px rgba(202, 159, 116, 0.35);
    }
}

.app-tab-dot {
    position: absolute;
    bottom: -1px;
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background-color: #CA9F74;
    box-shadow: 0 0 8px #CA9F74;
}

.app-drawer-sheet {
    max-height: 86vh;
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 1rem));
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

/* Custom sleek scrollbar for drawer sheet */
.app-drawer-sheet::-webkit-scrollbar {
    width: 4px;
}
.app-drawer-sheet::-webkit-scrollbar-track {
    background: transparent;
}
.app-drawer-sheet::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

/* ==============================================================
   Native Standalone PWA Touch & Safe Area Optimization
   ============================================================== */

@media all and (display-mode: standalone), (display-mode: fullscreen) {
    /* Standalone body padding for iPhone Notch and Home Indicator */
    body {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* Hide redundant web install triggers when already running as native app */
    .pwa-install-trigger, .admin-pwa-install-btn {
        display: none !important;
    }

    /* Native touch momentum scroll on all scrollable panes */
    .overflow-y-auto, .overflow-x-auto, main {
        -webkit-overflow-scrolling: touch;
    }
}

/* Ensure mobile main content never overlaps with bottom navigation bar */
@media (max-width: 767px) {
    main {
        padding-bottom: max(5.5rem, env(safe-area-inset-bottom, 24px)) !important;
    }
}

/* Custom sleek dark scrollbar for admin navigation */
aside .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}
aside .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}
aside .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 4px;
}
aside .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #CA9F74;
}



