:root {
    --ak-color-primary: #05445e;
    --ak-color-secondary: #189ab4;
    --ak-sidebar-bg: #0b1f33;
    --ak-sidebar-text: #d9e7f2;
    --ak-header-bg: #0f3654;
    --ak-header-text: #ffffff;
    --ak-button-color: #0b5ed7;
    --ak-link-color: #0b5ed7;
    --ak-footer-bg: #0e2a42;
    --ak-footer-text: #ffffff;
    --ak-card-bg: #ffffff;
    --ak-body-bg: #f7fafc;
    --ak-primary: var(--ak-color-primary);
    --ak-primary-2: var(--ak-color-secondary);
    --ak-bg: var(--ak-body-bg);
    --ak-surface: var(--ak-card-bg);
    --ak-topbar: var(--ak-header-bg);
    --ak-footer: var(--ak-footer-bg);
    --ak-text: #102a43;
    --ak-muted: #5b7083;
    --ak-border: #dce6ee;
    --ak-topbar-offset: 0px;
}

* {
    box-sizing: border-box;
}

.ak-body {
    margin: 0;
    color: var(--ak-text);
    background: var(--ak-bg);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.ak-body.sidebar-open {
    overflow: hidden;
}

.ak-app-shell {
    min-height: 100vh;
}

a {
    color: var(--ak-link-color);
}

.ak-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--ak-topbar);
    color: var(--ak-header-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.ak-topbar .container-fluid {
    padding-left: .9rem;
    padding-right: .9rem;
}

.ak-topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ak-topbar-actions .btn {
    white-space: nowrap;
}

.ak-profile-initial {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--ak-header-text);
    background: var(--ak-primary);
}

.ak-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--ak-header-text);
    font-weight: 700;
    min-width: 0;
}

.ak-brand-logo {
    max-height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: .35rem;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .92);
    padding: 2px 4px;
    display: inline-block;
    flex-shrink: 0;
}

.ak-brand-text {
    font-size: .95rem;
    line-height: 1.2;
    display: inline-block;
    min-width: 0;
    max-width: clamp(180px, 36vw, 560px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ak-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ak-sidebar {
    position: fixed;
    top: var(--ak-topbar-offset);
    left: 0;
    width: 280px;
    max-width: 86vw;
    height: calc(100vh - var(--ak-topbar-offset));
    padding: 1rem;
    transform: translateX(-105%);
    transition: transform .25s ease;
    background: var(--ak-sidebar-bg);
    color: #fff;
    z-index: 1050;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
    overflow-y: auto;
}

.ak-sidebar.is-open {
    transform: translateX(0);
}

.ak-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ak-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.ak-sidebar-group {
    margin-top: .25rem;
    padding: .35rem .65rem;
    color: #cfe5f7;
    font-size: .9rem;
    letter-spacing: .02em;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .55rem;
    background: rgba(255, 255, 255, .05);
}

.ak-sidebar-group.mt-2 {
    margin-top: .8rem !important;
}

.ak-sidebar-nav a {

    color: var(--ak-sidebar-text);

    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .55rem;
    padding: .55rem .7rem;
}

.ak-sidebar-nav a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .5);
    outline-offset: 2px;
}

.ak-sidebar-note {
    color: #9fc2da;
    font-size: .88rem;
}

.ak-sidebar-overlay {
    position: fixed;
    top: var(--ak-topbar-offset);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    z-index: 1049;
}

.ak-sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.public-home {
    min-height: 100vh;
}

.hero-section {
    background: linear-gradient(120deg, color-mix(in srgb, var(--ak-color-primary) 8%, #ffffff), color-mix(in srgb, var(--ak-color-secondary) 8%, #ffffff));
    border-bottom: 1px solid var(--ak-border);
}

.ak-kicker {
    display: inline-block;
    background: #d9f3ff;
    color: #0c5671;
    border-radius: 999px;
    padding: .35rem .8rem;
    font-weight: 700;
    font-size: .8rem;
}

.ak-media-card {
    background: var(--ak-surface);
    border: 1px solid var(--ak-border);
    border-radius: 1.2rem;
    padding: .8rem;
}

.ak-check-list {
    margin: 0;
    padding-left: 1.2rem;
}

.ak-check-list li {
    margin-bottom: .45rem;
}

.ak-soft-bg {
    background: linear-gradient(180deg, #f7fcff, #eef6fb);
    border-top: 1px solid var(--ak-border);
    border-bottom: 1px solid var(--ak-border);
}

.ak-feature-card,
.ak-plan-card {
    height: 100%;
    background: var(--ak-surface);
    border: 1px solid var(--ak-border);
    border-radius: .9rem;
    padding: 1rem;
}

.ak-feature-card h3,
.ak-plan-card h3 {
    font-size: 1.05rem;
    margin-bottom: .4rem;
}

.ak-feature-card p,
.ak-plan-card p {
    color: var(--ak-muted);
    margin-bottom: 0;
}

.ak-plan-card strong {
    display: block;
    margin-top: .8rem;
    color: var(--ak-primary);
}

.ak-country-pill {
    background: #fff;
    border: 1px solid var(--ak-border);
    border-radius: 999px;
    padding: .65rem .85rem;
    text-align: center;
    font-weight: 600;
}

.ak-cta-block {
    background: linear-gradient(100deg, var(--ak-primary), var(--ak-primary-2));
    color: var(--ak-header-text);
    border-radius: 1rem;
    padding: 2rem 1.25rem;
    text-align: center;
}

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

.btn-primary:hover,
.btn-primary:focus {
    filter: brightness(0.95);
}

.ak-faq-list {
    display: grid;
    gap: .7rem;
}

.ak-faq-item {
    background: #fff;
    border: 1px solid var(--ak-border);
    border-radius: .7rem;
    padding: .8rem 1rem;
}

.ak-faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.ak-faq-item p {
    margin: .6rem 0 0;
    color: var(--ak-muted);
}

.ak-contact-form {
    background: #fff;
    border: 1px solid var(--ak-border);
    border-radius: .9rem;
    padding: 1rem;
}

.company-dashboard {
    max-width: 1460px;
    margin-left: auto;
    margin-right: auto;
}

.company-dashboard .welcome-card,
.company-dashboard .stat-card,
.company-dashboard .panel-card {
    background: var(--ak-surface);
    border: 1px solid var(--ak-border);
    border-radius: .9rem;
    box-shadow: 0 8px 22px rgba(15, 54, 84, 0.08);
}

.company-dashboard .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--ak-primary), var(--ak-primary-2));
}

.company-dashboard .stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.app-footer {
    margin-top: 2rem;
    color: var(--ak-footer-text);
    background: var(--ak-footer);
    font-size: .95rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 640px;
}

.form-label {
    margin-bottom: .35rem;
    font-weight: 600;
}

.form-control,
.form-select,
.btn {
    min-height: 40px;
}

.btn-sm {
    min-height: 32px;
}

.d-flex.gap-2 > .btn,
.d-flex.gap-2 > a.btn {
    flex-shrink: 0;
}

.modal-dialog {
    margin: 1rem;
}

/* Sidebar group collapse/expand (JS toggles data-ak-expanded) */
.ak-sidebar-group[data-ak-group][data-ak-expanded="false"] ~ a.is-group-item {
    display: none;
}

@media (max-width: 991.98px) {
    .ak-sidebar ~ main {
        margin-left: 0;
    }
}


@media (max-width: 767.98px) {
    .ak-topbar .container-fluid {
        gap: .55rem;
        padding-top: .45rem;
        padding-bottom: .45rem;
    }

    .ak-brand-text {
        font-size: .84rem;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ak-brand-logo {
        max-height: 30px;
        max-width: 108px;
    }

    .ak-topbar-actions {
        gap: .35rem !important;
    }

    .ak-topbar-actions .btn {
        padding: .25rem .45rem;
        font-size: .78rem;
    }

    .hero-section {
        padding-top: 2.2rem !important;
        padding-bottom: 2.2rem !important;
    }

    .hero-section .display-5 {
        font-size: 1.9rem;
    }

    .ak-contact-form {
        padding: .9rem;
    }

    .modal-dialog {
        margin: .5rem;
        max-width: calc(100% - 1rem);
    }
}

@media (min-width: 992px) {
    .ak-brand-text {
        font-size: 1rem;
        max-width: clamp(280px, 42vw, 680px);
    }

    .ak-sidebar {
        transform: translateX(0);
        box-shadow: none;
        border-right: 1px solid rgba(255, 255, 255, .12);
    }

    .ak-sidebar-overlay {
        display: none !important;
    }

    .ak-sidebar [data-sidebar-close],
    .ak-sidebar-toggle {
        display: none !important;
    }

    .ak-sidebar ~ main {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

@media print {
    .ak-topbar,
    .ak-sidebar,
    .ak-sidebar-overlay,
    .btn,
    [data-sidebar-toggle],
    [data-sidebar-close] {
        display: none !important;
    }

    .ak-sidebar ~ main,
    main {
        margin: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .table,
    .table th,
    .table td {
        border-color: #999 !important;
    }
}
