:root {
    --font-body: 'Manrope', sans-serif;
    --font-display: 'Sora', sans-serif;
    --primary-color: #3ca0c1;
    --primary-dark: #2c8a9e;
    --primary-light: #6bcfe3;
    --start-color: #3ca0c1;
    --end-color: #3fa03c;
    --secondary-color: #3fa03c;
    --text-color: #333333;
    --text-light: #475569;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 6px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 32px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.12);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Slider */
.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.hero-showcase {
    width: min(900px, 100%);
    position: relative;
}

.hero-slider {
    position: relative;
    width: 100%;
    border-radius: 30px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-slide {
    margin: 0;
    min-width: 100%;
    position: relative;
    aspect-ratio: 16 / 11;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 35%, rgba(15, 23, 42, 0.58) 100%);
    pointer-events: none;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide figcaption {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 2;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-slide figcaption span {
    color: #b9ffa2;
    margin-right: 0.35rem;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 3;
}

.hero-slider-prev {
    left: 14px;
}

.hero-slider-next {
    right: 14px;
}

.hero-slider-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: #ffffff;
}

.hero-slider-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 0.45rem;
    z-index: 3;
}

.hero-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-slider-dot.is-active {
    width: 24px;
    background: #ffffff;
}

@media (max-width: 992px) {
    .hero-showcase {
        width: min(780px, 100%);
    }

    .hero-slide {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        justify-content: center;
    }

    .hero-showcase {
        width: 100%;
    }

    .hero-slider {
        border-radius: 22px;
    }

    .hero-slide {
        aspect-ratio: 4 / 3;
    }

    .hero-slide figcaption {
        left: 0.9rem;
        bottom: 0.9rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }

    .hero-slider-btn {
        width: 38px;
        height: 38px;
    }
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.text-primary {
    color: var(--primary-light) !important;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.w-100 {
    width: 100%;
}

.highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary-color);
    opacity: 0.2;
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.7);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 3.7rem;
    letter-spacing: -1.2px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: rgba(15, 23, 42, 0.7);
    font-size: 1.05rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.78rem 0;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header.header-solid {
    background: rgba(248, 250, 252, 0.86);
    border-bottom-color: rgba(15, 23, 42, 0.09);
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 58px;
}

.header.scrolled {
    padding: 0.56rem 0;
    background: rgba(248, 250, 252, 0.93);
    border-bottom-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.header .container {
    max-width: 1320px;
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.logo img {
    height: 40px;
}

.text-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.logo-care {
    color: #0f172a;
}

.logo-var {
    color: var(--secondary-color);
}

.nav {
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.3rem;
    margin: 0 auto;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 253, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 22px rgba(15, 23, 42, 0.07);
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.88rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(15, 23, 42, 0.72);
    position: relative;
    letter-spacing: -0.01em;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.nav-list a:not(.btn):hover {
    color: #0f172a;
    background: rgba(60, 160, 193, 0.12);
    box-shadow: 0 6px 14px rgba(60, 160, 193, 0.16);
}

.nav-list a.is-active {
    color: #0f172a;
    background: linear-gradient(135deg, rgba(60, 160, 193, 0.18), rgba(79, 157, 58, 0.22));
    box-shadow: 0 8px 16px rgba(63, 160, 60, 0.18);
}

.nav-list a.is-active::after {
    content: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
}

/* Buttons */
.btn {
    font-family: var(--font-display);
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn-ghost:hover {
    color: var(--primary-color);
    border-color: rgba(60, 160, 193, 0.35);
    background: rgba(60, 160, 193, 0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.32rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.93), rgba(240, 247, 252, 0.87));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 14px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 1200px) {
    .header-actions {
        padding-inline: 0.44rem;
        margin-left: 0.42rem;
    }
}

.header-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    min-width: 0;
    max-width: 244px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.22rem 0.56rem 0.22rem 0.22rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.header-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(60, 160, 193, 0.24), rgba(63, 160, 60, 0.3));
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.header-user-avatar.has-photo {
    background: #e2e8f0;
}

.header-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-user-meta {
    min-width: 0;
    display: grid;
    gap: 0.05rem;
    line-height: 1.05;
}

.header-user-meta strong {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-meta small {
    font-size: 0.67rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-notification {
    position: relative;
}

.header-notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 252, 0.9));
    color: rgba(15, 23, 42, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 8px 18px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-notification-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(60, 160, 193, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 12px 22px rgba(15, 23, 42, 0.14);
}

.header-notification-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-notification-badge {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 0.28rem;
    border: 1.5px solid #ffffff;
    background: #3fa03c;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.32);
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    text-align: center;
}

.header-notification.is-new .header-notification-btn {
    animation: headerNotificationPulse 1.35s ease-in-out 2;
}

@keyframes headerNotificationPulse {
    0% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.96),
            0 8px 18px rgba(15, 23, 42, 0.12),
            0 0 0 0 rgba(60, 160, 193, 0.42);
    }
    70% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.96),
            0 8px 18px rgba(15, 23, 42, 0.12),
            0 0 0 12px rgba(60, 160, 193, 0);
    }
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.96),
            0 8px 18px rgba(15, 23, 42, 0.12),
            0 0 0 0 rgba(60, 160, 193, 0);
    }
}

.header-notification-panel {
    position: absolute;
    top: calc(100% + 0.58rem);
    right: -0.24rem;
    width: min(380px, calc(100vw - 1rem));
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.97));
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    z-index: 15;
}

.header-notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.72rem 0.82rem 0.64rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.header-notification-head strong {
    font-size: 0.9rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.header-notification-mark-all {
    border: 1px solid rgba(60, 160, 193, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #2a82ab;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.26rem 0.58rem;
    cursor: pointer;
}

.header-notification-mark-all:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.header-notification-list {
    display: grid;
    gap: 0.4rem;
    max-height: min(420px, 58vh);
    overflow: auto;
    padding: 0.58rem;
}

.header-notification-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 13px;
    background: rgba(248, 250, 252, 0.88);
    padding: 0.56rem 0.62rem;
    display: grid;
    gap: 0.24rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-notification-item:hover {
    transform: translateY(-1px);
    border-color: rgba(60, 160, 193, 0.34);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.header-notification-item.is-unread {
    border-color: rgba(60, 160, 193, 0.42);
    background: linear-gradient(145deg, rgba(240, 249, 255, 0.95), rgba(236, 253, 245, 0.9));
}

.header-notification-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.55rem;
}

.header-notification-item-top strong {
    font-size: 0.82rem;
    color: #0f172a;
    line-height: 1.3;
}

.header-notification-item-top time {
    font-size: 0.7rem;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 700;
    white-space: nowrap;
}

.header-notification-item-type {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.76);
    color: rgba(15, 23, 42, 0.66);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.48rem;
}

.header-notification-item-text {
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.72);
    line-height: 1.45;
}

.header-notification-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.1rem;
}

.header-notification-item-meta small {
    font-size: 0.7rem;
    color: rgba(15, 23, 42, 0.56);
    font-weight: 700;
}

.header-notification-item-meta b {
    color: #1f6d38;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.header-notification-item-meta i {
    color: rgba(15, 23, 42, 0.48);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
}

.header-notification-empty {
    margin: 0;
    border: 1px dashed rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    padding: 0.84rem;
    text-align: center;
    color: rgba(15, 23, 42, 0.58);
    font-size: 0.8rem;
    font-weight: 600;
}

.header .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.56rem 1.02rem;
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-width: 1.5px;
    white-space: nowrap;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.header .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.header .btn:hover::after {
    opacity: 1;
}

.header .btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.18),
        0 8px 22px rgba(15, 23, 42, 0.12);
}

.header .btn-primary {
    color: #f8fdff;
    border-color: rgba(37, 146, 118, 0.45);
    background: linear-gradient(135deg, #3c9fc1 0%, #3fa03c 58%, #369760 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 10px 20px rgba(34, 128, 110, 0.32);
}

.header .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 14px 26px rgba(34, 128, 110, 0.36);
}

.header .btn-ghost,
.header .btn-outline {
    color: #2a82ab;
    border-color: rgba(60, 160, 193, 0.46);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 252, 255, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 12px rgba(15, 23, 42, 0.05);
}

.header .btn-ghost:hover,
.header .btn-outline:hover {
    color: #1d6d93;
    border-color: rgba(60, 160, 193, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 247, 253, 0.95));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 8px 18px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

@media (max-width: 1260px) {
    .header .container {
        padding-left: 0.92rem;
        padding-right: 0.92rem;
    }

    .header-inner {
        gap: 0.72rem;
    }

    .nav-list a {
        padding-inline: 0.74rem;
        font-size: 0.86rem;
    }

    .header .btn {
        padding-inline: 0.78rem;
        font-size: 0.8rem;
    }

    .header-user-pill {
        max-width: 210px;
    }

    .header-user-meta small {
        display: none;
    }
}

@media (max-width: 1100px) {
    .header-actions [data-modal-target="modal-login"]:not([data-auth-action="logout"]) {
        display: none;
    }

    .header-user-pill {
        max-width: 170px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(60, 160, 193, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(60, 160, 193, 0.4);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.hero .btn-outline {
    border-color: rgba(15, 23, 42, 0.15);
    border-width: 1.5px;
    color: rgba(15, 23, 42, 0.8);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hero .btn-outline:hover {
    border-color: rgba(15, 23, 42, 0.2);
    color: rgba(15, 23, 42, 0.9);
    background: white;
    transform: translateY(-2px);
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.54rem 1.08rem;
    background: linear-gradient(120deg, rgba(60, 160, 193, 0.16), rgba(63, 160, 60, 0.13));
    color: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(63, 160, 60, 0.16);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    margin-bottom: 1.15rem;
}

.hero h1 {
    font-weight: 700;
    font-size: clamp(3.2rem, 6vw, 5rem);
    line-height: 1.03;
    letter-spacing: -1.8px;
    margin-bottom: 1.15rem;
}

.hero .highlight {
    color: transparent;
    background: linear-gradient(120deg, #2b99bd 0%, #4f9d3a 62%, #3fa03c 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero .highlight::after {
    content: none;
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 8% 18%, rgba(60, 160, 193, 0.1), transparent 33%),
        radial-gradient(circle at 86% 10%, rgba(63, 160, 60, 0.12), transparent 29%),
        transparent;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 3.4rem;
    align-items: center;
}

.hero-text {
    animation: fadeUp 1s ease forwards;
    max-width: 560px;
    padding: 1rem 0;
}

.hero-lead {
    font-size: 1.22rem;
    line-height: 1.72;
    color: rgba(15, 23, 42, 0.72);
    margin-bottom: 1.2rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
    margin-bottom: 1.75rem;
}

.hero-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.74);
    color: rgba(15, 23, 42, 0.73);
    font-size: 0.86rem;
    font-weight: 600;
}

.hero-proof-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
    box-shadow: 0 0 0 4px rgba(79, 157, 58, 0.12);
}

.hero-actions {
    display: flex;
    gap: 0.95rem;
    align-items: center;
    margin-top: 0.35rem;
}

.hero .btn-lg {
    min-width: 198px;
}

.hero .btn-primary {
    box-shadow: 0 18px 34px rgba(63, 160, 60, 0.28);
}

.hero .btn-primary:hover {
    box-shadow: 0 22px 40px rgba(63, 160, 60, 0.34);
}

.hero-image {
    position: relative;
    animation: fadeLeft 1s ease forwards 0.3s;
    opacity: 0;
    width: 100%;
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.float-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    bottom: -20px;
    left: -30px;
    z-index: 2;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.icon-small.success {
    background: var(--secondary-color);
}

/* Steps / How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: stretch;
    margin-top: 3.5rem;
    position: relative;
}

.minimal-steps::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
}

.step-card {
    text-align: left;
    padding: 2.5rem 2.25rem;
    position: relative;
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 24px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.step-number {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: rgba(15, 23, 42, 0.6);
}

.minimal-step h3 {
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

.minimal-step p {
    margin-bottom: 0;
    font-size: 1.02rem;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
}

/* Features */
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(60, 160, 193, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.step-card .icon-box {
    margin: 0;
    border-radius: 18px;
    width: 64px;
    height: 64px;
    background: rgba(15, 23, 42, 0.04);
    display: grid;
    place-items: center;
}

.minimal-icon svg {
    width: 34px;
    height: 34px;
    stroke: #0f172a;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.how-it-works-premium {
    position: relative;
    background:
        radial-gradient(circle at 8% 8%, rgba(60, 160, 193, 0.12), transparent 32%),
        radial-gradient(circle at 92% 0%, rgba(63, 160, 60, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(248, 250, 252, 0.76));
}

.how-it-works-premium .container {
    position: relative;
}

.how-it-works-premium .how-header {
    max-width: 700px;
    margin: 0 auto;
}

.how-it-works-premium .how-header h2 {
    font-size: clamp(2.1rem, 3.8vw, 3.1rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
}

.how-it-works-premium .how-header p {
    margin-bottom: 0;
}

.how-kpis {
    margin: 1.8rem auto 0;
    max-width: 860px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.how-kpi {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.15rem;
    text-align: left;
}

.how-kpi strong {
    font-size: 1.22rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.how-kpi span {
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.58);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.how-it-works-premium .steps-grid {
    margin-top: 2.4rem;
    gap: 1.2rem;
    align-items: stretch;
}

.how-it-works-premium .minimal-steps::before {
    left: 11%;
    right: 11%;
    top: 46%;
    height: 2px;
    background: linear-gradient(90deg, rgba(60, 160, 193, 0.08), rgba(15, 23, 42, 0.14), rgba(63, 160, 60, 0.08));
}

.how-it-works-premium .step-card {
    min-height: 280px;
    padding: 1.3rem 1.25rem 1.4rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
    gap: 0.62rem;
    overflow: hidden;
    opacity: 0;
    animation: stepCardRise 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.how-it-works-premium .step-card:nth-child(2) {
    animation-delay: 0.09s;
}

.how-it-works-premium .step-card:nth-child(3) {
    animation-delay: 0.18s;
}

.how-it-works-premium .step-card::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(60, 160, 193, 0.34), rgba(63, 160, 60, 0.34));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.how-it-works-premium .step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 46px rgba(15, 23, 42, 0.14);
}

.how-it-works-premium .step-card:hover::before {
    opacity: 1;
}

.how-it-works-premium .step-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.15rem;
}

.how-it-works-premium .step-number {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: rgba(15, 23, 42, 0.54);
}

.how-it-works-premium .step-pill {
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.09);
    color: rgba(15, 23, 42, 0.66);
    font-size: 0.72rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.28rem 0.56rem;
    text-transform: uppercase;
}

.how-it-works-premium .step-icon-ring {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92));
    box-shadow: inset 0 0 0 6px rgba(15, 23, 42, 0.02);
}

.how-it-works-premium .step-icon-ring svg {
    width: 32px;
    height: 32px;
    stroke: rgba(15, 23, 42, 0.92);
}

.how-it-works-premium .minimal-step h3 {
    margin-top: 0.42rem;
    margin-bottom: 0.15rem;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.how-it-works-premium .minimal-step p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.58;
    color: rgba(15, 23, 42, 0.7);
}

@keyframes stepCardRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

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

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

    .how-it-works-premium .steps-grid {
        margin-top: 2rem;
    }

    .how-it-works-premium .minimal-steps::before {
        display: none;
    }

    .how-it-works-premium .step-card {
        min-height: auto;
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .how-kpis {
        grid-template-columns: 1fr;
        margin-top: 1.25rem;
    }

    .how-kpi {
        padding: 0.75rem 0.84rem;
    }

    .how-kpi strong {
        font-size: 1.08rem;
    }

    .how-it-works-premium .step-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .how-it-works-premium .step-pill {
        font-size: 0.66rem;
    }

    .how-it-works-premium .step-icon-ring {
        width: 62px;
        height: 62px;
        border-radius: 16px;
    }

    .how-it-works-premium .minimal-step h3 {
        font-size: 1.75rem;
    }

    .how-it-works-premium .minimal-step p {
        font-size: 0.94rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .how-it-works-premium .step-card {
        animation: none;
        opacity: 1;
        transition: none;
    }
}

/* Testimonials */
.testimonial-card {
    background: #2a3648;
    /* Slightly lighter than bg-dark */
    border: none;
    color: #e2e8f0;
}

.stars {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.user-info img {
    border-radius: 50%;
}

.user-info h5 {
    margin: 0;
    color: white;
}

.user-info span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* FAQ - Accordion */
.accordion {
    display: grid;
    gap: 0.85rem;
}

.accordion-item {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.accordion-item:hover {
    border-color: rgba(60, 160, 193, 0.28);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.25rem;
    background: none;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-display);
    color: #0f172a;
}

.accordion-header::after {
    content: '+';
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1;
    color: #2b99bd;
    background: linear-gradient(145deg, rgba(60, 160, 193, 0.14), rgba(60, 160, 193, 0.05));
    border: 1px solid rgba(60, 160, 193, 0.22);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.accordion-header.active::after {
    transform: rotate(45deg);
    color: #ffffff;
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
    border-color: transparent;
}

.accordion-header.active {
    color: #0b172f;
}

.accordion-body {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.22s ease;
}

.accordion-header.active + .accordion-body {
    opacity: 1;
}

.accordion-body p {
    padding: 0 0 1.2rem;
    margin: 0;
    font-size: 0.97rem;
    color: rgba(15, 23, 42, 0.68);
    line-height: 1.6;
    max-width: 62ch;
}

.faq-section {
    position: relative;
    background:
        radial-gradient(circle at 10% 14%, rgba(60, 160, 193, 0.11), transparent 35%),
        radial-gradient(circle at 90% 8%, rgba(63, 160, 60, 0.11), transparent 31%),
        transparent;
}

.faq-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.25rem, 3.2vw, 2.8rem);
    align-items: start;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border-radius: 36px;
    padding: clamp(1.5rem, 3.5vw, 3.3rem);
    box-shadow: 0 30px 64px rgba(15, 23, 42, 0.13);
    border: 1px solid rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
}

.faq-panel::before {
    content: '';
    position: absolute;
    left: -120px;
    top: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 160, 193, 0.17), rgba(60, 160, 193, 0));
    pointer-events: none;
}

.faq-content {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: start;
    gap: 0.8rem;
}

.faq-content h2 {
    margin-bottom: 0.4rem;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.faq-content p {
    margin-bottom: 0;
    max-width: 54ch;
}

.faq-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.faq-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: rgba(255, 255, 255, 0.84);
    padding: 0.38rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.68);
    letter-spacing: 0.01em;
}

.faq-badges span::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
    box-shadow: 0 0 0 3px rgba(79, 157, 58, 0.12);
    flex: 0 0 auto;
}

.faq-highlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
    margin: 0.6rem 0 0.25rem;
}

.faq-highlight-item,
.faq-highlight div {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.86));
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.28rem;
}

.faq-highlight strong {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.74);
}

.faq-highlight span {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.faq-cta {
    margin-top: 0.65rem;
    min-width: 220px;
}

.faq-accordion-shell {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    padding: 0.75rem;
}

.faq-side {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: start;
    gap: 0.9rem;
}

.faq-visual {
    margin: 0;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    aspect-ratio: 16 / 9;
    background: linear-gradient(180deg, #ffffff, #edf3f9);
}

.faq-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.faq-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 34%, rgba(15, 23, 42, 0.72) 100%);
}

.faq-visual figcaption {
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.85rem;
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-size: 0.86rem;
    line-height: 1.4;
    font-weight: 600;
    padding: 0.48rem 0.6rem;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(4px);
}

.faq-accordion {
    gap: 0.75rem;
}

@media (max-width: 992px) {
    .faq-section .faq-panel {
        grid-template-columns: 1fr;
        text-align: left;
    }

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

@media (max-width: 768px) {
    .faq-section .faq-panel {
        border-radius: 24px;
        padding: 1.3rem;
    }

    .faq-content h2 {
        font-size: clamp(1.95rem, 8vw, 2.5rem);
    }

    .faq-badges {
        gap: 0.42rem;
    }

    .faq-badges span {
        font-size: 0.72rem;
    }

    .faq-section .faq-highlight {
        grid-template-columns: 1fr;
    }

    .faq-highlight span {
        font-size: 1.4rem;
    }

    .faq-cta {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .faq-accordion-shell {
        padding: 0.5rem;
        border-radius: 18px;
    }

    .faq-visual {
        border-radius: 18px;
        aspect-ratio: 16 / 10;
    }

    .faq-visual figcaption {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.7rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.52rem;
    }

    .accordion-header {
        padding: 1rem 0.95rem;
        font-size: 1rem;
    }

    .accordion-header::after {
        width: 30px;
        height: 30px;
        font-size: 1.08rem;
    }

    .accordion-body {
        padding: 0 0.95rem;
    }

    .accordion-body p {
        font-size: 0.92rem;
        padding-bottom: 1rem;
    }
}

/* Contact */
.contact-section {
    position: relative;
    background: transparent;
}

.contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 3.2vw, 3rem);
    align-items: stretch;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
    border-radius: 36px;
    padding: clamp(1.6rem, 3vw, 3rem);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.contact-panel::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(60, 160, 193, 0.26), rgba(63, 160, 60, 0.52), rgba(60, 160, 193, 0.26));
    pointer-events: none;
}

.contact-panel::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    right: -150px;
    bottom: -185px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 160, 193, 0.18), transparent 70%);
    pointer-events: none;
}

.contact-panel-simple {
    grid-template-columns: 1.02fr 0.98fr;
}

.contact-info-block {
    display: grid;
    gap: 1.25rem;
    align-content: start;
    position: relative;
    z-index: 1;
}

.contact-visual {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    aspect-ratio: 16 / 10;
    position: relative;
    background: linear-gradient(180deg, #ffffff, #eff4fa);
}

.contact-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
}

.contact-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 36%, rgba(15, 23, 42, 0.72) 100%);
}

.contact-visual figcaption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(4px);
    margin: 0;
}

.contact-text {
    position: relative;
    z-index: 1;
}

.contact-text h2 {
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.contact-text p {
    margin: 0;
    color: rgba(15, 23, 42, 0.73);
    max-width: 58ch;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.58rem;
    margin: 1.2rem 0 0.35rem;
}

.badge-soft {
    padding: 0.42rem 0.86rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: rgba(15, 23, 42, 0.72);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.contact-list {
    margin: 0.95rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.72rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    padding: 0.66rem 0.78rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 252, 0.9));
    transition: var(--transition);
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
    border-color: rgba(60, 160, 193, 0.36);
}

.contact-link-text {
    display: grid;
    gap: 0.05rem;
}

.contact-link-text small {
    font-size: 0.73rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.52);
    font-weight: 600;
}

.contact-link-text strong {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.contact-icon {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(60, 160, 193, 0.17), rgba(63, 160, 60, 0.2));
    color: var(--primary-color);
    border: 1px solid rgba(60, 160, 193, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-form-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(152deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 253, 0.95));
    padding: clamp(1.5rem, 2.6vw, 2.2rem);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.09);
}

.contact-form-simple {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 253, 0.94));
}

.contact-form-head {
    margin-bottom: 1.05rem;
}

.contact-form-head h3 {
    margin: 0;
    letter-spacing: -0.01em;
    font-size: 1.28rem;
}

.contact-form-head p {
    margin: 0.45rem 0 0;
    color: rgba(15, 23, 42, 0.64);
    font-size: 0.93rem;
    line-height: 1.55;
}

.contact-form-simple form {
    display: grid;
    gap: 0.74rem;
}

.contact-form-simple .form-group {
    margin-bottom: 0;
}

.contact-form-simple .form-group label {
    margin-bottom: 0.42rem;
    font-weight: 600;
}

.contact-form-simple input,
.contact-form-simple textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form-simple textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form-simple input:focus,
.contact-form-simple textarea:focus {
    border-color: rgba(60, 160, 193, 0.62);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.14);
}

.contact-form-simple .btn {
    margin-top: 0.25rem;
}

.form-hint {
    margin-top: 0.35rem;
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.56);
    line-height: 1.58;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.1);
}

/* Footer */
.footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #0b1324 0%, #0f1b30 54%, #0f172a 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #d8e3f2;
    padding: 3.35rem 0 1.55rem;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.premium-footer {
    background:
        radial-gradient(circle at 10% -8%, rgba(60, 160, 193, 0.16), transparent 32%),
        radial-gradient(circle at 88% -14%, rgba(63, 160, 60, 0.15), transparent 34%),
        linear-gradient(165deg, #0b1324 0%, #0f1b30 54%, #0f172a 100%);
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: -128px;
    left: -96px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 160, 193, 0.2), rgba(60, 160, 193, 0));
    pointer-events: none;
}

.premium-footer::after {
    content: '';
    position: absolute;
    right: -110px;
    bottom: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 157, 58, 0.2), rgba(79, 157, 58, 0));
    pointer-events: none;
}

.footer-logo {
    margin-bottom: 0.72rem;
    height: 48px;
    filter: none;
}

.footer-logo.text-logo {
    height: auto;
    filter: none;
    font-size: 1.56rem;
}

.footer .logo-care {
    color: #ffffff;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.85fr));
    gap: 1.75rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-brand {
    max-width: 520px;
}

.footer-brand p {
    margin-bottom: 0.76rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.58;
    font-size: 0.96rem;
}

.footer-badges {
    margin: 0.84rem 0 1.02rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.footer-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(148, 163, 184, 0.06));
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.32rem 0.56rem;
}

.footer-badges span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3fa0c1, #5aa451);
    box-shadow: 0 0 0 3px rgba(63, 160, 193, 0.18);
}

.footer-contact {
    display: grid;
    gap: 0.42rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.9);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.52rem;
    font-size: 0.88rem;
}

.footer-contact-item svg {
    width: 15px;
    height: 15px;
    stroke: rgba(148, 205, 222, 0.95);
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-contact-item a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer-links h4 {
    margin-bottom: 0.72rem;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(241, 245, 249, 0.92);
}

.footer-links ul {
    display: grid;
    gap: 0.44rem;
}

.footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    color: rgba(226, 232, 240, 0.78);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3fa0c1, #5aa451);
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: #f8fafc;
    transform: translateX(2px);
}

.footer-links a:hover::before {
    opacity: 0.95;
    transform: scale(1.1);
}

.footer-cta h4 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: white;
}

.footer-cta p {
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 1.5rem;
}

.footer-form {
    display: grid;
    gap: 0.75rem;
}

.footer-form input {
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-size: 0.95rem;
}

.footer-form input::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

.footer-form .btn {
    width: fit-content;
}

.footer-bottom {
    padding-top: 0;
    color: rgba(203, 213, 225, 0.82);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.72rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.footer-signature {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.25);
    text-align: center;
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-note {
    color: rgba(226, 232, 240, 0.74);
    font-weight: 600;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(60, 160, 193, 0.18), transparent 32%),
        radial-gradient(circle at 88% 88%, rgba(63, 160, 60, 0.16), transparent 36%),
        rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(0.7rem, 1.8vh, 1.05rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 2000;
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.26s ease;
}

.modal.active .modal-dialog {
    animation: modalDialogIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-dialog {
    width: min(980px, 95vw);
    max-height: none;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 42px 100px rgba(15, 23, 42, 0.34);
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.26);
    overflow: hidden;
}

.modal-dialog::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(60, 160, 193, 0.32), rgba(63, 160, 60, 0.56), rgba(60, 160, 193, 0.32));
    pointer-events: none;
    z-index: 2;
}

.modal-dialog-premium {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
}

.modal-side {
    background:
        radial-gradient(circle at 12% 8%, rgba(60, 160, 193, 0.24), transparent 36%),
        radial-gradient(circle at 92% 90%, rgba(63, 160, 60, 0.22), transparent 42%),
        linear-gradient(150deg, #0f172a 0%, #111f36 100%);
    padding: 2.15rem 1.85rem 2rem;
    color: #e2e8f0;
    position: relative;
}

#modal-login .modal-side {
    background:
        radial-gradient(circle at 12% 8%, rgba(60, 160, 193, 0.3), transparent 36%),
        radial-gradient(circle at 92% 90%, rgba(63, 160, 60, 0.18), transparent 42%),
        linear-gradient(150deg, #0f172a 0%, #12243f 100%);
}

#modal-signup .modal-side {
    background:
        radial-gradient(circle at 12% 8%, rgba(63, 160, 60, 0.28), transparent 34%),
        radial-gradient(circle at 92% 90%, rgba(60, 160, 193, 0.18), transparent 40%),
        linear-gradient(150deg, #102032 0%, #17334e 100%);
}

#modal-corporate .modal-side {
    background:
        radial-gradient(circle at 14% 8%, rgba(60, 160, 193, 0.24), transparent 34%),
        radial-gradient(circle at 88% 88%, rgba(63, 160, 60, 0.24), transparent 42%),
        linear-gradient(150deg, #101d31 0%, #182945 100%);
}

#modal-staff-login .modal-side {
    background:
        radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.3), transparent 38%),
        radial-gradient(circle at 88% 88%, rgba(14, 165, 233, 0.26), transparent 42%),
        linear-gradient(150deg, #0d1b30 0%, #163050 100%);
}

.modal-side::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -96px;
    top: -84px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 160, 60, 0.3) 0%, transparent 68%);
    pointer-events: none;
}

.modal-side::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    left: -96px;
    bottom: -94px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 160, 193, 0.28) 0%, transparent 68%);
    pointer-events: none;
}

.modal-side h4 {
    color: #ffffff;
    margin: 0 0 0.62rem;
    font-size: 1.48rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.modal-side p {
    color: rgba(226, 232, 240, 0.84);
    margin-bottom: 1rem;
    line-height: 1.55;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.modal-side-list {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

.modal-side-list li {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    color: rgba(226, 232, 240, 0.92);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.34);
    padding: 0.34rem 0.68rem 0.34rem 0.58rem;
    line-height: 1.28;
}

.modal-side-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f9d3a;
    margin-right: 0.48rem;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(79, 157, 58, 0.16);
}

.modal-main {
    padding: 2rem 1.9rem 1.85rem;
    background:
        radial-gradient(circle at 88% 0%, rgba(60, 160, 193, 0.07), transparent 30%),
        #ffffff;
    max-height: none;
    overflow: visible;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.92);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
    z-index: 3;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.modal-header h3 {
    margin: 0 0 0.22rem;
    font-size: clamp(1.85rem, 2.6vw, 2.15rem);
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.08;
}

.modal-header p {
    margin: 0 0 1rem;
    color: rgba(15, 23, 42, 0.66);
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-form {
    display: grid;
    gap: 0.66rem;
}

.modal-form .btn {
    min-height: 44px;
    padding: 0.72rem 0.96rem;
    font-size: 0.9rem;
    line-height: 1;
    border-width: 1.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-main .btn-primary {
    box-shadow: 0 10px 20px rgba(60, 160, 193, 0.24);
}

.modal-main .btn-primary:hover {
    box-shadow: 0 14px 26px rgba(60, 160, 193, 0.3);
}

.modal-main .btn-outline,
.modal-main .btn-ghost {
    background: rgba(255, 255, 255, 0.86);
}

.modal-form label {
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.14rem;
    font-size: 0.84rem;
    letter-spacing: 0.01em;
}

.modal-form input {
    width: 100%;
    min-height: 44px;
    padding: 0.74rem 0.88rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.94));
    font-family: inherit;
    font-size: 0.92rem;
}

.modal-form select,
.modal-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.74rem 0.88rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.94));
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    font-size: 0.92rem;
}

.modal-form select {
    min-height: auto;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.16), 0 10px 20px rgba(60, 160, 193, 0.1);
}

.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.16), 0 10px 20px rgba(60, 160, 193, 0.1);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.96));
    color: #0f172a;
    font-weight: 700;
}

.btn-google:hover {
    background: #ffffff;
    border-color: rgba(60, 160, 193, 0.35);
}

.google-g {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: #4285F4;
}

.modal-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.32rem;
}

.modal-divider {
    position: relative;
    text-align: center;
    margin: 0.72rem 0 0.24rem;
    color: rgba(15, 23, 42, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 34%;
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
}

.modal-divider::before {
    left: 0;
}

.modal-divider::after {
    right: 0;
}

.form-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 0.08rem;
}

.form-inline .checkbox-inline {
    white-space: nowrap;
}

.form-inline .link-muted {
    margin-left: auto;
    white-space: nowrap;
}

.phone-verify-row,
.phone-verify-code {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.58rem;
    align-items: center;
}

.phone-verify-row .btn,
.phone-verify-code .btn {
    min-width: 118px;
    min-height: 44px;
    padding-inline: 0.88rem;
    white-space: nowrap;
}

.btn-phone-verify,
.btn-phone-confirm {
    height: 44px;
    border-width: 1.5px;
}

.phone-verify-code {
    margin-top: 0.02rem;
}

.phone-verify-message {
    min-height: 1.25rem;
    margin: 0.02rem 0 0.08rem;
    font-size: 0.79rem;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.58);
}

.phone-verify-message.info {
    color: #155e75;
}

.phone-verify-message.success {
    color: #166534;
}

.phone-verify-message.error {
    color: #991b1b;
}

.checkbox-inline {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 20px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.75);
    cursor: pointer;
    user-select: none;
}

.checkbox-inline input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.checkbox-inline .checkmark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(15, 23, 42, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.95));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex: 0 0 20px;
}

.checkbox-inline .checkmark::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2.2px solid #ffffff;
    border-bottom: 2.2px solid #ffffff;
    transform: rotate(-45deg) translateY(-1px) translateX(1px);
    opacity: 0;
}

.checkbox-inline input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
    border-color: transparent;
}

.checkbox-inline input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-inline input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.18);
}

.checkbox-label-text {
    color: rgba(15, 23, 42, 0.86);
    font-weight: 600;
    line-height: 1.35;
    font-size: 0.84rem;
}

.checkbox-block {
    align-items: flex-start;
}

.link-muted {
    color: rgba(15, 23, 42, 0.65);
    font-weight: 600;
    font-size: 0.82rem;
}

.modal-brand {
    margin-bottom: 0.82rem;
    font-size: 1.48rem;
    position: relative;
    z-index: 1;
}

.modal-side .logo-care {
    color: #ffffff;
}

.modal-side .logo-var {
    color: #69c351;
}

.modal-footnote {
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.6);
    margin: 0;
    text-align: center;
}

.modal-footnote a {
    color: var(--primary-color);
    font-weight: 700;
}

.modal-staff-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.44rem;
}

.modal-staff-quick-card {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12), transparent 45%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    color: #0f172a;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.56rem 0.62rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.modal-staff-quick-card:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

#modal-staff-login [data-staff-department-preview] {
    color: rgba(15, 23, 42, 0.72);
    font-weight: 700;
    background: linear-gradient(145deg, rgba(226, 232, 240, 0.5), rgba(248, 250, 252, 0.95));
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalDialogIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animations Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries */
@media (max-width: 992px) {

    .hero-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-panel {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
        justify-content: center;
        display: flex;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-text {
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-proof {
        justify-content: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .minimal-steps::before {
        display: none;
    }

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

    .video-panel {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .video-content {
        text-align: center;
    }

    .video-meta {
        justify-content: center;
    }

    .modal-dialog {
        width: min(720px, 94vw);
    }

    .modal-dialog-premium {
        grid-template-columns: 1fr;
    }

    .modal-side {
        padding: 1.35rem 1.4rem;
    }

    .modal-main {
        padding: 1.2rem 1.2rem 1.15rem;
        max-height: none;
        overflow: visible;
    }

    .modal-side-list li {
        width: 100%;
    }

    .modal-header h3 {
        font-size: 1.7rem;
    }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.28rem 1.05rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .footer-bottom {
        align-items: flex-start;
        font-size: 0.82rem;
    }

    .contact-panel {
        padding: 2.2rem;
    }

    .contact-panel::before {
        left: 0.95rem;
        right: 0.95rem;
    }

    .contact-panel-simple {
        gap: 1.4rem;
        padding: 2.2rem;
    }

    .contact-info-block {
        max-width: 760px;
        margin: 0 auto;
    }

    .contact-text {
        text-align: left;
    }

    .contact-visual {
        max-width: 680px;
        margin: 0 auto;
    }

    .contact-badges {
        justify-content: flex-start;
    }

    .contact-list {
        justify-content: stretch;
    }

    .contact-form-card {
        max-width: 760px;
        margin: 0 auto;
    }

    .faq-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .faq-highlight {
        grid-template-columns: 1fr;
    }

    .success-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .success-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-text {
        padding: 0.25rem 0;
    }

    .hero-lead {
        font-size: 1.04rem;
        line-height: 1.66;
    }

    .hero-proof {
        margin-bottom: 1.35rem;
        gap: 0.5rem;
    }

    .hero .btn-lg {
        min-width: 170px;
        padding: 0.9rem 1.45rem;
        font-size: 1rem;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-list {
        display: none;
    }

    /* Hide nav for simple mobile view */
    .hamburger {
        display: block;
    }

    .header-actions {
        display: none;
    }

    body.is-authenticated .header-actions {
        display: inline-flex;
        max-width: 100%;
        gap: 0.3rem;
        padding: 0.2rem;
    }

    body.is-authenticated .header-user-pill {
        max-width: none;
        padding: 0.16rem;
        border-color: rgba(15, 23, 42, 0.16);
    }

    body.is-authenticated .header-user-meta {
        display: none;
    }

    body.is-authenticated .header-actions .btn {
        min-height: 32px;
        padding: 0.4rem 0.58rem;
        font-size: 0.74rem;
    }

    body.is-authenticated .header-notification-btn {
        width: 34px;
        height: 34px;
    }

    body.is-authenticated .header-notification-btn svg {
        width: 16px;
        height: 16px;
    }

    body.is-authenticated .header-notification-badge {
        right: -4px;
        top: -4px;
        min-width: 16px;
        height: 16px;
        padding: 0 0.24rem;
        font-size: 0.62rem;
    }

    body.is-authenticated .header-notification-panel {
        right: -0.2rem;
        width: min(340px, calc(100vw - 0.8rem));
    }

    .modal {
        padding: 0.5rem;
        align-items: flex-start;
    }

    .modal-dialog {
        max-height: none;
        overflow: hidden;
        border-radius: 20px;
    }

    .modal-main {
        max-height: none;
        overflow: visible;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .form-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-inline .link-muted {
        margin-left: 0;
    }

    .phone-verify-row,
    .phone-verify-code {
        grid-template-columns: 1fr;
    }

    .phone-verify-row .btn,
    .phone-verify-code .btn {
        width: 100%;
    }

    .modal-staff-quick-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 1.2rem;
        border-radius: 18px;
    }

    .contact-form-simple {
        padding: 1.15rem;
    }

    .contact-form-head h3 {
        font-size: 1.12rem;
    }

    .contact-link {
        padding: 0.6rem 0.64rem;
    }

    .contact-link-text strong {
        font-size: 0.95rem;
    }

    .contact-visual figcaption {
        font-size: 0.8rem;
    }

    .float-card {
        display: none;
    }

    /* Hide floating card on small screens */
}

@media (max-width: 640px) {
    .footer {
        padding: 2.75rem 0 1.15rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.02rem;
        padding-bottom: 1rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-badges {
        margin: 0.72rem 0 0.84rem;
    }

    .footer-links h4 {
        margin-bottom: 0.52rem;
        font-size: 0.74rem;
    }

    .footer-links a {
        font-size: 0.82rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.36rem;
        font-size: 0.78rem;
    }

    .footer-signature {
        margin-top: 0.48rem;
        font-size: 0.69rem;
        text-align: left;
    }
}

/* Custom Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #4ea2ba #e8eff6;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #eef3f8, #e4ebf3);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3fa0c1, #5aa451);
    border-radius: 999px;
    border: 2px solid rgba(235, 242, 248, 0.92);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2e8cad, #4f9648);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .hero-actions,
    .btn {
        display: none;
    }

    .hero {
        padding: 50px 0;
        min-height: auto;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: none;
        color: black;
    }
}

/* Reference Redesign Sections */

/* Ticker / Marquee */
.ticker-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: clamp(0.72rem, 1.7vw, 1.02rem) 0;
    background: transparent;
    border: 0;
}

.ticker-wrap::before {
    content: none;
}

.ticker-shell {
    width: min(1320px, calc(100% - 2.4rem));
    margin: 0 auto;
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 253, 0.92));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    padding: 0.72rem 0.56rem 0.58rem;
    overflow: hidden;
    position: relative;
    mask-image: none;
    -webkit-mask-image: none;
}

.ticker-shell::before {
    content: '';
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(60, 160, 193, 0.18), rgba(63, 160, 60, 0.42), rgba(60, 160, 193, 0.18));
    pointer-events: none;
    z-index: 2;
}

.ticker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0 0.44rem 0.58rem;
    margin-bottom: 0.16rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ticker-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.62);
}

.ticker-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.82);
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ticker-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4f9d3a;
    box-shadow: 0 0 0 5px rgba(79, 157, 58, 0.14);
    animation: ticker-live-pulse 2s ease infinite;
}

.ticker {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    width: max-content;
    min-width: 100%;
    animation: ticker-scroll 34s linear infinite;
    will-change: transform;
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
}

.ticker-group {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    flex-shrink: 0;
    padding-inline: 0.28rem;
}

.ticker-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    white-space: nowrap;
    min-height: 44px;
    min-width: 260px;
    padding: 0.48rem 0.7rem;
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.76);
    border-radius: 15px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 246, 252, 0.92));
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.09);
    backdrop-filter: blur(6px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ticker-item::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3ca0c1, #4f9d3a);
    box-shadow: 0 0 0 4px rgba(79, 157, 58, 0.13);
    flex: 0 0 auto;
}

.ticker-item:hover {
    transform: translateY(-2px);
    border-color: rgba(60, 160, 193, 0.3);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.ticker-item-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 30px;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.01em;
}

.ticker-item-text {
    color: rgba(15, 23, 42, 0.77);
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.ticker-item.is-metric {
    border-color: rgba(63, 160, 60, 0.22);
}

.ticker-item.is-metric .ticker-item-key {
    border-color: rgba(63, 160, 60, 0.28);
    background: linear-gradient(135deg, rgba(60, 160, 193, 0.2), rgba(63, 160, 60, 0.24));
}

.ticker-item.is-update .ticker-item-key {
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.06);
}

@keyframes ticker-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 157, 58, 0.2);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(79, 157, 58, 0);
    }
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 992px) {
    .ticker {
        animation-duration: 30s;
    }

    .ticker-item {
        min-width: 232px;
    }
}

@media (max-width: 768px) {
    .ticker-wrap {
        padding: 0.62rem 0 0.56rem;
    }

    .ticker-shell {
        width: min(1320px, calc(100% - 1.2rem));
        border-radius: 22px;
        padding: 0.58rem 0.44rem 0.45rem;
    }

    .ticker-head {
        padding: 0 0.34rem 0.45rem;
    }

    .ticker-kicker {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    .ticker-live {
        font-size: 0.67rem;
        padding: 0.24rem 0.48rem;
    }

    .ticker-group {
        gap: 0.52rem;
    }

    .ticker-item {
        min-width: 205px;
        min-height: 40px;
        padding: 0.4rem 0.56rem;
        border-radius: 12px;
    }

    .ticker-item::before {
        width: 6px;
        height: 6px;
    }

    .ticker-item-key {
        min-width: 56px;
        min-height: 26px;
        padding: 0.2rem 0.5rem;
        font-size: 0.69rem;
    }

    .ticker-item-text {
        font-size: 0.77rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticker {
        animation: none;
    }
}

/* Premium Success Section */
.success-section {
    position: relative;
    padding: clamp(4.8rem, 8vw, 6.4rem) 0;
    background:
        radial-gradient(circle at 9% 12%, rgba(60, 160, 193, 0.12), transparent 36%),
        radial-gradient(circle at 94% 0%, rgba(63, 160, 60, 0.14), transparent 33%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.55));
}

.success-panel {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: clamp(2rem, 3.5vw, 3.35rem);
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.97));
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

.success-panel::before {
    content: '';
    position: absolute;
    top: -130px;
    right: -150px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 160, 193, 0.2), rgba(60, 160, 193, 0));
    pointer-events: none;
}

.success-panel::after {
    content: '';
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(60, 160, 193, 0.2), rgba(63, 160, 60, 0.45), rgba(60, 160, 193, 0.2));
    pointer-events: none;
}

.success-panel h2 {
    color: #0f172a;
    font-size: clamp(2rem, 3.7vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.7px;
    margin-bottom: 0.75rem;
}

.success-panel p {
    color: rgba(15, 23, 42, 0.68);
    margin-bottom: 0;
    max-width: 64ch;
}

.success-header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.1rem 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.success-heading {
    display: grid;
    gap: 0.4rem;
}

.success-summary {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.success-summary-item {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.72rem 0.84rem;
    display: grid;
    gap: 0.2rem;
}

.summary-value {
    font-size: 1.14rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.summary-label {
    font-size: 0.76rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.56);
}

.success-cta {
    border-width: 1.5px;
    padding: 0.8rem 1.65rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.success-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.premium-list {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.85rem;
}

.success-table-head {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 78px 86px minmax(0, 1fr) minmax(220px, 0.56fr);
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 0.35rem;
    padding: 0 1rem 0.36rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.success-table-head span {
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.48);
}

.success-table-head span:last-child {
    text-align: right;
}

.success-row {
    position: relative;
    display: grid;
    grid-template-columns: 78px 86px minmax(0, 1fr) minmax(220px, 0.56fr);
    gap: 0.95rem;
    align-items: center;
    padding: 1.02rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 253, 0.9));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.success-row::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(60, 160, 193, 0.65), rgba(63, 160, 60, 0.78));
    opacity: 0.35;
}

.success-row:hover {
    transform: translateY(-3px);
    border-color: rgba(60, 160, 193, 0.26);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.13);
}

.success-row.podium-gold {
    border-color: rgba(183, 136, 23, 0.35);
    box-shadow: 0 18px 34px rgba(190, 146, 33, 0.2);
}

.success-row.podium-gold::before {
    opacity: 0.95;
    background: linear-gradient(180deg, rgba(255, 198, 58, 0.96), rgba(194, 132, 20, 0.9));
}

.success-row.podium-silver {
    border-color: rgba(100, 116, 139, 0.28);
    box-shadow: 0 16px 30px rgba(100, 116, 139, 0.16);
}

.success-row.podium-silver::before {
    opacity: 0.88;
    background: linear-gradient(180deg, rgba(203, 213, 225, 0.98), rgba(120, 132, 154, 0.82));
}

.success-row.podium-bronze {
    border-color: rgba(155, 97, 64, 0.28);
    box-shadow: 0 16px 31px rgba(155, 99, 67, 0.18);
}

.success-row.podium-bronze::before {
    opacity: 0.9;
    background: linear-gradient(180deg, rgba(209, 127, 68, 0.92), rgba(149, 83, 45, 0.84));
}

.success-rank-wrap {
    display: grid;
    justify-items: center;
    gap: 0.28rem;
}

.success-rank {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.98rem;
    color: rgba(15, 23, 42, 0.7);
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.9));
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.success-tier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0.12rem 0.44rem;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.72);
    background: rgba(226, 232, 240, 0.85);
    border: 1px solid rgba(100, 116, 139, 0.18);
}

.success-row.podium-gold .success-rank {
    color: #5a3b03;
    background: linear-gradient(135deg, #ffe89b, #f4c955);
    border-color: rgba(172, 120, 14, 0.42);
    box-shadow: 0 10px 18px rgba(173, 126, 11, 0.24);
}

.success-row.podium-gold .success-tier {
    color: #5d4105;
    background: linear-gradient(135deg, #fff1bf, #f2cc67);
    border-color: rgba(172, 120, 14, 0.32);
}

.success-row.podium-silver .success-rank {
    color: #334155;
    background: linear-gradient(135deg, #f8fafc, #d4dde7);
    border-color: rgba(100, 116, 139, 0.32);
    box-shadow: 0 8px 16px rgba(100, 116, 139, 0.18);
}

.success-row.podium-silver .success-tier {
    color: #334155;
    background: linear-gradient(135deg, #f8fafc, #d5deea);
    border-color: rgba(100, 116, 139, 0.28);
}

.success-row.podium-bronze .success-rank {
    color: #713b1d;
    background: linear-gradient(135deg, #f7ddcb, #d69e74);
    border-color: rgba(124, 58, 30, 0.34);
    box-shadow: 0 8px 16px rgba(124, 58, 30, 0.18);
}

.success-row.podium-bronze .success-tier {
    color: #6d381b;
    background: linear-gradient(135deg, #f8e3d5, #ddb28d);
    border-color: rgba(124, 58, 30, 0.3);
}

.success-logo {
    width: 86px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.success-logo img {
    width: 84%;
    height: 78%;
    object-fit: contain;
}

.success-info {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.success-info strong {
    display: block;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.success-info span {
    color: rgba(15, 23, 42, 0.64);
    font-size: 0.92rem;
    line-height: 1.3;
}

.success-meta {
    color: rgba(15, 23, 42, 0.47);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.success-rate {
    justify-self: end;
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    width: min(100%, 232px);
    padding: 0.62rem 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(241, 245, 249, 0.78));
}

.success-rate span {
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    font-size: 1.05rem;
}

.rate-bar {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.1);
    overflow: visible;
}

.rate-bar div {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: inherit;
}

.rate-bar div::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(63, 160, 60, 0.58);
    background: #ffffff;
    transform: translate(50%, -50%);
}

.success-trend {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.success-trend.up {
    color: #166534;
}

.success-trend.down {
    color: #9a3412;
}

.leaderboard-list .success-rate {
    min-width: 220px;
}

@media (max-width: 992px) {
    .success-header {
        grid-template-columns: 1fr;
    }

    .success-cta {
        justify-self: start;
    }

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

    .success-table-head {
        display: none;
    }

    .success-row {
        grid-template-columns: 62px 78px minmax(0, 1fr);
        gap: 0.78rem 0.95rem;
        padding: 1rem;
    }

    .success-rate,
    .leaderboard-list .success-rate {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        padding-left: calc(62px + 78px + 0.95rem);
        min-width: 0;
    }

    .success-logo {
        width: 74px;
        height: 46px;
    }
}

@media (max-width: 768px) {
    .success-panel {
        border-radius: 24px;
        padding: 1.35rem;
    }

    .success-panel h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .success-summary {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .success-row {
        grid-template-columns: 56px 62px minmax(0, 1fr);
        padding: 0.92rem 0.84rem;
        border-radius: 14px;
    }

    .success-rank {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .success-tier {
        font-size: 0.47rem;
        padding: 0.1rem 0.34rem;
    }

    .success-logo {
        width: 58px;
        height: 40px;
        border-radius: 10px;
    }

    .success-logo img {
        width: 84%;
        height: 78%;
    }

    .success-info strong {
        font-size: 1rem;
    }

    .success-info span {
        font-size: 0.84rem;
    }

    .success-rate,
    .leaderboard-list .success-rate {
        grid-column: 1 / -1;
        width: 100%;
        padding-left: 0;
    }

    .success-cta {
        width: 100%;
        text-align: center;
    }
}

/* Video Section */
.video-section {
    position: relative;
    padding: clamp(4.8rem, 8vw, 6.2rem) 0;
    background:
        radial-gradient(circle at 10% 18%, rgba(60, 160, 193, 0.12), transparent 33%),
        radial-gradient(circle at 88% 8%, rgba(63, 160, 60, 0.12), transparent 29%),
        transparent;
}

.video-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.8rem, 4vw, 3rem);
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    border-radius: 34px;
    padding: clamp(1.4rem, 3.5vw, 3.15rem);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
}

.video-panel::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -140px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 160, 193, 0.18), rgba(60, 160, 193, 0));
    pointer-events: none;
}

.video-content {
    position: relative;
    z-index: 2;
}

.video-content .subtitle {
    margin-bottom: 0.9rem;
}

.video-content h2 {
    margin-bottom: 0.95rem;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.video-content p {
    margin-bottom: 1.15rem;
    max-width: 38ch;
    font-size: 1.12rem;
    color: rgba(15, 23, 42, 0.72);
}

.video-meta {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1.05rem;
    flex-wrap: wrap;
}

.meta-item {
    padding: 0.44rem 0.86rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    color: rgba(15, 23, 42, 0.66);
}

.video-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
    margin-bottom: 1.35rem;
}

.video-proof-item {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    padding: 0.62rem 0.72rem;
    display: grid;
    gap: 0.14rem;
}

.video-proof-item strong {
    font-size: 1.06rem;
    line-height: 1.1;
    color: #0f172a;
}

.video-proof-item span {
    font-size: 0.79rem;
    color: rgba(15, 23, 42, 0.6);
    font-weight: 600;
}

.video-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.video-actions .btn {
    min-width: 178px;
}

.video-btn-ghost {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.14);
    color: rgba(15, 23, 42, 0.78);
}

.video-btn-ghost:hover {
    border-color: rgba(60, 160, 193, 0.36);
    color: rgba(15, 23, 42, 0.9);
    background: #ffffff;
}

.video-frame-wrap {
    position: relative;
    z-index: 2;
}

.video-frame-glow {
    position: absolute;
    inset: -18px -14px auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 160, 60, 0.18), rgba(63, 160, 60, 0));
    pointer-events: none;
}

.video-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.video-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.22);
    pointer-events: none;
    z-index: 2;
}

.video-frame img,
.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.36));
    z-index: 1;
    pointer-events: none;
}

.video-frame.video-frame-player {
    background: #0f172a;
}

.video-frame.video-frame-player::after {
    content: '';
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.18));
}

.video-player {
    background: #0f172a;
    position: relative;
    z-index: 0;
}

.video-player:focus-visible {
    outline: 2px solid rgba(60, 160, 193, 0.65);
    outline-offset: -2px;
}

@media (max-width: 992px) {
    .video-content p {
        max-width: 60ch;
        margin-left: auto;
        margin-right: auto;
    }

    .video-proof {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .video-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .video-panel {
        padding: 1.2rem;
        border-radius: 22px;
    }

    .video-content h2 {
        font-size: clamp(1.82rem, 8vw, 2.4rem);
    }

    .video-content p {
        font-size: 1rem;
    }

    .video-meta {
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }

    .meta-item {
        font-size: 0.74rem;
        padding: 0.38rem 0.66rem;
    }

    .video-proof {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .video-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .video-frame {
        border-radius: 20px;
    }

}

/* Home Flow Harmony */
.home-page {
    --harmony-bg: #edf2f8;
    --harmony-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.95));
    --harmony-border: rgba(15, 23, 42, 0.09);
    --harmony-shadow: 0 24px 52px rgba(15, 23, 42, 0.11);
    --harmony-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 246, 251, 0.9));
    --harmony-card-border: rgba(15, 23, 42, 0.1);
    --harmony-card-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    background: var(--harmony-bg);
}

.home-page .flow-strip,
.home-page .flow-stage {
    position: relative;
    isolation: isolate;
    background: transparent !important;
}

.home-page .flow-strip > .ticker-shell,
.home-page .flow-stage > .container {
    position: relative;
    z-index: 1;
}

.home-page .flow-stage::before {
    content: none !important;
}

.home-page .ticker-wrap {
    background: transparent !important;
    border-top: 0;
    border-bottom: 0;
    padding: clamp(0.8rem, 1.8vw, 1.2rem) 0;
}

.home-page .ticker-wrap::before {
    content: none;
}

.home-page .ticker-shell {
    mask-image: none;
    -webkit-mask-image: none;
    border-radius: 28px;
    border: 1px solid var(--harmony-border) !important;
    background: var(--harmony-surface) !important;
    box-shadow: var(--harmony-shadow) !important;
    padding: 0.72rem 0.56rem 0.58rem;
}

.home-page .ticker-shell::before {
    left: 0.9rem;
    right: 0.9rem;
}

.home-page .how-it-works-premium,
.home-page .success-section,
.home-page .video-section,
.home-page .faq-section,
.home-page .contact-section {
    background: transparent !important;
}

.home-page .how-it-works-premium .container,
.home-page .success-panel,
.home-page .video-panel,
.home-page .faq-panel,
.home-page .contact-panel {
    position: relative;
    background: var(--harmony-surface) !important;
    border: 1px solid var(--harmony-border) !important;
    box-shadow: var(--harmony-shadow) !important;
    border-radius: 34px;
    overflow: hidden;
}

.home-page .how-it-works-premium .container {
    padding: clamp(1.5rem, 3.5vw, 3.15rem);
}

.home-page .how-it-works-premium .steps-grid {
    margin-top: 2rem;
}

.home-page .how-it-works-premium .container::after,
.home-page .success-panel::after,
.home-page .video-panel::after,
.home-page .faq-panel::after {
    content: '';
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(60, 160, 193, 0.22), rgba(63, 160, 60, 0.45), rgba(60, 160, 193, 0.22)) !important;
    pointer-events: none;
}

.home-page .success-panel::before,
.home-page .video-panel::before,
.home-page .faq-panel::before,
.home-page .video-frame-glow {
    display: none !important;
}

.home-page .success-panel,
.home-page .video-panel,
.home-page .faq-panel,
.home-page .contact-panel {
    backdrop-filter: blur(3px);
}

.home-page .step-card,
.home-page .how-kpi,
.home-page .success-summary-item,
.home-page .success-row,
.home-page .video-proof-item,
.home-page .faq-highlight-item,
.home-page .faq-accordion-shell,
.home-page .faq-visual,
.home-page .accordion-item,
.home-page .contact-form-card,
.home-page .contact-link,
.home-page .contact-visual {
    background: var(--harmony-card-bg) !important;
    border: 1px solid var(--harmony-card-border) !important;
    box-shadow: var(--harmony-card-shadow) !important;
    border-radius: 18px;
}

.home-page .step-card:hover,
.home-page .success-row:hover,
.home-page .accordion-item:hover {
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.home-page .success-row.podium-gold {
    border-color: rgba(183, 136, 23, 0.34) !important;
    box-shadow: 0 18px 34px rgba(191, 145, 28, 0.2) !important;
}

.home-page .success-row.podium-silver {
    border-color: rgba(100, 116, 139, 0.28) !important;
    box-shadow: 0 16px 31px rgba(100, 116, 139, 0.16) !important;
}

.home-page .success-row.podium-bronze {
    border-color: rgba(155, 97, 64, 0.28) !important;
    box-shadow: 0 16px 30px rgba(146, 94, 60, 0.17) !important;
}

.home-page .success-row.podium-gold .success-rank {
    color: #5a3b03;
    background: linear-gradient(135deg, #ffe89b, #f4c955);
    border-color: rgba(172, 120, 14, 0.42);
    box-shadow: 0 10px 18px rgba(173, 126, 11, 0.24);
}

.home-page .success-row.podium-silver .success-rank {
    color: #334155;
    background: linear-gradient(135deg, #f8fafc, #d4dde7);
    border-color: rgba(100, 116, 139, 0.32);
    box-shadow: 0 8px 16px rgba(100, 116, 139, 0.18);
}

.home-page .success-row.podium-bronze .success-rank {
    color: #713b1d;
    background: linear-gradient(135deg, #f7ddcb, #d69e74);
    border-color: rgba(124, 58, 30, 0.34);
    box-shadow: 0 8px 16px rgba(124, 58, 30, 0.18);
}

.home-page .meta-item,
.home-page .faq-badges span,
.home-page .step-pill,
.home-page .badge-soft {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.13);
}

@media (max-width: 992px) {
    .home-page .how-it-works-premium .container,
    .home-page .success-panel,
    .home-page .video-panel,
    .home-page .faq-panel,
    .home-page .contact-panel {
        border-radius: 28px;
    }
}

@media (max-width: 768px) {
    .home-page .how-it-works-premium .container,
    .home-page .success-panel,
    .home-page .video-panel,
    .home-page .faq-panel,
    .home-page .contact-panel {
        border-radius: 22px;
        padding: 1.2rem;
    }

    .home-page .ticker-wrap {
        padding: 0.75rem 0;
    }

    .home-page .ticker-shell {
        width: min(1320px, calc(100% - 1.2rem));
        border-radius: 22px;
        padding: 0.58rem 0.44rem 0.45rem;
    }

    .home-page .video-panel::after,
    .home-page .how-it-works-premium .container::after,
    .home-page .faq-panel::after,
    .home-page .contact-panel::before {
        left: 0.8rem;
        right: 0.8rem;
    }
}

/* Trends Section */
.trends-section {
    background: var(--bg-light);
    padding: 4rem 0;
}

.trend-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.trend-info h4 {
    margin: 0;
}

.trend-stat {
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- Inner Pages Styles --- */

/* Forms & Inputs */
.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Stepper Wizard */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.stepper-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.stepper-item.active .step-counter {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.stepper-item.completed .step-counter {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
}

.stepper-item.active .step-name {
    color: var(--text-color);
    font-weight: 700;
}

.wizard-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Sidebar Layout */
.layout-grid-sidebar {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .layout-grid-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Sidebar & Filters */
.sidebar .card {
    position: sticky;
    top: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Complaint Line Styles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-success-light {
    background-color: #dcfce7 !important;
}

.bg-warning-light {
    background-color: #fef9c3 !important;
}

.text-success {
    color: #166534 !important;
}

.text-warning {
    color: #854d0e !important;
}

/* Sticky Top */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.bg-white {
    background-color: white !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.rounded {
    border-radius: 14px !important;
}

.rounded-circle {
    border-radius: 999px !important;
}

img.rounded,
img.rounded-circle {
    display: block;
    object-fit: cover;
}

.border-bottom {
    border-bottom: 1px solid #e2e8f0;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Fix for layout shifting: Ensure html/body take full height */
html,
body {
    height: 100%;
    width: 100%;
}

/* --- Login Page --- */
.login-page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #eef3f8 0%, #f5f8fb 100%);
}

.login-shell {
    flex: 1;
    min-height: 0;
    display: flex;
}

.login-page .premium-footer {
    margin-top: 0;
}

.login-split-left {
    width: 40%;
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-split-right {
    width: 60%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .login-shell {
        display: block;
    }

    .login-split-left {
        display: none;
    }

    .login-split-right {
        width: 100%;
    }
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.split-content {
    position: relative;
    z-index: 2;
    padding: 3rem;
    max-width: 500px;
}

.split-deco-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -100px;
    left: -100px;
}

/* --- Company Profile --- */
.company-header {
    margin-bottom: 2rem;
}

.company-logo-large {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-link {
    padding: 1rem 0;
    margin-right: 2rem;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-link:hover,
.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-1 {
    grid-column: span 1;
}

.ms-auto {
    margin-left: auto;
}

.text-end {
    text-align: right;
}

.fw-bold {
    font-weight: 700;
}

/* --- Maintenance Page Styles --- */
.maintenance-body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    font-family: var(--font-body);
    overflow: hidden;
    /* Prevent scrolling */
    position: fixed;
    /* Lock position to prevent shifting */
    top: 0;
    left: 0;
}

.maintenance-body .bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.maintenance-body .blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: moveBlob 25s infinite alternate;
}

.maintenance-body .blob-1 {
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--primary-light);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.maintenance-body .blob-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--secondary-color);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -10s;
}

@keyframes moveBlob {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 30px) rotate(10deg);
    }
}

.maintenance-body .content-wrapper {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    width: 95%;
    align-items: center;
    min-height: 600px;
}

.maintenance-body .visual-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 700px;
}

.maintenance-body .video-mask-container {
    position: relative;
    width: 380px;
    height: 680px;
    z-index: 2;
}

.maintenance-body .floating-item {
    position: absolute;
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    object-fit: cover;
    animation: floatSimple 6s ease-in-out infinite;
}

.maintenance-body .avatar-1 {
    top: 15%;
    left: -40px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    animation-delay: 0s;
}

.maintenance-body .avatar-2 {
    bottom: 20%;
    right: -30px;
    width: 110px;
    height: 110px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 1.5s;
}

.maintenance-body .avatar-3 {
    bottom: 50%;
    right: -50px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation-delay: 2.5s;
}

.maintenance-body .deco-star {
    top: 5%;
    right: 20px;
    font-size: 3rem;
    color: #FFD700;
    position: absolute;
    z-index: 3;
    animation: spinFloat 8s infinite linear;
}

@keyframes floatSimple {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes spinFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.maintenance-body .text-content {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 1);
    position: relative;
    text-align: left;
    max-width: 550px;
    margin: 0 auto;
}

.maintenance-body .logo-container img {
    height: 40px;
    margin-bottom: 2rem;
}

.maintenance-body h1 {
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-color);
}

.maintenance-body .highlight-text {
    background: linear-gradient(135deg, var(--start-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.maintenance-body p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.maintenance-body .info-box {
    background: rgba(60, 160, 193, 0.08);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: inline-block;
    border-left: 5px solid var(--primary-color);
}

@media (max-width: 992px) {
    .maintenance-body .content-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        padding: 2rem 0;
    }

    .maintenance-body .visual-container {
        height: 500px;
        order: 1;
    }

    .maintenance-body .video-mask-container {
        width: 280px;
        height: 500px;
    }

    .maintenance-body .text-content {
        text-align: center;
        order: 2;
        padding: 2rem;
    }

    .maintenance-body .info-box {
        margin: 0 auto 2rem;
    }

    .maintenance-body .info-box {
        margin: 0 auto 2rem;
    }
}

/* --- FANCY UPGRADES --- */

/* Animated Gradient Text */
.animated-gradient {
    background-size: 200% auto !important;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Countdown Styles */
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    text-align: center;
}

.count-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.count-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pulse Animation for Active Status */
@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Newsletter Input Focus */
.newsletter-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(60, 160, 193, 0.15);
    background: white;
}

#modal-corporate-login .modal-side {
    background:
        radial-gradient(circle at 14% 8%, rgba(86, 130, 255, 0.2), transparent 34%),
        radial-gradient(circle at 88% 88%, rgba(63, 160, 60, 0.2), transparent 42%),
        linear-gradient(150deg, #111d34 0%, #1a2a48 100%);
}

.auth-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 14px);
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    padding: 0.54rem 0.96rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 2200;
}

.auth-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.dashboard-page {
    background: var(--bg-light);
}

.dashboard-main {
    padding-top: 126px;
    padding-bottom: 4.2rem;
}

.dashboard-shell {
    display: grid;
    gap: 1rem;
}

.dashboard-banner {
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at 6% 12%, rgba(60, 160, 193, 0.12), transparent 34%),
        radial-gradient(circle at 94% 2%, rgba(63, 160, 60, 0.13), transparent 32%),
        rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1rem;
}

.dashboard-banner h1 {
    margin: 0.42rem 0 0.62rem;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.dashboard-banner p {
    margin: 0;
    max-width: 58ch;
    color: rgba(15, 23, 42, 0.7);
}

.dashboard-banner-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
    align-content: start;
}

.dashboard-kpi {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    padding: 0.75rem 0.8rem;
    display: grid;
    gap: 0.14rem;
}

.dashboard-kpi strong {
    font-size: 1.28rem;
    line-height: 1;
    color: #0f172a;
}

.dashboard-kpi span {
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.58);
    font-weight: 700;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.case-detail-layout {
    grid-template-columns: minmax(250px, 0.32fr) minmax(0, 1fr);
}

.dashboard-side,
.dashboard-main-panel {
    display: grid;
    gap: 0.72rem;
    align-content: start;
}

.dashboard-content-pane {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at 6% 10%, rgba(60, 160, 193, 0.09), transparent 36%),
        radial-gradient(circle at 92% 6%, rgba(63, 160, 60, 0.08), transparent 34%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    padding: 1rem;
    display: grid;
    gap: 0.84rem;
}

.corporate-dashboard-page .dashboard-content-pane.is-tier-locked {
    position: relative;
    overflow: hidden;
}

.corporate-dashboard-page .dashboard-content-pane.is-tier-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(15, 23, 42, 0.08);
    pointer-events: none;
}

.corporate-dashboard-page .dashboard-content-pane.is-tier-locked > * {
    pointer-events: none;
    user-select: none;
    filter: blur(1.5px) saturate(0.74);
    opacity: 0.48;
}

.case-detail-meta {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.52rem;
}

.case-detail-meta p {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.72);
}

.case-detail-page .team-thread {
    max-height: 460px;
}

.dashboard-card {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    padding: 1rem;
}

.dashboard-profile {
    display: grid;
    gap: 0.92rem;
}

.dashboard-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(60, 160, 193, 0.18), rgba(63, 160, 60, 0.2));
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.dashboard-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.dashboard-avatar.has-image img {
    display: block;
}

.dashboard-avatar.has-image [data-user-initials],
.dashboard-avatar.has-image [data-profile-initials],
.dashboard-avatar.has-image [data-corp-initials] {
    opacity: 0;
}

.dashboard-avatar.dashboard-avatar-xl {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
}

.dashboard-profile-head h2 {
    margin: 0;
    font-size: 1.26rem;
    line-height: 1.08;
}

.dashboard-profile-head p {
    margin: 0.22rem 0 0;
    color: rgba(15, 23, 42, 0.6);
    font-size: 0.88rem;
}

.corp-plan-badge {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(248, 250, 252, 0.94);
    color: rgba(15, 23, 42, 0.7);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.3rem 0.62rem;
}

.corp-plan-badge.is-basic {
    border-color: rgba(153, 27, 27, 0.24);
    background: rgba(254, 242, 242, 0.92);
    color: #991b1b;
}

.corp-plan-badge.is-pro {
    border-color: rgba(29, 78, 216, 0.24);
    background: rgba(219, 234, 254, 0.9);
    color: #1e3a8a;
}

.corp-plan-badge.is-enterprise {
    border-color: rgba(180, 83, 9, 0.26);
    background: rgba(255, 247, 237, 0.92);
    color: #92400e;
}

.dashboard-nav {
    display: grid;
    gap: 0.48rem;
}

.dashboard-nav-link {
    display: block;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.86);
    color: rgba(15, 23, 42, 0.74);
    border-radius: 12px;
    padding: 0.58rem 0.74rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.dashboard-nav-link.is-active {
    color: #0f172a;
    border-color: rgba(60, 160, 193, 0.34);
    background: linear-gradient(140deg, rgba(60, 160, 193, 0.14), rgba(63, 160, 60, 0.14));
}

.dashboard-nav-link:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    border-style: dashed;
}

.dashboard-note {
    margin-top: 0.66rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: #f8fafc;
    padding: 0.7rem;
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.7);
}

.dashboard-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.56rem;
}

.dashboard-panel-head h2 {
    margin: 0;
    font-size: 1.44rem;
    line-height: 1.1;
}

.dashboard-count {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    padding: 0.36rem 0.68rem;
    font-size: 0.76rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.66);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.9));
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.panel-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    padding: 0.42rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: rgba(255, 255, 255, 0.84);
}

.panel-tab-btn {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    color: rgba(15, 23, 42, 0.72);
    border-radius: 10px;
    padding: 0.5rem 0.72rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.panel-tab-btn.is-active {
    color: #0f172a;
    border-color: rgba(60, 160, 193, 0.34);
    background: linear-gradient(135deg, rgba(60, 160, 193, 0.16), rgba(63, 160, 60, 0.14));
}

.panel-tab-pane {
    display: grid;
    gap: 0.72rem;
    align-content: start;
}

.panel-tab-pane[hidden] {
    display: none !important;
}

.case-list,
.corp-case-list {
    display: grid;
    gap: 0.82rem;
}

.case-item,
.corp-case-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at 0% 0%, rgba(60, 160, 193, 0.08), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    padding: 0.88rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.case-item::after,
.corp-case-item::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(60, 160, 193, 0.86), rgba(63, 160, 60, 0.86));
    opacity: 0.78;
}

.case-item:hover,
.corp-case-item:hover {
    transform: translateY(-2px);
    border-color: rgba(60, 160, 193, 0.34);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.case-item[hidden],
.corp-case-item[hidden] {
    display: none !important;
}

.case-head,
.corp-case-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.58rem;
}

.case-head h3,
.corp-case-head h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.case-meta,
.corp-case-meta {
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.56);
    margin-top: 0.14rem;
    font-weight: 600;
}

.db-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.58rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.db-status.active {
    color: #0f4c81;
    background: #e0f2fe;
}

.db-status.resolved {
    color: #166534;
    background: #dcfce7;
}

.db-status.review {
    color: #92400e;
    background: #fef3c7;
}

.db-status.waiting {
    color: #334155;
    background: #e2e8f0;
}

.case-summary,
.corp-summary {
    margin: 0 0 0.62rem;
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.91rem;
}

.case-progress {
    display: grid;
    gap: 0.34rem;
}

.case-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.56);
    font-weight: 700;
}

.case-progress-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.34);
    overflow: hidden;
}

.case-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(60, 160, 193, 0.9), rgba(63, 160, 60, 0.9));
}

.case-foot,
.corp-case-foot {
    margin-top: 0.72rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.case-foot small,
.corp-case-foot small {
    font-size: 0.76rem;
    color: rgba(15, 23, 42, 0.55);
    font-weight: 700;
}

.corp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.corp-badge {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(15, 23, 42, 0.68);
    padding: 0.28rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.corp-disclaimer {
    border-left: 4px solid rgba(60, 160, 193, 0.62);
    padding: 0.92rem;
    border-radius: 14px;
    background: rgba(224, 242, 254, 0.6);
}

.corp-disclaimer h3 {
    margin: 0 0 0.36rem;
    font-size: 1.02rem;
}

.corp-disclaimer p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(15, 23, 42, 0.72);
}

.corp-policy-list {
    margin: 0.66rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.corp-policy-list li {
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.72);
    padding-left: 0.9rem;
    position: relative;
}

.corp-policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--start-color), var(--end-color));
}

.corp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.btn-sm {
    min-height: 34px;
    padding: 0.42rem 0.74rem;
    border-radius: 11px;
    font-size: 0.8rem;
    line-height: 1.1;
}

.corp-message-card form {
    display: grid;
    gap: 0.55rem;
}

.corp-message-card label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.7);
}

.corp-message-card input,
.corp-message-card textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    color: #0f172a;
    padding: 0.68rem 0.8rem;
}

.corp-message-card textarea {
    min-height: 100px;
    resize: vertical;
}

.corp-message-card input:focus,
.corp-message-card textarea:focus {
    outline: none;
    border-color: rgba(60, 160, 193, 0.5);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.12);
}

.corp-note-result {
    min-height: 1.3rem;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.62);
}

.corp-note-result.is-success {
    color: #166534;
}

.corp-note-result.is-error {
    color: #991b1b;
}

.dashboard-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.profile-studio-head {
    display: flex;
    align-items: center;
    gap: 0.86rem;
    margin-bottom: 0.8rem;
}

.avatar-upload-actions {
    display: grid;
    gap: 0.46rem;
    align-content: start;
}

.avatar-upload-actions small {
    color: rgba(15, 23, 42, 0.55);
    font-size: 0.74rem;
    font-weight: 700;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.56rem;
    margin-bottom: 0.62rem;
}

.profile-form-field {
    display: grid;
    gap: 0.34rem;
    margin: 0;
}

.profile-form-field.profile-form-field-wide {
    grid-column: 1 / -1;
}

.profile-form-field span {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.68);
}

.profile-form-field input,
.profile-form-field select,
.profile-form-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.88rem;
    padding: 0.64rem 0.72rem;
}

.profile-form-field textarea {
    min-height: 92px;
    resize: vertical;
}

.profile-form-field input:focus,
.profile-form-field select:focus,
.profile-form-field textarea:focus {
    outline: none;
    border-color: rgba(60, 160, 193, 0.54);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.13);
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.profile-detail-block {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.8);
    padding: 0.7rem;
    display: grid;
    gap: 0.54rem;
}

.profile-detail-block h3 {
    margin: 0;
    font-size: 0.98rem;
}

.profile-toggle-grid {
    display: grid;
    gap: 0.38rem;
}

.profile-toggle {
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: #ffffff;
    padding: 0.48rem 0.56rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.76);
    font-weight: 700;
}

.profile-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #2c8a9e;
    flex-shrink: 0;
}

.dashboard-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.62rem;
    flex-wrap: wrap;
}

.compact-checkbox {
    margin: 0;
    width: auto;
}

.compact-checkbox .checkbox-label-text {
    font-size: 0.8rem;
}

.form-result {
    min-height: 1.3rem;
    margin: 0.52rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.62);
}

.form-result.is-success {
    color: #166534;
}

.form-result.is-error {
    color: #991b1b;
}

.support-form-grid {
    display: grid;
    gap: 0.62rem;
}

.team-thread {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background:
        linear-gradient(165deg, rgba(247, 250, 252, 0.96), rgba(255, 255, 255, 0.98)),
        repeating-linear-gradient(45deg, rgba(60, 160, 193, 0.035) 0 12px, rgba(63, 160, 60, 0.03) 12px 24px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    padding: 0.84rem;
    display: flex;
    flex-direction: column;
    gap: 0.56rem;
    max-height: 360px;
    overflow: auto;
}

.case-detail-page .team-thread {
    border-radius: 20px;
    border-color: rgba(15, 23, 42, 0.12);
    background:
        radial-gradient(circle at 88% 14%, rgba(63, 160, 60, 0.08), transparent 32%),
        radial-gradient(circle at 8% 88%, rgba(60, 160, 193, 0.1), transparent 35%),
        linear-gradient(160deg, rgba(247, 250, 252, 0.94), rgba(255, 255, 255, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    padding: 0.9rem;
}

.team-message {
    max-width: min(84%, 520px);
    border-radius: 15px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0.6rem 0.48rem;
    display: grid;
    gap: 0.22rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.team-message.user {
    align-self: flex-end;
    border-top-right-radius: 8px;
    border-color: rgba(45, 144, 182, 0.34);
    background: linear-gradient(140deg, rgba(220, 252, 231, 0.98), rgba(186, 230, 253, 0.9));
}

.team-message.team {
    align-self: flex-start;
    border-top-left-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
}

.team-message-head {
    display: flex;
    align-items: center;
    gap: 0.38rem;
}

.team-message-head strong {
    font-size: 0.74rem;
    color: rgba(15, 23, 42, 0.74);
    font-weight: 700;
}

.team-message p,
.team-message-text {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.78);
    line-height: 1.42;
    white-space: pre-wrap;
    word-break: break-word;
}

.team-message-attachment {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.9);
    padding: 0.2rem 0.48rem;
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.68);
    font-weight: 700;
}

.team-message.user .team-message-attachment {
    border-color: rgba(45, 144, 182, 0.28);
    background: rgba(255, 255, 255, 0.76);
}

.team-message-meta {
    font-size: 0.68rem;
    color: rgba(15, 23, 42, 0.52);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.team-message.user .team-message-meta {
    text-align: right;
}

.case-chat-form {
    margin-top: 0.15rem;
}

.case-chat-composer {
    display: flex;
    align-items: flex-end;
    gap: 0.44rem;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    padding: 0.34rem 0.4rem 0.36rem 0.62rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.case-chat-composer:focus-within {
    border-color: rgba(60, 160, 193, 0.56);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.12), 0 12px 26px rgba(15, 23, 42, 0.08);
}

.case-chat-composer textarea {
    width: 100%;
    min-height: 54px;
    max-height: 132px;
    resize: none;
    border: 0;
    background: transparent;
    padding: 0.42rem 0.16rem 0.34rem 0;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #0f172a;
}

.case-chat-composer textarea::placeholder {
    color: rgba(15, 23, 42, 0.48);
}

.case-chat-composer textarea:focus {
    outline: none;
}

.case-chat-attach-btn,
.case-chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #ffffff;
    color: rgba(15, 23, 42, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.case-chat-attach-btn:hover,
.case-chat-send-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(60, 160, 193, 0.58);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.case-chat-attach-btn svg,
.case-chat-send-btn svg {
    width: 18px;
    height: 18px;
}

.case-chat-attach-btn svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.case-chat-send-btn {
    color: #ffffff;
    border-color: rgba(40, 146, 118, 0.54);
    background: linear-gradient(135deg, #3c9fc1, #3fa03c);
    box-shadow: 0 12px 22px rgba(40, 146, 118, 0.3);
}

.case-chat-send-btn svg path {
    fill: currentColor;
    stroke: none;
}

.case-chat-send-btn.is-ready {
    transform: translateY(-1px);
}

.case-chat-send-btn:disabled {
    cursor: not-allowed;
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(226, 232, 240, 0.9);
    box-shadow: none;
    color: rgba(15, 23, 42, 0.34);
    transform: none;
}

.case-chat-file-preview {
    margin: 0.06rem 0 0;
    border-radius: 11px;
    border: 1px dashed rgba(60, 160, 193, 0.46);
    background: rgba(240, 249, 255, 0.9);
    padding: 0.36rem 0.52rem;
    font-size: 0.76rem;
    color: rgba(15, 23, 42, 0.7);
    font-weight: 700;
}

.case-chat-form .form-result {
    margin-top: 0.26rem;
}

.carevar-inbox-widget {
    position: fixed;
    right: 1rem;
    bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.62rem));
    z-index: 1040;
    width: min(860px, calc(100vw - 2rem));
    display: grid;
    gap: 0.62rem;
    pointer-events: none;
}

.carevar-inbox-widget[hidden] {
    display: none !important;
}

.carevar-inbox-toggle {
    pointer-events: auto;
    width: fit-content;
    min-height: 54px;
    margin-left: auto;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    color: #0f172a;
    display: inline-grid;
    grid-template-columns: 34px auto 34px;
    align-items: center;
    gap: 0.46rem;
    padding: 0.4rem 0.78rem 0.4rem 0.5rem;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.carevar-inbox-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(60, 160, 193, 0.42);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.carevar-inbox-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.22), 0 18px 34px rgba(15, 23, 42, 0.18);
}

.carevar-inbox-widget.is-open .carevar-inbox-toggle {
    border-color: rgba(60, 160, 193, 0.48);
    background: linear-gradient(160deg, rgba(240, 249, 255, 0.98), rgba(236, 253, 245, 0.95));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.carevar-inbox-toggle-icon {
    grid-column: 1;
    justify-self: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(60, 160, 193, 0.2), rgba(63, 160, 60, 0.22));
    color: rgba(15, 23, 42, 0.76);
}

.carevar-inbox-widget.is-open .carevar-inbox-toggle-icon {
    background: linear-gradient(135deg, rgba(60, 160, 193, 0.24), rgba(63, 160, 60, 0.26));
}

.carevar-inbox-toggle-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.carevar-inbox-toggle-icon path {
    fill: currentColor;
    stroke: none;
}

.carevar-inbox-toggle-label {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1;
}

.carevar-inbox-badge {
    grid-column: 3;
    justify-self: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(22, 101, 52, 0.32);
    background: linear-gradient(135deg, rgba(187, 247, 208, 0.98), rgba(74, 222, 128, 0.96));
    display: inline-grid;
    place-items: center;
    padding: 0 0.34rem;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #166534;
    box-shadow: 0 6px 12px rgba(34, 197, 94, 0.2);
}

.carevar-inbox-panel {
    pointer-events: auto;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(240, 249, 255, 0.95));
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.22);
    padding: 0.8rem;
    backdrop-filter: blur(8px);
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0;
    overflow: hidden;
    max-height: min(690px, calc(100vh - 8rem));
    max-height: min(690px, calc(100dvh - 8rem));
}

.carevar-inbox-panel[hidden] {
    display: none !important;
}

.carevar-inbox-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.72rem;
    margin-bottom: 0.72rem;
}

.carevar-inbox-title-stack {
    display: grid;
    gap: 0.08rem;
}

.carevar-inbox-panel-head h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #0f172a;
}

.carevar-inbox-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.carevar-inbox-panel-head a {
    margin-top: 0.08rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #1f7a93;
    border-radius: 999px;
    border: 1px solid rgba(60, 160, 193, 0.32);
    background: rgba(224, 242, 254, 0.66);
    padding: 0.2rem 0.58rem;
}

.carevar-inbox-panel-head a:hover {
    border-color: rgba(60, 160, 193, 0.48);
    background: rgba(186, 230, 253, 0.72);
}

.carevar-inbox-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.94);
    color: rgba(15, 23, 42, 0.66);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carevar-inbox-close svg {
    width: 14px;
    height: 14px;
}

.carevar-inbox-close path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.carevar-inbox-close:hover {
    border-color: rgba(239, 68, 68, 0.44);
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.74);
}

.carevar-inbox-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 0.72rem;
    height: 100%;
    min-height: 0;
    max-height: none;
}

.carevar-inbox-list-view,
.carevar-inbox-chat {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.96));
    padding: 0.62rem;
    min-height: 0;
}

.carevar-inbox-list-view {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.52rem;
}

.carevar-inbox-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.carevar-inbox-list-head strong {
    font-size: 0.76rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.72);
}

.carevar-inbox-list-count {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(60, 160, 193, 0.34);
    background: rgba(224, 242, 254, 0.72);
    font-size: 0.7rem;
    font-weight: 800;
    color: #145b72;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.42rem;
}

.carevar-inbox-search {
    display: flex;
    align-items: center;
    gap: 0.36rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.28rem 0.42rem;
}

.carevar-inbox-search svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.carevar-inbox-search path {
    fill: none;
    stroke: rgba(15, 23, 42, 0.5);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carevar-inbox-search input {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.74rem;
    color: #0f172a;
    line-height: 1.3;
}

.carevar-inbox-search input:focus {
    outline: none;
}

.carevar-inbox-list {
    display: grid;
    gap: 0.42rem;
    min-height: 0;
    overflow: auto;
    padding-right: 0.14rem;
}

.carevar-inbox-item {
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: inherit;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.95));
    padding: 0.46rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.46rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.carevar-inbox-item:hover {
    transform: translateY(-1px);
    border-color: rgba(60, 160, 193, 0.42);
    box-shadow: 0 12px 22px rgba(60, 160, 193, 0.15);
}

.carevar-inbox-item:focus-visible {
    outline: none;
    border-color: rgba(60, 160, 193, 0.58);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.15), 0 12px 24px rgba(60, 160, 193, 0.16);
}

.carevar-inbox-item.is-selected {
    border-color: rgba(60, 160, 193, 0.52);
    background: linear-gradient(145deg, rgba(232, 245, 255, 0.98), rgba(220, 252, 231, 0.95));
    box-shadow: 0 14px 24px rgba(60, 160, 193, 0.2);
}

.carevar-inbox-item-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: linear-gradient(145deg, rgba(226, 232, 240, 0.9), rgba(203, 213, 225, 0.86));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(15, 23, 42, 0.7);
}

.carevar-inbox-item-avatar[data-state='open'] {
    background: linear-gradient(145deg, rgba(186, 230, 253, 0.86), rgba(187, 247, 208, 0.84));
    border-color: rgba(34, 197, 94, 0.34);
    color: #115e59;
}

.carevar-inbox-item-avatar[data-state='closed'] {
    background: linear-gradient(145deg, rgba(226, 232, 240, 0.92), rgba(203, 213, 225, 0.88));
    border-color: rgba(100, 116, 139, 0.38);
    color: #475569;
}

.carevar-inbox-item-main {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.carevar-inbox-item-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.42rem;
}

.carevar-inbox-item-row strong {
    font-size: 0.74rem;
    color: #0f172a;
    line-height: 1.2;
}

.carevar-inbox-item-row small {
    font-size: 0.64rem;
    color: rgba(15, 23, 42, 0.5);
    font-weight: 800;
    white-space: nowrap;
}

.carevar-inbox-item-text {
    font-size: 0.7rem;
    color: rgba(15, 23, 42, 0.64);
    line-height: 1.32;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carevar-inbox-item-sub {
    font-size: 0.67rem;
    color: rgba(15, 23, 42, 0.52);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carevar-inbox-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.34rem;
    margin-top: 0.06rem;
}

.carevar-inbox-item-meta em,
.carevar-inbox-item-meta i {
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.52);
}

.carevar-inbox-item-meta em.is-open {
    color: #166534;
}

.carevar-inbox-item-meta em.is-closed {
    color: #475569;
}

.carevar-inbox-item-meta b {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(22, 101, 52, 0.35);
    background: linear-gradient(135deg, rgba(187, 247, 208, 0.96), rgba(74, 222, 128, 0.94));
    color: #166534;
    font-size: 0.62rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
}

.carevar-inbox-chat {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.54rem;
}

.carevar-inbox-panel.is-compact .carevar-inbox-layout {
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
    max-height: none;
}

[data-inbox-list-view][hidden],
[data-inbox-chat-view][hidden],
.carevar-inbox-chat[hidden] {
    display: none !important;
}

.carevar-inbox-chat-head {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.carevar-inbox-back {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: rgba(15, 23, 42, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.carevar-inbox-back svg {
    width: 16px;
    height: 16px;
}

.carevar-inbox-back path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carevar-inbox-back:hover {
    border-color: rgba(60, 160, 193, 0.46);
    color: #1d6d93;
    background: rgba(224, 242, 254, 0.7);
}

.carevar-inbox-chat-target-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carevar-inbox-chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: linear-gradient(145deg, rgba(186, 230, 253, 0.86), rgba(187, 247, 208, 0.84));
    color: #0f766e;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carevar-inbox-chat-avatar[data-state='closed'] {
    background: linear-gradient(145deg, rgba(226, 232, 240, 0.92), rgba(203, 213, 225, 0.9));
    color: #475569;
}

.carevar-inbox-chat-avatar[data-state='locked'] {
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.92), rgba(224, 231, 255, 0.9));
    border-color: rgba(30, 64, 175, 0.34);
    color: #1e3a8a;
}

.carevar-inbox-chat-target-wrap span:last-child {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.carevar-inbox-chat-head strong {
    font-size: 0.76rem;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carevar-inbox-chat-head small {
    font-size: 0.66rem;
    color: rgba(15, 23, 42, 0.52);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carevar-inbox-chat-head a {
    font-size: 0.66rem;
    font-weight: 800;
    color: #1f7a93;
    border-radius: 999px;
    border: 1px solid rgba(60, 160, 193, 0.3);
    background: rgba(224, 242, 254, 0.62);
    padding: 0.16rem 0.54rem;
    white-space: nowrap;
}

.carevar-inbox-chat-thread {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background:
        linear-gradient(165deg, rgba(247, 250, 252, 0.96), rgba(255, 255, 255, 0.98)),
        repeating-linear-gradient(45deg, rgba(60, 160, 193, 0.04) 0 12px, rgba(63, 160, 60, 0.03) 12px 24px);
    padding: 0.56rem;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    min-height: 0;
    overflow: auto;
}

.carevar-inbox-chat-empty {
    margin: 0;
    border-radius: 10px;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    padding: 0.56rem;
    font-size: 0.74rem;
    color: rgba(15, 23, 42, 0.56);
    font-weight: 600;
}

.carevar-inbox-chat-message {
    max-width: min(88%, 520px);
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.46rem 0.56rem 0.42rem;
    display: grid;
    gap: 0.2rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.carevar-inbox-chat-message.user {
    align-self: flex-end;
    border-top-right-radius: 7px;
    border-color: rgba(40, 146, 118, 0.36);
    background: linear-gradient(145deg, rgba(220, 252, 231, 0.98), rgba(186, 230, 253, 0.92));
}

.carevar-inbox-chat-message.team {
    align-self: flex-start;
    border-top-left-radius: 7px;
}

.carevar-inbox-chat-sender {
    font-size: 0.68rem;
    color: rgba(15, 23, 42, 0.68);
    font-weight: 800;
}

.carevar-inbox-chat-message p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.38;
    color: rgba(15, 23, 42, 0.76);
    white-space: pre-wrap;
    word-break: break-word;
}

.carevar-inbox-chat-attachment {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(60, 160, 193, 0.3);
    background: rgba(224, 242, 254, 0.72);
    padding: 0.16rem 0.42rem;
    font-size: 0.66rem !important;
    color: rgba(15, 23, 42, 0.72) !important;
    font-weight: 700;
}

.carevar-inbox-chat-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.52);
}

.carevar-inbox-chat-message.team .carevar-inbox-chat-meta {
    justify-content: flex-start;
}

.carevar-inbox-chat-meta span {
    color: #1f7a93;
}

.carevar-inbox-chat-form {
    display: grid;
    gap: 0.24rem;
}

.carevar-inbox-widget.is-tier-locked .carevar-inbox-search {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.5);
    background: rgba(248, 250, 252, 0.88);
    opacity: 0.9;
}

.carevar-inbox-widget.is-tier-locked .carevar-inbox-search input {
    cursor: not-allowed;
}

.carevar-inbox-widget.is-tier-locked [data-inbox-list],
.carevar-inbox-widget.is-tier-locked [data-inbox-chat-thread] {
    pointer-events: none;
    user-select: none;
}

.carevar-inbox-tier-lock-note {
    margin: 0;
    border-radius: 10px;
    border: 1px solid rgba(30, 64, 175, 0.24);
    background: rgba(219, 234, 254, 0.52);
    padding: 0.5rem 0.56rem;
    font-size: 0.7rem;
    color: rgba(30, 64, 175, 0.9);
    font-weight: 700;
    line-height: 1.3;
}

.carevar-inbox-tier-lock-preview {
    display: grid;
    gap: 0.34rem;
    filter: blur(6px);
    opacity: 0.62;
    pointer-events: none;
}

.carevar-inbox-tier-lock-item,
.carevar-inbox-tier-lock-line {
    display: block;
    width: 100%;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: linear-gradient(130deg, rgba(226, 232, 240, 0.86), rgba(203, 213, 225, 0.82));
}

.carevar-inbox-tier-lock-item {
    height: 66px;
}

.carevar-inbox-tier-lock-preview-thread {
    margin-bottom: 0.24rem;
}

.carevar-inbox-tier-lock-line {
    height: 40px;
    max-width: 92%;
}

.carevar-inbox-tier-lock-line:nth-child(2) {
    max-width: 78%;
    margin-left: auto;
}

.carevar-inbox-tier-lock-line.is-short {
    max-width: 68%;
}

.carevar-inbox-chat-form.is-tier-locked .carevar-inbox-chat-compose {
    border-style: dashed;
    border-color: rgba(153, 27, 27, 0.28);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(254, 242, 242, 0.88));
}

.carevar-inbox-chat-form.is-tier-locked .carevar-inbox-chat-result {
    color: #991b1b;
}

.carevar-inbox-chat-compose {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-end;
    gap: 0.4rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.34rem;
}

.carevar-inbox-chat-form textarea {
    width: 100%;
    min-height: 52px;
    max-height: 136px;
    resize: none;
    border: 0;
    border-radius: 12px;
    background: transparent;
    padding: 0.42rem 0.5rem;
    font-family: inherit;
    font-size: 0.78rem;
    color: #0f172a;
    line-height: 1.38;
}

.carevar-inbox-chat-form textarea:focus {
    outline: none;
}

.carevar-inbox-chat-compose:focus-within {
    border-color: rgba(60, 160, 193, 0.48);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.12);
}

.carevar-inbox-chat-form textarea:disabled {
    background: rgba(241, 245, 249, 0.25);
    color: rgba(15, 23, 42, 0.5);
}

.carevar-inbox-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(40, 146, 118, 0.5);
    background: linear-gradient(135deg, #2f9bc1, #2f9f6f);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carevar-inbox-chat-send svg {
    width: 16px;
    height: 16px;
}

.carevar-inbox-chat-send path {
    fill: currentColor;
}

.carevar-inbox-chat-send:disabled {
    cursor: not-allowed;
    border-color: rgba(148, 163, 184, 0.44);
    background: rgba(226, 232, 240, 0.9);
    color: rgba(15, 23, 42, 0.36);
}

.carevar-inbox-chat-result {
    margin-top: 0 !important;
    min-height: 1rem;
    font-size: 0.72rem;
}

.carevar-inbox-empty {
    margin: 0;
    border-radius: 12px;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    padding: 0.72rem;
    font-size: 0.76rem;
    color: rgba(15, 23, 42, 0.58);
    font-weight: 700;
}

@media (max-width: 980px) {
    .carevar-inbox-widget {
        width: min(760px, calc(100vw - 1.4rem));
        right: 0.72rem;
        bottom: max(0.72rem, calc(env(safe-area-inset-bottom) + 0.52rem));
    }

    .carevar-inbox-panel {
        max-height: min(660px, calc(100vh - 7.4rem));
        max-height: min(660px, calc(100dvh - 7.4rem));
    }
}

@media (max-width: 860px) {
    .carevar-inbox-widget {
        width: min(460px, calc(100vw - 1.2rem));
    }

    .carevar-inbox-panel {
        max-height: min(640px, calc(100vh - 7rem));
        max-height: min(640px, calc(100dvh - 7rem));
    }
}

.approval-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.48rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.approval-pill.pending {
    color: #92400e;
    background: rgba(251, 191, 36, 0.17);
    border-color: rgba(217, 119, 6, 0.35);
}

.approval-pill.approved {
    color: #166534;
    background: rgba(74, 222, 128, 0.16);
    border-color: rgba(22, 163, 74, 0.32);
}

.approval-pill.rejected {
    color: #991b1b;
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(220, 38, 38, 0.34);
}

.story-list-wrap {
    margin-top: 0.72rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 0.72rem;
}

.story-list-wrap h3 {
    margin: 0 0 0.46rem;
    font-size: 1rem;
}

.story-list {
    display: grid;
    gap: 0.48rem;
}

.story-item {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.8);
    padding: 0.62rem 0.68rem;
}

.story-item h4 {
    margin: 0 0 0.24rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.story-item-head {
    display: flex;
    justify-content: space-between;
    gap: 0.42rem;
    align-items: flex-start;
}

.story-item p {
    margin: 0;
    font-size: 0.82rem;
}

.story-review-note {
    margin-top: 0.34rem !important;
    font-size: 0.76rem !important;
    color: rgba(15, 23, 42, 0.58);
    font-weight: 700;
}

.story-item-meta {
    margin-top: 0.42rem;
    display: flex;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.story-item-meta span {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.22rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.62);
    background: #ffffff;
}

.story-empty {
    border-radius: 12px;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    color: rgba(15, 23, 42, 0.58);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.74rem;
}

.moderation-queue {
    display: grid;
    gap: 0.58rem;
}

.moderation-item {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92));
    padding: 0.66rem 0.7rem;
    display: grid;
    gap: 0.42rem;
}

.moderation-item-head {
    display: flex;
    justify-content: space-between;
    gap: 0.42rem;
    align-items: center;
}

.moderation-item-head strong {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.68);
}

.moderation-item-head span {
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.52);
    font-weight: 700;
}

.moderation-item h4 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.28;
}

.moderation-item p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.68);
}

.moderation-actions {
    display: flex;
    gap: 0.46rem;
    flex-wrap: wrap;
}

.journey-card {
    margin-top: 0.06rem;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.56rem;
}

.journey-item {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.9));
    padding: 0.62rem;
}

.journey-item strong {
    display: block;
    margin-bottom: 0.24rem;
    font-size: 0.82rem;
    color: #0f172a;
}

.journey-item p {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.64);
}

.corp-kpi-sub {
    margin-top: 0.22rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.48);
}

.corp-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.62rem;
}

.corp-insight-card {
    border-radius: 15px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.64rem 0.68rem;
}

.corp-insight-card strong {
    display: block;
    margin-bottom: 0.12rem;
    color: #0f172a;
    font-size: 1.1rem;
}

.corp-insight-card span {
    display: block;
    color: rgba(15, 23, 42, 0.62);
    font-size: 0.76rem;
    font-weight: 700;
}

.corp-insight-bar {
    margin-top: 0.42rem;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.3);
    overflow: hidden;
}

.corp-insight-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(60, 160, 193, 0.9), rgba(63, 160, 60, 0.9));
}

.corp-tier-lock-gate {
    border: 1px solid rgba(30, 64, 175, 0.2);
    background:
        radial-gradient(circle at 6% 6%, rgba(59, 130, 246, 0.16), transparent 36%),
        radial-gradient(circle at 92% 10%, rgba(34, 197, 94, 0.14), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
    display: grid;
    gap: 0.78rem;
}

.corp-tier-lock-head {
    display: grid;
    gap: 0.32rem;
}

.corp-tier-lock-pill {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    background: rgba(219, 234, 254, 0.9);
    color: #1e40af;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
}

.corp-tier-lock-head h2 {
    margin: 0;
    font-size: 1.42rem;
    line-height: 1.1;
}

.corp-tier-lock-gate p {
    margin: 0;
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.92rem;
}

.corp-tier-lock-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.44rem;
}

.corp-tier-lock-list li {
    position: relative;
    padding-left: 1.1rem;
    color: rgba(15, 23, 42, 0.76);
    font-size: 0.86rem;
    font-weight: 600;
}

.corp-tier-lock-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(22, 163, 74, 0.9));
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.corp-tier-lock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.58rem;
}

.corp-case-list .btn.is-locked-link {
    border-color: rgba(30, 64, 175, 0.28);
    background: rgba(219, 234, 254, 0.88);
    color: #1e3a8a;
}

.corp-message-card form {
    gap: 0.62rem;
}

.corp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.56rem;
}

.corp-message-card select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    color: #0f172a;
    padding: 0.68rem 0.8rem;
}

.corp-message-card select:focus {
    outline: none;
    border-color: rgba(60, 160, 193, 0.5);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.12);
}

.corp-case-item {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.corp-case-item:hover {
    transform: translateY(-1px);
}

.corp-case-item.is-selected {
    border-color: rgba(60, 160, 193, 0.38);
    box-shadow: 0 16px 30px rgba(60, 160, 193, 0.16);
}

.corp-activity-list {
    display: grid;
    gap: 0.54rem;
}

.corp-activity-item {
    border-radius: 13px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.86);
    padding: 0.56rem 0.62rem;
}

.corp-activity-item strong {
    display: block;
    margin-bottom: 0.22rem;
    font-size: 0.82rem;
    color: #0f172a;
}

.corp-activity-item p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.66);
}

.corp-activity-meta {
    margin-top: 0.34rem;
    display: flex;
    justify-content: space-between;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.corp-activity-meta span {
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.58);
    font-weight: 700;
}

.corp-activity-empty {
    border-radius: 12px;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    padding: 0.72rem;
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.58);
    font-weight: 600;
}

.notification-list {
    display: grid;
    gap: 0.56rem;
}

.notification-item {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.9);
    padding: 0.64rem 0.7rem;
}

.notification-item.is-unread {
    border-color: rgba(60, 160, 193, 0.42);
    box-shadow: 0 10px 20px rgba(60, 160, 193, 0.14);
    background: linear-gradient(145deg, rgba(240, 249, 255, 0.95), rgba(236, 253, 245, 0.9));
}

.notification-head {
    display: flex;
    justify-content: space-between;
    gap: 0.54rem;
    margin-bottom: 0.32rem;
    align-items: flex-start;
}

.notification-head strong {
    font-size: 0.86rem;
    color: #0f172a;
}

.notification-head span {
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.56);
    font-weight: 700;
}

.notification-item p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.7);
}

.notification-foot {
    margin-top: 0.46rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.notification-foot small {
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.62);
    font-weight: 700;
}

.compact-summary-card {
    margin-top: 0.72rem;
    padding: 0.8rem;
}

.compact-summary-card .dashboard-panel-head h3 {
    margin: 0;
    font-size: 1.06rem;
}

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

.compact-kpis .dashboard-kpi {
    padding: 0.64rem;
}

.corp-ops-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.68rem;
}

.corp-ops-metric {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.9);
    padding: 0.56rem;
    display: grid;
    gap: 0.14rem;
}

.corp-ops-metric strong {
    font-size: 1.1rem;
    line-height: 1;
    color: #0f172a;
}

.corp-ops-metric span {
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.6);
    font-weight: 700;
}

.template-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.72rem;
}

.template-quick-btn {
    border: 1px solid rgba(60, 160, 193, 0.24);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(224, 242, 254, 0.6), rgba(220, 252, 231, 0.52));
    color: #0f172a;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 0.58rem 0.64rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.story-item .btn.btn-sm {
    padding: 0.34rem 0.54rem;
}

.header .btn-staff-link {
    border-color: rgba(29, 78, 216, 0.36);
    color: #1d4ed8;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(239, 246, 255, 0.72));
}

.header .btn-staff-link:hover {
    border-color: rgba(29, 78, 216, 0.62);
    color: #1e3a8a;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.96), rgba(191, 219, 254, 0.74));
}

.auth-entry-menu {
    position: relative;
}

.auth-entry-trigger {
    min-width: 132px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    font-weight: 700;
}

.auth-entry-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.auth-entry-dropdown {
    position: absolute;
    top: calc(100% + 0.56rem);
    right: 0;
    width: min(294px, calc(100vw - 1rem));
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(238, 246, 252, 0.96));
    box-shadow:
        0 22px 42px rgba(15, 23, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    padding: 0.46rem;
    display: grid;
    gap: 0.28rem;
    z-index: 1005;
    transform-origin: top right;
    animation: auth-entry-dropdown-in 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-entry-dropdown[hidden] {
    display: none !important;
}

@keyframes auth-entry-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

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

.auth-entry-item {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.48rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.86);
    color: rgba(15, 23, 42, 0.8);
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    padding: 0.6rem 0.72rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-entry-item::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(60, 160, 193, 0.92), rgba(63, 160, 60, 0.9));
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.12);
    flex: 0 0 auto;
    margin-left: auto;
}

.auth-entry-item:hover {
    border-color: rgba(60, 160, 193, 0.4);
    background: linear-gradient(145deg, rgba(224, 242, 254, 0.68), rgba(220, 252, 231, 0.46));
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.auth-entry-item-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}

.auth-entry-item-staff::after {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(14, 165, 233, 0.9));
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.auth-entry-menu.is-open .auth-entry-trigger {
    border-color: rgba(60, 160, 193, 0.62);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 247, 253, 0.95));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 8px 18px rgba(15, 23, 42, 0.11);
}

.auth-entry-menu.is-open .auth-entry-caret {
    transform: rotate(-135deg) translateY(1px);
}

.staff-banner {
    border-color: rgba(29, 78, 216, 0.17);
    background:
        radial-gradient(circle at 7% 10%, rgba(59, 130, 246, 0.16), transparent 36%),
        radial-gradient(circle at 94% 8%, rgba(34, 197, 94, 0.14), transparent 34%),
        rgba(255, 255, 255, 0.98);
}

.staff-auth-grid {
    gap: 0.78rem;
}

.staff-form {
    display: grid;
    gap: 0.56rem;
}

.staff-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.56rem;
}

.staff-role-card {
    border: 1px solid rgba(15, 23, 42, 0.11);
    border-radius: 14px;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.12), transparent 45%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    color: #0f172a;
    text-align: left;
    font-family: var(--font-body);
    padding: 0.78rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.staff-role-card strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.96rem;
}

.staff-role-card p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(15, 23, 42, 0.66);
}

.staff-role-card:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.34);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.11);
}

.staff-session-summary {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 0.72rem;
    background: rgba(248, 250, 252, 0.9);
}

.staff-session-summary p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(15, 23, 42, 0.7);
}

.staff-session-summary p + p {
    margin-top: 0.28rem;
}

.staff-chip-row {
    display: flex;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.staff-select-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    margin-right: 0.4rem;
}

.staff-select-inline input {
    width: 15px;
    height: 15px;
    accent-color: #0ea5e9;
}

.staff-select-inline span {
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.66);
    font-weight: 700;
}

.staff-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.52rem;
}

.staff-priority {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.52rem;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.staff-priority.is-high {
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.34);
    background: rgba(254, 226, 226, 0.92);
}

.staff-priority.is-medium {
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.34);
    background: rgba(254, 243, 199, 0.9);
}

.staff-priority.is-low {
    color: #14532d;
    border-color: rgba(22, 163, 74, 0.32);
    background: rgba(220, 252, 231, 0.92);
}

.staff-note-field {
    display: grid;
    gap: 0.34rem;
}

.staff-note-field > span {
    font-size: 0.74rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.64);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.staff-note-field input,
.staff-note-field select,
.staff-note-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    color: #0f172a;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.64rem 0.74rem;
}

.staff-note-field textarea {
    min-height: 90px;
    resize: vertical;
}

.staff-note-field input:focus,
.staff-note-field select:focus,
.staff-note-field textarea:focus {
    outline: none;
    border-color: rgba(60, 160, 193, 0.58);
    box-shadow: 0 0 0 3px rgba(60, 160, 193, 0.14);
}

.staff-history-list,
.staff-ticket-list,
.staff-task-list,
.staff-audit-list {
    display: grid;
    gap: 0.68rem;
}

.staff-history-item,
.staff-ticket-card,
.staff-task-card,
.staff-audit-item {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.11);
    background:
        radial-gradient(circle at 0% 0%, rgba(60, 160, 193, 0.08), transparent 34%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    padding: 0.72rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.staff-history-item strong,
.staff-ticket-card h4,
.staff-task-card h4,
.staff-audit-item h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.staff-history-item p,
.staff-ticket-card p,
.staff-task-card p,
.staff-audit-item p {
    margin: 0.28rem 0;
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.68);
}

.staff-ticket-head {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: flex-start;
}

.staff-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.2rem 0.54rem;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.staff-status-pill.is-success {
    color: #166534;
    border-color: rgba(22, 163, 74, 0.32);
    background: rgba(220, 252, 231, 0.9);
}

.staff-status-pill.is-warning {
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.34);
    background: rgba(254, 243, 199, 0.92);
}

.staff-status-pill.is-info {
    color: #1e3a8a;
    border-color: rgba(37, 99, 235, 0.32);
    background: rgba(219, 234, 254, 0.92);
}

.staff-status-pill.is-neutral {
    color: rgba(15, 23, 42, 0.72);
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(248, 250, 252, 0.94);
}

.staff-ticket-grid,
.staff-task-controls {
    margin-top: 0.52rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
}

.staff-update-list {
    margin-top: 0.54rem;
    display: grid;
    gap: 0.42rem;
}

.staff-update-item {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.86);
    padding: 0.52rem;
}

.staff-update-item strong {
    font-size: 0.78rem;
    color: #0f172a;
}

.staff-update-item p {
    margin: 0.2rem 0;
    font-size: 0.8rem;
}

.staff-update-item small {
    font-size: 0.7rem;
    color: rgba(15, 23, 42, 0.56);
    font-weight: 700;
}

.staff-audit-controls {
    display: flex;
    gap: 0.52rem;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 0.62rem;
}

.staff-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.58rem;
}

#auditAlertList {
    margin-top: 0.62rem;
}

.staff-snapshot-item {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.9);
    padding: 0.68rem;
    display: grid;
    gap: 0.14rem;
}

.staff-snapshot-item strong {
    font-size: 1.2rem;
    color: #0f172a;
}

.staff-snapshot-item span {
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.6);
    font-weight: 700;
}

.support-desk-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.38fr) minmax(0, 1fr);
    gap: 0.72rem;
    min-height: 620px;
}

.support-thread-column,
.support-chat-column {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 0.64rem;
    min-height: 0;
}

.support-thread-column {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.52rem;
}

.support-thread-toolbar {
    display: grid;
    gap: 0.44rem;
}

.support-thread-list {
    display: grid;
    gap: 0.42rem;
    max-height: 540px;
    overflow: auto;
    padding-right: 0.2rem;
}

.support-thread-item {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.11);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.84);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.52rem;
    align-items: start;
    padding: 0.52rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.support-thread-item:hover {
    transform: translateY(-1px);
    border-color: rgba(60, 160, 193, 0.36);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
}

.support-thread-item.is-active {
    border-color: rgba(60, 160, 193, 0.52);
    background: linear-gradient(150deg, rgba(224, 242, 254, 0.56), rgba(220, 252, 231, 0.36));
    box-shadow: 0 14px 24px rgba(60, 160, 193, 0.14);
}

.support-followup-item {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-followup-item:hover {
    transform: translateY(-1px);
    border-color: rgba(60, 160, 193, 0.38);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.11);
}

.support-followup-item.is-active {
    border-color: rgba(14, 165, 233, 0.42);
    background: linear-gradient(145deg, rgba(224, 242, 254, 0.62), rgba(220, 252, 231, 0.4));
}

.support-thread-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, rgba(60, 160, 193, 0.24), rgba(63, 160, 60, 0.24));
}

.support-thread-main {
    min-width: 0;
    display: grid;
    gap: 0.22rem;
}

.support-thread-row {
    display: flex;
    justify-content: space-between;
    gap: 0.48rem;
    align-items: baseline;
}

.support-thread-row strong {
    font-size: 0.82rem;
    color: #0f172a;
    line-height: 1.3;
}

.support-thread-row time {
    font-size: 0.68rem;
    color: rgba(15, 23, 42, 0.56);
    font-weight: 700;
    white-space: nowrap;
}

.support-thread-sub {
    font-size: 0.74rem;
    color: rgba(15, 23, 42, 0.62);
    font-weight: 700;
}

.support-thread-preview {
    font-size: 0.76rem;
    color: rgba(15, 23, 42, 0.72);
    line-height: 1.36;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.support-thread-meta {
    margin-top: 0.06rem;
    display: flex;
    gap: 0.34rem;
    align-items: center;
    flex-wrap: wrap;
}

.support-chat-column {
    display: grid;
    grid-template-rows: auto minmax(240px, 1fr) auto auto auto;
    gap: 0.52rem;
}

.support-chat-head {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.86);
    padding: 0.56rem;
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.support-chat-target {
    display: grid;
    gap: 0.14rem;
}

.support-chat-target strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.support-chat-target span {
    font-size: 0.78rem;
    color: rgba(15, 23, 42, 0.62);
}

.support-chat-status {
    display: flex;
    gap: 0.42rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.support-chat-status .staff-note-field {
    min-width: 188px;
}

.support-chat-messages {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.92)),
        repeating-linear-gradient(45deg, rgba(60, 160, 193, 0.03) 0 14px, rgba(63, 160, 60, 0.03) 14px 28px);
    padding: 0.7rem;
    display: grid;
    gap: 0.42rem;
    overflow: auto;
    min-height: 320px;
    max-height: 520px;
}

.support-chat-bubble {
    max-width: 82%;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    padding: 0.52rem 0.58rem;
    display: grid;
    gap: 0.2rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.support-chat-bubble.is-user,
.support-chat-bubble.is-corporate,
.support-chat-bubble.is-system {
    justify-self: start;
}

.support-chat-bubble.is-staff {
    justify-self: end;
    background: linear-gradient(145deg, rgba(220, 252, 231, 0.86), rgba(219, 234, 254, 0.82));
    border-color: rgba(59, 130, 246, 0.24);
}

.support-chat-bubble-head {
    display: flex;
    justify-content: space-between;
    gap: 0.52rem;
    align-items: baseline;
}

.support-chat-bubble-head strong {
    font-size: 0.74rem;
    color: rgba(15, 23, 42, 0.72);
}

.support-chat-bubble-head time {
    font-size: 0.66rem;
    color: rgba(15, 23, 42, 0.52);
    font-weight: 700;
    white-space: nowrap;
}

.support-chat-bubble p {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(15, 23, 42, 0.78);
    line-height: 1.42;
}

.support-quick-templates {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.support-template-btn {
    border: 1px solid rgba(60, 160, 193, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #1f6d94;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.28rem 0.54rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.support-template-btn:hover {
    border-color: rgba(60, 160, 193, 0.6);
    background: rgba(224, 242, 254, 0.68);
}

.support-template-btn:disabled {
    opacity: 0.54;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .dashboard-banner {
        grid-template-columns: 1fr;
    }

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

    .dashboard-section-grid,
    .corp-insights-grid,
    .corp-form-grid,
    .profile-detail-grid,
    .template-quick-grid,
    .corp-ops-metrics {
        grid-template-columns: 1fr;
    }

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

    .staff-ticket-grid,
    .staff-task-controls,
    .staff-snapshot-grid,
    .staff-quick-grid {
        grid-template-columns: 1fr;
    }

    .support-desk-layout {
        grid-template-columns: 1fr;
    }

    .support-thread-list {
        max-height: 280px;
    }

    .support-chat-messages {
        max-height: 420px;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding-top: 106px;
        padding-bottom: 3.2rem;
    }

    .dashboard-banner,
    .dashboard-card,
    .dashboard-content-pane {
        border-radius: 18px;
        padding: 0.86rem;
    }

    .dashboard-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .dashboard-banner-actions .btn,
    .corp-actions .btn {
        width: 100%;
    }

    .corp-tier-lock-head h2 {
        font-size: 1.2rem;
    }

    .corp-tier-lock-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .panel-tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .panel-tab-btn {
        white-space: nowrap;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-studio-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .team-message {
        max-width: 94%;
    }

    .team-message.user {
        margin-left: auto;
    }

    .case-chat-composer {
        gap: 0.34rem;
        padding: 0.3rem 0.32rem 0.3rem 0.52rem;
    }

    .case-chat-composer textarea {
        font-size: 0.88rem;
    }

    .case-chat-attach-btn,
    .case-chat-send-btn {
        width: 38px;
        height: 38px;
    }

    .carevar-inbox-widget {
        right: 0.72rem;
        bottom: max(0.72rem, calc(env(safe-area-inset-bottom) + 0.5rem));
        width: min(420px, calc(100vw - 1.2rem));
    }

    .carevar-inbox-toggle {
        min-height: 52px;
        padding: 0.38rem 0.72rem 0.38rem 0.5rem;
        grid-template-columns: 34px auto 34px;
    }

    .carevar-inbox-panel-actions {
        gap: 0.34rem;
    }

    .carevar-inbox-close {
        width: 28px;
        height: 28px;
    }

    .carevar-inbox-panel {
        padding: 0.58rem;
        border-radius: 20px;
        max-height: min(620px, calc(100vh - 6.8rem));
        max-height: min(620px, calc(100dvh - 6.8rem));
    }

    .carevar-inbox-layout {
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .carevar-inbox-list-view,
    .carevar-inbox-chat {
        padding: 0.52rem;
        border-radius: 14px;
    }

    .carevar-inbox-chat-thread {
        padding: 0.48rem;
    }

    .carevar-inbox-chat-form textarea {
        font-size: 0.76rem;
    }

    .moderation-actions .btn {
        width: 100%;
    }

    .staff-audit-controls .btn {
        width: 100%;
    }

    .support-chat-status {
        width: 100%;
    }

    .support-chat-status .staff-note-field {
        min-width: 100%;
    }

    .support-chat-bubble {
        max-width: 94%;
    }

    .auth-entry-dropdown {
        right: 0;
    }
}
