:root {
    --mover-gold: #d6a84b;
    --mover-gold-dark: #a8791e;
    --mover-gold-soft: #f8f1e3;

    --black: #111111;
    --charcoal: #242424;
    --grey-900: #303030;
    --grey-700: #5f5f5f;
    --grey-500: #8a8a8a;
    --grey-300: #d8d8d8;
    --grey-200: #e8e8e8;
    --grey-100: #f4f4f4;

    --white: #ffffff;

    --success: #238636;
    --danger: #b42318;

    --shadow-small:
        0 2px 8px rgba(0, 0, 0, 0.06);

    --shadow-medium:
        0 10px 30px rgba(0, 0, 0, 0.08);

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 22px;

    --content-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--grey-100);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--black);
    background:
        radial-gradient(
            circle at top right,
            rgba(214, 168, 75, 0.09),
            transparent 28rem
        ),
        var(--grey-100);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

button,
select {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
}

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 74px;
    padding: 0 34px;

    color: var(--white);
    background: rgba(17, 17, 17, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.northern-tango-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-name {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.header-actions {
    position: relative;

    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button,
.user-button {
    border: 0;
    cursor: pointer;
}

.icon-button {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    color: var(--mover-gold);
    background: transparent;
    border-radius: 50%;
}

.icon-button:hover,
.icon-button:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.user-button {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 54px;
    padding: 6px 10px;

    text-align: left;

    color: var(--white);
    background: transparent;
    border-radius: var(--radius-small);
}

.user-button:hover,
.user-button:focus-visible {
    background: rgba(255, 255, 255, 0.07);
}

.user-avatar {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    color: var(--black);
    background: var(--mover-gold);
    border-radius: 50%;

    font-size: 0.78rem;
    font-weight: 800;
}

.user-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 650;
}

.user-role {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 220px;
    padding: 8px;

    color: var(--black);
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

.user-menu button {
    width: 100%;
    padding: 11px 12px;

    text-align: left;

    background: transparent;
    border: 0;
    border-radius: var(--radius-small);
    cursor: pointer;
}

.user-menu button:hover,
.user-menu button:focus-visible {
    background: var(--grey-100);
}

.user-menu .danger-action {
    color: var(--danger);
}

.menu-divider {
    height: 1px;
    margin: 6px 4px;

    background: var(--grey-200);
}

.main-content {
    flex: 1;

    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 34px;
}

.organisation-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 42px;
    padding: 20px 22px;

    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    backdrop-filter: blur(12px);
}

.section-label,
.eyebrow {
    margin: 0 0 7px;

    color: var(--grey-700);

    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--mover-gold-dark);
}

.organisation-selector {
    min-width: 310px;
    padding: 10px 40px 10px 0;

    color: var(--black);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--grey-300);
    outline: none;

    font-size: 1rem;
    font-weight: 650;
    cursor: pointer;
}

.organisation-selector:focus {
    border-bottom-color: var(--mover-gold-dark);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 9px;

    padding-bottom: 10px;

    color: var(--grey-700);
    font-size: 0.82rem;
    font-weight: 600;
}

.status-indicator {
    width: 9px;
    height: 9px;

    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(35, 134, 54, 0.12);
}

.welcome-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 48px;
}

.welcome-section h1 {
    margin: 0;

    font-size: clamp(2rem, 5vw, 3.45rem);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.welcome-message {
    max-width: 680px;
    margin: 16px 0 0;

    color: var(--grey-700);
    font-size: 1.03rem;
    line-height: 1.65;
}

.current-date {
    padding-top: 25px;

    color: var(--grey-700);
    font-size: 0.86rem;
    white-space: nowrap;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 20px;
}

.section-heading h2,
.placeholder-panel h2 {
    margin: 0;

    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-card {
    position: relative;

    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 22px;

    text-decoration: none;

    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.dashboard-card:hover,
.dashboard-card:focus-visible {
    transform: translateY(-4px);

    border-color: rgba(168, 121, 30, 0.45);
    box-shadow: var(--shadow-medium);
    outline: none;
}

.card-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;
    margin-bottom: 30px;

    color: var(--mover-gold-dark);
    background: var(--mover-gold-soft);
    border-radius: 50%;

    font-size: 1rem;
    font-weight: 800;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 10px;

    font-size: 1.05rem;
}

.card-content p {
    margin: 0;

    color: var(--grey-700);
    font-size: 0.86rem;
    line-height: 1.55;
}

.card-arrow {
    position: absolute;
    right: 20px;
    bottom: 18px;

    color: var(--grey-500);
    font-size: 1.25rem;

    transition:
        color 160ms ease,
        transform 160ms ease;
}

.dashboard-card:hover .card-arrow {
    color: var(--mover-gold-dark);
    transform: translateX(3px);
}

.module-placeholder {
    animation: fadeIn 180ms ease;
}

.back-button {
    margin-bottom: 18px;
    padding: 9px 0;

    color: var(--grey-700);
    background: transparent;
    border: 0;
    cursor: pointer;

    font-weight: 650;
}

.back-button:hover {
    color: var(--black);
}

.placeholder-panel {
    padding: 30px;

    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.placeholder-panel > p:not(.section-label) {
    color: var(--grey-700);
    line-height: 1.6;
}

.empty-state {
    display: grid;
    justify-items: center;

    margin-top: 30px;
    padding: 65px 24px;

    text-align: center;

    background: var(--grey-100);
    border: 1px dashed var(--grey-300);
    border-radius: var(--radius-medium);
}

.empty-state-icon {
    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;
    margin-bottom: 16px;

    color: var(--black);
    background: var(--mover-gold);
    border-radius: 50%;

    font-weight: 850;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    max-width: 540px;
    margin: 0;

    color: var(--grey-700);
    line-height: 1.6;
}

.app-footer {
    display: flex;
    justify-content: space-between;

    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding: 24px 34px 34px;

    color: var(--grey-500);
    font-size: 0.75rem;
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mover-mark {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--mover-gold);
    -webkit-mask:
        url("../assets/mover-icon.png")
        center / contain no-repeat;
    mask:
        url("../assets/mover-icon.png")
        center / contain no-repeat;
}

.powered-by strong {
    color: var(--mover-gold-dark);
    font-size: 0.86rem;
}

[hidden] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1040px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .top-header {
        min-height: 66px;
        padding: 0 18px;
    }

    .brand-name {
        display: none;
    }

    .northern-tango-logo {
        width: 46px;
        height: 46px;
    }

    .user-summary,
    .dropdown-arrow {
        display: none;
    }

    .icon-button {
        width: 38px;
        height: 38px;
    }

    .user-button {
        min-height: 46px;
        padding: 4px;
    }

    .main-content {
        padding: 22px 18px;
    }

    .organisation-bar {
        align-items: stretch;
        flex-direction: column;

        margin-bottom: 32px;
        padding: 18px;
    }

    .organisation-selector {
        width: 100%;
        min-width: 0;
    }

    .system-status {
        padding: 0;
    }

    .welcome-section {
        flex-direction: column;
        margin-bottom: 36px;
    }

    .current-date {
        padding-top: 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 200px;
    }

    .app-footer {
        padding: 20px 18px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.powered-by img{display:block;width:92px;height:auto}.powered-by .mover-mark,.powered-by strong{display:none!important}
