:root {
    --primary: #2F80C8;
    --accent: #18B7B9;
    --deep: #1B2A3A;
    --silver: #D7DEE8;
    --bg: #F4F8FB;
    --white: #FFFFFF;
    --success: #18B77A;
    --warning: #F5A623;
    --danger: #E5484D;
    --shadow-lg: 0 24px 70px rgba(27, 42, 58, 0.14);
    --shadow-md: 0 16px 45px rgba(47, 128, 200, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--deep);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at top left, rgba(24, 183, 185, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(47, 128, 200, 0.18), transparent 32%),
        linear-gradient(180deg, #f9fbfd 0%, #f1f7fb 100%);
}

::selection {
    background: rgba(47, 128, 200, 0.2);
    color: var(--deep);
}

.public-body {
    color: var(--deep);
}

.app-body {
    color: var(--deep);
    background:
        radial-gradient(circle at top left, rgba(24, 183, 185, 0.12), transparent 24%),
        linear-gradient(180deg, #eef5fa 0%, #f7fbfd 100%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 251, 254, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(215, 222, 232, 0.72);
    box-shadow: 0 10px 28px rgba(27, 42, 58, 0.08);
}

.public-header__inner,
.section,
.footer-brand__inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.public-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    position: relative;
    z-index: 2;
}

.brand img,
.sidebar__logo img {
    width: 180px;
    height: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.brand--boxed {
    width: clamp(148px, 15vw, 176px);
    height: 66px;
    padding: 10px 14px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.86));
    border: 1px solid rgba(215, 222, 232, 0.9);
    box-shadow: 0 14px 30px rgba(27, 42, 58, 0.1);
}

.brand--boxed img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.public-nav,
.public-header__actions,
.hero-actions,
.section-head__actions,
.grid-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.public-nav a {
    color: rgba(27, 42, 58, 0.92);
    font-size: 0.96rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(215, 222, 232, 0.72);
    box-shadow: 0 8px 18px rgba(27, 42, 58, 0.04);
    position: relative;
    z-index: 3;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.public-nav a:hover {
    color: var(--primary);
}

.public-nav a:hover,
.public-nav a:focus-visible {
    background: rgba(47, 128, 200, 0.1);
    border-color: rgba(47, 128, 200, 0.28);
    box-shadow: 0 14px 24px rgba(47, 128, 200, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

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

.button--primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #4fa6ea);
    box-shadow: 0 18px 34px rgba(47, 128, 200, 0.28);
}

.button--accent {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), #3cd4d1);
    box-shadow: 0 18px 34px rgba(24, 183, 185, 0.28);
}

.button--ghost {
    border-color: rgba(47, 128, 200, 0.24);
    background: rgba(255, 255, 255, 0.98);
    color: var(--deep);
    box-shadow: 0 10px 20px rgba(27, 42, 58, 0.06);
}

.button:focus-visible,
.sidebar__link:focus-visible,
.sidebar-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(47, 128, 200, 0.14);
}

.button--full {
    width: 100%;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent);
}

.hero,
.auth-shell,
.error-state {
    padding: 58px 0 42px;
}

.hero__grid,
.auth-card,
.error-state__card {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 34px;
    align-items: center;
}

.hero-copy {
    background:
        radial-gradient(circle at top right, rgba(47, 128, 200, 0.12), transparent 36%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.92));
    border: 1px solid rgba(222, 232, 241, 0.96);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 34px;
}

.hero-copy h1,
.section-head h2,
.auth-card__header h1,
.dashboard-hero h2,
.error-state__card h1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    margin: 0 0 18px;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.hero-copy p,
.section-head p,
.error-state__card p {
    color: rgba(27, 42, 58, 0.84);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 20px;
}

.hero-stats,
.metric-grid,
.feature-grid,
.pricing-grid,
.stats-grid,
.two-col-grid,
.data-grid,
.form-grid,
.list-grid,
.panel-grid {
    display: grid;
    gap: 18px;
}

.hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
}

.hero-stat,
.metric-card,
.feature-card,
.pricing-card,
.app-card,
.table-card,
.chart-card,
.form-card,
.timeline-card,
.auth-panel,
.settings-card,
.detail-card,
.error-state__card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(215, 222, 232, 0.72);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.hero-stat,
.metric-card,
.feature-card,
.pricing-card,
.chart-card,
.form-card,
.timeline-card,
.app-card,
.table-card,
.settings-card,
.detail-card {
    padding: 24px;
}

.hero-stat span,
.feature-card p,
.pricing-card p,
.detail-card p,
.app-card p,
.mini-list li,
.preview-block {
    color: rgba(27, 42, 58, 0.82);
}

.hero-stat strong,
.metric-card strong,
.pricing-card__price,
.stat-card strong {
    display: block;
    font-size: 1.9rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    margin-bottom: 8px;
}

.hero-panel {
    position: relative;
    padding: 24px;
    min-height: 560px;
    overflow: hidden;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(47, 128, 200, 0.14), rgba(24, 183, 185, 0.08)),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-lg);
}

.hero-panel__frame {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.glass-card {
    backdrop-filter: blur(18px);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 251, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 26px;
    box-shadow: 0 20px 45px rgba(27, 42, 58, 0.11);
}

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

.mini-dashboard__main {
    grid-column: span 2;
    padding: 22px;
}

.mini-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mini-stat {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(47, 128, 200, 0.1), rgba(24, 183, 185, 0.08));
}

.mini-stat span,
.metric-card span,
.pricing-card p,
.feature-card p,
.muted {
    color: rgba(27, 42, 58, 0.68);
}

.mini-list {
    padding: 20px;
}

.mini-list ul,
.pricing-card ul,
.timeline-list,
.detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.mini-list li,
.pricing-card li,
.timeline-list li,
.detail-list li {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(244, 248, 251, 0.9);
}

.section {
    padding: 34px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card h3,
.pricing-card h3,
.table-card__header h3,
.form-card__header h3,
.detail-card h3,
.auth-panel h2 {
    margin: 0 0 10px;
    font-size: 1.22rem;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.pricing-card::before,
.metric-card::before,
.app-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(130deg, rgba(47, 128, 200, 0.3), rgba(24, 183, 185, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.shot-grid,
.stats-grid,
.two-col-grid,
.panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-preview {
    min-height: 270px;
    padding: 22px;
}

.app-preview__toolbar,
.fake-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8abff1, #2f80c8);
}

.preview-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-block,
.bar {
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(47, 128, 200, 0.12), rgba(24, 183, 185, 0.1));
}

.preview-block {
    min-height: 76px;
    padding: 14px;
}

.preview-block--tall {
    min-height: 170px;
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card--featured {
    transform: translateY(-10px);
    background: linear-gradient(160deg, rgba(47, 128, 200, 0.14), rgba(255, 255, 255, 0.92));
}

.pricing-card__price {
    margin-top: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.pill--info { background: rgba(47, 128, 200, 0.12); color: var(--primary); }
.pill--accent { background: rgba(24, 183, 185, 0.12); color: var(--accent); }
.pill--success { background: rgba(24, 183, 122, 0.12); color: var(--success); }
.pill--warning { background: rgba(245, 166, 35, 0.14); color: var(--warning); }
.pill--danger { background: rgba(229, 72, 77, 0.14); color: var(--danger); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 18px;
}

.auth-card {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 22px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 34px;
    padding: 10px;
    box-shadow: 0 28px 60px rgba(27, 42, 58, 0.08);
}

.auth-panel {
    padding: 30px;
    min-height: 100%;
}

.auth-panel:not(.auth-panel--accent) {
    background:
        radial-gradient(circle at top left, rgba(24, 183, 185, 0.09), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 254, 0.98));
    border-color: rgba(196, 214, 230, 0.95);
}

.auth-panel--accent {
    background:
        radial-gradient(circle at top right, rgba(24, 183, 185, 0.28), transparent 30%),
        linear-gradient(160deg, rgba(47, 128, 200, 0.92), rgba(27, 42, 58, 0.96));
    color: var(--white);
}

.auth-panel--accent .eyebrow,
.auth-panel--accent h2,
.auth-panel--accent strong {
    color: var(--white);
}

.auth-panel--accent p {
    color: rgba(255, 255, 255, 0.82);
}

.auth-panel--accent .detail-list li {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-card__header h1 {
    color: rgba(17, 33, 49, 0.98);
}

.auth-panel .grid-actions {
    margin-top: 8px;
}

.auth-form,
.stack,
.stack-lg {
    display: grid;
}

.stack { gap: 14px; }
.stack-lg { gap: 20px; }

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group--full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(27, 42, 58, 0.94);
}

input,
select,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(189, 206, 222, 0.98);
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.99);
    color: var(--deep);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(27, 42, 58, 0.48);
}

textarea {
    resize: vertical;
    min-height: 126px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(47, 128, 200, 0.72);
    box-shadow: 0 0 0 4px rgba(47, 128, 200, 0.12);
}

.field-error {
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 700;
}

.flash-stack {
    width: min(1200px, calc(100% - 32px));
    margin: 20px auto 0;
    display: grid;
    gap: 12px;
}

.flash-stack--public {
    margin-top: 26px;
}

.flash {
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.flash--success { background: rgba(24, 183, 122, 0.12); color: var(--success); }
.flash--warning { background: rgba(245, 166, 35, 0.14); color: var(--warning); }
.flash--error { background: rgba(229, 72, 77, 0.12); color: var(--danger); }

.app-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    background: linear-gradient(180deg, rgba(27, 42, 58, 0.98), rgba(34, 63, 89, 0.98));
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 18px 0 40px rgba(9, 22, 34, 0.16);
    z-index: 40;
}

.sidebar__brand {
    padding: 12px 10px 24px;
}

.sidebar__brand p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: background 0.24s ease, transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.sidebar__link.is-active {
    background: linear-gradient(135deg, rgba(47, 128, 200, 0.28), rgba(24, 183, 185, 0.2));
    color: var(--white);
    transform: translateX(3px);
    box-shadow: 0 14px 28px rgba(13, 26, 37, 0.18);
}

.sidebar__link:hover,
.sidebar__link:focus-visible {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 20px rgba(7, 16, 24, 0.14);
    outline: none;
}

.sidebar__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.sidebar__logout {
    margin-top: auto;
    padding-top: 18px;
}

.app-main {
    padding: 22px;
    position: relative;
    z-index: 1;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.app-topbar h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.app-topbar__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.user-chip {
    display: grid;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 222, 232, 0.74);
}

.app-content {
    display: grid;
    gap: 18px;
}

.dashboard-hero {
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(24, 183, 185, 0.22), transparent 32%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-lg);
}

.dashboard-hero h2 {
    font-size: clamp(2rem, 2.5vw, 3rem);
}

.metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card span {
    display: block;
    margin-bottom: 10px;
}

.chart-card canvas {
    width: 100%;
}

.bar-list {
    display: grid;
    gap: 14px;
}

.bar-row {
    display: grid;
    gap: 8px;
}

.bar {
    height: 12px;
    position: relative;
    overflow: hidden;
}

.bar > span {
    position: absolute;
    inset: 0;
    width: var(--bar-width);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: inherit;
}

.table-card__header,
.form-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(215, 222, 232, 0.78);
    vertical-align: top;
}

th {
    color: rgba(27, 42, 58, 0.72);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(244, 248, 251, 1);
    font-size: 0.82rem;
    font-weight: 800;
}

.badge-status--zakazan,
.badge-status--pending,
.badge-status--trial { color: var(--primary); background: rgba(47, 128, 200, 0.14); }
.badge-status--potvrden,
.badge-status--active,
.badge-status--approved,
.badge-status--paid { color: var(--success); background: rgba(24, 183, 122, 0.14); }
.badge-status--ceka,
.badge-status--partial { color: var(--warning); background: rgba(245, 166, 35, 0.16); }
.badge-status--otkazan,
.badge-status--blocked,
.badge-status--expired,
.badge-status--rejected,
.badge-status--nije_dosao,
.badge-status--nije_dosao { color: var(--danger); background: rgba(229, 72, 77, 0.16); }
.badge-status--kontrola,
.badge-status--zavrsen,
.badge-status--u_toku,
.badge-status--pomjeren { color: var(--deep); background: rgba(27, 42, 58, 0.12); }

.detail-list strong {
    display: block;
    margin-bottom: 4px;
}

.timeline-list li {
    border-left: 4px solid rgba(24, 183, 185, 0.4);
}

.calendar-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.calendar-day {
    padding: 14px;
    border-radius: 18px;
    background: rgba(244, 248, 251, 0.95);
    min-height: 160px;
}

.calendar-day h4 {
    margin: 0 0 12px;
}

.appointment-chip {
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(27, 42, 58, 0.08);
}

.appointment-chip--potvrden { border-left: 4px solid var(--success); }
.appointment-chip--ceka { border-left: 4px solid var(--warning); }
.appointment-chip--zakazan { border-left: 4px solid var(--primary); }
.appointment-chip--otkazan,
.appointment-chip--nije_dosao { border-left: 4px solid var(--danger); }
.appointment-chip--kontrola { border-left: 4px solid #7b73ff; }
.appointment-chip--zavrsen,
.appointment-chip--u_toku,
.appointment-chip--pomjeren { border-left: 4px solid #7d8d9d; }

.calendar-layout--wide {
    grid-template-columns: 1.45fr 0.85fr;
}

.calendar-grid--enhanced {
    align-items: start;
}

.calendar-day--enhanced {
    display: grid;
    gap: 14px;
    min-height: 320px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 252, 0.96));
    border: 1px solid rgba(221, 231, 240, 0.96);
    box-shadow: 0 18px 28px rgba(27, 42, 58, 0.06);
}

.calendar-day__header,
.inline-edit-card__header,
.schedule-row-card__head,
.appointment-chip__top,
.inline-edit-card__footer,
.appointment-chip__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-day__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: rgba(27, 42, 58, 0.6);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calendar-day__body,
.timeline-schedule,
.schedule-grid,
.week-summary-card__meta,
.sidebar-subnav {
    display: grid;
    gap: 12px;
}

.calendar-empty-state {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(244, 248, 251, 0.98);
    border: 1px dashed rgba(47, 128, 200, 0.24);
    color: rgba(27, 42, 58, 0.7);
}

.calendar-empty-state--large {
    min-height: 240px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.appointment-chip--rich {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.96));
}

.appointment-chip__name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--deep);
}

.appointment-chip__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: rgba(27, 42, 58, 0.72);
    font-size: 0.9rem;
}

.appointment-chip__actions select,
.appointment-chip__actions .button {
    flex: 1 1 160px;
}

.inline-note-card,
.week-summary-card,
.inline-edit-card,
.schedule-row-card,
.timeline-entry__card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(220, 229, 238, 0.96);
    border-radius: 22px;
    box-shadow: 0 16px 30px rgba(27, 42, 58, 0.06);
}

.inline-note-card,
.week-summary-card,
.inline-edit-card,
.schedule-row-card {
    padding: 18px;
}

.inline-note-card {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.week-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.week-summary-grid--compact {
    margin-top: 18px;
}

.week-summary-card strong {
    display: block;
    font-size: 1.5rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    margin: 10px 0 6px;
}

.week-summary-card__meta {
    margin-top: 10px;
    color: rgba(27, 42, 58, 0.7);
    font-size: 0.88rem;
}

.calendar-page-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.75fr;
    gap: 18px;
}

.timeline-schedule {
    position: relative;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: start;
}

.timeline-entry__time {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    color: rgba(27, 42, 58, 0.68);
    font-size: 0.9rem;
    text-align: right;
}

.timeline-entry__time strong {
    color: var(--deep);
    font-size: 1.02rem;
}

.timeline-entry__card {
    padding: 18px;
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(27, 42, 58, 0.8);
    font-weight: 700;
}

.toggle-row input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.inline-edit-card {
    display: grid;
    gap: 14px;
}

.schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-row-card {
    display: grid;
    gap: 14px;
}

.sidebar-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.sidebar-toggle span {
    width: 22px;
    height: 2px;
    background: var(--deep);
    border-radius: 999px;
}

.footer-brand {
    padding: 16px 0 22px;
}

.footer-brand__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.footer-brand__text {
    font-size: 0.82rem;
    color: rgba(27, 42, 58, 0.58);
}

.footer-brand__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1b2a3a, #e5484d);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.public-header__actions,
.hero-actions,
.grid-actions,
.sidebar__logout,
.app-topbar,
.app-topbar__meta {
    position: relative;
    z-index: 3;
}

.sidebar-group {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.sidebar-group.is-active,
.sidebar-group[open] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-group__summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    position: relative;
}

.sidebar-group__summary::-webkit-details-marker {
    display: none;
}

.sidebar-group__summary:hover,
.sidebar-group__summary:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.sidebar-group__chevron {
    margin-left: auto;
    font-size: 1rem;
    font-weight: 800;
    opacity: 0.72;
    transition: transform 0.2s ease;
}

.sidebar-group[open] .sidebar-group__chevron {
    transform: rotate(45deg);
}

.sidebar-subnav {
    padding: 0 14px 14px 58px;
}

.sidebar-subnav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.74);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-subnav__link:hover,
.sidebar-subnav__link.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.96);
    transform: translateX(2px);
}

.error-state__card {
    padding: 36px;
    text-align: center;
}

.app-main {
    min-width: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.sidebar__nav {
    flex: 1 1 auto;
    min-height: 0;
}

.sidebar__logout {
    margin-top: auto;
    padding-top: 18px;
    padding-bottom: 10px;
}

.sidebar__logout-button {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: var(--deep);
    cursor: pointer;
    text-align: left;
}

.sidebar__logout-button .sidebar__icon {
    background: rgba(47, 128, 200, 0.12);
    color: var(--primary);
}

.sidebar__logout-button:hover,
.sidebar__logout-button:focus-visible {
    background: rgba(255, 255, 255, 1);
    color: var(--deep);
    border-color: rgba(47, 128, 200, 0.18);
}

.app-topbar {
    gap: 16px;
    flex-wrap: wrap;
}

.app-topbar__search {
    flex: 1 1 380px;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-topbar__search input {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(47, 128, 200, 0.18);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.queue-grid,
.alerts-grid {
    display: grid;
    gap: 18px;
}

.queue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alerts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.alert-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(215, 222, 232, 0.72);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.alert-card p {
    margin: 0;
    color: rgba(27, 42, 58, 0.76);
    line-height: 1.6;
}

.alert-card a {
    font-weight: 800;
    color: var(--primary);
}

.alert-card--warning {
    border-color: rgba(245, 166, 35, 0.28);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 166, 35, 0.08));
}

.alert-card--danger {
    border-color: rgba(229, 72, 77, 0.24);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(229, 72, 77, 0.08));
}

.alert-card--accent {
    border-color: rgba(24, 183, 185, 0.24);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(24, 183, 185, 0.08));
}

.onboarding-list {
    display: grid;
    gap: 12px;
}

.onboarding-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(215, 222, 232, 0.82);
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.onboarding-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(27, 42, 58, 0.08);
    border-color: rgba(47, 128, 200, 0.28);
}

.onboarding-item.is-complete {
    border-color: rgba(24, 183, 122, 0.22);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(24, 183, 122, 0.08));
}

.onboarding-item__state {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 128, 200, 0.12);
    color: var(--primary);
    font-weight: 800;
    flex: 0 0 auto;
}

.onboarding-item.is-complete .onboarding-item__state {
    background: rgba(24, 183, 122, 0.14);
    color: var(--success);
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.calendar-tabs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(215, 222, 232, 0.8);
    box-shadow: 0 14px 24px rgba(27, 42, 58, 0.06);
}

.calendar-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    color: rgba(27, 42, 58, 0.72);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.calendar-tab.is-active,
.calendar-tab:hover {
    background: linear-gradient(135deg, rgba(47, 128, 200, 0.16), rgba(24, 183, 185, 0.18));
    color: var(--deep);
    transform: translateY(-1px);
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}

.calendar-month-grid--week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-month-day {
    min-height: 180px;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(215, 222, 232, 0.76);
    background: rgba(255, 255, 255, 0.9);
}

.calendar-month-day.is-outside {
    background: rgba(244, 248, 251, 0.72);
    opacity: 0.8;
}

.calendar-month-day.is-today {
    border-color: rgba(47, 128, 200, 0.28);
    box-shadow: 0 16px 28px rgba(47, 128, 200, 0.12);
}

.calendar-month-day__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    color: rgba(27, 42, 58, 0.66);
}

.calendar-month-day__header strong {
    color: var(--deep);
    font-size: 1rem;
}

.calendar-month-day__body {
    display: grid;
    align-content: start;
    gap: 10px;
}

.appointment-chip--calendar {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
}

.appointment-chip--calendar strong {
    font-size: 0.92rem;
}

.appointment-chip--calendar span {
    color: rgba(27, 42, 58, 0.72);
    font-size: 0.82rem;
    line-height: 1.5;
}

.calendar-month-day__empty {
    font-size: 0.82rem;
    color: rgba(27, 42, 58, 0.46);
}

@media (max-width: 1100px) {
    .hero__grid,
    .feature-grid,
    .pricing-grid,
    .contact-grid,
    .metric-grid,
    .stats-grid,
    .panel-grid,
    .calendar-layout,
    .calendar-page-grid,
    .queue-grid,
    .alerts-grid,
    .auth-card,
    .shot-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats,
    .mini-dashboard__stats,
    .form-grid,
    .week-summary-grid,
    .schedule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-month-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-month-grid--week {
        grid-template-columns: 1fr;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(320px, 86vw);
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 60;
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .app-topbar__search {
        order: 3;
        max-width: none;
    }
}

@media (max-width: 780px) {
    .public-nav,
    .public-header__actions {
        display: none;
    }

    .hero-stats,
    .mini-dashboard__stats,
    .form-grid,
    .metric-grid,
    .calendar-grid,
    .calendar-month-grid,
    .week-summary-grid,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .timeline-entry {
        grid-template-columns: 1fr;
    }

    .timeline-entry__time {
        text-align: left;
        padding-top: 0;
    }

    .public-header__inner,
    .section,
    .footer-brand__inner,
    .app-main {
        width: min(100%, calc(100% - 22px));
    }

    .app-topbar__search {
        flex-direction: column;
        align-items: stretch;
    }

    .brand--boxed {
        width: 136px;
        height: 58px;
        padding: 8px 12px;
        border-radius: 18px;
    }

    table {
        min-width: 620px;
    }
}
