@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-main: #e8edf6;
    --bg-panel: #f6f8fc;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-strong: #ffffff;
    --ink-900: #1a2030;
    --ink-700: #38415b;
    --ink-500: #66708b;
    --brand-900: #23385f;
    --brand-700: #355890;
    --brand-600: #486ca3;
    --accent: #e7ba8d;
    --line: rgba(49, 70, 110, 0.2);
    --ok-bg: #eaf8ef;
    --ok-ink: #1a7140;
    --error-bg: #fdeeee;
    --error-ink: #a63a3a;
    --shadow: 0 20px 35px -26px rgba(17, 33, 61, 0.65);
    --content-max: 1220px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    height: 100%;
}

body {
    background:
        radial-gradient(circle at 12% 12%, rgba(122, 148, 193, 0.35), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(230, 191, 152, 0.22), transparent 26%),
        linear-gradient(180deg, #eef2f9 0%, #e4eaf4 100%);
    color: var(--ink-900);
    font-family: 'Sora', 'Trebuchet MS', sans-serif;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes riseFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    color: var(--brand-700);
    text-decoration: none;
}

a:hover {
    color: var(--brand-900);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    background: rgba(248, 250, 255, 0.85);
}

.shell {
    width: min(var(--content-max), calc(100% - 2.4rem));
    margin: 0 auto;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    padding: 0.95rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(20, 32, 56, 0.25);
    box-shadow: 0 12px 24px -18px rgba(16, 28, 52, 0.65);
    object-fit: cover;
}

.brand-copy {
    display: grid;
    gap: 0.15rem;
}

.brand-name {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--brand-900);
}

.brand-subtitle {
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-500);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.nav-item,
.btn,
button,
input[type='submit'] {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-card-strong);
    color: var(--ink-700);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 0.92rem;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.nav-item:hover,
.btn:hover,
button:hover,
input[type='submit']:hover {
    transform: translateY(-1px);
    border-color: rgba(52, 83, 136, 0.4);
    color: var(--brand-900);
}

.btn-primary,
.nav-item.primary,
button.primary,
input[type='submit'].primary {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
    border-color: transparent;
    color: #fff;
}

.btn-primary:hover,
.nav-item.primary:hover,
button.primary:hover,
input[type='submit'].primary:hover {
    color: #fff;
    border-color: transparent;
}

.btn.is-disabled {
    opacity: 0.56;
    cursor: not-allowed;
    pointer-events: none;
}

main {
    flex: 1;
    padding: 1.6rem 0 2.8rem;
}

.auth-page main {
    padding: 0.35rem 0 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #dfe6f2;
    margin-top: 0;
}

.footer-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    padding: 0.3rem 0;
}

.footer-line {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    white-space: nowrap;
    color: #4f658b;
    font-size: 0.8rem;
    line-height: 1;
}

.footer-line strong {
    color: #223d6a;
    font-weight: 800;
}

.footer-line a {
    color: #4a628f;
}

.footer-line a:hover {
    color: var(--brand-900);
}

.auth-page .site-footer {
    margin-top: auto;
}

.feedback {
    margin-bottom: 1rem;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 0.92rem;
}

.feedback.success {
    border-color: #b8e2c5;
    background: var(--ok-bg);
    color: var(--ok-ink);
}

.feedback.error {
    border-color: #efc2c2;
    background: var(--error-bg);
    color: var(--error-ink);
}

.feedback ul {
    margin: 0.45rem 0 0;
    padding-left: 1rem;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(54, 82, 129, 0.24);
    background:
        radial-gradient(circle at 14% 24%, rgba(140, 168, 213, 0.2), transparent 36%),
        linear-gradient(145deg, #f8fbff, #eef4fb);
    box-shadow: 0 24px 34px -30px rgba(18, 35, 64, 0.72);
    padding: 1.05rem 1.15rem;
    margin-bottom: 1rem;
}

.page-title {
    margin: 0;
    font-size: clamp(1.42rem, 2.2vw, 1.95rem);
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    line-height: 1.2;
    color: #203a66;
}

.page-subtitle {
    margin: 0.3rem 0 0;
    color: #5a6e91;
    font-size: 0.92rem;
}

.page-head .btn,
.page-head .nav-item {
    margin-top: 0.1rem;
}

.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.kpi-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(58, 86, 132, 0.2);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 24px -24px rgba(18, 35, 64, 0.74);
    padding: 0.75rem 0.82rem;
}

.kpi-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, #486ca3, #2a4674);
}

.kpi-card strong {
    display: block;
    margin-left: 0.15rem;
    color: #233d69;
    font-size: clamp(1rem, 2vw, 1.42rem);
    line-height: 1.15;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.kpi-card span {
    display: block;
    margin-top: 0.28rem;
    margin-left: 0.15rem;
    color: #5a6e91;
    font-size: 0.84rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    margin-bottom: 0.95rem;
    animation: riseFade 0.45s ease both;
}

.card.compact {
    padding: 0.9rem 1rem;
}

.grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.metric-card h2,
.metric-card p {
    margin: 0;
}

.metric-card h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--brand-900);
}

.metric-card p {
    margin-top: 0.25rem;
    color: var(--ink-500);
    font-size: 0.92rem;
}

p {
    margin: 0.45rem 0;
}

h2,
h3 {
    margin: 0 0 0.45rem;
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    color: var(--ink-900);
}

.muted {
    color: var(--ink-500);
}

.form-shell {
    max-width: 980px;
    width: 100%;
}

.auth-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 1rem 0 2rem;
}

.auth-card {
    width: min(640px, 100%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(44, 67, 105, 0.2);
    border-radius: 26px;
    box-shadow: 0 28px 40px -30px rgba(17, 33, 61, 0.75);
    overflow: hidden;
    animation: riseFade 0.5s ease both;
}

.auth-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(145deg, #364f7f, #263a62);
    color: #f5f7fc;
    padding: 1rem 1.2rem;
}

.auth-banner img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.auth-body {
    padding: 1.15rem 1.2rem 1.35rem;
}

.auth-body h1 {
    margin: 0;
    font-size: 1.45rem;
}

.auth-body .muted {
    margin-top: 0.28rem;
}

.form {
    margin-top: 0.95rem;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1rem 0 0.8rem;
    color: var(--ink-500);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.social-divider::before,
.social-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: rgba(66, 88, 131, 0.26);
}

.social-actions {
    display: grid;
    gap: 0.55rem;
}

.social-btn {
    text-align: center;
    border-radius: 14px;
    font-weight: 700;
    padding: 0.6rem 0.95rem;
}

.social-btn.google {
    background: #fff;
    border-color: rgba(65, 86, 132, 0.3);
    color: #2f3a53;
}

.social-btn.google:hover {
    background: #f4f8ff;
    color: #2f3a53;
}

.social-btn.linkedin {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #fff;
}

.social-btn.linkedin:hover {
    background: #08519a;
    border-color: #08519a;
    color: #fff;
}

label {
    display: block;
    margin-bottom: 0.28rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-700);
}

input,
textarea,
select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(61, 86, 136, 0.24);
    background: #fff;
    color: var(--ink-900);
    padding: 0.62rem 0.76rem;
    font: inherit;
    margin-bottom: 0.82rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(79, 117, 181, 0.22);
    border-color: rgba(73, 111, 178, 0.5);
}

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

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.95rem;
    color: var(--ink-700);
    font-size: 0.9rem;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.inline-form {
    display: inline;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.62rem;
    border: 1px solid transparent;
}

.status-pill.open {
    color: #1b6f4f;
    background: #e8f8ef;
    border-color: #bfe8d0;
}

.status-pill.closed {
    color: #8b3737;
    background: #fcecec;
    border-color: #efc4c4;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(64, 89, 136, 0.22);
    background: #fff;
}

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

th,
td {
    text-align: left;
    padding: 0.72rem;
    border-bottom: 1px solid rgba(64, 89, 136, 0.16);
    vertical-align: top;
    font-size: 0.9rem;
}

th {
    background: #f0f4fb;
    color: var(--brand-900);
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.table-wrap tr:last-child td {
    border-bottom: none;
}

.list {
    display: grid;
    gap: 0.85rem;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

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

.empty {
    text-align: center;
    padding: 1.5rem 1rem;
}

.empty strong {
    display: block;
    font-size: 1.08rem;
    margin-bottom: 0.38rem;
    color: var(--brand-900);
}

.guide-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    align-items: end;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
}

.guide-card h2 {
    font-size: 1.12rem;
}

.guide-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #edf3ff;
    border: 1px solid rgba(66, 90, 141, 0.24);
    color: #2f4f87;
    font-weight: 700;
}

.guide-content {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.guide-summary {
    font-size: 1.02rem;
    color: var(--ink-700);
    margin-bottom: 0.9rem;
}

.guide-text {
    color: var(--ink-900);
    line-height: 1.72;
    white-space: normal;
}

.guide-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.85rem;
}

.plan-card {
    position: relative;
}

.plan-card.active {
    border-color: rgba(31, 108, 67, 0.38);
    box-shadow: 0 18px 28px -24px rgba(18, 90, 57, 0.62);
}

.plan-price {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--brand-900);
    margin: 0.2rem 0 0.4rem;
}

.plan-warning {
    margin: 0.6rem 0;
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    background: #fff3df;
    border: 1px solid #f2d8a4;
    color: #835b13;
    font-size: 0.86rem;
}

.consulting-head {
    margin-top: 1.4rem;
}

.consulting-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.95rem;
}

.consulting-plan-card {
    background:
        radial-gradient(circle at 20% 18%, rgba(219, 245, 239, 0.66), transparent 44%),
        linear-gradient(165deg, #d8ede8, #c2dfd8);
    border: 1px solid rgba(45, 90, 98, 0.24);
    border-radius: 38px;
    padding: 1rem 1.05rem;
    box-shadow: 0 16px 26px -22px rgba(22, 59, 74, 0.65);
    animation: riseFade 0.5s ease both;
}

.consulting-plan-card h3 {
    margin: 0;
    font-size: 1.24rem;
    color: #164a53;
}

.consulting-audience {
    margin: 0.4rem 0 0.6rem;
    color: #1d3e45;
    font-size: 0.9rem;
}

.consulting-highlight-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 0.32rem;
    color: #17383f;
}

.consulting-highlight-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
}

.consulting-highlight-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #1d5e6a;
    font-weight: 700;
}

.consulting-metrics {
    margin-top: 0.7rem;
    border-top: 1px solid rgba(30, 82, 90, 0.2);
    padding-top: 0.55rem;
    display: grid;
    gap: 0.12rem;
}

.consulting-metrics span {
    font-size: 0.85rem;
    color: #1f4e56;
}

.consulting-metrics strong {
    font-size: 1.25rem;
    color: #12464f;
}

body.modal-open {
    overflow: hidden;
}

.objectives-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(21, 31, 51, 0.58);
    backdrop-filter: blur(2px);
}

.objectives-modal.is-hidden {
    display: none;
}

.objectives-modal-card {
    width: min(760px, 100%);
    position: relative;
    border: 1px solid rgba(49, 70, 110, 0.28);
    border-radius: 24px;
    background: linear-gradient(180deg, #fbfcff 0%, #f4f7fd 100%);
    box-shadow: 0 26px 42px -24px rgba(15, 28, 50, 0.62);
    overflow: hidden;
}

.objectives-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border-radius: 999px;
    padding: 0.35rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.objectives-modal-head {
    padding: 1.3rem 1.25rem 0.85rem;
    border-bottom: 1px solid rgba(49, 70, 110, 0.18);
    background: linear-gradient(145deg, #364f7f, #263a62);
    color: #f3f6ff;
    position: relative;
}

.objectives-modal-head h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
}

.objectives-modal-head p {
    margin: 0.35rem 0 0;
    color: rgba(236, 242, 255, 0.85);
}

.objectives-modal-list {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0.9rem;
}

.objective-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 0.6rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(58, 84, 131, 0.18);
    border-radius: 14px;
    padding: 0.62rem 0.7rem;
}

.objective-number {
    font-family: 'Space Grotesk', 'Sora', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--brand-900);
    line-height: 1;
}

.objective-item p {
    margin: 0;
    color: var(--ink-700);
}

.objectives-modal-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 1.25rem 1.2rem;
}

@media (max-width: 860px) {
    .grid.two-col {
        grid-template-columns: 1fr;
    }

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

    .brand {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bar {
        min-height: auto;
        padding: 0.45rem 0;
    }

    .footer-line {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .shell {
        width: calc(100% - 1rem);
    }

    .card {
        border-radius: 16px;
        padding: 0.95rem;
    }

    .auth-card {
        border-radius: 18px;
    }

    .auth-banner {
        padding: 0.85rem;
    }

    .auth-body {
        padding: 0.9rem;
    }

    .nav-item,
    .btn,
    button,
    input[type='submit'] {
        font-size: 0.82rem;
        padding: 0.45rem 0.72rem;
    }

    .objectives-modal-card {
        border-radius: 18px;
    }

    .objectives-modal-head,
    .objectives-modal-list,
    .objectives-modal-actions {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .objective-item {
        grid-template-columns: 48px 1fr;
    }

    .objective-number {
        font-size: 1.2rem;
    }
}
