/* TailCodexTheme — custom styles on top of Tailwind */

/* !important keeps the dark base when huraga's Bootstrap bundle is also
   loaded in the client area (its reboot would otherwise repaint body). */
body {
    background-color: #05070f !important;
    color: #e6eaf4 !important;
}
::selection {
    background: rgba(46, 230, 214, 0.3);
    color: #fff;
}

/* Ambient neon background grid + glow */
.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
}
.glow-cyan {
    box-shadow: 0 0 0 1px rgba(46, 230, 214, 0.25), 0 24px 80px -28px rgba(46, 230, 214, 0.55);
}
.glow-violet {
    box-shadow: 0 0 0 1px rgba(123, 97, 255, 0.25), 0 24px 80px -28px rgba(123, 97, 255, 0.5);
}
.text-gradient {
    background: linear-gradient(100deg, #2ee6d6 0%, #6ad7ff 40%, #7b61ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ring-line {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.card-hover {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
.card-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 230, 214, 0.4);
    box-shadow: 0 30px 80px -40px rgba(46, 230, 214, 0.5);
}

/* terminal blink */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.cursor {
    animation: blink 1.1s steps(1) infinite;
}

/* marquee for tech strip */
@keyframes scrollx {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.marquee {
    animation: scrollx 32s linear infinite;
}
.marquee-wrap:hover .marquee {
    animation-play-state: paused;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.floaty {
    animation: floaty 6s ease-in-out infinite;
}

/* reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* hero mouse spotlight */
.spotlight {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(46, 230, 214, 0.16), transparent 70%);
    transition: background 0.15s ease-out;
}

/* parallax tilt */
.tilt {
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
    will-change: transform;
}
.tilt-inner {
    transform: translateZ(40px);
}

/* speed bars */
.speedbar > i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 9999px;
    transition: width 1.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* FAQ accordion */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
    .marquee, .floaty, .cursor {
        animation: none !important;
    }
    .tilt {
        transform: none !important;
    }
}

/* ============================================================
   Client area — re-theme the Bootstrap module pages (orders,
   invoices, profile, support) to the dark neon look. Scoped to
   .fb-client-area so the marketing pages are untouched. !important
   is used only where huraga's bundle ships !important rules.
   ============================================================ */
.fb-client-area {
    --bs-body-bg: #0a0e1b;
    --bs-body-color: #e6eaf4;
    --bs-emphasis-color: #ffffff;
    --bs-heading-color: #ffffff;
    --bs-border-color: rgba(255, 255, 255, 0.08);
    --bs-secondary-color: #94a3b8;
    --bs-tertiary-bg: rgba(255, 255, 255, 0.03);
    --bs-link-color: #2ee6d6;
    --bs-link-hover-color: #6ad7ff;
    --bs-primary: #2ee6d6;
    --bs-primary-rgb: 46, 230, 214;
    color: #e6eaf4;
}

/* Headings & muted text */
.fb-client-area h1,
.fb-client-area h2,
.fb-client-area h3,
.fb-client-area h4,
.fb-client-area h5,
.fb-client-area h6 { color: #fff; }
.fb-client-area .text-muted,
.fb-client-area .text-secondary { color: #94a3b8 !important; }
.fb-client-area a:not(.btn) { color: #2ee6d6; text-decoration: none; }
.fb-client-area a:not(.btn):hover { color: #6ad7ff; }

/* Cards */
.fb-client-area .card {
    background-color: #0a0e1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    box-shadow: none;
}
.fb-client-area .card-header {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}
.fb-client-area .card-header h1,
.fb-client-area .card-header h6,
.fb-client-area .dashboard .card-header h6 { color: #fff; }

/* Tables */
.fb-client-area .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e6eaf4;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
    --bs-table-striped-color: #e6eaf4;
    --bs-table-hover-bg: rgba(46, 230, 214, 0.06);
    --bs-table-hover-color: #fff;
    color: #e6eaf4;
}
.fb-client-area .table > thead > tr > th {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
    border-bottom-width: 1px;
}
.fb-client-area .table > tbody > tr > td { border-color: rgba(255, 255, 255, 0.06); }
.fb-client-area .table-bordered > :not(caption) > * > * { border-color: rgba(255, 255, 255, 0.08); }

/* Buttons */
.fb-client-area .btn { border-radius: 0.75rem; font-weight: 600; }
.fb-client-area .btn-primary {
    --bs-btn-bg: #2ee6d6; --bs-btn-border-color: #2ee6d6; --bs-btn-color: #05070f;
    --bs-btn-hover-bg: #29cfc1; --bs-btn-hover-border-color: #29cfc1; --bs-btn-hover-color: #05070f;
    --bs-btn-active-bg: #25bab0; --bs-btn-active-border-color: #25bab0; --bs-btn-active-color: #05070f;
    --bs-btn-disabled-bg: #1c8f86; --bs-btn-disabled-border-color: #1c8f86; --bs-btn-disabled-color: #05070f;
}
.fb-client-area .btn-success {
    --bs-btn-bg: #10b981; --bs-btn-border-color: #10b981; --bs-btn-color: #04130d;
    --bs-btn-hover-bg: #0ea371; --bs-btn-hover-border-color: #0ea371; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #0c8f63; --bs-btn-active-border-color: #0c8f63;
}
.fb-client-area .btn-dark {
    --bs-btn-bg: rgba(255, 255, 255, 0.06); --bs-btn-border-color: rgba(255, 255, 255, 0.12); --bs-btn-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.12); --bs-btn-hover-border-color: rgba(255, 255, 255, 0.2); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.16); --bs-btn-active-border-color: rgba(255, 255, 255, 0.24);
}
.fb-client-area .btn-outline-primary {
    --bs-btn-color: #2ee6d6; --bs-btn-border-color: rgba(46, 230, 214, 0.4);
    --bs-btn-hover-bg: #2ee6d6; --bs-btn-hover-border-color: #2ee6d6; --bs-btn-hover-color: #05070f;
    --bs-btn-active-bg: #2ee6d6; --bs-btn-active-border-color: #2ee6d6; --bs-btn-active-color: #05070f;
}
.fb-client-area .btn-outline-info {
    --bs-btn-color: #6ad7ff; --bs-btn-border-color: rgba(106, 215, 255, 0.4);
    --bs-btn-hover-bg: #6ad7ff; --bs-btn-hover-border-color: #6ad7ff; --bs-btn-hover-color: #05070f;
}
.fb-client-area .btn-outline-secondary {
    --bs-btn-color: #cbd5e1; --bs-btn-border-color: rgba(255, 255, 255, 0.15);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.08); --bs-btn-hover-border-color: rgba(255, 255, 255, 0.25); --bs-btn-hover-color: #fff;
}

/* Badges (huraga forces color:#fff!important on bg-*) */
.fb-client-area .badge { font-weight: 600; border: 1px solid transparent; }
.fb-client-area .badge.bg-success { background-color: rgba(16, 185, 129, 0.15) !important; color: #6ee7b7 !important; border-color: rgba(16, 185, 129, 0.3); }
.fb-client-area .badge.bg-warning { background-color: rgba(245, 158, 11, 0.15) !important; color: #fcd34d !important; border-color: rgba(245, 158, 11, 0.3); }
.fb-client-area .badge.bg-danger  { background-color: rgba(244, 63, 94, 0.15) !important; color: #fda4af !important; border-color: rgba(244, 63, 94, 0.3); }
.fb-client-area .badge.bg-secondary { background-color: rgba(148, 163, 184, 0.15) !important; color: #cbd5e1 !important; border-color: rgba(148, 163, 184, 0.3); }
.fb-client-area .badge.bg-info { background-color: rgba(106, 215, 255, 0.15) !important; color: #7dd3fc !important; border-color: rgba(106, 215, 255, 0.3); }
.fb-client-area .badge.bg-primary { background-color: rgba(46, 230, 214, 0.15) !important; color: #2ee6d6 !important; border-color: rgba(46, 230, 214, 0.3); }

/* Nav tabs (invoices) + override huraga's .nav-link{color:#000!important} */
.fb-client-area .nav-link { color: #cbd5e1 !important; }
.fb-client-area .nav-tabs { border-bottom-color: rgba(255, 255, 255, 0.08); }
.fb-client-area .nav-tabs .nav-link {
    color: #94a3b8 !important; background: transparent;
    border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.fb-client-area .nav-tabs .nav-link:hover { color: #fff !important; border-bottom-color: rgba(255, 255, 255, 0.2); }
.fb-client-area .nav-tabs .nav-link.active { color: #2ee6d6 !important; background: transparent; border-bottom-color: #2ee6d6; }

/* CRITICAL: Tailwind's `.collapse` utility sets `visibility: collapse`, which
   collides with Bootstrap's `.collapse` component class. Once a Bootstrap
   collapse finishes opening it carries `.collapse.show`, so Tailwind hides the
   content (it stays visible only mid-animation, while the class is `.collapsing`).
   Restore visibility for every Bootstrap collapse on the client pages. */
.fb-client-area .collapse:not(.show) { visibility: visible; }
.fb-client-area .collapse.show,
.fb-client-area .collapsing,
.fb-client-area .accordion-collapse { visibility: visible !important; }

/* Accordion (order flow: select product / configuration / checkout / payment) */
.fb-client-area .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-color: #e6eaf4;
    --bs-accordion-border-color: rgba(255, 255, 255, 0.08);
    --bs-accordion-border-radius: 1rem;
    --bs-accordion-inner-border-radius: 0.9rem;
    --bs-accordion-btn-color: #ffffff;
    --bs-accordion-btn-bg: rgba(255, 255, 255, 0.02);
    --bs-accordion-active-color: #2ee6d6;
    --bs-accordion-active-bg: rgba(46, 230, 214, 0.08);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(46, 230, 214, 0.15);
    --bs-accordion-btn-focus-border-color: rgba(46, 230, 214, 0.4);
}
.fb-client-area .accordion-item {
    background-color: #0a0e1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.fb-client-area .accordion-button {
    color: #fff;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.02);
}
.fb-client-area .accordion-button:not(.collapsed) {
    color: #2ee6d6;
    background-color: rgba(46, 230, 214, 0.08);
    box-shadow: none;
}
.fb-client-area .accordion-button:focus {
    border-color: rgba(46, 230, 214, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(46, 230, 214, 0.15);
}
.fb-client-area .accordion-body { color: #e6eaf4; }
/* The "Items" badge inside the select-product header */
.fb-client-area .accordion-button .badge { font-size: 0.7rem; }

/* .well is a Bootstrap 3 leftover used by the product configuration card */
.fb-client-area .well {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.fb-client-area .well h3 { margin-top: 0; }

/* Product list inside "Select Product": make each item a clear, clickable row */
.fb-client-area .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}
.fb-client-area .list-group-item.list-group-item:hover {
    background-color: rgba(46, 230, 214, 0.06);
    border-color: rgba(46, 230, 214, 0.3);
    color: #fff;
}
.fb-client-area .list-group-item .svg-icon { color: #2ee6d6; flex: 0 0 auto; }

/* Forms */
.fb-client-area .form-control,
.fb-client-area .form-select {
    background-color: rgba(5, 7, 15, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e6eaf4;
    border-radius: 0.625rem;
}
.fb-client-area .form-control:focus,
.fb-client-area .form-select:focus {
    background-color: rgba(5, 7, 15, 0.8);
    border-color: rgba(46, 230, 214, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(46, 230, 214, 0.2);
    color: #fff;
}
.fb-client-area .form-control::placeholder { color: #64748b; }
.fb-client-area .form-label { color: #cbd5e1; }
.fb-client-area .form-text { color: #64748b; }
.fb-client-area .input-group-text {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* List groups */
.fb-client-area .list-group { --bs-list-group-bg: transparent; }
.fb-client-area .list-group-item {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e6eaf4;
}
.fb-client-area .list-group-item:hover { background-color: rgba(255, 255, 255, 0.03); }

/* Pagination */
.fb-client-area .pagination {
    --bs-pagination-bg: transparent;
    --bs-pagination-color: #cbd5e1;
    --bs-pagination-border-color: rgba(255, 255, 255, 0.1);
    --bs-pagination-hover-bg: rgba(255, 255, 255, 0.05);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-border-color: rgba(255, 255, 255, 0.2);
    --bs-pagination-focus-bg: rgba(255, 255, 255, 0.05);
    --bs-pagination-active-bg: #2ee6d6;
    --bs-pagination-active-border-color: #2ee6d6;
    --bs-pagination-active-color: #05070f;
    --bs-pagination-disabled-bg: transparent;
    --bs-pagination-disabled-color: #475569;
    --bs-pagination-disabled-border-color: rgba(255, 255, 255, 0.06);
}

/* Modals, dropdowns (dark surface + neon) — not scoped, since Bootstrap may
   relocate them, but data-bs-theme=dark already applies globally. */
.fb-client-area .modal-content,
.modal-content {
    background-color: #0a0e1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    color: #e6eaf4;
}
.modal-header, .modal-footer { border-color: rgba(255, 255, 255, 0.08); }

/* Breadcrumb fragments injected by module templates into our nav */
.tcx-crumbs .breadcrumb-item { display: inline; color: #94a3b8; }
.tcx-crumbs .breadcrumb-item.active { color: #cbd5e1; }
.tcx-crumbs .breadcrumb-item a { color: #94a3b8; }

/* Misc */
.fb-client-area dt { color: #94a3b8; font-weight: 500; }
.fb-client-area dd { color: #e6eaf4; }
.fb-client-area hr { border-color: rgba(255, 255, 255, 0.1); }
.fb-client-area .btn-close { filter: invert(1) grayscale(1) brightness(2); }
