:root{
    --tx-primary: #1f2559;
    --tx-secondary: #f47c20;
    --tx-dark: #11172f;
    --tx-text: #1f2937;
    --tx-muted: #6b7280;
    --tx-border: #e5e7eb;
    --tx-bg: #f8fafc;
    --tx-card: #ffffff;
    --tx-success: #198754;
    --tx-warning: #ffc107;
    --tx-danger: #dc3545;
    --tx-info: #0dcaf0;
    --tx-radius: 1.25rem;
    --tx-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --tx-shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.12);
}

html, body{
    overflow-x: hidden;
}

body{
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--tx-text);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.tx-brand-text,
.tx-section-title,
.tx-heading{
    font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
}

a{
    transition: all .2s ease-in-out;
}

img{
    max-width: 100%;
    height: auto;
}

.text-tx-primary{
    color: var(--tx-primary) !important;
}

.text-tx-secondary{
    color: var(--tx-secondary) !important;
}

.bg-tx-primary{
    background-color: var(--tx-primary) !important;
}

.bg-tx-secondary{
    background-color: var(--tx-secondary) !important;
}

.border-tx{
    border-color: var(--tx-border) !important;
}

.rounded-4xl{
    border-radius: 2rem !important;
}

.tx-brand-text{
    font-size: 1.2rem;
    letter-spacing: .02em;
    color: var(--tx-primary);
}

.navbar{
    background: #ffffff !important;
}

.navbar .nav-link{
    color: var(--tx-text);
    font-weight: 500;
    padding-left: .85rem !important;
    padding-right: .85rem !important;
    border-radius: .75rem;
}

.navbar .nav-link:hover{
    background-color: #f3f4f6;
    color: var(--tx-secondary);
}

.navbar .nav-link.active{
    color: var(--tx-secondary) !important;
    font-weight: 700;
}

.navbar-brand img{
    width: auto;
    max-height: 46px;
}

.btn-tx-primary{
    background-color: var(--tx-primary);
    border-color: var(--tx-primary);
    color: #ffffff;
}

.btn-tx-primary:hover,
.btn-tx-primary:focus{
    background-color: #161b45;
    border-color: #161b45;
    color: #ffffff;
}

.btn-tx-secondary{
    background-color: var(--tx-secondary);
    border-color: var(--tx-secondary);
    color: #ffffff;
}

.btn-tx-secondary:hover,
.btn-tx-secondary:focus{
    background-color: #db6b16;
    border-color: #db6b16;
    color: #ffffff;
}

.btn-outline-tx-primary{
    border: 1px solid var(--tx-primary);
    color: var(--tx-primary);
    background: transparent;
}

.btn-outline-tx-primary:hover{
    background: var(--tx-primary);
    color: #ffffff;
}

.tx-hero{
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tx-primary) 0%, #28306d 60%, #33408d 100%);
}

.tx-hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(31,37,89,.95), rgba(31,37,89,.78), rgba(31,37,89,.35));
    z-index: 1;
}

.tx-hero .container{
    position: relative;
    z-index: 2;
}

.tx-hero-title{
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.tx-hero-text{
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 2rem;
}

.tx-hero-image{
    position: absolute;
    right: 0;
    bottom: 0;
    max-height: 100%;
    max-width: 48%;
    object-fit: cover;
    opacity: .58;
    z-index: 1;
}

.tx-search-box{
    background: #ffffff;
    border-radius: 999px;
    padding: .5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.tx-search-box .form-control{
    border: 0;
    box-shadow: none !important;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    min-height: 52px;
    border-radius: 999px;
}

.tx-floating-cards{
    margin-top: -70px;
    position: relative;
    z-index: 5;
}

.tx-service-card{
    border: 1px solid var(--tx-border);
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: var(--tx-shadow);
    padding: 1.6rem;
    height: 100%;
    transition: all .25s ease;
}

.tx-service-card:hover{
    transform: translateY(-5px);
    box-shadow: var(--tx-shadow-hover);
}

.tx-service-card.highlighted{
    background: var(--tx-secondary);
    color: #ffffff;
    border-color: var(--tx-secondary);
}

.tx-service-card.highlighted p,
.tx-service-card.highlighted a{
    color: rgba(255,255,255,.92) !important;
}

.tx-service-icon{
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    background: #fff4ec;
    color: var(--tx-secondary);
}

.tx-service-card.highlighted .tx-service-icon{
    background: rgba(255,255,255,.16);
    color: #ffffff;
}

.tx-section-kicker{
    color: var(--tx-secondary);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.tx-section-title{
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 700;
    color: var(--tx-text);
    margin-bottom: 1rem;
}

.tx-section-text{
    color: var(--tx-muted);
    font-size: 1rem;
}

.tx-image-rounded{
    border-radius: 1.5rem;
    box-shadow: var(--tx-shadow);
    object-fit: cover;
    width: 100%;
}

.tx-stat-card{
    background: #ffffff;
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    box-shadow: var(--tx-shadow);
    padding: 1.75rem 1rem;
    text-align: center;
    height: 100%;
}

.tx-stat-icon{
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31,37,89,.06);
    color: var(--tx-primary);
    font-size: 1.3rem;
}

.tx-stat-number{
    font-size: 2rem;
    font-weight: 700;
    color: var(--tx-secondary);
    line-height: 1;
    margin-bottom: .5rem;
}

.tx-stat-label{
    font-weight: 700;
    margin-bottom: .35rem;
}

.tx-faq-wrapper{
    background: #ffffff;
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--tx-shadow);
}

.tx-faq-item + .tx-faq-item{
    border-top: 1px solid var(--tx-border);
}

.tx-faq-question{
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--tx-primary);
}

.tx-faq-question:hover{
    background: #f8fafc;
}

.tx-faq-answer{
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: var(--tx-muted);
    line-height: 1.7;
}

.tx-faq-item.open .tx-faq-answer{
    display: block;
}

.tx-footer{
    background: var(--tx-dark);
    color: #ffffff;
}

.tx-footer-wave{
    height: 34px;
    background: #ffffff;
    clip-path: polygon(0 0,100% 0,100% 30%,85% 100%,70% 30%,55% 100%,40% 30%,25% 100%,10% 30%,0 100%);
}

.tx-footer-text,
.tx-footer-list a{
    color: rgba(255,255,255,.72);
}

.tx-footer-list a:hover,
.tx-footer-text:hover{
    color: #ffffff;
}

.tx-social-link{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
}

.tx-social-link:hover{
    background: var(--tx-secondary);
    color: #ffffff;
}

.tx-page-hero{
    background: linear-gradient(135deg, var(--tx-primary), #2f3775);
    padding: 5rem 0;
    color: #ffffff;
}

.tx-page-hero h1{
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
}

.tx-page-hero p{
    color: rgba(255,255,255,.78);
    max-width: 760px;
    margin: 0 auto;
}

.tx-card{
    background: #ffffff;
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    box-shadow: var(--tx-shadow);
}

.tx-card-hover{
    transition: all .25s ease;
}

.tx-card-hover:hover{
    transform: translateY(-4px);
    box-shadow: var(--tx-shadow-hover);
}

.tx-dashboard-banner{
    height: 48px;
    background: var(--tx-primary);
}

.tx-sidebar{
    position: sticky;
    top: 95px;
}

.tx-sidebar-menu .list-group-item{
    color: var(--tx-text);
    font-weight: 500;
    margin-bottom: .35rem;
    padding: .85rem 1rem;
}

.tx-sidebar-menu .list-group-item:hover{
    background: #f3f4f6;
    color: var(--tx-text);
}

.tx-sidebar-menu .list-group-item.active{
    background: var(--tx-primary);
    color: #ffffff;
}

.tx-sidebar-menu .list-group-item.text-danger:hover{
    background: #fff1f2;
    color: var(--tx-danger);
}

.tx-info-box{
    border-radius: 1.25rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid transparent;
}

.tx-info-success{
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.tx-info-warning{
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.tx-info-blue{
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.tx-address-code{
    font-family: "Courier New", monospace;
    color: var(--tx-muted);
    white-space: pre-line;
    line-height: 1.7;
    font-size: .95rem;
}

.tx-quick-card{
    background: #ffffff;
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    box-shadow: var(--tx-shadow);
    padding: 1.4rem 1rem;
    text-align: center;
    height: 100%;
    text-decoration: none;
    color: var(--tx-text);
    transition: all .25s ease;
}

.tx-quick-card:hover{
    transform: translateY(-4px);
    box-shadow: var(--tx-shadow-hover);
    color: var(--tx-text);
    border-color: rgba(244,124,32,.35);
}

.tx-quick-icon{
    font-size: 1.9rem;
    margin-bottom: .8rem;
}

.tx-badge{
    display: inline-block;
    padding: .45rem .8rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
}

.tx-badge.waiting{
    background: #fff3cd;
    color: #8a6d3b;
}

.tx-badge.received{
    background: #d1e7dd;
    color: #0f5132;
}

.tx-badge.in_transit{
    background: #cfe2ff;
    color: #084298;
}

.tx-badge.in_transit_boat{
    background: #cff4fc;
    color: #055160;
}

.tx-badge.inventory{
    background: #e2e3e5;
    color: #41464b;
}

.tx-badge.available{
    background: #d1e7dd;
    color: #146c43;
}

.tx-badge.delivered{
    background: #212529;
    color: #ffffff;
}

.tx-filter-chip{
    border: 0;
    border-radius: 999px;
    padding: .55rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #374151;
    transition: all .2s ease;
}

.tx-filter-chip:hover{
    opacity: .9;
}

.tx-filter-chip.active{
    background: var(--tx-primary);
    color: #ffffff;
}

.tx-package-item{
    background: #ffffff;
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    box-shadow: var(--tx-shadow);
    padding: 1.25rem;
    transition: all .25s ease;
}

.tx-package-item:hover{
    box-shadow: var(--tx-shadow-hover);
}

.tx-progress-wrap{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    flex-wrap: nowrap;
}

.tx-progress-step{
    flex: 1;
    text-align: center;
    position: relative;
}

.tx-progress-step-circle{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .5rem;
    font-weight: 700;
}

.tx-progress-step.active .tx-progress-step-circle{
    background: var(--tx-secondary);
    color: #ffffff;
}

.tx-progress-step-label{
    font-size: .72rem;
    font-weight: 700;
    color: #9ca3af;
}

.tx-progress-step.active .tx-progress-step-label{
    color: var(--tx-secondary);
}

.tx-chat-shell{
    max-width: 760px;
    margin: 0 auto;
}

.tx-chat-box{
    background: #ffffff;
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    box-shadow: var(--tx-shadow);
    overflow: hidden;
}

.tx-chat-header{
    background: var(--tx-secondary);
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    font-weight: 700;
}

.tx-chat-messages{
    height: 360px;
    overflow-y: auto;
    padding: 1rem;
    background: #ffffff;
}

.tx-chat-bubble{
    max-width: 80%;
    padding: .8rem 1rem;
    border-radius: 1.1rem;
    margin-bottom: .75rem;
    font-size: .95rem;
}

.tx-chat-bubble.user{
    background: var(--tx-primary);
    color: #ffffff;
    margin-left: auto;
}

.tx-chat-bubble.agent{
    background: #f1f5f9;
    color: var(--tx-text);
    margin-right: auto;
}

.tx-chat-form{
    border-top: 1px solid var(--tx-border);
    padding: .85rem;
    background: #ffffff;
}

.tx-upload-box{
    border: 2px dashed #d1d5db;
    border-radius: 1.25rem;
    padding: 2.5rem 1rem;
    text-align: center;
    background: #ffffff;
    transition: all .2s ease;
}

.tx-upload-box:hover{
    border-color: var(--tx-secondary);
    background: #fffaf5;
}

.tx-metric-card{
    background: #ffffff;
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    box-shadow: var(--tx-shadow);
    padding: 1.4rem;
    height: 100%;
}

.tx-metric-number{
    font-size: 2rem;
    font-weight: 700;
    color: var(--tx-primary);
    line-height: 1;
}

.tx-table-wrap{
    background: #ffffff;
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    box-shadow: var(--tx-shadow);
    overflow: hidden;
}

.tx-table-wrap .table{
    margin-bottom: 0;
}

.tx-table-wrap .table th{
    background: #f8fafc;
    border-bottom: 1px solid var(--tx-border);
    font-size: .9rem;
    white-space: nowrap;
}

.tx-table-wrap .table td{
    vertical-align: middle;
    font-size: .93rem;
}

.tx-empty-state{
    background: #ffffff;
    border: 1px solid var(--tx-border);
    border-radius: 1.25rem;
    box-shadow: var(--tx-shadow);
    padding: 3rem 1.5rem;
    text-align: center;
}

.tx-empty-icon{
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.form-control,
.form-select{
    border-radius: .9rem;
    min-height: 48px;
    border-color: #d1d5db;
}

.form-control:focus,
.form-select:focus{
    border-color: var(--tx-secondary);
    box-shadow: 0 0 0 .2rem rgba(244,124,32,.15);
}

textarea.form-control{
    min-height: 120px;
}

.card{
    border-radius: 1.25rem;
}

.shadow-soft{
    box-shadow: var(--tx-shadow) !important;
}

.bg-light-subtle{
    background: #f8fafc !important;
}

.tx-login-card{
    max-width: 520px;
    margin: 0 auto;
}

.tx-auth-section{
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

@media (max-width: 1199.98px){
    .tx-hero-image{
        max-width: 42%;
        opacity: .42;
    }
}

@media (max-width: 991.98px){
    .tx-sidebar{
        position: static;
    }

    .tx-hero{
        min-height: auto;
        padding: 5rem 0;
    }

    .tx-hero-image{
        display: none;
    }

    .tx-floating-cards{
        margin-top: 2rem;
    }

    .tx-search-box{
        border-radius: 1.5rem;
    }
}

@media (max-width: 767.98px){
    .tx-hero-title{
        font-size: 2.2rem;
    }

    .tx-section-title{
        font-size: 1.9rem;
    }

    .tx-search-box{
        padding: .75rem;
    }

    .tx-search-box .row > div{
        margin-bottom: .75rem;
    }

    .tx-progress-wrap{
        flex-wrap: wrap;
        row-gap: 1rem;
    }

    .tx-progress-step{
        flex: 0 0 calc(50% - .5rem);
    }

    .tx-chat-bubble{
        max-width: 92%;
    }

    .tx-brand-text{
        font-size: 1rem;
    }
}

@media (max-width: 575.98px){
    .navbar-brand img{
        max-height: 40px;
    }

    .tx-service-card,
    .tx-stat-card,
    .tx-package-item,
    .tx-metric-card{
        padding: 1.1rem;
    }

    .tx-footer-wave{
        height: 26px;
    }
}