@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");

:root {
    --bg-top: #f2f7f9;
    --bg-bottom: #e9f1eb;
    --card: #ffffff;
    --card-alt: #f8fafc;
    --text: #102235;
    --muted: #49617a;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --warning: #a16207;
    --danger: #b91c1c;
    --border: #dbe7ef;
    --shadow: 0 18px 42px rgba(16, 34, 53, 0.08);
    --radius: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    background: linear-gradient(165deg, var(--bg-top), var(--bg-bottom));
    min-height: 100vh;
    position: relative;
}

.bg-shape {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.34;
}

.bg-shape-one {
    width: 280px;
    height: 280px;
    background: #7cc4b8;
    top: -70px;
    right: -50px;
}

.bg-shape-two {
    width: 340px;
    height: 340px;
    background: #9dc9e5;
    left: -120px;
    bottom: -80px;
}

.shell {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.site-header {
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(242, 247, 249, 0.82);
    position: sticky;
    top: 0;
    z-index: 30;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1rem;
}

.brand {
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.main-nav {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: var(--card);
}

.main-content {
    padding: 1.4rem 0 2rem;
    display: grid;
    gap: 1rem;
}

.site-footer {
    padding: 1rem 0 2rem;
    color: var(--muted);
}

h1,
h2 {
    margin: 0;
    line-height: 1.25;
}

p {
    margin: 0;
}

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

.tiny {
    font-size: 0.78rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.75rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    animation: card-enter 0.35s ease;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card {
    display: grid;
    gap: 0.9rem;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.clean-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    display: grid;
    gap: 0.38rem;
}

.actions,
.row-between {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.auth-card {
    max-width: 460px;
    margin: 1.4rem auto;
}

.stack {
    display: grid;
    gap: 0.75rem;
}

label {
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #fdfefe;
    border-radius: 10px;
    padding: 0.68rem 0.75rem;
    font: inherit;
    color: var(--text);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.28);
    outline-offset: 1px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.checkbox-row input {
    width: auto;
}

.btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.58rem 0.84rem;
    text-decoration: none;
    font-weight: 700;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-ghost {
    background: #f1f7f7;
    color: #184755;
    border-color: #d4e6e3;
}

.btn-warning {
    background: #fffaeb;
    color: #7c4a03;
    border-color: #f4dfab;
}

.btn-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.btn-wide {
    width: 100%;
}

.alert {
    border-radius: 11px;
    padding: 0.7rem 0.82rem;
    font-weight: 600;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.table-card {
    padding: 0.5rem;
}

.table-wrap {
    overflow-x: auto;
    width: 100%;
}

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

th,
td {
    text-align: left;
    padding: 0.72rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: 0.94rem;
}

th {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.table-actions form {
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.26rem 0.54rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-muted {
    background: #e2e8f0;
    color: #334155;
}

.subtle-box {
    border: 1px solid var(--border);
    background: var(--card-alt);
    border-radius: 11px;
    padding: 0.7rem;
    display: grid;
    gap: 0.35rem;
}

.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2.2rem 0.9rem;
    gap: 0.7rem;
}

.landing-card {
    display: grid;
    gap: 1rem;
}

.progress-pill {
    background: #e0f2fe;
    color: #0c4a6e;
    border: 1px solid #bae6fd;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.blog-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.95rem;
    background: #fcfeff;
    display: grid;
    gap: 0.6rem;
}

.blog-card h3 {
    margin: 0;
}

.home-blog-stack {
    display: grid;
    gap: 1rem;
}

.problog-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.problog-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #64748b;
}

.problog-tag {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
}

.problog-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
    line-height: 1.28;
}

.problog-content {
    margin-top: 1rem;
    display: grid;
    gap: 0.9rem;
}

.problog-content p {
    color: #334155;
    line-height: 1.78;
}

.article-layout {
    margin-top: 1.1rem;
    display: grid;
    gap: 1rem;
}

.article-main,
.article-side {
    gap: 1rem;
}

.article-main p,
.article-side p,
.faq-grid p {
    color: #334155;
    line-height: 1.78;
}

.article-box {
    padding: 1rem;
}

.faq-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.community-shell {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: grid;
    gap: 1rem;
}

.community-stats {
    display: inline-flex;
    gap: 0.7rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 700;
}

.community-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
}

.community-grid {
    display: grid;
    gap: 1rem;
}

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

.community-card {
    padding: 0.95rem;
}

.problog-subtitle {
    margin: 0.6rem 0 0;
    color: #0f172a;
    font-size: 1.08rem;
}

.problog-list {
    margin: 0;
    padding: 1rem;
    list-style: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 0.7rem;
}

.problog-list li {
    color: #334155;
    position: relative;
    padding-left: 1rem;
    line-height: 1.7;
}

.problog-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
}

.problog-list li strong {
    color: #0f172a;
}

.problog-note {
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
    border-left: 4px solid #10b981;
    border-radius: 10px;
    padding: 0.9rem;
    color: #065f46;
    font-weight: 600;
}

.problog-note-warn {
    background: linear-gradient(90deg, #fff7ed 0%, #ffffff 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.ad-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
}

.ad-slot {
    background: linear-gradient(170deg, #f8fbff, #ecf6ff);
    border: 1px dashed #b8c8dd;
    border-radius: 12px;
    padding: 0.85rem;
    color: #304a63;
}

.ad-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.countdown-box {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    font-weight: 700;
}

.metric-card h2 {
    margin-top: 0.25rem;
}

.not-found {
    max-width: 560px;
    margin: 1.5rem auto;
    text-align: center;
    display: grid;
    gap: 0.7rem;
}

code {
    background: #f1f5f9;
    border: 1px solid #dce7f4;
    border-radius: 8px;
    padding: 0.1rem 0.35rem;
    font-size: 0.88em;
}

@media (min-width: 720px) {
    .main-content {
        padding-top: 2rem;
    }

    .article-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
        align-items: start;
    }

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

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

    .card {
        padding: 1.45rem;
    }

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

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