:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.2);
    --bg-dark: #020617;
    --sidebar-bg: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --dhl: #FFCC00;
    --fedex: #4D148C;
    --ups: #FFB500;
    --ups-dark: #351C15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .nav-btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

#app {
    display: flex;
    min-height: 100vh;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--glass-border);
}

.sidebar-header {
    margin-bottom: 48px;
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h1::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
}

.subtitle {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-top: 8px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.update-info {
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 500;
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 400;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 60px 80px;
    background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.15), transparent 70%);
}

.header-section {
    margin-bottom: 40px;
}

.header-section h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 15px;
}

.search-bar {
    width: 100%;
    margin-bottom: 48px;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-size: 15px;
    font-weight: 400;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-dim);
}

/* Category Blocks */
.category-block {
    margin-bottom: 64px;
}

.category-block h3 {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Table Style */
.table-container {
    border-radius: 20px;
    overflow: auto;
    max-height: 70vh;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th {
    background: var(--sidebar-bg);
    padding: 16px 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 50;
}

.comparison-table td {
    padding: 20px 20px;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: top;
    font-size: 13.5px;
    color: var(--text-main);
}

.comparison-table strong {
    font-weight: 500;
    color: white;
    font-size: 14.5px;
    display: block;
    margin-bottom: 4px;
}

.comparison-table td small {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Card Grid for single carrier / results */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.surcharge-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.surcharge-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.card-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.card-rate {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.card-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

@media (max-width: 1024px) {
    .sidebar { width: 80px; padding: 32px 14px; }
    .sidebar-header h1 span, .sidebar-header .subtitle, .nav-btn span, .sidebar-footer { display: none; }
    .main-content { margin-left: 80px; padding: 40px; }
}
