/* =========================================================
   BlockGrow Main Stylesheet
   Cleaned version
   ========================================================= */

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f2e9;
    color: #233322;
    line-height: 1.5;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 18px;
}

/* ---------- Header ---------- */

.site-header {
    background: #244225;
    color: #fff3c4;
    padding: 0;
    border-bottom: 4px solid #f6d36b;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.brand,
.site-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f6d36b;
    text-decoration: none;
    font-weight: bold;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f6d36b;
    color: #244225;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.site-title {
    font-size: 23px;
}

.brand-text small {
    font-size: 12px;
    color: #fff3c4;
    font-weight: normal;
    margin-top: 3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: #fff3c4;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 9px 10px;
    border-radius: 8px;
}

.nav a:hover {
    background: rgba(246, 211, 107, 0.14);
    color: #ffffff;
}

.nav a.active {
    background: rgba(246, 211, 107, 0.18);
    color: #f6d36b;
}

.nav .nav-button {
    background: #f6d36b;
    color: #244225;
    padding: 10px 14px;
    border-radius: 8px;
}

.nav .nav-button:hover {
    background: #ffe58a;
    color: #244225;
}

/* Hide mobile toggle on desktop */
.nav-toggle,
.nav-toggle-label {
    display: none;
}

/* ---------- Cards / Layout ---------- */

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

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

.stat {
    font-size: 32px;
    font-weight: bold;
    color: #244225;
}

.small {
    color: #666;
    font-size: 14px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    border: none;
    background: #244225;
    color: #f6d36b;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: #1c351d;
}

.btn-secondary {
    background: #e7dcc0;
    color: #244225;
}

.btn-secondary:hover {
    background: #d8c99e;
}

/* ---------- Forms ---------- */

input,
select,
textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 6px;
    font-family: inherit;
    font-size: 15px;
}

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

label {
    display: block;
    margin-bottom: 14px;
    font-weight: bold;
}

.form-box {
    max-width: 650px;
    margin: 30px auto;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    background: #ffe1e1;
    color: #7a1515;
    margin-bottom: 16px;
}

.success {
    background: #def5dc;
    color: #1f5e25;
}

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(135deg, #244225, #416d3f);
    color: #fff3c4;
    border-radius: 18px;
    padding: 52px 34px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    color: #f6d36b;
    margin: 0 0 10px;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.05;
    margin: 0 0 18px;
}

.hero-text {
    font-size: 19px;
    line-height: 1.6;
    color: #fff8d9;
    margin-bottom: 24px;
}

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

/* ---------- Footer ---------- */

.site-footer {
    background: #1f351f;
    color: #fff3c4;
    margin-top: 44px;
    padding: 30px 24px 18px;
    border-top: 4px solid #f6d36b;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
}

.footer-brand,
.site-footer-inner > div:first-child {
    max-width: 560px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f6d36b;
    color: #244225;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.site-footer p {
    max-width: 560px;
    margin: 8px 0 0;
    color: #f4e7b1;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    color: #f6d36b;
    text-decoration: none;
    font-weight: bold;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-column h4 {
    margin: 0 0 6px;
    color: #f6d36b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a,
.footer-column span {
    color: #f4e7b1;
    text-decoration: none;
    font-size: 14px;
}

.footer-column a:hover {
    color: #f6d36b;
}

.site-footer-bottom {
    max-width: 1100px;
    margin: 20px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(246, 211, 107, 0.25);
    color: #e7dcc0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

/* ---------- Mobile ---------- */

@media (max-width: 850px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }

    .nav a {
        margin: 0;
    }

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

    .hero {
        padding: 34px 22px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .site-footer-inner {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .site-footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container {
        margin: 20px auto;
        padding: 0 14px;
    }

    .site-header-inner {
        padding: 14px;
    }

    .brand-text small {
        display: none;
    }

    .nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nav a {
        text-align: center;
        background: rgba(255,255,255,0.05);
    }

    .nav .nav-button {
        grid-column: span 2;
    }

    .hero h1 {
        font-size: 30px;
    }
}

.area-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.area-item {
    border: 1px solid #e2d8bd;
    border-radius: 12px;
    padding: 16px;
    background: #fbfaf5;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.area-item h3 {
    margin: 0 0 6px;
    color: #244225;
}

.area-item form {
    flex-shrink: 0;
}

@media (max-width: 750px) {
    .area-item {
        flex-direction: column;
    }
}

.task-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.task-actions form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-actions select {
    margin-top: 0;
}

@media (max-width: 750px) {
    .task-actions {
        width: 100%;
    }
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.dashboard-top-left {
    flex: 1;
}

.dashboard-profit-box {
    min-width: 230px;
    border-radius: 14px;
    padding: 18px;
    text-align: right;
    border: 2px solid;
}

.dashboard-profit-box .profit-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-profit-box strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.profit-breakdown {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.profit-good {
    background: #e7f7df;
    border-color: #5b9b45;
    color: #244225;
}

.profit-bad {
    background: #ffe6e1;
    border-color: #b94b38;
    color: #7a2115;
}

@media (max-width: 750px) {
    .dashboard-top {
        flex-direction: column;
    }

    .dashboard-profit-box {
        width: 100%;
        text-align: left;
    }
}

.advice-item {
    background: #fbfaf5;
    border-left: 5px solid #f6d36b;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
}

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

.recommendation-card {
    background: #fbfaf5;
    border: 1px solid #e2d8bd;
    border-radius: 14px;
    padding: 18px;
}

.recommendation-card h3 {
    margin: 0 0 10px;
    color: #244225;
}

.recommendation-card p {
    margin: 8px 0;
}

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

.admin-account-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-account-card {
    background: #fbfaf5;
    border: 1px solid #e2d8bd;
    border-radius: 14px;
    padding: 18px;
}

.admin-account-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.admin-account-header h3 {
    margin: 0 0 6px;
    color: #244225;
}

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

.admin-meta-grid div {
    background: #ffffff;
    border: 1px solid #ece3cc;
    border-radius: 10px;
    padding: 10px;
}

.admin-meta-grid strong {
    display: block;
    color: #244225;
    font-size: 13px;
    margin-bottom: 4px;
}

.admin-meta-grid span {
    color: #555;
    font-size: 14px;
}

.admin-access-form {
    border-top: 1px solid #e2d8bd;
    padding-top: 16px;
}

.status-pill {
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-trial {
    background: #fff3c4;
    color: #6a4a00;
}

.status-active {
    background: #def5dc;
    color: #1f5e25;
}

.status-free {
    background: #e5edff;
    color: #243b7a;
}

.status-past_due,
.status-expired,
.status-cancelled {
    background: #ffe1e1;
    color: #7a1515;
}

@media (max-width: 850px) {
    .admin-account-header {
        flex-direction: column;
    }

    .admin-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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