:root {
    --bg: #f5f9ff;
    --bg-soft: #ebf3ff;
    --surface: #ffffff;
    --text: #0f2f5c;
    --text-soft: #4b6f99;
    --primary: #1968de;
    --primary-deep: #0d4fa8;
    --line: #cfe0fb;
    --line-strong: #a8c4ef;
    --shadow-md: 0 10px 22px rgba(17, 74, 145, 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 12% 0%, #eef5ff 0%, #f8fbff 43%, #ffffff 100%);
}

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

.shell {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

.container {
    width: min(900px, calc(100% - 40px));
    margin: 64px auto;
    padding: 28px;
    border: 1px solid #d8e7fc;
    border-radius: 14px;
    background: #fff;
}

.container.narrow {
    width: min(480px, calc(100% - 40px));
}

.landing-body {
    position: relative;
    overflow-x: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
}

.orb-a {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, #cde0ff 0%, rgba(205, 224, 255, 0) 68%);
    top: -40px;
    right: -80px;
}

.orb-b {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #d9ebff 0%, rgba(217, 235, 255, 0) 72%);
    left: -90px;
    top: 440px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #d9e7fd;
}

.nav-shell {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary-deep);
    letter-spacing: 0.01em;
}

.brand img {
    width: 34px;
    height: 34px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #2b5281;
    font-weight: 600;
}

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

.nav-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 700;
    transition: 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1f72eb 0%, #145ec9 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(23, 91, 185, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 14px 28px rgba(23, 91, 185, 0.35);
}

.btn-outline {
    background: #fff;
    border-color: var(--line-strong);
    color: #204d84;
}

.btn-soft {
    background: #ecf3ff;
    color: #1d4f8c;
}

.btn-lg {
    min-height: 48px;
    padding: 0 18px;
}

.btn-block {
    width: 100%;
    min-height: 46px;
}

.hero {
    padding: 92px 0 58px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 34px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1c4f90;
    font-weight: 700;
    font-size: 0.88rem;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.18rem);
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.hero-text {
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 1.03rem;
    line-height: 1.78;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-list {
    margin: 22px 0 0;
    padding-left: 19px;
    color: #2f5f95;
    line-height: 1.8;
    font-weight: 600;
}

.hero-art {
    background: linear-gradient(160deg, #f2f8ff 0%, #ffffff 90%);
    border: 1px solid #d8e7fc;
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow-md);
    transform: translateZ(0);
}

.hero-art img {
    width: 100%;
    height: auto;
    display: block;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 58px;
}

.metrics article {
    background: #fff;
    border: 1px solid #d5e5fb;
    border-radius: 14px;
    padding: 16px;
}

.metrics strong {
    display: block;
    font-size: 1.4rem;
    color: #1759b5;
}

.metrics span {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.95rem;
}

.section {
    padding: 66px 0;
}

.section-soft {
    background: linear-gradient(180deg, #f1f7ff 0%, #f8fbff 100%);
    border-top: 1px solid #dbe8fb;
    border-bottom: 1px solid #dbe8fb;
}

.section-head {
    margin-bottom: 22px;
}

.section-head h2,
.pricing-card h2,
.final-cta h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: #fff;
    border: 1px solid #d7e6fc;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(22, 73, 144, 0.06);
    contain: content;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
}

.feature-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

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

.product-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #d7e6fc;
    background: #fff;
    box-shadow: var(--shadow-md);
    contain: content;
}

.chip {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #1a539a;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-card h3 {
    margin: 0;
}

.product-card p {
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.product-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #315f96;
    line-height: 1.75;
    font-weight: 600;
}

.pricing-card {
    border: 1px solid #d4e3fb;
    border-radius: 18px;
    padding: 24px;
    background: #fff;
    box-shadow: var(--shadow-md);
    contain: content;
}

.pricing-card > p,
.pricing-card div > p {
    color: var(--text-soft);
    line-height: 1.7;
}

.price-boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.price-boxes > div {
    border: 1px solid #d5e5fb;
    border-radius: 12px;
    padding: 16px;
    background: #f8fbff;
}

.price-boxes h3 {
    margin: 0;
    font-size: 1rem;
}

.price {
    margin: 8px 0 0;
    font-size: 1.2rem;
    color: #1758b3;
    font-weight: 800;
}

.final-cta {
    text-align: center;
    background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
}

.final-cta p {
    color: var(--text-soft);
    line-height: 1.8;
    margin: 14px 0 22px;
}

.site-footer {
    border-top: 1px solid #dbe8fb;
    background: #fff;
}

.footer-shell {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.auth-page {
    min-height: 100vh;
    background: radial-gradient(circle at 15% 0%, #eaf3ff 0%, #f7fbff 43%, #ffffff 100%);
    display: grid;
    place-items: center;
    padding: 30px 20px;
}

.auth-shell {
    width: min(520px, 100%);
}

.auth-card {
    background: #fff;
    border: 1px solid #d8e7fc;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.auth-brand {
    margin-bottom: 12px;
}

.auth-card h1 {
    margin: 0;
}

.auth-sub {
    margin: 10px 0 18px;
    color: var(--text-soft);
    line-height: 1.7;
}

.auth-card label {
    display: block;
    margin-bottom: 7px;
    color: #244e82;
    font-weight: 700;
}

.auth-card input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbdcf8;
    border-radius: 10px;
    padding: 0 12px;
    margin-bottom: 14px;
    outline: none;
    transition: 0.2s ease;
}

.auth-card input:focus {
    border-color: #7ca9eb;
    box-shadow: 0 0 0 3px rgba(86, 139, 223, 0.2);
}

.auth-foot {
    margin: 12px 0 0;
    color: var(--text-soft);
}

.auth-foot a {
    color: #1657b1;
    font-weight: 700;
}

.auth-plan-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-plan-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d8e7fc;
    border-radius: 10px;
    background: #f7fbff;
    padding: 9px 10px;
    font-size: 0.92rem;
}

.auth-plan-item.muted {
    opacity: 0.7;
}

.auth-product-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.auth-product-tab {
    border: 1px solid #d6e6fd;
    border-radius: 12px;
    padding: 12px 12px;
    text-align: left;
    background: #f7fbff;
    color: #28558d;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.auth-product-tab strong {
    display: block;
    font-size: 0.98rem;
}

.auth-product-tab span {
    display: block;
    margin-top: 4px;
    font-size: 0.84rem;
    color: #557da9;
    line-height: 1.45;
}

.auth-product-tab:hover {
    border-color: #9bc0f4;
    background: #f0f7ff;
}

.auth-product-tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 119, 219, 0.25);
}

.auth-product-tab.is-active {
    border-color: #2c76e5;
    background: linear-gradient(180deg, #f5f9ff 0%, #eaf3ff 100%);
    box-shadow: 0 8px 16px rgba(38, 102, 197, 0.16);
    transform: translateY(-1px);
}

.auth-product-tab.is-active strong {
    color: #184b95;
}

.app-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f8ff;
}

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

.app-sidebar {
    border-right: 1px solid #d4e3fa;
    background: #fff;
    padding: 20px 16px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.app-brand img {
    width: 40px;
    height: 40px;
}

.app-brand strong {
    display: block;
}

.app-brand span {
    display: block;
    font-size: 0.83rem;
    color: #5d7fa9;
}

.app-nav {
    display: grid;
    gap: 8px;
}

.app-nav a {
    display: block;
    padding: 10px 11px;
    border-radius: 10px;
    color: #2d588e;
    font-weight: 700;
}

.app-nav a:hover {
    background: #eff5ff;
}

.app-nav a.is-active {
    background: #1a65d8;
    color: #fff;
}

.app-main {
    padding: 22px;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.app-topbar h1 {
    margin: 0;
    font-size: 1.55rem;
}

.app-topbar p {
    margin: 7px 0 0;
    color: #53759f;
}

.app-userbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #d6e5fc;
    border-radius: 12px;
    padding: 8px 10px;
}

.app-session {
    border-right: 1px solid #d6e5fc;
    padding-right: 10px;
}

.app-session span {
    display: block;
    font-size: 0.74rem;
    color: #6489b3;
}

.app-session strong {
    display: block;
    font-size: 0.86rem;
    color: #1f56a4;
}

.app-session strong.expired {
    color: #9b2f2f;
}

.app-usermeta strong {
    display: block;
    font-size: 0.92rem;
}

.app-usermeta span {
    display: block;
    font-size: 0.78rem;
    color: #6489b3;
}

.app-content {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.app-card {
    background: #fff;
    border: 1px solid #d7e5fb;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(23, 84, 167, 0.08);
    padding: 16px;
}

.app-card h3 {
    margin: 0 0 10px;
}

.app-kv-list {
    display: grid;
    gap: 8px;
}

.app-kv-list > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 10px;
    border: 1px solid #e1ecfd;
    border-radius: 10px;
    background: #f8fbff;
}

.app-kv-list span {
    color: #4a719f;
}

.app-kv-list strong {
    color: #1e4f90;
    text-align: right;
}

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

.app-card.stat span {
    display: block;
    color: #5a7da7;
    font-weight: 700;
}

.app-card.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 1.65rem;
    color: #1759b3;
}

.app-card.stat.stat-dashboard {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-color: #d0e3ff;
}

.app-dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(130deg, #f5f9ff 0%, #ffffff 56%, #f1f8ff 100%);
}

.app-dashboard-hero h3 {
    margin: 0 0 6px;
    font-size: 1.14rem;
}

.app-dashboard-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.app-smb-hero {
    background: linear-gradient(130deg, #f2f8ff 0%, #ffffff 55%, #edf6ff 100%);
    border-color: #cfe2ff;
}

.app-smb-kpi strong {
    color: #1658af;
}

.app-period-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.app-period-filter-label {
    color: #3a6194;
    font-weight: 800;
    font-size: 0.9rem;
}

.app-period-tabs {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-period-tab {
    min-height: 34px;
    border: 1px solid #c8dbf8;
    border-radius: 999px;
    padding: 0 14px;
    background: #f6faff;
    color: #2b5a90;
    font-weight: 700;
    cursor: pointer;
}

.app-period-tab:hover {
    background: #edf5ff;
    border-color: #b6d0f5;
}

.app-period-tab.is-active {
    background: linear-gradient(135deg, #1f72eb 0%, #145ec9 100%);
    border-color: #145ec9;
    color: #fff;
    box-shadow: 0 8px 16px rgba(26, 92, 184, 0.22);
}

.app-calendar-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.app-calendar-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.app-calendar-mode {
    display: inline-flex;
    gap: 8px;
}

.app-calendar-mode button,
.app-calendar-nav button {
    min-height: 34px;
    border: 1px solid #c8dbf8;
    border-radius: 999px;
    padding: 0 12px;
    background: #f7fbff;
    color: #2a5a92;
    font-weight: 700;
    cursor: pointer;
}

.app-calendar-mode button.is-active {
    background: linear-gradient(135deg, #1f72eb 0%, #145ec9 100%);
    border-color: #145ec9;
    color: #fff;
}

.app-calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-calendar-nav strong {
    min-width: 170px;
    text-align: center;
    color: #214f87;
    font-size: 0.94rem;
}

.app-calendar-board {
    margin-top: 10px;
}

.app-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.app-calendar-weekdays span {
    text-align: center;
    font-size: 0.84rem;
    color: #5a7da7;
    font-weight: 700;
}

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

.app-calendar-grid.is-week .app-calendar-day {
    min-height: 180px;
}

.app-calendar-day {
    min-height: 132px;
    width: 100%;
    border: 1px solid #d6e5fb;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.app-calendar-day:hover {
    border-color: #9ec2f3;
    box-shadow: 0 8px 16px rgba(23, 86, 167, 0.12);
    transform: translateY(-1px);
}

.app-calendar-day.is-outside {
    background: #f8fbff;
    opacity: 0.62;
}

.app-calendar-day.is-today {
    border-color: #1d69dc;
    box-shadow: inset 0 0 0 1px #1d69dc;
}

.app-calendar-day.has-events {
    background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.app-calendar-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-calendar-day-num {
    color: #214f87;
    font-weight: 800;
    font-size: 0.94rem;
}

.app-calendar-day-count {
    min-width: 20px;
    min-height: 20px;
    border-radius: 999px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f72eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.app-calendar-preview {
    display: grid;
    gap: 5px;
    margin-top: auto;
}

.app-calendar-preview-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 22px;
    border-radius: 8px;
    padding: 2px 7px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #1f4f89;
    background: #eaf3ff;
}

.app-calendar-preview-item.status-visited {
    background: #e8f9f1;
    color: #1e7754;
}

.app-calendar-preview-item.status-no_show {
    background: #fff3e8;
    color: #91511e;
}

.app-calendar-preview-item.status-canceled {
    background: #ffeef0;
    color: #993344;
}

.app-calendar-preview-more {
    color: #5b7fa9;
    font-size: 0.76rem;
    font-weight: 700;
}

.app-calendar-modal {
    width: min(560px, 100%);
}

.app-calendar-modal-list {
    max-height: 50vh;
    overflow: auto;
    display: grid;
    gap: 8px;
}

.app-calendar-modal-item {
    border: 1px solid #d7e6fc;
    border-radius: 10px;
    padding: 10px;
    background: #f8fbff;
}

.app-calendar-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.app-calendar-modal-head strong {
    color: #1e4f90;
}

.app-calendar-modal-item p {
    margin: 0;
    color: #355f92;
    line-height: 1.5;
}

.app-calendar-modal-item small {
    display: block;
    margin-top: 4px;
    color: #5a7ea8;
}

.app-calendar-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid #cde0fb;
    background: #ecf4ff;
    color: #24558f;
}

.app-calendar-status.status-visited {
    border-color: #bee8d1;
    background: #e9f9f1;
    color: #1e7a57;
}

.app-calendar-status.status-no_show {
    border-color: #f6d8bc;
    background: #fff4ea;
    color: #95511b;
}

.app-calendar-status.status-canceled {
    border-color: #f4ccd2;
    background: #fff0f3;
    color: #923344;
}

.app-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #cfe0fb;
    background: #eef5ff;
    color: #26548b;
    font-weight: 700;
    font-size: 0.8rem;
}

.app-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.app-chart {
    width: 100%;
    height: 300px;
}

.app-cards.app-cards-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.app-inline-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.app-inline-form.compact {
    gap: 6px;
}

.app-inline-form label {
    font-weight: 700;
    color: #2c578c;
}

.app-inline-form input,
.app-inline-form select,
.app-form-grid input,
.app-form-grid select,
.app-form-grid textarea,
.app-form-block input,
.app-form-block select,
.app-form-block textarea {
    min-height: 36px;
    border: 1px solid #c9dbf8;
    border-radius: 9px;
    padding: 0 10px;
    background: #fff;
}

.app-form-grid textarea,
.app-form-block textarea {
    min-height: 90px;
    padding: 10px;
    resize: vertical;
}

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

.app-form-grid label,
.app-form-block label {
    font-weight: 700;
    color: #2c578c;
}

.app-mini-grid {
    display: grid;
    gap: 10px;
}

.app-form-block {
    align-items: flex-end;
}

.app-action-stack {
    display: grid;
    gap: 6px;
}

.app-company-switch {
    margin-top: 12px;
}

.app-company-meta {
    margin: 10px 0 0;
    color: #496d9a;
    font-size: 0.9rem;
}

.app-table-wrap {
    overflow: auto;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

.app-table th,
.app-table td {
    border-bottom: 1px solid #e3edfc;
    padding: 10px 8px;
    font-size: 0.92rem;
    text-align: left;
    vertical-align: top;
}

.app-table thead th {
    background: #f7fbff;
    color: #355d90;
    position: sticky;
    top: 0;
    z-index: 1;
}

.app-table tbody tr {
    transition: background-color 0.15s ease;
}

.app-table tbody tr:hover {
    background: #f8fbff;
}

.app-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 10px;
    font-weight: 700;
}

.app-alert.success {
    background: #eaf9ef;
    border: 1px solid #bfe8cb;
    color: #1f7039;
}

.app-alert.error {
    background: #fff0f0;
    border: 1px solid #f3c7c7;
    color: #9b2f2f;
}

.app-muted {
    margin: 0 0 12px;
    color: #587ba5;
}

.app-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 57, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 80;
}

.app-modal-backdrop.is-open {
    display: flex;
}

.app-modal {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #cfe1fb;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(12, 42, 82, 0.22);
    padding: 18px;
}

.app-modal h3 {
    margin: 0;
}

.app-modal p {
    margin: 8px 0 10px;
    color: #567aa4;
}

.app-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .product-grid,
    .metrics,
    .price-boxes {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .app-calendar-toolbar {
        flex-direction: column;
    }

    .app-calendar-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .app-calendar-day {
        min-height: 118px;
    }
}

@media (max-width: 760px) {
    .main-nav {
        display: none;
    }

    .nav-shell {
        min-height: 70px;
    }

    .hero {
        padding-top: 68px;
    }

    .hero-copy h1 {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }

    .feature-grid,
    .product-grid,
    .metrics,
    .price-boxes {
        grid-template-columns: 1fr;
    }

    .auth-product-tabs {
        grid-template-columns: 1fr;
    }

    .footer-shell {
        min-height: auto;
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .orb-a,
    .orb-b {
        display: none;
    }

    .btn:hover {
        transform: none;
    }
}

html.perf-lite .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

html.perf-lite .bg-orb {
    display: none;
}

html.perf-lite .hero-art {
    transform: none !important;
}

/* =======================
   Admin Console
   ======================= */
.admin-body {
    background: linear-gradient(180deg, #eef4ff 0%, #f7faff 100%);
    color: #11325e;
}

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

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid #d7e6fc;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.admin-brand img {
    width: 40px;
    height: 40px;
}

.admin-brand strong {
    display: block;
    font-size: 1rem;
}

.admin-brand span {
    color: #4d709d;
    font-size: 0.86rem;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    padding: 11px 12px;
    border-radius: 10px;
    color: #2b5588;
    font-weight: 700;
}

.admin-nav a:hover {
    background: #ecf4ff;
}

.admin-nav a.is-active {
    background: #1765d8;
    color: #fff;
}

.admin-main {
    padding: 22px;
}

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

.admin-topbar h1 {
    margin: 0;
    font-size: 1.65rem;
}

.admin-topbar p {
    margin: 6px 0 0;
    color: #4f729b;
}

.admin-userbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #d7e6fc;
    border-radius: 12px;
    padding: 8px 10px;
}

.admin-usermeta strong {
    display: block;
    font-size: 0.92rem;
}

.admin-usermeta span {
    color: #6083ae;
    font-size: 0.8rem;
}

.admin-session {
    border-left: 1px solid #d7e6fc;
    padding-left: 10px;
}

.admin-session .label {
    display: block;
    font-size: 0.74rem;
    color: #5f84b1;
    font-weight: 700;
}

.admin-session strong {
    display: block;
    color: #1a57ab;
    font-size: 0.9rem;
    margin-top: 2px;
}

.admin-session strong.expired {
    color: #9b2f2f;
}

.admin-content {
    display: grid;
    gap: 14px;
}

.admin-card {
    background: #fff;
    border: 1px solid #d7e6fc;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(23, 84, 167, 0.08);
    padding: 16px;
}

.admin-card h3 {
    margin: 0 0 12px;
}

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

.admin-card.stat span {
    display: block;
    color: #577ca8;
    font-weight: 700;
}

.admin-card.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
    color: #1559b5;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-quick-links {
    display: grid;
    gap: 10px;
}

.admin-quick-links a {
    border: 1px solid #d6e7fd;
    background: #f7fbff;
    border-radius: 10px;
    padding: 10px;
    color: #24548a;
    font-weight: 700;
}

.admin-form label {
    display: block;
    margin-bottom: 7px;
    margin-top: 8px;
    font-weight: 700;
    color: #274f80;
}

.admin-form input,
.admin-form select,
.admin-inline-form input,
.admin-inline-form select {
    min-height: 38px;
    border: 1px solid #c7dbf8;
    border-radius: 9px;
    padding: 0 10px;
    background: #fff;
}

.admin-form input,
.admin-form select {
    width: 100%;
    margin-bottom: 8px;
}

.admin-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-inline-form.compact {
    gap: 6px;
}

.admin-module-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-module-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid #d2e2fb;
    background: #eef5ff;
    color: #2a5b92;
}

.admin-module-pill.is-on {
    border-color: #b8dfc8;
    background: #e9f8ef;
    color: #1d7140;
}

.admin-module-pill.is-off {
    border-color: #e7d4d8;
    background: #fdf2f4;
    color: #8d3a4b;
}

.admin-module-modal {
    width: min(680px, 100%);
}

.admin-module-setting-list {
    display: grid;
    gap: 10px;
}

.admin-module-setting-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #d8e7fc;
    border-radius: 12px;
    background: #f8fbff;
    padding: 10px 12px;
}

.admin-module-setting-copy strong {
    display: block;
    color: #1f4f89;
}

.admin-module-setting-copy span {
    display: block;
    margin-top: 4px;
    color: #5b7fa8;
    font-size: 0.84rem;
}

.admin-switch {
    position: relative;
    width: 54px;
    height: 30px;
    display: inline-block;
}

.admin-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid #d2e2fb;
    background: #e4ecf8;
    transition: 0.2s ease;
}

.admin-switch-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    left: 2px;
    top: 2px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(24, 70, 133, 0.25);
    transition: 0.2s ease;
}

.admin-switch input:checked + .admin-switch-slider {
    border-color: #1a66d9;
    background: linear-gradient(135deg, #1f72eb 0%, #145ec9 100%);
}

.admin-switch input:checked + .admin-switch-slider::before {
    transform: translateX(24px);
}

.admin-switch-state {
    min-width: 34px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #5b7fa8;
}

.admin-switch-state.is-on {
    color: #1b67da;
}

.admin-table-wrap {
    overflow: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid #e2ecfd;
    text-align: left;
    padding: 10px 8px;
    font-size: 0.92rem;
    vertical-align: top;
}

.admin-table thead th {
    color: #355e90;
    font-weight: 800;
    background: #f6faff;
}

.admin-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8f2ff;
    color: #1b4d8f;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-weight: 700;
}

.admin-alert.success {
    background: #eaf9ef;
    border: 1px solid #bfe8cb;
    color: #1f7039;
}

.admin-alert.error {
    background: #fff0f0;
    border: 1px solid #f3c7c7;
    color: #9b2f2f;
}

.permission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.permission-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border: 1px solid #d8e7fc;
    border-radius: 10px;
    padding: 8px;
    background: #f8fbff;
    font-size: 0.84rem;
}

.btn-sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
}

.admin-login-body {
    min-height: 100vh;
    background: radial-gradient(circle at 18% 0%, #e8f2ff 0%, #f6faff 52%, #ffffff 100%);
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.admin-login-wrap {
    width: min(460px, 100%);
}

.admin-login-card {
    background: #fff;
    border: 1px solid #d7e6fc;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(24, 80, 155, 0.13);
    padding: 22px;
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-login-brand img {
    width: 36px;
    height: 36px;
}

.admin-login-brand strong {
    display: block;
}

.admin-login-brand span {
    color: #567ba8;
    font-size: 0.84rem;
}

.admin-login-card h1 {
    margin: 0;
    font-size: 1.45rem;
}

.admin-login-card p {
    margin: 10px 0 16px;
    color: #52769f;
    line-height: 1.6;
}

.admin-back-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    color: #21528d;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 57, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 80;
}

.admin-modal-backdrop.is-open {
    display: flex;
}

.admin-modal {
    width: min(440px, 100%);
    background: #fff;
    border: 1px solid #cfe1fb;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(12, 42, 82, 0.22);
    padding: 18px;
}

.admin-modal h3 {
    margin: 0;
}

.admin-modal p {
    margin: 8px 0 10px;
    color: #567aa4;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

@media (max-width: 1080px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

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

@media (max-width: 820px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        border-right: 0;
        border-bottom: 1px solid #d4e3fa;
    }

    .app-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-userbox {
        width: 100%;
        flex-wrap: wrap;
    }

    .app-cards,
    .app-grid-two {
        grid-template-columns: 1fr;
    }

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

    .app-dashboard-hero {
        flex-direction: column;
    }

    .app-dashboard-tags {
        justify-content: flex-start;
    }

    .app-calendar-day {
        min-height: 102px;
        padding: 8px;
    }

    .app-calendar-grid.is-week .app-calendar-day {
        min-height: 150px;
    }

    .app-calendar-preview-item {
        font-size: 0.72rem;
    }

    .app-calendar-nav strong {
        min-width: 140px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-userbox {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-session {
        border-left: 0;
        padding-left: 0;
        margin-right: auto;
    }

    .admin-cards,
    .admin-grid-two,
    .permission-grid,
    .admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-module-setting-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}
