*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brown-dark:  #4a2c0a;
    --brown-mid:   #7a4a1e;
    --brown-light: #c8965a;
    --gold:        #d4a017;
    --gold-light:  #f5e6c0;
    --cream:       #fdf6e3;
    --cream-dark:  #f0e0b0;
    --text-dark:   #2c1a0a;
    --text-mid:    #5a3e28;
    --text-light:  #8a6a50;
    --red-warn:    #8b2500;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ── */
header {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
    padding: 1rem 2rem;
    border-bottom: 3px solid var(--gold);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 2.2rem;
}

.logo h1 {
    font-family: 'Noto Serif', serif;
    font-size: 1.4rem;
    color: var(--gold-light);
    line-height: 1.2;
}

.logo p {
    font-size: 0.75rem;
    color: var(--brown-light);
    font-style: italic;
}

nav { display: flex; gap: 1.5rem; }

nav a {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: background 0.2s;
}

nav a:hover { background: rgba(255,255,255,0.15); }

/* ── HERO ── */
.page-hero {
    background: linear-gradient(to bottom, var(--cream-dark), var(--cream));
    text-align: center;
    padding: 3rem 1rem 2rem;
    border-bottom: 1px solid var(--cream-dark);
}

.page-hero h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.8rem;
    color: var(--brown-dark);
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--text-mid);
    font-size: 1rem;
}

/* ── GRID ── */
.purposes-grid {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ── CARD ── */
.purpose-card {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-top: 4px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.purpose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 44, 10, 0.15);
}

.purpose-icon { font-size: 2rem; }

.purpose-card h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.15rem;
    color: var(--brown-dark);
}

.purpose-card .description {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.purpose-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--cream-dark);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.82rem;
    color: var(--text-mid);
}

.meta-label {
    font-weight: 600;
    color: var(--brown-mid);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.meta-item.warning .meta-label { color: var(--red-warn); }
.meta-item.warning { color: var(--red-warn); opacity: 0.85; }

.card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-align: right;
}

/* ── EMPTY ── */
.empty {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    font-style: italic;
}

/* ── FOOTER ── */
footer {
    margin-top: auto;
    background: var(--brown-dark);
    color: var(--brown-light);
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    border-top: 2px solid var(--gold);
}
/* ── DISHES GRID ── */
.dishes-grid {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ── DISH CARD ── */
.dish-card {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-top: 4px solid var(--brown-light);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 44, 10, 0.15);
}

.dish-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dish-icon { font-size: 1.8rem; }

.dish-header h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.1rem;
    color: var(--brown-dark);
    line-height: 1.3;
}

.dish-description {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ── TAGS ── */
.dish-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: var(--gold-light);
    color: var(--brown-mid);
    border: 1px solid var(--cream-dark);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── DISH META ── */
.dish-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--cream-dark);
}
/* ── BREADCRUMB ── */
.breadcrumb {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--brown-mid);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ── PURPOSE BANNER ── */
.purpose-banner {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
    border-radius: 12px;
    color: var(--gold-light);
}

.purpose-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.purpose-banner-icon { font-size: 2.5rem; }

.purpose-banner-info h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 0.35rem;
}

.purpose-banner-info p {
    font-size: 0.9rem;
    color: var(--brown-light);
    line-height: 1.5;
}

.purpose-banner-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.banner-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--gold-light);
}

.banner-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brown-light);
}

.banner-meta-item.warning { color: #ffb3a0; }
.banner-meta-item.warning .banner-meta-label { color: #ff8a6a; }

/* ── DISHES SECTION ── */
.dishes-section {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: 'Noto Serif', serif;
    font-size: 1.2rem;
    color: var(--brown-dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.count {
    background: var(--gold-light);
    color: var(--brown-mid);
    border-radius: 20px;
    padding: 0.15rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Noto Sans', sans-serif;
}

/* ── DISH DETAIL HERO ── */
.dish-detail-hero {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
    border-radius: 12px;
    color: var(--gold-light);
}

.dish-detail-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.dish-detail-icon { font-size: 3rem; }

.dish-detail-hero h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.7rem;
    color: var(--gold-light);
    margin-bottom: 0.4rem;
}

.dish-detail-hero p {
    font-size: 0.95rem;
    color: var(--brown-light);
    line-height: 1.6;
}

/* ── DISH DETAIL BODY ── */
.dish-detail-body {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── DETAIL CARD ── */
.detail-card {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-card.warning-card {
    border-left-color: var(--red-warn);
}

.detail-card-title {
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    color: var(--brown-dark);
    margin-bottom: 1rem;
}

.detail-text {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-list li::before {
    content: "✓ ";
    color: var(--gold);
    font-weight: bold;
}

.detail-list li {
    font-size: 0.9rem;
    color: var(--text-mid);
}

/* ── DETAIL CARD ROW ── */
.detail-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* ── INGREDIENTS TABLE ── */
.ingredients-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.ingredients-table th {
    background: var(--gold-light);
    color: var(--brown-dark);
    padding: 0.6rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ingredients-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--cream-dark);
    color: var(--text-mid);
}

.ingredients-table tr:last-child td { border-bottom: none; }
.ingredients-table tr:hover td { background: var(--cream); }
.text-muted { color: var(--text-light) !important; font-style: italic; }

/* ── PURPOSE TAGS ── */
.purpose-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.purpose-tag {
    background: var(--gold-light);
    color: var(--brown-mid);
    border: 1px solid var(--cream-dark);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.purpose-tag:hover {
    background: var(--cream-dark);
}

.draft-notice {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1.25rem 1.5rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    color: var(--brown-mid);
    font-size: 0.95rem;
}

/* ── SEARCH ── */
.search-wrap {
    position: relative;
    max-width: 520px;
    margin: 1.5rem auto 0;
}

.search-box {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(74,44,10,0.15);
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    font-size: 0.95rem;
    font-family: 'Noto Sans', sans-serif;
    outline: none;
    background: #fff;
    color: var(--text-dark);
}

.search-box button {
    background: var(--gold);
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    color: var(--brown-dark);
    transition: opacity 0.2s;
}

.search-box button:hover { opacity: 0.85; }

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    margin-top: 0.25rem;
    list-style: none;
    box-shadow: 0 8px 24px rgba(74,44,10,0.12);
    z-index: 100;
    overflow: hidden;
}

.autocomplete-list li {
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: background 0.15s;
}

.autocomplete-list li:hover {
    background: var(--gold-light);
    color: var(--brown-dark);
}

/* ── RESULT SUMMARY ── */
.result-summary {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
    font-size: 0.88rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clear-search {
    color: var(--red-warn);
    text-decoration: none;
    font-size: 0.82rem;
    border: 1px solid var(--red-warn);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.clear-search:hover { opacity: 1; }

/* ── PAGINATION ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem 0;
}

.page-btn {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--cream-dark);
    background: #fff;
    color: var(--brown-mid);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.page-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold);
}

.page-btn.active {
    background: var(--gold);
    color: var(--brown-dark);
    border-color: var(--gold);
    font-weight: 700;
}

/* ── ANALYZE ── */
.analyze-body {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.analyze-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #f57f17;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: #e65100;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.analyze-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
}

.analyze-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.analyze-card {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analyze-card-title {
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    color: var(--brown-dark);
}

.analyze-result-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.analyze-note {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* Tứ khí badge màu */
.tu-khi-hàn   { background: #e3f2fd; color: #1565c0; }
.tu-khi-lương { background: #e8f5e9; color: #2e7d32; }
.tu-khi-bình  { background: #f5f5f5; color: #616161; }
.tu-khi-ôn    { background: #fff3e0; color: #e65100; }
.tu-khi-nhiệt { background: #fbe9e7; color: #b71c1c; }

/* Tứ khí bar */
.tu-khi-bar-wrap { display: flex; flex-direction: column; gap: 0.3rem; }
.tu-khi-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-light);
}
.tu-khi-bar {
    position: relative;
    height: 10px;
    background: linear-gradient(to right, #1565c0, #4caf50, #9e9e9e, #ff9800, #b71c1c);
    border-radius: 10px;
}
.tu-khi-marker {
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--brown-dark);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Cân bằng circle */
.can-bang-circle {
    display: flex;
    justify-content: center;
}

/* Thăng giáng */
.thang-giang-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}
.thang-label {
    font-size: 0.78rem;
    color: var(--text-light);
    writing-mode: horizontal-tb;
}
.thang-giang-bar {
    width: 24px;
    height: 100px;
    background: var(--cream-dark);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
}
.thang-giang-fill {
    background: linear-gradient(to top, #3949ab, #7986cb);
    border-radius: 12px;
    transition: height 0.5s;
}

/* Ngũ hành bars */
.ngu-hanh-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.hanh-item {
    display: grid;
    grid-template-columns: 2rem 3rem 1fr 3rem;
    align-items: center;
    gap: 0.75rem;
}
.hanh-icon { font-size: 1.2rem; }
.hanh-name { font-size: 0.85rem; font-weight: 600; color: var(--brown-mid); }
.hanh-bar-wrap {
    background: var(--cream-dark);
    border-radius: 6px;
    height: 16px;
    overflow: hidden;
}
.hanh-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s;
}
.hanh-pct { font-size: 0.82rem; color: var(--text-mid); text-align: right; }

/* Quy kinh */
.quy-kinh-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.kinh-item {
    display: grid;
    grid-template-columns: 5rem 1fr 3rem;
    align-items: center;
    gap: 0.75rem;
}
.kinh-name { font-size: 0.85rem; color: var(--brown-mid); font-weight: 600; }
.kinh-bar-wrap {
    background: var(--cream-dark);
    border-radius: 6px;
    height: 12px;
    overflow: hidden;
}
.kinh-bar {
    height: 100%;
    background: linear-gradient(to right, var(--brown-light), var(--gold));
    border-radius: 6px;
}
.kinh-pct { font-size: 0.8rem; color: var(--text-light); text-align: right; }

/* Thể trạng */
.phu-hop-card   { border-left-color: #4caf50; }
.khong-phu-hop-card { border-left-color: var(--red-warn); }

.the-trang-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phu-hop-card .the-trang-list li::before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
}

.khong-phu-hop-card .the-trang-list li::before {
    content: "✗ ";
    color: var(--red-warn);
    font-weight: bold;
}

.the-trang-list li {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* Nút quay lại */
.btn-back {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--gold-light);
    color: var(--brown-dark);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--cream-dark);
    transition: background 0.2s;
}
.btn-back:hover { background: var(--cream-dark); }

.btn-analyze {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
    color: var(--gold-light);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
    box-shadow: 0 4px 16px rgba(74,44,10,0.2);
}
.btn-analyze:hover { opacity: 0.85; }

/* ── THERMOMETER ── */
.thermometer-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.thermo-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
}
.thermometer { display: flex; flex-direction: column; gap: 0.4rem; }
.thermo-track {
    position: relative;
    height: 20px;
    background: linear-gradient(to right, #1565c0, #4caf50, #9e9e9e, #ff9800, #b71c1c);
    border-radius: 10px;
}
.thermo-needle {
    position: absolute;
    top: -6px;
    transform: translateX(-50%);
    width: 22px; height: 22px;
    background: var(--brown-dark);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.thermo-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-light);
}

/* ── CAN BANG ── */
.can-bang-wrap { display: flex; justify-content: center; }
.can-bang-stars { display: flex; gap: 0.2rem; }

/* ── THANG GIANG ── */
.thang-giang-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.tg-label-top, .tg-label-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brown-mid);
}
.tg-label-top small, .tg-label-bottom small {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
}
.tg-bar-wrap { padding: 0.25rem 0; }
.tg-bar-track {
    width: 28px; height: 120px;
    background: var(--cream-dark);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
}
.tg-bar-fill {
    border-radius: 14px;
    transition: height 0.6s ease;
}
.tg-needle {
    position: absolute;
    left: -4px; right: -4px;
    height: 3px;
    background: var(--brown-dark);
    border-radius: 2px;
}

/* ── NGU HANH ── */
.ngu-hanh-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: center;
}
.radar-wrap { display: flex; justify-content: center; }
.ngu-hanh-bars { display: flex; flex-direction: column; gap: 0.9rem; }
.hanh-row {
    display: grid;
    grid-template-columns: 120px 1fr 3rem;
    align-items: center;
    gap: 0.75rem;
}
.hanh-meta { display: flex; align-items: center; gap: 0.5rem; }
.hanh-icon { font-size: 1.3rem; }
.hanh-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brown-dark);
}
.hanh-tang {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
}
.hanh-bar-wrap {
    position: relative;
    background: var(--cream-dark);
    border-radius: 6px;
    height: 18px;
    overflow: visible;
}
.hanh-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}
.hanh-ideal-line {
    position: absolute;
    top: -4px; bottom: -4px;
    width: 2px;
    background: rgba(74,44,10,0.3);
    border-radius: 1px;
}
.hanh-pct { font-size: 0.88rem; text-align: right; }
.hanh-legend {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.25rem;
}
.ideal-line-legend {
    color: rgba(74,44,10,0.4);
    font-weight: bold;
    margin-right: 0.25rem;
}

/* ── QUY KINH GRID ── */
.quy-kinh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
}
.kinh-card {
    border: 2px solid;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: #fff;
}
.kinh-pct-big {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Noto Serif', serif;
}
.kinh-name-big {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brown-mid);
}
.kinh-bar-mini {
    width: 100%;
    height: 6px;
    background: var(--cream-dark);
    border-radius: 4px;
    overflow: hidden;
}

/* ── HELP BUTTON ── */
.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    background: var(--gold);
    color: var(--brown-dark);
    border: none;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: opacity 0.2s;
    line-height: 1;
}
.help-btn:hover { opacity: 0.8; }

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 26, 10, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: var(--cream);
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(44,26,10,0.3);
    border-top: 4px solid var(--gold);
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin: 1rem 1rem 0 0;
    background: var(--cream-dark);
    border: none;
    border-radius: 50%;
    width: 28px; height: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--brown-mid);
    z-index: 10;
    transition: background 0.2s;
}
.modal-close:hover { background: #e0c890; }

.modal-title {
    font-family: 'Noto Serif', serif;
    font-size: 1.3rem;
    color: var(--brown-dark);
    padding: 1.25rem 1.5rem 0.5rem;
    border-bottom: 1px solid var(--cream-dark);
    margin-bottom: 0;
}

.modal-content {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-section h4 {
    font-family: 'Noto Serif', serif;
    font-size: 0.95rem;
    color: var(--brown-mid);
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed var(--cream-dark);
}

.modal-section p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* Tứ khí scale */
.tu-khi-scale {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.78rem;
    text-align: center;
}
.scale-item {
    flex: 1;
    padding: 0.5rem 0.25rem;
    font-weight: 600;
    color: #fff;
}
.scale-item small { display: block; font-weight: 400; opacity: 0.9; }
.scale-item.han    { background: #1565c0; }
.scale-item.luong  { background: #4caf50; }
.scale-item.binh   { background: #9e9e9e; }
.scale-item.on     { background: #ff9800; }
.scale-item.nhiet  { background: #b71c1c; }

/* Modal table */
.modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.modal-table th {
    background: var(--gold-light);
    color: var(--brown-dark);
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 0.78rem;
}
.modal-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--cream-dark);
    color: var(--text-mid);
    vertical-align: top;
}
.modal-table tr:last-child td { border-bottom: none; }

/* Color text */
.han-text   { color: #1565c0; font-weight: 600; }
.luong-text { color: #4caf50; font-weight: 600; }
.on-text    { color: #ff9800; font-weight: 600; }
.nhiet-text { color: #b71c1c; font-weight: 600; }

/* Modal rule */
.modal-rule {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.rule-item {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-mid);
}

/* Modal tags */
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mtag {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.han-bg   { background: #e3f2fd; color: #1565c0; }
.luong-bg { background: #e8f5e9; color: #2e7d32; }
.binh-bg  { background: #f5f5f5; color: #616161; }
.on-bg    { background: #fff3e0; color: #e65100; }

/* Ngũ hành explain */
.ngu-hanh-explain {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.nhe-item {
    border-left: 4px solid;
    padding: 0.4rem 0.75rem;
    background: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-mid);
}

/* Ideal bars */
.ideal-bars { display: flex; flex-direction: column; gap: 0.4rem; }
.ideal-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal formula */
.modal-formula {
    background: var(--brown-dark);
    color: var(--gold-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

/* Thăng giáng diagram */
.thang-giang-diagram {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}
.tg-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.tg-arrow {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brown-mid);
    text-align: center;
}
.tg-arrow small { display: block; font-weight: 400; color: var(--text-light); }
.tg-middle-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.tg-body {
    background: var(--gold);
    color: var(--brown-dark);
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 50%;
    font-size: 0.85rem;
}

/* Tang grid */
.tang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}
.tang-card {
    border: 2px solid;
    border-radius: 8px;
    padding: 0.75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.tang-icon { font-size: 1.3rem; }
.tang-name { font-weight: 700; font-size: 0.85rem; color: var(--brown-dark); }
.tang-func { font-size: 0.75rem; color: var(--text-mid); }
.tang-benh { font-size: 0.72rem; color: var(--red-warn); font-style: italic; }

/* Modal triangle */
.modal-triangle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.tri-row {
    display: flex;
    gap: 0.5rem;
}
.tri-item {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brown-mid);
    text-align: center;
}
.tri-item small {
    display: block;
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.72rem;
}
.tri-item.top {
    background: var(--gold-light);
    border-color: var(--gold);
    color: var(--brown-dark);
}

/* ── ĐÁNH GIÁ MỤC ĐÍCH ── */
.muc-dich-block {
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.muc-dich-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: var(--gold-light);
    border-bottom: 1px solid var(--cream-dark);
}

.muc-dich-name {
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-dark);
}

.muc-dich-score {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Noto Serif', serif;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
}

.score-xanh { background: #e8f5e9; color: #2e7d32; }
.score-vang { background: #fff8e1; color: #f57f17; }
.score-cam  { background: #fff3e0; color: #e65100; }
.score-do   { background: #fbe9e7; color: #b71c1c; }

/* Kết luận banner */
.ket-luan-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.ket-luan-xanh { background: #e8f5e9; color: #2e7d32; }
.ket-luan-vang { background: #fff8e1; color: #f57f17; }
.ket-luan-cam  { background: #fff3e0; color: #e65100; }
.ket-luan-do   { background: #fbe9e7; color: #b71c1c; }

/* Thanh tiến trình */
.diem-progress {
    height: 8px;
    background: var(--cream-dark);
    margin: 0 1.25rem 0.75rem;
    border-radius: 4px;
    overflow: hidden;
}
.diem-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Tiêu chí list */
.tieu-chi-list {
    padding: 0 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tieu-chi-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.tieu-chi-phu_hop    { background: #f1f8e9; border-color: #4caf50; }
.tieu-chi-chap_nhan  { background: #fff8e1; border-color: #ff9800; }
.tieu-chi-khong_phu_hop { background: #fbe9e7; border-color: #f44336; }

.tc-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

.tc-body { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }

.tc-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.tc-ket-qua {
    background: rgba(0,0,0,0.06);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.78rem;
    color: var(--text-mid);
}

.tc-yeu-cau {
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
}

.tc-nhan-xet {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.no-data-note {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.dong-y-giai-thich {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.75rem 1.25rem;
    background: #fffdf5;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
    font-style: italic;
}

.giai-thich-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }

.analyze-no-data {
    max-width: 500px;
    margin: 4rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-data-icon { font-size: 3.5rem; }

.analyze-no-data h3 {
    font-family: 'Noto Serif', serif;
    font-size: 1.3rem;
    color: var(--brown-dark);
}

.analyze-no-data p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ── IMPORT SUMMARY ── */
.import-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--cream-dark);
}

.summary-item.xanh { background: #e8f5e9; border-color: #a5d6a7; }
.summary-item.vang { background: #fff8e1; border-color: #ffe082; }
.summary-item.do   { background: #fbe9e7; border-color: #ffcdd2; }

.summary-num {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Noto Serif', serif;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.summary-item.xanh .summary-num { color: #2e7d32; }
.summary-item.vang .summary-num { color: #f57f17; }
.summary-item.do   .summary-num { color: #b71c1c; }

.summary-label {
    font-size: 0.82rem;
    color: var(--text-mid);
}

/* ── IMPORT GUIDE ── */
.import-guide {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.code-preview {
    background: var(--brown-dark);
    color: var(--gold-light);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.8;
    font-family: monospace;
}

/* ── NAME TAGS ── */
.name-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.5rem;
}

/* ── TRANG TÌM MÓN ── */
.tim-mon-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Health issues */
.health-issues-section {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.5rem;
}

.health-issues-title {
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-count {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 700;
}

.issue-category {
    margin-bottom: 1rem;
}

.issue-cat-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.issue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.issue-tag {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1.5px solid var(--cream-dark);
    background: var(--cream);
    font-size: 0.85rem;
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.issue-tag input { display: none; }

.issue-tag:hover {
    border-color: var(--gold);
    background: var(--gold-light);
}

.issue-tag.active {
    border-color: var(--brown-mid);
    background: var(--gold-light);
    color: var(--brown-dark);
    font-weight: 600;
}

/* Nút tìm */
.btn-search-main {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
    color: var(--gold-light);
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    box-shadow: 0 4px 16px rgba(74,44,10,0.2);
}
.btn-search-main:hover { opacity: 0.85; }

/* Tiêu chí tổng hợp */
.tong-hop-tieu-chi {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold-light);
}

.tong-hop-title {
    font-family: 'Noto Serif', serif;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    color: var(--gold-light);
}

.tong-hop-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tc-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tc-label {
    font-size: 0.72rem;
    color: var(--brown-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Kết quả */
.results-section { margin-top: 1rem; }

.results-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cream-dark);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(74,44,10,0.1);
}

/* Score badge */
.result-score {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Noto Serif', serif;
}

.score-high { background: #e8f5e9; color: #2e7d32; border: 2px solid #a5d6a7; }
.score-mid  { background: #fff8e1; color: #f57f17; border: 2px solid #ffe082; }
.score-low  { background: #fff3e0; color: #e65100; border: 2px solid #ffcc80; }
.score-none { background: var(--cream-dark); color: var(--text-light); border: 2px solid #e0d0b0; font-size:1.5rem; }

.result-body { flex: 1; min-width: 0; }

.result-name {
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-dark);
    margin-bottom: 0.25rem;
}

.result-desc {
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.result-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.result-verdict {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.verdict-high { background: #e8f5e9; color: #2e7d32; }
.verdict-mid  { background: #fff8e1; color: #f57f17; }
.verdict-low  { background: #fbe9e7; color: #b71c1c; }

.result-criteria {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.criteria-tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.criteria-phu_hop    { background: #f1f8e9; color: #4caf50; }
.criteria-chap_nhan  { background: #fff8e1; color: #ff9800; }
.criteria-khong_phu_hop { background: #fbe9e7; color: #f44336; }

.result-arrow {
    color: var(--gold);
    font-size: 1.2rem;
    align-self: center;
    flex-shrink: 0;
}

/* ── SECTION ĐẶT MÓN ── */
.order-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--cream-dark);
}

.section-title {
    font-family: 'Noto Serif', serif;
    font-size: 1.3rem;
    color: var(--brown-dark);
    margin-bottom: 0.25rem;
}

.section-sub {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.order-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* Card */
.order-card {
    background: #fff;
    border: 1px solid var(--cream-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(74,44,10,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74,44,10,0.12);
}

/* Album ảnh trong card */
.order-card-album { position: relative; }

.order-card-main-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--cream-dark);
}

.order-card-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.order-card:hover .order-card-main-img img {
    transform: scale(1.03);
}

.sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.order-card-thumbs {
    display: flex;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
    background: var(--cream);
    overflow-x: auto;
}

.order-thumb {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    flex-shrink: 0;
    transition: all 0.15s;
}

.order-thumb:hover,
.order-thumb.active {
    border-color: var(--gold);
    opacity: 1;
}

.order-card-no-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.4;
}

/* Body card */
.order-card-body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Provider info */
.order-provider-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--cream-dark);
}

.provider-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.provider-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--brown-dark);
}

.provider-address,
.provider-hours {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Tên & giá */
.order-dish-name {
    font-family: 'Noto Serif', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-dark);
}

.order-dish-desc {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.order-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brown-dark);
    font-family: 'Noto Serif', serif;
}

.order-unit {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 400;
    font-family: 'Noto Sans', sans-serif;
}

/* Điều kiện */
.order-conditions {
    background: var(--cream);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.condition-item {
    font-size: 0.82rem;
    color: var(--text-mid);
}

.condition-note {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.15rem;
}

/* Lịch */
.order-schedule {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.day-tag {
    background: var(--cream-dark);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-size: 0.72rem;
    color: var(--text-mid);
}

/* Nút đặt món */
.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.btn-order {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
    min-width: 100px;
}

.btn-order:hover { opacity: 0.85; }

.btn-order-phone {
    background: var(--brown-dark);
    color: var(--gold-light);
}

.btn-order-zalo {
    background: #0068ff;
    color: #fff;
    flex: 0;
    padding: 0.6rem 1rem;
}

.btn-order-online {
    background: linear-gradient(135deg, var(--gold), #c8860a);
    color: #fff;
}

.btn-order-disabled {
    background: var(--cream-dark);
    color: var(--text-light);
    text-align: center;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.88rem;
}