/**
 * Fortune System - Mango/Green Theme
 * Shared visual language aligned with Lotto pages
 */

:root {
    --mango-50: #fff4e6;
    --mango-100: #ffe7c2;
    --mango-400: #ffa726;
    --mango-500: #ff9800;
    --mango-600: #f57c00;
    --leaf-100: #e7f6e8;
    --leaf-300: #8fd491;
    --leaf-400: #66bb6a;
    --leaf-500: #4caf50;
    --leaf-700: #2e7d32;
    --cream: #f7f6f2;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f2d6b3;
    --card: rgba(255, 255, 255, 0.92);
    --card-strong: #ffffff;
    --shadow-soft: 0 16px 38px rgba(31, 41, 55, 0.08);
    --shadow-hover: 0 20px 44px rgba(31, 41, 55, 0.14);
    --radius: 18px;
    --radius-lg: 28px;
    --transition: all 0.28s ease;
    --primary-color: var(--mango-600);
    --primary-light: var(--mango-100);
    --secondary-color: var(--leaf-500);
    --secondary-light: var(--leaf-100);
    --accent-color: var(--mango-400);
    --text-color: var(--ink);
    --bg-color: var(--cream);
    --card-bg: var(--card-strong);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarabun', 'Kanit', sans-serif;
    color: var(--ink);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(255, 167, 38, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(102, 187, 106, 0.16), transparent 24%),
        linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
}

ul,
ol {
    padding-left: 1.2rem;
}

a {
    color: var(--mango-600);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 124, 0, 0.12);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.05);
}

.header-content {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

.logo:hover {
    color: var(--ink);
}

.logo-mark,
.footer-brand-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(245, 124, 0, 0.12);
}

.logo-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.logo-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--muted);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 152, 0, 0.14);
    color: var(--mango-600);
}

.header-utility {
    flex-shrink: 0;
}

.ecosystem-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--leaf-400), var(--leaf-700));
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.ecosystem-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

main {
    flex: 1;
    padding: 28px 0 56px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 44px 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(255, 244, 230, 0.86) 38%, rgba(255, 255, 255, 0.78) 70%),
        linear-gradient(135deg, rgba(255, 245, 230, 0.95), rgba(231, 246, 232, 0.88));
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(245, 124, 0, 0.12);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 260px;
    height: 260px;
    right: -60px;
    top: -60px;
    background: radial-gradient(circle, rgba(255, 167, 38, 0.24), rgba(255, 167, 38, 0));
}

.hero::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(102, 187, 106, 0.18), rgba(102, 187, 106, 0));
}

.page-index .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
    gap: 28px;
    align-items: center;
    padding: 46px 40px;
}

.hero-copy h1,
.hero h1 {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    font-size: clamp(2.15rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 0.9rem;
    color: var(--ink);
}

.hero-copy p,
.hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.07rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(245, 124, 0, 0.12);
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.05);
}

.durian-scene {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.durian-glow {
    position: absolute;
    inset: 16% 16% 7%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(143, 212, 145, 0.42), rgba(255, 255, 255, 0) 72%);
}

.durian-tree {
    position: relative;
    width: min(100%, 320px);
    aspect-ratio: 1 / 1.1;
}

.durian-image {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 26px 40px rgba(71, 85, 105, 0.18));
}

.durian-grass {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 6%;
    height: 16%;
    background: radial-gradient(circle at 50% 0, #78c256, #4caf50 70%);
    border-radius: 50%;
    filter: blur(1px);
}

.durian-trunk {
    position: absolute;
    left: 50%;
    bottom: 16%;
    width: 40%;
    height: 48%;
    transform: translateX(-50%);
    border-radius: 34% 34% 26% 26% / 20% 20% 28% 28%;
    background:
        linear-gradient(90deg, rgba(120, 73, 39, 0.76), rgba(180, 123, 76, 0.92) 24%, rgba(214, 164, 109, 0.95) 55%, rgba(164, 109, 65, 0.9));
    box-shadow: inset -10px -10px 24px rgba(115, 70, 31, 0.14);
}

.durian-trunk::before,
.durian-trunk::after {
    content: "";
    position: absolute;
    bottom: -8%;
    width: 22%;
    height: 30%;
    background: inherit;
    border-radius: 0 0 22px 22px;
}

.durian-trunk::before {
    left: 18%;
}

.durian-trunk::after {
    right: 18%;
}

.durian-face-eye,
.durian-face-mouth {
    position: absolute;
    z-index: 2;
}

.durian-face-eye {
    width: 12%;
    height: 8%;
    border-radius: 50%;
    background: #1f1f1f;
    top: 48%;
}

.durian-face-eye.left {
    left: 34%;
}

.durian-face-eye.right {
    right: 34%;
}

.durian-face-mouth {
    width: 22%;
    height: 11%;
    left: 39%;
    top: 60%;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(180deg, #b34a42, #ef8d7b);
}

.durian-arm {
    position: absolute;
    width: 26%;
    height: 7%;
    background: linear-gradient(90deg, #b77b4f, #8d5c36);
    top: 58%;
    border-radius: 999px;
}

.durian-arm.left {
    left: 6%;
    transform: rotate(18deg);
}

.durian-arm.right {
    right: 6%;
    transform: rotate(-18deg);
}

.durian-crown {
    position: absolute;
    inset: 4% 10% 34%;
}

.durian-puff {
    position: absolute;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, #a7df67 0, #8aca55 40%, #6faa3d 78%, #5b9634 100%);
    box-shadow: inset -8px -12px 18px rgba(73, 117, 36, 0.14);
}

.durian-puff::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.22) 0 6%, transparent 7%),
        radial-gradient(circle at 30% 14%, rgba(255, 255, 255, 0.2) 0 5%, transparent 6%),
        radial-gradient(circle at 48% 8%, rgba(255, 255, 255, 0.22) 0 4%, transparent 5%),
        radial-gradient(circle at 67% 14%, rgba(255, 255, 255, 0.18) 0 5%, transparent 6%),
        radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.18) 0 5%, transparent 6%),
        radial-gradient(circle at 18% 54%, rgba(255, 255, 255, 0.16) 0 5%, transparent 6%),
        radial-gradient(circle at 38% 74%, rgba(255, 255, 255, 0.16) 0 5%, transparent 6%),
        radial-gradient(circle at 58% 58%, rgba(255, 255, 255, 0.16) 0 5%, transparent 6%),
        radial-gradient(circle at 74% 74%, rgba(255, 255, 255, 0.16) 0 5%, transparent 6%);
}

.durian-puff.one { width: 38%; height: 34%; left: 2%; top: 18%; }
.durian-puff.two { width: 42%; height: 38%; left: 26%; top: 0; }
.durian-puff.three { width: 39%; height: 35%; right: 0; top: 15%; }
.durian-puff.four { width: 34%; height: 30%; left: 16%; bottom: 10%; }
.durian-puff.five { width: 32%; height: 28%; right: 12%; bottom: 4%; }

.durian-fruit {
    position: absolute;
    width: 12%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, #9bd357 0, #74ab37 58%, #5f9131 100%);
    box-shadow: inset -4px -6px 10px rgba(64, 99, 28, 0.12);
}

.durian-fruit::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.24) 0 5%, transparent 6%),
        radial-gradient(circle at 48% 12%, rgba(255, 255, 255, 0.18) 0 4%, transparent 5%),
        radial-gradient(circle at 80% 28%, rgba(255, 255, 255, 0.2) 0 5%, transparent 6%),
        radial-gradient(circle at 28% 76%, rgba(255, 255, 255, 0.16) 0 5%, transparent 6%),
        radial-gradient(circle at 68% 74%, rgba(255, 255, 255, 0.16) 0 5%, transparent 6%);
}

.durian-fruit.a { left: 15%; top: 36%; }
.durian-fruit.b { right: 17%; top: 30%; }
.durian-fruit.c { left: 63%; bottom: 13%; }
.durian-fruit.d { left: 6%; bottom: 26%; width: 10%; }

.card,
.featured-item,
.result-box {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(245, 124, 0, 0.1);
    box-shadow: var(--shadow-soft);
}

.card {
    padding: 1.6rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover,
.featured-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.card-title {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.55rem;
    font-weight: 600;
    color: var(--ink);
}

input[type="text"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(245, 124, 0, 0.18);
    border-radius: 18px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.98);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 152, 0, 0.8);
    box-shadow: 0 0 0 4px rgba(255, 167, 38, 0.16);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--mango-400), var(--mango-600));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--leaf-400), var(--leaf-700));
}

.btn-block {
    display: flex;
    width: 100%;
}

.result-box {
    padding: 1.9rem;
    margin-top: 1.8rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 230, 0.92)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 246, 232, 0.72));
}

.result-title {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    font-size: 1.45rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.result-number {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--mango-600);
    margin: 1rem 0;
}

.result-meaning {
    font-size: 1.06rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.result-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--leaf-400), var(--leaf-700));
    color: #fff;
}

.result-chip,
.tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(245, 124, 0, 0.12);
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(31, 41, 55, 0.05);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

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

.insight-card {
    padding: 1.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(245, 124, 0, 0.12);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.05);
}

.insight-card h3 {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.55rem;
}

.number-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.plate-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 240px);
    gap: 1rem;
    align-items: stretch;
}

.plate-score-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.16), rgba(102, 187, 106, 0.12));
    border: 1px solid rgba(245, 124, 0, 0.14);
}

.plate-score-number {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--mango-600);
    line-height: 1;
}

.plate-score-label {
    margin-top: 0.35rem;
    font-weight: 700;
}

.plate-score-tone {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.focus-card {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 230, 0.74));
    border: 1px solid rgba(245, 124, 0, 0.1);
}

.focus-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.focus-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 152, 0, 0.12);
    color: var(--mango-600);
    font-size: 0.88rem;
    font-weight: 700;
}

.focus-meter {
    width: 100%;
    height: 10px;
    margin: 0.8rem 0 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
}

.focus-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mango-400), var(--leaf-500));
}

.number-stack {
    flex: 1 1 160px;
    min-width: 160px;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(245, 124, 0, 0.1);
}

.number-stack h4 {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
    color: var(--muted);
}

.number-stack .lucky-grid {
    margin: 0;
}

.number-stack .lucky-item {
    min-height: 58px;
    font-size: 1.05rem;
}

.detail-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.helper-note {
    color: var(--muted);
    font-size: 0.95rem;
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 0.85rem;
    margin: 1.2rem 0;
}

.lucky-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    padding: 0.8rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.92), rgba(255, 244, 230, 0.96));
    color: var(--ink);
    font-family: 'Kanit', 'Sarabun', sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(245, 124, 0, 0.14);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.04);
}

.nav-link:hover {
    background: rgba(255, 152, 0, 0.14);
    color: var(--mango-600);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.3rem;
    margin: 1.8rem 0;
}

.featured-item {
    padding: 1.5rem;
    text-align: left;
}

.featured-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--leaf-700);
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.18), rgba(255, 255, 255, 0.92));
    border-radius: 22px;
    margin-bottom: 1rem;
}

.featured-title {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.featured-desc {
    color: var(--muted);
    font-size: 0.95rem;
}

.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.card > table,
.result-box > table {
    width: 100%;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    overflow: hidden;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(245, 124, 0, 0.08);
}

th {
    background: linear-gradient(135deg, var(--mango-400), var(--mango-600));
    color: #fff;
    font-weight: 700;
}

tbody tr:nth-child(even) {
    background: rgba(255, 244, 230, 0.38);
}

tbody tr:hover {
    background: rgba(231, 246, 232, 0.52);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.24);
    color: var(--leaf-700);
}

.alert-error {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.2);
    color: #991b1b;
}

.alert-info {
    background: rgba(255, 167, 38, 0.12);
    border-color: rgba(255, 167, 38, 0.22);
    color: #9a5b00;
}

footer {
    margin-top: auto;
    padding: 0 0 30px;
}

.footer-shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 230, 0.94));
    border: 1px solid rgba(245, 124, 0, 0.12);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.footer-intro {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(245, 124, 0, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand h3 {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-brand p,
.footer-note {
    color: var(--muted);
}

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

.footer-section h3 {
    font-family: 'Kanit', 'Sarabun', sans-serif;
    color: var(--ink);
    margin-bottom: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li + li {
    margin-top: 0.35rem;
}

.footer-section a {
    color: var(--muted);
}

.footer-section a:hover {
    color: var(--mango-600);
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.support-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 0.95rem;
    border-radius: 16px;
    color: #fff !important;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.support-pill-mango {
    background: linear-gradient(135deg, var(--mango-400), var(--mango-600));
}

.support-pill-leaf {
    background: linear-gradient(135deg, var(--leaf-400), var(--leaf-700));
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    color: var(--muted);
}

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.spinner {
    border: 3px solid rgba(245, 124, 0, 0.18);
    border-top: 3px solid var(--mango-500);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-utility {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .page-index .hero {
        grid-template-columns: 1fr;
        padding: 38px 28px;
    }

    .durian-scene {
        order: 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .header-content {
        min-height: auto;
        padding: 14px 0;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .main-nav ul {
        gap: 0.4rem;
    }

    .main-nav a {
        font-size: 0.88rem;
        padding: 0.5rem 0.75rem;
    }

    .hero {
        padding: 30px 22px;
        border-radius: 26px;
    }

    .hero-copy p,
    .hero p {
        font-size: 1rem;
    }

    .footer-shell {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .footer-intro,
    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .featured-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .lucky-grid {
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    }

    .durian-tree {
        width: min(100%, 270px);
    }

    .durian-image {
        width: min(100%, 290px);
        max-height: 420px;
    }
}

@media print {
    header,
    footer,
    nav {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .card,
    .result-box {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
