:root {
    --bg: #0b1220;
    --surface: #111a2e;
    --card: #162033;
    --border: #24324d;
    --text: #f3f7ff;
    --text-muted: #9fb0d0;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #60a5fa;
}

html, body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(circle at top, #14213d 0%, #0b1220 42%, #060b18 100%);
    color: var(--text);
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

a, .btn-link {
    color: var(--primary);
}

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.625rem;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #4a90ff 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.site-btn-primary:hover {
    color: #fff;
    background: linear-gradient(180deg, #5aa0ff 0%, #2f6ef0 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.site-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(59, 130, 246, 0.45);
}

.site-btn-outline:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
    border-color: var(--primary);
}

.site-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.site-btn-full {
    width: 100%;
}

.site-icon {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: currentColor;
}

.site-icon--lg {
    width: 1.125rem;
    height: 1.125rem;
}

.site-icon--feature {
    width: 1.75rem;
    height: 1.75rem;
}

.site-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.site-icon--spin {
    animation: site-icon-spin 1s linear infinite;
}

.pricing-feature-icon {
    color: #10B981;
    width: 1rem;
    height: 1rem;
}

.not-found-icon .site-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--accent);
}

@keyframes site-icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #4a90ff 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #5aa0ff 0%, #2f6ef0 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--bg), 0 0 0 0.25rem var(--primary);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFB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Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18) !important;
    background: rgba(22, 32, 51, 0.96) !important;
    outline: none;
}

.darker-border-checkbox.form-check-input {
    border-color: var(--border);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Shared carrier dropdown styles used by both Blazor-rendered and JS-rendered lists */
.carrier-wrapper {
    position: relative;
    outline: none;
}

.carrier-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #111e36;
    border: 1px solid #2c3f5e;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 130, 246, 0.12);
    max-height: 220px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 999;
    scrollbar-width: thin;
    scrollbar-color: #2c3f5e transparent;
}

.carrier-list[hidden] {
    display: none !important;
}

.carrier-list::-webkit-scrollbar {
    width: 4px;
}

.carrier-list::-webkit-scrollbar-track {
    background: transparent;
}

.carrier-list::-webkit-scrollbar-thumb {
    background: #2c3f5e;
    border-radius: 2px;
}

.carrier-item,
.carrier-empty,
.carrier-hint {
    background: #111e36;
}

.carrier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    transition: background 0.1s ease;
    gap: 0.5rem;
}

.carrier-item:first-child {
    border-radius: 10px 10px 0 0;
}

.carrier-item:last-child {
    border-radius: 0 0 10px 10px;
}

.carrier-item:hover,
.carrier-item.active {
    background: rgba(59, 130, 246, 0.14);
}

.carrier-item-name {
    font-size: 0.875rem;
    color: #e2eaf8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.carrier-item-iso {
    font-size: 0.7rem;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 4px;
    padding: 1px 5px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.carrier-empty {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    color: #9fb0d0;
    text-align: center;
}

.carrier-hint {
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #e2eaf8;
    text-align: center;
}

/* ── Blog article body content (global) ── */
.blog-article-body p { margin-bottom: 1rem; }
.blog-article-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F2937;
    margin: 2rem 0 0.75rem 0;
    text-align: left;
}
.blog-article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin: 1.25rem 0 0.5rem 0;
    text-align: left;
}
.blog-article-body ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.blog-article-body li { margin-bottom: 0.25rem; }
.blog-article-body a { color: #4F46E5; text-decoration: none; }
.blog-article-body a:hover { text-decoration: underline; }
.blog-article-body .blog-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9375rem; }
.blog-article-body .blog-table th,
.blog-article-body .blog-table td { border: 1px solid #E5E7EB; padding: 0.5rem 0.75rem; text-align: left; }
.blog-article-body .blog-table th { background: #F9FAFB; font-weight: 600; color: #374151; }
.blog-article-hero { margin: 0 auto 2rem auto; padding: 0; width: 100%; max-width: 100%; overflow: hidden; }
.blog-article-hero img { width: auto; height: auto; max-width: 100%; margin: 0 auto; border-radius: 0.5rem; display: block; object-fit: contain; box-sizing: border-box; }
.blog-article-inline { margin: 2rem auto; padding: 0; width: 100%; max-width: 100%; overflow: hidden; }
.blog-article-inline img { width: auto; height: auto; max-width: 100%; margin: 0 auto; border-radius: 0.5rem; display: block; object-fit: contain; box-sizing: border-box; }

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.cookie-consent-modal {
    background: linear-gradient(135deg, #162033 0%, #111a2e 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    border: 1px solid #24324d;
}

.cookie-consent-header {
    background: linear-gradient(135deg, #0b1220 0%, #111a2e 100%);
    padding: 1.5rem;
    border-bottom: 3px solid #3b82f6;
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.cookie-consent-body {
    padding: 2rem;
}

.cookie-consent-body p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #9fb0d0;
}

.cookie-consent-body p:last-child {
    margin-bottom: 0;
}

.cookie-consent-privacy {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid #24324d;
}

.cookie-policy-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.cookie-policy-link:hover {
    color: #3b82f6;
}

.cookie-consent-footer {
    padding: 1.5rem 2rem;
    background: #111a2e;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #24324d;
}

.cookie-consent-footer button {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-reject {
    background: #162033;
    color: #9fb0d0;
    border: 2px solid #24324d;
}

.btn-reject:hover {
    background: #111a2e;
    border-color: #3b82f6;
}

.btn-accept {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-accept:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

@media (max-width: 768px) {
    .cookie-consent-modal {
        max-width: 100%;
    }

    .cookie-consent-header {
        padding: 1.25rem;
    }

    .cookie-consent-header h3 {
        font-size: 1.25rem;
    }

    .cookie-consent-body {
        padding: 1.5rem;
    }

    .cookie-consent-body p {
        font-size: 0.9375rem;
    }

    .cookie-consent-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column-reverse;
    }

    .cookie-consent-footer button {
        width: 100%;
        padding: 1rem;
    }
}
