/* ============================================
   Shiptionary.com - Main Stylesheet
   Glassdoor-Inspired Modern Design
   Font: Inter
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #0077B6;
    --primary-dark: #005f8a;
    --primary-light: #e0f2fe;
    --secondary: #1861bf;
    --accent: #ff9119;
    --danger: #d93025;
    --dark: #1a1a2e;
    --dark-text: #1a1a2e;
    --body-text: #4a4a5a;
    --muted-text: #7c7c8a;
    --light-bg: #f5f6f8;
    --card-bg: #ffffff;
    --border-color: #e8e8ee;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Global Resets ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--body-text);
    background-color: var(--light-bg);
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
}

::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ---- Navbar ---- */
.navbar {
    padding: 0.6rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-dark.bg-primary {
    background: var(--dark) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    color: #bce3c9;
    font-size: 1.2rem;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.08);
}

.navbar .input-group .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 0.8125rem;
}

.navbar .input-group .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.navbar .input-group .form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary);
    box-shadow: none;
}

.navbar .input-group .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.navbar .btn-warning {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
}

.navbar .btn-warning:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.navbar .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 8px !important;
}

.navbar .dropdown-item {
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background: var(--light-bg);
}

/* ---- Hero Section ---- */
/* ---- Search Hero (Listing Pages) ---- */
.search-hero {
    background: linear-gradient(145deg, var(--dark) 0%, #16213e 100%);
    padding: 50px 0 45px;
    color: white;
}

.search-hero h2 {
    color: white;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.75px;
}

.search-hero .form-control {
    height: 52px;
    font-size: 1rem;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding-left: 20px;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: white;
}

.search-hero .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-hero .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.2);
    background: rgba(255,255,255,0.1);
}

.search-hero .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 0 2rem;
    height: 52px;
    font-weight: 600;
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
}

/* Ship & Company Cards */
.card-ship, .card-company {
    overflow: hidden;
}

.card-ship .card-img-top,
.card-company .card-img-top {
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.card-ship:hover .card-img-top,
.card-company:hover .card-img-top {
    transform: scale(1.03);
}

.card-ship .card-body,
.card-company .card-body {
    padding: 1rem;
}

.card-ship .card-title a,
.card-company .card-title a {
    font-weight: 600;
    color: var(--dark-text);
}

.card-ship .card-title a:hover,
.card-company .card-title a:hover {
    color: var(--primary);
}

/* ---- Star Rating ---- */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.star-rating i {
    font-size: 0.8rem;
    color: var(--accent);
}

.star-rating i.far {
    color: #ddd;
}

.star-rating .rating-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-text);
    margin-left: 6px;
}

/* Rating Input (Review Form) */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    justify-content: flex-end;
}

.rating-input input { display: none; }

.rating-input label {
    font-size: 1.6rem;
    color: #d9dce1;
    cursor: pointer;
    transition: color 0.15s, transform 0.1s;
}

.rating-input label:hover {
    transform: scale(1.15);
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: var(--accent);
}

/* ---- Overall Rating Badge (Glassdoor style) ---- */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

.rating-badge-lg {
    font-size: 2.5rem;
    padding: 12px 20px;
    border-radius: var(--radius-md);
}

.rating-badge i {
    font-size: 0.75em;
}

/* ---- Review Cards ---- */
.review-card {
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
}

.review-card:hover {
    transform: none;
}

.review-card .review-ratings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.review-card .rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.review-card .rating-item:hover {
    background: rgba(0,0,0,0.03);
}

.review-card .rating-item span:first-child {
    color: var(--muted-text);
    font-weight: 500;
}

/* ---- Rating Bar (Glassdoor style) ---- */
.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rating-bar-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-text);
    min-width: 160px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e8e8ee;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00b4d8);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.rating-bar-value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--dark-text);
    min-width: 32px;
    text-align: right;
}

/* ---- Stats Section ---- */
.stats-section {
    padding: 70px 0;
    background: white;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
}

.stat-card .stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--muted-text);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

/* ---- Badges ---- */
.badge {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* ---- Buttons ---- */
.btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0,119,182,0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,119,182,0.3);
}

.btn-warning {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-warning:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* ---- Subscription Card ---- */
.subscription-card {
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.subscription-card .card-header {
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    color: white;
    text-align: center;
    padding: 28px 20px;
    border: none;
}

.subscription-card .card-header h4 {
    color: white;
}

.subscription-card .price {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.subscription-card .price small {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0;
}

/* ---- Profile Header ---- */
.profile-header {
    background: linear-gradient(145deg, var(--dark) 0%, #16213e 100%);
    color: white;
    padding: 45px 0;
    margin-bottom: 0;
}

.profile-header h1 {
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ---- Filter Sidebar ---- */
.filter-sidebar {
    position: sticky;
    top: 80px;
    border-radius: var(--radius-md);
}

.filter-sidebar .card-header {
    background: var(--dark);
    color: white;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 600;
    font-size: 0.875rem;
}

.filter-sidebar .form-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted-text);
    margin-bottom: 0.35rem;
}

.filter-sidebar .form-select,
.filter-sidebar .form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.8125rem;
}

/* ---- Form Controls ---- */
.form-control, .form-select {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--dark-text);
    margin-bottom: 0.35rem;
}

/* ---- Write-up Section ---- */
.writeup-section {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.writeup-section .word-counter {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-text);
}

.writeup-section .word-counter.below-minimum {
    color: var(--danger);
}

/* ---- News Cards ---- */
.news-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.news-card .news-meta {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-text);
}

/* ---- Alert Customization ---- */
.alert {
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-success { background: #e8f5e9; color: #1b5e20; }
.alert-danger  { background: #fdecea; color: #b71c1c; }
.alert-warning { background: #fff8e1; color: #e65100; }
.alert-info    { background: #e3f2fd; color: #0d47a1; }

/* ---- Table Styles ---- */
.table {
    font-size: 0.8125rem;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.8px;
    color: var(--muted-text);
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

.table-hover tbody tr:hover {
    background: var(--light-bg);
}

/* ---- Pagination ---- */
.pagination .page-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    border: 1px solid var(--border-color);
    color: var(--body-text);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-link:hover {
    background: var(--light-bg);
    border-color: var(--border-color);
    color: var(--primary);
}

/* ---- Paywall ---- */
.paywall-overlay {
    position: relative;
}

.paywall-overlay::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(transparent, white);
}

.paywall-cta {
    text-align: center;
    padding: 40px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: -50px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.paywall-cta h3 {
    font-weight: 800;
}

/* ---- Breadcrumbs ---- */
.breadcrumb {
    font-size: 0.8125rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.6);
}

.breadcrumb-item a:hover {
    color: white;
}

/* ---- CTA Section (Homepage) ---- */
section.bg-primary {
    background: linear-gradient(135deg, var(--primary), #00b4d8) !important;
}

section.bg-primary h3 {
    color: white;
    font-weight: 800;
}

section.bg-primary .lead {
    opacity: 0.85;
}

/* ---- Footer ---- */
footer.bg-dark {
    background: var(--dark) !important;
}

footer h5, footer h6 {
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
}

footer .text-muted {
    color: rgba(255,255,255,0.45) !important;
    font-size: 0.8125rem;
}

footer a.text-muted:hover {
    color: var(--primary) !important;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: var(--transition);
}

footer .social-links a:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
}

footer hr {
    border-color: rgba(255,255,255,0.1);
}

/* ---- Comparison Table ---- */
.comparison-table th {
    background: var(--dark);
    color: white;
    position: sticky;
    top: 0;
}

/* ================================================================
   HOMEPAGE - Company Cards
   ================================================================ */

.company-home-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.company-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}

.company-home-card-rank { /* unused */
    display: none;
}

.company-home-card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.company-home-card-info {
    flex: 1;
    min-width: 0;
}

.company-home-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-home-card-meta {
    font-size: 0.65rem;
    color: var(--muted-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-home-card-rating {
    text-align: right;
    flex-shrink: 0;
}

.company-home-card-score {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.company-home-card-stars {
    margin-top: 2px;
}

.company-home-card-stars .star-rating i { font-size: 0.55rem; }
.company-home-card-stars .star-rating .rating-value { display: none; }

.company-home-card-reviews {
    font-size: 0.6rem;
    color: var(--muted-text);
    display: block;
    text-align: right;
}

/* ================================================================
   HOW IT WORKS SECTION
   ================================================================ */

.hiw-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.hiw-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hiw-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.hiw-subtitle {
    font-size: 0.95rem;
    color: var(--muted-text);
    max-width: 500px;
    margin: 0 auto;
}

.hiw-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.hiw-card {
    flex: 1;
    max-width: 260px;
    text-align: center;
    padding: 32px 20px 28px;
    background: white;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.hiw-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.hiw-card-number {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #e2e8f0;
}

.hiw-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.hiw-card:hover .hiw-card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.hiw-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.hiw-card-text {
    font-size: 0.8rem;
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: 14px;
}

.hiw-card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f8fafc;
    color: var(--muted-text);
    font-size: 0.65rem;
    font-weight: 600;
}

.hiw-card-tag i {
    font-size: 0.55rem;
}

/* Connector arrows */
.hiw-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 0.7rem;
    padding-top: 50px;
}

@media (max-width: 992px) {
    .hiw-grid {
        flex-wrap: wrap;
        gap: 16px;
    }
    .hiw-connector { display: none; }
    .hiw-card { max-width: 100%; flex: 0 0 calc(50% - 8px); }
    .hiw-title { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .hiw-card { flex: 0 0 100%; }
    .hiw-section { padding: 50px 0; }
}

/* ================================================================
   COMPANY LISTING PAGE - Horizontal List Cards
   ================================================================ */

.company-list-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.25s ease;
    position: relative;
    height: 100%;
}

.company-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: transparent;
}

.company-list-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 14px;
}

.company-list-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 4px;
    flex-shrink: 0;
}

.company-list-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.company-list-body {
    flex: 1;
    min-width: 0;
}

.company-list-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.company-list-name a {
    color: var(--dark-text);
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.company-list-name a:hover {
    color: var(--primary);
}

.company-list-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.clb-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    background: #eff6ff;
    color: #2563eb;
}

.clb-meta {
    font-size: 0.65rem;
    color: var(--muted-text);
}

.clb-meta i {
    font-size: 0.55rem;
    margin-right: 3px;
}

.company-list-desc {
    font-size: 0.75rem;
    color: var(--muted-text);
    line-height: 1.5;
    margin-bottom: 0;
}

.company-list-right {
    text-align: center;
    flex-shrink: 0;
    min-width: 60px;
}

.company-list-score {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.company-list-stars .star-rating i { font-size: 0.5rem; }
.company-list-stars .star-rating .rating-value { display: none; }

.company-list-reviews {
    font-size: 0.6rem;
    color: var(--muted-text);
    margin-top: 2px;
}

.company-list-no-rating {
    font-size: 0.7rem;
    color: #cbd5e1;
}

@media (max-width: 576px) {
    .company-list-card { flex-wrap: wrap; }
    .company-list-right { width: 100%; text-align: left; padding-top: 10px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
    .company-list-score { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .company-home-card { padding: 12px; }
    .company-home-card-avatar { width: 38px; height: 38px; font-size: 0.9rem; }
    .company-home-card-score { font-size: 1.1rem; }
}

/* ================================================================
   NEWS PAGE
   ================================================================ */

/* Featured cards */
.news-featured-card {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
}

.news-featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-featured-card:hover img {
    transform: scale(1.04);
}

.news-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.news-featured-main {
    min-height: 380px;
}

.news-featured-side {
    min-height: 180px;
}

.news-featured-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.news-featured-title {
    color: white;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-featured-main .news-featured-title {
    font-size: 1.4rem;
}

.news-featured-meta {
    display: flex;
    gap: 14px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
}

.news-featured-meta i {
    font-size: 0.6rem;
}

/* Article list cards */
.news-list-card {
    display: flex;
    gap: 18px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: transparent;
}

.news-list-img {
    width: 180px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-list-card:hover .news-list-img img {
    transform: scale(1.05);
}

.news-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-list-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.6rem;
    font-weight: 600;
    margin-bottom: 6px;
    align-self: flex-start;
}

.news-list-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 6px;
    line-height: 1.35;
}

.news-list-excerpt {
    font-size: 0.78rem;
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: 8px;
    flex: 1;
}

.news-list-meta {
    display: flex;
    gap: 14px;
    font-size: 0.65rem;
    color: #94a3b8;
}

.news-list-meta i {
    font-size: 0.55rem;
    margin-right: 3px;
}

/* Sidebar category links */
.news-sidebar-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--body-text);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s;
}

.news-sidebar-cat:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.news-sidebar-cat.active {
    background: #f0fdf4;
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .news-featured-main { min-height: 250px; }
    .news-featured-side { min-height: 140px; }
    .news-list-card { flex-direction: column; }
    .news-list-img { width: 100%; height: 160px; }
}

/* ================================================================
   SHIP LISTING PAGE
   ================================================================ */

/* Quick type filter pills */
.ship-quick-filter {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.ship-quick-filter:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

.ship-quick-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Filter sidebar */
.filter-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 8px;
    padding-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
    margin-bottom: 8px;
}

.filter-select {
    border-radius: 8px !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
}

.filter-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(0,119,182,0.12) !important;
}

/* Rating filter chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: 1.5px solid transparent;
}

.filter-chip:hover {
    background: #e2e8f0;
    color: #334155;
}

.filter-chip.active {
    background: #f0fdf4;
    color: var(--primary);
    border-color: var(--primary);
}

/* Active filter tags */
.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
}

.active-filter-tag a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    margin-left: 2px;
}

.active-filter-tag a:hover {
    color: #dc2626;
}

/* Ship Cards */
.ship-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ship-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: transparent;
}

.ship-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ship-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.ship-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ship-card:hover .ship-card-img img {
    transform: scale(1.06);
}

.ship-card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ship-card-rating {
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ship-card-rating i {
    font-size: 0.55rem;
}

.ship-card-type {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* No-image card variant: a colored hero block themed by ship type */
.ship-card-hero {
    position: relative;
    height: 130px;
    padding: 14px 16px;
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Subtle inset shadow for depth */
.ship-card-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 30%, rgba(0,0,0,0.18) 100%);
    pointer-events: none;
}

/* Big translucent ship-type icon as a background watermark */
.ship-card-hero-bgicon {
    position: absolute;
    right: -12px;
    bottom: -22px;
    font-size: 6.5rem;
    color: rgba(255,255,255,0.10);
    line-height: 1;
    pointer-events: none;
    transition: transform 0.4s ease, color 0.3s ease;
}

.ship-card:hover .ship-card-hero-bgicon {
    transform: rotate(-6deg) scale(1.05);
    color: rgba(255,255,255,0.15);
}

/* Foreground icon chip — top-left */
.ship-card-hero-icon {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ship-card-hero-type {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ship-card-hero-rating {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 2;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.ship-card-hero-rating i { font-size: 0.55rem; margin-left: 2px; }

.ship-card-hero-imo {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
}

.ship-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ship-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.ship-card-title a {
    color: var(--dark-text);
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.ship-card-title a:hover {
    color: var(--primary);
}

.ship-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.ship-card-meta span {
    font-size: 0.7rem;
    color: var(--muted-text);
}

.ship-card-meta i {
    width: 14px;
    text-align: center;
    font-size: 0.6rem;
    margin-right: 4px;
}

.ship-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.ship-card-specs {
    display: flex;
    gap: 10px;
}

.ship-card-specs span {
    font-size: 0.65rem;
    color: var(--muted-text);
    font-weight: 500;
}

.ship-card-specs i {
    margin-right: 3px;
    font-size: 0.55rem;
}

.ship-card-reviews {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

.ship-card-reviews i {
    font-size: 0.6rem;
    margin-right: 3px;
}

@media (max-width: 768px) {
    .ship-card-img { height: 140px; }
    .ship-quick-filter { font-size: 0.6rem; padding: 4px 10px; }
}

/* ================================================================
   SHIP DETAIL PAGE - Enhanced
   ================================================================ */

/* Hero */
.ship-hero {
    position: relative;
    background: linear-gradient(160deg, #04081a, #0a2540);
    padding: 40px 0 60px;
    color: white;
    overflow: hidden;
    min-height: 320px;
}

.ship-hero-bg {
    position: absolute;
    inset: 0;
}

.ship-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.ship-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,8,26,0.6) 0%, rgba(4,8,26,0.4) 40%, rgba(4,8,26,0.85) 100%);
}

.ship-type-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.ship-hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: white;
    margin-bottom: 10px;
    line-height: 1.1;
}

/* Meta pills */
.ship-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ship-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}

.ship-meta-pill i {
    font-size: 0.6rem;
    opacity: 0.7;
}

.ship-meta-link {
    text-decoration: none;
    transition: all 0.15s;
}

.ship-meta-link:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

/* Hero rating */
.ship-hero-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ship-hero-rating-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.ship-hero-rating .star-rating i {
    color: var(--primary);
}

/* Spec cards */
.ship-spec-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.ship-spec-card i {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.ship-spec-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1.2;
}

.ship-spec-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted-text);
    margin-top: 4px;
}

/* Detail rows */
.ship-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ship-detail-row:last-child {
    border-bottom: none;
}

.ship-detail-label {
    font-size: 0.8rem;
    color: var(--muted-text);
    font-weight: 500;
}

.ship-detail-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-text);
}

.ship-detail-value code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--dark-text);
}

/* Review avatar */
.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Review score badge */
.review-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #48cae4);
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
}

/* Rating chips grid */
.review-ratings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
}

.review-rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.review-rating-chip-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted-text);
}

.review-rating-chip-value {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 5px;
}

/* Writeups */
.review-writeup {
    margin-bottom: 14px;
}

.review-writeup h6 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 6px;
}

.review-writeup p {
    font-size: 0.8125rem;
    color: var(--body-text);
    line-height: 1.75;
    margin-bottom: 0;
}

/* Sidebar info rows */
.ship-sidebar-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ship-sidebar-info:last-child {
    border-bottom: none;
}

.ship-sidebar-info > i {
    margin-top: 2px;
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}

.ship-sidebar-info .label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-text);
}

.ship-sidebar-info span:not(.label),
.ship-sidebar-info a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-text);
}

/* Specs strip (floating card) */
.ship-specs-strip {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.ship-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 0 12px;
}

.ship-spec-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ship-spec-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1.2;
}

.ship-spec-lbl {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-text);
}

.ship-specs-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* Technical details grid */
.ship-tech-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ship-tech-row:last-child { border-bottom: none; }

.ship-tech-icon {
    width: 30px; height: 30px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.ship-tech-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-text);
}

.ship-tech-value {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-text);
}

/* Review detail card */
.review-detail-card {
    border: none !important;
    border-radius: 16px !important;
    border-left: 4px solid var(--primary) !important;
    transition: box-shadow 0.2s;
}

.review-detail-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: none;
}

/* Review rating bars (inside reviews) */
.review-bars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 8px;
}

.review-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-bar-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--muted-text);
    min-width: 75px;
}

.review-bar-track {
    flex: 1;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.review-bar-val {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark-text);
    min-width: 14px;
    text-align: right;
}

/* Review writeup text */
.review-writeup-text {
    font-size: 0.82rem;
    color: var(--body-text);
    line-height: 1.85;
    margin-bottom: 0;
}

/* Sidebar rating header */
.ship-rating-header {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 28px 24px;
    text-align: center;
    color: white;
}

.ship-rating-big {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: white;
}

.ship-rating-stars { margin-top: 6px; }
.ship-rating-stars .star-rating i { color: #f59e0b; }

.ship-rating-count {
    font-size: 0.75rem;
    margin-top: 6px;
    opacity: 0.6;
}

/* Star distribution */
.ship-rating-dist {
    margin-top: 18px;
    text-align: left;
}

.ship-dist-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ship-dist-row > span:first-child {
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 20px;
    text-align: right;
    color: rgba(255,255,255,0.5);
}

.ship-dist-row > span:first-child i {
    font-size: 0.45rem;
    margin-left: 1px;
}

.ship-dist-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.ship-dist-bar > div {
    height: 100%;
    background: #f59e0b;
    border-radius: 2px;
}

.ship-dist-count {
    font-size: 0.6rem;
    min-width: 14px;
    text-align: left;
    color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .ship-specs-strip { flex-wrap: wrap; gap: 14px; }
    .ship-specs-divider { display: none; }
    .ship-spec-item { flex: 0 0 calc(50% - 7px); }
}

@media (max-width: 768px) {
    .ship-hero-title { font-size: 1.6rem; }
    .ship-hero { padding: 30px 0 50px; min-height: auto; }
    .ship-hero-rating-number { font-size: 1.6rem; }
    .review-bars-grid { grid-template-columns: 1fr; }
    .ship-spec-item { flex: 0 0 100%; }
    .ship-specs-strip { padding: 14px 16px; }
}

/* ================================================================
   PORT RATING MODULE
   ================================================================ */

/* Port Hero */
.port-hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 40%, #0ea5e9 100%);
    padding: 56px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.port-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.port-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
}

.port-hero .container { position: relative; z-index: 2; }

.port-hero-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.port-hero .badge-pill {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.port-hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.port-hero-sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Hero Stats Strip */
.port-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.port-hero-stat { text-align: center; padding: 0 20px; }
.port-hero-stat-num { display: block; font-size: 1.5rem; font-weight: 900; color: white; line-height: 1; }
.port-hero-stat-label { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); }
.port-hero-stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.15); }

.port-hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 18px; }
.port-hero-actions .btn { border-radius: 10px; font-weight: 600; padding: 10px 24px; }

.port-hero-trust { font-size: 0.68rem; color: rgba(255,255,255,0.35); }

/* Filter chips */
.port-filter-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.port-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.port-filter-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted-text);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.15s;
}

.port-filter-chip:hover { border-color: #0ea5e9; color: #0ea5e9; }

.port-filter-chip.active {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0ea5e9;
    font-weight: 600;
}

.port-filter-chip small { opacity: 0.6; }

/* Top Rated sidebar items */
.port-top-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background 0.1s;
}

.port-top-item:last-child { border-bottom: none; }
.port-top-item:hover { background: #f8fafc; margin: 0 -12px; padding: 8px 12px; border-radius: 6px; }

.port-top-rank {
    width: 22px; height: 22px;
    border-radius: 6px;
    background: #f0f9ff;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    flex-shrink: 0;
}

.port-top-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.port-top-country {
    font-size: 0.58rem;
    color: var(--muted-text);
}

.port-top-rating {
    font-size: 0.7rem;
    font-weight: 800;
    color: #0ea5e9;
    flex-shrink: 0;
}

/* Port Cards - Enhanced */
.port-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 14px;
    padding: 0;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.25s;
    height: 100%;
    overflow: hidden;
}

.port-card:hover {
    box-shadow: 0 8px 28px rgba(14,165,233,0.12);
    border-color: #0ea5e9;
    transform: translateY(-3px);
}

/* The full card is positioned so .port-card-link fills it for navigation,
   while .port-card-detail--map (Google Maps) sits above and stays clickable. */
.port-card {
    position: relative;
}

.port-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Top row: flag chip + name/country + rating */
.port-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
}

.port-card-flag {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.port-card-top-info {
    flex: 1;
    min-width: 0;
}

.port-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.port-card-country {
    font-size: 0.72rem;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.port-card-country i { font-size: 0.6rem; }

.port-card-rating {
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.port-card-rating i { font-size: 0.55rem; margin-left: 2px; }

.port-card-new {
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 800;
    color: #f59e0b;
    background: #fefce8;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 1.2px;
}

/* Detail pills (type / UNLOCODE / coords→Maps) */
.port-card-detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
}

.port-card-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: var(--muted-text);
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.66rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.port-card-detail i { font-size: 0.6rem; color: var(--muted-text); }

.port-card-detail code {
    color: var(--dark-text);
    background: transparent;
    font-size: 0.66rem;
    font-weight: 700;
}

.port-card-detail--type {
    background: #eff6ff;
    color: #1d4ed8;
}

.port-card-detail--type i { color: #1d4ed8; }

/* Coordinates pill is a real link to Google Maps — sits above .port-card-link */
.port-card-detail--map {
    position: relative;
    z-index: 2;
    background: #f0fdf4;
    color: #047857;
    cursor: pointer;
}

.port-card-detail--map:hover {
    background: #dcfce7;
    color: #065f46;
}

.port-card-detail--map i { color: #047857; }

.port-card-detail-ext {
    font-size: 0.55rem !important;
    margin-left: 2px;
    opacity: 0.7;
}

/* Footer */
.port-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: var(--muted-text);
    padding: 10px 16px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
}

.port-card-cta {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.port-card-cta i { font-size: 0.6rem; }

.port-card:hover .port-card-cta { transform: translateX(3px); }

.port-card-type {
    background: #f8fafc;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.62rem;
}

/* Port mini sidebar */
.port-mini-flag {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    color: #0ea5e9;
    flex-shrink: 0;
}

.port-mini-rating {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0ea5e9;
}

/* Port Detail Hero */
.port-detail-hero {
    background: linear-gradient(135deg, #0c4a6e, #0369a1);
    padding: 40px 0;
    position: relative;
}

.port-region-badge {
    display: inline-block;
    background: rgba(14,165,233,0.2);
    color: #7dd3fc;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.port-type-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 6px;
}

.port-detail-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin: 8px 0;
}

.port-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}

.port-detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.port-detail-rating-num {
    font-size: 2rem;
    font-weight: 900;
    color: white;
}

/* Port Breakdown */
.port-breakdown-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.port-breakdown-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.port-breakdown-label {
    font-size: 0.68rem;
    color: var(--muted-text);
    min-width: 85px;
}

.port-breakdown-bar {
    flex: 1;
    height: 5px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.port-breakdown-bar > div {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s;
}

.port-breakdown-val {
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 22px;
    text-align: right;
}

/* Port Review Chips */
.port-review-chip {
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
}

.port-review-chip i { font-size: 0.6rem; margin-right: 3px; }

.port-review-chip-smooth { background: #f0fdf4; color: #16a34a; }
.port-review-chip-moderate { background: #fefce8; color: #ca8a04; }
.port-review-chip-difficult { background: #fef2f2; color: #dc2626; }

/* Port mini bars (in review cards) */
.port-mini-bar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.port-mini-bar-label { font-size: 0.6rem; color: var(--muted-text); min-width: 55px; }
.port-mini-bar-track { flex: 1; height: 4px; background: #f1f5f9; border-radius: 2px; overflow: hidden; }
.port-mini-bar-track > div { height: 100%; border-radius: 2px; }
.port-mini-bar-val { font-size: 0.65rem; font-weight: 700; min-width: 12px; text-align: right; }

/* ---- Port Rating Form ---- */
.port-rate-hero {
    background: linear-gradient(135deg, #0c4a6e, #0ea5e9);
    padding: 40px 0 30px;
}

/* Progress steps */
.port-steps {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
}

.port-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-text);
    background: #f1f5f9;
    transition: all 0.2s;
}

.port-step span {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
}

.port-step.active {
    background: #0ea5e9;
    color: white;
}

.port-step.active span {
    background: white;
    color: #0ea5e9;
}

.port-step.completed {
    background: #f0fdf4;
    color: #16a34a;
}

.port-step.completed span {
    background: #16a34a;
    color: white;
}

/* Form heading */
.port-form-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* Radio card group */
.port-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.port-radio-card {
    cursor: pointer;
    position: relative;
}

.port-radio-card input { position: absolute; opacity: 0; }

.port-radio-card span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.15s;
}

.port-radio-card.small span { padding: 6px 12px; font-size: 0.75rem; }

.port-radio-card input:checked + span {
    border-color: #0ea5e9;
    background: #f0f9ff;
    color: #0ea5e9;
    font-weight: 600;
}

.port-radio-card:hover span {
    border-color: #93c5fd;
}

/* Difficulty buttons */
.port-difficulty-group { display: flex; gap: 10px; }

.port-diff-btn {
    cursor: pointer;
    position: relative;
    flex: 1;
}

.port-diff-btn input { position: absolute; opacity: 0; }

.port-diff-btn span {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.15s;
}

.port-diff-btn.smooth span { color: #16a34a; }
.port-diff-btn.moderate span { color: #ca8a04; }
.port-diff-btn.difficult span { color: #dc2626; }

.port-diff-btn.smooth input:checked + span { border-color: #16a34a; background: #f0fdf4; }
.port-diff-btn.moderate input:checked + span { border-color: #ca8a04; background: #fefce8; }
.port-diff-btn.difficult input:checked + span { border-color: #dc2626; background: #fef2f2; }

.port-diff-btn i { font-size: 0.5rem; vertical-align: middle; margin-right: 3px; }

/* Star rating interactive */
.port-star-rating {
    display: flex;
    gap: 4px;
}

.port-star {
    font-size: 1.5rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.1s;
}

.port-star.active { color: #f59e0b; }
.port-star.hover { color: #fbbf24; }

/* Slider */
.port-slider-wrap { padding: 0 4px; }
.port-slider { width: 100%; }
.port-slider-labels { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--muted-text); }

/* Suggest dropdown */
.port-suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
}

.port-suggest-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
}

.port-suggest-item:hover { background: #f0f9ff; }
.port-suggest-item:last-child { border-bottom: none; }

.port-suggest-rating {
    float: right;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f59e0b;
}

/* Selected port card */
.port-selected-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    margin-top: 12px;
    font-size: 0.85rem;
}

/* Anonymous notice */
.port-anon-notice {
    padding: 14px 16px;
    border-radius: 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .port-hero { padding: 36px 0 32px; }
    .port-hero-title { font-size: 1.6rem; }
    .port-hero-stats { padding: 10px 16px; }
    .port-hero-stat { padding: 0 12px; }
    .port-hero-stat-num { font-size: 1.1rem; }
    .port-hero-actions { flex-direction: column; align-items: center; }
    .port-detail-title { font-size: 1.5rem; }
    .port-steps { flex-wrap: wrap; }
    .port-difficulty-group { flex-direction: column; }
}

/* ================================================================
   FORUM MODULE
   ================================================================ */

/* Forum Hero */
.forum-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.forum-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(0,119,182,0.08);
}

.forum-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 500;
    margin-bottom: 14px;
}

.forum-hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
}

.forum-hero-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    max-width: 500px;
}

.forum-hero-actions { display: flex; gap: 10px; }
.forum-hero-actions .btn { border-radius: 10px; font-weight: 600; }

/* Forum Hero Stats */
.forum-hero-stats {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.forum-stat-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px 20px;
    text-align: center;
    min-width: 100px;
    backdrop-filter: blur(4px);
}

.forum-stat-card i { display: block; color: #48cae4; font-size: 1rem; margin-bottom: 6px; }
.forum-stat-num { display: block; font-size: 1.4rem; font-weight: 900; color: white; }
.forum-stat-label { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); }

/* Category Hero */
.forum-cat-hero {
    padding: 36px 0;
}

/* Category Cards */
.forum-categories-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.forum-cat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.forum-cat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateX(4px);
}

.forum-cat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.forum-cat-info { flex: 1; min-width: 0; }

.forum-cat-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 2px;
}

.forum-cat-desc {
    font-size: 0.72rem;
    color: var(--muted-text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-cat-meta {
    display: flex;
    gap: 14px;
    font-size: 0.65rem;
    color: var(--muted-text);
}

.forum-cat-last {
    min-width: 160px;
    text-align: right;
    flex-shrink: 0;
}

.forum-cat-last-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.forum-cat-last-meta {
    font-size: 0.6rem;
    color: var(--muted-text);
}

.forum-cat-arrow {
    color: #e2e8f0;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.forum-cat-card:hover .forum-cat-arrow { color: var(--primary); }

/* Recent threads sidebar */
.forum-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}

.forum-recent-item:last-child { border-bottom: none; }

.forum-recent-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.forum-recent-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.3;
}

.forum-recent-meta {
    font-size: 0.6rem;
    color: var(--muted-text);
}

/* Thread List */
.forum-thread-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.forum-thread-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
}

.forum-thread-row:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.forum-thread-row.pinned {
    background: #fffbeb;
    border-color: #fde68a;
}

.forum-thread-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted-text);
    flex-shrink: 0;
}

.forum-thread-content { flex: 1; min-width: 0; }

.forum-thread-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-pin-badge {
    font-size: 0.55rem;
    background: #fef3c7;
    color: #d97706;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 700;
}

.forum-thread-meta {
    font-size: 0.65rem;
    color: var(--muted-text);
}

.forum-thread-stats {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.forum-thread-stat {
    font-size: 0.68rem;
    color: var(--muted-text);
    white-space: nowrap;
}

.forum-thread-stat i { margin-right: 3px; font-size: 0.6rem; }

.forum-thread-last {
    min-width: 100px;
    text-align: right;
    flex-shrink: 0;
}

.forum-thread-last-time {
    display: block;
    font-size: 0.65rem;
    color: var(--muted-text);
}

.forum-thread-last-by {
    font-size: 0.6rem;
    color: var(--primary);
}

/* Thread Page */
.forum-thread-header {
    padding: 24px;
}

.forum-author-avatar {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.forum-author-badge {
    display: inline-block;
    background: #f1f5f9;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--muted-text);
    margin-left: 6px;
}

.forum-thread-page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-text);
    margin: 16px 0;
    line-height: 1.4;
}

.forum-body {
    font-size: 0.88rem;
    color: var(--body-text);
    line-height: 1.9;
    word-wrap: break-word;
}

.forum-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.forum-like-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-text);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.forum-like-btn:hover { background: #fef2f2; color: #ef4444; }
.forum-like-btn.liked { background: #fef2f2; color: #ef4444; }
.forum-like-btn.liked i { color: #ef4444; }

.forum-action-info {
    font-size: 0.7rem;
    color: var(--muted-text);
    background: none;
    border: none;
    cursor: pointer;
}

/* Reply Card */
.forum-reply-card {
    border: none !important;
    border-radius: 12px !important;
}

.forum-reply-card.best-answer {
    border-left: 4px solid #22c55e !important;
    background: #f0fdf4;
}

.forum-best-badge {
    display: inline-block;
    background: #22c55e;
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.forum-reply-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted-text);
    flex-shrink: 0;
}

/* Thread info sidebar */
.forum-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.78rem;
}

.forum-info-row:last-child { border-bottom: none; }
.forum-info-row span:first-child { color: var(--muted-text); }
.forum-info-row span:last-child, .forum-info-row a { font-weight: 600; color: var(--dark-text); }

@media (max-width: 768px) {
    .forum-hero-title { font-size: 1.6rem; }
    .forum-hero-stats { display: none; }
    .forum-thread-stats { gap: 8px; }
    .forum-thread-stat { font-size: 0.6rem; }
    .forum-cat-card { flex-wrap: wrap; }
    .forum-cat-last { display: none; }
    .forum-thread-page-title { font-size: 1.1rem; }
}

/* ================================================================
   EXTENDED REVIEW DETAILS (on ship detail page)
   ================================================================ */

.ext-review-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.ext-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.15s;
}

.ext-toggle:hover { background: var(--primary-light); }
.ext-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.ext-toggle i { transition: transform 0.2s; }

.ext-sections {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ext-section {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
}

.ext-section-head {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ext-section-head i { font-size: 0.75rem; }

.ext-marpol-head {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted-text);
    margin-top: 10px;
    margin-bottom: 6px;
}

.ext-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px 14px;
}

.ext-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.74rem;
    border-bottom: 1px solid #f1f5f9;
}

.ext-item:last-child { border-bottom: none; }

.ext-label {
    color: var(--muted-text);
    font-weight: 500;
    flex: 0 0 auto;
}

.ext-val-text {
    color: var(--dark-text);
    font-weight: 600;
    text-align: right;
    font-size: 0.72rem;
}

.ext-mini-bar {
    flex: 1;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 8px;
    max-width: 80px;
}

.ext-mini-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.ext-mini-val {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--dark-text);
    min-width: 26px;
    text-align: right;
}

/* ================================================================
   SHIP REVIEW WIZARD (multi-step form)
   ================================================================ */

.wr-wizard { max-width: 900px; margin: 0 auto; }

.wr-declaration {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* Stepper */
.wr-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 10px;
    margin-bottom: 24px;
    position: relative;
    gap: 4px;
    overflow-x: auto;
}

.wr-step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    padding: 4px;
    min-width: 70px;
}

.wr-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.2s;
}

.wr-step-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--muted-text);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.wr-step-item.active .wr-step-num { background: var(--primary); color: white; }
.wr-step-item.active .wr-step-label { color: var(--primary); }
.wr-step-item.done .wr-step-num { background: #bbf7d0; color: #166534; }

/* Step content */
.wr-step-title { font-weight: 800; font-size: 1.25rem; margin-bottom: 4px; }
.wr-step-sub { font-size: 0.85rem; color: var(--muted-text); margin-bottom: 18px; }

.wr-card {
    border: none !important;
    border-radius: 14px !important;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wr-section-head {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

/* Slider with dots */
.wr-slider {
    padding: 14px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.wr-slider:last-child { border-bottom: none; }

.wr-slider-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.wr-slider-help {
    font-size: 0.72rem;
    color: var(--muted-text);
    margin-bottom: 10px;
}

.wr-slider-anchors {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: var(--muted-text);
    margin-bottom: 6px;
    font-weight: 500;
}

.wr-anchor-left { color: #dc2626; }
.wr-anchor-right { color: #16a34a; }
.wr-anchor-mid { color: var(--muted-text); }

.wr-slider-dots {
    display: flex;
    gap: 6px;
    justify-content: space-between;
    max-width: 420px;
    position: relative;
}

.wr-slider-dots::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.wr-dot {
    position: relative;
    z-index: 1;
    cursor: pointer;
    margin: 0;
}

.wr-dot input { display: none; }

.wr-dot-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted-text);
    transition: all 0.2s;
}

.wr-dot:hover .wr-dot-circle { border-color: var(--primary); }

.wr-dot input:checked + .wr-dot-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.08);
}

.wr-dot-sm .wr-dot-circle {
    width: 26px; height: 26px;
    font-size: 0.62rem;
    border-width: 1px;
}

/* Generic field */
.wr-field {
    margin-bottom: 14px;
}

.wr-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

/* Radio chip row */
.wr-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wr-radio-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--body-text);
    cursor: pointer;
    transition: all 0.15s;
}

.wr-radio-chip input { display: none; }
.wr-radio-chip:hover { border-color: var(--primary); }
.wr-radio-chip:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.wr-radio-chip-sm {
    padding: 5px 11px;
    font-size: 0.7rem;
}

/* Checkbox grid */
.wr-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.wr-checkbox-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
}

.wr-checkbox-chip:hover { border-color: var(--primary); }
.wr-checkbox-chip:has(input:checked) {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.wr-checkbox-chip input { margin: 0; accent-color: var(--primary); }

/* MARPOL row layout */
.wr-marpol-row {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.wr-marpol-row:last-child { border-bottom: none; }

.wr-marpol-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 6px;
}

.wr-marpol-fitted {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.wr-marpol-rel {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wr-marpol-rel-label {
    font-size: 0.68rem;
    color: var(--muted-text);
    margin-right: 4px;
}

/* Conditional reveal */
.wr-conditional {
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

/* Nav buttons */
.wr-nav {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    position: sticky;
    bottom: 20px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.wr-nav .btn { padding: 10px 20px; border-radius: 10px; font-weight: 600; }

@media (max-width: 768px) {
    .wr-stepper { padding: 10px 6px; }
    .wr-step-label { display: none; }
    .wr-dot-circle { width: 32px; height: 32px; }
    .wr-checkbox-grid { grid-template-columns: repeat(2, 1fr); }
    .wr-nav { position: static; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f5; }
::-webkit-scrollbar-thumb { background: #c0c0cc; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a0a0b0; }

/* ---- Loading Spinner ---- */
.spinner-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

/* ---- Nav Tabs ---- */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--muted-text);
    border: none;
    padding: 0.75rem 1.25rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-bottom-color: #ddd;
    color: var(--dark-text);
}

/* ---- List Groups (Glassdoor style) ---- */
.list-group-item {
    border-color: var(--border-color);
    font-size: 0.875rem;
    padding: 0.85rem 1rem;
}

.list-group-item-action:hover {
    background: var(--light-bg);
}

/* ---- Form Check Customization ---- */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 0.875rem;
}

/* ---- Card with Green Accent ---- */
.card.border-primary {
    border-color: var(--primary) !important;
}

.card .card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary), #00b4d8) !important;
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card .card-header.bg-primary h4 {
    color: white;
}

.card .card-header.bg-warning {
    background: linear-gradient(135deg, var(--accent), #ffb347) !important;
    border: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .stat-card .stat-number {
        font-size: 2rem;
    }
    .review-card .review-ratings {
        grid-template-columns: 1fr;
    }
    .search-hero h2 {
        font-size: 1.5rem;
    }
    .profile-header h1 {
        font-size: 1.5rem;
    }
}

/* ---- Utility: Glassdoor-style muted small text ---- */
.text-xs {
    font-size: 0.6875rem;
}

.fw-semibold {
    font-weight: 600;
}

.letter-spacing-wide {
    letter-spacing: 1px;
}

/* ================================================================
   SITE LOGO (image-based)
   ================================================================ */

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.25s ease;
}

.site-logo:hover .site-logo-img {
    transform: scale(1.04);
}

.site-logo-img {
    height: 38px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

/* Footer logo a touch larger */
.site-logo-img--footer {
    height: 44px;
    max-width: 220px;
}

/* Admin sidebar logo */
.site-logo-img--sidebar {
    height: 40px;
    max-width: 180px;
}

@media (max-width: 575px) {
    .site-logo-img { height: 30px; max-width: 150px; }
}

/* ================================================================
   ANIMATED LOGO (legacy text-based; kept for any remaining references)
   ================================================================ */

.animated-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: white !important;
}

/* Icon container */
.logo-icon-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, #005f8a, #0077B6);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,119,182,0.4);
    flex-shrink: 0;
}

/* Animated ocean waves at bottom of icon */
.logo-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 11px;
    z-index: 1;
}

.logo-wave::before,
.logo-wave::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 300%;
    height: 100%;
    bottom: 0;
}

.logo-wave::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cpath d='M0,6 Q15,0 30,6 T60,6 T90,6 T120,6 L120,16 L0,16Z' fill='white'/%3E%3C/svg%3E") repeat-x;
    background-size: 40px 16px;
    opacity: 0.45;
    animation: logoWave1 1.5s linear infinite;
}

.logo-wave::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16'%3E%3Cpath d='M0,8 Q15,3 30,8 T60,8 T90,8 T120,8 L120,16 L0,16Z' fill='white'/%3E%3C/svg%3E") repeat-x;
    background-size: 35px 14px;
    opacity: 0.25;
    animation: logoWave2 2s linear infinite;
    bottom: -1px;
}

@keyframes logoWave1 {
    from { transform: translateX(0); }
    to { transform: translateX(-40px); }
}

@keyframes logoWave2 {
    from { transform: translateX(0); }
    to { transform: translateX(35px); }
}

/* Ship icon - use anchor instead for cleaner look */
.logo-ship {
    position: relative;
    top: 3px;
    z-index: 2;
    color: white;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Text */
.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    position: relative;
}

.logo-text-rate {
    color: white;
}

.logo-text-my {
    color: #0077B6;
    position: relative;
}

.logo-text-ship {
    color: white;
}

/* Animated dot/pulse */
.logo-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0077B6;
    margin-left: 2px;
    animation: logoPulse 2s ease-in-out infinite;
    align-self: flex-end;
    margin-bottom: 3px;
}

@keyframes logoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
}

/* Hover effects */
.animated-logo:hover .logo-icon-wrap {
    box-shadow: 0 6px 20px rgba(0,119,182,0.5);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.animated-logo:hover .logo-ship {
    animation: logoShake 0.5s ease-in-out;
}

@keyframes logoShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    50% { transform: rotate(6deg); }
    75% { transform: rotate(-4deg); }
}

.animated-logo:hover .logo-text-my {
    text-shadow: 0 0 12px rgba(0,119,182,0.6);
    transition: text-shadow 0.3s;
}

/* Footer logo adjustments */
.footer-logo.animated-logo .logo-icon-wrap {
    width: 38px;
    height: 38px;
}

.footer-logo.animated-logo .logo-text {
    font-size: 1.15rem;
}

/* Sidebar logo adjustments */
.sidebar-logo .animated-logo .logo-icon-wrap {
    width: 36px;
    height: 36px;
}

.sidebar-logo .animated-logo .logo-text {
    font-size: 1.1rem;
}

/* Remove old brand styles */
.brand-icon, .brand-text { display: none !important; }

/* ================================================================
   ENHANCED NAVBAR
   ================================================================ */

#mainNav {
    padding: 0;
    background: #0d0d1a !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    padding: 14px 0;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    font-size: 0.85rem;
    color: white;
}

.brand-text {
    color: white;
}

#mainNav .nav-link {
    font-weight: 500;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.15s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
    color: white;
    background: rgba(255,255,255,0.06);
}

/* Nav search */
.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-icon {
    position: absolute;
    left: 12px;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    pointer-events: none;
}

.nav-search-wrapper input {
    width: 220px;
    height: 36px;
    padding: 0 12px 0 34px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

.nav-search-wrapper input::placeholder {
    color: rgba(255,255,255,0.3);
}

.nav-search-wrapper input:focus {
    width: 280px;
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,119,182,0.2);
}

/* Nav avatar */
.nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #00b4d8);
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
}

.nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 8px;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    color: white;
    border-radius: 8px;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* CTA Button */
.btn-nav-cta {
    background: var(--primary);
    color: white !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    transition: all 0.2s;
}

.btn-nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,119,182,0.35);
}

#mainNav .dropdown-menu {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
    padding: 6px;
    margin-top: 10px !important;
    min-width: 220px;
}

#mainNav .dropdown-item {
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 9px 12px;
    color: var(--dark-text);
}

#mainNav .dropdown-item:hover {
    background: var(--light-bg);
}

#mainNav .dropdown-divider {
    margin: 4px 8px;
    border-color: var(--border-color);
}

/* ================================================================
   HERO - Video Background
   ================================================================ */

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 90px 0 110px;
    color: white;
    background: #080818;
}

/* === Hero Image Slider === */
.hero-slider { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0,0,0,0.7);
    pointer-events: none;
}

.hero-slider-dots {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 28px;
    border-radius: 5px;
}

.hero-dot:hover { border-color: white; }

.hero-slide-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 12px;
}

/* Wave bottom */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* Trust badges */
.hero-badge-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
}

.hero-trust-badge i {
    color: var(--primary);
    font-size: 0.65rem;
}

.hero-section h1 {
    font-size: 3.4rem;
    font-weight: 900;
    color: white;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-section .lead {
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* Hero search */
.hero-search-box {
    display: flex;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 6px;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.hero-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.2);
    background: rgba(255,255,255,0.1);
}

.hero-search-icon {
    padding: 0 8px 0 14px;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.hero-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 8px;
}

.hero-search-box input::placeholder {
    color: rgba(255,255,255,0.3);
}

.hero-search-box button {
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hero-search-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* === Universal Autosuggest (hero + navbar) === */
.autosuggest-wrap { position: relative; }
.autosuggest-box { position: relative; }

.hero-search-form { max-width: 640px; margin: 0 auto; }

.autosuggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    z-index: 100;
    display: none;
    text-align: left;
    max-height: 380px;
    overflow-y: auto;
}

.autosuggest-dropdown.show { display: block; }

/* Navbar autosuggest: smaller width */
.nav-autosuggest {
    min-width: 320px;
    right: auto;
}

.as-loading {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 18px; color: var(--muted-text); font-size: 0.8rem;
}

.as-empty {
    padding: 20px; text-align: center; color: var(--muted-text); font-size: 0.8rem;
}

.as-group {
    padding: 10px 14px 4px;
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--muted-text);
}

.as-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; text-decoration: none; color: var(--dark-text);
    transition: background 0.1s; cursor: pointer;
}

.as-item:hover, .as-item.active {
    background: var(--light-bg); color: var(--dark-text);
}

.as-icon {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    font-size: 0.75rem; flex-shrink: 0;
}

.as-icon.ship { background: var(--primary-light); color: var(--primary); }
.as-icon.company { background: #eff6ff; color: #2563eb; }

.as-text {
    flex: 1; min-width: 0;
    font-weight: 600; font-size: 0.8rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.as-text small {
    display: block; font-size: 0.65rem; color: var(--muted-text); font-weight: 400;
}

.as-text mark {
    background: rgba(0,119,182,0.15); color: var(--primary-dark);
    padding: 0 1px; border-radius: 2px;
}

.as-arrow {
    color: #ccc; font-size: 0.6rem; flex-shrink: 0;
    opacity: 0; transition: opacity 0.15s;
}

.as-item:hover .as-arrow, .as-item.active .as-arrow {
    opacity: 1; color: var(--primary);
}

.as-footer {
    padding: 7px 14px; background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    text-align: center; font-size: 0.65rem; color: var(--muted-text);
}

.as-footer kbd {
    background: white; border: 1px solid var(--border-color);
    border-radius: 3px; padding: 1px 5px; font-size: 0.6rem; font-family: inherit;
}

/* Search tags */
.hero-search-tags {
    margin-top: 12px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

.hero-search-tags a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}

.hero-search-tags a:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

/* Hero CTA buttons */
.hero-cta-row {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 14px 28px;
    background: white;
    color: var(--dark) !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s;
}

.btn-hero-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: var(--dark) !important;
}

.btn-hero-outline {
    padding: 14px 28px;
    background: transparent;
    color: rgba(255,255,255,0.8) !important;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-hero-outline:hover {
    border-color: rgba(255,255,255,0.5);
    color: white !important;
    background: rgba(255,255,255,0.05);
}

/* ================================================================
   STATS STRIP
   ================================================================ */

.stats-strip {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-strip-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stats-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 32px;
}

.stats-strip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.9rem;
}

.stats-strip-item .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-text);
    letter-spacing: -0.5px;
    line-height: 1;
}

.stats-strip-item .stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted-text);
    margin-top: 2px;
}

.stats-strip-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

@media (max-width: 768px) {
    .stats-strip-grid {
        flex-wrap: wrap;
        gap: 16px;
    }
    .stats-strip-item { padding: 0 16px; }
    .stats-strip-divider { display: none; }
    .hero-section h1 { font-size: 2rem; letter-spacing: -1px; }
    .hero-section { padding: 60px 0 80px; }
    .hero-badge-row { gap: 6px; }
    .hero-trust-badge { font-size: 0.6rem; padding: 4px 10px; }
    .hero-search-box { flex-direction: column; border-radius: 12px; }
    .hero-search-box input { padding: 10px 12px; text-align: center; }
    .hero-search-box button { width: 100%; border-radius: 8px; }
    .hero-search-icon { display: none; }
    .hero-autosuggest { border-radius: 10px; }
    .hero-section { min-height: auto; padding: 60px 0 80px; }
}

/* ================================================================
   ENHANCED FOOTER
   ================================================================ */

.site-footer {
    background: #0d0d1a;
    color: rgba(255,255,255,0.5);
    margin-top: auto;
}

.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #3b82f6, #8b5cf6, var(--primary));
    background-size: 200% 100%;
    animation: footerAccent 6s linear infinite;
}

@keyframes footerAccent {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 48px 0 32px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    margin-bottom: 16px;
}

.footer-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
}

.footer-desc {
    font-size: 0.8125rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.4);
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    transition: all 0.2s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links h6 {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.15s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-cta-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
}

.footer-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,119,182,0.15);
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-cta-card h6 {
    color: white;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.footer-cta-card p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p, .footer-bottom span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
