:root {
    --bg: #f6f0ea;
    --paper: rgba(255, 255, 255, 0.78);
    --paper-strong: #fffdf9;
    --ink: #24312a;
    --muted: #64746d;
    --line: rgba(36, 49, 42, 0.1);
    --olive: #45614a;
    --olive-dark: #243b2a;
    --sage: #dbe9df;
    --rose: #f3b2bf;
    --rose-deep: #a54763;
    --peach: #f6d0aa;
    --shadow: 0 28px 70px rgba(44, 48, 35, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 223, 199, 0.92), transparent 28%),
        radial-gradient(circle at top right, rgba(248, 188, 205, 0.68), transparent 26%),
        linear-gradient(180deg, #f9f3ed 0%, #f6f0ea 32%, #f3ede7 100%);
}

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

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    position: relative;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: hidden;
    backdrop-filter: blur(18px);
    background: rgba(20, 31, 26, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner,
.page-content,
.site-footer {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

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

.hero-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    filter: blur(45px);
    opacity: 0.28;
}

.hero-glow-left {
    background: #f2a7bc;
    left: -90px;
    top: -140px;
}

.hero-glow-right {
    background: #96c7a0;
    right: -80px;
    top: -140px;
}

.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff8f1;
}

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

.brand small {
    display: block;
    color: rgba(255, 248, 241, 0.74);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f0b6c6, #f3dcc0);
    color: #4c2a34;
    font-weight: 800;
}

.site-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-nav > a:not(.button) {
    color: rgba(255, 248, 241, 0.84);
    font-size: 0.95rem;
}

.nav-form {
    margin: 0;
}

.page-content {
    padding: 1.5rem 0 3.25rem;
}

.site-footer {
    padding: 0 0 2.5rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.92rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    color: var(--rose-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    line-height: 1.04;
}

h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.95rem);
}

h2 {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

h3 {
    font-size: 1.08rem;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.lead {
    font-size: 1.05rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.95rem;
    padding: 0.75rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, #36523d, #4f7759);
    color: #fdf7f2;
    box-shadow: 0 18px 36px rgba(54, 82, 61, 0.18);
}

.button-secondary {
    background: linear-gradient(135deg, #f5d1b1, #f0b6c6);
    color: #462833;
}

.button-ghost,
.button-ghost-danger {
    background: rgba(255, 255, 255, 0.08);
    color: #fff8f1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-ghost-danger {
    background: rgba(165, 71, 99, 0.08);
    color: var(--rose-deep);
    border: 1px solid rgba(165, 71, 99, 0.16);
}

.hero-panel,
.content-grid,
.studio-layout,
.admin-header,
.panel,
.auth-card {
    position: relative;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.4rem;
    align-items: stretch;
}

.hero-copy,
.hero-showcase,
.panel,
.auth-card,
.info-card {
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    overflow: visible;
}

.hero-copy,
.hero-showcase,
.panel,
.auth-card,
.info-card {
    border-radius: 2rem;
    padding: 1.5rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.stat-grid,
.content-grid,
.recommendation-grid,
.flower-library-grid {
    display: grid;
    gap: 1rem;
}

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

.stat-card {
    padding: 1rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(69, 97, 74, 0.08);
}

.stat-card strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--olive-dark);
    font-size: 1.4rem;
}

.hero-showcase {
    display: grid;
    gap: 1rem;
}

.flower-feature-card,
.library-card {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(69, 97, 74, 0.08);
}

.flower-feature-card img,
.library-card img,
.search-result-item img,
.selected-card > img {
    width: 100%;
    max-width: 6rem;
    border-radius: 1.2rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.55rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tag-focal {
    background: rgba(245, 161, 181, 0.18);
    color: #8d3656;
}

.tag-filler {
    background: rgba(246, 208, 170, 0.28);
    color: #80551d;
}

.tag-foliage {
    background: rgba(119, 168, 133, 0.16);
    color: #2d5c3d;
}

.content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.4rem;
}

.info-card {
    border-radius: 1.8rem;
    padding: 1.8rem;
}

.accent-card {
    background: linear-gradient(145deg, rgba(54, 82, 61, 0.92), rgba(69, 97, 74, 0.86));
}

.accent-card,
.accent-card p,
.accent-card .eyebrow {
    color: #f8f5ef;
}

.feature-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--ink);
    line-height: 1.8;
}

.studio-hero,
.admin-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.studio-summary {
    max-width: 22rem;
    padding: 1rem 1.2rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(69, 97, 74, 0.08);
}

.studio-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1.2rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.panel {
    border-radius: 1.8rem;
    padding: 1.45rem;
}

.panel-heading {
    margin-bottom: 1.2rem;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.field-full {
    grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    font: inherit;
    color: var(--ink);
}

.readonly-input {
    color: var(--olive-dark);
    font-weight: 700;
    background: rgba(247, 243, 238, 0.95) !important;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 2px solid rgba(165, 71, 99, 0.18);
    border-color: rgba(165, 71, 99, 0.28);
}

.search-field {
    margin-top: 1rem;
    position: relative;
    z-index: 30;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    gap: 0.6rem;
}

.search-result-item,
.search-result-empty {
    display: grid;
    grid-template-columns: 5.2rem 1fr;
    gap: 0.9rem;
    width: 100%;
    padding: 0.85rem;
    border: 1px solid rgba(69, 97, 74, 0.12);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 46px rgba(36, 49, 42, 0.16);
    text-align: left;
    cursor: pointer;
}

.search-result-empty {
    grid-template-columns: 1fr;
    cursor: default;
}

.search-copy p {
    margin: 0.18rem 0 0.4rem;
    font-size: 0.9rem;
}

.search-topline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.6rem;
}

.selected-list {
    display: grid;
    gap: 1rem;
}

.selected-card {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(69, 97, 74, 0.08);
}

.selected-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.selected-card-copy p {
    margin-top: 0.3rem;
}

.selected-card-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.metric-chip,
.metric-card {
    padding: 0.9rem 1rem;
    border-radius: 1.2rem;
    background: rgba(247, 243, 238, 0.95);
    border: 1px solid rgba(69, 97, 74, 0.08);
}

.metric-chip span,
.metric-card span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.metric-chip strong,
.metric-card strong {
    font-size: 1.1rem;
}

.panel-actions {
    margin-top: 1.2rem;
}

.results-panel,
.recommendations {
    margin-top: 1.2rem;
}

.insight-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.insight-list p {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(69, 97, 74, 0.08);
    color: var(--ink);
}

.suggestion-panel-wrap {
    margin-top: 1.2rem;
    position: relative;
    z-index: 0;
}

.suggestion-toolbar {
    display: flex;
    align-items: end;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.preset-stack {
    display: grid;
    gap: 0.45rem;
    min-width: 12rem;
}

.preset-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.preset-buttons {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.button-chip {
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(69, 97, 74, 0.12);
    color: var(--olive-dark);
    box-shadow: none;
}

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

.recommendation-card {
    padding: 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(69, 97, 74, 0.08);
}

.recommendation-card span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
}

.recommendation-card small {
    display: block;
    margin-top: 0.35rem;
    color: var(--olive-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.9rem 0.6rem;
    border-bottom: 1px solid rgba(36, 49, 42, 0.08);
    text-align: left;
    vertical-align: top;
}

.inline-tag {
    display: inline-flex;
    margin-left: 0.55rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(69, 97, 74, 0.12);
    font-size: 0.72rem;
    font-weight: 700;
}

.library-card-copy {
    display: grid;
    gap: 0.45rem;
}

.library-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--olive-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 68vh;
}

.auth-card {
    width: min(34rem, 100%);
}

.subscription-card {
    text-align: center;
}

.price-card {
    margin: 1.2rem 0;
    padding: 1.4rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(246, 208, 170, 0.42), rgba(243, 178, 191, 0.42));
}

.price-card strong {
    display: block;
    color: var(--olive-dark);
    font-size: 2.5rem;
}

.muted-line {
    margin-top: 1.1rem;
}

.empty-state {
    padding: 1.15rem 1.2rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px dashed rgba(69, 97, 74, 0.2);
}

.empty-state.compact {
    padding: 1rem;
}

.success,
.error {
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
    font-weight: 600;
}

.success {
    color: #264f33;
    background: rgba(131, 193, 124, 0.16);
}

.error {
    color: #7d2f41;
    background: rgba(243, 178, 191, 0.2);
}

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

    .recommendation-grid,
    .flower-library-grid,
    .stat-grid,
    .metric-grid,
    .selected-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .page-content {
        padding-top: 1.4rem;
    }

    .hero-copy,
    .hero-showcase,
    .panel,
    .auth-card,
    .info-card {
        padding: 1.15rem;
        border-radius: 1.45rem;
    }

    .flower-feature-card,
    .library-card,
    .selected-card,
    .search-result-item {
        grid-template-columns: 1fr;
    }

    .selected-card-header,
    .studio-hero,
    .admin-header {
        flex-direction: column;
        align-items: start;
    }

    .control-grid,
    .form-grid,
    .recommendation-grid,
    .flower-library-grid,
    .stat-grid,
    .metric-grid,
    .selected-card-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.35rem;
    }

    .button,
    .site-nav .button {
        width: 100%;
    }

    .site-nav {
        width: 100%;
    }
}
